        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

        :root {
            --bg-color: #0b0f19;
            --card-bg: #151c2e;
            --card-border: #2a3654;
            --accent-blue: #38bdf8;
            --accent-yellow: #facc15;
            --accent-green: #22c55e;
            --accent-red: #ef4444;
            --text-color: #f8fafc;
            --subtext-color: #94a3b8;
            --tile-bg: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
            --tile-hover: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
            --glow: 0 0 20px rgba(56, 189, 248, 0.25);

            /* Shared kit mapping */
            --kit-accent: var(--accent-blue);
            --kit-accent-ink: #ffffff;
            --kit-accent-glow: rgba(56, 189, 248, 0.3);
            --kit-surface: var(--bg-color);
            --kit-border: var(--card-border);
            --kit-input-bg: var(--card-bg);
            --kit-error: var(--accent-red);
        }

        /* Light Mode Theme Overrides */
        body.light-mode {
            --bg-color: #f1f5f9;
            --card-bg: #ffffff;
            --card-border: #cbd5e1;
            --accent-blue: #0284c7;
            --accent-yellow: #d97706;
            --accent-green: #16a34a;
            --accent-red: #dc2626;
            --text-color: #0f172a;
            --subtext-color: #475569;
            --tile-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            --tile-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            --glow: 0 4px 20px rgba(0, 0, 0, 0.08);
            background-image: radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%);

            /* Shared kit mapping (redeclared here — see dark-block comment) */
            --kit-accent: var(--accent-blue);
            --kit-accent-ink: #001420;
            --kit-accent-glow: rgba(2, 132, 199, 0.25);
            --kit-surface: var(--bg-color);
            --kit-border: var(--card-border);
            --kit-input-bg: var(--card-bg);
            --kit-error: var(--accent-red);
        }

        body.light-mode header {
            background: rgba(255, 255, 255, 0.9);
            border-color: #cbd5e1;
        }

        body.light-mode .score-board {
            background: #dcfce7;
            color: #14532d;
            border-color: #16a34a;
            box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
        }

        body.light-mode .category-header {
            background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
            color: #0369a1;
            border-color: #cbd5e1;
            box-shadow: none;
        }

        body.light-mode .tile.used {
            background: #e2e8f0;
            color: #94a3b8;
        }

        body.light-mode .option-btn {
            background: #f8fafc;
            color: #0f172a;
            border-color: #cbd5e1;
        }

        body.light-mode .option-btn:hover:not(:disabled) {
            background: #e0f2fe;
            border-color: #0284c7;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Outfit', sans-serif;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        body {
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.12) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(250, 204, 21, 0.08) 0px, transparent 50%);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }

        header {
            position: relative;
            z-index: 150;
            width: 100%;
            max-width: 1280px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding: 16px 24px;
            background: rgba(21, 28, 46, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            box-shadow: var(--glow);
        }

        h1 {
            font-size: 1.6rem;
            font-weight: 800;
            background: linear-gradient(90deg, var(--accent-yellow), #f97316);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .theme-btn {
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid var(--card-border);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        body.light-mode .theme-btn {
            background: #ffffff;
            color: #0f172a;
            border-color: #cbd5e1;
        }

        .theme-btn:hover {
            transform: translateY(-1px);
        }

        .score-board {
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            background: #064e3b;
            border: 2px solid var(--accent-green);
            padding: 6px 20px;
            border-radius: 30px;
            box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
        }

        /* Modal Screens */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(4, 7, 13, 0.88);
            backdrop-filter: blur(8px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            padding: 20px;
        }

        .modal-content {
            background: var(--card-bg);
            padding: 36px;
            border-radius: 24px;
            max-width: 680px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow);
            border: 2px solid var(--accent-blue);
            animation: popIn 0.25s ease-out;
        }

        @keyframes popIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-content h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--accent-yellow);
            margin-bottom: 12px;
        }

        .modal-content p {
            font-size: 1.15rem;
            color: var(--subtext-color);
        }

        .modal-content ul {
            text-align: left;
            margin: 24px 0;
            line-height: 1.8;
            padding-left: 20px;
            font-size: 1.1rem;
        }

        .btn {
            background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
            color: #ffffff;
            font-size: 1.2rem;
            font-weight: 800;
            padding: 14px 36px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
        }

        .btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
        }

        /* Jeopardy Board Container */
        .board {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 14px;
            width: 100%;
            max-width: 1280px;
        }

        /* Grouped Column Container (Fixes Vertical Alignment) */
        .category-column {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .category-header {
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid var(--card-border);
            padding: 16px 8px;
            text-align: center;
            font-weight: 800;
            font-size: 1rem;
            border-radius: 12px;
            color: var(--accent-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 70px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

        .tile {
            background: var(--tile-bg);
            border: 1px solid rgba(255,255,255,0.1);
            color: #ffffff;
            font-size: 2rem;
            font-weight: 800;
            aspect-ratio: 4 / 3;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .tile:hover {
            background: var(--tile-hover);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(29, 78, 216, 0.5);
            border-color: var(--accent-blue);
        }

        .tile.used {
            background: #1e293b;
            color: #475569;
            border-color: transparent;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Question Screen Elements */
        .multiplier-badge {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 800;
            font-size: 1.1rem;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            animation: pulse 1s infinite alternate;
        }

        .double-challenge { 
            background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%); 
            color: #000; 
            box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
        }

        .triple-challenge { 
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
            color: #fff; 
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
        }

        @keyframes pulse {
            from { transform: scale(1); }
            to { transform: scale(1.06); }
        }

        .question-text {
            font-size: 1.5rem;
            margin: 24px 0;
            line-height: 1.5;
            font-weight: 600;
            color: var(--text-color);
        }

        .options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-top: 24px;
        }

        .option-btn {
            background: #1e293b;
            color: #f8fafc;
            border: 2px solid var(--card-border);
            padding: 18px 20px;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .option-btn:hover:not(:disabled) {
            border-color: var(--accent-blue);
            background: #334155;
            transform: translateY(-2px);
        }

        .option-btn.correct-choice {
            background: #065f46 !important;
            border-color: var(--accent-green) !important;
            color: #ffffff !important;
            box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
        }

        .option-btn.wrong-choice {
            background: #7f1d1d !important;
            border-color: var(--accent-red) !important;
            color: #ffffff !important;
        }

        .feedback {
            margin-top: 20px;
            font-size: 1.3rem;
            font-weight: 800;
            min-height: 40px;
        }

        .feedback.correct-text { color: var(--accent-green); }
        .feedback.incorrect-text { color: var(--accent-red); }

        /* Typed-answer + buzzer timer */
        .timer-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 18px 0 6px;
        }

        .timer-bar-track {
            flex: 1;
            height: 12px;
            background: var(--card-border);
            border-radius: 8px;
            overflow: hidden;
        }

        .timer-bar-fill {
            height: 100%;
            width: 100%;
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
            transition: width 0.1s linear, background 0.3s ease;
        }

        .timer-bar-fill.timer-low {
            background: linear-gradient(90deg, var(--accent-red), #f97316);
        }

        .timer-number {
            font-weight: 800;
            font-size: 1.2rem;
            min-width: 38px;
            text-align: center;
        }

        .timer-number.timer-low {
            color: var(--accent-red);
        }

        .answer-form {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 6px;
        }

        .answer-input {
            flex: 1;
            min-width: 180px;
            font: inherit;
            font-size: 1.2rem;
            font-weight: 700;
            padding: 14px 16px;
            border-radius: 12px;
            border: 2px solid var(--card-border);
            background: var(--kit-input-bg);
            color: var(--text-color);
            outline: none;
        }

        .answer-input:focus {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px var(--kit-accent-glow);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-8px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(6px); }
        }

        .answer-input.input-shake {
            animation: shake 0.35s ease;
            border-color: var(--accent-red);
        }

        .answer-hint {
            text-align: left;
            font-size: 0.9rem;
            color: var(--subtext-color);
            margin-top: 8px;
            min-height: 1.2em;
        }

        /* Daily Double wager screen */
        .dd-host-line {
            font-size: 1.3rem !important;
            font-weight: 800;
            color: var(--accent-yellow) !important;
        }

        .wager-form {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-top: 18px;
        }

        .wager-form label {
            font-weight: 700;
            font-size: 1.05rem;
        }

        .wager-input {
            font: inherit;
            font-size: 1.4rem;
            font-weight: 800;
            text-align: center;
            width: 160px;
            padding: 12px;
            border-radius: 12px;
            border: 2px solid var(--card-border);
            background: var(--kit-input-bg);
            color: var(--text-color);
            outline: none;
        }

        .wager-input:focus {
            border-color: var(--accent-yellow);
            box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
        }

        .daily-double-badge {
            background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
            color: #fff;
            box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
        }

        /* Fail end-screen accenting */
        .modal-content.fail-card {
            border-color: var(--accent-red);
        }

        .modal-content.fail-card h2 {
            color: var(--accent-red);
        }

        /* Persistent snarky host widget */
        .host-widget {
            position: fixed;
            right: 16px;
            bottom: 16px;
            max-width: 260px;
            display: flex;
            align-items: flex-end;
            gap: 10px;
            z-index: 120;
            pointer-events: none;
        }

        .host-avatar {
            font-size: 2.2rem;
            flex-shrink: 0;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
        }

        .host-bubble {
            background: var(--card-bg);
            border: 2px solid var(--accent-blue);
            border-radius: 14px 14px 14px 2px;
            padding: 10px 14px;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-color);
            box-shadow: var(--glow);
        }

        @keyframes hostPop {
            0% { transform: scale(0.92); opacity: 0.4; }
            100% { transform: scale(1); opacity: 1; }
        }

        .host-bubble.host-pop {
            animation: hostPop 0.25s ease-out;
        }

        @media (max-width: 550px) {
            .host-widget { max-width: 180px; }
            .host-bubble { font-size: 0.72rem; padding: 8px 10px; }
            .host-avatar { font-size: 1.6rem; }
        }

        /* Completion Screenshot Card */
        .screenshot-card {
            background: rgba(56, 189, 248, 0.08);
            border: 2px dashed var(--accent-blue);
            border-radius: 16px;
            padding: 20px;
            margin: 20px 0;
        }

        .screenshot-card h3 {
            font-size: 1.4rem;
            color: var(--accent-yellow);
            margin-bottom: 6px;
        }

        /* Responsive Design */
        @media (max-width: 960px) {
            .board { grid-template-columns: repeat(3, 1fr); }
            .options-grid { grid-template-columns: 1fr; }
            h1 { font-size: 1.3rem; }
            .tile { font-size: 1.6rem; }
        }

        @media (max-width: 550px) {
            .board { grid-template-columns: repeat(2, 1fr); }
            .tile { font-size: 1.3rem; }
        }
