
          state.correctChars = 0; state.totalTyped = 0;
          state.spawnCooldown = 0; state.words.length = 0;
          state.buffer = ''; state.targetId = null;
          state.rainLines.length = 0;
          for (let i = 0; i < 80; i++) spawnRainLine(true);
          updateHUD();
          render(0);
        }

        function startGame() {
          resetGame();
          startCountdown(() => {
            state.running = true;
            state.lastTime = performance.now();
            hiddenInpu