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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

.game-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2em;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
}

.label {
    margin-right: 5px;
}

#gameCanvas {
    display: block;
    background: #2c3e50;
    border: 3px solid #34495e;
    border-radius: 10px;
}

.controls {
    text-align: center;
    margin-top: 15px;
}

.controls p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #f39c12;
}

.game-over h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f39c12;
}

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

.hidden {
    display: none;
}

#finalScore {
    color: #2ecc71;
    font-weight: bold;
}
