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

body {
    background: #000;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

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

.header {
    margin-bottom: 20px;
}

h1 {
    font-size: 48px;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
    letter-spacing: 8px;
    margin-bottom: 15px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.score, .level, .lives {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score span:first-child, .level span:first-child, .lives span:first-child {
    font-size: 12px;
    color: #888;
}

.score span:last-child, .level span:last-child, .lives span:last-child {
    font-size: 24px;
    font-weight: bold;
}

#score {
    color: #00ff00;
}

#level {
    color: #ffa500;
}

#lives {
    color: #ff0000;
}

#gameCanvas {
    background: #000;
    border: 4px solid #2121de;
    box-shadow: 0 0 20px rgba(33, 33, 222, 0.5);
    display: block;
    margin: 0 auto 20px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 3px solid #ffff00;
    background: #000;
    color: #ffff00;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

button:hover {
    background: #ffff00;
    color: #000;
    box-shadow: 0 0 15px #ffff00;
}

button:disabled {
    border-color: #666;
    color: #666;
    cursor: not-allowed;
    background: #000;
}

button:disabled:hover {
    background: #000;
    box-shadow: none;
}

.instructions {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}

.instructions p {
    margin: 5px 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px currentColor;
}

#gameOverTitle.game-over {
    color: #ff0000;
}

#gameOverTitle.win {
    color: #00ff00;
}

.modal p {
    font-size: 24px;
    margin-bottom: 30px;
}

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

@media (max-width: 600px) {
    h1 {
        font-size: 32px;
    }

    #gameCanvas {
        max-width: 100%;
    }

    .score-board {
        gap: 20px;
    }
}
