body {
    margin: 0;
    padding: 0;
    background: #390e90;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    z-index: 10;
}

#music-control {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

#music-control label {
    cursor: pointer;
}

#music-control input {
    margin-left: 5px;
    cursor: pointer;
}

#player {
    position: absolute;
    width: 60px;
    height: 30px;
    background: #00ffcc;
    border-radius: 5px;
    bottom: 50px;
    left: 50%;
}

.star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: yellow;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: fall 3s linear forwards;
}

.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background: red;
    border-radius: 50%;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    from { top: -50px; }
    to { top: 100vh; }
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
}

#game-over h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4444;
}

#game-over p {
    font-size: 24px;
    margin-bottom: 10px;
}

#restart-button {
    padding: 15px 30px;
    font-size: 20px;
    background: #00ffcc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

#restart-button:hover {
    background: #00ccaa;
}