/* Front Door 2.0: the story stage. Each world sets five colours; everything else is shared.
   site.css still supplies the header, footer, buttons, forms and status labels. */

:root[data-world="weave"] { --w-bg: #060914; --w-bg2: #0D1326; --w-ink: #EEF2FA; --w-ink2: #A9B4C8; --w-line: #25304A; --w-accent: #E9A46B; --w-accent2: #5B84FF; }
:root[data-world="bass"] { --w-bg: #1D0A3A; --w-bg2: #26104A; --w-ink: #F6EEFF; --w-ink2: #C3B0E6; --w-line: #3C2468; --w-accent: #FFB23E; --w-accent2: #B57BFF; }
:root[data-world="record"] { --w-bg: #04112B; --w-bg2: #071A3D; --w-ink: #F3F0E4; --w-ink2: #9FB1D0; --w-line: #17305C; --w-accent: #F2C14E; --w-accent2: #7FA8FF; }
:root[data-world="table"] { --w-bg: #0C2A1C; --w-bg2: #103423; --w-ink: #F7EFDC; --w-ink2: #B3C7B4; --w-line: #1F4A33; --w-accent: #F0A44B; --w-accent2: #9ED6A8; }
/* The Moon Hoax is the one light world: newsprint and ink. Its header and footer stay dark. */
:root[data-world="hoax"] { --w-bg: #EDE3C8; --w-bg2: #E4D8B8; --w-ink: #15130F; --w-ink2: #4B463A; --w-line: #C9BC97; --w-accent: #15130F; --w-accent2: #7A2E12; --w-on-accent: #EDE3C8; }
:root[data-world="hoax"] .top, .story-page .foot { background: #0B0B10; color: #F1F3F8; }

.story-page { background: var(--w-bg); color: var(--w-ink); }
.story-page .top { background: color-mix(in srgb, var(--w-bg) 86%, transparent); border-bottom-color: var(--w-line); }
.story :focus-visible { outline-color: var(--w-accent); }
.btn-accent { background: var(--w-accent); color: var(--w-on-accent, #14100B); }
.btn-accent:hover { filter: brightness(1.08); }
.story .btn-ghost { border-color: var(--w-line); color: var(--w-ink); }

/* ---- the opening: one sentence ---- */
.opening { position: relative; min-height: calc(100svh - var(--top-h, 3.75rem)); display: grid; align-items: center; overflow: hidden; padding-block: clamp(2rem, 6vh, 4rem); }
.thread-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 7.5rem; translate: 0 -50%; pointer-events: none; }
.thread-line path { fill: none; stroke: var(--w-accent); stroke-width: 1.5; opacity: 0.35; vector-effect: non-scaling-stroke; }
.opening-inner { position: relative; }
.story .eyebrow { color: var(--w-accent); }
.hook { font-family: var(--serif); font-weight: 360; font-size: clamp(2.5rem, 8.4vw, 6.75rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; margin: 0; text-wrap: balance; }
.hook-word { display: inline-block; }
/* An unseen copy of the sentence at its final weight, used once to measure the words (see stage.js). */
.hook-probe { position: absolute; left: 0; right: 0; visibility: hidden; pointer-events: none; }
.js .hook-probe .hook-word { animation: none; }
.opening-lede { max-width: 32rem; margin: 1.5rem 0 0; color: var(--w-ink2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.opening-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .hook-word { animation: word 900ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes word { from { opacity: 0; transform: translateY(0.4em); font-weight: 100; } to { font-weight: 360; } }
  .js .thread-line path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-thread 1800ms var(--ease) 500ms forwards; }
  @keyframes draw-thread { to { stroke-dashoffset: 0; } }
}

/* ---- the stage: a fixed theatre. Scene, telling, tray. ---- */
.stage2 { background: var(--w-bg2); border-top: 1px solid var(--w-line); }
.js .stage2:not(.is-open) { display: none; }
/* The stage stays where it is put. Without this the browser's scroll anchoring nudged the whole page
   whenever a reason appeared above the telling, sliding the top of the stage under the header. */
.js .stage2 { overflow-anchor: none; }
.js .stage2-grid {
  display: grid; gap: 0.75rem; padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  height: calc(100svh - var(--top-h, 3.75rem)); min-height: 24rem;
  grid-template: "scene" auto "telling" minmax(0, 1fr) "tray" auto / minmax(0, 1fr);
}
.scene { grid-area: scene; min-height: 0; display: grid; place-items: center; border: 1px solid var(--w-line); border-radius: 4px; background: var(--w-bg); padding: 0.75rem; overflow: hidden; }
.scene { max-height: 48svh; overflow-y: auto; }
.scene-art { width: 100%; height: 26svh; display: grid; place-items: center; }
.scene-art svg { width: 100%; height: 100%; max-height: 100%; }
.scene-fallback { color: var(--w-ink2); font-size: 0.9375rem; text-align: center; }
.js .telling { grid-area: telling; overflow-y: auto; min-height: 0; }
.telling:focus-visible { outline: 3px solid var(--w-accent); outline-offset: 2px; }
.js .beat:not(.is-open) { display: none; }
.beat { padding: 0.25rem 0 1rem; }
.beat:focus { outline: none; }
.beat-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-accent); margin: 0 0 0.5rem; }
.beat-line { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 4.6vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.beat-sub { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--w-ink2); max-width: 38rem; margin: 0.9rem 0 0; }
.js .receipts-plain, .js .beat-next { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .beat.is-open .beat-line { animation: rise 520ms var(--ease) both; }
  .js .beat.is-open .beat-sub { animation: rise 520ms var(--ease) 120ms both; }
  .js .why-panel.has-why { animation: rise 420ms var(--ease) both; }
}

/* why a thread leads where it does */
.why-panel.has-why { border-left: 3px solid var(--w-accent); padding-left: 0.9rem; margin-bottom: 1rem; max-width: 40rem; }
.why-panel:focus { outline: none; }
.why p { margin: 0 0 0.4rem; font-size: 0.9375rem; }
.why-text { font-family: var(--serif); font-size: 1.0625rem !important; line-height: 1.4; }
.why-not { color: var(--w-ink2); border-left: 2px solid var(--w-accent2); padding-left: 0.7rem; }
.why-not strong { color: var(--w-ink); }
.story .rel { color: var(--w-accent); }
.story .rel-indirect { color: var(--w-accent2); }
.story .rel-indirect i { border-top-style: dotted; border-top-width: 3px; }
.story .cites a { color: var(--w-ink2); }
.why-panel .claim-foot { display: none; }

/* the tray: always on screen */
.tray2 { grid-area: tray; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; border-top: 1px solid var(--w-line); padding-top: 0.6rem; min-width: 0; }
.tray2-status { margin: 0; font-size: 0.8125rem; color: var(--w-ink2); }
.tray2.is-lit .tray2-status { color: var(--w-accent); font-weight: 700; }
.tray2-next { display: grid; gap: 0.4rem; }
.next2 { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0.8rem; border: 1.5px solid var(--w-line); border-radius: 6px; text-decoration: none; color: var(--w-ink); transition: transform 160ms var(--ease), border-color 160ms; }
.next2:hover { transform: translateY(-2px); border-color: var(--w-ink2); }
.next2:active { transform: translateY(1px); }
.next2-label { font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.2; flex: 1 1 auto; min-width: 0; }
.next2-state { flex: none; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-ink2); }
.next2.is-new { border-color: var(--w-accent); }
.is-new .next2-state { color: var(--w-accent); }
.is-link .next2-state { color: var(--w-accent2); }
.tray2-actions { display: flex; gap: 0.5rem; }
.tray2-actions .btn { white-space: nowrap; overflow-wrap: normal; flex: 0 1 auto; min-width: 0; }
.tray2-actions [data-receipts-open] { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.tray2-actions .btn[disabled] { opacity: 0.4; cursor: default; }

/* A short upright phone (about 640 px tall or less): the scene and the tray together left the telling
   only a sliver. Spacing is trimmed, nothing is removed, and the telling gets a few more lines. */
@media (max-width: 33.99rem) and (max-height: 45rem) {
  .js .stage2-grid { gap: 0.5rem; padding-block: 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
  .tray2 { gap: 0.35rem; padding-top: 0.4rem; }
  .tray2-next { gap: 0.3rem; }
  .next2 { min-height: 2.75rem; padding-block: 0.35rem; }
}
/* A phone held sideways: wide but very short. Stacked, the scene, the telling and the tray cannot all
   fit, and Back, receipts and Finish slid under the bottom edge. Here the scene sits beside the telling,
   as it does on a desk, with tighter spacing, so every control is on screen without scrolling. */
@media (min-width: 34rem) and (max-width: 59.99rem) and (max-height: 30rem) and (orientation: landscape) {
  .js .stage2-grid { min-height: 0; gap: 0.4rem 1rem; padding-block: 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px)); grid-template: "scene telling" minmax(0, 1fr) "scene tray" auto / minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .scene { max-height: none; padding: 0.5rem; }
  .scene-art { height: 100%; }
  .tray2 { gap: 0.3rem; padding-top: 0.35rem; }
  .tray2-next { gap: 0.3rem; }
  .next2 { min-height: 2.75rem; padding-block: 0.3rem; }
  .next2-label { font-size: 1rem; }
  .tray2-actions .btn { padding-inline: 0.7rem; font-size: 0.9375rem; }
  .beat-line { font-size: clamp(1.375rem, 3.6vw, 1.75rem); }
  .beat-sub { margin-top: 0.5rem; }
}
@media (min-width: 60rem) {
  .js .stage2-grid { height: min(calc(100svh - var(--top-h, 3.75rem)), 50rem); gap: 1rem 2.5rem; padding-block: 1.25rem; grid-template: "scene telling" minmax(0, 1fr) "scene tray" auto / minmax(0, 1.05fr) minmax(0, 1fr); }
  .scene { padding: 1.5rem; max-height: none; }
  .scene-art { height: 100%; }
  .tray2-actions { justify-content: space-between; }
  .tray2-actions [data-receipts-open] { flex: 0 1 auto; }
}

/* ---- receipts: the evidence layer, on demand ---- */
.receipts-dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100svh - 2rem)); border: 1px solid var(--paper-line); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); color: var(--ink); }
.receipts-dialog::backdrop { background: rgb(4 6 12 / 0.72); }
.receipts-dialog h2 { font-size: 1.75rem; }
.receipts-dialog h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-ink); margin: 1.25rem 0 0.5rem; }
.receipts-note { color: var(--ink-2); margin: 0.4rem 0 0; }
.receipts { list-style: none; margin: 0; padding: 0; }
.receipts li { padding: 0.8rem 0; border-top: 1px solid var(--paper-line); }
.receipts li > p:first-child { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; margin: 0 0 0.5rem; }
.receipts-dialog .why p { color: var(--ink); }
.receipts-dialog .why-not { color: var(--ink-2); border-left-color: var(--copper-ink); }
.receipts-dialog .why-not strong { color: var(--ink); }
.receipts-dialog .rel { color: var(--copper-ink); }
.receipts-dialog .rel-indirect { color: var(--sage-ink); }
.receipts-dialog .cites a { color: var(--ink-2); }
.receipts-dialog form { margin-top: 1.25rem; }
.status-ours { color: var(--amber-ink); }
.status-ours i { border-style: dotted; }
.receipts-plain { margin-top: 1rem; color: var(--w-ink2); }
.receipts-plain summary { cursor: pointer; padding-block: 0.6rem; color: var(--w-ink); font-weight: 600; }
.receipts-plain .status, .receipts-plain .cites a { color: var(--w-ink2); }
.beat-next { margin-top: 1rem; display: grid; gap: 0.75rem; }
.next { color: var(--w-accent); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.next-item .why { padding: 0.4rem 0 0 0.9rem; border-left: 2px solid var(--w-line); margin-top: 0.3rem; }

/* ---- the ending ---- */
.ending { padding-block: clamp(4rem, 10vw, 7rem); border-top: 1px solid var(--w-line); }
.ending:focus { outline: none; }
.ending h2 { font-size: clamp(2.5rem, 7.5vw, 5.5rem); font-weight: 380; letter-spacing: -0.03em; }
.ending-scope { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(1.375rem, 2.8vw, 2.125rem); line-height: 1.2; color: var(--w-accent); margin: 1rem 0 2rem; max-width: 40rem; }
.ending-path { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 44rem; border-top: 1px solid var(--w-line); }
.ending-path li { display: grid; gap: 0.1rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--w-line); }
@media (min-width: 40rem) { .ending-path li { grid-template-columns: 13rem 1fr; align-items: baseline; } }
.path-rel { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-accent); }
.is-indirect .path-rel { color: var(--w-accent2); }
.ending-path { margin-bottom: 1rem; }
.ending-tally { color: var(--w-ink2); font-size: 0.9375rem; margin: 0 0 0.75rem; max-width: 44rem; }
.ending-full { max-width: 44rem; margin: 0 0 2rem; }
.ending-full summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.2em; }
.ending-trail { margin: 0.5rem 0 0; padding: 0 0 0 1.75rem; font-size: 0.9375rem; color: var(--w-ink2); }
.ending-trail li { padding: 0.35rem 0; }
.ending-trail .path-rel { display: block; font-size: 0.6875rem; }
.ending-trail .path-beat { font-size: 1rem; color: var(--w-ink); }
.ending-trail .is-repeat .path-rel { color: var(--w-ink2); }
.ending-trail .is-repeat .path-beat { color: var(--w-ink2); }
@media (prefers-reduced-motion: no-preference) {
  .ending:not([hidden]) .ending-path li { animation: rise 600ms var(--ease) both; animation-delay: calc(350ms + var(--i, 0) * 180ms); }
  .ending:not([hidden]) .ending-tally { animation: rise 600ms var(--ease) 1300ms both; }
}
.path-beat { font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }
.ending-care { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.3; max-width: 36rem; margin: 0 0 1rem; }
.ending-invite { color: var(--w-ink2); max-width: 36rem; margin: 0 0 1.5rem; }
/* The invitation after a story: its own panel, so it cannot be missed and cannot be mistaken for the story. */
.ending-join { max-width: 40rem; margin: 2rem 0; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1.5px solid var(--w-accent); border-radius: 10px; background: color-mix(in srgb, var(--w-accent) 7%, transparent); }
.ending-join .eyebrow { margin-bottom: 0.6rem; }
.ending-ask { font-family: var(--serif); font-weight: 420; font-size: clamp(1.5rem, 3.4vw, 2.125rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.ending-join .ending-invite { margin-bottom: 1.25rem; }
.ending-join .invite-closed, .ending-join .ending-signup { margin-bottom: 0; }
:root[data-world="hoax"] .invite-mail { background: #15130F; color: #EDE3C8; }
.ending-signup { max-width: 34rem; margin-bottom: 1.5rem; }
.story .closed-note { border-color: var(--w-line); border-left-color: var(--w-accent); padding: 0.9rem 1.1rem; max-width: 34rem; margin-bottom: 1.5rem; color: var(--w-ink); }
.ending-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.ending-shared { min-height: 1.5em; font-size: 0.9375rem; color: var(--w-ink2); margin: 0.6rem 0 0; overflow-wrap: anywhere; }
.ending-big { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin: clamp(2rem, 5vw, 3.5rem) 0 0; color: var(--w-accent); }

/* ---- below the stage ---- */
.story-foot { border-top: 1px solid var(--w-line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.story-foot h2 { font-size: 1.5rem; margin: 0 0 0.9rem; }
.story-foot h2 + ul { margin-bottom: 2.5rem; }
.story-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; max-width: 46rem; }
.story-sources a { color: var(--w-ink); }
.story-sources .src-access, .art-note { color: var(--w-ink2); font-size: 0.9375rem; }
.art-note { margin: 0.75rem 0 2.5rem; }
.story-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; max-width: 46rem; }
.story-link { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border: 1.5px solid var(--w-line); border-radius: 6px; text-decoration: none; color: var(--w-ink); transition: transform 160ms var(--ease), border-color 160ms; }
.story-link:hover { transform: translateY(-2px); border-color: var(--w-accent); }
.story-world { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w-accent); }
.story-hook { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.25; }
.story-page .foot { border-top-color: var(--w-line); }

/* ---- The Woven Moon ---- */
.weave { width: 100%; display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.weave p { margin: 0; }
.weave-ask { color: var(--w-ink2); font-size: 0.9375rem; }
.weave-ask strong { color: var(--w-accent); font-family: var(--serif); font-size: 1.3em; }
.weave-target { font-family: var(--mono); color: var(--w-ink); letter-spacing: 0.08em; }
.weave-row { display: flex; width: min(100%, 34rem); }
.core { flex: 1 1 0; min-width: 0; min-height: 4.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; display: grid; justify-items: center; }
.core svg { width: 100%; height: auto; overflow: visible; }
.w-wire { fill: none; stroke: var(--w-accent); stroke-width: 3; stroke-linecap: round; transition: opacity 220ms var(--ease); }
.w-back, .w-front { fill: none; stroke: #C5CEDB; stroke-width: 4; }
.w-through { opacity: 0; }
.core[aria-pressed="true"] .w-through { opacity: 1; }
.core[aria-pressed="true"] .w-around { opacity: 0; }
.core-bit { font-family: var(--mono); font-size: 1.125rem; color: var(--w-ink2); }
.core[aria-pressed="true"] .core-bit { color: var(--w-accent); font-weight: 700; }
.core:hover .w-back, .core:hover .w-front { stroke: #fff; }
.core:focus-visible { outline: 3px solid var(--w-accent); outline-offset: 0; border-radius: 6px; }
.weave-read { font-family: var(--mono); font-size: 0.9375rem; min-height: 1.5em; }
.is-woven .weave-read { color: var(--w-accent); font-weight: 700; }
.is-woven .w-wire { filter: drop-shadow(0 0 5px var(--w-accent)); }
.a-wire path, path.a-wire { fill: none; stroke: var(--w-accent); stroke-width: 2.5; stroke-linecap: round; }
.a-dash { stroke-dasharray: 2 9; }
.a-ring ellipse, .a-ring rect { fill: none; stroke: #C5CEDB; stroke-width: 2.5; }
.a-block { fill: none; stroke: var(--w-line); stroke-width: 2; }
.a-moon { fill: #C5CEDB; opacity: 0.92; }
.a-dot { fill: var(--w-accent); }
.a-hole circle { fill: var(--w-bg2); stroke: #C5CEDB; stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .scene-art svg .a-wire path, .scene-art svg path.a-wire { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw-thread 1400ms var(--ease) forwards; }
  .scene-art svg path.a-dash { stroke-dasharray: 2 9; stroke-dashoffset: 0; animation: none; }
}

/* ---- The Golden Record ---- */
.rec { width: 100%; display: grid; gap: 0.5rem; justify-items: center; }
.rec svg { width: 100%; height: auto; max-height: 30svh; overflow: visible; }
.rec-disc { fill: #020812; stroke: var(--w-line); stroke-width: 2; }
.rec-groove { fill: none; stroke: var(--w-accent); stroke-width: 1.5; opacity: 0.75; }
.rec-label, .rec-needle { fill: var(--w-accent); }
.rec-needle { stroke: var(--w-bg); stroke-width: 2; transition: cx 180ms linear, cy 180ms linear; }
.rec-away { fill: none; stroke: var(--w-accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1400ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.rec-craft { fill: var(--w-ink); opacity: 0; transition: opacity 600ms 1000ms; }
.rec-edge { fill: none; stroke: var(--w-accent2); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: 0; transition: opacity 600ms; }
.is-away .rec-away { stroke-dashoffset: 0; }
.is-away .rec-craft, .is-edge .rec-edge { opacity: 1; }
.rec-play { width: min(100%, 30rem); display: grid; gap: 0.4rem; text-align: center; }
.rec-ask { color: var(--w-ink2); font-size: 0.9375rem; }
.rec-range { width: 100%; height: 2.75rem; accent-color: var(--w-accent); cursor: grab; }
.rec-read { margin: 0; font-family: var(--mono); font-size: 0.875rem; min-height: 1.5em; }
.is-away .rec-read { color: var(--w-accent); font-weight: 700; }
@media (max-width: 59.99rem) { .rec svg { max-height: 20svh; } .rec { gap: 0.25rem; } .rec-play { gap: 0.15rem; } .rec-ask { font-size: 0.875rem; } }
@media (max-width: 59.99rem) and (max-height: 43.75rem) { .rec svg { max-height: 14svh; } .rec-read { font-size: 0.75rem; } }

/* ---- The Bass String ---- */
.bass { width: 100%; display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.bass p { margin: 0; }
.bass-string { width: 100%; height: 4.5rem; overflow: visible; }
.bass-string path { fill: none; stroke: var(--w-accent); stroke-width: 4; stroke-linecap: round; }
.bass-ask { color: var(--w-ink2); font-size: 0.9375rem; }
.bass-target { color: var(--w-ink); font-family: var(--mono); }
.bass-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: min(100%, 30rem); }
.pad { display: grid; gap: 0.15rem; min-height: 5rem; padding: 0.75rem; border-radius: 10px; border: 2px solid var(--w-accent); background: transparent; color: var(--w-ink); cursor: pointer; transition: transform 90ms, background-color 90ms; }
.pad strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.pad span { font-size: 0.8125rem; color: var(--w-ink2); }
.pad-pluck { border-color: var(--w-accent2); }
.pad:active { transform: scale(0.96); background: color-mix(in srgb, var(--w-accent) 22%, transparent); }
.bass-read { font-family: var(--mono); font-size: 0.875rem; min-height: 3.2em; }
.is-played .bass-read { color: var(--w-accent); font-weight: 700; }
.b-line, .b-string, .b-light { fill: none; stroke: var(--w-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.b-alt, .b-light { stroke: var(--w-accent2); }
.b-light { stroke-width: 1.5; opacity: 0.6; }
.b-dot, .b-tag { fill: var(--w-accent); }

/* ---- The Family Table ---- */
.tbl { position: relative; width: min(100%, 22rem, 44svh); aspect-ratio: 1; margin-inline: auto; }
.tbl-top { position: absolute; inset: 0; width: 100%; height: 100%; }
.tbl-wood { fill: color-mix(in srgb, var(--w-accent) 16%, var(--w-bg)); stroke: var(--w-accent); stroke-width: 1.5; }
.tbl-ring { fill: none; stroke: var(--w-line); stroke-width: 1; }
.tbl-steam { fill: none; stroke: var(--w-ink2); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; }
.seat { position: absolute; translate: -50% -50%; width: 31%; min-height: 3rem; padding: 0.35rem 0.3rem; display: grid; gap: 0.1rem; justify-items: center; border-radius: 999px; border: 1.5px solid var(--w-line); background: var(--w-bg); color: var(--w-ink2); font: inherit; cursor: pointer; transition: transform 160ms var(--ease), border-color 160ms, background-color 160ms; }
.seat-name { font-size: 0.75rem; font-weight: 700; line-height: 1.15; text-align: center; }
.seat-state { font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.seat-0 { left: 50%; top: 9%; } .seat-1 { left: 86%; top: 30%; } .seat-2 { left: 86%; top: 70%; }
.seat-3 { left: 50%; top: 91%; } .seat-4 { left: 14%; top: 70%; } .seat-5 { left: 14%; top: 30%; }
.seat.is-free { border-color: var(--w-accent); color: var(--w-ink); }
.seat.is-free:hover { transform: translateY(-2px); }
.seat.is-taken { color: var(--w-ink); border-style: dashed; }
.seat.is-here { background: var(--w-accent); border-color: var(--w-accent); color: #14100B; cursor: default; }
.seat:disabled { opacity: 0.45; cursor: default; }
@media (min-width: 60rem) { .tbl { width: min(100%, 30rem, 70svh); } .seat-name { font-size: 0.875rem; } }
/* A short upright phone: a slightly smaller table, so the telling under it keeps room for a headline. */
@media (max-width: 33.99rem) and (max-height: 45rem) { .tbl { width: min(100%, 22rem, 40svh); } }
/* The very smallest phones (under about 600 px tall): smaller still, with smaller labels on the chairs. */
@media (max-width: 33.99rem) and (max-height: 37rem) { .tbl { width: min(100%, 22rem, 35svh); } .seat { width: 36%; min-height: 2.5rem; padding: 0.2rem; } .seat-name { font-size: 0.6875rem; } .seat-state { font-size: 0.5625rem; } }
/* A phone held sideways: the table fills the height of its column, and its labels are set smaller to fit. */
@media (min-width: 34rem) and (max-width: 59.99rem) and (max-height: 30rem) and (orientation: landscape) {
  .tbl { width: min(100%, calc(100svh - var(--top-h, 3.75rem) - 2.25rem)); }
  .seat { width: 36%; min-height: 2.5rem; padding: 0.2rem; }
  .seat-name { font-size: 0.6875rem; line-height: 1.15; }
  .seat-state { font-size: 0.5625rem; }
}
@media (prefers-reduced-motion: no-preference) { .tbl-steam { animation: tbl-steam 2800ms ease-in-out infinite alternate; } @keyframes tbl-steam { to { transform: translateY(-5px); opacity: 0.3; } } }

/* ---- The Moon Hoax ---- */
.paper { width: min(100%, 26rem); margin-inline: auto; background: #F6EFDD; color: #15130F; border: 1px solid #15130F; padding: 0.9rem 1rem 1rem; box-shadow: 4px 4px 0 #15130F; }
.paper p { margin: 0; }
.paper-mast { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; letter-spacing: -0.03em; text-align: center; border-bottom: 3px double #15130F; padding-bottom: 0.4rem; }
.paper-date { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 0.35rem 0; border-bottom: 1px solid #15130F; margin-bottom: 0.6rem !important; }
.paper-date span { font-style: italic; text-transform: none; letter-spacing: 0; }
.paper-ask { font-size: 0.8125rem; font-style: italic; margin-bottom: 0.4rem !important; }
.claimline { display: block; width: 100%; text-align: left; min-height: 2.75rem; padding: 0.45rem 0.2rem; border: 0; border-bottom: 1px solid #C9BC97; background: none; color: inherit; font: inherit; cursor: pointer; }
.claim-print { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.25; background: linear-gradient(#E6F03C, #E6F03C) 0 100% / 0 100% no-repeat; transition: background-size 260ms var(--ease); }
.claimline:hover .claim-print, .claimline:focus-visible .claim-print, .claimline[aria-expanded="true"] .claim-print { background-size: 100% 100%; }
.claim-note { display: block; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 700; color: #7A2E12; }
.claim-note::before { content: "↳ "; }
.paper-read { font-family: var(--mono); font-size: 0.8125rem; margin-top: 0.6rem !important; min-height: 2.6em; }
.paper-set { text-align: center; padding: 0.8rem 0 0.4rem; }
.paper-head { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.paper-deck { font-style: italic; margin-top: 0.4rem !important; }
.paper-stamp { display: inline-block; margin-top: 0.9rem !important; padding: 0.3rem 0.8rem; border: 3px solid #7A2E12; color: #7A2E12; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; rotate: -4deg; }
/* Short phones: keep room for the sentence under the scene. */
@media (max-width: 59.99rem) and (max-height: 43.75rem) {
  :root[data-world="bass"] .scene, :root[data-world="hoax"] .scene { max-height: 38svh; }
  .bass { gap: 0.35rem; } .bass-string { height: 1.5rem; } .bass-ask { font-size: 0.8125rem; }
  .pad { min-height: 3.25rem; padding: 0.35rem; } .pad strong { font-size: 1.125rem; } .pad span { font-size: 0.6875rem; }
  .bass-read { font-size: 0.75rem; min-height: 2.8em; }
  .paper { padding: 0.5rem 0.75rem 0.6rem; box-shadow: 3px 3px 0 #15130F; } .paper-mast { font-size: 1.5rem; padding-bottom: 0.2rem; }
  .paper-date { padding: 0.2rem 0; margin-bottom: 0.3rem !important; } .paper-ask { font-size: 0.75rem; margin-bottom: 0.1rem !important; }
  .claimline { padding: 0.25rem 0.2rem; } .claim-print { font-size: 0.9375rem; } .paper-read { font-size: 0.75rem; margin-top: 0.3rem !important; }
  .paper-set { padding: 0.4rem 0 0.2rem; } .paper-head { font-size: 1.25rem; } .paper-stamp { margin-top: 0.5rem !important; }
}
@media (prefers-reduced-motion: no-preference) { .paper-set.is-set .paper-stamp { animation: stamp 380ms cubic-bezier(0.2, 1.4, 0.4, 1) 300ms both; } @keyframes stamp { from { opacity: 0; scale: 1.8; } } }
