# Rigged Claw — Shared Game Brief (3-Way Frontier Model Bake-Off #3)

> **Sealed Buildoff Rule `[locked]`:** Three frontier models at XHigh effort are building this game independently and strictly blind from the exact same brief and `browser-game-craft` skill:
> - **Gemini 4 Neon XHigh (`agy-sam`)** → `/Users/austin/dev/rigged-claw/neon/`
> - **Claude Opus 5.5 XHigh (`cc-canary`)** → `/Users/austin/dev/rigged-claw/opus/`
> - **GPT-6.2 Astra XHigh (`codex exec`)** → `/Users/austin/dev/rigged-claw/astra/`
>
> **Do NOT read, list, grep, or inspect any other contestant's folder** until all three builds are complete and Austin has compared them. Each contestant chooses its own physics stack (cannon-es, Rapier, or custom 3D rigid-body/claw solver), 3D cabinet & prize craft, rigging/upgrade loop, 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:** Tactile 3D arcade UFO catcher (`skill-flow` depth alignment & physics manipulation) + **Rigged-Machine Outsmarting Loop** (visible/telegraphed payout cycle, cabinet bump risk-reward, between-drop hacks/upgrades, escalating prize heist!)
- **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 gleaming, richly lit Three.js **3D Arcade UFO Catcher / Claw Machine** — glossy metallic cabinet frame, glowing marquee header, clear glass showcase panels with corner trim and specular reflection, physically traveling **overhead X/Z gantry rails** with stepper carriage, retracting cable, articulated **3-prong chrome mechanical claw**, corner **Prize Drop Chute** with glowing acrylic lip + sensor flash, and a **layered 3D pile of distinct, tactile, weighted prizes** (plushies, capsules, retro toys, collectibles — at least 5 visually distinct 3D prize archetypes with different shapes, weights, slipperiness, and ticket values, crowned by a gleaming high-value **Grand Prize**!).
- **Native core fun:**
  - **Depth & Alignment Thrill:** Steer the overhead gantry across X and Z (with both a subtle drop-aim laser/shadow cue AND an instant **Camera Angle Toggle** — Front / Side / 3/4 Showcase — so lining up depth feels authentic and rewarding).
  - **Physical Claw Cycle:** Press Drop → gantry locks, cable spools down, claw opens, settles onto the prize pile, prongs clamp inward around whatever geometry they contact, cable winches up with real pendulum sway, gantry returns over the chute, and prongs release so prizes tumble down the chute for an instant celebratory sensor flash & chime.
  - **Authentic Prize Physics:** Prizes rest naturally in a stacked 3D pile, jostle and topple when bumped or grabbed, slip realistically when grabbed off-center or on a weak-grip cycle, and can even be **nudged/tipped over the chute lip** using smart claw placement or a clutch cabinet bump!
- **Native outcome model:** Run a **Heist / Coin Session** (start with a finite coin purse, e.g. 8–10 coins; earn bonus coins or spend tickets on machine hacks/upgrades between drops; clear escalating prize quota / extract the **Grand Prize** to **`WIN`** with your trophy shelf, total value, efficiency, and grade — or run out of coins for **`GAME OVER`** with instant 1-tap Replay and zero leftover state).

---

## 3. Divergence & Hooks

- **Cliché explicitly rejected `[target]`:** No magnetic instant-snap "raycast grabs nearest prize center and teleports it to chute" fake claw, no sterile white void with plain colored spheres, and no frustrating pure-RNG failure with zero player counterplay. Lean into **genuine 3-prong mechanical grip + pendulum sway + weighted prize tumbling**, **irresistible glossy arcade cabinet lighting** (warm showcase LEDs, neon marquee, glass reflections, plush/vinyl/metallic prize material contrast), and **player agency over the machine's rigging**.
- **Signature Twist `[locked]` — "The Machine Is Rigged (And You Can Beat the Rig!)":**
  - **Rigged Grip Cycle:** Just like real arcade cranes, the machine secretly alternates between **Limp/Rigged drops** (weak prong torque where heavy prizes slip mid-lift unless pinched cleanly or supported) and **Payout / Full-Clamp drops** — surfaced via a live **Grip Tension / Payout Meter** (or hackable voltage readout) so sharp players time big grabs on high-tension cycles and use weak drops to topple/reposition prizes near the chute!
  - **Cabinet Bump & Security Alarm:** Players can physically **Bump / Shove the Cabinet** (`B` / `Shift` or touch button) to knock a precariously balanced prize into the chute or settle a slipping claw — imparting real physical impulse + cabinet/camera jolt while pushing a visible **Security / Tilt Alarm** gauge (`CALM` → `WARN` → **`ALARM!`** which trips red strobes, sirens, and forces the claw to drop its prize until resetting cleanly for the next play).
  - **Between-Drop Hacks / Upgrades (at least 4 distinct options):** Spend earned tickets/tokens (or pick after hitting milestones) on tangible machine exploits that visibly change gameplay — e.g., **Overclock Servos** (higher clamp torque + blue arc sparks on prongs), **Grip Tape / Rubber Tips** (higher friction), **Payout Rig-Scanner** (reveals exact clamp strength & next full-grip drop), **Heavy Sway / Swing-Drop** or **Extra Coins / Magnet Pulse**.
- **Peak Moment `[locked]`:** On a **high-voltage Payout drop**, the 3-prong claw threads cleanly around the heavy gleaming **Grand Prize** perched atop a jittering pile — prongs lock with electric sparks, cable winches up swaying precariously while grip tension trembles near breaking, a clutch **Cabinet Bump** nudges a dangling plushie right over the acrylic chute lip, and the Grand Prize tumbles down the chute triggering strobe lights, confetti/sparks, and the arcade jackpot fanfare!

---

## 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** (coins left, ticket value / quota progress bar, caught prizes count, rigging/voltage meter, alarm indicator, active hacks, camera button, and touch controls all crisp and unobstructed).
  - **Desktop controls:** `WASD` / `Arrow` keys = Move gantry (X/Z), `Space` / `Enter` = Drop Claw (optional second press during descent to snap-close early!), `C` / `Tab` = Cycle Camera Angle (`3/4` / `Front` / `Side`), `B` / `Shift` = Cabinet Bump, `U` / `H` = Hacks / Upgrades panel (when available), `M` = Mute.
  - **Mobile portrait (`390×844`) controls:** Responsive touch directional controls (`≥ 48px`, `touch-action: none`), bold `DROP` button, `CAM` angle button, and `BUMP` button.
- **Audio:** Procedural Web Audio arcade Foley (stepper motor gantry whirr pitched to movement, coin-insert clink, winch spool descent/ascent whirr, pneumatic claw clamp clack, tension creak/slip ticks during precarious lifts, soft plush thuds & capsule clacks, cabinet bump thump, security alarm klaxon, chute IR-sensor chime, jackpot arpeggio fanfare, subtle upbeat arcade parlor BGM) — 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 standalone and under any subpath). Include an inline SVG favicon. Zero broken external CDN assets or 404s. Keep all claw speed, grip torque, rigging cycle, physics, and prize value constants in one centralized `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. **`gantryBoundsAndDropCycle`:** Commanding gantry motion past cabinet limits clamps strictly inside rail bounds; triggering Drop completes the full claw state machine (`idle → descending → closing → lifting → returning → releasing → idle`) with finite coordinates (zero `NaN`/`Infinity`) and returns the claw cleanly to rest.
2. **`clawGrabAndPhysicsContainment`:** Positioning the claw over a prize and running a drop makes real physical contact, grasps/lifts or measurably displaces the prize, and all prizes remain finite and strictly contained inside cabinet/chute bounds with zero floor/wall tunneling or void escapes.
3. **`chuteDeliveryAndScoring`:** Delivering a prize into the chute cleanly collects it, increments ticket value / score and caught-prize count, removes it from the active bin pile, and advances win progress.
4. **`riggingCycleAndBumpAlarm`:** The machine's grip rigging cycle measurably changes grip strength between weak/rigged and strong/payout states (exposed in state); triggering Cabinet Bump imparts physical impulse to prizes/claw and raises the Alarm meter, tripping `ALARM` past threshold (forcing a drop/lockout) before resetting cleanly on the next turn.
5. **`endStatesAndCleanReset`:** Reaching the win condition transitions cleanly to `WIN` and exhausting coins transitions cleanly to `GAME OVER`, both showing trophy/score summary and grade; triggering Replay cleanly resets coins, score, prize pile, claw position, rigging cycle, alarm, hacks, overlays, and audio (`bgmInstances <= 1`) with zero 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., `gantrySpeed`, `weakGripTorque`, `payoutGripTorque`, `payoutCycleLength`, `bumpImpulse`, `startingCoins`, `winQuota`).

---

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

1. Runnable source + production static bundle (`npm run build` → `dist/`, `base: './'`).
2. Headless Playwright verification script that runs `window.__game.runSelfTests()` (all 5 green, zero console/page/404 errors) and captures:
   - A multi-state gameplay **contact sheet PNG** (title over live cabinet, gantry positioning / side-camera alignment view, claw clamping & lifting a prize with tension/sway, Hacks/Upgrades or ALARM state, chute score / WIN or GAME OVER end card).
   - A **`390×844` portrait** peak-HUD screenshot (zero horizontal overflow).
3. **One focused 5-pillar visual polish pass** after inspecting 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 & claw solver choices, prize & hack catalogs, verification results, what changed in the polish pass, top `config` levers, and up to 5 numbered P2s.
