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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 840px;
}

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

.header h1 {
    color: #d63031;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2d3436;
}

.game-info {
    text-align: center;
    margin-bottom: 10px;
    color: #636e72;
    font-size: 1.1em;
}

#gameCanvas {
    display: block;
    background: #ecf0f1;
    border: 4px solid #2d3436;
    border-radius: 10px;
    margin: 0 auto;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10;
}

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

.game-over p {
    font-size: 1.3em;
    margin: 10px 0;
    color: #2d3436;
}

#restartBtn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2em;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

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

.hidden {
    display: none;
}
