/* ARENA 3·2·1 — Dynamic Multi-Universe Stadium & Gaming Theme System */
:root {
  --turf-dark: #061810;
  --turf-mid: #0a2518;
  --turf-card: #0c2218;
  --turf-card-strong: #091b13;
  --ink-panel: #0e1e19;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --muted: #b4cec1;
  --lime: #22c55e;
  --lime-bright: #4ade80;
  --lime-deep: #15803d;
  --gold: #ffbe0b;
  --gold-deep: #b45309;
  --orange: #ff5722;
  --orange-deep: #c2410c;
  --blue: #2563eb;
  --sky: #38bdf8;
  --crimson: #ef4444;
  --crimson-deep: #991b1b;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);

  /* Theme-driven CSS Variables (default = Football Stadium) */
  --th-bg-page: #061810;
  --th-topbar-bg: rgba(6, 22, 15, 0.92);
  --th-topbar-border: rgba(34, 197, 94, 0.35);
  --th-ticker-bg: linear-gradient(90deg, #092116, #103322, #092116);
  --th-hero-bg: linear-gradient(125deg, rgba(16, 61, 38, 0.94) 0%, rgba(9, 32, 22, 0.96) 62%, rgba(25, 42, 20, 0.94) 100%);
  --th-hero-border: rgba(74, 222, 128, 0.38);
  --th-card-bg: linear-gradient(180deg, rgba(12, 36, 25, 0.96), rgba(7, 23, 16, 0.96));
  --th-card-border: rgba(74, 222, 128, 0.28);
  --th-showcase-bg: linear-gradient(180deg, #071911, #0c2a1b);
  --th-stage-bg: linear-gradient(180deg, rgba(11, 35, 24, 0.96), rgba(6, 20, 14, 0.98));
  --th-accent: #ffbe0b;
  --th-accent-2: #22c55e;
  --th-accent-text: #061810;
  --th-flood-left: #ffbe0b;
  --th-flood-right: #22c55e;
  --th-muted: #b4cec1;
  --th-input-bg: #04120b;
  --th-modal-bg: #081e14;
  --th-modal-head: linear-gradient(90deg, #0e3221, #081e14);
}

/* ==================== PER-GAME DYNAMIC THEMES ==================== */

/* 🏆 League of Legends & E-Spor (Hextech Sapphire & Runeterra Gold) */
body[data-theme="lol"] {
  --th-bg-page: #050f1f;
  --th-topbar-bg: rgba(6, 17, 36, 0.93);
  --th-topbar-border: rgba(200, 155, 60, 0.45);
  --th-ticker-bg: linear-gradient(90deg, #071730, #0d2b4e, #071730);
  --th-hero-bg: linear-gradient(125deg, rgba(12, 42, 79, 0.95) 0%, rgba(7, 22, 46, 0.97) 58%, rgba(45, 36, 16, 0.92) 100%);
  --th-hero-border: rgba(10, 200, 185, 0.45);
  --th-card-bg: linear-gradient(180deg, rgba(11, 30, 56, 0.96), rgba(6, 16, 33, 0.97));
  --th-card-border: rgba(200, 155, 60, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #06152a, #0b2646);
  --th-stage-bg: linear-gradient(180deg, rgba(10, 29, 54, 0.96), rgba(5, 14, 30, 0.98));
  --th-accent: #f0c451;
  --th-accent-2: #0ac8b9;
  --th-flood-left: #0ac8b9;
  --th-flood-right: #c89b3c;
  --th-muted: #a5c4e0;
  --th-input-bg: #040d1c;
  --th-modal-bg: #07172e;
  --th-modal-head: linear-gradient(90deg, #0d2b52, #07172e);
}

/* 🎯 Valorant & E-Spor (Radianite Crimson & Tactical Obsidian) */
body[data-theme="valorant"] {
  --th-bg-page: #0f1620;
  --th-topbar-bg: rgba(15, 22, 32, 0.94);
  --th-topbar-border: rgba(255, 70, 85, 0.52);
  --th-ticker-bg: linear-gradient(90deg, #1b121b, #36131c, #1b121b);
  --th-hero-bg: linear-gradient(125deg, rgba(68, 18, 28, 0.94) 0%, rgba(18, 25, 36, 0.97) 58%, rgba(28, 16, 24, 0.96) 100%);
  --th-hero-border: rgba(255, 70, 85, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(24, 32, 46, 0.96), rgba(14, 19, 28, 0.97));
  --th-card-border: rgba(255, 70, 85, 0.35);
  --th-showcase-bg: linear-gradient(180deg, #121a26, #28131d);
  --th-stage-bg: linear-gradient(180deg, rgba(23, 30, 44, 0.96), rgba(13, 17, 26, 0.98));
  --th-accent: #ff4655;
  --th-accent-2: #38bdf8;
  --th-accent-text: #ffffff;
  --th-flood-left: #ff4655;
  --th-flood-right: #38bdf8;
  --th-muted: #b8c4d6;
  --th-input-bg: #0a0f17;
  --th-modal-bg: #121a26;
  --th-modal-head: linear-gradient(90deg, #3a141f, #121a26);
}

/* 🔫 CS2 & E-Spor (Tactical Amber Orange & CT Steel) */
body[data-theme="cs2"] {
  --th-bg-page: #0e141e;
  --th-topbar-bg: rgba(14, 20, 30, 0.94);
  --th-topbar-border: rgba(245, 158, 11, 0.5);
  --th-ticker-bg: linear-gradient(90deg, #191d28, #2b2318, #191d28);
  --th-hero-bg: linear-gradient(125deg, rgba(56, 38, 16, 0.95) 0%, rgba(19, 28, 42, 0.97) 58%, rgba(16, 34, 54, 0.95) 100%);
  --th-hero-border: rgba(245, 158, 11, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(22, 31, 46, 0.96), rgba(13, 18, 28, 0.97));
  --th-card-border: rgba(245, 158, 11, 0.35);
  --th-showcase-bg: linear-gradient(180deg, #131b29, #292116);
  --th-stage-bg: linear-gradient(180deg, rgba(22, 31, 46, 0.96), rgba(12, 18, 27, 0.98));
  --th-accent: #f59e0b;
  --th-accent-2: #60a5fa;
  --th-flood-left: #ff7a00;
  --th-flood-right: #3b82f6;
  --th-muted: #bcc7d8;
  --th-input-bg: #090e16;
  --th-modal-bg: #121a27;
  --th-modal-head: linear-gradient(90deg, #382610, #121a27);
}

/* 🐉 World of Warcraft (Azeroth Sapphire, Frostmourne & Legendary Gold) */
body[data-theme="wow"] {
  --th-bg-page: #090e21;
  --th-topbar-bg: rgba(9, 14, 33, 0.94);
  --th-topbar-border: rgba(245, 158, 11, 0.5);
  --th-ticker-bg: linear-gradient(90deg, #121736, #281b3b, #121736);
  --th-hero-bg: linear-gradient(125deg, rgba(25, 34, 82, 0.95) 0%, rgba(13, 18, 44, 0.97) 58%, rgba(58, 20, 24, 0.92) 100%);
  --th-hero-border: rgba(245, 158, 11, 0.5);
  --th-card-bg: linear-gradient(180deg, rgba(18, 25, 58, 0.96), rgba(10, 14, 34, 0.97));
  --th-card-border: rgba(245, 158, 11, 0.36);
  --th-showcase-bg: linear-gradient(180deg, #0d1433, #1e2754);
  --th-stage-bg: linear-gradient(180deg, rgba(17, 25, 56, 0.96), rgba(9, 13, 31, 0.98));
  --th-accent: #fbbf24;
  --th-accent-2: #38bdf8;
  --th-flood-left: #3b82f6;
  --th-flood-right: #dc2626;
  --th-muted: #b8c4e8;
  --th-input-bg: #060a1a;
  --th-modal-bg: #0d1430;
  --th-modal-head: linear-gradient(90deg, #1e2860, #0d1430);
}

/* 🚗 GTA Serisi (Vice City Hot Pink & Miami Sunset Orange) */
body[data-theme="gta"] {
  --th-bg-page: #140720;
  --th-topbar-bg: rgba(20, 7, 32, 0.94);
  --th-topbar-border: rgba(236, 72, 153, 0.55);
  --th-ticker-bg: linear-gradient(90deg, #250b3a, #421242, #250b3a);
  --th-hero-bg: linear-gradient(125deg, rgba(96, 18, 86, 0.94) 0%, rgba(30, 11, 52, 0.97) 55%, rgba(105, 36, 22, 0.92) 100%);
  --th-hero-border: rgba(244, 114, 182, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(38, 14, 62, 0.96), rgba(20, 7, 34, 0.97));
  --th-card-border: rgba(244, 114, 182, 0.36);
  --th-showcase-bg: linear-gradient(180deg, #1f0a34, #3d1246);
  --th-stage-bg: linear-gradient(180deg, rgba(37, 13, 60, 0.96), rgba(18, 6, 32, 0.98));
  --th-accent: #fb7185;
  --th-accent-2: #fb923c;
  --th-accent-text: #ffffff;
  --th-flood-left: #ec4899;
  --th-flood-right: #fb923c;
  --th-muted: #e2bde8;
  --th-input-bg: #0f0519;
  --th-modal-bg: #1e0a32;
  --th-modal-head: linear-gradient(90deg, #521459, #1e0a32);
}

/* ☢️ Half-Life & Portal (Black Mesa HEV Orange & Industrial Hazard) */
body[data-theme="halflife"] {
  --th-bg-page: #14100b;
  --th-topbar-bg: rgba(20, 16, 11, 0.94);
  --th-topbar-border: rgba(249, 115, 22, 0.55);
  --th-ticker-bg: linear-gradient(90deg, #21170d, #3b220d, #21170d);
  --th-hero-bg: linear-gradient(125deg, rgba(84, 38, 10, 0.95) 0%, rgba(28, 22, 16, 0.97) 58%, rgba(20, 32, 42, 0.95) 100%);
  --th-hero-border: rgba(251, 146, 60, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(36, 26, 18, 0.96), rgba(20, 15, 11, 0.97));
  --th-card-border: rgba(249, 115, 22, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #1e150e, #36200d);
  --th-stage-bg: linear-gradient(180deg, rgba(34, 24, 16, 0.96), rgba(19, 14, 10, 0.98));
  --th-accent: #ff7a00;
  --th-accent-2: #38bdf8;
  --th-accent-text: #140b03;
  --th-flood-left: #ff6a00;
  --th-flood-right: #38bdf8;
  --th-muted: #d6c3b0;
  --th-input-bg: #0e0b08;
  --th-modal-bg: #1d150e;
  --th-modal-head: linear-gradient(90deg, #4f2508, #1d150e);
}

/* 🐻 FNAF Serisi (Purple Guy Violet & Fazbear Security Cam) */
body[data-theme="fnaf"] {
  --th-bg-page: #0e0717;
  --th-topbar-bg: rgba(14, 7, 23, 0.95);
  --th-topbar-border: rgba(168, 85, 247, 0.55);
  --th-ticker-bg: linear-gradient(90deg, #1b0c2e, #311047, #1b0c2e);
  --th-hero-bg: linear-gradient(125deg, rgba(64, 18, 96, 0.95) 0%, rgba(19, 10, 31, 0.98) 58%, rgba(56, 28, 12, 0.93) 100%);
  --th-hero-border: rgba(192, 132, 252, 0.5);
  --th-card-bg: linear-gradient(180deg, rgba(28, 14, 46, 0.96), rgba(14, 7, 24, 0.98));
  --th-card-border: rgba(168, 85, 247, 0.4);
  --th-showcase-bg: linear-gradient(180deg, #160a26, #2d1247);
  --th-stage-bg: linear-gradient(180deg, rgba(26, 13, 42, 0.96), rgba(13, 6, 22, 0.98));
  --th-accent: #c084fc;
  --th-accent-2: #f59e0b;
  --th-accent-text: #12051f;
  --th-flood-left: #9333ea;
  --th-flood-right: #f59e0b;
  --th-muted: #cfc0e6;
  --th-input-bg: #090410;
  --th-modal-bg: #170b28;
  --th-modal-head: linear-gradient(90deg, #3e1463, #170b28);
}

/* ⛏️ Minecraft (Blocky Overworld Creeper Green & Diamond Cyan) */
body[data-theme="minecraft"] {
  --th-bg-page: #0a1710;
  --th-topbar-bg: rgba(10, 23, 16, 0.94);
  --th-topbar-border: rgba(132, 204, 22, 0.5);
  --th-ticker-bg: linear-gradient(90deg, #142819, #1f3c22, #142819);
  --th-hero-bg: linear-gradient(125deg, rgba(28, 72, 34, 0.95) 0%, rgba(14, 30, 22, 0.97) 58%, rgba(14, 52, 62, 0.94) 100%);
  --th-hero-border: rgba(163, 230, 53, 0.5);
  --th-card-bg: linear-gradient(180deg, rgba(18, 40, 26, 0.96), rgba(10, 22, 16, 0.97));
  --th-card-border: rgba(132, 204, 22, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #102418, #193b25);
  --th-stage-bg: linear-gradient(180deg, rgba(16, 38, 25, 0.96), rgba(9, 20, 14, 0.98));
  --th-accent: #a3e635;
  --th-accent-2: #22d3ee;
  --th-flood-left: #84cc16;
  --th-flood-right: #22d3ee;
  --th-muted: #bce0c7;
  --th-input-bg: #06100a;
  --th-modal-bg: #102417;
  --th-modal-head: linear-gradient(90deg, #214a28, #102417);
}

/* 🤠 Red Dead Redemption 2 (Outlaw Blood Red & Western Sunset Gold) */
body[data-theme="rdr2"] {
  --th-bg-page: #190707;
  --th-topbar-bg: rgba(25, 7, 7, 0.94);
  --th-topbar-border: rgba(220, 38, 38, 0.58);
  --th-ticker-bg: linear-gradient(90deg, #2b0a0a, #4d1212, #2b0a0a);
  --th-hero-bg: linear-gradient(125deg, rgba(112, 20, 18, 0.95) 0%, rgba(32, 10, 10, 0.97) 58%, rgba(66, 32, 10, 0.94) 100%);
  --th-hero-border: rgba(248, 113, 113, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(44, 13, 13, 0.96), rgba(22, 7, 7, 0.97));
  --th-card-border: rgba(239, 68, 68, 0.4);
  --th-showcase-bg: linear-gradient(180deg, #260a0a, #471412);
  --th-stage-bg: linear-gradient(180deg, rgba(42, 12, 12, 0.96), rgba(20, 6, 6, 0.98));
  --th-accent: #fbbf24;
  --th-accent-2: #ef4444;
  --th-flood-left: #dc2626;
  --th-flood-right: #f59e0b;
  --th-muted: #e6c0be;
  --th-input-bg: #110404;
  --th-modal-bg: #220909;
  --th-modal-head: linear-gradient(90deg, #5e1513, #220909);
}

/* 🐺 The Witcher (Silver Wolf Steel & Igni Crimson) */
body[data-theme="witcher"] {
  --th-bg-page: #0d1015;
  --th-topbar-bg: rgba(13, 16, 21, 0.95);
  --th-topbar-border: rgba(226, 232, 240, 0.42);
  --th-ticker-bg: linear-gradient(90deg, #161b24, #2b161a, #161b24);
  --th-hero-bg: linear-gradient(125deg, rgba(40, 46, 58, 0.95) 0%, rgba(16, 20, 28, 0.97) 56%, rgba(68, 16, 20, 0.93) 100%);
  --th-hero-border: rgba(226, 232, 240, 0.45);
  --th-card-bg: linear-gradient(180deg, rgba(25, 30, 40, 0.96), rgba(14, 17, 23, 0.97));
  --th-card-border: rgba(203, 213, 225, 0.34);
  --th-showcase-bg: linear-gradient(180deg, #141820, #28181c);
  --th-stage-bg: linear-gradient(180deg, rgba(24, 28, 38, 0.96), rgba(13, 16, 22, 0.98));
  --th-accent: #e2e8f0;
  --th-accent-2: #dc2626;
  --th-accent-text: #0b0e14;
  --th-flood-left: #94a3b8;
  --th-flood-right: #dc2626;
  --th-muted: #c2ccd9;
  --th-input-bg: #080b0f;
  --th-modal-bg: #141820;
  --th-modal-head: linear-gradient(90deg, #33191d, #141820);
}

/* 🪓 God of War (Midgard Nordic Frost & Sparta Red) */
body[data-theme="gow"] {
  --th-bg-page: #07121e;
  --th-topbar-bg: rgba(7, 18, 30, 0.94);
  --th-topbar-border: rgba(56, 189, 248, 0.5);
  --th-ticker-bg: linear-gradient(90deg, #0c1f33, #2c141a, #0c1f33);
  --th-hero-bg: linear-gradient(125deg, rgba(16, 56, 88, 0.95) 0%, rgba(10, 22, 36, 0.97) 58%, rgba(74, 18, 22, 0.93) 100%);
  --th-hero-border: rgba(125, 211, 252, 0.52);
  --th-card-bg: linear-gradient(180deg, rgba(14, 34, 54, 0.96), rgba(8, 19, 32, 0.97));
  --th-card-border: rgba(56, 189, 248, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #0b1c2e, #15344f);
  --th-stage-bg: linear-gradient(180deg, rgba(13, 32, 52, 0.96), rgba(7, 18, 30, 0.98));
  --th-accent: #7dd3fc;
  --th-accent-2: #ef4444;
  --th-accent-text: #061422;
  --th-flood-left: #38bdf8;
  --th-flood-right: #dc2626;
  --th-muted: #b6d4eb;
  --th-input-bg: #040d17;
  --th-modal-bg: #0b1c2d;
  --th-modal-head: linear-gradient(90deg, #163d61, #0b1c2d);
}

/* 💀 Undertale (Underground Black-Navy, Determination Red & Sans Cyan) */
body[data-theme="undertale"] {
  --th-bg-page: #050510;
  --th-topbar-bg: rgba(5, 5, 16, 0.96);
  --th-topbar-border: rgba(255, 255, 255, 0.55);
  --th-ticker-bg: linear-gradient(90deg, #0b0b20, #24091a, #0b0b20);
  --th-hero-bg: linear-gradient(125deg, rgba(14, 24, 56, 0.96) 0%, rgba(7, 7, 18, 0.98) 58%, rgba(56, 10, 24, 0.94) 100%);
  --th-hero-border: rgba(255, 255, 255, 0.65);
  --th-card-bg: linear-gradient(180deg, rgba(14, 14, 30, 0.97), rgba(6, 6, 16, 0.98));
  --th-card-border: rgba(56, 189, 248, 0.45);
  --th-showcase-bg: linear-gradient(180deg, #09091a, #141430);
  --th-stage-bg: linear-gradient(180deg, rgba(12, 12, 26, 0.97), rgba(5, 5, 14, 0.98));
  --th-accent: #f43f5e;
  --th-accent-2: #38bdf8;
  --th-accent-text: #ffffff;
  --th-flood-left: #38bdf8;
  --th-flood-right: #f43f5e;
  --th-muted: #cbd5f5;
  --th-input-bg: #03030a;
  --th-modal-bg: #090918;
  --th-modal-head: linear-gradient(90deg, #1b1b42, #090918);
}

/* 💍 Elden Ring (Erdtree Radiant Gold & Lands Between Obsidian) */
body[data-theme="eldenring"] {
  --th-bg-page: #110e07;
  --th-topbar-bg: rgba(17, 14, 7, 0.95);
  --th-topbar-border: rgba(250, 204, 21, 0.52);
  --th-ticker-bg: linear-gradient(90deg, #1e180b, #382a0e, #1e180b);
  --th-hero-bg: linear-gradient(125deg, rgba(74, 54, 14, 0.94) 0%, rgba(22, 18, 10, 0.98) 58%, rgba(54, 24, 12, 0.94) 100%);
  --th-hero-border: rgba(250, 204, 21, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(31, 25, 13, 0.96), rgba(16, 13, 7, 0.98));
  --th-card-border: rgba(250, 204, 21, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #1a150a, #332710);
  --th-stage-bg: linear-gradient(180deg, rgba(29, 23, 12, 0.96), rgba(15, 12, 6, 0.98));
  --th-accent: #facc15;
  --th-accent-2: #f97316;
  --th-accent-text: #140f04;
  --th-flood-left: #eab308;
  --th-flood-right: #ea580c;
  --th-muted: #ded2b4;
  --th-input-bg: #0b0904;
  --th-modal-bg: #1a150b;
  --th-modal-head: linear-gradient(90deg, #47340d, #1a150b);
}

/* ☣️ Resident Evil (Umbrella Biohazard Crimson & T-Virus Green) */
body[data-theme="re"] {
  --th-bg-page: #11080a;
  --th-topbar-bg: rgba(17, 8, 10, 0.95);
  --th-topbar-border: rgba(239, 68, 68, 0.55);
  --th-ticker-bg: linear-gradient(90deg, #200a0e, #162411, #200a0e);
  --th-hero-bg: linear-gradient(125deg, rgba(78, 14, 20, 0.95) 0%, rgba(20, 10, 12, 0.98) 58%, rgba(24, 48, 16, 0.93) 100%);
  --th-hero-border: rgba(239, 68, 68, 0.55);
  --th-card-bg: linear-gradient(180deg, rgba(32, 14, 17, 0.96), rgba(16, 7, 9, 0.98));
  --th-card-border: rgba(132, 204, 22, 0.36);
  --th-showcase-bg: linear-gradient(180deg, #1c0b0e, #2e1116);
  --th-stage-bg: linear-gradient(180deg, rgba(30, 13, 16, 0.96), rgba(15, 7, 9, 0.98));
  --th-accent: #ef4444;
  --th-accent-2: #84cc16;
  --th-accent-text: #ffffff;
  --th-flood-left: #dc2626;
  --th-flood-right: #65a30d;
  --th-muted: #d6bec2;
  --th-input-bg: #0b0406;
  --th-modal-bg: #1a0b0e;
  --th-modal-head: linear-gradient(90deg, #4d1016, #1a0b0e);
}

/* 🌌 Tüm Oyunlar (Multiverse Aurora) */
body[data-theme="all_games"] {
  --th-bg-page: #080c1f;
  --th-topbar-bg: rgba(8, 12, 31, 0.94);
  --th-topbar-border: rgba(56, 189, 248, 0.45);
  --th-ticker-bg: linear-gradient(90deg, #0f1636, #281542, #0f2c2b);
  --th-hero-bg: linear-gradient(125deg, rgba(16, 48, 72, 0.95) 0%, rgba(20, 14, 48, 0.97) 52%, rgba(62, 18, 56, 0.94) 100%);
  --th-hero-border: rgba(56, 189, 248, 0.5);
  --th-card-bg: linear-gradient(180deg, rgba(18, 22, 52, 0.96), rgba(10, 13, 32, 0.97));
  --th-card-border: rgba(168, 85, 247, 0.38);
  --th-showcase-bg: linear-gradient(180deg, #101536, #231545);
  --th-stage-bg: linear-gradient(180deg, rgba(17, 22, 50, 0.96), rgba(9, 12, 30, 0.98));
  --th-accent: #38bdf8;
  --th-accent-2: #e879f9;
  --th-flood-left: #06b6d4;
  --th-flood-right: #d946ef;
  --th-muted: #bdc7e8;
  --th-input-bg: #060917;
  --th-modal-bg: #111636;
  --th-modal-head: linear-gradient(90deg, #281852, #111636);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--th-bg-page);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease;
}

/* Dynamic Background Layer (Football Pitch by default, transforms per game!) */
.stadium-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(34, 197, 94, 0.055) 0px,
      rgba(34, 197, 94, 0.055) 72px,
      rgba(0, 0, 0, 0.06) 72px,
      rgba(0, 0, 0, 0.06) 144px
    ),
    radial-gradient(ellipse 85% 55% at 50% -10%, #144d2f 0%, #071d12 58%, #04110b 100%);
  transition: background 0.4s ease;
}

body:not([data-theme="football"]) .stadium-bg {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--th-flood-left) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 100%, var(--th-flood-right) 0%, transparent 55%),
    var(--th-bg-page);
}

/* Subtle dark veil over radial floodlights for non-football themes so text pops cleanly */
body:not([data-theme="football"]) .stadium-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.62);
}

.floodlight {
  position: absolute;
  top: -160px;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.34;
  transition: background 0.4s ease;
}

.floodlight.left {
  left: -140px;
  background: radial-gradient(circle, var(--th-flood-left), transparent 70%);
}

.floodlight.right {
  right: -140px;
  background: radial-gradient(circle, var(--th-flood-right), transparent 70%);
}

/* Default Football Chalk Pitch Lines */
.pitch-lines {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 50% 54%, transparent 150px, #ffffff 151px, #ffffff 154px, transparent 155px),
    radial-gradient(circle at 50% 54%, #ffffff 0px, #ffffff 6px, transparent 7px),
    linear-gradient(to right, transparent 49.85%, #ffffff 49.95%, #ffffff 50.05%, transparent 50.15%);
  transition: opacity 0.35s ease;
}

/* Per-Game Background Geometry Patterns (replaces Football pitch lines!) */
body[data-theme="lol"] .pitch-lines {
  opacity: 0.09;
  background-image:
    linear-gradient(30deg, rgba(200, 155, 60, 0.35) 1px, transparent 1px),
    linear-gradient(150deg, rgba(10, 200, 185, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
}

body[data-theme="valorant"] .pitch-lines {
  opacity: 0.1;
  background-image:
    linear-gradient(-45deg, rgba(255, 70, 85, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
}

body[data-theme="cs2"] .pitch-lines {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 120px, rgba(245, 158, 11, 0.5) 121px, transparent 123px),
    radial-gradient(circle at 50% 50%, transparent 240px, rgba(59, 130, 246, 0.4) 241px, transparent 243px),
    linear-gradient(to right, transparent 49.9%, rgba(245, 158, 11, 0.4) 50%, transparent 50.1%),
    linear-gradient(to bottom, transparent 49.9%, rgba(245, 158, 11, 0.4) 50%, transparent 50.1%);
}

body[data-theme="wow"] .pitch-lines {
  opacity: 0.09;
  background-image:
    linear-gradient(45deg, rgba(251, 191, 36, 0.3) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(56, 189, 248, 0.3) 1px, transparent 1px);
  background-size: 56px 56px;
}

body[data-theme="gta"] .pitch-lines {
  opacity: 0.12;
  background-image:
    linear-gradient(to bottom, rgba(236, 72, 153, 0.3) 1px, transparent 1px),
    linear-gradient(to right, rgba(251, 146, 60, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
}

body[data-theme="halflife"] .pitch-lines {
  opacity: 0.09;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 122, 0, 0.28) 0px,
    rgba(255, 122, 0, 0.28) 10px,
    transparent 10px,
    transparent 42px
  );
}

body[data-theme="fnaf"] .pitch-lines {
  opacity: 0.11;
  background-image:
    linear-gradient(45deg, rgba(168, 85, 247, 0.32) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(168, 85, 247, 0.32) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(168, 85, 247, 0.32) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(168, 85, 247, 0.32) 75%);
  background-size: 52px 52px;
  background-position: 0 0, 0 26px, 26px -26px, -26px 0;
}

body[data-theme="minecraft"] .pitch-lines {
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(163, 230, 53, 0.26) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(163, 230, 53, 0.26) 2px, transparent 2px);
  background-size: 36px 36px;
}

body[data-theme="rdr2"] .pitch-lines {
  opacity: 0.08;
  background-image: radial-gradient(circle at 50% 35%, rgba(220, 38, 38, 0.45), transparent 65%);
}

body[data-theme="witcher"] .pitch-lines {
  opacity: 0.09;
  background-image:
    linear-gradient(60deg, rgba(226, 232, 240, 0.25) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(220, 38, 38, 0.25) 1px, transparent 1px);
  background-size: 60px 60px;
}

body[data-theme="gow"] .pitch-lines {
  opacity: 0.1;
  background-image:
    linear-gradient(135deg, rgba(125, 211, 252, 0.28) 1px, transparent 1px),
    linear-gradient(45deg, rgba(239, 68, 68, 0.2) 1px, transparent 1px);
  background-size: 64px 64px;
}

body[data-theme="undertale"] .pitch-lines {
  opacity: 0.14;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.14) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 2px, transparent 2px);
  background-size: 48px 48px;
}

body[data-theme="eldenring"] .pitch-lines {
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 50% 42%, transparent 110px, rgba(250, 204, 21, 0.48) 112px, transparent 114px),
    radial-gradient(circle at 46% 48%, transparent 110px, rgba(250, 204, 21, 0.35) 112px, transparent 114px),
    radial-gradient(circle at 54% 48%, transparent 110px, rgba(250, 204, 21, 0.35) 112px, transparent 114px);
}

body[data-theme="re"] .pitch-lines {
  opacity: 0.1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(239, 68, 68, 0.24) 0px,
    rgba(239, 68, 68, 0.24) 8px,
    transparent 8px,
    transparent 38px
  );
}

body[data-theme="all_games"] .pitch-lines {
  opacity: 0.1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.45) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--th-topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--th-topbar-border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  background: none;
  border: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
}

.brand-ball {
  font-size: 26px;
  display: inline-block;
  animation: ballBounce 3.6s ease-in-out infinite;
}

@keyframes ballBounce {
  0%, 86%, 100% { transform: translateY(0) rotate(0deg); }
  92% { transform: translateY(-4px) rotate(18deg); }
}

.brand-text {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.brand-accent {
  color: var(--gold);
}

.brand-pill {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  transform: skewX(-8deg);
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.55);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: #e2f5ea;
}

.nav-user-badge strong {
  color: var(--gold);
  font-weight: 800;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.nav-btn.icon-only {
  padding: 8px 11px;
  font-size: 15px;
}

.nav-btn.profile-pill {
  background: rgba(255, 190, 11, 0.16);
  border-color: rgba(255, 190, 11, 0.55);
  color: #fde68a;
}

.nav-btn.profile-pill:hover {
  background: rgba(255, 190, 11, 0.28);
  color: #ffffff;
}

.nav-btn.music-nav-btn {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}

.nav-btn.music-nav-btn.playing {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #86efac;
  color: #04170c;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

/* Sound Mixer Popover */
.sound-menu-wrap {
  position: relative;
}

.sound-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #081e14;
  border: 2px solid rgba(255, 190, 11, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sound-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-popover-head strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.vol-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vol-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #dcfce7;
}

.vol-label strong, .music-vol-bar strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #061810;
  box-shadow: 0 0 10px rgba(255, 190, 11, 0.5);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #061810;
  cursor: pointer;
}

.music-vol-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #dcfce7;
}

.music-vol-bar span {
  white-space: nowrap;
}

.music-vol-bar input[type="range"] {
  flex: 1;
}

/* ==================== LIVE BROADCAST TICKER ==================== */
.ticker-bar {
  position: relative;
  z-index: 10;
  background: var(--th-ticker-bg);
  border-bottom: 1px solid var(--th-topbar-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 34px;
  transition: background 0.35s ease;
}

.ticker-tag {
  flex-shrink: 0;
  background: var(--th-accent);
  color: var(--th-accent-text);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  box-shadow: 8px 0 18px rgba(0, 0, 0, 0.4);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 36px;
  padding-left: 24px;
  animation: tickerScroll 34s linear infinite;
  font-size: 13px;
  font-weight: 700;
  color: #dcfce7;
}

.ticker-track span b {
  color: var(--gold);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== SHELL & VIEWS ==================== */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 88px;
}

.view {
  display: none;
  animation: fadeUp 0.22s ease;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.center {
  text-align: center;
}

/* ==================== HERO ==================== */
.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: var(--th-hero-bg);
  border: 2px solid var(--th-hero-border);
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -35deg,
    transparent 0,
    transparent 24px,
    rgba(255, 255, 255, 0.025) 24px,
    rgba(255, 255, 255, 0.025) 48px
  );
}

.hero-content, .hero-showcase {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--th-accent-text);
  background: var(--th-accent);
  padding: 4px 13px;
  border-radius: 6px;
  transform: skewX(-6deg);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-gradient {
  color: var(--th-accent);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 550px;
}

.hero-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-chip {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--th-card-border);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-chip strong {
  color: var(--th-accent);
  font-size: 17px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.stat-chip span {
  font-size: 12px;
  color: var(--th-muted);
  font-weight: 600;
}

/* Showcase Match Card */
.hero-showcase {
  background: var(--th-showcase-bg);
  border: 2px solid var(--th-hero-border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.showcase-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: 14px;
}

.showcase-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.showcase-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.showcase-node span {
  font-size: 14px;
  font-weight: 800;
}

.showcase-x {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #07170f;
  font-weight: 900;
  font-size: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(255, 190, 11, 0.45);
}

.showcase-x::after {
  content: '×';
  transform: rotate(-45deg);
}

.showcase-x {
  font-size: 0;
}

.showcase-x::after {
  font-size: 26px;
}

.showcase-answer {
  margin-top: 16px;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
  font-weight: 800;
  font-size: 13.5px;
}

.showcase-clue-preview {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.sc-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}

.sc-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2f5ea;
}

/* ==================== UNIVERSE / CATEGORY PICKER GRID ==================== */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.uni-card {
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.uni-card:hover {
  transform: translateY(-2px);
  border-color: var(--th-accent);
  background: rgba(255, 255, 255, 0.1);
}

.uni-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.35));
  border-color: var(--th-accent);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 255, 255, 0.12);
}

.uni-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.uni-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uni-info strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.05;
}

.uni-info small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-uni-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 15px;
  padding: 3px 11px;
  border-radius: 8px;
  background: var(--th-accent);
  color: var(--th-accent-text);
  vertical-align: middle;
}

/* ==================== PROGRESSIVE CLUE ARENA STAGE ==================== */
.clue-stage {
  max-width: 760px;
  margin: 0 auto 22px;
}

.clue-stage-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.clue-uni-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #061810;
  text-transform: uppercase;
}

.clue-type-pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-transform: uppercase;
}

.clue-mask-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid var(--lime-bright);
  color: #bbf7d0;
  animation: fadeUp 0.22s ease;
}

.clue-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clue-box {
  background: rgba(5, 19, 12, 0.86);
  border: 2px solid rgba(74, 222, 128, 0.45);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.22s ease;
}

.clue-box.unlocked {
  animation: cluePop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.clue-box.locked {
  opacity: 0.5;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

@keyframes cluePop {
  0% { transform: scale(0.95); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

.clue-num {
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 190, 11, 0.2);
  color: var(--gold);
  margin-top: 1px;
}

.clue-box p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.clue-box.locked p {
  color: var(--muted);
  font-weight: 600;
}

.explorer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* ==================== MODE CARDS (VIBRANT STADIUM POSTERS) ==================== */
.section-heading {
  margin: 28px 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode-card {
  text-align: left;
  border-radius: var(--radius);
  padding: 22px 20px;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.mode-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.07);
}

.mode-card:active {
  transform: translateY(0px);
}

/* Distinct vibrant team-poster color identities */
#btnModeOnline {
  background: linear-gradient(155deg, #15803d 0%, #0a3b22 65%, #072617 100%);
  border-color: #4ade80;
  box-shadow: 0 6px 0 #0d4a26, 0 16px 32px rgba(22, 163, 74, 0.28);
}

#btnModeLocal {
  background: linear-gradient(155deg, #d97706 0%, #9a3412 65%, #5c1c09 100%);
  border-color: #fbbf24;
  box-shadow: 0 6px 0 #7c2d12, 0 16px 32px rgba(245, 158, 11, 0.25);
}

#btnModeBot {
  background: linear-gradient(155deg, #1d4ed8 0%, #1e3a8a 65%, #111e4d 100%);
  border-color: #60a5fa;
  box-shadow: 0 6px 0 #172554, 0 16px 32px rgba(37, 99, 235, 0.28);
}

#btnModeSolo {
  background: linear-gradient(155deg, #be123c 0%, #881337 65%, #4c0519 100%);
  border-color: #fb7185;
  box-shadow: 0 6px 0 #4c0519, 0 16px 32px rgba(225, 29, 72, 0.28);
}

.mode-badge {
  align-self: flex-start;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  transform: skewX(-6deg);
}

.mode-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.mode-card h3 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.05;
}

.mode-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.mode-cta {
  margin-top: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

/* Records Bar */
.records-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.record-item {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--th-card-border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-label {
  font-size: 13px;
  color: #cde8d8;
  font-weight: 700;
}

.record-item strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--gold);
}

/* ==================== SETUP & LOBBY ==================== */
.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-header p {
  margin: 2px 0 0;
}

.setup-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.glass-card {
  background: var(--th-card-bg);
  border: 2px solid var(--th-card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.card-title {
  margin: 0 0 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #dcfce7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

input[type="text"], input[type="url"], select {
  width: 100%;
  background: #04120b;
  border: 2px solid rgba(74, 222, 128, 0.3);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

input[type="text"]:focus, input[type="url"]:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.25);
}

.field-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

.field-hint.error {
  color: #fca5a5;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Pills */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #e2f5ea;
  padding: 9px 13px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.pill.active {
  background: var(--gold);
  border-color: #fde68a;
  color: #061810;
  font-weight: 800;
  box-shadow: 0 3px 0 #b45309;
}

.pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Tactile Arcade Push Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-mini, .btn-award, .btn-pass {
  font-family: inherit;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.12s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  color: #04170c;
  padding: 13px 20px;
  font-size: 15.5px;
  box-shadow: 0 5px 0 #15803d, 0 12px 24px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #15803d;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.lg, .btn-secondary.lg {
  padding: 15px 24px;
  font-size: 16.5px;
}

.btn-primary.full, .btn-ghost.full {
  width: 100%;
}

.btn-secondary {
  background: linear-gradient(180deg, #ffbe0b, #f59e0b);
  color: #08170e;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 4px 0 #b45309;
}

.btn-secondary:hover {
  filter: brightness(1.06);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b45309;
}

.btn-matchmake {
  width: 100%;
  font-family: inherit;
  font-weight: 900;
  border: none;
  border-radius: 13px;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffbe0b, #ff5722);
  color: #08150e;
  box-shadow: 0 5px 0 #9a3412, 0 14px 28px rgba(255, 87, 34, 0.32);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-matchmake:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-matchmake:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9a3412;
}

/* Matchmaking Radar */
.radar-box {
  text-align: center;
  padding: 16px 10px 8px;
}

.radar-spinner {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--gold);
  opacity: 0;
  animation: radarPulse 1.8s ease-out infinite;
}

.radar-ring.r2 {
  animation-delay: 0.9s;
  border-color: var(--lime-bright);
}

@keyframes radarPulse {
  0% { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.radar-core {
  font-size: 40px;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(255, 190, 11, 0.6));
}

.radar-title {
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
}

.radar-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: var(--lime-bright);
  margin: 12px 0 18px;
}

.radar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2f5ea;
  padding: 10px 16px;
  font-size: 13.5px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-mini {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-mini.accent {
  background: var(--gold);
  border-color: #fde68a;
  color: #061810;
}

/* Online Lobby */
.transport-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  margin-bottom: 16px;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.join-row {
  display: flex;
  gap: 10px;
}

.join-row input {
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
}

.lobby-code-box {
  background: #04130b;
  border: 2px dashed var(--gold);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.lobby-code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.lobby-code-row strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-right: auto;
}

.lobby-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lobby-slot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-role {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
}

.slot-status {
  font-size: 12px;
  font-weight: 700;
}

.slot-status.ok { color: var(--lime-bright); }
.slot-status.waiting { color: var(--gold); }

.lobby-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--gold);
}

.lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solo-info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(239, 68, 68, 0.14);
  border: 2px solid rgba(251, 113, 133, 0.45);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.solo-icon { font-size: 32px; }
.solo-info-box h4 { margin: 0 0 4px; font-size: 17px; }
.solo-info-box p { margin: 0; }

/* ==================== ARENA ==================== */
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--th-card-bg);
  border: 2px solid var(--th-hero-border);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.score-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-meta.right {
  text-align: right;
}

.score-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.score-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.score-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  min-width: 56px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #04170c;
  box-shadow: 0 4px 0 #0b4a24;
}

.score-player.p2 .score-val {
  background: linear-gradient(180deg, #ffbe0b, #d97706);
  color: #09170f;
  box-shadow: 0 4px 0 #78350f;
}

.score-center {
  text-align: center;
  padding: 0 12px;
}

.round-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: var(--gold);
}

.timer-readout {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.02;
  color: #ffffff;
}

.timer-readout.warn { color: var(--gold); }
.timer-readout.danger { color: #ff5722; animation: pulseScale 0.4s infinite alternate; }

@keyframes pulseScale {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.target-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.6px;
}

.timer-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 18px;
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #ffbe0b);
  transition: width 0.08s linear;
}

.timer-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.timer-fill.danger { background: linear-gradient(90deg, #ef4444, #ff5722); }

/* Stage */
.arena-stage {
  position: relative;
  background:
    radial-gradient(circle at 22% 40%, var(--club-a-glow, rgba(34, 197, 94, 0.16)), transparent 48%),
    radial-gradient(circle at 78% 40%, var(--club-b-glow, rgba(255, 190, 11, 0.16)), transparent 48%),
    var(--th-stage-bg);
  border: 2px solid var(--th-hero-border);
  border-radius: 24px;
  padding: 28px 24px 36px;
  box-shadow: var(--shadow);
  min-height: 420px;
  overflow: visible;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.stage-prompt-label {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 22px;
}

/* Dramatic 3-2-1 Countdown Overlay */
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, var(--th-topbar-bg), var(--th-bg-page));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
}

.countdown-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(110px, 18vw, 175px);
  font-weight: 900;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 8px 36px rgba(255, 190, 11, 0.65), 0 0 60px rgba(34, 197, 94, 0.5);
}

.countdown-num.pop {
  animation: countPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes countPop {
  0% { transform: scale(1.85) rotate(-4deg); opacity: 0; }
  45% { transform: scale(0.94) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Matchup Cards */
.matchup-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 24px;
}

.entity-card {
  background: rgba(5, 19, 12, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.entity-card.reveal {
  animation: cardReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

#cardNodeA.reveal {
  border-color: var(--club-a-border, rgba(74, 222, 128, 0.65));
  box-shadow: 0 12px 30px var(--club-a-glow, rgba(34, 197, 94, 0.2));
}

#cardNodeB.reveal {
  border-color: var(--club-b-border, rgba(255, 190, 11, 0.65));
  box-shadow: 0 12px 30px var(--club-b-glow, rgba(255, 190, 11, 0.2));
}

@keyframes cardReveal {
  0% { transform: scale(0.84) rotateY(20deg); opacity: 0.2; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.entity-badge {
  height: 102px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.badge-svg {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.entity-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.entity-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.connector-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.connector-ring {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #061810;
  font-size: 0;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 0 28px rgba(255, 190, 11, 0.48);
}

.connector-ring::after {
  content: '×';
  font-size: 36px;
  transform: rotate(-45deg);
}

.connector-count {
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(255, 190, 11, 0.16);
  border: 1px solid rgba(255, 190, 11, 0.4);
  padding: 3px 11px;
  border-radius: 999px;
}

/* Live Status Banner */
.live-status-banner {
  max-width: 620px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(255, 190, 11, 0.14);
  border: 1px solid rgba(255, 190, 11, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Typing Zone */
.answer-zone {
  max-width: 640px;
  margin: 0 auto;
}

.active-turn-pill {
  text-align: center;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: #061810;
  background: var(--gold);
  padding: 8px 14px;
  border-radius: 10px;
}

.input-wrap {
  position: relative;
  display: flex;
  gap: 10px;
}

#guessInput {
  flex: 1;
  font-size: 17px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 2px solid var(--lime);
  background: #04130b;
}

#guessInput.shake {
  animation: shakeX 0.35s ease;
  border-color: var(--crimson);
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
}

.btn-submit {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  color: #04170c;
  border: none;
  border-radius: 14px;
  padding: 0 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 0 #15803d;
}

.btn-submit:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #15803d;
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 120px;
  background: #071d13;
  border: 2px solid rgba(74, 222, 128, 0.48);
  border-radius: 14px;
  overflow: hidden;
  z-index: 35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.ac-item {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 11px 16px;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ac-item:hover, .ac-item.selected {
  background: rgba(34, 197, 94, 0.25);
  color: var(--gold);
}

.ac-item.used {
  opacity: 0.45;
  text-decoration: line-through;
}

.answer-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.guess-feedback {
  font-size: 13.5px;
  font-weight: 700;
  color: #fca5a5;
}

.btn-pass {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #dcfce7;
  padding: 7px 14px;
  font-size: 13px;
}

.btn-pass:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Buzzer Zone */
.buzzer-zone {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.buzzer-btn {
  border-radius: 20px;
  padding: 24px 18px;
  border: 2px solid;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s ease;
}

.buzzer-btn:active {
  transform: translateY(4px);
}

.buzzer-btn.p1 {
  background: linear-gradient(160deg, #16a34a, #0a4725);
  border-color: #86efac;
  box-shadow: 0 6px 0 #09381d;
}

.buzzer-btn.p2 {
  background: linear-gradient(160deg, #ea580c, #9a3412);
  border-color: #fde047;
  box-shadow: 0 6px 0 #7c2d12;
}

.buzzer-key {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.buzzer-btn strong { font-size: 21px; }
.buzzer-btn span:last-child { font-size: 12px; font-weight: 800; letter-spacing: 1px; }

/* Voice / Video Mode */
.voice-zone {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.voice-hint {
  font-size: 14.5px;
  color: #dcfce7;
  margin-bottom: 14px;
  font-weight: 600;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-award {
  padding: 12px 18px;
  font-size: 14px;
  color: #04170c;
}

.btn-award.p1 { background: linear-gradient(180deg, #4ade80, #22c55e); box-shadow: 0 4px 0 #15803d; }
.btn-award.p2 { background: linear-gradient(180deg, #ffbe0b, #f59e0b); box-shadow: 0 4px 0 #b45309; }

.voice-answers {
  margin-top: 16px;
  background: #04130b;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Resolution Card */
.resolution-card {
  max-width: 660px;
  margin: 8px auto 0;
  background: #05160e;
  border: 2px solid var(--lime);
  border-radius: 20px;
  padding: 20px 22px;
  text-align: center;
  animation: fadeUp 0.24s ease;
}

.resolution-card.fail {
  border-color: var(--orange);
}

.res-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.res-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 4px 13px;
  border-radius: 7px;
  background: var(--lime);
  color: #04170c;
}

.resolution-card.fail .res-badge {
  background: var(--orange);
  color: #ffffff;
}

.res-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold);
}

.res-title {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.res-player-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.res-player-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.res-player-clubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.club-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2f5ea;
}

.club-chip.highlight {
  background: rgba(34, 197, 94, 0.24);
  border-color: var(--lime-bright);
  color: #bbf7d0;
}

.res-others-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.others-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
}

.other-pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.res-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arena-bottom-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================== RESULTS ==================== */
.results-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0d2b1d, #061810);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trophy-icon { font-size: 62px; margin-bottom: 8px; }

.results-title {
  margin: 6px 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
}

.results-scoreline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 22px;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-box span { font-size: 12px; color: var(--muted); }
.metric-box strong { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--lime-bright); }

.history-section {
  text-align: left;
  margin-bottom: 24px;
}

.history-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.history-pair { font-weight: 700; }
.history-res { color: var(--lime-bright); font-weight: 700; text-align: right; }
.history-res.miss { color: var(--muted); }

.results-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: confettiFall 2.4s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(520px) rotate(680deg); opacity: 0; }
}

/* ==================== PERSISTENT FLOATING MUSIC PLAYER DOCK ==================== */
.music-dock {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.music-dock-chip {
  background: linear-gradient(135deg, #0d2b1d, #061810);
  border: 2px solid var(--lime);
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.music-dock-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.music-dock.has-track .music-dock-chip {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 190, 11, 0.35), 0 10px 28px rgba(0, 0, 0, 0.55);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  background: var(--lime-bright);
  border-radius: 2px;
}

.eq-bars.active i {
  background: var(--gold);
  animation: eqJump 0.65s ease-in-out infinite alternate;
}

.eq-bars.active i:nth-child(2) { animation-delay: 0.18s; }
.eq-bars.active i:nth-child(3) { animation-delay: 0.34s; }

@keyframes eqJump {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Music panel moves offscreen when minimized without CSS transform (avoids Chromium iframe GPU glitch) */
.music-panel {
  width: 360px;
  max-width: calc(100vw - 36px);
  background: #081e14;
  border: 2px solid rgba(74, 222, 128, 0.5);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 72px;
  left: -9999px;
}

.music-dock.open .music-panel {
  left: 18px;
  opacity: 1;
  pointer-events: auto;
}

.music-panel-head {
  padding: 13px 16px;
  background: linear-gradient(90deg, #103724, #0a2417);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music-panel-head strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.music-panel-body {
  padding: 14px 16px 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.music-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.music-form input {
  padding: 10px 12px;
  font-size: 13.5px;
}

.music-form-row {
  display: flex;
  gap: 8px;
}

.music-form-row input { flex: 1; }

.music-local-row {
  margin-bottom: 10px;
}

.music-ext-link {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 800;
  margin-left: 4px;
}

.music-providers-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 10px;
}

.music-now-playing {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 190, 11, 0.4);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
}

.music-now-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.music-now-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-now-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.music-embed-stage {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.music-iframe.youtube {
  width: 100%;
  height: 170px;
  display: block;
}

.music-iframe.spotify {
  width: 100%;
  height: 152px;
  display: block;
}

.music-iframe.soundcloud {
  width: 100%;
  height: 120px;
  display: block;
}

.music-native-audio {
  width: 100%;
  display: block;
}

.music-playlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 165px;
  overflow-y: auto;
}

.music-empty {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 8px;
}

.music-row.active {
  border-color: var(--gold);
  background: rgba(255, 190, 11, 0.14);
}

.music-row-play {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
}

.music-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.music-row-info strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-row-info small {
  font-size: 11px;
  color: var(--muted);
}

.music-row-del {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fca5a5;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 10, 6, 0.8);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: #081e14;
  border: 2px solid rgba(74, 222, 128, 0.45);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-box.wide { max-width: 820px; }
.name-modal-box { max-width: 520px; }

/* ==================== COLORFUL VIBRANT WELCOME SCREEN ==================== */
.welcome-backdrop {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 229, 255, 0.28), transparent 46%),
    radial-gradient(circle at 82% 24%, rgba(255, 46, 147, 0.28), transparent 48%),
    radial-gradient(circle at 50% 86%, rgba(255, 193, 10, 0.24), transparent 48%),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.30), transparent 45%),
    rgba(6, 9, 22, 0.88);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.welcome-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.welcome-orb.orb-1 {
  width: 340px; height: 340px;
  top: -80px; left: -60px;
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
}
.welcome-orb.orb-2 {
  width: 360px; height: 360px;
  bottom: -90px; right: -70px;
  background: linear-gradient(135deg, #ff2e93, #9b5de5);
  animation-delay: -3s;
}
.welcome-orb.orb-3 {
  width: 260px; height: 260px;
  top: 40%; left: 55%;
  background: linear-gradient(135deg, #fee440, #f15bb5);
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(28px, -24px) scale(1.12); }
}

@keyframes neonBorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.welcome-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(165deg, #12102b 0%, #0d1633 52%, #111c2d 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 26px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(124, 58, 237, 0.35),
    0 0 80px rgba(0, 229, 255, 0.16);
  overflow: visible;
}

.welcome-card::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 28px;
  padding: 2.5px;
  background: linear-gradient(125deg, #00f5d4, #00bbf9, #9b5de5, #ff2e93, #fee440, #00f5d4);
  background-size: 300% 300%;
  animation: neonBorderFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.welcome-hero {
  position: relative;
  padding: 26px 24px 20px;
  text-align: center;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 245, 212, 0.22), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(255, 46, 147, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(155, 93, 229, 0.22), rgba(13, 22, 51, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.welcome-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.welcome-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #07101f;
  background: linear-gradient(90deg, #00f5d4, #fee440, #ff6b9d);
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.35);
}

.welcome-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #7bf1ff 32%, #ffe066 66%, #ff79c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-sub {
  margin: 10px auto 16px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  color: #d8e4ff;
}

.welcome-arena-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.w-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  white-space: nowrap;
}
.w-chip.chip-cyan    { background: rgba(0, 187, 249, 0.20); border-color: rgba(0, 187, 249, 0.55); color: #9be7ff; }
.w-chip.chip-rose    { background: rgba(255, 70, 85, 0.22); border-color: rgba(255, 70, 85, 0.55); color: #ffb3ba; }
.w-chip.chip-amber   { background: rgba(245, 158, 11, 0.22); border-color: rgba(245, 158, 11, 0.55); color: #fde68a; }
.w-chip.chip-emerald { background: rgba(16, 185, 129, 0.22); border-color: rgba(16, 185, 129, 0.55); color: #a7f3d0; }
.w-chip.chip-purple  { background: rgba(168, 85, 247, 0.24); border-color: rgba(168, 85, 247, 0.55); color: #e9d5ff; }
.w-chip.chip-pink    { background: rgba(236, 72, 153, 0.24); border-color: rgba(236, 72, 153, 0.55); color: #fbcfe8; }
.w-chip.chip-gold    { background: rgba(250, 204, 21, 0.20); border-color: rgba(250, 204, 21, 0.55); color: #fef08a; }
.w-chip.chip-sky     { background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.55); color: #bae6fd; }

.welcome-body {
  padding: 20px 24px 22px;
}

.welcome-label {
  color: #ffe066 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

.welcome-input-row input {
  background: rgba(8, 12, 30, 0.85) !important;
  border: 2px solid rgba(124, 58, 237, 0.55) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.welcome-input-row input:focus {
  border-color: #00f5d4 !important;
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.22), 0 0 18px rgba(0, 245, 212, 0.25) !important;
}

.welcome-dice-btn {
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.35), rgba(0, 187, 249, 0.35)) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 20px !important;
  min-width: 52px;
}
.welcome-dice-btn:hover {
  transform: scale(1.06);
  border-color: #fee440 !important;
}

.quick-nick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-nick-chip {
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #e2ecff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.quick-nick-chip:hover {
  transform: translateY(-1px);
  background: rgba(0, 245, 212, 0.18);
  border-color: #00f5d4;
  color: #ffffff;
}

.btn-welcome-go {
  border: none;
  border-radius: 16px;
  padding: 15px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, #00bbf9 0%, #9b5de5 45%, #ff2e93 80%, #ff9f1c 100%);
  background-size: 220% 220%;
  animation: neonBorderFlow 5s ease infinite;
  box-shadow: 0 10px 28px rgba(155, 93, 229, 0.45), 0 0 22px rgba(255, 46, 147, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-welcome-go:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(155, 93, 229, 0.60), 0 0 28px rgba(0, 245, 212, 0.35);
}
.btn-welcome-go:active {
  transform: translateY(0);
}

.welcome-perks {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: #9fb4d8;
}

.modal-head {
  padding: 18px 22px;
  background: linear-gradient(90deg, #0e3221, #081e14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.name-modal-desc {
  margin: 0 0 18px;
  line-height: 1.5;
}

.name-input-row {
  display: flex;
  gap: 8px;
}

.name-input-row input { flex: 1; }

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rule-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--gold);
  color: #061810;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.rule-row p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #d8f3e3;
  line-height: 1.5;
}

/* Explorer */
.explorer-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.explorer-count { margin-bottom: 12px; font-size: 13px; }

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.exp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
}

.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 15px;
}

.exp-clubs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #0a291a;
  border: 2px solid var(--gold);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.2s ease;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-card { grid-template-columns: 1fr; }
  .universe-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-layout { grid-template-columns: 1fr; }
  .records-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mode-grid { grid-template-columns: 1fr; }
  .matchup-cards { grid-template-columns: 1fr; gap: 12px; }
  .connector-hub { flex-direction: row; justify-content: center; }
  .buzzer-zone { grid-template-columns: 1fr; }
  .explorer-toolbar, .explorer-grid, .two-col { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .score-player, .score-player.p2 { justify-content: center; }
  .score-meta.right { text-align: left; }
  .input-wrap { flex-direction: column; }
  .btn-submit { padding: 14px; }
  .autocomplete-list { right: 0; }
  .results-metrics { grid-template-columns: 1fr; }
}
