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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.game-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    color: #764ba2;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.score, .high-score {
    color: #667eea;
}

#gameCanvas {
    border: 4px solid #764ba2;
    border-radius: 10px;
    background: #e8f4f8;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.controls {
    margin-top: 20px;
    color: #666;
    font-size: 0.95em;
}

.controls p {
    margin: 5px 0;
}

.controls strong {
    color: #764ba2;
    font-size: 1.1em;
}

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

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

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

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

#restartBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

#restartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

#restartBtn:active {
    transform: translateY(0);
}
