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

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

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 10, 0, 0.9);
    z-index: 100;
}

.screen.hidden {
    display: none;
}

/* Start Screen */
.title-container {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-family: 'Black Ops One', cursive;
    font-size: clamp(40px, 10vw, 80px);
    color: #FFD700;
    text-shadow: 
        0 0 10px #FF6600,
        0 0 20px #FF3300,
        0 0 40px #FF0000,
        4px 4px 0 #333;
    letter-spacing: 4px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.dino-silhouettes {
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath fill='%23333' d='M20 50 L25 30 L30 35 L35 20 L45 25 L50 15 L55 25 L60 20 L65 30 L70 25 L75 35 L80 30 L85 50 Z'/%3E%3Cpath fill='%23444' d='M120 50 L125 40 L130 35 L140 30 L150 35 L155 40 L165 35 L170 40 L175 50 Z'/%3E%3C/svg%3E") repeat-x center;
    animation: walkSilhouettes 4s linear infinite;
}

@keyframes walkSilhouettes {
    0% { background-position: 0 center; }
    100% { background-position: 200px center; }
}

.action-btn {
    font-family: 'Black Ops One', cursive;
    font-size: 24px;
    padding: 15px 50px;
    background: linear-gradient(180deg, #4A5D23 0%, #2D3B15 100%);
    border: 3px solid #6B8E23;
    color: #FFD700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.5);
    animation: tankRumble 0.1s infinite;
}

.action-btn.secondary {
    background: linear-gradient(180deg, #333 0%, #111 100%);
    border-color: #555;
}

@keyframes tankRumble {
    0%, 100% { transform: translateY(-2px) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(0.5deg); }
}

.controls-guide {
    margin-top: 30px;
    text-align: center;
}

.controls-guide p {
    font-size: 14px;
    color: #88AA88;
    margin: 8px 0;
}

.key {
    display: inline-block;
    background: #333;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: #00FF00;
    border: 1px solid #00FF00;
    margin-right: 8px;
}

.high-score {
    margin-top: 30px;
    font-size: 18px;
    color: #FFD700;
    text-shadow: 0 0 10px #FF6600;
}

/* HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

#hud.hidden {
    display: none;
}

/* Health */
#health-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.hud-label {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #88FF88;
}

#health-bar {
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00FF00;
    border-radius: 3px;
    overflow: hidden;
}

#health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00FF00, #66FF66);
    transition: width 0.3s, background 0.3s;
    box-shadow: 0 0 10px #00FF00;
}

/* Score */
#score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

#score {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
}

#kill-counter {
    font-size: 12px;
    color: #88FF88;
    letter-spacing: 1px;
}

#wave-display {
    font-size: 14px;
    color: #FFD700;
    margin-top: 5px;
    text-shadow: 0 0 10px #FF6600;
}

/* Ammo */
#ammo-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border: 2px solid #FF6600;
    border-radius: 5px;
}

.ammo-icon {
    font-size: 24px;
    margin-right: 10px;
}

#ammo-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #FF6600;
    text-shadow: 0 0 10px #FF6600;
}

/* Minimap */
#minimap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    border: 2px solid #00FF00;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

#minimap-canvas {
    display: block;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.crosshair-line {
    position: absolute;
    background: rgba(0, 255, 0, 0.8);
}

.crosshair-line.h {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.crosshair-line.v {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.crosshair-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #FF0000;
}

/* Pause Menu */
#pause-menu h2 {
    font-family: 'Black Ops One', cursive;
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 30px;
}

.settings-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-group label {
    font-size: 14px;
    color: #88FF88;
    margin-bottom: 8px;
}

.settings-group input[type="range"] {
    width: 200px;
    height: 8px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 4px;
    outline: none;
}

.settings-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00FF00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00FF00;
}

/* Game Over */
.extinction-title {
    font-family: 'Black Ops One', cursive;
    font-size: clamp(30px, 8vw, 60px);
    color: #FF0000;
    text-shadow: 
        0 0 10px #FF0000,
        0 0 20px #FF0000,
        0 0 40px #FF0000;
    margin-bottom: 30px;
    animation: extinctionPulse 1s ease-in-out infinite;
}

@keyframes extinctionPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.final-stats {
    margin-bottom: 30px;
}

.stat {
    font-size: 18px;
    margin: 10px 0;
    color: #88FF88;
}

.stat span {
    color: #FFD700;
    font-weight: bold;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 12px;
    z-index: 200;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer span {
    color: #888;
}

footer a {
    color: #00FF00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #health-bar {
        width: 120px;
        height: 15px;
    }
    
    #score {
        font-size: 24px;
    }
    
    #ammo-container {
        padding: 8px 12px;
    }
    
    #ammo-count {
        font-size: 16px;
    }
    
    #crosshair {
        width: 30px;
        height: 30px;
    }
    
    .action-btn {
        font-size: 18px;
        padding: 12px 30px;
    }
    
    .controls-guide {
        display: none;
    }
}