body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
}

.game-container {
    position: relative;
    text-align: center;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 4px #000;
}

#highScore {
    position: absolute;
    top: 50px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 4px #000;
}

#gameCanvas {
    border: 2px solid #333;
    background: #87CEEB;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    height: auto;
    touch-action: none;
}

.menu, #gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.menu h1, #gameOver h1 {
    margin: 0;
    font-size: 32px;
    color: #ff4444;
    text-shadow: 2px 2px 4px #000;
}

#gameOver p {
    font-size: 20px;
    margin: 20px 0;
}

.menu button, #gameOver button {
    padding: 10px 20px;
    font-size: 16px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Press Start 2P', cursive;
}

.menu button:hover, #gameOver button:hover {
    background: #45a049;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    #gameCanvas {
        width: 100%;
        height: 80vh;
    }
    .menu h1, #gameOver h1 {
        font-size: 24px;
    }
    .menu button, #gameOver button {
        font-size: 14px;
    }
}
