        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Lofi Theme */
            --bg-primary: #1a1625;
            --bg-secondary: #2d2438;
            --bg-tertiary: #3a2f47;
            --text-primary: #e8dcc6;
            --text-secondary: #c4a484;
            --accent: #d4a574;
            --correct: #6a994e;
            --present: #bc6c25;
            --absent: #495057;
            --border: #4a3f56;
        }

        .theme-bw {
            --bg-primary: #0d1117;
            --bg-secondary: #21262d;
            --bg-tertiary: #30363d;
            --text-primary: #f0f6fc;
            --text-secondary: #8b949e;
            --accent: #ffffff;
            --correct: #238636;
            --present: #9a6700;
            --absent: #6e7681;
            --border: #30363d;
        }

        .theme-cyber {
            --bg-primary: #0a0a0f;
            --bg-secondary: #151520;
            --bg-tertiary: #1f1f2e;
            --text-primary: #00ffff;
            --text-secondary: #66d9ef;
            --accent: #00d4ff;
            --correct: #00ff41;
            --present: #ffaa00;
            --absent: #2d2d44;
            --border: #00ffff33;
        }

        body {
            font-family: 'Courier New', monospace;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            width: 100%;
            max-width: 500px;
        }

        .title {
            font-size: 2.5em;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 0 0 20px var(--accent);
            letter-spacing: 3px;
        }

        .theme-selector {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .theme-btn {
            padding: 8px 16px;
            background: var(--bg-tertiary);
            border: 2px solid var(--border);
            color: var(--text-primary);
            cursor: pointer;
            border-radius: 8px;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .theme-btn:hover {
            background: var(--accent);
            color: var(--bg-primary);
            transform: translateY(-2px);
        }

        .theme-btn.active {
            background: var(--accent);
            color: var(--bg-primary);
            box-shadow: 0 0 15px var(--accent);
        }

        .game-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            width: 100%;
            max-width: 500px;
        }

        .game-board {
            display: grid;
            grid-template-rows: repeat(6, 60px);
            gap: 5px;
            margin-bottom: 20px;
        }

        .word-row {
            display: grid;
            grid-template-columns: repeat(5, 60px);
            gap: 5px;
        }

        .letter-box {
            width: 60px;
            height: 60px;
            border: 2px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            font-weight: bold;
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-radius: 8px;
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        .letter-box.filled {
            border-color: var(--accent);
            background: var(--bg-tertiary);
            transform: scale(1.05);
        }

        .letter-box.correct {
            background: var(--correct);
            border-color: var(--correct);
            color: white;
            animation: flip 0.6s ease-in-out;
        }

        .letter-box.present {
            background: var(--present);
            border-color: var(--present);
            color: white;
            animation: flip 0.6s ease-in-out;
        }

        .letter-box.absent {
            background: var(--absent);
            border-color: var(--absent);
            color: white;
            animation: flip 0.6s ease-in-out;
        }

        @keyframes flip {
            0% { transform: rotateX(0); }
            50% { transform: rotateX(90deg); }
            100% { transform: rotateX(0); }
        }

        .keyboard {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }

        .keyboard-row {
            display: flex;
            justify-content: center;
            gap: 6px;
        }

        .keyboard-row:nth-child(2) {
            margin: 0 15px;
        }

        .key {
            min-width: 40px;
            height: 50px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 0.9em;
            font-weight: bold;
            cursor: pointer;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            text-transform: uppercase;
        }

        .key:hover {
            background: var(--accent);
            color: var(--bg-primary);
            transform: translateY(-2px);
        }

        .key.wide {
            min-width: 60px;
            font-size: 0.8em;
        }

        .key.correct {
            background: var(--correct);
            border-color: var(--correct);
            color: white;
        }

        .key.present {
            background: var(--present);
            border-color: var(--present);
            color: white;
        }

        .key.absent {
            background: var(--absent);
            border-color: var(--absent);
            color: white;
        }

        .message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 20px 40px;
            border-radius: 12px;
            border: 2px solid var(--accent);
            font-size: 1.2em;
            font-weight: bold;
            z-index: 1000;
            opacity: 0;
            animation: fadeInOut 2s ease-in-out;
            box-shadow: 0 0 30px var(--accent);
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        .stats {
            text-align: center;
            margin-top: 20px;
            padding: 20px;
            background: var(--bg-secondary);
            border-radius: 12px;
            border: 1px solid var(--border);
        }

        .new-game-btn {
            padding: 12px 24px;
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            border-radius: 8px;
            font-family: inherit;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            margin-top: 15px;
            transition: all 0.3s ease;
        }

        .new-game-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px var(--accent);
        }

        @media (max-width: 480px) {
            .letter-box, .word-row {
                grid-template-columns: repeat(5, 50px);
            }
            .letter-box {
                width: 50px;
                height: 50px;
                font-size: 1.2em;
            }
            .key {
                min-width: 30px;
                height: 45px;
                font-size: 0.8em;
            }
        }