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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

.game-container {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.game-header {
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 3em;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    margin-bottom: 15px;
}

.score-panel {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    font-size: 1.2em;
    margin: 0 auto;
    max-width: 600px;
}

.score, .lives, .level {
    background: rgba(0, 255, 136, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #00ff88;
}

#gameCanvas {
    border: 3px solid #00ff88;
    border-radius: 10px;
    background: #000;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.controls {
    margin-top: 20px;
}

.controls p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #00ff88;
}

button {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    padding: 12px 30px;
    margin: 0 10px;
    background: #00ff88;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background: #00cc6e;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px 60px;
    border-radius: 15px;
    border: 3px solid #ff0055;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.7);
}

.game-over h2 {
    font-size: 3em;
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 1.5em;
    margin-bottom: 25px;
}

.hidden {
    display: none;
}

@media (max-width: 850px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    .score-panel {
        flex-direction: column;
        gap: 10px;
    }
}
