# Slipstream Garden — Game Design Document v0.1

## Source and Truth Labels

The owner brief is confirmed verbatim. This GDD is the authoritative design target for `slipstream-garden`; rules, content counts, UX, art direction, cost, and technical limits remain design targets until observed. Originality, demand, retention, acquisition cost, conversion, and revenue are unknown except where later hash-bound audits explicitly label external evidence.

## Player Promise and Audience

Slipstream Garden is a deterministic portrait puzzle for mobile players who enjoy compact planning, visible cause and effect, and immediate retries. The player is a windkeeper tending a clockwork pond: rotate one channel, leave a current behind, then watch every active seed-drop respond at once. A level targets 45–120 seconds. The first session teaches a real rotation, one current-driven move, and one synchronized bloom within two minutes.

The primary audience is players aged 13+ who enjoy spatial logic without timers or dexterity tests. The genre is turn-based route planning on concentric rings. The player promise is that every committed turn changes both the current geometry and the movement rules available over the next three turns. Demand, originality, retention, acquisition cost, and revenue remain unknown until their later gates.

## Design Pillars and Non-Goals

1. `P-DOUBLE-CONSEQUENCE`: every `M-ROTATE` must reposition the selected ring immediately and create a wake that can affect later turns.
2. `P-PREDICTABLE`: `M-PREVIEW` must show the snapped rotation, carried pieces, refreshed wakes, and the next simultaneous seed-drop destinations before release.
3. `P-ONE-THUMB`: every core action must work with one circular drag in portrait orientation; no multi-touch or camera control is required.
4. `P-SYNCHRONIZED`: all unresolved seed-drops propose and resolve exactly one movement step together after each committed rotation.
5. `P-FAIR`: there is no random movement, hidden priority, timer pressure, paid solution, or power-up that changes a canonical puzzle.

Non-goals are visual-novel structure, branching dialogue, combat, base building, gacha, multiplayer, freeform route drawing, twitch steering, match-three layers, physics simulation, procedural daily levels at launch, and live-service dependencies. The game must not become a static rotate-to-match picture puzzle: temporary wake planning and simultaneous consequences remain mandatory.

## Player-Facing Fingerprint

- Input: drag one unlocked concentric `E-RING` clockwise or counterclockwise, inspect `M-PREVIEW`, and release on a valid sector snap to commit.
- Decision: choose ring, direction, and distance that improve the current alignment while creating or refreshing safe three-turn movement rules.
- Objective: deliver every `E-SEED` to its matching `E-BUD` within the turn budget.
- Failure: an `E-SEED` enters `E-THORN`, two seeds finish in one cell, two seeds swap cells in one resolution, or the budget reaches zero with seeds unresolved.
- State change: every turn rotates one ring and its carried pieces, refreshes that ring's wakes, resolves all seed movement simultaneously, removes completed pairs, ages all wakes, and decrements the budget.
- Progression: 30 authored levels introduce additional pairs, radial spillways, hazards, fixed rings, and expiring pre-laid wakes without adding another input verb.
- Content: deterministic boards built from three to five rings sharing eight sectors, authored entities, wake ages, legal rotation distances, budgets, and verified solutions.
- Presentation: fixed top-down portrait garden with pale mineral water, translucent jade channels, saffron seeds, graphite direction marks, and botanical silhouettes.
- Metagame: each solved basin adds a cosmetic botanical plate to the garden ledger; there are no power stats.

## Core Loop and Player Verbs

Read seed, bud, hazard, wake-age, and turn-budget state → touch an unlocked `E-RING` → drag around its circumference → inspect `M-PREVIEW` at a snapped distance → cancel or release to commit `M-ROTATE` → watch `M-RESOLVE` move all seeds → continue, enter `ST-SUCCESS`, enter `ST-FAILURE`, pause, or restart.

Legal gameplay verbs are inspect, select ring, drag clockwise, drag counterclockwise, cancel before release, commit, pause, restart, and advance. A committed turn cannot be undone; restart restores the authored state. `UI-TOPBAR` shows level and turns, `UI-BOARD` owns ring input, `UI-WAKE-KEY` explains direction and age, `UI-PRIMARY` advances or retries, and `UI-MODAL` owns pause and confirmations.

The logical board contains `E-RING`, `E-SEED`, `E-BUD`, `E-SPILLWAY`, `E-THORN`, `E-STONE`, `E-ANCHOR`, and `E-WAKE`. Visual events are `V-ROTATE`, `V-WAKE`, `V-MOVE`, `V-BLOOM`, `V-COLLISION`, `V-THORN`, and `V-SUCCESS`. These IDs are the complete launch mechanic and entity inventory; adding another gameplay entity requires a GDD revision.

## Deterministic Rules

1. A level contains three to five concentric `E-RING` rows. Every ring has eight angular sectors indexed `0–7`; a cell is `(ring, sector)`. Ring `0` is innermost. Adjacent tangential cells wrap at sectors `0/7`; adjacent radial cells share a sector on ring `r-1` or `r+1`.
2. Each cell has one base tile: normal channel, `E-SPILLWAY-IN`, `E-SPILLWAY-OUT`, `E-THORN`, `E-STONE`, or `E-BUD`. It may also hold at most one `E-SEED` and one `E-WAKE`. `E-ANCHOR` marks its whole ring as locked.
3. Every seed and bud has one authored matching symbol. Color may duplicate the symbol but never replaces it.
4. An unlocked ring exposes authored legal step distances from one to three sectors. A drag snaps to one legal nonzero distance and a clockwise or counterclockwise direction. Rotating a locked ring, using a disallowed distance, or releasing without a snap is invalid and changes no state.
5. `M-PREVIEW` rotates a copy of the selected ring. Its base tiles, buds, seeds, and existing wakes move by the chosen sector offset. Every cell on that ring then previews a new `E-WAKE` pointing in the rotation direction with lifetime `3`. The preview also displays each seed's proposed destination and any predicted bloom, block, collision, swap, or thorn failure.
6. On commit, the selected ring and all ring-bound contents move to the previewed sectors. World ring indices do not change. Every cell on the selected ring receives or refreshes an `E-WAKE` with the committed tangential direction and lifetime `3`, replacing any prior wake on that cell.
7. After rotation, every unresolved seed proposes exactly one destination from the state at the start of `M-RESOLVE`. A seed on a cell without an active wake proposes to stay. A seed on a normal, bud, thorn, or stone base with an active wake proposes the adjacent sector on the same ring in the wake direction.
8. A seed on `E-SPILLWAY-IN` with an active wake proposes the same sector on ring `r-1`. A seed on `E-SPILLWAY-OUT` proposes the same sector on ring `r+1`. Level data may not place inward spillways on ring `0` or outward spillways on the outer ring.
9. `E-STONE` is impassable. A seed whose proposed destination contains stone instead proposes to stay. A seed already carried onto a stone is invalid level data. Seeds never push one another.
10. Once all proposals exist, failure checks use final proposed cells. Two or more seeds proposing the same cell cause `FAIL-COLLISION`. Two seeds proposing each other's starting cells cause `FAIL-SWAP`. Any proposed destination containing `E-THORN` causes `FAIL-THORN`. If several failures occur, display collision, then swap, then thorn by that priority while preserving all implicated highlights in the replay.
11. If there is no failure, all seeds move simultaneously. A seed ending on its matching bud is removed with that bud and counts as resolved. A seed ending on a nonmatching bud remains active on top of the bud; the mismatch symbol pulses once and no failure occurs.
12. After movement or bloom, every wake on every ring loses one lifetime. A wake written this turn therefore participates in this turn's movement and the following two committed turns, then is removed at lifetime `0`.
13. The turn budget decrements exactly once on commit, including a turn that ends in collision or thorn failure. Invalid or cancelled previews do not decrement it.
14. If a failure condition occurred, enter `ST-FAILURE` after its 500 ms explanation. Otherwise, if no seeds remain, enter `ST-SUCCESS` even when the budget is now zero. Otherwise, if the budget is zero, enter `ST-FAILURE` with `FAIL-BUDGET`. Otherwise return to `ST-ACTIVE`.
15. There is no randomness. Given the same level data and ordered `(ring, direction, distance)` inputs, the state log must be byte-identical.
16. Input locks from release until resolution ends. App interruption or system back during play enters `ST-PAUSED` before accepting another input. Back closes the top overlay; back from home requests exit on Android and has no destructive effect on iOS.
17. `M-RESTART` restores ring offsets, entities, wakes, and budget to the authored state in under 500 ms. A drag can be cancelled by returning within half a snap step of its origin or lifting outside `UI-BOARD`.

Edge cases are explicit. A carried seed may land on a different base tile before proposals are calculated. A newly written wake always overrides a moved older wake on the selected ring. A blocked seed stays and can collide with another seed proposing its cell. A stationary pair occupying each other's target does not count as a swap unless both proposed to move. Matching blooms occur only after collision, swap, and thorn checks, so no seed is removed early to conceal a failure. Success takes priority over exhausted budget only after all valid blooms resolve.

## Failure, Consequence, and State Change

Every commit has five legible consequences in fixed order: the selected ring snaps, the selected ring's wake arrows refresh, all proposed paths pulse, seeds move together, then wakes lose one age mark. `V-ROTATE` lasts 180 ms and `V-MOVE` lasts 220 ms; the logical state changes at their defined endpoints while input remains locked.

Failure never silently resets. `FAIL-COLLISION` outlines both paths and the shared destination; `FAIL-SWAP` crosses the two paths; `FAIL-THORN` grows a thorn silhouette around the destination; `FAIL-BUDGET` dims unresolved buds and shows “No turns left.” Each uses shape, text, sound, and optional haptics. The board freezes after the explanation and offers restart or home. A committed turn materially changes later decisions because ring alignment, carried entity positions, wake direction, wake age, and remaining budget all change together.

## Progression and Content Grammar

Launch scope is 30 authored levels in five six-level chapters:

1. `CH-STIR`: one seed/bud pair, three rings, one-step rotations, no spillways until level 3, generous budgets.
2. `CH-CROSSCURRENT`: two pairs and simultaneous movement; levels teach nonmatching buds and collision avoidance.
3. `CH-ROOTS`: thorn drains and stones create lethal and blocking consequences.
4. `CH-MOORING`: anchored rings become fixed routing surfaces while adjacent rings still rotate.
5. `CH-ECHO`: authored wakes start at lifetime one or two, forcing players to use or outlast expiring currents while combining prior rules.

Difficulty variables are ring count, legal rotation distances, pair count, spillway placement, hazard density, stone placement, locked-ring count, initial wake direction and lifetime, turn budget, solution depth, and number of attractive losing previews. Each level has at least one solver-verified solution, at most 12 legal committed actions from any reachable state, and a canonical solution of 2–10 turns. Chapter-one levels introduce only one unfamiliar rule at a time. Later levels combine existing rules rather than add verbs.

The level format serializes ring count, sector count, allowed moves per ring, ring offsets, base tiles, symbols, seed positions, initial wakes, turn budget, tutorial callouts, and canonical solution. A deterministic breadth-first solver verifies solvability, detects shortest-solution length, and rejects duplicate states. Thirty levels are the launch requirement; more levels, daily puzzles, procedural generation, and community sharing are deferred until play evidence justifies them.

Replay value is optional mastery, not grind. Each level awards a botanical plate for completion and two cosmetic ledger stamps for matching the par turn count and finishing without a cancelled preview. Stamps unlock alternate board-surface palettes that retain semantic symbols, contrast, and patterns. They never change puzzle state.

## First Session and FTUE

Fresh launch opens `SCR-ONBOARDING` directly on a three-ring instructional basin. A hand trace demonstrates touching the glowing outer ring, then stops and waits. The first drag is constrained to one clockwise snap; `M-PREVIEW` labels “Turn,” the created arrows label “Current: 3 turns,” and the seed's proposed path pulses. Release performs the real `M-ROTATE` and `M-RESOLVE`, carrying the seed one sector.

The second action is unconstrained between two legal rings and delivers the seed through a spillway to its bud. `V-BLOOM` completes the basin, then `SCR-SUCCESS` names the rule in one sentence: “Every turn moves a ring and leaves a fading current.” `SCR-HOME` presents level 2 and the garden ledger. The tutorial has a persistent Skip button, can be replayed from settings, and never marks itself complete across prototype reloads. Hints restate a rule or highlight a ring family; they never choose a full move.

First-session acceptance requires an unfamiliar player to identify the selected ring, wake direction, wake age, and proposed seed destination before committing the second turn. Consent and legal links remain reachable without blocking offline play.

## Economy and Monetization Boundaries

The prototype and validation build contain no advertisements, purchases, currency, account, or energy. The only rewards are level access, botanical plates, and cosmetic stamps. There are no sinks, upgrade stats, streak loss, loot boxes, timers, or consumables.

A later commercial build may test one model only: a free six-level chapter followed by a single premium full-game unlock. It must support purchase restoration, regional price disclosure, parental gates where required, and play without tracking consent. It may not show an unlock prompt on failure, sell hints or solutions, alter turn budgets, gate accessibility settings, combine the premium unlock with ads at launch, or use scarcity and wait pressure. Any different model requires a product revision and evidence review.

## UX, Accessibility, Audio, and VFX

Required screens are `SCR-ONBOARDING`, `SCR-HOME`, `SCR-GAMEPLAY`, `SCR-PAUSE`, `SCR-SUCCESS`, `SCR-FAILURE`, `SCR-SETTINGS`, `SCR-ACCESSIBILITY`, and `SCR-LEGAL`. Required runtime states are `ST-FRESH`, `ST-ACTIVE`, `ST-PAUSED`, `ST-SUCCESS`, `ST-FAILURE`, and `ST-ERROR`. `ST-ERROR` preserves the level identifier and offers retry loading or safe return home.

Portrait layout uses a 360×800 logical canvas. The circular `UI-BOARD` stays fully visible between `UI-TOPBAR` and the lower explanation/primary-action zone. Cutout and gesture safe areas receive at least 24 logical pixels; controls receive at least 16 pixels separation and 48×48 touch targets. Ring selection accepts a 24-pixel radial tolerance and never requires grabbing a thin line. Only the selected ring follows the finger. Preview snap thresholds remain stable under 100%, 125%, and 150% text sizes.

`A-COLOR` pairs every seed/bud identity with a distinct silhouette and internal mark. `A-WAKE` shows direction with arrowheads and age with one to three parallel ticks. `A-MOTION` replaces continuous water flow and ring easing with a 100 ms crossfade plus stepped destination outlines. `A-TEXT` scales interface text without covering `UI-BOARD`. `A-HAPTIC` separates snap, commit, bloom, and failure and can disable all vibration. Screen reader labels state ring number, direction, distance, wake lifetime, seed symbol, bud symbol, and predicted consequence in logical order. Focus remains trapped in modals and returns to the invoking control.

Audio groups are music, ambience, effects, and haptics with independent toggles. A soft ceramic tick marks each snap, a three-note descending water tone communicates wake age, paired glass tones confirm bloom, and a low wood knock marks blocked movement. Audio never replaces text or shape. VFX use no flashes above three per second, no mandatory screen shake, at most 32 particles, and no full-screen bloom. `V-SUCCESS` is a restrained outward botanical opening; reduced motion replaces it with three static growth stages.

## Technical Constraints

Target iOS 16+ and Android 10+ phones. The game must sustain 60 fps on a 2019 mid-tier device with a 30 fps fallback, install under 150 MB, remain under 250 MB peak memory, and reach home within two seconds after first load. Core play is fully offline. Cloud save, analytics, and purchase restoration are optional adapters whose failure cannot block a level.

Simulation uses integer ring/sector coordinates and integer wake lifetimes. No physics engine participates in rules. A replay is the level ID plus ordered triples `(ringIndex, direction, distance)`. Runtime validation rejects malformed levels, outward spillways at the outer ring, inward spillways at ring 0, duplicate occupants, invalid symbols, illegal initial wakes, unreachable entities, and canonical solutions that do not reproduce success.

Local QA may record tutorial start/complete/skip, level start, preview, cancel, commit, selected ring, direction, distance, failure rule, restart, success, solution length, elapsed time, accessibility choices, and frame-time buckets. Production telemetry is consent-gated, coarse, and contains no free text, precise location, contacts, or advertising identifier. Gameplay, FTUE, progress, and results are not persisted in the HTML prototype; production persistence is limited to settings, purchased entitlement, completed level IDs, and cosmetic ledger state.

## Risks, Falsifiers, and Acceptance Criteria

Primary risks are comparison to existing ring-rotation or pipe games, players overlooking that wakes persist, simultaneous resolution becoming visually noisy, content collapsing into repetitive alignments, and circular dragging being unreliable near small inner rings. The concept returns to GDD revision if the independent App Store audit cannot distinguish its dominant loop and consequence structure, if fewer than 7 of 10 unfamiliar players predict both parts of a turn after FTUE, if more than 2 of 10 commit the wrong ring or direction twice, or if a solver cannot support 30 distinct levels without a new verb.

Observable acceptance criteria:

- Given any valid state and legal drag, `M-PREVIEW` and `M-RESOLVE` produce identical ring offsets, refreshed wakes, proposed destinations, blocks, blooms, collisions, swaps, and thorn outcomes.
- A valid commit changes exactly one ring offset, refreshes exactly that ring's eight wakes to lifetime `3`, decrements the budget once, and advances every seed by at most one cell.
- Newly written wakes act on the current turn and disappear after their third committed resolution unless refreshed.
- Same-cell collision, two-seed swap, thorn, stone block, nonmatching bud, matching bloom, zero-budget failure, and success-on-final-turn each have deterministic runnable checks.
- The level solver reproduces every canonical solution and finds no shorter path than the declared par for all 30 launch levels.
- Ten unfamiliar players complete FTUE; at least seven state that a turn both rotates a ring and leaves a fading current, and at least seven correctly predict the next simultaneous destinations.
- All required screens and states are represented by stable IDs in UX and Art Bible artifacts; every interactive target is at least 48×48, safe areas remain clear at 360×800, and every semantic cue survives grayscale and reduced-motion review.
- A 2019 mid-tier target maintains the frame budget with 32 particles, five rings, four moving seeds, and all wake indicators visible.
- No prototype work begins until the owner accepts the complete GDD-bound Art Bible and the exact package is design-locked.

## Fantasy, Promise, Audience, and Genre

The windkeeper fantasy, 13+ thoughtful-puzzle audience, 45–120 second session, deterministic concentric route-planning genre, and rotate-plus-write store promise are defined in `Player Promise and Audience` and remain unchanged.

## Design Pillars

`P-DOUBLE-CONSEQUENCE`, `P-PREDICTABLE`, `P-ONE-THUMB`, `P-SYNCHRONIZED`, and `P-FAIR` are release invariants. If a build removes temporary wakes or synchronized proposals, it is a different design and must return to GDD review.

## Camera, Dimension, and Controls

Portrait-only 2D uses a fixed orthographic top-down 360×800 logical view of the entire basin. One circular drag selects an unlocked ring, direction, and legal sector distance; preview and cancel precede release, and no camera or multi-touch verb exists.

## State and Content Inventory

Screens are `SCR-ONBOARDING`, `SCR-HOME`, `SCR-GAMEPLAY`, `SCR-PAUSE`, `SCR-SUCCESS`, `SCR-FAILURE`, `SCR-SETTINGS`, `SCR-ACCESSIBILITY`, and `SCR-LEGAL`. States are `ST-FRESH`, `ST-ACTIVE`, `ST-PAUSED`, `ST-SUCCESS`, `ST-FAILURE`, and `ST-ERROR`. Mechanics, entities, UI, accessibility, and VFX IDs are the complete launch inventory declared above.

## Difficulty, Progression, and Economy

Thirty solver-verified levels across `CH-STIR`, `CH-CROSSCURRENT`, `CH-ROOTS`, `CH-MOORING`, and `CH-ECHO` grow consequence depth through existing variables. Botanical plates and mastery stamps are cosmetic only; no power currency or grind exists.

## Monetization Constraints

Only a later evidence-backed six-level free chapter plus one premium unlock is allowed. No forced ads, paid solutions, energy, loot boxes, consumable hints, turn-budget sales, failure prompts, or accessibility gates may alter canonical play.

## UX and Accessibility

The full screen/state set, safe areas, 48×48 controls, 72-pixel inner-ring target, non-color pair glyphs, arrow-and-tick wake notation, scalable type, reduced motion, haptic/audio alternatives, focus management, and recoverable errors are mandatory.

## Audio and VFX

Ceramic snaps, water-age tones, bloom glass notes, block knocks, and failure pulses confirm but never replace visual/text state. Motion stays under the declared timing and particle limits; reduced motion uses crossfades and static growth stages.

## Analytics and Technical Constraints

Integer ring/sector simulation, deterministic replay triples, offline core play, optional consented adapters, iOS 16+/Android 10+, 2019 mid-tier performance, size/memory ceilings, malformed-level rejection, and coarse event boundaries are mandatory.

## Risks and Falsifiers

The design fails if players perceive a static ring or pipe clone, cannot explain wake persistence, mis-select rings, cannot read simultaneous paths, or if a solver cannot sustain 30 distinct levels without a new verb. Meta padding is not an acceptable fix.

## Acceptance Criteria

Preview/resolve parity, exact wake lifetime, one-ring/one-budget state change, deterministic collision/swap/thorn/block/bloom/final-turn checks, solver verification, unfamiliar-player comprehension, accessible screen coverage, target-device performance, and the manual Art Bible/design-lock gate are all observable requirements.
