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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    color: #00ffff;
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: relative;
}

#gameCanvas {
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    background: #0a0a0a;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    pointer-events: none;
    z-index: 10;
}

.hud-section {
    background: rgba(10, 10, 30, 0.8);
    border: 2px solid #00ffff;
    padding: 10px 15px;
    box-shadow: 0 0 10px #00ffff;
    min-width: 150px;
}

.hud-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    margin-bottom: 5px;
}

.hud-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.health-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(50, 0, 0, 0.8);
    border: 1px solid #ff0000;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0080, #ff00ff);
    box-shadow: 0 0 10px #ff00ff;
    transition: width 0.3s ease;
    width: 100%;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 30, 0.95);
    border: 3px solid #ff00ff;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff;
    z-index: 100;
}

#game-over.hidden {
    display: none;
}

#game-over h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 20px;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 20px #ff0000;
    }
    50% {
        text-shadow: -2px 0 20px #ff0000, 2px 0 20px #00ffff;
    }
}

.final-score, .final-wave, .high-score {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    margin: 10px 0;
    color: #00ffff;
}

.final-score span, .final-wave span, .high-score span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ff00ff;
}

.new-high-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffff00;
    text-shadow: 0 0 20px #ffff00;
    margin: 15px 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#restart-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    border: none;
    padding: 15px 40px;
    margin-top: 20px;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 0 20px #ff00ff;
    transition: all 0.3s ease;
}

#restart-btn:hover {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    box-shadow: 0 0 30px #00ffff;
    transform: scale(1.05);
}

.mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #00ffff;
    background: rgba(10, 10, 30, 0.8);
    border: 2px solid #00ffff;
    padding: 8px 15px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff;
    transition: all 0.3s ease;
    z-index: 20;
}

.mute-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px #00ffff;
    transform: scale(1.05);
}