    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

    :root {
        --primary-cyan: #00ffff;
        --primary-pink: #ff00ff;
        --primary-yellow: #ffff00;
        --secondary-blue: #0080ff;
        --danger-red: #ff4444;
        --dark-bg: #0c0c0c;
        --game-bg: rgba(0, 0, 0, 0.8);
    }

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

    body {
        font-family: 'Orbitron', monospace;
        background: linear-gradient(135deg, var(--dark-bg), #1a1a2e, #16213e);
        color: #fff;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 10px;
    }

    .game-container {
        text-align: center;
        background: var(--game-bg);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 255, 255, 0.1);
        max-width: 100vw;
        position: relative;
    }

    .title {
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 900;
        background: linear-gradient(45deg, var(--primary-cyan), var(--primary-pink), var(--primary-yellow));
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: rainbow 3s ease-in-out infinite;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }

    .subtitle {
        font-size: clamp(0.8rem, 2vw, 1rem);
        color: #888;
        margin-bottom: 20px;
    }

    .credits {
        font-size: clamp(0.7rem, 1.5vw, 0.9rem);
        color: #666;
        margin-bottom: 15px;
    }

    .credits a {
        color: var(--primary-cyan);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .credits a:hover {
        color: var(--primary-pink);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    @keyframes rainbow {

        0%,
        100% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }
    }

    .game-board {
        width: min(600px, 90vw);
        height: min(400px, 60vw);
        border: 3px solid var(--primary-cyan);
        border-radius: 10px;
        margin: 20px auto;
        position: relative;
        background: linear-gradient(45deg, #001122, #002244);
        box-shadow:
            inset 0 0 50px rgba(0, 100, 200, 0.3),
            0 0 30px rgba(0, 255, 255, 0.2);
        overflow: hidden;
        cursor: crosshair;
    }

    canvas {
        display: block;
        border-radius: 7px;
        position: relative;
        z-index: 2;
    }

    .hud {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 20px 0;
        font-weight: 700;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hud-item {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        color: var(--primary-cyan);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .progress-bar {
        width: 100%;
        max-width: 300px;
        height: 8px;
        background: rgba(0, 255, 255, 0.2);
        border-radius: 4px;
        overflow: hidden;
        margin: 10px auto;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-cyan), var(--primary-pink));
        border-radius: 4px;
        transition: width 0.3s ease;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        width: 0%;
    }

    .controls {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 20px auto;
        justify-content: center;
        max-width: 200px;
    }

    .control-btn {
        width: 60px;
        height: 60px;
        border: 2px solid var(--primary-cyan);
        background: linear-gradient(45deg, #001122, #003366);
        color: var(--primary-cyan);
        border-radius: 12px;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Orbitron', monospace;
        user-select: none;
        touch-action: manipulation;
    }

    .control-btn:hover {
        background: linear-gradient(45deg, #003366, #0066cc);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        transform: translateY(-3px) scale(1.05);
    }

    .control-btn:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }

    .empty {
        visibility: hidden;
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        backdrop-filter: blur(5px);
    }

    .modal-content {
        background: var(--game-bg);
        padding: 40px;
        border-radius: 20px;
        border: 2px solid var(--primary-pink);
        text-align: center;
        box-shadow: 0 0 50px rgba(255, 0, 128, 0.5);
        max-width: 90vw;
        animation: modalSlide 0.3s ease-out;
    }

    @keyframes modalSlide {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 20px;
        background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .game-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
        border: 2px solid var(--primary-cyan);
        background: linear-gradient(45deg, #001122, #003366);
        color: var(--primary-cyan);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Orbitron', monospace;
        font-weight: bold;
        margin: 10px;
        text-transform: uppercase;
    }

    .game-btn:hover {
        background: linear-gradient(45deg, #003366, #0066cc);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
        transform: translateY(-2px);
    }

    .instructions {
        margin: 20px 0;
        font-size: 0.9rem;
        color: #aaa;
        line-height: 1.6;
        text-align: left;
    }

    .instructions ul {
        list-style: none;
        padding: 0;
    }

    .instructions li {
        margin: 8px 0;
        padding-left: 20px;
        position: relative;
    }

    .instructions li::before {
        content: "▶";
        position: absolute;
        left: 0;
        color: var(--primary-cyan);
    }

    .hidden {
        display: none !important;
    }

    .stats-panel {
        display: flex;
        justify-content: space-around;
        margin: 15px 0;
        font-size: 0.9rem;
        color: #ccc;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pause-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.9);
        padding: 30px;
        border-radius: 15px;
        border: 2px solid var(--primary-yellow);
        z-index: 50;
        text-align: center;
    }

    .glow-effect {
        animation: glow-pulse 0.4s ease-out;
    }

    @keyframes glow-pulse {
        0% {
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
        }

        50% {
            box-shadow: 0 0 80px rgba(0, 255, 255, 0.8);
        }

        100% {
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
        }
    }

    @media (max-width: 768px) {
        .game-container {
            padding: 15px;
        }

        .hud {
            justify-content: center;
            text-align: center;
        }

        .control-btn {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }

        .controls {
            max-width: 170px;
            gap: 5px;
        }
    }