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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

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

.header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.player-stats {
    display: flex;
    gap: 30px;
}

.fire-stats {
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.water-stats {
    color: #4ecdc4;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.5);
}

.level-info {
    color: #ffd700;
    font-weight: bold;
}

#gameCanvas {
    display: block;
    border: 3px solid #fff;
    border-radius: 5px;
    background: #1a1a2e;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.controls {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.control-group {
    text-align: center;
}

.control-group h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.control-group p {
    font-size: 0.9rem;
    color: #ccc;
}

.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    z-index: 1000;
}

.game-message.hidden {
    display: none;
}

.game-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#restartBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

#restartBtn:hover {
    transform: scale(1.05);
}

#restartBtn:active {
    transform: scale(0.95);
}
