rn Math.floor(rand(min, max + 1)); }

        const state = {
          running: false,
          paused: false,
          lastTime: 0,
          elapsed: 0,
          score: 0,
          level: 1,
          lives: 3,
          correctChars: 0,
          totalTyped: 0,
          spawnCooldown: 0,
          words: [],
          buffer: '',
          targetId: null,
          rainLines: [],
        };

        function accuracy() {
          const acc = state.totalTyped > 0 ? (state.correctChars / state.total