:root {
    --bg: #050508;
    --bg-2: #0c0a14;
    --surface: #12101c;
    --surface-2: #1a1628;
    --surface-glow: rgba(124, 58, 237, 0.08);
    --text: #f4f0ff;
    --muted: #9d8ec4;
    --one: #3b82f6;
    --one-glow: rgba(59, 130, 246, 0.55);
    --two: #f43f5e;
    --two-glow: rgba(244, 63, 94, 0.55);
    --accent: #a855f7;
    --accent-2: #22d3ee;
    --win: #4ade80;
    --danger: #fb7185;
    --gold: #fbbf24;
    --radius: 12px;
    --radius-lg: 20px;
    --font: "Rajdhani", system-ui, sans-serif;
    --font-display: "Orbitron", system-ui, sans-serif;
    --container: 1140px;
    --glow-purple: 0 0 40px rgba(168, 85, 247, 0.35);
    --glow-cyan: 0 0 30px rgba(34, 211, 238, 0.25);
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 40% at 0% 80%, rgba(244, 63, 94, 0.08), transparent);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #67e8f9; }

.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 420px; }

/* Header */
.site-header {
    background: rgba(5, 5, 8, 0.85);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.logo .logo-one { color: var(--one); text-shadow: 0 0 16px var(--one-glow); }
.logo .logo-or { color: var(--muted); font-weight: 600; font-size: 0.85em; margin: 0 0.1em; }
.logo .logo-two { color: var(--two); text-shadow: 0 0 16px var(--two-glow); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover, .main-nav a.nav-active {
    color: var(--text);
    background: rgba(168, 85, 247, 0.12);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--accent-2);
    font-weight: 700;
}

.nav-pill strong { color: var(--text); }

.inline-form { display: inline; margin: 0; }

.link-btn {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.88rem;
}

.link-btn:hover { color: var(--danger); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 50%, var(--accent-2) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--glow-purple), 0 4px 0 #5b21b6;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5), 0 4px 0 #5b21b6;
}

.btn-primary:active { transform: translateY(2px); box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }

.btn-outline {
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text);
    background: rgba(18, 16, 28, 0.8);
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.flash {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin: 1rem auto;
    font-weight: 600;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(74, 222, 128, 0.1);
    color: var(--win);
    border-color: rgba(74, 222, 128, 0.3);
}

.flash-error {
    background: rgba(251, 113, 133, 0.1);
    color: var(--danger);
    border-color: rgba(251, 113, 133, 0.3);
}

.flash-error ul { margin: 0; padding-left: 1.1rem; }

/* Hero */
.hero {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr auto 1fr; }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    order: -1;
}

@media (min-width: 900px) {
    .hero-visual { order: 0; }
}

.hero-digit {
    width: clamp(100px, 18vw, 160px);
    height: clamp(100px, 18vw, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    border-radius: var(--radius-lg);
    border: 3px solid;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.hero-digit-one {
    color: var(--one);
    border-color: var(--one);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 60px var(--one-glow), inset 0 0 40px rgba(59, 130, 246, 0.1);
    animation-delay: 0s;
}

.hero-digit-two {
    color: var(--two);
    border-color: var(--two);
    background: rgba(244, 63, 94, 0.12);
    box-shadow: 0 0 60px var(--two-glow), inset 0 0 40px rgba(244, 63, 94, 0.1);
    animation-delay: 0.5s;
}

.hero-vs {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.2em;
}

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

.hero-copy { text-align: center; }

@media (min-width: 900px) {
    .hero-copy { text-align: left; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 .hl-one { color: var(--one); text-shadow: 0 0 20px var(--one-glow); }
.hero h1 .hl-two { color: var(--two); text-shadow: 0 0 20px var(--two-glow); }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--accent-2);
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 4px;
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 48ch;
    margin: 0 auto 1.5rem;
    font-weight: 500;
}

@media (min-width: 900px) {
    .lead { margin-left: 0; margin-right: 0; }
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .hero-stats { justify-content: flex-start; }
}

.stat-pill {
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius);
    min-width: 100px;
}

.stat-pill strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent-2);
}

.stat-pill span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .hero-actions { justify-content: flex-start; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: rgba(18, 16, 28, 0.6); border-block: 1px solid rgba(168, 85, 247, 0.1); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-intro { color: var(--muted); margin: 0; font-size: 1rem; }

/* Room cards */
.room-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.room-card {
    position: relative;
    background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.room-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--one), var(--accent), var(--two));
    opacity: 0.6;
}

.room-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: var(--glow-purple);
}

.room-card.room-active { border-color: rgba(244, 63, 94, 0.5); }
.room-card.room-active::before { background: var(--two); opacity: 1; animation: pulse-bar 1.5s infinite; }

@keyframes pulse-bar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.room-duration {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.room-duration small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-top: 0.15rem;
}

.room-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-desc::before {
    content: "▸";
    color: var(--accent);
}

.badge {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.badge-live {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.5);
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.badge-soon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-wait {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* Leaderboard */
.leader-list { list-style: none; padding: 0; margin: 0; }

.leader-list li {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.leader-list li:hover { border-color: rgba(168, 85, 247, 0.3); }

.leader-list li.rank-gold { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); }
.leader-list li.rank-silver { border-color: rgba(192, 192, 192, 0.3); }
.leader-list li.rank-bronze { border-color: rgba(205, 127, 50, 0.3); }

.leader-list .rank {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--muted);
    font-size: 0.95rem;
}

.leader-list li.rank-gold .rank { color: var(--gold); }
.leader-list .name { font-weight: 700; font-size: 1.05rem; }
.leader-list .score {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-2);
    font-size: 0.95rem;
}

/* Rules */
.rules-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rule-card {
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    padding-left: 3.5rem;
}

.rule-card .rule-num {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.6;
}

.rule-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.rule-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Auth */
.auth-panel {
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glow-purple);
}

.auth-panel h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.35rem;
    text-align: center;
}

.auth-panel .auth-sub { text-align: center; color: var(--muted); margin: 0 0 1.5rem; font-size: 0.95rem; }

.auth-form .field { margin-bottom: 1.1rem; }

.auth-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.auth-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    background: var(--bg-2);
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-form .error { color: var(--danger); font-size: 0.85rem; display: block; margin-top: 0.25rem; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-switch { color: var(--muted); margin-top: 1.5rem; text-align: center; }

/* Leaderboard table */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}

.leaderboard-table th {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 0.5rem 1rem;
    text-align: left;
}

.leaderboard-table td {
    padding: 0.9rem 1rem;
    background: var(--surface);
    border-block: 1px solid rgba(168, 85, 247, 0.1);
    font-weight: 600;
}

.leaderboard-table td:first-child { border-left: 1px solid rgba(168, 85, 247, 0.1); border-radius: 8px 0 0 8px; }
.leaderboard-table td:last-child { border-right: 1px solid rgba(168, 85, 247, 0.1); border-radius: 0 8px 8px 0; }

.leaderboard-table tr.is-you td {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.25);
}

.leaderboard-table .rank-cell {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
}

.leaderboard-table-wrap { overflow-x: auto; }

/* Game arena */
.game-shell {
    padding: 1.5rem 0 3rem;
    min-height: 75vh;
}

.game-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.game-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    position: relative;
}

.game-header::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.game-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-timers { display: flex; gap: 0.75rem; }

.timer-box {
    background: var(--bg-2);
    border: 2px solid rgba(34, 211, 238, 0.35);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    text-align: center;
    min-width: 90px;
    position: relative;
}

.timer-box.urgent {
    border-color: var(--danger);
    animation: urgent-pulse 0.8s infinite;
}

@keyframes urgent-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.4); }
    50% { box-shadow: 0 0 20px rgba(251, 113, 133, 0.6); }
}

.timer-label {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.timer-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
}

.timer-box.urgent .timer-value { color: var(--danger); }

.game-grid { display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 900px) { .game-grid { grid-template-columns: 1fr 300px; } }

.game-main .phase-card {
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 2px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-main .phase-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(168, 85, 247, 0.15);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.phase-card h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.phase-card p { color: var(--muted); max-width: 42ch; margin: 0; }

.countdown-big {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 7rem);
    font-weight: 900;
    color: var(--accent-2);
    margin: 0;
    text-shadow: 0 0 60px rgba(34, 211, 238, 0.6);
    animation: countdown-pop 1s ease-in-out infinite;
}

@keyframes countdown-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.waiting-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
}

.waiting-pulse::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.vote-buttons {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.vote-btn {
    width: clamp(130px, 28vw, 180px);
    height: clamp(130px, 28vw, 180px);
    border-radius: 24px;
    border: 4px solid;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
    position: relative;
}

.vote-one {
    color: #93c5fd;
    border-color: var(--one);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.08) 100%);
    box-shadow: 0 0 40px var(--one-glow), 0 8px 0 #1d4ed8;
}

.vote-two {
    color: #fda4af;
    border-color: var(--two);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0.08) 100%);
    box-shadow: 0 0 40px var(--two-glow), 0 8px 0 #be123c;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-6px) scale(1.02);
    filter: brightness(1.15);
}

.vote-btn:active:not(:disabled) { transform: translateY(2px); }

.vote-one:hover:not(:disabled) { box-shadow: 0 0 60px var(--one-glow), 0 8px 0 #1d4ed8; }
.vote-two:hover:not(:disabled) { box-shadow: 0 0 60px var(--two-glow), 0 8px 0 #be123c; }

.vote-btn.selected {
    transform: scale(1.06);
    filter: brightness(1.2);
}

.vote-btn.selected.vote-one { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.4), 0 0 50px var(--one-glow); }
.vote-btn.selected.vote-two { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.4), 0 0 50px var(--two-glow); }

.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: grayscale(0.3); }

.vote-hint { font-size: 0.9rem; color: var(--muted); }

.result-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem 0;
}

.result-bar {
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 2px solid;
    transition: transform 0.3s;
}

.result-one {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--one);
}

.result-two {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--two);
}

.result-bar.winner { transform: scale(1.05); box-shadow: 0 0 30px rgba(74, 222, 128, 0.3); }

.result-bar span {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-bar strong {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
}

.result-one strong { color: var(--one); }
.result-two strong { color: var(--two); }

.result-message {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--win);
    text-transform: uppercase;
}

.game-sidebar {
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    position: relative;
}

.game-sidebar h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-2);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.scoreboard { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: score; }

.scoreboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.35rem;
    background: var(--bg-2);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.scoreboard li.you {
    color: var(--accent-2);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

.scoreboard li .sb-score {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent-2);
}

.leave-form { margin-top: 1rem; }

.site-footer {
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 2rem 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
    background: rgba(5, 5, 8, 0.5);
}

.site-footer strong { color: var(--text); }

.pagination {
    display: flex;
    gap: 0.35rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.pagination span.current {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    border-color: transparent;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}

@media (max-width: 600px) {
    .main-nav a:not(.btn) { display: none; }
    .vote-buttons { gap: 1rem; }
}
