{
  "id": "midnight-swap",
  "version": "1.0.0",
  "title": "The Midnight Swap",
  "subtitle": "A cooperative collector caper at the Moonwake Card Exchange",
  "players": "1–6",
  "genre": "Fantasy collectors, trading and social choices",
  "start": "q01",
  "image": "assets/moonwake-exchange-v1.webp",
  "premise": "The last bell is approaching, and the Night Atlas still has three blank spaces. Find the stories behind its Dawn, Grove and Tide cards—or help the moonlit trading market remember what makes a collection worth keeping.",
  "initial": {
    "provisions": 4,
    "sparks": 0,
    "key": false
  },
  "expedition": {
    "flags": [
      "queuefriend",
      "dawn",
      "grove",
      "tide"
    ]
  },
  "rules": [
    "Play alone or cooperate with up to six travelers. Share one six-sided die, pencil and tracker. Begin with 4 Candles, 0 Goodwill, no Exchange Seal and no marked impressions. Start at card 01.",
    "Discuss each choice together. The spotlight traveler decides a tie, then the spotlight passes clockwise after every choice or roll. Nobody needs to act as game master or know another game system.",
    "Choose one available option and follow its numbered destination. Spend Candles only when instructed. Mark Queue Friend and the Dawn, Grove and Tide impressions when gained. Impressions record stories you have learned; sharing one does not erase it.",
    "Candles stay between 0 and 6; Goodwill stays between 0 and 3. Gains above a limit are lost; losses stop at 0. The Exchange Seal is either carried or absent. A named mark or the Seal is required only when an option says so.",
    "When a card calls for a roll, roll one d6 and follow its printed result. The last-bell roll adds Goodwill and subtracts 1 if Candles are 0. This adjustment applies only when the card says so. A complete set also has a route that needs no roll.",
    "Stop when you reach an ending and invite everyone to answer its final question. You need not visit every card. Browser saves belong to this story version; download a backup to carry progress between devices. These are original independent rules, with AI-assisted writing and art; human playtesting remains pending."
  ],
  "nodes": [
    {
      "id": "q01",
      "number": "01",
      "title": "One last little gap",
      "chapter": "The queue",
      "body": "The Moonwake Exchange opens after the city sleeps. Its Night Atlas has spaces for three card impressions: Dawn, Grove and Tide. The closing bell is already polishing its voice. A frog wizard guards the orderly queue; an otter waves from a side bridge. Both seem to know a useful way in.",
      "choices": [
        {
          "id": "q01-queue",
          "label": "Join the frog wizard's queue.",
          "to": "q02"
        },
        {
          "id": "q01-bridge",
          "label": "Follow the otter to the lantern bridge.",
          "to": "q03"
        }
      ]
    },
    {
      "id": "q02",
      "number": "02",
      "title": "The queue has a wizard",
      "chapter": "The queue",
      "body": "Nim has a thermos, a folding chair and twelve people claiming to be next. The queue's little number ribbons have blown into the vines. Help sort them, or try spotting the correct entrance from the crowd's cheerful confusion.",
      "choices": [
        {
          "id": "q02-help",
          "label": "Candles 1+: spend 1 Candle sorting ribbons.",
          "requires": {
            "provisions": 1
          },
          "effects": {
            "provisions": -1
          },
          "to": "q04"
        }
      ],
      "roll": {
        "id": "q02-look",
        "label": "Or roll a d6 to find the way through.",
        "bands": [
          {
            "min": 1,
            "max": 3,
            "to": "q05"
          },
          {
            "min": 4,
            "max": 6,
            "to": "q04"
          }
        ]
      }
    },
    {
      "id": "q03",
      "number": "03",
      "title": "A lantern looking for its owner",
      "chapter": "The bridge",
      "body": "The otter, Pell, has lost a floating lantern beneath the bridge. A Dawn card is pictured on its side. You can take time to retrieve it, or follow its reflection through the water before the light drifts away.",
      "choices": [
        {
          "id": "q03-help",
          "label": "Candles 1+: spend 1 Candle retrieving the lantern.",
          "requires": {
            "provisions": 1
          },
          "effects": {
            "provisions": -1
          },
          "to": "q06"
        }
      ],
      "roll": {
        "id": "q03-reflection",
        "label": "Or roll a d6 to follow the reflection.",
        "bands": [
          {
            "min": 1,
            "max": 3,
            "to": "q05"
          },
          {
            "min": 4,
            "max": 6,
            "to": "q06"
          }
        ]
      }
    },
    {
      "id": "q04",
      "number": "04",
      "title": "A place remembered",
      "chapter": "The queue",
      "arrival": {
        "sparks": 1,
        "addFlags": [
          "queuefriend"
        ]
      },
      "arrivalText": "Gain 1 Goodwill, up to 3. Mark Queue Friend.",
      "body": "Nim restores the ribbon order and saves your place. 'A collection is partly the people who remember you,' the wizard says. He points toward the catalog booth. Its keeper knows which picture belongs to the Dawn card.",
      "choices": [
        {
          "id": "q04-catalog",
          "label": "Visit the catalog keeper.",
          "to": "q07"
        }
      ]
    },
    {
      "id": "q05",
      "number": "05",
      "title": "The very interesting wrong queue",
      "chapter": "The queue",
      "arrival": {
        "provisions": -1
      },
      "arrivalText": "Lose 1 Candle, down to 0.",
      "body": "You join a line for collectible spoons. The spoon collectors are delighted to explain fourteen kinds of tiny handle. Eventually somebody notices your empty album and points you toward the card catalog. You leave with useful directions and a surprising opinion about soup.",
      "choices": [
        {
          "id": "q05-catalog",
          "label": "Find the card catalog this time.",
          "to": "q07"
        }
      ]
    },
    {
      "id": "q06",
      "number": "06",
      "title": "Dawn on the water",
      "chapter": "The bridge",
      "arrival": {
        "sparks": 1,
        "addFlags": [
          "dawn"
        ]
      },
      "arrivalText": "Mark the Dawn impression. Gain 1 Goodwill, up to 3.",
      "body": "Pell's lantern returns with a small sky-fox pictured on its glass. The Dawn card remembers the first light that helped a traveler find home. Pell presses its impression into the Atlas and waves you toward the trading tables. A story shared is still yours to remember.",
      "choices": [
        {
          "id": "q06-tables",
          "label": "Carry the Dawn story to the trading tables.",
          "to": "q10"
        }
      ]
    },
    {
      "id": "q07",
      "number": "07",
      "title": "The keeper's three pictures",
      "chapter": "The catalog",
      "body": "A patient librarian opens a reference book. The Dawn card has been filed beside a ringing bell, a seed beneath soil and a fox following a sunrise. 'It remembers the first light that showed the way home,' the librarian says. Which picture will you ask to copy?",
      "choices": [
        {
          "id": "q07-fox",
          "label": "The fox following the sunrise.",
          "to": "q08"
        },
        {
          "id": "q07-bell",
          "label": "The ringing bell.",
          "to": "q09"
        },
        {
          "id": "q07-seed",
          "label": "The seed beneath soil.",
          "to": "q09"
        }
      ]
    },
    {
      "id": "q08",
      "number": "08",
      "title": "A story in the right sleeve",
      "chapter": "The catalog",
      "arrival": {
        "sparks": 1,
        "addFlags": [
          "dawn"
        ]
      },
      "arrivalText": "Mark the Dawn impression. Gain 1 Goodwill, up to 3.",
      "body": "The librarian smiles and makes a neat impression of the sky-fox. Its value is a story you can tell, rather than a number someone wrote on a sleeve. The Grove collectors are gathering at the central tables; they may have the next page you need.",
      "choices": [
        {
          "id": "q08-tables",
          "label": "Meet the Grove collectors.",
          "to": "q10"
        }
      ]
    },
    {
      "id": "q09",
      "number": "09",
      "title": "A very careful correction",
      "chapter": "The catalog",
      "arrival": {
        "provisions": -1
      },
      "arrivalText": "Lose 1 Candle, down to 0. Dawn is not marked.",
      "body": "The librarian gently returns that picture to another chapter. You spend a little time helping put the catalog back in order. The Atlas still has a Dawn-shaped gap, but there may be other ways to fill it before the Exchange closes.",
      "choices": [
        {
          "id": "q09-tables",
          "label": "Try the central trading tables.",
          "to": "q10"
        }
      ]
    },
    {
      "id": "q10",
      "number": "10",
      "title": "A swap without a price tag",
      "chapter": "The tables",
      "body": "A wood-moth has a Grove card and a notebook full of unfinished descriptions. Offer a Dawn story, help write a caption, or improvise one. Across the aisle, a mirror stall promises an entire perfect collection with remarkably little conversation.",
      "choices": [
        {
          "id": "q10-dawn",
          "label": "Dawn marked: share its story for a Grove impression.",
          "requires": {
            "flags": [
              "dawn"
            ]
          },
          "to": "q11"
        },
        {
          "id": "q10-caption",
          "label": "Candles 1+: spend 1 Candle helping with captions.",
          "requires": {
            "provisions": 1
          },
          "effects": {
            "provisions": -1
          },
          "to": "q11"
        },
        {
          "id": "q10-mirror",
          "label": "Visit the mirror stall instead.",
          "to": "q12"
        }
      ],
      "roll": {
        "id": "q10-improvise",
        "label": "Or roll a d6 to improvise a caption.",
        "bands": [
          {
            "min": 1,
            "max": 3,
            "to": "q13"
          },
          {
            "min": 4,
            "max": 6,
            "to": "q11"
          }
        ]
      }
    },
    {
      "id": "q11",
      "number": "11",
      "title": "Something allowed to grow",
      "chapter": "The tables",
      "arrival": {
        "sparks": 1,
        "addFlags": [
          "grove"
        ]
      },
      "arrivalText": "Mark the Grove impression. Gain 1 Goodwill, up to 3.",
      "body": "The Grove card shows a leaf-scaled creature asleep in a fruit tree. Its story remembers something small given room to grow. The moth copies the picture into your Atlas, then asks permission to keep your caption. You agree on which words belong to whom.",
      "choices": [
        {
          "id": "q11-desk",
          "label": "Visit the Exchange desk.",
          "to": "q14"
        }
      ]
    },
    {
      "id": "q12",
      "number": "12",
      "title": "Every rare thing, twice",
      "chapter": "The mirror stall",
      "body": "The stall's immaculate cards all reflect the same picture: a very pleased stoat holding immaculate cards. 'Perfectly complete,' the stoat announces. A real Grove collector is rearranging the neighboring table. You can ask that collector about the picture or accept the dazzling shortcut.",
      "choices": [
        {
          "id": "q12-ask",
          "label": "Ask the neighboring collector for the Grove story.",
          "to": "q11"
        },
        {
          "id": "q12-shortcut",
          "label": "Accept the perfect-looking shortcut.",
          "to": "q13"
        }
      ]
    },
    {
      "id": "q13",
      "number": "13",
      "title": "A sleeve full of almost",
      "chapter": "The tables",
      "arrival": {
        "provisions": -1
      },
      "arrivalText": "Lose 1 Candle, down to 0. Grove is not marked.",
      "body": "Something does not quite match. Perhaps the caption is about a sandwich, or perhaps the sleeve contains a reflection instead of a story. You return it before making a promise you cannot keep. The Exchange desk still has time for an honest question.",
      "choices": [
        {
          "id": "q13-desk",
          "label": "Ask at the Exchange desk.",
          "to": "q14"
        }
      ]
    },
    {
      "id": "q14",
      "number": "14",
      "title": "The seal is for the conversation",
      "chapter": "The desk",
      "body": "An Exchange Seal starts useful conversations. The clerk asks for a learned story, a friend’s introduction or a hopeful plan for the Atlas. You may also continue without a seal.",
      "choices": [
        {
          "id": "q14-dawn",
          "label": "Dawn marked: share its story.",
          "requires": {
            "flags": [
              "dawn"
            ]
          },
          "to": "q15"
        },
        {
          "id": "q14-grove",
          "label": "Grove marked: show the agreed caption.",
          "requires": {
            "flags": [
              "grove"
            ]
          },
          "to": "q15"
        },
        {
          "id": "q14-friend",
          "label": "Queue Friend marked: invite Nim.",
          "requires": {
            "flags": [
              "queuefriend"
            ]
          },
          "to": "q15"
        },
        {
          "id": "q14-leave",
          "label": "Continue without the seal.",
          "to": "q16"
        }
      ],
      "roll": {
        "id": "q14-explain",
        "label": "Or roll a d6 to explain your plan for the Atlas.",
        "bands": [
          {
            "min": 1,
            "max": 3,
            "to": "q16"
          },
          {
            "min": 4,
            "max": 6,
            "to": "q15"
          }
        ]
      }
    },
    {
      "id": "q15",
      "number": "15",
      "title": "A small circle of trust",
      "chapter": "The desk",
      "arrival": {
        "key": true
      },
      "arrivalText": "Gain the Exchange Seal.",
      "body": "The clerk stamps a little moon on your pass. 'It does not make every card genuine,' she explains. 'It tells people you are willing to talk about where a story came from.' The Tide keeper is waiting beside the lantern pond.",
      "choices": [
        {
          "id": "q15-pond",
          "label": "Visit the Tide keeper.",
          "to": "q17"
        }
      ]
    },
    {
      "id": "q16",
      "number": "16",
      "title": "A pass without a moon",
      "chapter": "The desk",
      "arrival": {
        "provisions": -1
      },
      "arrivalText": "Lose 1 Candle, down to 0. You do not gain the Exchange Seal.",
      "body": "The conversation runs past its little window. The clerk cannot stamp your pass tonight, but points out the public path to the pond. An unstamped pass is still an invitation to listen. You follow the lanterns before the next bell.",
      "choices": [
        {
          "id": "q16-pond",
          "label": "Take the public path to the pond.",
          "to": "q17"
        }
      ]
    },
    {
      "id": "q17",
      "number": "17",
      "title": "The card that came back",
      "chapter": "The pond",
      "body": "Pell is folding paper boats beside the Tide card. It remembers a journey that returned changed. Help fold the last boats, show the Exchange Seal and ask for a copy, or try following the card's reflection as it moves across the water.",
      "choices": [
        {
          "id": "q17-fold",
          "label": "Candles 1+: spend 1 Candle folding boats.",
          "requires": {
            "provisions": 1
          },
          "effects": {
            "provisions": -1
          },
          "to": "q18"
        },
        {
          "id": "q17-seal",
          "label": "With Exchange Seal: ask Pell for the Tide story.",
          "requires": {
            "key": true
          },
          "to": "q18"
        }
      ],
      "roll": {
        "id": "q17-reflection",
        "label": "Or roll a d6 to follow the Tide reflection.",
        "bands": [
          {
            "min": 1,
            "max": 3,
            "to": "q19"
          },
          {
            "min": 4,
            "max": 6,
            "to": "q18"
          }
        ]
      }
    },
    {
      "id": "q18",
      "number": "18",
      "title": "A safe return",
      "chapter": "The pond",
      "arrival": {
        "sparks": 1,
        "addFlags": [
          "tide"
        ]
      },
      "arrivalText": "Mark the Tide impression. Gain 1 Goodwill, up to 3.",
      "body": "The Tide card settles beside its reflection. Pell copies a returning sea creature into your Atlas. The little boats carry everyone's good wishes through the pond. You head for the closing bell with one more story and a damp, rather beautiful thumbprint.",
      "choices": [
        {
          "id": "q18-binder",
          "label": "Check the Atlas before the last bell.",
          "to": "q20"
        }
      ]
    },
    {
      "id": "q19",
      "number": "19",
      "title": "The reflection takes a detour",
      "chapter": "The pond",
      "arrival": {
        "provisions": -1
      },
      "arrivalText": "Lose 1 Candle, down to 0. Tide is not marked.",
      "body": "The reflection slips beneath a lily leaf and leaves you holding a very ordinary ripple. Pell promises another chance on the next market night. For now, the closing bell calls everyone toward the community table, including visitors with spaces left in their albums.",
      "choices": [
        {
          "id": "q19-binder",
          "label": "Bring the Atlas to the bell dais.",
          "to": "q20"
        }
      ]
    },
    {
      "id": "q20",
      "number": "20",
      "title": "Three spaces and a choice",
      "chapter": "The last bell",
      "body": "The Night Atlas opens beneath the bell. Check which impressions you have marked. A complete Dawn, Grove and Tide set can be presented directly. Otherwise, the final swap circle may help. Or make one grand, slightly breathless attempt to tell the whole evening's story.",
      "choices": [
        {
          "id": "q20-complete",
          "label": "Dawn, Grove and Tide marked: present the complete set.",
          "requires": {
            "flags": [
              "dawn",
              "grove",
              "tide"
            ]
          },
          "to": "q21"
        },
        {
          "id": "q20-circle",
          "label": "Join the last swap circle.",
          "to": "q22"
        },
        {
          "id": "q20-bell",
          "label": "Try a grand story beneath the bell.",
          "to": "q23"
        }
      ]
    },
    {
      "id": "q21",
      "number": "21",
      "title": "A whole little sky",
      "chapter": "A complete set",
      "body": "Dawn shows the way out, Grove makes room to grow, and Tide remembers a return. Your set is complete. Decide whether the Atlas will become a pocket-sized account of your own evening or the beginning of a community album anyone may add to.",
      "choices": [
        {
          "id": "q21-pocket",
          "label": "Keep a small personal Atlas.",
          "to": "q26"
        },
        {
          "id": "q21-community",
          "label": "Begin the community album.",
          "to": "q29"
        }
      ]
    },
    {
      "id": "q22",
      "number": "22",
      "title": "The last swap circle",
      "chapter": "The last bell",
      "body": "Nobody at the table has exactly the same collection. A visible Exchange Seal starts a generous conversation immediately. Without one, you can still name someone you met, explain a gap in the Atlas, and ask what the circle needs from you.",
      "choices": [
        {
          "id": "q22-seal",
          "label": "With Exchange Seal: share your Atlas with the circle.",
          "requires": {
            "key": true
          },
          "to": "q27"
        },
        {
          "id": "q22-speak",
          "label": "Introduce yourselves and ask to help.",
          "to": "q24"
        }
      ]
    },
    {
      "id": "q23",
      "number": "23",
      "title": "One magnificent last attempt",
      "chapter": "The last bell",
      "body": "You lift the Atlas and tell the market what happened between the first queue and the last paper boat. Friends supply forgotten details. The bell waits for your final sentence. Roll with the Goodwill you have gathered; at 0 Candles, the hurried ending costs a little clarity.",
      "roll": {
        "id": "q23-finale",
        "label": "Roll a d6 + Goodwill; subtract 1 at 0 Candles.",
        "modifier": "final",
        "bands": [
          {
            "min": 0,
            "max": 2,
            "to": "q28"
          },
          {
            "min": 3,
            "max": 4,
            "to": "q27"
          },
          {
            "min": 5,
            "max": 6,
            "to": "q26"
          },
          {
            "min": 7,
            "max": 99,
            "to": "q29"
          }
        ]
      }
    },
    {
      "id": "q24",
      "number": "24",
      "title": "Who remembers your name?",
      "chapter": "The circle",
      "body": "The circle listens. A queue ribbon, an agreed caption or a paper boat can become a useful introduction. If none of those stories followed you here, there is still a quieter offer to make before everyone packs their sleeves away.",
      "choices": [
        {
          "id": "q24-friend",
          "label": "Queue Friend marked: ask Nim to introduce you.",
          "requires": {
            "flags": [
              "queuefriend"
            ]
          },
          "to": "q27"
        },
        {
          "id": "q24-grove",
          "label": "Grove marked: share the moth's caption.",
          "requires": {
            "flags": [
              "grove"
            ]
          },
          "to": "q27"
        },
        {
          "id": "q24-tide",
          "label": "Tide marked: send Pell's paper boat around.",
          "requires": {
            "flags": [
              "tide"
            ]
          },
          "to": "q27"
        },
        {
          "id": "q24-offer",
          "label": "Make a quieter offer.",
          "to": "q25"
        }
      ]
    },
    {
      "id": "q25",
      "number": "25",
      "title": "Room for one more page",
      "chapter": "The circle",
      "body": "The last blank page can hold a story, a promise or simply room for another night. You can offer it to the community album. With a little time left, you could instead finish a private note. Returning tomorrow is also a perfectly good plan.",
      "choices": [
        {
          "id": "q25-give",
          "label": "Offer the blank page to the community.",
          "to": "q27"
        },
        {
          "id": "q25-note",
          "label": "Candles 1+: spend 1 Candle writing a private note.",
          "requires": {
            "provisions": 1
          },
          "effects": {
            "provisions": -1
          },
          "to": "q26"
        },
        {
          "id": "q25-tomorrow",
          "label": "Keep the page for the next market night.",
          "to": "q28"
        }
      ]
    },
    {
      "id": "q26",
      "number": "26",
      "title": "An album with room",
      "chapter": "Ending",
      "ending": true,
      "body": "You close a small, personal Atlas. Its pages remember the stories you found, and its remaining spaces leave room for another visit. Under the last lantern, everyone adds one sentence about the evening. A collection can be worth keeping before it is finished.",
      "question": "Which small detail will your traveler remember even if no card ever shows it?"
    },
    {
      "id": "q27",
      "number": "27",
      "title": "The collection between people",
      "chapter": "Ending",
      "ending": true,
      "body": "The circle passes the Atlas from hand to hand. People contribute a picture, a caption or the name of somebody who helped. Your own gaps become part of a larger record. The market closes with fewer strangers than it opened with.",
      "question": "Whose contribution changes the way your traveler looks at the collection?"
    },
    {
      "id": "q28",
      "number": "28",
      "title": "A page for tomorrow",
      "chapter": "Ending",
      "ending": true,
      "body": "The closing bell outruns the plan. You leave a page unfinished rather than pretending it holds a story you never heard. Nim saves a ribbon for the next market. Pell sets one lantern aside. Tomorrow's collection already has a place to begin.",
      "question": "What does your traveler want to ask when the market opens again?"
    },
    {
      "id": "q29",
      "number": "29",
      "title": "A market full of moons",
      "chapter": "Ending",
      "ending": true,
      "body": "Your complete set, or the market's generous additions to your grand story, becomes the first spread in a community Atlas. Someone draws an extra moon for a visitor who arrived late. The last bell rings twice, then decides the celebration deserves a little more time.",
      "question": "What new story does your traveler invite the next collector to add?"
    }
  ]
}
