/* ═══════════════════════════════════════════════════════════════
 DARK TETHER GAMES - "Noir Atelier" design system
 Editorial noir: warm black, deep crimson, antique gold hairlines.
 Display: Fraunces · Body: Hanken Grotesk (self-hosted)
 ═══════════════════════════════════════════════════════════════ */

@font-face {
 font-family: 'Fraunces';
 src: url('/fonts/fraunces-normal.woff2') format('woff2');
 font-weight: 300 700;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: 'Fraunces';
 src: url('/fonts/fraunces-italic.woff2') format('woff2');
 font-weight: 300 700;
 font-style: italic;
 font-display: swap;
}
@font-face {
 font-family: 'Hanken Grotesk';
 src: url('/fonts/hanken-normal.woff2') format('woff2');
 font-weight: 300 800;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: 'Hanken Grotesk';
 src: url('/fonts/hanken-italic.woff2') format('woff2');
 font-weight: 300 800;
 font-style: italic;
 font-display: swap;
}

:root {
 /* legacy token names - values rethemed (purple is gone) */
 --bg-primary: #0b0809;
 --bg-secondary: #110c0e;
 --bg-card: #171013;
 --bg-card-hover: #1f1518;
 --accent-primary: #c41f3e;
 --accent-secondary: #c49a64; /* antique gold (was purple) */
 --accent-gradient: linear-gradient(135deg, #c41f3e, #6f1024);
 --text-primary: #f3ece6;
 --text-secondary: #b5a69c;
 --text-muted: #877871;
 --border-color: #2a1d21;
 --success: #4fae6e;
 --error: #e5484d;
 --warning: #d9a24a;
 /* atelier additions */
 --ink: #0b0809;
 --oxblood: #6f1024;
 --crimson: #c41f3e;
 --crimson-hot: #ee2f52;
 --gold: #c49a64;
 --gold-dim: rgba(196, 154, 100, 0.32);
 --gold-faint: rgba(196, 154, 100, 0.14);
 --ivory: #f3ece6;
 --font-display: 'Fraunces', Georgia, serif;
 --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
 --radius: 3px;
 --hairline: 1px solid var(--gold-faint);
 --shadow-deep: 0 24px 70px -18px rgba(0, 0, 0, 0.75);
}

/* ── Reset & base ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
 font-family: var(--font-body);
 background: var(--bg-primary);
 color: var(--text-primary);
 line-height: 1.65;
 min-height: 100vh;
 font-size: 16px;
 -webkit-font-smoothing: antialiased;
}

/* film grain + vignette atmosphere */
body::before {
 content: '';
 position: fixed;
 inset: 0;
 pointer-events: none;
 z-index: 1;
 opacity: 0.05;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}
body::after {
 content: '';
 position: fixed;
 inset: 0;
 pointer-events: none;
 z-index: 0;
 background: radial-gradient(ellipse 120% 90% at 50% -10%, rgba(196, 31, 62, 0.07), transparent 50%),
 radial-gradient(ellipse 100% 100% at 50% 115%, rgba(0, 0, 0, 0.55), transparent 60%);
}

::selection { background: var(--crimson); color: #fff; }

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--crimson-hot); }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 550; letter-spacing: -0.01em; line-height: 1.12; }
h1 em, h2 em, h3 em, .accent {
 font-style: italic;
 color: var(--crimson-hot);
 font-weight: 480;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* shared page atmosphere (was in landing.css - now global) */
.landing-bg { position: fixed; inset: 0; z-index: -2; background: var(--bg-primary); }
.landing-bg-grid {
 position: absolute; inset: 0;
 background-image: linear-gradient(var(--gold-faint) 1px, transparent 1px),
 linear-gradient(90deg, var(--gold-faint) 1px, transparent 1px);
 background-size: 72px 72px;
 opacity: 0.22;
 mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
 -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.landing-main { position: relative; z-index: 2; }
main { position: relative; z-index: 2; }

/* eyebrow label - the system's signature */
.eyebrow {
 display: inline-flex; align-items: center; gap: 0.65rem;
 font-size: 0.7rem; font-weight: 600;
 letter-spacing: 0.24em; text-transform: uppercase;
 color: var(--gold);
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold-dim); }

/* ── Accessibility ─────────────────────────────────────────── */
.skip-link {
 position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
 background: var(--crimson); color: #fff; padding: 0.75rem 1.5rem;
 z-index: 10000; font-weight: 600; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #3a262c; border-radius: 0; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }
::-webkit-scrollbar-corner { background: var(--bg-primary); }
* { scrollbar-width: thin; scrollbar-color: #3a262c var(--bg-primary); }

/* ── Header / nav ──────────────────────────────────────────── */
header {
 background: rgba(11, 8, 9, 0.85);
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 border-bottom: var(--hairline);
 position: sticky; top: 0; z-index: 1000;
}
nav { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.nav-auth { display: flex; gap: 0.6rem; align-items: center; min-width: 220px; justify-content: flex-end; position: relative; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
 color: var(--text-secondary); font-weight: 500; font-size: 0.82rem;
 letter-spacing: 0.14em; text-transform: uppercase;
 transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a.active::after {
 content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
 height: 1px; background: var(--gold);
}
.nav-launcher-link { color: var(--gold) !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
 display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
 padding: 0.7rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
 font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
 letter-spacing: 0.08em; text-transform: uppercase;
 cursor: pointer; transition: all 0.22s ease;
}
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-hot); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 26px -10px rgba(196, 31, 62, 0.65); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--gold-dim); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.btn-gradient { background: var(--accent-gradient); color: #fff; }
.btn-gradient:hover { opacity: 0.92; color: #fff; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.75rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ── Cards (generic) ───────────────────────────────────────── */
.card {
 background: var(--bg-card); border: 1px solid var(--border-color);
 border-radius: var(--radius); overflow: hidden;
 transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.card-image { aspect-ratio: 460/215; object-fit: cover; width: 100%; }
.card-content { padding: 1.5rem; }
.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-description { color: var(--text-secondary); margin-bottom: 1rem; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; padding: 2rem 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 2rem 0; }
.media-item { aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; background: var(--bg-card); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: #fff; opacity: 0.8; pointer-events: none; }
.media-item:hover .play-icon { opacity: 1; }

/* ── Page chrome ───────────────────────────────────────────── */
.page-header { padding: 3.5rem 1rem 2rem; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.page-header p { font-size: 1rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }
.page-header img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.section { padding: 4rem 0; }
.section-title { font-size: 2.1rem; margin-bottom: 2rem; text-align: center; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
 width: 100%; padding: 0.8rem 1rem; background: var(--bg-secondary);
 border: 1px solid var(--border-color); border-radius: var(--radius);
 color: var(--text-primary); font-size: 1rem; font-family: var(--font-body);
 transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid transparent; border-color: var(--gold); }
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-container { max-width: 500px; margin: 0 auto; padding: 2rem; }
.auth-form { background: var(--bg-card); border: var(--hairline); border-radius: var(--radius); padding: 2rem; }
.auth-form h2 { text-align: center; margin-bottom: 2rem; }

/* ── Forum / community shared ──────────────────────────────── */
.forum-category {
 background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
 padding: 1.5rem; margin-bottom: 1rem; display: flex; justify-content: space-between;
 align-items: center; transition: border-color 0.2s;
}
.forum-category:hover { border-color: var(--gold-dim); }
.forum-category-info h3 { margin-bottom: 0.25rem; }
.forum-category-info p { color: var(--text-secondary); font-size: 0.875rem; }
.forum-category-stats { text-align: right; color: var(--text-muted); font-size: 0.875rem; }
.thread-list { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.thread-item { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: var(--bg-card-hover); }
.thread-title { font-weight: 500; }
.thread-meta { color: var(--text-muted); font-size: 0.875rem; }
.thread-badges { display: flex; gap: 0.5rem; }
.badge { padding: 0.25rem 0.5rem; border-radius: 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-pinned { background: var(--gold); color: var(--ink); }
.badge-locked { background: var(--text-muted); color: var(--ink); }
.post { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.post-author { display: flex; align-items: center; gap: 0.75rem; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.post-author-name { font-weight: 500; }
.post-date { color: var(--text-muted); font-size: 0.875rem; }
.post-content { line-height: 1.8; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { padding: 0.25rem 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 2px; font-size: 0.8rem; color: var(--text-secondary); }

/* ── Filters ───────────────────────────────────────────────── */
.filter-bar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filter-title { font-weight: 600; font-size: 1.1rem; }
.filter-dropdowns { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-dropdown { position: relative; min-width: 180px; }
.filter-dropdown-btn {
 width: 100%; padding: 0.75rem 1rem; background: var(--bg-secondary);
 border: 1px solid var(--border-color); border-radius: var(--radius);
 color: var(--text-primary); font-size: 0.9rem; cursor: pointer;
 display: flex; justify-content: space-between; align-items: center; transition: all 0.2s;
 font-family: var(--font-body);
}
.filter-dropdown-btn:hover { border-color: var(--gold-dim); }
.filter-dropdown-btn.has-selection { border-color: var(--crimson); background: rgba(196, 31, 62, 0.1); }
.filter-dropdown-btn .arrow { transition: transform 0.2s; }
.filter-dropdown.open .filter-dropdown-btn .arrow { transform: rotate(180deg); }
.filter-dropdown-menu {
 position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
 background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
 padding: 0.5rem; z-index: 100; display: none; box-shadow: var(--shadow-deep);
 max-height: 250px; overflow-y: auto;
}
.filter-dropdown.open .filter-dropdown-menu { display: block; }
.filter-dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: 2px; cursor: pointer; transition: background 0.2s; font-size: 0.875rem; color: var(--text-secondary); }
.filter-dropdown-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.filter-dropdown-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--crimson); cursor: pointer; }
.filter-dropdown-item:has(input:checked) { color: var(--text-primary); }
.filter-count { background: var(--crimson); color: #fff; padding: 0.125rem 0.5rem; border-radius: 1rem; font-size: 0.7rem; margin-left: 0.5rem; }
.filter-status { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.875rem; }
.filter-status:empty { display: none; }
.filter-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.filter-section h4 { font-size: 0.8rem; color: var(--gold); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; font-family: var(--font-body); }
.filter-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 2rem; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--gold-dim); color: var(--text-primary); }
.filter-chip input { accent-color: var(--crimson); }
.filter-chip:has(input:checked) { background: var(--crimson); border-color: var(--crimson); color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: transparent; border-top: var(--hairline); padding: 2.2rem; text-align: center; color: var(--text-muted); margin-top: auto; font-size: 0.85rem; }
.footer-home { position: relative; z-index: 2; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }

/* ── Alerts / modals ───────────────────────────────────────── */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: rgba(79, 174, 110, 0.1); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(229, 72, 77, 0.1); border: 1px solid var(--error); color: var(--error); }
.modal-overlay { position: fixed; inset: 0; background: rgba(5, 3, 4, 0.82); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border: var(--hairline); border-radius: var(--radius); max-width: 90%; max-height: 90%; overflow: auto; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.media-modal .modal { padding: 0; background: #000; max-width: 400px; }
.media-modal video { width: 100%; max-height: 90vh; display: block; }

/* ── Loading / empty ───────────────────────────────────────── */
.spinner { width: 36px; height: 36px; border: 2px solid var(--border-color); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 4rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text-secondary); }

/* ── Admin (kept functional, rethemed by tokens) ───────────── */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 70px); }
.admin-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border-color); padding: 2rem 1rem; }
.admin-nav { list-style: none; }
.admin-nav li { margin-bottom: 0.5rem; }
.admin-nav a { display: block; padding: 0.75rem 1rem; color: var(--text-secondary); border-radius: var(--radius); transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: var(--bg-card); color: var(--text-primary); }
.admin-content { padding: 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.admin-table th { background: var(--bg-secondary); font-weight: 500; }
.admin-table tr:hover { background: var(--bg-card-hover); }
.admin-table .actions { display: flex; gap: 0.5rem; }

/* ── Profile dropdown ──────────────────────────────────────── */
.nav-profile-trigger { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.35rem 0.65rem; border-radius: var(--radius); transition: background 0.2s; user-select: none; }
.nav-profile-trigger:hover { background: rgba(255, 255, 255, 0.07); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.nav-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-avatar-letter { color: #fff; font-weight: 600; font-size: 0.85rem; }
.nav-username { color: var(--text-primary); font-weight: 500; font-size: 0.875rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chevron { color: var(--text-muted); transition: transform 0.2s; }
.nav-profile-dropdown { position: absolute; top: calc(100% + 0.5rem); right: 0; width: 240px; background: var(--bg-card); border: var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-deep); z-index: 1100; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; overflow: hidden; }
.nav-profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-avatar span { color: #fff; font-weight: 600; }
.dropdown-displayname { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }
.dropdown-username { color: var(--text-muted); font-size: 0.75rem; }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 0; }
.dropdown-item { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.65rem 1rem; background: none; border: none; color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: all 0.15s; text-align: left; font-family: inherit; }
.dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.dropdown-item svg { flex-shrink: 0; color: var(--text-muted); }
.dropdown-item:hover svg { color: var(--text-primary); }
.dropdown-item-danger:hover { background: rgba(196, 31, 62, 0.12); color: var(--crimson-hot); }
.dropdown-item-danger:hover svg { color: var(--crimson-hot); }

/* ── Flair ─────────────────────────────────────────────────── */
.flair-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.flair-option { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.85rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 2rem; color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.flair-option:hover { border-color: var(--flair-color, var(--text-muted)); background: rgba(255, 255, 255, 0.08); }
.flair-option.selected { border-color: var(--flair-color, var(--crimson)); background: rgba(255, 255, 255, 0.08); color: var(--flair-color, var(--crimson)); }
.flair-emoji { font-size: 0.9rem; }
.flair-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 1rem; font-size: 0.65rem; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--flair-color, var(--crimson)); border: 1px solid rgba(255, 255, 255, 0.1); margin-left: 0.35rem; vertical-align: middle; }

/* ── Cookie notice ─────────────────────────────────────────── */
#cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: rgba(11, 8, 9, 0.97); border-top: var(--hairline); padding: 1rem 2rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); backdrop-filter: blur(8px); }
#cookie-notice a { color: var(--gold); text-decoration: none; }
#cookie-notice a:hover { color: var(--crimson-hot); }
#cookie-notice button { background: var(--crimson); color: #fff; border: none; padding: 0.45rem 1.2rem; border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; font-family: inherit; transition: background 0.2s; }
#cookie-notice button:hover { background: var(--crimson-hot); }

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.text-gradient { background: linear-gradient(120deg, var(--crimson-hot), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--crimson-hot); }

/* scroll reveal - safe by default (visible), enhanced when .visible toggles */
.animate-on-scroll { opacity: 1; transform: none; }
.js-reveal .animate-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js-reveal .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Hero video sound badge ────────────────────────────────── */
.hero-frame-sound {
 position: absolute; top: 1.1rem; right: 1.1rem; z-index: 4;
 padding: 0.3rem 0.7rem;
 background: rgba(11, 8, 9, 0.72); backdrop-filter: blur(6px);
 border: 1px solid var(--gold-dim); border-radius: 2px;
 color: var(--text-secondary);
 font-size: 0.58rem; font-weight: 700;
 letter-spacing: 0.18em; text-transform: uppercase;
 pointer-events: none;
 transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.hero-frame-sound.on { color: var(--gold); border-color: var(--gold); }
/* device-correct label before JS takes over (JS text replaces this) */
.hero-frame-sound:empty::after { content: 'Click for sound'; }
@media (hover: none), (pointer: coarse) {
 .hero-frame-sound:empty::after { content: 'Tap for sound'; }
}

/* ── Game card badges (SSR-emitted on /, /games) ───────────── */
.game-card-badge {
 position: absolute; top: 0.7rem; left: 0.7rem; z-index: 3;
 padding: 0.28rem 0.65rem; font-size: 0.62rem; font-weight: 700;
 letter-spacing: 0.16em; text-transform: uppercase;
 border-radius: 2px; backdrop-filter: blur(6px);
 font-family: var(--font-body);
}
.badge-released { background: rgba(11, 8, 9, 0.72); color: var(--gold); border: 1px solid var(--gold-dim); }
.badge-early-access { background: rgba(196, 31, 62, 0.85); color: #fff; }
.badge-upcoming { background: rgba(35, 28, 31, 0.85); color: var(--text-secondary); border: 1px solid var(--border-color); }
.badge-adult { left: auto; right: 0.7rem; background: var(--crimson); color: #fff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
 /* mobile bar: hamburger LEFT, logo CENTERED, auth buttons right */
 nav { gap: 0.6rem; }
 .mobile-menu-btn { display: block; order: 0; flex: 1; text-align: left; }
 .logo { order: 1; flex: 0 0 auto; justify-content: center; }
 .logo img { height: 38px; }
 .nav-auth { order: 2; min-width: 0; gap: 0.4rem; flex: 1; justify-content: flex-end; }
 .nav-auth .btn-small { padding: 0.45rem 0.8rem; font-size: 0.68rem; }
 .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); flex-direction: column; padding: 1rem; gap: 0; border-bottom: 1px solid var(--border-color); }
 .nav-links.active { display: flex; }
 .nav-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
 .nav-links li:last-child { border-bottom: none; }
 .game-grid { grid-template-columns: 1fr; }
 .media-grid { grid-template-columns: repeat(2, 1fr); }
 .admin-layout { grid-template-columns: 1fr; }
 .admin-sidebar { display: none; }
 .nav-username, .nav-chevron { display: none; }
 .nav-profile-dropdown { right: -0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* real multi-color brand logos shipped as images (e.g. SubscribeStar) */
.ss-logo { border-radius: 50%; object-fit: cover; vertical-align: middle; display: inline-block; }
