body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

#gameCanvas {
    border: 3px solid white;
    border-radius: 10px;
    background: #2a2a2a;
    display: block;
    margin: 0 auto;
}

.controls {
    margin-top: 20px;
}

.controls p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

#restartBtn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#restartBtn:hover {
    background: #45a049;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
}

#progressBar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: #ccc;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

#progressBar div {
    width: 100%;
    height: 100%;
    background: #4CAF50;
    transition: width 3s linear;
}