// update UI: score + timer fill function updateUI() scoreSpan.innerText = score; let percent = (timeLeft / 30) * 100; timerFillDiv.style.width = `$Math.max(0, percent)%`; if(timeLeft <= 5) timerFillDiv.style.background = "#dc2626"; else timerFillDiv.style.background = "#f97316";
// Load high score from localStorage (Google Sites friendly) function loadHighScore() const saved = localStorage.getItem('googleSitesGameHighScore'); if(saved !== null && !isNaN(parseInt(saved))) highScore = parseInt(saved); else highScore = 0; highScoreSpan.innerText = highScore;
.score-box span, .best-box span color: #1e2a3e; opacity: 0.7; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.5px;
.btn-primary background: #0f172a; color: white; box-shadow: 0 6px 0 #020617; transform: translateY(-2px);
.btn-primary:active transform: translateY(2px); box-shadow: 0 2px 0 #020617;

