* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
}

/* Crosshair */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

#crosshair::before {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#crosshair::after {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#crosshair .dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff00ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px #ff00ff;
}

/* HUD */
#hud {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 100;
}

.hud-left,
.hud-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hud-right {
    align-items: flex-end;
}

/* Health Bar */
.health-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-icon {
    font-size: 24px;
    color: #ff3366;
    text-shadow: 0 0 10px #ff3366;
}

.health-bar {
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff3366;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3366, #ff6699);
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.health-text {
    color: #ff3366;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #ff3366;
    min-width: 50px;
}

/* Ammo Display */
.ammo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ammo-icon {
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
}

.ammo-text {
    color: #ffcc00;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px #ffcc00;
}

.ammo-text .current {
    font-size: 36px;
}

.ammo-text .divider {
    opacity: 0.5;
}

/* Score */
.score-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    color: #00ffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffff;
}

.score-value {
    color: #00ffff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
}

/* Wave Indicator */
.wave-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wave-label {
    color: #ff00ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff00ff;
}

.wave-value {
    color: #ff00ff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 15px #ff00ff;
}

/* Start Screen */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#start-screen h1 {
    font-size: 72px;
    color: #00ffff;
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 80px #00ffff;
    margin-bottom: 20px;
    letter-spacing: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }

    to {
        text-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 80px #00ffff,
            0 0 120px #00ffff;
    }
}

#start-screen .subtitle {
    font-size: 18px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 60px;
    letter-spacing: 5px;
}

#start-screen .start-btn {
    padding: 20px 60px;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#start-screen .start-btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 30px #00ffff;
}

#start-screen .controls {
    margin-top: 60px;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 2;
}

#start-screen .controls span {
    color: #00ffff;
    font-weight: bold;
}

/* Game Over Screen */
#gameover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#gameover-screen h1 {
    font-size: 64px;
    color: #ff3366;
    text-shadow:
        0 0 10px #ff3366,
        0 0 20px #ff3366,
        0 0 40px #ff3366;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

#gameover-screen .final-score {
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 40px;
}

#gameover-screen .final-score span {
    font-size: 48px;
    font-weight: bold;
}

#gameover-screen .restart-btn {
    padding: 20px 60px;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    border: 2px solid #ff3366;
    color: #ff3366;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: all 0.3s ease;
}

#gameover-screen .restart-btn:hover {
    background: #ff3366;
    color: #000;
    box-shadow: 0 0 30px #ff3366;
}

/* Hit Effect */
#hit-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
    border: 10px solid rgba(255, 0, 0, 0);
    transition: border-color 0.1s ease;
}

#hit-effect.active {
    border-color: rgba(255, 0, 0, 0.5);
}

/* Muzzle Flash */
#muzzle-flash {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffff00 0%, #ff6600 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 98;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.05s ease;
}

#muzzle-flash.active {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
}

/* Damage Indicator */
.damage-number {
    position: fixed;
    color: #ffcc00;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #ffcc00;
    pointer-events: none;
    z-index: 200;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Kill Feed */
#kill-feed {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.kill-message {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-left: 3px solid #ff00ff;
    color: #fff;
    font-size: 14px;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Weapon View */
#weapon {
    position: fixed;
    bottom: -20px;
    right: 50px;
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 50;
}

/* Loading screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: #00ffff;
    font-size: 24px;
}

.hidden {
    display: none !important;
}