/* =========================================================
   SIMIDIOTS.COM — THE IDIOT OLYMPICS
   Dark-neon corporate pitch deck aesthetic
   ========================================================= */

:root {
    --void-navy: #0A0A1A;
    --panel-dark: #14122A;
    --panel-mid: #2A2040;
    --elim-red: #FF3366;
    --winner-gold: #FFD700;
    --score-cyan: #00E5FF;
    --body-light: #B8B0CC;
    --elim-gray: #4A4060;
    --surface-light: #F0ECF8;
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--void-navy);
}

body {
    font-family: var(--font-body);
    background: var(--void-navy);
    color: var(--body-light);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   PERSISTENT SCOREBOARD HEADER
   ========================================================= */

.scoreboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--void-navy);
    border-bottom: 1px solid #1d1a36;
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr) 130px;
    align-items: stretch;
    z-index: 1000;
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.scoreboard-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 18px;
    border-right: 1px solid #1d1a36;
    background: linear-gradient(135deg, #14122A 0%, #0A0A1A 100%);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 22px;
    color: #FFFFFF;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: var(--elim-red);
    letter-spacing: 0.18em;
    margin-top: 3px;
}

.brand-live::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--elim-red);
    border-radius: 50%;
    animation: pulse-red 1.4s ease-in-out infinite;
}

.scoreboard-zone {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 0 18px;
    border-right: 1px solid #1d1a36;
    transition: all 0.4s ease;
    position: relative;
}

.scoreboard-zone.eliminated {
    opacity: 0.45;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 51, 102, 0.05) 100%);
}

.scoreboard-zone.eliminated .contestant-id,
.scoreboard-zone.eliminated .contestant-score {
    color: var(--elim-gray);
    text-decoration: line-through;
    text-decoration-color: var(--elim-red);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--elim-gray);
}

.status-dot.active {
    background: #2EE07A;
    box-shadow: 0 0 8px #2EE07A;
    animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.eliminated {
    background: var(--elim-red);
    box-shadow: 0 0 8px var(--elim-red);
}

.contestant-id {
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.12em;
}

.contestant-score {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--score-cyan);
    letter-spacing: 0.04em;
    line-height: 1;
}

.scoreboard-zone[data-contestant="1"] .contestant-score { color: var(--score-cyan); }
.scoreboard-zone[data-contestant="2"] .contestant-score { color: var(--elim-red); }
.scoreboard-zone[data-contestant="3"] .contestant-score { color: var(--winner-gold); }

.scoreboard-clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #14122A 0%, #0A0A1A 100%);
}

.clock-label {
    font-size: 9px;
    color: var(--body-light);
    letter-spacing: 0.2em;
}

.clock-value {
    font-family: var(--font-display);
    font-size: 26px;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    line-height: 1;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 6px #2EE07A; }
    50% { box-shadow: 0 0 14px #2EE07A; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =========================================================
   GENERIC SCENE LAYOUT
   ========================================================= */

.scene {
    min-height: 100vh;
    padding: 110px 60px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   OPENING CEREMONY
   ========================================================= */

.scene-opening {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 51, 102, 0.08) 0%, transparent 40%),
        var(--void-navy);
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.opening-inner {
    width: 100%;
    max-width: 1200px;
}

.opening-presents {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--body-light);
    letter-spacing: 0.4em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fade-in 800ms ease-out 200ms forwards;
}

.opening-brand {
    font-family: var(--font-display);
    font-size: clamp(64px, 9vw, 128px);
    color: #FFFFFF;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 30px;
    text-shadow:
        0 0 30px rgba(0, 229, 255, 0.3),
        0 0 60px rgba(0, 229, 255, 0.1);
    opacity: 0;
    animation: fade-in 600ms ease-out 400ms forwards;
}

.opening-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 84px);
    color: var(--elim-red);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 14px;
    transform: translateY(-200px);
    opacity: 0;
    animation: slam-down 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 1500ms forwards;
}

.opening-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--body-light);
    letter-spacing: 0.22em;
    margin-bottom: 70px;
    opacity: 0;
    animation: fade-in 600ms ease-out 2100ms forwards;
}

.contestant-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contestant-card {
    background: var(--panel-dark);
    border: 1px solid var(--elim-gray);
    border-top: 3px solid var(--accent);
    padding: 28px 24px;
    text-align: left;
    transform: translateY(80px);
    opacity: 0;
    animation: card-rise 500ms ease-out forwards;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contestant-card[data-card="1"] { animation-delay: 2400ms; }
.contestant-card[data-card="2"] { animation-delay: 2600ms; }
.contestant-card[data-card="3"] { animation-delay: 2800ms; }

.contestant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent);
}

.card-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--panel-mid);
    border: 2px solid var(--accent);
    margin: 0 auto 18px;
    position: relative;
}

.avatar-cyan { box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
.avatar-red { box-shadow: 0 0 20px rgba(255, 51, 102, 0.4); }
.avatar-gold { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }

.card-avatar.dim {
    box-shadow: none;
    filter: grayscale(0.7) opacity(0.4);
}

.card-avatar .eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    top: 28px;
}

.card-avatar .eye-l { left: 22px; }
.card-avatar .eye-r { right: 22px; }

.card-avatar .mouth {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 22px;
}

.card-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--panel-mid);
    padding-top: 14px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--body-light);
    letter-spacing: 0.18em;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    letter-spacing: 0.04em;
    line-height: 1;
}

.scroll-cue {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fade-in 600ms ease-out 3200ms forwards;
}

.cue-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.3em;
}

.cue-arrow {
    color: var(--score-cyan);
    font-size: 18px;
    animation: bounce 1.6s ease-in-out infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slam-down {
    0% { transform: translateY(-200px); opacity: 0; }
    60% { transform: translateY(20px); opacity: 1; }
    80% { transform: translateY(-8px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes card-rise {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* =========================================================
   ROUND BANNERS
   ========================================================= */

.round-banner {
    height: 80px;
    background: var(--elim-red);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(0.7, 0, 0.3, 1);
    overflow: hidden;
    position: relative;
    border-top: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
}

.round-banner::before,
.round-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 0,
        rgba(255, 255, 255, 0.15) 10px,
        transparent 10px,
        transparent 20px
    );
}

.round-banner::before { left: 0; }
.round-banner::after { right: 0; }

.round-banner.is-visible {
    transform: translateX(0);
}

.round-banner.banner-elim {
    background: linear-gradient(90deg, #FF3366 0%, #c41e4a 50%, #FF3366 100%);
}

.round-banner.banner-winner {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    color: var(--void-navy);
}

.banner-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.32em;
    opacity: 0.9;
}

.banner-title {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 0.08em;
    line-height: 1;
}

.banner-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.85;
}

/* =========================================================
   ROUND HEADERS
   ========================================================= */

.round-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--panel-mid);
}

.round-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--score-cyan);
    letter-spacing: 0.32em;
    margin-bottom: 14px;
}

.round-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    color: #FFFFFF;
    letter-spacing: 0.05em;
    line-height: 1.05;
    margin-bottom: 12px;
}

.round-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--body-light);
    letter-spacing: 0.16em;
}

/* =========================================================
   ROUND GRID — CONTESTANT PANELS
   ========================================================= */

.round-grid {
    display: grid;
    align-items: stretch;
    gap: 0;
    margin-bottom: 80px;
}

.round-grid-3 {
    grid-template-columns: 1fr 4px 1fr 4px 1fr;
}

.round-grid-2 {
    grid-template-columns: 1fr 4px 1fr;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.contestant-panel {
    background: var(--panel-dark);
    border: 1px solid var(--panel-mid);
    border-top: 3px solid var(--accent);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.6s ease, filter 0.6s ease;
    position: relative;
}

.contestant-panel.eliminated {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--panel-mid);
}

.panel-id {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.18em;
}

.panel-status {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid currentColor;
    letter-spacing: 0.18em;
}

.panel-status.active { color: #2EE07A; }

.shape-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 26px;
    background: var(--void-navy);
    padding: 30px 0;
    border: 1px solid var(--panel-mid);
}

.shape-svg {
    width: 160px;
    height: 144px;
}

.answer-block {
    margin-bottom: 22px;
}

.answer-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--body-light);
    letter-spacing: 0.22em;
    margin-bottom: 8px;
}

.answer-text {
    font-family: var(--font-body);
    font-size: 17px;
    color: #FFFFFF;
    line-height: 1.45;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.confidence-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid var(--panel-mid);
    padding-top: 16px;
    margin-top: auto;
}

.conf-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--body-light);
    letter-spacing: 0.2em;
}

.conf-value {
    font-family: var(--font-display);
    font-size: 44px;
    color: var(--accent);
    letter-spacing: 0.04em;
    line-height: 1;
}

.conf-pct {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    margin-left: 2px;
}

/* VS Divider */
.vs-divider {
    background: var(--elim-red);
    position: relative;
    width: 4px;
    align-self: stretch;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.vs-divider-tall {
    margin: 0;
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background: var(--elim-red);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.04em;
    transform: translate(-50%, -50%) rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--void-navy);
    box-shadow: 0 0 0 1px var(--elim-red);
}

.vs-badge::after {
    content: "VS";
    transform: rotate(-45deg);
}

/* =========================================================
   COMPARISON BAR CHART
   ========================================================= */

.chart-block {
    background: var(--panel-dark);
    border: 1px solid var(--panel-mid);
    padding: 32px 36px;
    margin-bottom: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-mid);
}

.chart-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: #FFFFFF;
    letter-spacing: 0.06em;
}

.chart-axis {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.2em;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 18px;
}

.bar-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body-light);
    letter-spacing: 0.14em;
}

.bar-track {
    height: 16px;
    background: var(--void-navy);
    border: 1px solid var(--panel-mid);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.bar-track::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 9.99%,
        rgba(255, 255, 255, 0.03) 10%,
        rgba(255, 255, 255, 0.03) 10.05%
    );
}

.bar-fill {
    height: 100%;
    background: var(--bar-color);
    border-radius: 8px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--bar-color);
}

.bar-fill.fill-active {
    width: calc(var(--final-w, 0) * 1%);
}

.bar-value {
    font-family: var(--font-display);
    font-size: 22px;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    text-align: right;
}

.chart-footnote {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--panel-mid);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--elim-red);
    letter-spacing: 0.12em;
}

/* =========================================================
   STATS TRIO
   ========================================================= */

.stats-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.stat-card {
    background: var(--panel-dark);
    border: 1px solid var(--panel-mid);
    border-left: 3px solid var(--score-cyan);
    padding: 30px 30px 28px;
    transition: transform 0.3s ease;
}

.stat-card:nth-child(2) { border-left-color: var(--elim-red); }
.stat-card:nth-child(3) { border-left-color: var(--winner-gold); }

.stat-big {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 110px);
    color: #FFFFFF;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-card:nth-child(1) .stat-big { color: var(--score-cyan); }
.stat-card:nth-child(2) .stat-big { color: var(--elim-red); }
.stat-card:nth-child(3) .stat-big { color: var(--winner-gold); }

.stat-meta-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #FFFFFF;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.stat-meta-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.12em;
    font-style: italic;
}

/* =========================================================
   ELIMINATION SCENES
   ========================================================= */

.scene-elim1, .scene-elim2 {
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 51, 102, 0.12) 0%, transparent 50%),
        var(--void-navy);
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.elim-headline {
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.elim-prefix {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--elim-red);
    letter-spacing: 0.32em;
    margin-bottom: 16px;
}

.elim-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    color: #FFFFFF;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 20px;
}

.elim-quote {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--body-light);
    font-style: italic;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

.elim-quote::before { content: "\201C"; color: var(--elim-red); margin-right: 4px; }
.elim-quote::after { content: "\201D"; color: var(--elim-red); margin-left: 4px; }

.elim-stage {
    margin: 20px auto 50px;
    max-width: 360px;
    width: 100%;
}

.elim-card {
    background: var(--panel-dark);
    border: 1px solid var(--elim-gray);
    padding: 30px;
    position: relative;
    text-align: center;
    transform: scale(0.95);
    opacity: 0.6;
}

.elim-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg) scale(2);
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--elim-red);
    opacity: 0;
    letter-spacing: 0.06em;
    text-shadow: 0 0 30px rgba(255, 51, 102, 0.6);
    z-index: 5;
    pointer-events: none;
    border: 4px solid var(--elim-red);
    padding: 6px 16px;
    border-radius: 4px;
    background: rgba(10, 10, 26, 0.8);
}

.scene-elim1.is-visible .elim-stamp,
.scene-elim2.is-visible .elim-stamp {
    animation: stamp-slam 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 600ms forwards;
}

@keyframes stamp-slam {
    0% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(2);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(0.92);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(1);
        opacity: 0.85;
    }
}

.elim-card-id {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--elim-gray);
    letter-spacing: 0.2em;
    margin-bottom: 18px;
}

.elim-card-final {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--body-light);
    letter-spacing: 0.05em;
    margin-top: 18px;
    text-decoration: line-through;
    text-decoration-color: var(--elim-red);
}

.elim-card-cause {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--elim-red);
    letter-spacing: 0.16em;
    margin-top: 8px;
}

.elim-aftermath {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.aftermath-line {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--body-light);
    letter-spacing: 0.24em;
    margin-bottom: 18px;
}

.aftermath-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aftermath-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: var(--panel-dark);
    border-left: 3px solid var(--accent);
}

.aftermath-bar.dimmed {
    opacity: 0.4;
    filter: grayscale(0.6);
}

.aftermath-bar.pulse-cyan {
    animation: pulse-cyan 1.6s ease-in-out infinite;
}

@keyframes pulse-cyan {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 229, 255, 0); }
    50% { box-shadow: 0 0 24px rgba(0, 229, 255, 0.4); }
}

.ab-name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.18em;
}

.ab-status {
    font-family: var(--font-display);
    font-size: 18px;
    color: #FFFFFF;
    letter-spacing: 0.06em;
}

.aftermath-bar.dimmed .ab-status { color: var(--elim-gray); }

/* =========================================================
   POEM PANEL — ROUND 2
   ========================================================= */

.poem-panel { padding: 30px 32px; }

.poem-block {
    margin-bottom: 30px;
}

.poem-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.poem-text {
    font-family: var(--font-body);
    font-size: 17px;
    font-style: italic;
    color: #FFFFFF;
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    margin-left: 0;
}

.poem-text em {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--body-light);
    font-style: normal;
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
}

/* Judge block */
.judge-block {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--panel-mid);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
}

.judge-label {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.22em;
    margin-bottom: 8px;
}

.radar-svg {
    width: 200px;
    height: 200px;
}

.radar-fill {
    transform-origin: center;
    transform: scale(0);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-fill.fill-active {
    transform: scale(1);
}

.judge-scores {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.judge-scores li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body-light);
    letter-spacing: 0.14em;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--panel-mid);
}

.score-num {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    letter-spacing: 0.04em;
}

/* =========================================================
   HEAD-TO-HEAD METRICS
   ========================================================= */

.h2h-block {
    background: var(--panel-dark);
    border: 1px solid var(--panel-mid);
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.h2h-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: #FFFFFF;
    letter-spacing: 0.06em;
    margin-bottom: 22px;
    text-align: center;
}

.h2h-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.h2h-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px 1fr 80px;
    align-items: center;
    gap: 14px;
}

.h2h-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--body-light);
    letter-spacing: 0.16em;
}

.h2h-name.h2h-left { text-align: right; color: var(--score-cyan); }
.h2h-name.h2h-right { text-align: left; color: var(--elim-red); }

.h2h-bar {
    height: 12px;
    background: var(--void-navy);
    border: 1px solid var(--panel-mid);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.h2h-bar-left { display: flex; justify-content: flex-end; }

.h2h-fill {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
    border-radius: 6px;
}

.h2h-bar-right .h2h-fill { margin-right: auto; }

.h2h-metric {
    font-family: var(--font-display);
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 0.06em;
    text-align: center;
}

/* =========================================================
   WINNER SECTION
   ========================================================= */

.scene-winner {
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        var(--panel-dark);
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--winner-gold);
    opacity: 0;
}

.confetti.circle { border-radius: 50%; }

.scene-winner.is-visible .confetti {
    animation: confetti-burst var(--dur, 3s) cubic-bezier(0.2, 0.6, 0.4, 1) var(--delay, 0s) forwards;
}

@keyframes confetti-burst {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) rotate(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--tx, 0), 80vh) rotate(var(--rot, 720deg));
        opacity: 0;
    }
}

.winner-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    width: 100%;
}

.winner-prefix {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    color: var(--body-light);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fade-in 1s ease-out 800ms forwards;
}

.scene-winner:not(.is-visible) .winner-prefix { animation: none; opacity: 0; }

.winner-id {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    color: var(--winner-gold);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 28px;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3);
    opacity: 0;
}

.scene-winner.is-visible .winner-id {
    animation: winner-pulse 1.2s ease-out 1800ms forwards;
}

@keyframes winner-pulse {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.winner-medallion {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    opacity: 0;
}

.scene-winner.is-visible .winner-medallion {
    animation: fade-in 1s ease-out 2200ms forwards;
}

.medal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, var(--winner-gold), #FFA500, var(--winner-gold), #FF8C00, var(--winner-gold));
    animation: medal-rotate 8s linear infinite;
    padding: 6px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.medal-core {
    position: absolute;
    inset: 8px;
    background: var(--void-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes medal-rotate {
    to { transform: rotate(360deg); }
}

.winner-avatar {
    margin: 0;
    width: 110px;
    height: 110px;
}

.winner-avatar .eye { top: 36px; }
.winner-avatar .eye-l { left: 30px; }
.winner-avatar .eye-r { right: 30px; }
.winner-avatar .mouth { bottom: 28px; width: 38px; }

.winner-stat {
    margin-bottom: 40px;
    opacity: 0;
}

.scene-winner.is-visible .winner-stat {
    animation: fade-in 1s ease-out 2400ms forwards;
}

.ws-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body-light);
    letter-spacing: 0.3em;
    margin-bottom: 6px;
}

.ws-value {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--elim-red);
    letter-spacing: 0.06em;
}

.winner-board {
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid var(--elim-gray);
    border-top: 2px solid var(--winner-gold);
    padding: 28px 36px;
    margin-bottom: 40px;
    text-align: left;
    opacity: 0;
}

.scene-winner.is-visible .winner-board {
    animation: fade-in 1s ease-out 2600ms forwards;
}

.wb-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed var(--panel-mid);
}

.wb-row:last-child { border-bottom: 0; }

.wb-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body-light);
    letter-spacing: 0.16em;
}

.wb-value {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--winner-gold);
    letter-spacing: 0.04em;
}

.winner-speech {
    background: var(--void-navy);
    border-left: 4px solid var(--winner-gold);
    padding: 28px 32px;
    text-align: left;
    margin-bottom: 50px;
    opacity: 0;
}

.scene-winner.is-visible .winner-speech {
    animation: fade-in 1s ease-out 2800ms forwards;
}

.speech-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--winner-gold);
    letter-spacing: 0.22em;
    margin-bottom: 14px;
}

.speech-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--body-light);
    line-height: 1.7;
    font-style: italic;
}

.winner-footer {
    padding-top: 30px;
    border-top: 1px solid var(--panel-mid);
    opacity: 0;
}

.scene-winner.is-visible .winner-footer {
    animation: fade-in 1s ease-out 3000ms forwards;
}

.winner-tag {
    font-family: var(--font-display);
    font-size: 28px;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.winner-line {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--body-light);
    margin-bottom: 14px;
    font-style: italic;
}

.winner-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--elim-gray);
    letter-spacing: 0.24em;
}

/* =========================================================
   COUNTER-ANIMATE TARGETS
   ========================================================= */

.counter, .counter-big {
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .scene { padding: 100px 32px 60px; }
    .round-grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .round-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .vs-divider {
        width: 100%;
        height: 4px;
        margin: 0;
    }
    .vs-badge {
        position: absolute;
        left: 50%;
        top: 50%;
    }
    .contestant-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .stats-trio {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .scoreboard {
        grid-template-columns: 100px 1fr 1fr 1fr 80px;
    }
    .scoreboard-brand { padding: 0 10px; }
    .scoreboard-zone { padding: 0 8px; }
    .brand-text { font-size: 16px; }
    .judge-block {
        grid-template-columns: 1fr;
    }
    .h2h-row {
        grid-template-columns: 60px 1fr 100px 1fr 60px;
    }
    .banner-title { font-size: 30px; }
    .banner-meta, .banner-tag { display: none; }
}

@media (max-width: 640px) {
    .scene { padding: 90px 18px 50px; }
    .opening-brand { font-size: 56px; }
    .opening-title { font-size: 36px; }
    .round-title { font-size: 32px; }
    .elim-title { font-size: 44px; }
    .winner-id { font-size: 64px; }
    .stat-big { font-size: 56px; }
    .scoreboard {
        height: 52px;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .scoreboard-brand,
    .scoreboard-clock { display: none; }
    .contestant-score { font-size: 18px; }
    .contestant-id { font-size: 9px; }
    .h2h-row { grid-template-columns: 50px 1fr 80px 1fr 50px; gap: 6px; }
    .h2h-name { font-size: 9px; }
    .h2h-metric { font-size: 12px; }
    .chart-block { padding: 20px; }
    .bar-row { grid-template-columns: 70px 1fr 50px; gap: 10px; }
}
