ne && done(); return; }
            countdownEl.textContent = seq[i];
          }, 700);
        }

        function requestStart() {
          if (over.style.display === 'flex') over.style.display = 'none';
          if (!state.running) startGame();
        }

        startBtn.addEventListener('click', startGame);
        pauseBtn.addEventListener('click', togglePause);
        againBtn.addEventListener('click', () => { over.style.display = 'none'; startGame(); });
        closeBtn.addEventListener('click'