        /* Hangman Game Styles */
        :root {
            --primary: #2dd4bf;
            --primary-dark: #0d9488;
            --secondary: #8b5cf6;
            --background: #0f172a;
            --text: #f8fafc;
            --error: #ef4444;
            --success: #22c55e;
            --neutral: #475569;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        body {
            background: var(--background);
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 2rem;
            transition: background 0.3s ease;
        }

        .container {
            max-width: 900px;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        header {
            text-align: center;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 4px 12px rgba(45, 212, 191, 0.1);
        }

        .game-section {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .game-section {
                flex-direction: row;
            }
        }

        .hangman-container {
            flex: 1;
            border-radius: 1rem;
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        svg {
            max-width: 300px;
            width: 100%;
            height: 250px;
        }

        .word-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 2rem;
        }

        .word {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .letter {
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 3px solid var(--primary);
            font-size: 2rem;
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 0.25rem;
        }

        .letter.revealed {
            animation: pop 0.3s ease;
        }

        @keyframes pop {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.2);
            }

            100% {
                transform: scale(1);
            }
        }

        .keyboard {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            max-width: 500px;
            width: 100%;
        }

        .key {
            background: rgba(71, 85, 105, 0.3);
            color: var(--text);
            border: none;
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            backdrop-filter: blur(5px);
            min-width: 40px;
            text-align: center;
        }

        .key:hover {
            background: var(--neutral);
            transform: translateY(-2px);
        }

        .key:active {
            transform: translateY(1px);
        }

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

        .key.wrong {
            background: var(--error);
            color: white;
            opacity: 0.5;
        }

        .status {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 600;
            margin: 1rem 0;
            min-height: 2rem;
        }

        .game-over,
        .game-won {
            background: rgba(30, 41, 59, 0.9);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
        }

        .game-over.active,
        .game-won.active {
            opacity: 1;
            visibility: visible;
        }

        .game-over h2,
        .game-won h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .game-over p,
        .game-won p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
        }

        .game-over h2 {
            color: var(--error);
        }

        .game-won h2 {
            color: var(--success);
        }

        button.restart {
            background: var(--primary);
            color: var(--background);
            border: none;
            border-radius: 0.5rem;
            padding: 1rem 2rem;
            font-size: 1.25rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
        }

        button.restart:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        button.restart:active {
            transform: translateY(1px);
        }

        .stats {
            display: flex;
            justify-content: space-around;
            width: 100%;
            max-width: 500px;
            margin-top: 1rem;
            font-size: 1rem;
            color: var(--neutral);
        }

        .stats span {
            font-weight: 600;
            color: var(--primary);
        }

        .difficulty {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .difficulty button {
            background: transparent;
            border: 2px solid var(--neutral);
            color: var(--neutral);
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .difficulty button.active {
            background: var(--neutral);
            color: var(--background);
            border-color: var(--neutral);
        }

        .difficulty button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .difficulty button.active:hover {
            background: var(--primary);
            border-color: var(--primary);
        }

        .hint-container {
            margin-top: 1rem;
            text-align: center;
        }

        .hint-text {
            font-size: 1rem;
            color: var(--primary);
            font-style: italic;
            margin-top: 0.5rem;
            min-height: 1.5rem;
        }

        .hint-button {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hint-button:hover {
            background: rgba(45, 212, 191, 0.1);
        }

        .hint-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        svg path {
            stroke: var(--primary);
            stroke-width: 4;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }

        svg circle {
            stroke: var(--primary);
            stroke-width: 4;
            fill: none;
        }

        .hangman-part {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .hangman-part.visible {
            opacity: 1;
        }

        .theme-toggle {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .dark-mode {
            --background: #0f172a;
            --text: #f8fafc;
        }

        .light-mode {
            --background: #f8fafc;
            --text: #0f172a;
            --neutral: #64748b;
        }

        .category {
            font-size: 1rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 2rem;
            }

            .letter {
                width: 35px;
                height: 40px;
                font-size: 1.5rem;
            }

            .key {
                padding: 0.5rem;
                min-width: 30px;
                font-size: 0.875rem;
            }
        }