.festival-app{max-width:1160px;margin:20px auto;padding:0 16px 24px;color:var(--ink);font-family:var(--body)}
.festival-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.festival-identity{display:flex;align-items:center;gap:10px;min-width:0}.festival-identity canvas{width:48px;height:48px;image-rendering:pixelated;background:var(--mint);border-radius:10px}.festival-identity h1{font-size:20px;margin:0 0 3px;line-height:1.6}.festival-identity p{font-size:14px;margin:0;line-height:1.6;color:var(--leaf)}
.festival-head-actions{display:flex;align-items:center;gap:10px}.festival-wallet{min-width:100px;padding:8px 12px;border:1px solid var(--leaf);border-radius:10px;background:var(--mint);font-size:12px;line-height:1.6}.festival-wallet strong{display:block;color:var(--leaf);font-size:22px;font-variant-numeric:tabular-nums}.festival-app button,.festival-dialog button{min-height:44px;font-family:inherit;line-height:1.6}.festival-app .quiet{padding:9px 12px}
.festival-world{overflow:hidden;border:2px solid var(--leaf);border-radius:14px;background:var(--paper)}.festival-world-top{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.festival-world-top h2{font-size:16px;line-height:1.7;margin:0}.festival-world-top button{flex:none}
.festival-sites{display:flex;gap:8px;padding:10px 16px;background:var(--mint)}.festival-sites button{flex:1;min-width:0;padding:8px;border:1px solid var(--leaf);border-radius:6px;background:var(--paper);color:var(--leaf);font-size:14px}.festival-sites button[aria-pressed=true]{background:var(--leaf);color:var(--paper)}
.festival-board{position:relative;width:min(100%,99dvh);aspect-ratio:3/2;background:var(--mint);margin:auto}.festival-board canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:pan-y}.festival-board.is-placing canvas{touch-action:none;cursor:crosshair}.festival-targets{position:absolute;inset:0;pointer-events:none}.festival-object{position:absolute;transform:translate(-50%,-100%);min-width:44px;min-height:44px;background:transparent;border:2px solid transparent;border-radius:6px;pointer-events:auto;padding:0}.festival-object:hover,.festival-object:focus-visible{background:color-mix(in srgb,var(--mint) 22%,transparent);border-color:var(--leaf)}
.festival-bubble{position:absolute;transform:translate(-50%,-100%);width:220px;max-width:calc(100% - 20px);padding:12px;border:2px solid var(--leaf);border-radius:10px;background:var(--paper);font-size:14px;line-height:1.8;pointer-events:none}
.festival-tray{padding:16px;background:var(--mint);border-block:1px solid var(--leaf)}.festival-tray h3{margin:0 0 8px;font-size:16px;line-height:1.7}.festival-tray p{margin:0 0 12px;font-size:14px;line-height:1.8}.festival-controls{display:flex;gap:8px;flex-wrap:wrap}.festival-controls button{flex:1;min-width:80px}.festival-nudge{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.festival-nudge button{background:var(--paper);border:1px solid var(--leaf);border-radius:6px;font-size:14px;color:var(--leaf)}
.festival-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px 16px;border-top:1px solid var(--line)}.festival-toolbar #festivalShop{flex:1;min-width:160px}.festival-toolbar #festivalOpen{min-width:150px}.festival-note{padding:0 16px;margin:0 0 14px;font-size:14px;line-height:1.9;color:var(--leaf);min-height:28px}.festival-summary{font-size:14px;line-height:1.9;color:var(--leaf);margin:12px 2px 0}.festival-save-status{font-size:12px;line-height:1.8;color:var(--muted);margin:8px 2px}
.festival-dialog{width:min(740px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain;border:2px solid var(--leaf);border-radius:14px;background:var(--paper);color:var(--ink);font-family:var(--body)}.festival-dialog::backdrop{background:#243e3670}.festival-dialog-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:var(--leaf);color:var(--paper);font-size:14px;line-height:1.8}.festival-dialog-head button{background:var(--paper);color:var(--leaf);padding:8px 12px;border:0;border-radius:6px;flex:none}.festival-dialog-body{padding:20px}.festival-dialog h2{font-size:22px;line-height:1.6;margin:0 0 12px;word-break:keep-all}.festival-dialog p{font-size:14px;line-height:1.9}.festival-tabs{display:flex;gap:8px;margin-bottom:16px}.festival-tabs button{flex:1;min-width:0;background:var(--paper);color:var(--leaf);border:1px solid var(--leaf);border-radius:6px;font-size:14px;padding:8px}.festival-tabs button[aria-pressed=true]{background:var(--mint);border-width:2px;padding:7px}
.festival-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.festival-offer{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;text-align:left;padding:16px 12px;background:var(--paper);border:2px solid var(--line);border-radius:10px;color:var(--ink)}.festival-offer:hover:enabled{border-color:var(--leaf);background:var(--mint)}.festival-offer canvas{width:72px;height:88px;object-fit:contain;image-rendering:pixelated}.festival-offer strong{display:block;font-size:15px;line-height:1.7}.festival-offer b{display:inline-block;margin:6px 0;padding:2px 7px;border-radius:6px;background:var(--peach);color:var(--ink);font-size:16px}.festival-offer small{display:block;font-size:12px;line-height:1.8;color:var(--leaf)}.festival-offer-effect{display:block;font-size:14px;line-height:1.8;margin:6px 0}.festival-offer:disabled{opacity:.6;cursor:default}
.festival-theme-options{display:grid;gap:10px;margin:18px 0}.festival-theme-options button{text-align:left;padding:14px 16px;border:1px solid var(--leaf);border-radius:6px;background:var(--paper);color:var(--ink);font-size:16px}.festival-theme-options button[aria-pressed=true]{background:var(--mint);border-width:2px;padding:13px 15px}.festival-theme-options small{display:block;font-size:14px;color:var(--leaf);line-height:1.8;margin-top:4px}.festival-finish-actions{display:grid;gap:10px;margin-top:20px}.festival-entry{margin:20px 0 10px}.festival-entry .primary{width:100%;min-height:52px}.festival-entry p{font-size:13px;line-height:1.8;color:var(--leaf);margin:10px 0}.festival-entry .primary:disabled{opacity:.6}
@media(max-width:780px){.festival-app{margin:12px auto;padding:0 8px 16px}.festival-head{gap:8px}.festival-identity h1{font-size:16px}.festival-identity p{font-size:12px}.festival-identity canvas{width:36px;height:40px}.festival-head-actions{gap:6px}.festival-wallet{padding:6px 8px;min-width:78px}.festival-wallet strong{font-size:18px}.festival-head-actions .quiet{font-size:12px;padding:6px}.festival-world-top{padding:10px 12px}.festival-sites{padding:8px;gap:6px}.festival-sites button{font-size:12px;padding:6px}.festival-board{width:100%;max-height:none}.festival-toolbar{padding:12px;gap:8px}.festival-toolbar #festivalShop,.festival-toolbar #festivalOpen{min-width:0;flex:1}.festival-toolbar #festivalUndo{width:100%;min-width:0}.festival-note{padding:0 12px;font-size:13px}.festival-tray{padding:12px}.festival-bubble{font-size:13px;padding:10px}.festival-controls button{font-size:13px;min-width:92px}.festival-dialog-body{padding:16px}.festival-dialog-head{padding:10px 14px}.festival-offers{grid-template-columns:1fr}.festival-offer{grid-template-columns:76px minmax(0,1fr)}.festival-offer canvas{width:76px}.festival-tabs{gap:6px}.festival-tabs button{padding:8px 4px;font-size:13px}.festival-dialog h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.festival-app *{scroll-behavior:auto}}

#festivalCanvas:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}

.festival-app .primary,.festival-app .secondary,.festival-dialog .primary,.festival-dialog .secondary{width:auto;margin:0}
.festival-entry .primary{margin:0}.festival-identity h1{overflow-wrap:anywhere}
.festival-app.large-text .festival-note,.festival-app.large-text .festival-tray p,.festival-app.large-text .festival-summary,.festival-dialog.large-text p,.festival-dialog.large-text .festival-offer-effect{font-size:18px}
.festival-dialog.large-text .festival-offer strong,.festival-dialog.large-text .festival-offer small,.festival-app.large-text .festival-sites button{font-size:16px}

/* Start with one request and two choices. Editing is an optional utility. */
.festival-toolbar{display:block}.festival-toolbar #festivalShop{width:100%;min-width:0;min-height:50px;margin:0;font-size:16px}
.festival-more{position:relative;flex:none;font-size:14px;color:var(--leaf)}.festival-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border:1px solid var(--leaf);border-radius:6px;background:var(--paper);cursor:pointer;list-style:none}.festival-more>summary::-webkit-details-marker{display:none}
.festival-more-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:8;display:grid;gap:4px;width:min(240px,calc(100vw - 30px));padding:8px;background:var(--paper);border:2px solid var(--leaf);border-radius:8px}.festival-more-panel .quiet{width:100%;min-height:44px;text-align:left;font-size:14px}
.legacy-mode{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}.legacy-mode>summary{min-height:44px;padding:10px 0;font-size:13px;color:var(--muted);cursor:pointer}
@media(max-width:780px){.festival-toolbar #festivalShop{width:100%;min-height:50px}.festival-more>summary{font-size:12px;padding:6px 8px}}

.festival-more:not([open])>.festival-more-panel,.legacy-mode:not([open])>:not(summary){display:none}

.festival-request-brief{padding:12px 14px;margin:0 0 14px;border-left:4px solid var(--leaf);background:var(--mint);border-radius:6px}.festival-request-brief>strong{font-size:14px;color:var(--leaf)}.festival-request-brief p{margin:8px 0 0;font-size:14px;line-height:1.8}.festival-request-brief p:last-child{color:var(--leaf)}.festival-offer.is-unsuitable{border-color:#99604a}.festival-offer.is-unsuitable small:last-child{color:#804d3b}.festival-dialog.large-text .festival-request-brief p{font-size:18px}

/* Two readable steps: an easy town first, a separate budget puzzle second. */
.town-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}.town-stages button{position:relative;text-align:left;padding:12px 16px;border:2px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}.town-stages button[aria-current=step]{border-color:var(--leaf);background:var(--mint)}.town-stages button:disabled{color:var(--muted);background:#eeeadd}.town-stages span{display:block;font-size:12px;color:var(--leaf);margin-bottom:4px}.town-stages strong{display:block;font-size:17px;line-height:1.7}.town-stages small{display:block;font-size:13px;line-height:1.7;margin-top:3px}.town-stage-actions{padding:0 16px 14px}.town-stage-actions:has(>button:not(.hide)){display:grid;gap:8px}.town-stage-actions:not(:has(>button:not(.hide))){display:none}.town-stage-actions button{width:100%;min-height:48px;font-size:16px}.town-party-summary{padding:0 16px;font-size:14px;line-height:1.8;margin:0 0 10px;color:var(--leaf)}
.town-party-dialog{width:min(800px,calc(100% - 24px))}.town-party-sticky{position:sticky;top:0;z-index:4;background:var(--paper)}.town-party-sticky .festival-dialog-head{position:static}.town-party-sticky .festival-dialog-head button{font-size:13px}.town-party-meter{height:9px;background:var(--mint);overflow:hidden}.town-party-meter>span{display:block;height:100%;width:0;background:#d4a45c}.town-party-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.town-party-choice{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;border:2px solid var(--line);border-radius:10px;text-align:left;background:var(--paper);color:var(--ink);padding:12px}.town-party-choice canvas{width:76px;height:72px;image-rendering:pixelated;object-fit:contain}.town-party-choice strong{display:block;font-size:16px;line-height:1.7}.town-party-choice b{display:inline-block;margin:4px 0;background:var(--peach);padding:2px 7px;font-size:16px;border-radius:5px}.town-party-choice small{display:block;font-size:13px;line-height:1.8;color:var(--leaf)}.town-party-description{display:block;font-size:14px;line-height:1.8;margin:4px 0}.town-party-choice[aria-pressed=true]{border-color:var(--leaf);background:var(--mint)}.town-party-choice[aria-pressed=true] strong::before{content:'✓ ';color:var(--leaf)}.town-party-choice[aria-disabled=true]{border-style:dashed;background:#f2eee4}.town-party-choice[aria-disabled=true] small{color:#804d3b}.town-party-choice:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.town-party-selection{color:var(--leaf);border-left:3px solid var(--leaf);padding-left:10px}.town-party-bottom{position:sticky;bottom:0;padding:12px 20px max(14px,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);z-index:3}.town-party-bottom p{margin:0 0 8px;font-size:14px;line-height:1.7}.town-party-bottom .primary{width:100%;min-height:48px;font-size:16px}
.town-party-dialog.large-text .town-party-choice strong,.town-party-dialog.large-text .town-party-choice small,.town-party-dialog.large-text .town-party-description,.festival-app.large-text .town-stages small{font-size:16px}
@media(max-width:780px){.town-stages{gap:8px;margin-bottom:12px}.town-stages button{padding:9px 10px}.town-stages strong{font-size:15px}.town-stages small{font-size:12px}.town-stage-actions{padding:0 12px 12px}.town-party-summary{padding:0 12px}.town-party-choices{grid-template-columns:1fr;gap:10px}.town-party-choice{padding:12px;grid-template-columns:72px minmax(0,1fr)}.town-party-sticky .festival-dialog-head{gap:8px;font-size:13px}.town-party-sticky .festival-dialog-head button{max-width:110px;font-size:12px;padding:6px 8px}.town-party-bottom{padding:10px 16px max(12px,env(safe-area-inset-bottom))}.town-party-dialog h2{font-size:20px}.festival-wallet{max-width:170px}.festival-wallet>span{display:block;font-size:11px;line-height:1.7}}
