# 3:14 AM — Shared Game Brief (Neon XHigh vs Opus 5.5 XHigh)

> **Sealed Buildoff Rule `[locked]`:** Two agents are building this game independently from the exact same brief and `browser-game-craft` skill:
> - **Gemini 4 Neon XHigh (`agy-sam`)** → `/Users/austin/dev/314-am/neon/`
> - **Claude Opus 5.5 XHigh (`cc-canary`)** → `/Users/austin/dev/314-am/opus/`
>
> **Do NOT read, list, or inspect the other contestant's folder** until both builds are complete and Austin has compared them. Each contestant chooses its own physics stack, 3D visual craft, level layout, audio design, and game feel freely.

---

## 1. Routing (`skills/browser-game-craft/`)

- **Track:** Full Track (`realtime-3d`)
- **3C Profile:** `realtime-3d` (read `~/dev/feral-tool-heuristics/skills/browser-game-craft/SKILL.md`, `references/3c-and-feel.md`, and `references/gates-and-rubric.md`)
- **Core Loop:** `skill-flow` + stealth-timing risk/reward
- **Verification:** `window.__game.runSelfTests()` + Playwright headless playtest + multi-state contact sheet + `390×844` portrait peak-HUD screenshot + **1 focused 5-pillar visual polish pass**

---

## 2. Genre Authenticity

- **First-glance identity:** A moody, moonlit Three.js 3D mid-century modern parlor at 3:14 AM — elevated walnut shelves, coffee table, console/mantel, glass display stand, and a bedroom doorway at the back — with an unmistakably silhouetted **tuxedo cat** poised beside priceless, precariously perched breakables.
- **Native core fun:** Tactile paw-swipe physics + chain-reaction domino destruction balanced against real-time stealth. Gentle nudges tease items to the edge quietly; charged swats launch domino cascades (marble → wine glasses → brass globe → Ming vase → **the forbidden glowing laptop**) that skyrocket the chaos combo *and* spike the sleeping human's **Wake Meter**.
- **Native outcome model:** Clear the room's destruction target / survive to dawn (`WIN`) with chaos score, combo peak, and style grade — or get caught mid-crime too many times (`BUSTED` / game over), with instant 1-tap replay and optional post-win free-roam or escalation wave.

---

## 3. Divergence & Hooks

- **Cliché explicitly rejected `[target]`:** No flat untextured primitive-block rooms with uniform harsh white light, and no slow awkward walking-simulator controls. Lean into **noir indigo moonlight vs. warm amber hallway light**, readable silhouettes (`room/furniture < breakables < tuxedo cat & wake beam`), snappy surface-to-surface prowling/leaping, expressive cat body language (tail flick, paw wind-up, tucked loaf), and genuinely gratifying teeter-then-shatter physics.
- **Signature Twist `[locked]` — The "Act Natural" Loaf Freeze:** When cumulative noise crosses the wake threshold (or the human stirs), the bedroom door cracks open with a dramatic ~1.5s telegraph (creak, warm hallway light bar widening, footsteps). You must snap into an **innocent loaf pose** (tucked paws, glowing innocent eyes, motionless) before the spotlight sweep catches you mid-crime. Hold the loaf until the door shuts — even while shards are still clinking on the rug.
- **Peak Moment `[locked]`:** Launching a 3+ object domino cascade across a shelf/table (hit-stop, rising combo multiplier, ceramic/crystal/metal Foley, flying 3D shards) and slamming into a deadpan loaf pose a beat before the amber hallway beam sweeps across the wreckage.

---

## 4. Platform, Audio & Packaging `[locked]`

- **Desktop + iPhone (`390×844` portrait):**
  - Full-viewport `100dvh` canvas, safe-area aware HUD, zero horizontal overflow at `390×844` under peak HUD density.
  - Desktop controls: WASD/Arrows to prowl & leap between surfaces, mouse/Space/click hold-and-release to aim & charge paw swat, Shift/F/Right-Click to snap into Innocent Loaf.
  - Mobile portrait controls: intuitive touch movement/aim + charge-swat + dedicated Loaf button (touch targets `≥ 48px`, `touch-action: none`).
- **Audio:** Procedural Web Audio Foley (ceramic clink, crystal shatter, slow wood scrape/teeter, muffled meow/"mrrp?", door creak, footsteps, moody nocturnal pulse) — unlocked on first user gesture, clean mute toggle silencing both SFX and BGM, zero loop stacking on Replay.
- **Self-contained static build:** Vite + Three.js (`base: './'` so `dist/` works both standalone and under any subpath). Zero broken external CDN assets or 404s. Keep all feel/balance constants in one top-level `config` object.

---

## 5. Acceptance Contract — Hard Fails (`window.__game.runSelfTests()`)

Expose `window.__game` with `getState()`, `getStats()`, `sendAction(action)`, and `runSelfTests()` verifying at least these 5 invariants:

1. **`finitePhysics`:** Every dynamic body (cat + breakables + shards) has finite coordinates/velocities (zero `NaN`/`Infinity`), and untouched props settle cleanly at rest.
2. **`boundsAndSurfaces`:** Cat stays within room/furniture bounds with clean collision/sliding and never falls through the floor or escapes walls.
3. **`dominoAndBreakable`:** Swatting a breakable imparts real impulse, can knock it off a ledge into shatter/break state, increments score/combo, and raises the Wake Meter.
4. **`loafStealthCheck`:** During a human hallway inspection sweep, being active/mid-crime registers a catch/penalty, while holding Innocent Loaf passes the inspection safely.
5. **`cleanResetAndUI`:** Title/start overlay unmounts cleanly on play; Replay cleanly resets score, combo, props, wake meter, inspection state, and audio without stale state or console/page errors.

---

## 6. Top `config` Levers (keep in one centralized `config` module)

Expose and document the 4–6 highest-leverage tuning knobs (e.g., `swatImpulseRange`, `wakeDecayPerSec`, `inspectionTelegraphSec`, `comboWindowSec`, `catMoveSpeed`, `targetDestructionPct`).

---

## 7. Deliverables (inside your own folder: `neon/` or `opus/`)

1. Runnable source + production static bundle (`npm run build` → `dist/`, `base: './'`).
2. Headless Playwright verification script that runs `window.__game.runSelfTests()` (all green, zero console/page/404 errors) and captures:
   - A multi-state gameplay **contact sheet PNG** (title/opening, active prowling/aiming, mid-cascade shatter + combo, hallway light sweep + loaf freeze, win or busted end card).
   - A **`390×844` portrait** peak-HUD screenshot.
3. **One focused 5-pillar visual polish pass** after reviewing capture #1 (lighting/exposure, pose/grounding, material/landmark parity, action juice, multi-frame motion stability), followed by a clean re-verification capture.
4. `BUILD-NOTES.md` summarizing your architecture, physics & audio choices, verification results, what changed in the polish pass, top `config` levers, and up to 5 numbered P2s.
