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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
}

#gameCanvas {
    background: #000;
    border: 2px solid #333;
    border-radius: 8px;
}

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    pointer-events: none;
}

.score,
.shields {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.shields {
    color: #00ffff;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    pointer-events: auto;
}

.game-over h2 {
    color: #ff4444;
    margin-bottom: 10px;
}

.game-over p {
    color: #fff;
    margin-bottom: 20px;
}

#restartButton {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#restartButton:hover {
    background: #45a049;
}

.hidden {
    display: none;
}
