te.now();
        state.timerId = setInterval(tick, 1000);
      }

      function stop(endType = 'stopped') {
        if (!state.running) return;
        clearInterval(state.timerId);
        state.timerId = null;
        setRunning(false);
        saveHighScoreIfAny();
        updateHighUI();
        const summary = `Correct ${state.correct}/${state.attempts} • Accuracy ${els.stats.acc.textContent} • Speed ${els.stats.speed.textContent}`;
        els.endMessage.innerHTML = `<div style="font-size:1.35r