{
  "version": 1,
  "title": "Switchrush",
  "subtitle": "Industrial rail-switch puzzle — gameplay and UI implementation guide",
  "theme": {
    "background": "#25282B",
    "surface": "#3A4044",
    "paper": "#F3EFE5",
    "ink": "#17191A",
    "muted": "#AAB1B5",
    "accent": "#B8EE12",
    "danger": "#D83C2F",
    "gold": "#F36B21"
  },
  "overview": [
    { "label": "Fantasy", "text": "Route a parade of numbered toy trains through a tiny workshop yard by moving one live rail switch.", "sourceRefs": ["E-TRAIN", "E-SWITCH", "ENV-YARD"] },
    { "label": "Genre", "text": "Portrait 2D hypercasual routing puzzle with deterministic short sessions and authored levels.", "sourceRefs": ["M-01", "M-02", "M-03"] },
    { "label": "Core loop", "text": "Read train and dock numbers → drag the lever → preview the branch → release to commit → learn the next closed lane.", "sourceRefs": ["M-01", "M-02", "M-03", "M-04"] },
    { "label": "Visual identity", "text": "Warm enamel white, graphite rails, safety orange controls, acid-lime preview, steel plates, and signal-red hazards.", "sourceRefs": ["ENV-YARD", "E-SWITCH", "V-PREVIEW", "E-HAZARD"] },
    { "label": "Camera", "text": "Fixed orthographic portrait yard; every legal branch remains visible between the top status strip and lever basin.", "sourceRefs": ["SCR-GAMEPLAY", "UI-TOPBAR", "UI-LEVER"] },
    { "label": "Readability", "text": "Numbers, silhouettes, arrows, lock glyphs, check stamps, and hatch patterns duplicate semantic colors.", "sourceRefs": ["A-COLOR", "A-CONTRAST", "A-ASSISTIVE"] },
    { "label": "Hard exclusions", "text": "No extra branches, coins, boosters, shops, characters, narrative, random routing, or forced ad interruptions.", "sourceRefs": ["M-01", "M-04", "M-06"] }
  ],
  "gameplayFlow": [
    { "step": 1, "title": "Read the yard", "description": "Identify the active train number, matching dock number, open branches, cooldown hatch, and hazard gate.", "assetId": "ART-GAMEPLAY", "sourceRefs": ["ST-ACTIVE", "E-TRAIN", "E-DOCK", "E-BRANCH", "E-HAZARD"] },
    { "step": 2, "title": "Drag the lever", "description": "Move the single orange switch into the left, center, or right socket; leaving the sockets cancels safely.", "assetId": "ART-GAMEPLAY", "sourceRefs": ["M-02", "UI-LEVER", "UI-SOCKET"] },
    { "step": 3, "title": "Preview the route", "description": "A lime ribbon and arrowheads show the exact projected rail path, dock result, and any closed branch consequence.", "assetId": "ART-GAMEPLAY", "sourceRefs": ["M-03", "V-PREVIEW", "A-COLOR"] },
    { "step": 4, "title": "Commit one switch", "description": "Release on a legal socket to resolve the deterministic route; the used branch enters cooldown and the next choice changes.", "assetId": "ART-GAMEPLAY", "sourceRefs": ["M-04", "V-COOLDOWN", "E-BRANCH"] },
    { "step": 5, "title": "Deliver or retry", "description": "Matching docks seal into a parade; a wrong dock, hazard, collision, closed branch, or timeout names the cause and offers Retry.", "assetId": "ART-SUCCESS", "sourceRefs": ["M-05", "ST-SUCCESS", "ST-FAILURE", "UI-RESULT"] }
  ],
  "tutorial": [
    { "title": "Observe", "instruction": "Find the train number and the dock carrying the same large numeral.", "sourceRefs": ["E-TRAIN", "E-DOCK"] },
    { "title": "Drag", "instruction": "Pull the orange lever toward a branch socket; the three legal directions stay visible.", "sourceRefs": ["M-02", "UI-LEVER", "UI-SOCKET"] },
    { "title": "Preview", "instruction": "Read the lime route ribbon before releasing the lever.", "sourceRefs": ["M-03", "V-PREVIEW"] },
    { "title": "Commit", "instruction": "Release on a legal socket to send the train through that exact branch.", "sourceRefs": ["M-04", "ST-ACTIVE"] },
    { "title": "Consequence", "instruction": "Notice the used lane hatch closed and the next train's safe choice changed.", "sourceRefs": ["M-04", "V-COOLDOWN"] },
    { "title": "Deliver", "instruction": "Match every train to its numbered dock to complete the yard.", "sourceRefs": ["M-05", "ST-SUCCESS"] }
  ],
  "entityCards": [
    { "title": "Numbered train", "description": "Chunky orange toy locomotive with an open-counter number plate, state lights, and clear waiting, previewed, moving, delivered, and failed states.", "sourceRefs": ["E-TRAIN", "A-COLOR"] },
    { "title": "Dock bay", "description": "Raised destination socket with a large matching numeral, open/sealed/failed states, check stamp, and solid hatch cue.", "sourceRefs": ["E-DOCK", "V-SEAL"] },
    { "title": "Live switch", "description": "Black-and-orange lever on a lower-middle metal basin; knob and striped shaft remain readable through idle, drag, cancel, and commit.", "sourceRefs": ["E-SWITCH", "UI-LEVER"] },
    { "title": "Branch and hazard", "description": "Three broad rails use socket plates and cooldown hatches; a red maintenance gate marks a deterministic failure without realistic impact.", "sourceRefs": ["E-BRANCH", "E-HAZARD", "V-FAIL"] }
  ],
  "systemCards": [
    { "title": "Single-switch routing", "description": "One gesture selects only left, center, or right; there is no freehand route drawing or hidden input state.", "sourceRefs": ["M-01", "M-02"] },
    { "title": "Exact preview", "description": "The lime ribbon shows the committed route and projected outcome before release, including cooldown and hazard consequences.", "sourceRefs": ["M-03", "V-PREVIEW", "A-COLOR"] },
    { "title": "Deterministic resolve", "description": "The authored route graph applies the visible preview exactly, then updates dock and branch state for the next train.", "sourceRefs": ["M-04", "M-05"] },
    { "title": "Immediate retry", "description": "Failure preserves the readable yard and concrete cause, then restarts the same level without a resource cost.", "sourceRefs": ["M-06", "ST-FAILURE", "UI-RESULT"] }
  ],
  "screenAssetIds": ["ART-GAMEPLAY", "ART-ONBOARDING", "ART-HOME", "ART-PAUSE", "ART-SUCCESS", "ART-FAILURE", "ART-SETTINGS", "ART-ACCESSIBILITY", "ART-LEGAL-ERROR"],
  "implementationNotes": [
    { "label": "HUD", "text": "Keep timer, active train numeral, destination numeral, and 48dp pause target inside the top safe area above the yard.", "sourceRefs": ["UI-TOPBAR", "A-TOUCH"] },
    { "label": "Touch", "text": "Use 48x48 logical socket targets, an expanded lever basin, 8px separation, and cancel-on-lift-outside behavior.", "sourceRefs": ["UI-LEVER", "UI-SOCKET", "A-TOUCH"] },
    { "label": "Type", "text": "Use bold geometric sans labels, tabular numerals, 17px essential text, and 100/125/150% expansion without clipping.", "sourceRefs": ["A-TEXT", "A-CONTRAST"] },
    { "label": "Motion", "text": "Preview within one frame, seal in 180ms, cooldown pulse in 220ms, parade in 600ms; reduced motion removes travel and shake.", "sourceRefs": ["V-PREVIEW", "V-SEAL", "V-COOLDOWN", "V-PARADE", "A-MOTION"] },
    { "label": "Access", "text": "Pair color with number, silhouette, lock, check, stop, and hatch; expose route outcomes to focus and assistive labels.", "sourceRefs": ["A-COLOR", "A-FOCUS", "A-ASSISTIVE"] },
    { "label": "Export", "text": "Build runtime art as layered vectors or atlases at 1x/2x/3x, with whole-pixel rails, stable pivots, and no texture above 2048px.", "sourceRefs": ["ENV-YARD", "ENV-DEPOT", "ENV-MAINTENANCE"] }
  ],
  "sourceRefs": ["M-01", "M-02", "M-03", "M-04", "M-05", "M-06", "E-TRAIN", "E-DOCK", "E-SWITCH", "E-BRANCH", "E-HAZARD", "ENV-YARD", "ENV-DEPOT", "ENV-MAINTENANCE", "UI-TOPBAR", "UI-LEVER", "UI-SOCKET", "UI-RESULT", "UI-TOGGLE", "UI-MODAL", "UI-BADGE", "A-COLOR", "A-TEXT", "A-MOTION", "A-HAPTIC", "A-CONTRAST", "A-TOUCH", "A-FOCUS", "A-ASSISTIVE", "V-PREVIEW", "V-SEAL", "V-COOLDOWN", "V-FAIL", "V-PARADE", "V-TRANSITION"]
}
