   body {
        margin: 0;
        padding: 0;
        background: linear-gradient(45deg, #0a0a0a, #1a0a2e, #16213e, #0f3460);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        font-family: 'Orbitron', monospace;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        color: #fff;
        position: relative;
    }

    #game-container {
        position: relative;
        width: 500px;
        height: 500px;
    }

    canvas {
        border: 8px solid #4a148c;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(74, 20, 140, 0.5),
            0 0 60px rgba(74, 20, 140, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
        background: #1a1a1a;
    }

    #score-display {
        position: relative;
        top: -50px;
        left: 0;
        font-size: 20px;
        color: #ffeb3b;
        text-shadow: 0 0 10px #ffeb3b;
        transition: all 0.3s;text-align: center;
    }

    .score-pop {
        animation: scorePop 0.3s ease-out;
    }

    #score-increase {
        position: absolute;
        font-size: 24px;
        font-weight: bold;
        color: #4caf50;
        text-shadow: 0 0 10px #4caf50;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s;
    }

    #game-over {
        position: absolute;
        top: 50%;
        left: 52%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 500px;
        background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(30, 10, 50, 0.95));
        backdrop-filter: blur(30px);
        border: 2px solid rgba(255, 0, 0, 0.5);
        border-radius: 25px;
        padding: 40px;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 20;
        box-shadow:
            0 0 50px rgba(255, 0, 0, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
        text-align: center;
        animation: slideIn 0.5s ease-out;
        margin: auto;
    }

    #game-over h1 {
        color: #ff0040;
        font-size: 48px;
        font-weight: 900;
        text-shadow: 0 0 30px #ff0040;
        margin-bottom: 20px;
        animation: glitchText 2s infinite;
    }

    #final-score {
        color: #00ff80;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 30px;
        text-shadow: 0 0 20px #00ff80;
    }

    #restart-btn {
        background: #4a148c;
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 18px;
        font-family: 'Press Start 2P', cursive;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s;
        box-shadow: 0 0 15px rgba(74, 20, 140, 0.7);
    }

    #restart-btn:hover {
        background: #7b1fa2;
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(123, 31, 162, 0.9);
    }

    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #121212;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    #loader {
        width: 80px;
        height: 80px;
        border: 8px solid rgba(255, 255, 255, 0.1);
        border-top-color: #7b1fa2;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }

    #loading-text {
        font-size: 16px;
        color: #7b1fa2;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    #controls {
        position: absolute;
        bottom: -80px;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 14px;
        color: #aaa;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

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

        50% {
            transform: scale(1.1);
        }

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

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

        50% {
            transform: scale(1.5);
        }

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

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .particle {
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 5;
    }

    .explosion-particle {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10;
        background: #ff5722;
        box-shadow: 0 0 10px #ff5722;
    }

    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    @keyframes glitchText {
        0% {
            text-shadow: 0 0 30px #ff0040, 0 0 10px #ff0040;
        }
        20% {
            text-shadow: 0 0 30px #ff0040, 5px 5px 10px #00ff80;
        }
        40% {
            text-shadow: 0 0 30px #ff0040, -5px -5px 10px #0066ff;
        }
        60% {
            text-shadow: 0 0 30px #ff0040, 5px -5px 10px #ff00ff;
        }
        80% {
            text-shadow: 0 0 30px #ff0040, -5px 5px 10px #ffff00;
        }
        100% {
            text-shadow: 0 0 30px #ff0040, 0 0 10px #ff0040;
        }
    }

    @keyframes explosion {
        0% {
            transform: scale(0);
            opacity: 1;
        }
        100% {
            transform: scale(3);
            opacity: 0;
        }
    }

    #screen-shake {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 100;
    }