/* ═══ /game/:id - Noir Atelier ═══ */

.sidebar-title { font-size: 0.78rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.5rem; font-family: var(--font-body); }

@keyframes fadeIn { 0% { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-badges { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; animation: fadeIn 0.8s ease-out 0.2s both; justify-content: center; }
.badge-cinematic { padding: 0.38rem 0.9rem; border-radius: 2px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.badge-own-game { background: var(--crimson); color: #fff; }
.badge-release-date { background: rgba(17, 12, 14, 0.7); backdrop-filter: blur(10px); border: 1px solid var(--gold-dim); color: var(--gold); }
.hero-tagline { font-size: 1.08rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7; margin: 0 auto 1.5rem; animation: fadeIn 1s ease-out 0.3s both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeIn 1s ease-out 0.5s both; justify-content: center; }

/* CTAs - flat, confident, no neon shine */
.btn-cta {
 display: inline-flex; align-items: center; gap: 0.7rem;
 padding: 0.95rem 1.8rem; font-size: 0.88rem; font-weight: 700;
 letter-spacing: 0.1em; text-transform: uppercase;
 border-radius: var(--radius); text-decoration: none;
 transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
 border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta-patreon { background: var(--crimson); color: #fff; }
.btn-cta-patreon:hover { background: var(--crimson-hot); color: #fff; box-shadow: 0 12px 30px -12px rgba(196, 31, 62, 0.7); }
.btn-cta-subscribestar { background: #1e3a8a; color: #fff; }
.btn-cta-subscribestar:hover { background: #2b4db0; color: #fff; box-shadow: 0 12px 30px -12px rgba(30, 58, 138, 0.7); }
.btn-cta-itch { background: #3d1216; color: #ff8a8a; border: 1px solid rgba(250, 92, 92, 0.4); }
.btn-cta-itch:hover { color: #fff; background: #fa5c5c; }
.btn-cta-steam { background: #1b2838; color: #cfe6f5; border: 1px solid rgba(102, 192, 244, 0.35); }
.btn-cta-steam:hover { background: #2a475e; color: #fff; box-shadow: 0 12px 30px -12px rgba(27, 40, 56, 0.9); }
.platform-icon { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* gallery */
.media-gallery-container { display: flex; flex-direction: column; gap: 1rem; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); aspect-ratio: 16/9; cursor: pointer; box-shadow: var(--shadow-deep); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-expand-btn { position: absolute; bottom: 1.2rem; right: 1.2rem; padding: 0.65rem 1.3rem; background: rgba(11, 8, 9, 0.78); backdrop-filter: blur(10px); border: 1px solid var(--gold-dim); border-radius: var(--radius); color: var(--ivory); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; opacity: 0; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); }
.gallery-main:hover .gallery-expand-btn { opacity: 1; }
.gallery-expand-btn:hover { background: var(--crimson); border-color: var(--crimson); }
.gallery-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.75rem 0; }
.gallery-thumbnails::-webkit-scrollbar { height: 4px; }
.gallery-thumbnails::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.gallery-thumb { flex-shrink: 0; width: 120px; height: 68px; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid transparent; transition: all 0.3s ease; opacity: 0.45; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* layout */
.game-details-section { padding: 3rem 0 6rem; }
.details-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2.2rem; align-items: start; }
.glass-card {
 background: rgba(23, 16, 19, 0.82);
 backdrop-filter: blur(18px);
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 padding: 2.2rem;
 transition: border-color 0.3s ease;
}
.glass-card:hover { border-color: var(--gold-dim); }
.section-heading { font-size: 1.55rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.9rem; }
.section-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 52px; height: 2px; background: var(--gold); }
.game-description-content { line-height: 1.85; color: var(--text-secondary); font-size: 1.02rem; }
.game-description-content p { margin-bottom: 1.25rem; }
.game-description-content h2 { color: var(--text-primary); font-size: 1.3rem; margin: 2rem 0 1rem; }
.game-description-content ul, .game-description-content ol { margin-left: 1.5rem; margin-bottom: 1.25rem; }
.game-description-content li { margin-bottom: 0.5rem; }
.game-purchase-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.4rem; }
.purchase-card { display: flex; flex-direction: column; gap: 1.4rem; }

.game-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-styled { padding: 0.4rem 0.9rem; background: var(--gold-faint); border: 1px solid var(--gold-dim); border-radius: 2px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); cursor: default; }
.game-meta-info { display: grid; gap: 0; }
.meta-item { display: flex; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--border-color); }
.meta-item:last-child { border-bottom: none; }
.meta-label { color: var(--text-muted); font-size: 0.85rem; }
.meta-value { color: var(--text-primary); font-weight: 600; }
.platforms-display { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.platform-badge { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; background: rgba(17, 12, 14, 0.6); border: 1px solid var(--border-color); border-radius: 2px; font-size: 0.8rem; color: var(--text-secondary); transition: all 0.3s ease; }
.platform-badge:hover { border-color: var(--gold-dim); color: var(--gold); }
.platform-badge svg { width: 17px; height: 17px; }
.purchase-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.purchase-buttons .btn-cta { width: 100%; justify-content: center; }

/* lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(5, 3, 4, 0.97); z-index: 5000; display: none; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--gold-dim); color: #fff; font-size: 1.7rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; z-index: 10; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); border: 1px solid var(--gold-dim); color: #fff; font-size: 1.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-nav:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox-content { max-width: 90vw; max-height: 75vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 75vh; object-fit: contain; border: 1px solid var(--gold-dim); padding: 6px; background: rgba(17, 12, 14, 0.7); }
.lightbox-counter { margin-top: 1.4rem; color: var(--text-muted); font-size: 0.9rem; font-family: var(--font-display); font-style: italic; }
.lightbox-thumbnails { display: flex; gap: 0.75rem; margin-top: 1.4rem; max-width: 90vw; overflow-x: auto; padding: 0.5rem 0; }
.lightbox-thumb { width: 100px; height: 56px; border-radius: 2px; overflow: hidden; cursor: pointer; opacity: 0.4; transition: all 0.3s ease; flex-shrink: 0; border: 1px solid transparent; }
.lightbox-thumb:hover, .lightbox-thumb.active { opacity: 1; border-color: var(--gold); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* age gate */
.age-gate-overlay { position: fixed; inset: 0; background: rgba(5, 3, 4, 0.96); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 1rem; }
.age-gate-modal { background: var(--bg-card); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 2.6rem; max-width: 500px; width: 100%; text-align: center; box-shadow: var(--shadow-deep); position: relative; }
.age-gate-modal::before { content: ''; position: absolute; top: -1px; left: -1px; width: 24px; height: 24px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.age-gate-modal::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 24px; height: 24px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.age-gate-icon { width: 78px; height: 78px; margin: 0 auto 1.5rem; background: var(--crimson); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.age-gate-modal h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-primary); }
.age-gate-warning { color: var(--crimson-hot); font-weight: 500; margin-bottom: 1rem; }
.age-gate-text { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.age-gate-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.age-gate-enter { min-width: 160px; padding: 0.8rem 2rem; background: var(--crimson); color: #fff; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body); }
.age-gate-enter:hover { background: var(--crimson-hot); transform: translateY(-2px); }
.age-gate-exit { min-width: 100px; padding: 0.8rem 2rem; background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: var(--radius); font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body); }
.age-gate-exit:hover { border-color: var(--gold-dim); color: var(--text-primary); }
body.age-gate-active { overflow: hidden; }

.page-loading { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.not-found-state { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.not-found-state h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--text-primary); }
.not-found-state p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

@media (max-width: 1024px) { .details-grid { grid-template-columns: 1fr 340px; } }
@media (max-width: 900px) { .details-grid { grid-template-columns: 1fr; } .game-purchase-sidebar { position: static; order: -1; } }
@media (max-width: 768px) {
 .gallery-main { aspect-ratio: 4/3; }
 .gallery-thumb { width: 140px; height: 79px; }
 .glass-card { padding: 1.5rem; }
 .lightbox-nav { width: 48px; height: 48px; font-size: 1.25rem; }
 .lightbox-prev { left: 0.75rem; }
 .lightbox-next { right: 0.75rem; }
 .details-grid { gap: 1.5rem; }
}
