Build a Halls of Torment–class dark fantasy survivors game in Three.js (latest release) + Vite, plain ES modules, from this empty folder. Mood is Diablo II: torchlit stone, bone, blood, fog, deep shadow, never saturated or cartoony. Controls are arrow keys / WASD only (Space = dash, Enter/1-3 = pick upgrade, Esc = pause); no mouse required to play. Runs are 20 minutes, intense from minute one: hundreds of enemies on screen, elites, timed bosses, auto-attacking weapons, and level-up choices that visibly change how a run plays. The bar is a shipped Steam indie: readable chaos, crunchy hit feedback, photographic PBR surfaces, physically plausible torchlight and fog. Never programmer art.
- Architecture first. Before any feature code, write ARCHITECTURE.md: one folder per subsystem (core, arena, player, enemies, combat, abilities, progression, director, vfx, audio, ui, meta, demo run), a shared world data model (ECS or struct-of-arrays, your call, justify it), the public API each module m