        @import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap");

        :root {
            --primary: #6366f1;
            --primary-hover: #4f46e5;
            --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
            --glass: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --success: #22c55e;
            --error: #ef4444;
            --accent: #ec4899;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Plus Jakarta Sans", sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-gradient);
            color: var(--text-main);
            padding: 20px;
            overflow-x: hidden;
        }

        .circle {
            position: absolute;
            z-index: -1;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.3;
        }
        .circle-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
        .circle-2 { width: 350px; height: 350px; background: var(--accent); bottom: -80px; left: -80px; }

        .wrapper {
            position: relative;
            width: 100%;
            max-width: 480px;
            padding: 30px;
            background: var(--glass);
            backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 28px;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .game-selector, .difficulty-selector {
            display: flex;
            background: rgba(0, 0, 0, 0.2);
            padding: 4px;
            border-radius: 14px;
            margin-bottom: 20px;
            border: 1px solid var(--glass-border);
        }

        .toggle-btn, .diff-btn {
            flex: 1;
            padding: 10px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .toggle-btn.active, .diff-btn.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
        .sub-header { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; min-height: 20px;}

        .game-section { display: none; }
        .game-section.active { display: block; animation: fadeIn 0.4s ease; }

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

        .feedback { min-height: 24px; font-size: 15px; margin-bottom: 20px; font-weight: 500; }
        
        button.action-btn {
            width: 100%;
            height: 54px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        button.action-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
        button.action-btn:disabled { opacity: 0.6; cursor: not-allowed; }

        .number-input-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
        .number-input-group input {
            height: 56px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            color: white;
            font-size: 22px;
            text-align: center;
            outline: none;
        }

        .word-content .inputs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
        .word-content .inputs input {
            height: 44px; width: 38px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            color: var(--primary);
            font-size: 18px; font-weight: 700;
            text-align: center; text-transform: uppercase;
        }
        .word-details { text-align: left; background: rgba(0,0,0,0.1); padding: 15px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
        .word-details p { margin-bottom: 8px; color: var(--text-muted); line-height: 1.4; }
        .word-details span { color: var(--text-main); font-weight: 600; }
        .typing-input { opacity: 0; position: absolute; z-index: -1; }

        .stats-footer { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
        .highlight { color: var(--primary); font-size: 14px; }

        .loader {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 0.8s linear infinite;
            margin-right: 10px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
