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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #001a00 0%, #000a00 50%, #000 100%);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    pointer-events: none;
    z-index: 10;
}

#score {
    font-size: 48px;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
}

#high-score {
    position: absolute;
    top: 80px;
    font-size: 18px;
    color: #88ff88;
    text-shadow: 0 0 10px #00ff00;
}

#start-screen,
#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    pointer-events: auto;
}

#start-screen h1,
#game-over-screen h2 {
    font-size: 64px;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

#game-over-screen h2 {
    color: #ff4444;
    text-shadow: 0 0 30px #ff4444, 0 0 60px #ff0000;
}

.subtitle {
    font-size: 24px;
    color: #88ff88;
    margin-bottom: 40px;
    text-shadow: 0 0 15px #00ff00;
}

.instructions {
    margin-bottom: 40px;
    font-size: 18px;
    color: #aaffaa;
}

.key {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    border-radius: 8px;
    margin: 0 5px;
    color: #00ff00;
    font-weight: bold;
}

.final-score {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ffffff;
}

#start-btn,
#restart-btn {
    padding: 20px 60px;
    font-size: 24px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    color: #000;
    background: linear-gradient(180deg, #00ff00, #00aa00);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 0 0 30px #00ff00, 0 0 60px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

#start-btn:hover,
#restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px #00ff00, 0 0 100px rgba(0, 255, 0, 0.7);
}

.hidden {
    display: none !important;
}

/* Mobile touch areas */
@media (max-width: 768px) {
    #start-screen h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .instructions {
        font-size: 14px;
    }
    
    #score {
        font-size: 32px;
    }
    
    #start-btn,
    #restart-btn {
        padding: 15px 40px;
        font-size: 18px;
    }
}
