/* Field kit: one column on a phone, the same objects as the talk. Ivory = work, red = needs a call, green = decided. */
:root {
  --bg: #0d0b08; --surface: #13110d; --raised: #1a1813; --line: #2f2c27;
  --ink: #e6e2da; --muted: #a8a49c; --subtle: #77726a; --faint: #514d45;
  --paper: #faf8f4; --signal: #e4572e; --go: #5fc583; --amber: #d9a441;
  --font: "Apfel Grotezk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--subtle); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-inline: 18px; }

header.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
header.bar .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--paper); border: 1px solid var(--paper); padding: 5px 8px 4px; text-decoration: none; flex: none; transition: background .2s, color .2s; }
.brand:hover, .brand:focus-visible { background: var(--bg); color: var(--paper); }
nav.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
nav.pills::-webkit-scrollbar { display: none; }
nav.pills a { flex: none; font-size: 13.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 5px 11px 4px; }
nav.pills a.live { color: var(--ink); border-color: var(--signal); }

.kicker { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 12vw, 76px); line-height: .98; letter-spacing: -0.05em; }
h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -0.04em; }
h3 { font-size: 20px; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 14px; }

section.block { padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
section.block > .wrap { display: grid; gap: 18px; }
.hero { padding-block: 34px 26px; }
.hero .wrap { display: grid; gap: 14px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34ch; }

/* hairline svg */
svg.iso { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.iso .sil { fill: var(--bg); stroke: var(--subtle); stroke-width: 1.1; stroke-linejoin: round; transition: stroke .3s; }
.iso .lo { fill: none; stroke: var(--faint); stroke-width: 1; transition: stroke .3s; }
.iso .eye { fill: var(--subtle); transition: fill .3s; }
.iso .fig { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.iso .fig.on { transform: translate(0, -9px); }
.iso .fig.on .sil { stroke: var(--ink); }
.iso .fig.on .lo { stroke: var(--muted); }
.iso .fig.on .eye { fill: var(--ink); }
.iso .fig.agent .sil { stroke: #5f5b54; }
.iso .fig.agent.on .sil { stroke: var(--ink); }
.iso .light { fill: var(--faint); stroke: none; transition: fill .3s; }
.iso .fig.agent.on .light { fill: var(--ink); }
.iso .fig.agent.wait .light { fill: var(--signal); }
.iso .fig.person .sil { stroke: var(--muted); stroke-width: 1.25; }
.iso .fig.person.on .sil, .iso .fig.person.go .sil { stroke: var(--go); }
.iso .fig.lock.held .sil { stroke: var(--signal); }
.iso .fig.lock.held .shackle { stroke: var(--signal); }
.iso .chk { stroke: var(--ink); }
.iso .hot { stroke: var(--signal); stroke-width: 1.4; }
.iso .goc { stroke: var(--go); stroke-width: 1.3; }
.iso .settled { stroke: var(--faint); }
.iso .flag { fill: var(--go); }
.iso .flagpole { stroke: var(--go); stroke-width: 1.2; }
.iso text.lbl { fill: var(--muted); font-size: 11px; font-family: var(--font); }

.hint { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--muted); }
.hint b { color: var(--ink); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.red { background: var(--signal); box-shadow: 0 0 0 3px rgba(228, 87, 46, .2); }
.dot.go { background: var(--go); box-shadow: 0 0 0 3px rgba(95, 197, 131, .2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; transition: background .15s, border-color .15s; touch-action: manipulation; }
.btn:hover { border-color: var(--subtle); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.btn.go { background: var(--go); color: #08130c; border-color: var(--go); }
.btn.red { border-color: var(--signal); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.seg button { min-height: 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 6px 10px; touch-action: manipulation; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* live room */
.room { border: 1px solid var(--line); background: var(--surface); padding: 18px; display: grid; gap: 14px; }
.room.ask { border-color: var(--signal); }
.room.called { border-color: var(--go); }
.room .phase { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.room .big { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.excerpt { border-left: 2px solid var(--subtle); padding: 4px 0 4px 14px; display: grid; gap: 4px; }
.excerpt small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.excerpt q { quotes: "“" "”"; font-size: 17px; }
.answers { display: grid; gap: 8px; }
.answers .btn { justify-content: flex-start; width: 100%; }
.answers .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tally { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.tally div { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; }
.tally i { display: block; height: 6px; background: var(--ink); width: 0; transition: width .6s; }
.tally span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 14.5px; color: var(--muted); }
.note.stale { color: var(--ink); border-left: 2px solid var(--signal); padding-left: 12px; }

/* toys */
.toy { display: grid; gap: 14px; }
.stage { border: 1px solid var(--line); background: var(--surface); padding: 10px; position: relative; overflow: hidden; }
.lanes { display: grid; gap: 7px; }
.lane { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--subtle); }
.track { position: relative; height: 16px; border-left: 1px solid var(--line); }
.track i { position: absolute; top: 0; bottom: 0; }
.track i.think { background: var(--ink); }
.track i.save { background: var(--go); }
.track i.wait { background: repeating-linear-gradient(135deg, var(--faint) 0 2px, transparent 2px 7px); }
.clock { display: flex; align-items: baseline; gap: 10px; }
.clock b { font-size: 46px; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock b.bad { color: var(--signal); }
.clock b.good { color: var(--go); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--subtle); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 8px; display: inline-block; }
.legend i.think { background: var(--ink); } .legend i.save { background: var(--go); } .legend i.wait { background: repeating-linear-gradient(135deg, var(--faint) 0 2px, transparent 2px 6px); }

.cellcard { position: absolute; right: 10px; top: 10px; display: grid; gap: 2px; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; min-width: 160px; font-size: 12.5px; }
.cellcard b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.cellcard .v { font-family: var(--mono); font-size: 11.5px; color: var(--subtle); }
.cellcard.go { border-color: var(--go); }
.cellcard.red { border-color: var(--signal); }
.cellcard .st { color: var(--muted); }
.cellcard.go .st { color: var(--go); }
.cellcard.red .st { color: var(--signal); }
.toast { font-size: 15px; border-left: 2px solid var(--subtle); padding: 2px 0 2px 12px; min-height: 26px; }
.toast.go { border-color: var(--go); } .toast.red { border-color: var(--signal); }

canvas.field { width: 100%; display: block; touch-action: none; background: var(--bg); }
.fieldwrap { position: relative; border: 1px solid var(--line); }
.peek { position: absolute; pointer-events: none; background: var(--paper); color: var(--bg); font-size: 12.5px; padding: 6px 8px; transform: translate(-50%, -120%); white-space: nowrap; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.counts div { display: grid; border-top: 1px solid var(--line); padding-top: 8px; }
.counts b { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.counts span { font-size: 12.5px; color: var(--subtle); }
.counts .calls b { color: var(--go); }
.scen { display: flex; gap: 6px; flex-wrap: wrap; }
.scen button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 12px 5px; font-size: 14px; cursor: pointer; min-height: 38px; }
.scen button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.questions { display: grid; gap: 8px; }
details.q { border: 1px solid var(--line); background: var(--surface); }
details.q > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px 14px; min-height: 52px; }
details.q > summary::-webkit-details-marker { display: none; }
details.q > summary b { font-weight: 500; font-size: 16px; line-height: 1.3; }
details.q > summary span { font-size: 12.5px; color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
details.q.done { border-color: color-mix(in srgb, var(--go) 55%, transparent); }
details.q.done > summary span { color: var(--go); }
details.q .qbody { padding: 0 14px 14px; display: grid; gap: 12px; }

/* words */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.word { border: 1px solid var(--line); padding: 14px; display: grid; gap: 6px; align-content: start; background: var(--surface); opacity: .55; transition: opacity .4s, border-color .4s; }
.word.got { opacity: 1; border-color: var(--subtle); }
.word b { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.word p { font-size: 14.5px; color: var(--muted); }
.word em { font-style: normal; font-size: 13.5px; color: var(--ink); border-left: 1px solid var(--subtle); padding-left: 10px; }
.word small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.word.got small { color: var(--go); }

/* ledger */
.ledger { display: grid; gap: 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ledger div { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger code { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.ledger s { color: var(--subtle); }
.ledger .by { font-size: 12.5px; color: var(--subtle); text-align: right; }
.empty { color: var(--subtle); font-size: 14.5px; }

/* card + laptop */
.cardprev { width: 100%; max-width: 420px; border: 1px solid var(--line); display: block; }
.cmd { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: var(--surface); }
.cmd code { font-family: var(--mono); font-size: 13.5px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.cmd button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; font-size: 13px; }
footer { border-top: 1px solid var(--line); padding-block: 34px calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--subtle); font-size: 13.5px; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap { max-width: 980px; }
  .toygrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
/* motion plays regardless of the OS reduce-motion setting: this is presented live */

/* ---------- toy box ---------- */
.sandbox { display: grid; gap: 12px; margin-top: 6px; }
.boardwrap { position: relative; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, #15130f 0%, var(--bg) 70%); }
svg.board { touch-action: pan-y; }
.board.drop { outline: 1px dashed var(--muted); outline-offset: -6px; }
.lockhint { position: absolute; left: 10px; bottom: 8px; font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 8px; }
.iso .filled { stroke: #6d685f; }
.iso .flagc { stroke: var(--signal); stroke-width: 1.35; }
.iso .dec { stroke: var(--go); stroke-width: 1.3; }
.iso .deciding { stroke: var(--go); stroke-dasharray: 3 2; }
.iso .reading { stroke: var(--ink); }
.iso .garb { stroke: var(--amber); stroke-dasharray: 2 2; }
.iso .lost { stroke: var(--signal); stroke-width: 2; }
.iso .blk { stroke: var(--paper); stroke-width: 2; }
.iso .glyph { fill: none; stroke: var(--signal); stroke-width: 1.3; }
.iso .glyph.done { stroke: var(--go); }
.iso .beam { stroke: var(--ink); stroke-width: .8; stroke-dasharray: 2 3; opacity: .6; }
.iso .beam.go { stroke: var(--go); opacity: .8; }
.iso .fig.checker .sil { stroke: var(--muted); }
.iso .fig.checker .tick { stroke: var(--muted); stroke-width: 1.4; }
.iso .fig.checker.hit .sil, .iso .fig.checker.hit .tick { stroke: var(--paper); }
.iso .fig.sorter .sil { stroke: var(--muted); }
.iso .fig.sorter .lo { stroke: var(--muted); }
.iso .fig.lock .sil { stroke: var(--muted); }
.iso .fig.lock.save .sil { stroke: var(--go); }
.iso .fig.lock.held.hold .sil, .iso .fig.lock.held.hold .shackle { stroke: var(--signal); }
.iso .toyfig { cursor: grab; }
.iso text.qn { fill: var(--signal); font: 600 11px var(--font); }

.tray { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.toy-btn { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 8px; border: 1px solid var(--line); background: var(--surface); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; min-height: 96px; }
.toy-btn svg { width: 56px; height: 52px; display: block; pointer-events: none; }
.toy-btn span { font-size: 12.5px; color: var(--ink); pointer-events: none; }
.toy-btn b { font-size: 11px; font-weight: 500; color: var(--subtle); font-variant-numeric: tabular-nums; pointer-events: none; }
.toy-btn.full { opacity: .5; }
.toy-btn .minus { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; touch-action: manipulation; }
.toy-btn .minus[hidden] { display: none; }
.ghost { position: fixed; z-index: 60; pointer-events: none; width: 70px; height: 66px; transform: translate(-50%, -60%); }
.ghost svg { width: 100%; height: 100%; }

.hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.hud div { display: grid; border-top: 1px solid var(--line); padding-top: 6px; }
.hud b { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hud span { font-size: 12px; color: var(--subtle); }
.hud .warn b { color: var(--signal); } .hud .good b { color: var(--go); }

.goals { display: grid; gap: 8px; margin-top: 18px; }
.goal { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); padding: 11px 12px; font-size: 15px; }
.goal i { width: 18px; height: 18px; border: 1px solid var(--subtle); border-radius: 50%; margin-top: 2px; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.goal small { display: block; color: var(--subtle); font-size: 13px; margin-top: 2px; }
.goal.done { border-color: color-mix(in srgb, var(--go) 50%, transparent); }
.goal.done i { background: var(--go); border-color: var(--go); color: #08130c; }
.goal.done small { color: var(--go); }

.map { display: grid; gap: 0; border-top: 1px solid var(--line); }
.map div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.map b { font-weight: 500; } .map span { color: var(--muted); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roles .btn { flex-direction: column; min-height: 120px; gap: 4px; }
.roles .btn svg { width: 56px; height: 50px; }
.roles .btn small { font-size: 12.5px; color: var(--subtle); font-weight: 400; }
.glyphs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.glyphs .btn { min-height: 84px; font-size: 34px; }
.mine { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.mine svg { width: 72px; height: 66px; }
.status { display: flex; flex-wrap: wrap; gap: 6px; }
.status span { font-size: 12.5px; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); }
.status span.on { color: var(--ink); border-color: var(--subtle); }

@media (min-width: 900px) {
  .sandbox { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "board tray" "board hud" "board toast" "board row"; align-items: start; column-gap: 24px; }
  .boardwrap { grid-area: board; } .tray { grid-area: tray; grid-template-columns: repeat(5, minmax(0, 1fr)); } .hud { grid-area: hud; } .toast { grid-area: toast; } .sandbox > .row { grid-area: row; }
  .goals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.goals > .kicker { grid-column: 1 / -1; }
.iso .fig .mark { stroke: var(--muted); stroke-width: 1.2; }
#room-body { display: grid; gap: 14px; }

/* sound toggle, caption line, toy explanations */
.soundbtn { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 13px; cursor: pointer; touch-action: manipulation; }
.soundbtn svg { width: 18px; height: 18px; }
.soundbtn path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.soundbtn .spk { fill: currentColor; stroke: none; }
.soundbtn .wave { display: none; }
.soundbtn[aria-pressed="true"] { color: var(--ink); border-color: var(--subtle); }
.soundbtn[aria-pressed="true"] .wave { display: inline; }
.soundbtn[aria-pressed="true"] .cross { display: none; }
.now { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); min-height: 40px; margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.lockhint { bottom: auto; top: 10px; }
.nowdot { width: 9px; height: 9px; border-radius: 50%; background: var(--subtle); flex: none; transition: background .2s; }
.nowdot.agent { background: var(--ink); } .nowdot.person { background: var(--go); } .nowdot.lock { background: var(--amber); }
.nowdot.checker { background: var(--paper); } .nowdot.sorter { background: var(--go); } .nowdot.bad { background: var(--signal); }
.tip { position: fixed; z-index: 70; width: min(300px, calc(100vw - 32px)); background: var(--paper); color: var(--bg); padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tip b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.tip .head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b665e; }
.tip dl { margin: 0; display: grid; grid-template-columns: 74px 1fr; gap: 4px 8px; }
.tip dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6b665e; padding-top: 2px; }
.tip dd { margin: 0; }

/* souvenir page */
.baractions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sharelink, .slideslink { font-size: 13.5px; color: var(--ink); text-decoration: none; border: 1px solid var(--subtle); padding: 6px 12px 5px; white-space: nowrap; }
@media (max-width: 460px) {
  header.bar .wrap, .baractions { gap: 10px; }
  .sharelink, .slideslink { font-size: 12.5px; padding: 5px 9px 4px; }
}
@media (max-width: 340px) {
  header.bar .wrap { flex-wrap: wrap; row-gap: 8px; }
}
.guide { border: 1px solid var(--line); background: var(--surface); }
.guide > summary { cursor: pointer; padding: 11px 14px; font-size: 14.5px; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.guide > summary::after { content: "+"; color: var(--subtle); }
.guide[open] > summary::after { content: "−"; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > div { padding: 0 14px 14px; display: grid; gap: 12px; }
.gitem { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.gitem svg { width: 44px; height: 44px; }
.gitem b { font-weight: 500; display: block; font-size: 15px; }
.gitem span { color: var(--muted); display: block; }
.gitem em { font-style: normal; color: var(--subtle); display: block; font-size: 13px; }
.about p { max-width: 60ch; }
.toast.pop { border-color: var(--ink); }
@media (max-width: 899px) {
  .hero { padding-block: 18px 20px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; }
  .tip { display: none !important; }
}
.goal .lore { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.goal .lore b { display: block; color: var(--go); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.iso .callout rect { fill: var(--signal); }
.iso .callout text { fill: #fff; font-family: "Apfel Grotezk", ui-sans-serif, system-ui, sans-serif; stroke: none; }
.iso .callout.blk rect { fill: var(--paper); }
.iso .callout.blk text { fill: var(--bg); }

/* welcome card: centred on a laptop, a bottom sheet on a phone */
.welcome { position: fixed; inset: 0; z-index: 80; background: rgba(5, 4, 3, .72); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.wcard { position: relative; width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); padding: 28px 26px 24px; display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: wup .35s cubic-bezier(.2,.9,.3,1); }
.wcard h2 { font-size: 34px; }
.wcard p { color: var(--muted); }
.wclose { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.wtoys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-block: 2px; }
.wtoy { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); background: transparent; border: 1px solid transparent; padding: 6px 0 8px; cursor: pointer; touch-action: manipulation; }
.wtoy:hover, .wtoy.on { border-color: var(--subtle); color: var(--ink); }
.wtoys svg { width: 54px; height: 50px; }
.wact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.wact .btn { min-width: 170px; }
.wmute { border: 0; background: transparent; color: var(--muted); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; }
@keyframes wup { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .welcome { place-items: end stretch; padding: 0; }
  .wcard { width: 100%; padding: 24px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-left: 0; border-right: 0; border-bottom: 0; }
  .wcard h2 { font-size: 30px; }
  .wact .btn { flex: 1; }
  @keyframes wup { from { transform: translateY(40px); } to { transform: none; } }
}
.wdesc { min-height: 46px; font-size: 15.5px; color: var(--ink) !important; border-left: 2px solid var(--subtle); padding-left: 12px; }
.wdesc b { font-weight: 500; }
.tip { width: auto; max-width: min(280px, calc(100vw - 32px)); }

/* ---------- play-along QR: fades in and out on wide screens (play.js stageQR) ---------- */
.stageqr { --qw: 190px; position: fixed; z-index: 40; right: max(24px, calc((100vw - 960px) / 4 - var(--qw) / 2 - 18px)); top: 50%; transform: translate(10px, -50%); opacity: 0; visibility: hidden; transition: opacity 1.2s ease, transform 1.2s ease, visibility 0s linear 1.2s; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; padding: 14px 14px 12px; background: var(--paper); color: var(--bg); width: var(--qw); box-sizing: border-box; pointer-events: none; }
.stageqr.on { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 1.2s ease, transform 1.2s ease, visibility 0s; }
.stageqr img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.stageqr .sq-k { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.stageqr .sq-u { margin: 0; font-family: var(--mono); font-size: 10.5px; color: #3a352d; text-align: center; }
.stageqr .sq-u span { display: block; white-space: nowrap; }
@media (max-width: 1700px) {
  /* no side margin wide enough: a compact card in the empty space right of the headline */
  .stageqr { top: 84px; right: max(16px, calc((100vw - 960px) / 2 + 18px)); width: auto; transform: translate(0, -6px);
    grid-template-columns: 110px auto; grid-template-areas: "q k" "q u"; justify-items: start; align-items: center; column-gap: 12px; row-gap: 2px; padding: 10px 14px 10px 10px; }
  .stageqr.on { transform: none; }
  .stageqr img { grid-area: q; width: 110px; }
  .stageqr .sq-k { grid-area: k; align-self: end; }
  .stageqr .sq-u { grid-area: u; align-self: start; text-align: left; }
  .stageqr .sq-u span { display: block; }
}
@media (max-width: 1199px) { .stageqr { display: none; } }

