You are implementing PHASE 5 ONLY of "Body Snatcher" in index.html (exists from Phases 1-4). @AGENTS.md is the full spec — read §Game Feel, §Achievements, §Controls, §Visual Style. @verify.js is the gate; run `node verify.js 5` until "PHASE 5 PASSED" (exit 0). PRESERVE everything; EDIT index.html. SCOPE for Phase 5 — polish, audio, achievements, win/lose, pause, full in-game controls, and a complete bestiary. This is the completeness pass. 1. AUDIO via Web Audio API (no files). Build a small sound module: createOscillator()+createGain() envelopes for hit, possess, death, pickup, explosion, and UI blips. Expose window.GAME.playSound(name) and actually wire the calls into game events. The harness counts AudioContext method calls (createOscillator/createGain/etc.) after a possess/attack — they must be >0. Guard if AudioContext is unavailable/mock. NEVER call new AudioContext() at load time unconditionally (the harness mocks AudioContext; only create it lazily on first sound or user gesture). 2. GAME FEEL. Snappy ~85ms tile movement interpolation; hold-to-move continuous travel; ~600ms live-tick cadence (presentation only — tick(n) stays deterministic). Screen shake on explosions/big hits (scaled intensity). Particles on death, possession, essence pickup, footstep dust. Hit flash (entity flashes white ~100ms) + hit sparks / small floating damage numbers. Polished possession VFX: aura on the current host; dissolve/flash on possess and eject. NONE of this may break the deterministic tick(n) model or the mock-canvas/mock-audio safety. 3. ACHIEVEMENTS (localStorage-tracked on G.achievements as an object of unlocked ids). Implement and grant: - First Possession (possess first enemy) - Body Hopper (possess 5 different enemy types in one run) - Pacifist Ghost (reach floor 3 without taking host damage) - Essence Hoarder (accumulate >=30 essence) <-- grant when G.essence >= 30 - Deep Diver (reach floor 7) <-- grant when G.floor >= 7 (including via setFloor) - Escape Artist (win: reach floor 10 exit) - Bomberman (kill 3 enemies with one Bomber detonation) - Dual Wield (unlock Body Tree T3) The harness triggers First Possession (possess), Deep Diver (setFloor(7)), Essence Hoarder (essence=30) and asserts >=3 unlocked. So those three MUST fire deterministically. 4. WIN / LOSE. - LOSE: when the ghost timer reaches 0 (tick drains it), state -> 'lost' and show a game-over screen with run stats. The harness ticks a ghost ~300 times and expects 'lost'. - WIN: stepping the ghost onto the exit tile on FLOOR 10 -> state -> 'won' and a victory screen. (Lower floors descend/shop.) The harness walks the ghost to the floor-10 exit and expects 'won'. 5. PAUSE (ESC). Toggle state between 'playing'/'possessed' and 'paused'. The pause overlay is a bordered panel showing Save + Quit and the relevant controls (ESC resume, etc.). From pause, also allow opening the bestiary. 6. CONTROLS EVERYWHERE. Title screen explains WASD/arrows, SPACE, Q/E, X, ENTER, ESC (already from Phase 1 — keep it). HUD shows the contextual SPACE action and the X abandon hint while possessed. Shop overlay shows how to pick/skip/back. Pause overlay shows resume/quit controls. 7. BESTIARY (complete). Pressing 'l' on the title screen (and from pause) opens the legend listing ALL 12 enemies with color/shape, enemy behavior, and possessed kit (HP/damage/special). Draw it as a polished bordered panel. HARNESS CONTRACT (read @verify.js phase5; match exactly): - A ghost ticking ~300 times reaches state 'lost'. - setFloor(10) then walking the ghost onto the exit reaches state 'won'. - >=3 achievements unlock after possess + setFloor(7) + essence=30. - AudioContext methods (createOscillator/createGain/...) are called >0 after a possess/attack. - A ~200-tick stress test (move, possess, attack, descend 3 floors) throws NO error. When done run `node verify.js 5` and fix all failures to "PHASE 5 PASSED". Re-run ALL of verify.js 1..5 to ensure no regression. Then do a final self-review for spec compliance. Write less code; everything ships working.