@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            background: #2c2c2c;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #ffffff;
        }

        .container {
            background: #111111;
            border: 1px solid #333333;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 204, 102, 0.1);
            padding: 40px;
            max-width: 500px;
            width: 90%;
            text-align: center;
        }

        h1 {
            color: #00cc66;
            margin-bottom: 30px;
            font-size: 2.5em;
            font-weight: 600;
            text-shadow: 0 0 20px rgba(0, 204, 102, 0.3);
        }

        .setup-screen, .game-screen, .results-screen {
            display: none;
        }

        .setup-screen.active, .game-screen.active, .results-screen.active {
            display: block;
        }

        .option-group {
            margin: 20px 0;
            text-align: left;
        }

        .option-group h3 {
            margin-bottom: 10px;
            color: #ffffff;
            font-size: 1.2em;
            font-weight: 500;
        }

        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            background: #1a1a1a;
            padding: 8px 12px;
            border-radius: 8px;
            border: 2px solid #333333;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #ffffff;
        }

        /* For devices that can hover (like desktops) */
@media (hover: hover) {
    .checkbox-item:hover {
        background: #222222;
        border-color: #00cc66;
    }
}

/* For managing focus states cleanly on all devices */
.checkbox-item:focus {
    outline: none;
}

        .checkbox-item.selected {
            background: #00331a;
            border-color: #00cc66;
            box-shadow: 0 0 10px rgba(0, 204, 102, 0.2);
        }

        .checkbox-item input {
            margin-right: 8px;
        }

        .radio-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .radio-item {
            flex: 1;
            min-width: 80px;
            background: #1a1a1a;
            padding: 10px;
            border-radius: 8px;
            border: 2px solid #333333;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #ffffff;
            text-align: center;
        }

        .radio-item:hover {
            background: #222222;
            border-color: #00cc66;
        }

        .radio-item.selected {
            background: #00331a;
            border-color: #00cc66;
            box-shadow: 0 0 10px rgba(0, 204, 102, 0.2);
        }

        .radio-item input {
            margin-right: 5px;
        }

        .start-btn {
            background: linear-gradient(45deg, #00cc66, #00994d);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 1.2em;
            font-weight: 500;
            cursor: pointer;
            margin-top: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(0, 204, 102, 0.3);
        }

        .start-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 204, 102, 0.5);
        }

        .start-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .timer {
            font-size: 1.5em;
            font-weight: 600;
            color: #ffffff;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
        }

        .timer-circle {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: conic-gradient(#00cc66 0deg, #333333 0deg);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.5s ease;
        }

        .timer-inner {
            width: 60px;
            height: 60px;
            background: #111111;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8em;
            z-index: 1;
        }

        .score {
            font-size: 1.5em;
            font-weight: 600;
            color: #00cc66;
            text-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
        }

        .question {
            font-size: 3em;
            margin: 30px 0;
            color: #ffffff;
            font-weight: 400;
        }

        .answer-input {
            font-size: 2em;
            padding: 15px;
            border: 3px solid #333333;
            border-radius: 10px;
            text-align: center;
            width: 200px;
            margin: 20px auto;
            display: block;
            transition: all 0.3s ease;
            background: #1a1a1a;
            color: #ffffff;
            font-weight: 500;
        }

        .answer-input:focus {
            outline: none;
            border-color: #00cc66;
            box-shadow: 0 0 15px rgba(0, 204, 102, 0.3);
        }

        .answer-input.correct {
            border-color: #00ff88;
            background-color: #001a0d;
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
            animation: correctPulse 0.5s ease;
        }

        .answer-input.incorrect {
            /* No styling for incorrect answers */
        }

        @keyframes correctPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .results-screen h2 {
            color: #ffffff;
            margin-bottom: 20px;
            font-size: 2em;
            font-weight: 500;
        }

        .final-score {
            font-size: 3em;
            color: #00cc66;
            margin: 20px 0;
            font-weight: 600;
            text-shadow: 0 0 20px rgba(0, 204, 102, 0.5);
        }

        .play-again-btn {
            background: linear-gradient(45deg, #00cc66, #00994d);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 1.2em;
            font-weight: 500;
            cursor: pointer;
            margin-top: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(0, 204, 102, 0.3);
        }

        .play-again-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 204, 102, 0.5);
        }

        .stats {
            background: #1a1a1a;
            border: 1px solid #333333;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            text-align: left;
        }

        .stats h3 {
            color: #00cc66;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .stats p {
            margin: 5px 0;
            color: #cccccc;
        }
        
        .range-inputs {
            display: flex;
            gap: 20px;
            align-items: center;
            justify-content: center;
        }

        .range-input-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .range-input-group label {
            color: #cccccc;
            font-size: 0.9em;
            font-weight: 500;
        }

        .range-input-group input {
            background: #1a1a1a;
            border: 2px solid #333333;
            border-radius: 8px;
            padding: 8px 12px;
            color: #ffffff;
            font-size: 1em;
            width: 100px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .range-input-group input:focus {
            outline: none;
            border-color: #00cc66;
            box-shadow: 0 0 10px rgba(0, 204, 102, 0.2);
        }

        .back-btn {
            margin-top: 30px;
            background: linear-gradient(45deg, #00cc66, #00994d);
            color: #fff;
            border: none;
            padding: 12px 28px;
            border-radius: 8px;
            font-size: 1.1em;
            font-weight: 500;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(0, 204, 102, 0.3);
            transition: all 0.3s ease;
            display: block;
            width: 100%;
            max-width: 300px;
            margin-left: auto;
            margin-right: auto;
        }

        .back-btn:hover {
            background: linear-gradient(45deg, #00994d, #00cc66);
            box-shadow: 0 0 30px rgba(0, 204, 102, 0.5);
            transform: translateY(-2px);
        }