body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

#game-container {
    width: 95%;
    max-width: 500px;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 90vh;
    margin: auto;
}

header h1 {
    color: #ff0000;
    font-size: 1.8rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#status-bar {
    display: flex;
    justify-content: space-around;
    background: #111;
    padding: 12px 5px;
    border-radius: 8px;
    border: 1px solid #222;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

#bonus-badge {
    background: #ffd700;
    color: #000;
    padding: 8px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.hidden { display: none !important; }

#question {
    font-size: 1.3rem;
    margin: 20px 0;
    min-height: 60px;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
    padding: 16px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    word-wrap: break-word;
}

button:hover {
    background: #222;
    border-color: #ff0000;
}

button:active {
    transform: scale(0.98);
}

#message {
    height: 30px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

#game-over {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

@media (max-height: 650px) {
    header h1 { font-size: 1.4rem; }
    #question { font-size: 1.1rem; margin: 10px 0; }
    button { padding: 12px; font-size: 0.9rem; }
    #status-bar { padding: 8px 5px; }
}
/* Contenitore per le stelle/note */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Resta dietro a tutto */
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    overflow: hidden;
}

/* Stile della singola nota/stella */
.star-note {
    position: absolute;
    color: rgba(255, 255, 255, 0.4); /* Bianco semi-trasparente */
    font-size: 12px;
    user-select: none;
    pointer-events: none;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); filter: blur(1px); }
    50% { opacity: 0.8; transform: scale(1.2); filter: blur(0px); text-shadow: 0 0 5px #fff; }
}