Games as plugins, not pages
The module contract: meta.ts, scoped styles, two registration lines — and the split that keeps game code off every other page.
Every game lives in /games/<slug>/ as a small set of files: meta.ts (multilingual metadata), Game.tsx (the play view), styles/ (CSS Modules), plus its own engine and assets. Two registries are kept deliberately apart. lib/gameRegistry.ts holds metadata only, and it is what pages, sitemap, robots and feeds read. lib/gameLoaders.ts holds the single dynamic import() per game, and nothing but the play view ever imports it. That split is not tidiness: with the import() living inside the shared registry, the bundler hoisted every game into a chunk that every page loaded — measured at 189 KB of uncompressed JavaScript on the home page. After the split, the home page, the library, the detail page and the dev log request zero game chunks, and the play page pulls only its own game. Adding a game is a folder plus two lines: one metadata entry and one loader entry. `npm run check:plugins` fails the build if the two drift apart, or if an import() reappears anywhere outside the loader table. Sitemap, hreflang, listing, detail and play pages are all derived from that registration at build time.