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

body {
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: inline-block;
}

#gameCanvas {
    display: block;
    background: #0a0a0a;
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#start-screen, #game-over-screen, #level-screen {
    text-align: center;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.neon-text {
    font-size: 3em;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
    margin-bottom: 10px;
    animation: neon-flicker 2s infinite alternate;
}

.subtitle {
    font-size: 1.2em;
    color: #ff6b35;
    text-shadow: 0 0 5px #ff6b35;
    margin-bottom: 20px;
}

.controls-info {
    margin: 20px 0;
    color: #aaa;
}

.controls-info p {
    margin: 8px 0;
    font-size: 1.1em;
}

.neon-btn {
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    padding: 15px 30px;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
    text-shadow: 0 0 5px #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.neon-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

#game-over-title {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.score-text {
    font-size: 1.5em;
    color: #ff6b35;
    margin-bottom: 20px;
}

#hud {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    color: #00ffff;
    font-size: 1.1em;
    text-shadow: 0 0 5px #00ffff;
    pointer-events: none;
    z-index: 10;
}

#hud span {
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .neon-text {
        font-size: 2em;
    }
    .subtitle {
        font-size: 1em;
    }
    .neon-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    #hud {
        font-size: 0.9em;
    }
}
