/* ==========================================================================
   Capitol Combat: election-night broadcast design system
   C-SPAN meets Street Fighter. Dark studio, chyrons, polling bars.
   ========================================================================== */

:root {
    /* Surfaces */
    --studio-black: #07090f;
    --panel: #0d1220;
    --panel-2: #121a2e;
    --line: #26304e;

    /* Party + brand */
    --gop-red: #d92632;
    --gop-red-bright: #ff4d57;
    --dem-blue: #2f6fd0;
    --dem-blue-bright: #5f97ee;
    --ind-gold: #e8c547;      /* brand caution yellow, doubles as Independent */
    --bruise: #4a3f6b;        /* legacy brand purple, used sparingly */

    /* Text */
    --text: #f2f4fa;
    --text-dim: #a7b1cc;
    --text-faint: #6e7994;

    /* Type */
    --font-display: 'Anton', 'Archivo', sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-pixel: 'Press Start 2P', monospace;

    /* Spacing scale (4px base) */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;

    --radius: 4px;
    --header-h: 56px;
    --ticker-h: 44px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    background: var(--studio-black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: var(--ticker-h);
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.1; margin: 0; }

p { margin: 0 0 var(--sp-md); }

a { color: var(--ind-gold); }

:focus-visible {
    outline: 3px solid var(--ind-gold);
    outline-offset: 2px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ind-gold);
    color: var(--studio-black);
    padding: var(--sp-sm) var(--sp-md);
    z-index: 200;
    font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: var(--sp-sm) var(--sp-lg);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-play {
    background: var(--gop-red);
    color: #fff;
    border-color: var(--gop-red-bright);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 4px 18px rgba(217, 38, 50, 0.35);
}
.btn-play:hover { background: var(--gop-red-bright); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ind-gold); color: var(--ind-gold); }

.btn-small { min-height: 40px; padding: var(--sp-xs) var(--sp-md); font-size: 0.625rem; }

/* ---------- Network header ---------- */

.network-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(7, 9, 15, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

.network-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--sp-md);
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.network-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    text-decoration: none;
    color: var(--text);
}

.live-bug {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gop-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 2px;
}

.live-dot {
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.network-name {
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}
@media (max-width: 480px) {
    .network-name { font-size: 1.05rem; letter-spacing: 0.03em; }
}

.network-sub {
    display: none;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: var(--sp-sm);
}

.network-nav {
    display: none;
    gap: var(--sp-lg);
    margin-left: auto;
}
.network-nav a {
    white-space: nowrap;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--sp-sm) 0;
}
.network-nav a:hover { color: var(--ind-gold); }

.network-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.network-clock {
    display: none;
    white-space: nowrap;
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

@media (min-width: 768px) {
    .network-nav { display: flex; gap: var(--sp-md); }
    .network-clock { display: inline; }
}
@media (min-width: 1024px) {
    .network-nav { gap: var(--sp-lg); }
}
@media (min-width: 1360px) {
    .network-sub { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-h) + var(--sp-2xl)) var(--sp-lg) 120px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7,9,15,0.82) 0%, rgba(7,9,15,0.55) 45%, rgba(7,9,15,0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.hero-logo {
    width: min(320px, 70vw);
    margin: 0 auto var(--sp-xl);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0,0,0,0.7);
    margin-bottom: var(--sp-xl);
}
.hero-headline .accent { color: var(--ind-gold); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    justify-content: center;
    margin-bottom: var(--sp-md);
}

.hero-note {
    color: var(--text-dim);
    font-size: 0.9375rem;
    margin: 0;
}

.lower-third {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(var(--ticker-h) + var(--sp-lg));
    z-index: 2;
    align-items: stretch;
    max-width: min(92vw, 780px);
}

.lt-tag {
    background: var(--gop-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    padding: var(--sp-sm) var(--sp-md);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .lower-third { display: flex; }
}

.lt-text {
    background: rgba(13, 18, 32, 0.94);
    border-top: 2px solid var(--ind-gold);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    padding: var(--sp-sm) var(--sp-md);
}

/* ---------- The Arena: playable game at the top of the page ---------- */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.arena {
    padding: calc(var(--header-h) + var(--sp-md)) var(--sp-md) var(--sp-xl);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(47, 111, 208, 0.10), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(217, 38, 50, 0.08), transparent 55%),
        var(--studio-black);
}

.arena-inner {
    /* Fit the whole broadcast (screen + chyron + controls) inside one viewport. */
    --arena-chrome: 288px;
    width: min(100%, 1280px, calc((100svh - var(--arena-chrome)) * 16 / 9));
    min-width: min(100%, 640px);
    margin: 0 auto;
}

.arena-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--line);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 60px rgba(0,0,0,0.55);
    overflow: hidden;
}

.game-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.screen-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 14px;
    background: rgba(7, 9, 15, 0.86);
    border-top: 2px solid var(--ind-gold);
    font-family: var(--font-pixel);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    color: var(--ind-gold);
    pointer-events: none;
    transition: opacity 200ms ease;
    animation: hint-blink 1.6s steps(2, jump-none) infinite;
}
.screen-hint.is-hidden { opacity: 0; animation: none; }
@keyframes hint-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.arena-mobile { display: none; }
.arena-noscript { position: absolute; inset: auto 0 0 0; margin: 0; padding: var(--sp-md); background: var(--panel); text-align: center; }

.arena-chyron {
    display: flex;
    align-items: stretch;
    margin-top: var(--sp-sm);
}

.arena-headline {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--panel);
    border-top: 2px solid var(--ind-gold);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.125rem, 2.4vw, 1.75rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: var(--sp-sm) var(--sp-md);
}
.arena-headline .accent { color: var(--ind-gold); }

/* Live #1 from the national standings, under the arena chyron. */
.arena-leader {
    display: flex;
    align-items: stretch;
    margin-top: var(--sp-xs);
    text-decoration: none;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    min-height: 40px;
}
.arena-leader[hidden] { display: none; }
.arena-leader-tag {
    display: flex;
    align-items: center;
    padding: 0 var(--sp-md);
    background: var(--ind-gold);
    color: var(--studio-black);
    font-family: var(--font-pixel);
    font-size: 0.625rem;
    white-space: nowrap;
}
.arena-leader-text {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: var(--sp-xs) var(--sp-md);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.arena-leader-cta {
    display: none;
    align-items: center;
    padding: 0 var(--sp-md);
    color: var(--ind-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.arena-leader:hover .arena-leader-cta { text-decoration: underline; }
@media (min-width: 600px) {
    .arena-leader-cta { display: flex; }
}

.arena-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm) var(--sp-lg);
    margin-top: var(--sp-sm);
}

.keys {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs) var(--sp-md);
    color: var(--text-dim);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.keys li { display: inline-flex; align-items: center; gap: 4px; }

kbd {
    display: inline-block;
    min-width: 24px;
    padding: 2px 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-bottom-width: 3px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
}

.arena-actions { display: flex; align-items: center; gap: var(--sp-md); }

.arena-link {
    color: var(--ind-gold);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.arena-link:hover { text-decoration: underline; }

/* Touch / small screens: no game, an honest player notice instead. */
.arena.is-touch .arena-inner { width: 100%; min-width: 0; max-width: 720px; }
.arena.is-touch .arena-screen { aspect-ratio: auto; overflow: visible; background: var(--panel); }
.arena.is-touch .game-frame,
.arena.is-touch .screen-hint,
.arena.is-touch .keys,
.arena.is-touch #fullscreen-btn { display: none; }
.arena.is-touch .arena-mobile { display: block; }
.arena-mobile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.arena-mobile-clip { position: relative; background: var(--studio-black); }
.arena-mobile-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--studio-black); }
.arena-mobile-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-sm); margin-top: var(--sp-md); }
.arena-mobile-follow { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.arena-mobile-actions .btn { white-space: normal; text-align: center; line-height: 1.6; }
.arena-mobile-follow .btn { flex: 1 1 100%; }
.arena-mobile-status { min-height: 1.25em; margin: 0; font-family: var(--font-body); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em; }
.arena-mobile-copy .arena-mobile-status { color: var(--ind-gold); }
/* Party-neutral primary action: caution yellow, never a party color. */
.btn-desk { background: var(--ind-gold); color: var(--studio-black); border-color: var(--ind-gold); }
.btn-desk:hover { background: #f2d76b; }
.arena-mobile-copy { padding: var(--sp-lg); }
.arena-mobile-head {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    margin: var(--sp-sm) 0;
}
.arena-mobile-copy p:not(.arena-mobile-head) { color: var(--text-dim); }

/* ---------- Main event (race spotlight) ---------- */

.main-event {
    padding: var(--sp-2xl) 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(47, 111, 208, 0.16), transparent 40%, transparent 60%, rgba(217, 38, 50, 0.16)),
        var(--studio-black);
}
.me-head { display: flex; align-items: stretch; justify-content: center; margin-bottom: var(--sp-lg); }
.me-title {
    display: flex;
    align-items: center;
    background: var(--panel);
    border-top: 2px solid var(--ind-gold);
    padding: var(--sp-sm) var(--sp-md);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: 0.03em;
}
.me-title .accent { color: var(--ind-gold); margin-left: 0.35em; white-space: nowrap; }
.me-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(var(--sp-md), 5vw, var(--sp-3xl));
}
.me-fighter { margin: 0; text-align: center; }
.me-fighter img {
    width: clamp(120px, 22vw, 220px);
    aspect-ratio: 1;
    object-fit: cover;
    image-rendering: pixelated;
    border: 2px solid var(--line);
    border-bottom-width: 6px;
}
.me-fighter.party-d img { border-bottom-color: var(--dem-blue); }
.me-fighter.party-r img { border-bottom-color: var(--gop-red); }
.me-fighter figcaption {
    margin-top: var(--sp-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.me-fighter figcaption small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.st-pill-lg {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    border-radius: 2px;
}
.party-d .st-pill-lg { background: var(--dem-blue); }
.party-r .st-pill-lg { background: var(--gop-red); }
.me-vs {
    font-family: var(--font-pixel);
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--ind-gold);
}
.me-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}
.me-actions .btn-dem { background: var(--dem-blue); border-color: var(--dem-blue-bright); box-shadow: 0 4px 18px rgba(47, 111, 208, 0.35); }
.me-actions .btn-dem:hover { background: var(--dem-blue-bright); }
/* Two races side by side on wide screens, stacked on phones. */
.me-races { display: grid; grid-template-columns: 1fr; gap: var(--sp-2xl); }
@media (min-width: 900px) { .me-races { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); } }
.me-race { display: flex; flex-direction: column; align-items: center; }
.me-race-title {
    margin: 0 0 var(--sp-md);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    letter-spacing: 0.06em;
    color: var(--ind-gold);
}
@media (min-width: 900px) { .me-races .me-fighter img { width: clamp(120px, 13vw, 190px); } }
.me-note { text-align: center; color: var(--text-faint); font-size: 0.8125rem; margin: var(--sp-md) 0 0; }
.arena-mobile-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-md); }
@media (max-width: 520px) {
    .me-head .lt-tag { padding: var(--sp-sm) 10px; font-size: 0.625rem; }
    .me-title { font-size: 1.05rem; white-space: nowrap; padding: var(--sp-sm) 12px; }
}

/* ---------- National standings ---------- */

.standings-grid {
    display: grid;
    gap: var(--sp-xl);
}
@media (min-width: 900px) {
    .standings-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}

.standings-board {
    background: var(--studio-black);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ind-gold);
}

.standings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.standings-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    grid-template-areas:
        "rank name votes"
        "rank cand detail";
    column-gap: var(--sp-md);
    align-items: center;
    padding: var(--sp-sm) var(--sp-md);
    border-bottom: 1px solid var(--line);
}
.standings-row:last-child { border-bottom: 0; }
.standings-row.is-new { animation: row-flash 1.4s ease-out; }
@keyframes row-flash { from { background: rgba(232, 197, 71, 0.22); } to { background: transparent; } }

.st-rank {
    grid-area: rank;
    font-family: var(--font-pixel);
    font-size: 0.8125rem;
    color: var(--text-dim);
}
.standings-row:nth-child(1) .st-rank { color: var(--ind-gold); font-size: 1rem; }

.st-name {
    grid-area: name;
    font-family: var(--font-pixel);
    font-size: 0.8125rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.8;
}

.st-cand {
    grid-area: cand;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.st-pill {
    display: inline-grid;
    place-items: center;
    width: 18px; height: 18px;
    font-size: 0.625rem;
    font-weight: 800;
    color: #fff;
    border-radius: 2px;
}
.st-r { color: var(--gop-red-bright); } .st-r .st-pill { background: var(--gop-red); }
.st-d { color: var(--dem-blue-bright); } .st-d .st-pill { background: var(--dem-blue); }
.st-i { color: var(--ind-gold); } .st-i .st-pill { background: var(--ind-gold); color: var(--studio-black); }

.st-votes {
    grid-area: votes;
    font-family: var(--font-pixel);
    font-size: 0.8125rem;
    color: var(--text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.st-detail {
    grid-area: detail;
    font-size: 0.75rem;
    color: var(--text-faint);
    text-align: right;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.standings-state {
    margin: 0;
    padding: var(--sp-xl) var(--sp-md);
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 0.6875rem;
    line-height: 2;
    color: var(--text-dim);
}
.standings-state[hidden] { display: none; }
.standings-state.is-error { color: var(--gop-red-bright); }

.standings-rules {
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: var(--sp-lg);
}
.standings-rules h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-md);
}
.standings-rules p { color: var(--text-dim); font-size: 0.9375rem; }

.vote-table { margin: 0 0 var(--sp-md); }
.vote-table div {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-md);
    padding: var(--sp-sm) 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.875rem;
}
.vote-table dt { color: var(--text); }
.vote-table dd { margin: 0; color: var(--ind-gold); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.standings-cta { margin-top: var(--sp-lg); }
.st-detail.is-complete { color: var(--ind-gold); }
.standings-fineprint { font-size: 0.8125rem !important; color: var(--text-faint) !important; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .screen-hint { animation: none; }
    .standings-row.is-new { animation: none; }
}

/* ---------- Sections ---------- */

.section { padding: var(--sp-3xl) 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: var(--sp-2xl); }

.section-tag {
    display: inline-block;
    background: var(--gop-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: var(--sp-md);
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-md);
}

/* Red vs blue polling bar under headlines */
.poll-bar {
    display: flex;
    height: 8px;
    max-width: 340px;
    border-radius: 2px;
    overflow: hidden;
}
.poll-red { flex: 47; background: var(--gop-red); }
.poll-blue { flex: 53; background: var(--dem-blue); }

/* ---------- Top story ---------- */

.story-grid {
    display: grid;
    gap: var(--sp-xl);
    align-items: center;
}
@media (min-width: 900px) {
    .story-grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-2xl); }
}

.story-lede {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
}

.bias-line {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--ind-gold);
    margin-top: var(--sp-lg);
}

.story-media {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-2);
}
.story-media img { display: block; width: 100%; height: auto; }

.chyron-caption {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    border-top: 2px solid var(--ind-gold);
    background: rgba(7, 9, 15, 0.85);
}

.cap-tag {
    background: var(--dem-blue);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 2px 7px;
    white-space: nowrap;
}

/* ---------- Your move (share loop) ---------- */

.move-steps {
    list-style: none;
    margin: var(--sp-lg) 0;
    padding: 0;
    display: grid;
    gap: var(--sp-md);
}
.move-steps li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--sp-md);
    align-items: start;
    color: var(--text-dim);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.move-steps strong { color: var(--text); letter-spacing: 0.04em; }
.move-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--studio-black);
    background: var(--ind-gold);
    border-radius: var(--radius);
}
.move-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-md); }

/* ---------- Feature grid ---------- */

.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-md);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-lg);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gop-red) 0 50%, var(--dem-blue) 50% 100%);
}

.feature-stat {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--ind-gold);
    display: block;
    margin-bottom: var(--sp-sm);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-sm);
}

.feature-card p { color: var(--text-dim); font-size: 0.9375rem; margin: 0; }

.section-cta { text-align: center; margin-top: var(--sp-2xl); }

/* ---------- Roster ---------- */

.roster-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-md);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .roster-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) {
    .roster-grid { grid-template-columns: repeat(10, 1fr); gap: var(--sp-sm); }
    .roster-grid .fighter-epithet { font-size: 0.6875rem; letter-spacing: -0.01em; white-space: nowrap; }
}

.fighter {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-sm);
    text-align: center;
    transition: transform 140ms ease, border-color 140ms ease;
    border-bottom-width: 3px;
}
.fighter:hover { transform: translateY(-4px); }

.party-r { border-bottom-color: var(--gop-red); }
.party-d { border-bottom-color: var(--dem-blue); }
.party-i { border-bottom-color: var(--ind-gold); }
.party-r:hover { border-color: var(--gop-red); }
.party-d:hover { border-color: var(--dem-blue); }
.party-i:hover { border-color: var(--ind-gold); }

.fighter img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: var(--sp-sm);
}

.fighter-name {
    display: block;
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

.fighter-epithet {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.roster-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-lg);
    justify-content: center;
    margin-top: var(--sp-xl);
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 600;
}
.legend-item { display: inline-flex; align-items: center; gap: var(--sp-sm); }
.legend-swatch { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.swatch-r { background: var(--gop-red); }
.swatch-d { background: var(--dem-blue); }
.swatch-i { background: var(--ind-gold); }

/* ---------- Stages ---------- */

.stage-strip {
    display: flex;
    gap: var(--sp-md);
    overflow-x: auto;
    padding: 0 var(--sp-lg) var(--sp-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.stage-card {
    margin: 0;
    flex: 0 0 min(320px, 78vw);
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-2);
}

.stage-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.stage-card figcaption {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    padding: var(--sp-sm) var(--sp-md);
    border-top: 2px solid var(--ind-gold);
    background: rgba(7, 9, 15, 0.85);
}

.stage-more {
    text-align: center;
    color: var(--text-dim);
    margin: var(--sp-lg) auto 0;
    max-width: 640px;
    padding: 0 var(--sp-lg);
}

/* ---------- Token ---------- */

.token-panel {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ind-gold);
    border-radius: var(--radius);
    padding: var(--sp-xl);
    max-width: 760px;
}

.token-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin: var(--sp-lg) 0;
}

.contract-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-sm);
    background: var(--studio-black);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-sm) var(--sp-md);
    margin-bottom: var(--sp-md);
}

.contract-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-faint);
}

.contract-address {
    font-size: 0.8125rem;
    color: var(--text-dim);
    word-break: break-all;
    flex: 1 1 200px;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ind-gold);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 10px 14px;
    min-height: 44px;
    cursor: pointer;
}
.btn-copy:hover { border-color: var(--ind-gold); }

.token-disclaimer {
    color: var(--text-faint);
    font-size: 0.8125rem;
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: var(--sp-2xl) 0;
    text-align: center;
}

.footer-slogan {
    font-family: var(--font-pixel);
    font-size: 0.875rem;
    color: var(--ind-gold);
    margin-bottom: var(--sp-lg);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-md) var(--sp-lg);
    margin-bottom: var(--sp-lg);
}
.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--sp-sm);
}
.footer-nav a:hover { color: var(--ind-gold); }

.footer-disclaimer {
    color: var(--text-faint);
    font-size: 0.8125rem;
    max-width: 680px;
    margin: 0 auto var(--sp-md);
}

.footer-copyright {
    color: var(--text-faint);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0;
}

/* ---------- Breaking ticker ---------- */

.ticker {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--ticker-h);
    display: flex;
    align-items: stretch;
    background: var(--panel-2);
    border-top: 2px solid var(--gop-red);
    z-index: 100;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    background: var(--gop-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    padding: 0 var(--sp-md);
    white-space: nowrap;
    z-index: 1;
}

.ticker-track {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-items {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 60s linear infinite;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.ticker-items span { padding: 0 var(--sp-xl); position: relative; }
.ticker-items span + span::before {
    content: '\25A0';
    color: var(--ind-gold);
    position: absolute;
    left: -5px;
    font-size: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* No-JS and reduced motion: everything visible, nothing moves */
.no-observer .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-items { animation: none; padding-left: var(--sp-md); }
    .live-dot { animation: none; }
    .btn:hover, .fighter:hover { transform: none; }
}
