# ADR 0002: Source in many files, shipped as one page assembled at build - Status: accepted - Date: 2026-10-27 ## Context Until 1.34 the whole game was `site/index.html`: about 900 KB and 5,100 lines of HTML, CSS and JavaScript in one file, edited by many contributors at once. Nearly every pull request touched that file, so pull requests conflicted with each other all the time, reviews meant scrolling a 900 KB file, and nobody could tell from a diff's file list what a change was about. What had to stay: hosting on GitHub Pages ([ADR 0001](0001-github-pages-only.md)), load time and in-game speed (most players are on phones), saves, the tests that reach into the page's globals (`S`, `R`, `ACT`, `compute()`), and no new runtime dependencies. ## Decision - The page's source lives in `src/`: a shell (`src/index.html`) with `` lines, the styles in `src/styles/*.css` and the game script in `src/game/**/*.js`. - `scripts/lib/page.js` assembles them by **plain concatenation in path order** into the same single, self-contained `index.html` as before: one inline `