/* ==========================================================================
   BROADCAST DESK — Design System
   jeopardywinprob.com

   Three typefaces: Fraunces (display), Source Sans 3 (body), JetBrains Mono (data)
   Three surfaces: ink (#0B1222), panel (#131B2E), elevated (#1A2340)
   Two voices: blue (stage), gold (signal)
   ========================================================================== */

/* --- TOKENS --- */
:root {
    /* Surfaces */
    --ink: #0B1222;
    --panel: #131B2E;
    --elevated: #1A2340;
    --surface-border: rgba(255, 255, 255, 0.06);

    /* Brand */
    --blue: #060CE9;
    --blue-bright: #3D5AFE;
    --blue-text: #6B8FFF;          /* 508-compliant blue for text on dark backgrounds (~6:1 on --ink) */
    --blue-muted: #1A237E;
    --gold: #FFB800;
    --gold-dim: #B8860B;
    --gold-glow: rgba(255, 184, 0, 0.15);

    /* Chart palette */
    --player-1: #00D4AA;
    --player-2: #FF6B6B;
    --player-3: #5B8DEF;
    --positive: #00D4AA;
    --negative: #FF6B6B;
    --neutral: #5B8DEF;

    /* Text */
    --text-primary: #E8E6E3;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-on-gold: #1A1A1A;
    --text-on-blue: #FFFFFF;

    /* Typography */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-data: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Type scale (mobile-first) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Layout */
    --content-max: 1200px;
    --content-narrow: 800px;
    --content-wide: 1400px;
    --nav-height: 56px;

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow-gold: 0 0 20px rgba(255, 184, 0, 0.2);
    --shadow-glow-blue: 0 0 20px rgba(6, 12, 233, 0.3);

    /* Motion */
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-dramatic: 800ms;
}

/* Desktop scale-up */
@media (min-width: 768px) {
    :root {
        --text-xl: 1.5rem;
        --text-2xl: 2rem;
        --text-3xl: 2.75rem;
        --text-4xl: 3.5rem;
        --nav-height: 60px;
    }
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    overflow-y: scroll;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: var(--sp-6); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    font-optical-sizing: auto;
}
h1 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }
.text-data {
    font-family: var(--font-data);
    font-size: 0.9em;
    letter-spacing: -0.02em;
}
.text-sm { font-size: var(--text-sm); }

/* --- LAYOUT PRIMITIVES --- */
.page-wrap {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}
.page-wrap--narrow { max-width: var(--content-narrow); }
.page-wrap--wide { max-width: var(--content-wide); }

.stack > * + * { margin-top: var(--sp-6); }
.stack--tight > * + * { margin-top: var(--sp-3); }
.stack--loose > * + * { margin-top: var(--sp-10); }

/* --- NAVIGATION --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    border-bottom: 1px solid var(--surface-border);
    height: var(--nav-height);
}
.site-nav__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-nav__brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--text-lg);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    white-space: nowrap;
}
.site-nav__brand:hover { text-decoration: none; color: var(--gold); }
.site-nav__brand .brand-accent { color: var(--gold); }

/* Desktop nav links */
.site-nav__links {
    display: none;
    align-items: center;
    gap: var(--sp-1);
}
@media (min-width: 768px) {
    .site-nav__links { display: flex; }
}

.site-nav__group { position: relative; }
.site-nav__group-label {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
    background: none;
    border: none;
}
.site-nav__group-label:hover,
.site-nav__group-label[aria-expanded="true"] {
    color: var(--text-primary);
    text-decoration: none;
}
.site-nav__chevron {
    font-size: 0.65em;
    transition: transform var(--duration-fast) var(--ease-out);
}
.site-nav__group-label[aria-expanded="true"] .site-nav__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.site-nav__dropdown {
    position: absolute;
    top: calc(100% + var(--sp-1));
    left: 0;
    min-width: 200px;
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--sp-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-lg);
}
.site-nav__group:hover .site-nav__dropdown,
.site-nav__group.is-open .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__dropdown a {
    display: block;
    padding: var(--sp-2) var(--sp-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--duration-fast) var(--ease-out);
}
.site-nav__dropdown a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

/* Mobile hamburger */
.site-nav__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
}
@media (min-width: 768px) {
    .site-nav__burger { display: none; }
}

/* Mobile drawer */
.site-nav__drawer {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    z-index: 99;
    padding: var(--sp-6) var(--sp-4);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-in-out);
}
.site-nav__drawer.is-open { transform: translateX(0); }
.site-nav__drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-in-out);
}
.site-nav__drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.site-nav__drawer-section {
    margin-bottom: var(--sp-6);
}
.site-nav__drawer-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: var(--sp-2);
}
.site-nav__drawer a {
    display: block;
    padding: var(--sp-3) 0;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.site-nav__drawer a:hover,
.site-nav__drawer a.is-active {
    color: var(--gold);
    text-decoration: none;
}

/* --- CHYRON (The One Memorable Thing) --- */
.chyron {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--elevated);
    border-left: 3px solid var(--gold);
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-data);
    font-size: var(--text-sm);
    color: var(--text-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.chyron--hero {
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-5);
    background: linear-gradient(90deg, var(--elevated), transparent);
    border-left-width: 4px;
}
.chyron__label {
    color: var(--text-secondary);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.chyron__value {
    color: var(--gold);
    font-weight: 700;
}
.chyron__separator {
    color: var(--text-muted);
}

/* --- TOAST NOTIFICATIONS --- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--elevated);
    color: var(--text-primary);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- BADGES --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 2px var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.badge--gold {
    background: var(--gold);
    color: var(--text-on-gold);
}
.badge--elite {
    background: var(--blue-bright);
    color: var(--text-on-blue);
}
.badge--strong {
    background: rgba(0, 212, 170, 0.15);
    color: var(--player-1);
    border: 1px solid rgba(0, 212, 170, 0.3);
}
.badge--live {
    background: rgba(255, 107, 107, 0.15);
    color: var(--player-2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}
.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--gold);
    color: var(--text-on-gold);
}
.btn--primary:hover {
    background: #E5A600;
    box-shadow: var(--shadow-glow-gold);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}
.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--sp-2) var(--sp-3);
}
.btn--ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs);
    min-height: 36px;
}
.btn--lg {
    padding: var(--sp-4) var(--sp-8);
    font-size: var(--text-base);
    min-height: 48px;
}

/* --- CARDS / PANELS --- */
.panel {
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
}
.panel--flush { padding: 0; }
.panel--elevated {
    background: var(--elevated);
    box-shadow: var(--shadow-md);
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    text-align: center;
}
.stat-card__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--sp-1);
}
.stat-card__value {
    font-family: var(--font-data);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gold);
}
.stat-card__sub {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-top: var(--sp-1);
}

/* --- DATA TABLE --- */
.data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.data-table th {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    background: var(--elevated);
    border-bottom: 1px solid var(--surface-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.data-table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-primary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.data-table .col-rank {
    font-family: var(--font-data);
    color: var(--text-muted);
    width: 50px;
    text-align: center;
}
.data-table .col-num {
    font-family: var(--font-data);
    text-align: right;
}
.data-table .col-rating {
    font-family: var(--font-data);
    font-weight: 700;
    color: var(--gold);
}

/* --- CHART CONTAINER --- */
.chart-wrap {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    overflow: hidden;
}
.chart-wrap canvas,
.chart-wrap svg {
    width: 100% !important;
    display: block;
}

/* Chart tooltip styles are in index.html inline <style> (unified tooltip) */

/* --- FORM CONTROLS --- */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.form-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.form-input,
.form-select {
    padding: var(--sp-3) var(--sp-4);
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    min-height: 44px;
    transition: border-color var(--duration-fast) var(--ease-out);
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.2);
}
.form-input::placeholder { color: var(--text-muted); }

/* --- FILTER BAR (data pages) --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    align-items: end;
}
.filter-bar .form-field { flex: 1; min-width: 140px; }

@media (max-width: 767px) {
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar .form-field { min-width: 100%; }
}

/* --- VERDICT BOX (DD Optimizer, tool results) --- */
.verdict {
    border-left: 4px solid var(--gold);
    background: var(--gold-glow);
    padding: var(--sp-4) var(--sp-6);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.verdict--positive { border-left-color: var(--positive); background: rgba(0, 212, 170, 0.08); }
.verdict--negative { border-left-color: var(--negative); background: rgba(255, 107, 107, 0.08); }
.verdict__headline {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}
.verdict__detail {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- EXCITEMENT METER --- */
.excitement-bar {
    position: relative;
    height: 6px;
    background: var(--elevated);
    border-radius: 3px;
    overflow: hidden;
}
.excitement-bar__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 3px;
    transition: width var(--duration-slow) var(--ease-out);
}
.excitement-bar__labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--sp-1);
}

/* --- SHARE TOOLBAR --- */
.share-bar {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 36px;
}
.share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.share-btn--reddit:hover { color: #FF4500; border-color: rgba(255, 69, 0, 0.4); }
.share-btn--bluesky:hover { color: #0085FF; border-color: rgba(0, 133, 255, 0.4); }
.share-btn--copy:hover { color: var(--gold); border-color: rgba(255, 184, 0, 0.4); }

/* --- HERO SECTION --- */
.hero {
    padding: var(--sp-10) 0 var(--sp-8);
    text-align: center;
}
.hero__headline {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--sp-4);
    letter-spacing: -0.02em;
}
.hero__sub {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--sp-6);
    line-height: 1.5;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
}

/* Homepage tool showcase */
.tool-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin: var(--sp-8) 0;
}
@media (min-width: 768px) {
    .tool-showcase { grid-template-columns: repeat(3, 1fr); }
}
.tool-card {
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.tool-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-2px);
    text-decoration: none;
}
.tool-card__icon {
    font-size: var(--text-2xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border-radius: var(--radius-md);
    color: var(--gold);
}
.tool-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}
.tool-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}
.tool-card__cta {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* --- FOOTER --- */
.site-footer {
    margin-top: var(--sp-16);
    border-top: 1px solid var(--surface-border);
    padding: var(--sp-8) 0 var(--sp-6);
}
.site-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-8);
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--sp-2);
}
.site-footer__brand .brand-accent { color: var(--gold); }
.site-footer__tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
}
.site-footer__heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--sp-3);
}
.site-footer__links {
    list-style: none;
    padding: 0;
}
.site-footer__links li { margin-bottom: var(--sp-2); }
.site-footer__links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.site-footer__links a:hover { color: var(--gold); text-decoration: none; }

.site-footer__bottom {
    padding-top: var(--sp-6);
    border-top: 1px solid var(--surface-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* --- NEWSLETTER INLINE --- */
.newsletter-section {
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    margin: var(--sp-12) 0;
}
.newsletter-section h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--sp-2);
}
.newsletter-section p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--sp-5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    gap: var(--sp-2);
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: var(--sp-3) var(--sp-4);
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    min-height: 44px;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue-bright);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
    padding: var(--sp-3) var(--sp-5);
    background: var(--gold);
    color: var(--text-on-gold);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: background var(--duration-fast) var(--ease-out);
}
.newsletter-form button:hover { background: #E5A600; }

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* --- PAGE HEADER (subpages) --- */
.page-header {
    padding: var(--sp-8) 0 var(--sp-6);
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: var(--sp-6);
}
.page-header__eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: var(--sp-2);
}
.page-header__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--sp-3);
}
.page-header__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
}

/* --- GAME NAV BAR (homepage) --- */
.game-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--panel);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.game-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-base);
    transition: all var(--duration-fast) var(--ease-out);
}
.game-nav__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.game-nav__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.game-nav__date {
    font-family: var(--font-data);
    font-size: var(--text-sm);
    color: var(--text-primary);
    flex: 1;
    text-align: center;
}
.game-nav__badge {
    margin-left: auto;
}

/* --- PLAYER SEARCH --- */
.search-wrap {
    position: relative;
}
.search-input {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    padding-left: var(--sp-10);
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    min-height: 44px;
    transition: border-color var(--duration-fast) var(--ease-out);
}
.search-input:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.2);
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.search-results {
    position: absolute;
    top: calc(100% + var(--sp-1));
    left: 0;
    right: 0;
    background: var(--elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    display: none;
}
.search-results.is-open { display: block; }
.search-result-item {
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    border-bottom: 1px solid var(--surface-border);
    transition: background var(--duration-fast) var(--ease-out);
}
.search-result-item:hover { background: rgba(255, 255, 255, 0.04); }
.search-result-item:last-child { border-bottom: none; }

/* --- ANIMATIONS --- */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes draw-line {
    from { stroke-dashoffset: var(--path-length, 1000); }
    to { stroke-dashoffset: 0; }
}

.animate-in {
    animation: fade-in var(--duration-normal) var(--ease-out) both;
}
.animate-in--delay-1 { animation-delay: 100ms; }
.animate-in--delay-2 { animation-delay: 200ms; }
.animate-in--delay-3 { animation-delay: 300ms; }
.animate-in--delay-4 { animation-delay: 400ms; }

/* Staggered reveal for page load */
.reveal { opacity: 0; }
.reveal.is-visible {
    animation: fade-in var(--duration-slow) var(--ease-out) both;
}

/* --- RESPONSIVE UTILITIES --- */
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: initial; } }

.mobile-only { display: initial; }
@media (min-width: 768px) { .mobile-only { display: none; } }

/* Print */
@media print {
    .site-nav, .site-footer, .share-bar, .newsletter-section { display: none; }
    body { background: white; color: black; }
    .panel { border: 1px solid #ccc; }
}
