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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(to bottom, #0a0a1a, #1a0a2e);
    color: #00ff00;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.header h1 {
    font-size: 3em;
    letter-spacing: 8px;
    text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00; }
    50% { text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00, 0 0 80px #00ff00; }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.stats span {
    background: rgba(0, 255, 0, 0.1);
    padding: 5px 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    background: #000;
}

canvas {
    display: block;
    background: #000;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff0000;
    color: #ff0000;
}

.screen-content p {
    font-size: 1.3em;
    margin: 10px 0;
    text-shadow: 0 0 5px #00ff00;
}

.instructions {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.8;
    letter-spacing: 2px;
}

#finalScore, #nextLevel {
    color: #ffff00;
    font-weight: bold;
}

@media (max-width: 850px) {
    .header h1 {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
        font-size: 1em;
    }
    
    canvas {
        width: 100%;
        height: auto;
    }
}