// Allow menuMusic to play after first user click (for autoplay policy) document.addEventListener("DOMContentLoaded", () => { document.addEventListener("click", () => { if (menuMusic.paused) { menuMusic.play().catch((e) => { console.log("Autoplay failed:", e); }); } }, { once: true }); }); #mainMenu, #gameContainer, #gameOverStats { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(black, #000022); z-index: -1; } /* Responsive scaling for #gameOverStats and its buttons on mobile */ @media (max-width: 600px) { #gameOverStats { font-size: 2.8vw; padding: 2.5vw; max-width: 68vw; } #gameOverStats button { font-size: 3.2vw; padding: 6px 10px; } #finalStats { gap: 20px !important; } }