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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.1) 2px, rgba(0, 255, 0, 0.1) 4px);
}

.game-container {
    background-color: #000;
    border: 4px solid #0f0;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 800px;
    width: 95%;
    margin: 20px;
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.1) 2px,
        rgba(0, 255, 0, 0.1) 4px
    );
    pointer-events: none;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score-container {
    font-size: 1.2rem;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

#gameCanvas {
    background: #000;
    border: 2px solid #0f0;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    display: block;
    image-rendering: pixelated;
}

.controls {
    margin-top: 20px;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.horizontal-controls {
    display: flex;
    gap: 20px;
}

.control-btn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 15px 25px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-shadow: 0 0 5px #0f0;
}

.control-btn:hover {
    background: #0f0;
    color: #000;
}

.control-btn:active {
    transform: scale(0.95);
}

.game-over, .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 4px solid #0f0;
    padding: 30px;
    text-align: center;
    display: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-over h2, .start-screen h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0f0;
    text-transform: uppercase;
    text-shadow: 0 0 10px #0f0;
}

.difficulty {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.difficulty-btn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 10px 20px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s ease;
}

.difficulty-btn.active {
    background: #0f0;
    color: #000;
}

#startBtn, #restartBtn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 15px 30px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
}

#startBtn:hover, #restartBtn:hover {
    background: #0f0;
    color: #000;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
    
    .game-container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
} 