/* css/sections-a.css (owner: sections-a). The cover (#case), Before you enter (#read), 第1話 The scene (#scene),
   the clock interlude (#clock) and 第3話 The wallet-age puzzle (#ages).
   Every selector is scoped under one of those sections. Colours are base.css tokens only (light look, SPEC 2.1).
   Resting tilts use the `rotate` / `translate` properties: FX writes `transform` on whatever it animates. */

/* ═════════════════════════ #case · the cover ═════════════════════════ */
#case .cover__hero { display: grid; gap: 28px clamp(26px, 3.6vw, 48px); align-items: center; padding-top: 8px; }
@media (min-width: 900px) { #case .cover__hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }

/* the title panel: a manga frame with static focus lines (集中線) converging on the title */
#case .cover__head {
  position: relative; isolation: isolate; padding: clamp(16px, 2.4vw, 26px) clamp(12px, 2.2vw, 26px) clamp(16px, 2.2vw, 24px);
  border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--shadow);
}
#case .cover__focus { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
/* a paper outline keeps small type readable where it crosses the focus lines */
#case .cover__kicker, #case .cover__sub, #case .cover__t1 {
  text-shadow: 2px 0 var(--paper), -2px 0 var(--paper), 0 2px var(--paper), 0 -2px var(--paper), 1.5px 1.5px var(--paper), -1.5px -1.5px var(--paper), 1.5px -1.5px var(--paper), -1.5px 1.5px var(--paper);
}
#case .cover__kicker { margin-bottom: 12px; }
#case .cover__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-style: italic; line-height: 0.9; letter-spacing: -0.01em; }
#case .cover__t1 { display: block; font-size: clamp(29px, 8.2vw, 46px); }
#case .cover__t2 { position: relative; display: inline-block; margin-top: 0.02em; padding-right: 0.08em; font-size: clamp(90px, 25vw, 150px); line-height: 0.86; letter-spacing: 0.02em; }
@media (min-width: 900px) {
  #case .cover__t1 { font-size: clamp(36px, 3.9vw, 52px); }
  #case .cover__t2 { font-size: clamp(120px, 12.6vw, 158px); }
}
#case .cover__t2-text { position: relative; z-index: 1; text-shadow: 0.04em 0.045em 0 var(--soft); }
#case .cover__swash { position: absolute; z-index: 0; left: -3%; bottom: -0.04em; width: 106%; height: 0.24em; overflow: visible; }
#case .cover__swash-ink { fill: var(--ink); }
#case .cover__swash-pink { fill: var(--pink); }
#case .cover__sub { margin-top: 18px; max-width: 30em; font: italic 800 clamp(15px, 2vw, 18px)/1.35 var(--font-head); color: var(--ink); }
#case .cover__asof-row { margin-top: 14px; }
#case a.cover__asof {
  height: auto; min-height: 38px; max-width: 100%; padding: 7px 15px 7px 12px; gap: 10px; border-radius: 19px;
  white-space: normal; text-align: left; font: 600 13.5px/1.35 var(--font-body);
}
#case .cover__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--ink); }

#case .cover__pitch { display: grid; gap: 16px; padding-left: 14px; border-left: 4px solid var(--ink); }
#case .cover__dek { max-width: 42em; font: 500 15.5px/1.58 var(--font-body); }
#case .cover__dek-proofs .proofs { gap: 10px 6px; }
#case .cover__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px; padding-top: 6px; }
@media (min-width: 700px) {
  #case .cover__pitch { padding-left: 20px; }
  #case .cover__dek { font-size: clamp(16px, 1.6vw, 17.5px); line-height: 1.62; }
}

/* the crime scene: tape across the top of the Web City diorama, Nib hanging at its top right */
#case .cover__scene { position: relative; margin-top: clamp(26px, 3.6vw, 44px); }
/* the tape runs just above the diorama's top edge; torn, its halves droop into the sky (decoration only) */
#case .cover__scene > .tape-band { position: relative; z-index: 3; padding-block: 18px; margin-bottom: -14px; }
#case .crime-tape { --tape-drop: 90px; }
#case .cover__dio { position: relative; z-index: 1; margin: 0; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
#case .cover__dio .a-diorama { border-radius: 5px; }
/* Nib hangs on his silk thread at the top right (the diorama keeps that corner clear); pressing him hops the body */
#case .cover__nibwrap { position: absolute; z-index: 2; top: -40px; right: 17%; width: 52px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
#case .cover__silk { flex: none; width: 2px; height: 58px; margin-bottom: -3px; background: var(--ink); }
#case .cover__nib { display: block; width: 100%; pointer-events: auto; cursor: pointer; }
#case .cover__nib svg { display: block; width: 100%; height: auto; }
@media (min-width: 700px) {
  #case .cover__nibwrap { top: -52px; right: 2.6%; width: clamp(62px, 6.8vw, 82px); }
  #case .cover__silk { height: 74px; }
}
#case .cover__districts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 8px; }
#case .cover__districts li {
  margin: 0; padding: 5px 11px 4px; border-radius: 3px; background: var(--ink); color: var(--on-ink); box-shadow: 2px 3px 0 var(--soft);
  font: italic 800 12.5px/1.2 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
}
#case .cover__districts li:nth-child(3n + 2) { background: var(--line); }
#case .cover__districts li:nth-child(3n) { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 2px 3px 0 var(--soft); }

/* Case at a glance: the answer first */
#case .glance {
  position: relative; margin-top: clamp(50px, 6vw, 72px); padding: 34px clamp(14px, 2.6vw, 26px) clamp(14px, 2.4vw, 22px);
  border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--shadow);
}
#case .glance::before { content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 64px; background: linear-gradient(100deg, var(--paper) 0 18%, transparent 18.2%), var(--tone-dots); pointer-events: none; }
#case .glance__tab {
  position: absolute; z-index: 1; top: -22px; left: 14px; margin: 0; padding: 9px 15px 8px;
  background: var(--ink); color: var(--on-ink); box-shadow: 4px 4px 0 var(--pink); rotate: -2deg;
  font: italic 400 clamp(18px, 2.8vw, 24px)/1 var(--font-display); letter-spacing: 0.03em;
}
#case .glance__rows { position: relative; list-style: none; margin: 0; padding: 0; }
/* phones: number + question on one line, the answer and its proofs full width below */
#case .glance__row {
  position: relative; margin: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px;
  padding: 20px 2px 20px; border-top: 2px dashed var(--rule);
}
#case .glance__row:first-child { border-top: 0; padding-top: 6px; }
#case .glance__n {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 2.5px solid var(--ink); border-radius: 50%; background: var(--pink); color: var(--ink); box-shadow: 2px 3px 0 var(--ink);
  font: italic 400 20px/1 var(--font-display);
}
#case .glance__q { margin: 0; font: italic 900 14px/1.2 var(--font-head); letter-spacing: 0.09em; text-transform: uppercase; color: var(--line); }
#case .glance__a { grid-column: 1 / -1; margin-top: 11px; font: 500 16px/1.58 var(--font-body); }
#case .glance__proofs { grid-column: 1 / -1; margin-top: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
#case .glance__row--lands { margin: 10px 0 2px; padding: 18px 14px 18px; border-top: 0; background: var(--wash); box-shadow: inset 0 0 0 3px var(--wash), inset 0 0 0 5.5px var(--ink); }
#case .glance__row--lands .glance__a { font: italic 800 17.5px/1.45 var(--font-head); }
/* desktop: a summary sheet, number · question · answer with its proofs */
@media (min-width: 900px) {
  #case .glance__row { grid-template-columns: 44px 200px minmax(0, 1fr); align-items: start; column-gap: 18px; padding: 22px 18px 24px 8px; }
  #case .glance__row:first-child { padding-top: 10px; }
  #case .glance__n { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; font-size: 22px; }
  #case .glance__q { grid-column: 2; grid-row: 1 / span 2; margin-top: 13px; font-size: 15px; }
  #case .glance__a { grid-column: 3; margin-top: 0; }
  #case .glance__proofs { grid-column: 3; }
  #case .glance__row--lands { margin: 12px 0 4px; padding: 22px 22px 24px 16px; }
}
#case a.glance__jump { background: var(--ink); color: var(--on-ink); box-shadow: 3px 4px 0 var(--pink); }

#case .cover__label { font: italic 900 13px/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
#case .cover__conf { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
#case .cover__foot { margin-top: clamp(32px, 4.4vw, 48px); display: grid; gap: 26px; }
#case .cover__eps { display: grid; gap: 12px; }
#case .cover__rule {
  justify-self: start; max-width: 64ch; padding: 11px 17px; rotate: -0.6deg;
  background: var(--ink); color: var(--on-ink); box-shadow: 5px 5px 0 var(--soft); font: 600 15px/1.5 var(--font-body);
}
#case .cover__nibline { margin-top: 6px; }

/* ═════════════════════════ #read · Before you enter ═════════════════════════ */
#read .rd-block { margin-top: clamp(44px, 6.4vw, 80px); }
#read .rd-who { margin-top: 0; }
#read .rd-h { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: italic 400 clamp(25px, 4.6vw, 36px)/1.1 var(--font-display); }
#read .rd-h::before { content: ""; flex: none; width: 15px; height: 15px; rotate: 45deg; background: var(--pink); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
#read .rd-sub { margin: 30px 0 16px; font: italic 900 14.5px/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--line); }
#read .rd-intro { margin: -6px 0 20px; max-width: 62ch; font: 500 15.5px/1.5 var(--font-body); color: var(--muted); }

/* people and companies: text-only name plates */
#read .people { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 34px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
#read .person { position: relative; margin: 0; padding: 26px 16px 16px; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-sm); }
#read .person > .plate { position: absolute; top: -14px; left: 12px; }
#read .person__art { position: absolute; top: -26px; right: 10px; }
#read .person__art svg { display: block; width: 52px; height: 52px; }
#read .person__role { font: 500 15px/1.5 var(--font-body); }
#read .person[data-plate="operator"] { border-style: dashed; background: var(--tone-dots), var(--board); }
#read .person[data-plate="operator"] .person__role { padding-right: 46px; }
#read .person__proofs { margin-top: 12px; }

/* the wallet cast: object-character cards */
#read .cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
#read .cast-card {
  position: relative; margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px; align-items: start;
  padding: 15px 15px 13px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
}
#read .cast-card__art {
  display: grid; place-items: center; width: 76px; height: 76px; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--tone-dots), var(--wash); box-shadow: 3px 3px 0 var(--soft);
}
#read .cast-card__art svg { display: block; width: 60px; height: 60px; }
#read .cast-card__body { min-width: 0; }
#read .cast-card__nick { margin: 4px 0 5px; font: italic 900 19px/1.15 var(--font-head); color: var(--ink); }
#read .cast-card__id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 9px; }
#read .cast-card__id .addr { font-size: 13.5px; font-weight: 700; }
#read .cast-card__chains { display: inline-flex; flex-wrap: wrap; gap: 4px; }
#read .cast-card__short { font: italic 800 14px/1.3 var(--font-head); color: var(--muted); }
#read .cast-card__fact { font: 500 14.5px/1.5 var(--font-body); }
#read .cast-card__links { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--rule); }
#read .cast-card__tent { margin: 0 0 0 -6px; }
#read .rd-names {
  display: inline-block; margin-top: 26px; padding: 11px 17px; rotate: -0.5deg;
  border: 2.5px solid var(--ink); background: var(--wash); box-shadow: 4px 4px 0 var(--soft);
  font: italic 800 15.5px/1.45 var(--font-head);
}

/* the legend */
#read .rd-legend { padding-block: clamp(34px, 5vw, 58px); border-block: 3px solid var(--ink); }
#read .legend { display: grid; gap: 20px; }
@media (min-width: 900px) { #read .legend { grid-template-columns: 1fr 1fr; } }
#read .lg-panel { position: relative; padding: 16px 16px 18px; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
#read .lg-panel > .rd-sub { margin: 0 0 14px; }
#read .lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#read .lg-item { margin: 0; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; align-items: center; }
#read .lg-key { display: flex; justify-content: center; align-items: center; min-height: 34px; }
#read .lg-text { font: 500 14.5px/1.45 var(--font-body); }
#read .lg-name { font-weight: 600; }
#read .lg-also { display: block; margin-top: 3px; font: italic 800 12.5px/1.35 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 559px) {
  #read .lg-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #read .lg-key { justify-content: flex-start; min-height: 0; }
  #read .lg-list { gap: 18px; }
}
#read .lg-note { margin-top: 14px; font: 500 13.5px/1.45 var(--font-body); color: var(--muted); }
#read .lg-swatch { display: block; width: 140px; height: 48px; overflow: visible; }
#read .lgs-out { fill: none; stroke: var(--ink); stroke-width: 5.2; stroke-linecap: round; }
#read .lgs-core { fill: none; stroke-width: 2.6; stroke-linecap: round; }
#read .lgs-core--soft { stroke: var(--soft); }
#read .lgs-core--pink { stroke: var(--pink); }
#read .lgs-dash { fill: none; stroke: var(--line); stroke-width: 3.2; stroke-dasharray: 6 5; }
#read .lgs-dot-ink { fill: none; stroke: var(--ink); stroke-width: 6.6; stroke-dasharray: 0.1 8; stroke-linecap: round; }
#read .lgs-dot { fill: none; stroke: var(--soft); stroke-width: 3.6; stroke-dasharray: 0.1 8; stroke-linecap: round; }
#read .lgs-long { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-dasharray: 14 6; }
#read .lgs-pin { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
#read .lg-kind {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--ink); color: var(--on-ink); font: italic 900 12.5px/1 var(--font-head); letter-spacing: 0.05em;
}
#read .lg-kind[data-kind="address"], #read .lg-kind[data-kind="token"] { background: var(--line); }
#read .lg-kind[data-kind="post"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
#read .lg-kind[data-kind="docs"], #read .lg-kind[data-kind="article"], #read .lg-kind[data-kind="analyst"] { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
#read .rd-times {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 15px 8px 9px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm);
  font: 600 14.5px/1.4 var(--font-body);
}
#read .rd-times__clock { flex: none; padding: 4px 6px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--board); font: 700 12px/1 var(--font-mono); }

/* the pocket glossary: a centred notebook; every definition is printed, the six help buttons only add "where it shows up".
   Phones: one centred column, each help button pinned to the middle of its entry, so a bubble (≤220px, centred on its
   button) can never leave the screen. From 860px: two columns, the button right after the term. */
#read .gloss { max-width: 560px; margin-inline: auto; }
#read .gl {
  position: relative; margin: 0; padding: 8px 18px 8px 30px; border: 2.5px solid var(--ink); background: var(--paper); box-shadow: var(--shadow);
}
#read .gl::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 14px; width: 2px; background: var(--pink); pointer-events: none; }
#read .gl__item { position: relative; padding: 14px 0; border-bottom: 1.5px dashed var(--rule); break-inside: avoid; }
#read .gl__item:last-child { border-bottom: 0; }
#read .gl__term { display: flex; align-items: center; gap: 10px; margin: 0; font: italic 900 17.5px/1.25 var(--font-head); color: var(--ink); }
#read .gl__def { margin: 5px 0 0; font: 500 15px/1.5 var(--font-body); }
#read .gl sakuga-tooltip { flex: none; margin-top: 0; }
@media (max-width: 699px) {
  #read .gl__item--tip { margin: 28px -18px 0 -30px; padding: 30px 18px 15px 30px; border-bottom: 0; background: var(--wash); }
  #read .gl__item:has(+ .gl__item--tip) { border-bottom: 0; }
  #read .gl__item--tip:last-child { margin-bottom: -8px; }
  #read .gl__item--tip sakuga-tooltip { position: absolute; top: -21px; left: 50%; translate: -50% 0; }
}
@media (min-width: 860px) {
  #read .gloss { max-width: none; }
  #read .gl { columns: 2; column-gap: 56px; padding: 10px 26px 10px 26px; }
  #read .gl::before { left: 50%; translate: -1px 0; }
  #read .gl__item--tip .gl__term { gap: 12px; }
}

/* ═════════════════════════ #scene · 第1話 The scene ═════════════════════════ */
#scene .sc-page { display: grid; gap: 40px 14px; padding-top: 16px; }
@media (min-width: 800px) { #scene .sc-page { grid-template-columns: 1fr 1fr; gap: 42px 14px; } }
#scene .sc-panel { min-width: 0; }
#scene .sc-panel > .panel__body { padding: 96px 14px 18px; }
#scene .sc-panel.panel--cut-right > .panel__body { padding-right: max(24px, 7%); }
#scene .sc-panel.panel--cut-left > .panel__body { padding-left: max(24px, 7%); }
@media (min-width: 800px) {
  #scene .sc-panel > .panel__body { padding: 104px clamp(16px, 2vw, 24px) 22px; }
  #scene .sc-panel.panel--cut-right > .panel__body { padding-right: max(30px, 7.5%); }
  #scene .sc-panel.panel--cut-left > .panel__body { padding-left: max(30px, 7.5%); }
}
#scene .sc-time {
  position: absolute; z-index: 2; top: -18px; left: 12px; margin: 0; padding: 8px 13px 7px;
  background: var(--ink); color: var(--on-ink); rotate: -2deg; box-shadow: 4px 4px 0 var(--pink);
}
#scene .panel--cut-left .sc-time { left: max(20px, 7%); }
#scene .sc-time .when { color: var(--on-ink); font: italic 400 clamp(19px, 3vw, 25px)/1 var(--font-display); letter-spacing: 0.01em; }
#scene .sc-time .when__utc { color: var(--soft); font: 700 12px/1 var(--font-mono); letter-spacing: 0.04em; }
/* each panel's drawing sits top right, behind nothing that must be read */
#scene .sc-art { position: absolute; z-index: 0; top: 10px; right: 14px; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; }
#scene .panel--cut-right .sc-art { right: max(30px, 8%); }
#scene .sc-art .a-art { display: block; }
#scene .sc-art--grab .a-art:first-of-type { margin-bottom: -2px; }
#scene .sc-art__lines { position: absolute; z-index: -1; inset: 6px -8px 2px -150px; }
#scene .sc-link { display: block; width: 64px; height: 30px; margin: 0 -4px 14px; overflow: visible; }
#scene .sc-link__dash { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 11 5; stroke-linecap: round; }
#scene .sc-art--accounts { gap: 0; }
#scene .sc-art--accounts .a-art + .a-art { margin-left: -12px; }
#scene .sc-art--accounts .a-art:nth-child(2) { margin-bottom: 10px; }
#scene .sc-fall { display: block; width: 104px; height: 84px; overflow: visible; }
#scene .sc-fall__streak { fill: none; stroke: var(--soft); stroke-width: 4; stroke-linecap: round; }
#scene .sc-fall__out { fill: none; stroke: var(--ink); stroke-width: 13; stroke-linejoin: round; stroke-linecap: round; }
#scene .sc-fall__core { fill: none; stroke: var(--soft); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
#scene .sc-fall__head { fill: var(--pink); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }
#scene .sc-content { position: relative; z-index: 1; display: grid; gap: 16px; }
#scene .sc-aside, #scene .sc-note {
  display: grid; gap: 9px; padding: 11px 13px; border: 2px solid var(--ink); background: var(--board);
  font: 500 14.5px/1.45 var(--font-body);
}
#scene .sc-note { background: var(--paper); box-shadow: 3px 3px 0 var(--soft); }

/* the splash: REAL HACK? | STAGED "HACK"? (SVG border and SVG focus lines clipped to each half; no clip-path) */
#scene .splash { position: relative; isolation: isolate; margin: clamp(46px, 6vw, 70px) 0 0; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(230px, 28vw, 320px); }
#scene .splash__frame { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(6px 7px 0 var(--soft)); }
#scene .splash__poly-l { fill: var(--paper); }
#scene .splash__poly-r { fill: var(--ink); }
#scene .splash__lines-l { fill: var(--tone); }
#scene .splash__lines-r { fill: var(--line); }
#scene .splash__edge { fill: none; stroke: var(--ink); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#scene .splash__frame--tall { display: none; }
#scene .splash__half { position: relative; min-width: 0; display: grid; place-items: center; padding: 28px 15% 28px 6%; text-align: center; }
#scene .splash__half--r { padding: 28px 6% 28px 19%; }
#scene .splash__word { margin: 0; font: italic 400 clamp(32px, 5.4vw, 64px)/0.98 var(--font-display); letter-spacing: -0.005em; overflow-wrap: break-word; }
#scene .splash__half--l .splash__word { color: var(--ink); text-shadow: 0.06em 0.06em 0 var(--soft); }
#scene .splash__half--r .splash__word { color: var(--on-ink); font-size: clamp(23px, 3.5vw, 42px); line-height: 1.04; text-shadow: 0.07em 0.07em 0 var(--line); }
@media (max-width: 639px) {
  #scene .splash { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  #scene .splash__frame--wide { display: none; }
  #scene .splash__frame--tall { display: block; }
  #scene .splash__half--l { padding: 26px 18px 19%; }
  #scene .splash__half--r { padding: 18% 18px 26px; }
}
#scene .splash-cap { margin-top: 26px; display: grid; gap: 9px; max-width: 780px; padding: 14px 16px 16px; border-left: 5px solid var(--ink); background: var(--board); }
#scene .splash-cap__label { font: italic 900 13px/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--line); }
#scene .splash-cap__text { font: 500 16px/1.55 var(--font-body); }

/* ═════════════════════════ #clock · Interlude: Rewind the clock ═════════════════════════ */
#clock .clock-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }   /* minmax(0,…): no min-content blowout on narrow phones */
@media (min-width: 1000px) {
  #clock .clock-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  /* the frame and its controls stay in view while the log scrolls, when the window is tall enough to hold them */
  /* in the frame the URL bar names the site, so its chips drop the site name and pair up (the log rows keep full chips) */
  #clock .clock-frame__proofs .proof__site { display: none; }
}
@media (min-width: 1000px) and (min-height: 780px) { #clock .clock-stage { position: sticky; top: 74px; } }
/* the "Now showing" frame: a browser window */
#clock .clock-frame { position: relative; margin: 14px 0 0; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
#clock .clock-frame__tab {
  position: absolute; z-index: 1; top: -16px; right: 18px; padding: 7px 12px 6px; rotate: 2deg;
  background: var(--ink); color: var(--on-ink); box-shadow: 3px 3px 0 var(--pink); font: italic 400 13.5px/1 var(--font-display); letter-spacing: 0.06em;
}
#clock .clock-frame__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2.5px solid var(--ink); border-radius: 11px 11px 0 0; background: var(--wash); }
#clock .clock-frame__dots { flex: none; display: inline-flex; gap: 6px; }
#clock .clock-frame__dots i { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
#clock .clock-frame__dots i:first-child { background: var(--pink); }
#clock .clock-frame__url {
  flex: 1 1 auto; min-width: 0; display: block; height: 30px; padding: 0 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  font: 500 13px/26px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#clock .clock-frame__body { position: relative; display: grid; gap: 11px; min-height: 17em; padding: 16px clamp(16px, 2.6vw, 24px) 20px; }
#clock .clock-frame__body::after { content: ""; position: absolute; z-index: 0; right: 10px; bottom: 10px; width: 34%; height: 56px; background: var(--tone-dots); pointer-events: none; }
#clock .clock-frame__body > * { position: relative; z-index: 1; }
#clock .clock-frame__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: italic 900 13px/1.2 var(--font-head); letter-spacing: 0.07em; text-transform: uppercase; color: var(--line); }
#clock .clock-frame__act { color: var(--muted); }
#clock .clock-frame__time .when { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font: italic 400 clamp(32px, 4.6vw, 48px)/1 var(--font-display); color: var(--ink); }
#clock .clock-frame__time .when__date { align-self: center; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--board); font: 700 14px/1 var(--font-mono); font-style: normal; }
#clock .clock-frame__time .when__utc { font: 700 13px/1 var(--font-mono); font-style: normal; color: var(--muted); }
#clock .clock-frame__kind { display: flex; align-items: center; gap: 8px; }
#clock .clock-frame__text { font: 500 17px/1.55 var(--font-body); }
#clock .clock-frame__note, #clock .tl-row__note { padding: 7px 11px; border-left: 3px solid var(--soft); background: var(--board); font: 500 14px/1.45 var(--font-body); color: var(--ink); }
#clock .clock-frame__proofs:empty { display: none; }

/* kind chips: CHAIN (violet block) · X POST / BULLPEN (bubbles) */
#clock .tl-kind { flex: none; display: inline-flex; align-items: center; height: 23px; padding: 0 9px; font: italic 900 12px/1 var(--font-head); letter-spacing: 0.07em; white-space: nowrap; }
#clock .tl-kind[data-kind="chain"] { background: var(--line); color: var(--on-ink); border-radius: 3px; }
#clock .tl-kind[data-kind="x"] { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 11px 11px 11px 3px; }
#clock .tl-kind[data-kind="bullpen"] { background: var(--ink); color: var(--on-ink); border: 2px solid var(--ink); border-radius: 11px 11px 11px 3px; }
#clock .tl-pin { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; }
#clock .tl-pin svg { display: block; width: 22px; height: 22px; }

/* the slider, Previous / Next, the jump link */
#clock .clock-ctrl { margin-top: 20px; }
#clock .clock-ctrl__label { font: italic 900 13px/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#clock .clock-ctrl sakuga-slider { margin-top: 34px; }
#clock .clock-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 14px; }
#clock .clock-jump { margin-top: 18px; }
#clock a.clock-jump__chip { background: var(--wash); }

/* the acts band */
#clock .clock-acts { margin: 0 0 30px; padding: 14px 16px 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--tone-dots), var(--board); }
#clock .clock-acts__label { font: italic 900 13px/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#clock .clock-acts__track { position: relative; display: flex; height: 16px; margin-top: 18px; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
#clock .clock-acts__seg { flex: var(--n, 1) 1 0; min-width: 6px; }
#clock .clock-acts__seg + .clock-acts__seg { border-left: 2.5px solid var(--ink); }
#clock .clock-acts__seg[data-act="1"] { background: var(--tone); border-radius: 5px 0 0 5px; }
#clock .clock-acts__seg[data-act="2"] { background: var(--soft); }
#clock .clock-acts__seg[data-act="3"] { background: var(--tone-dots), var(--wash); }
#clock .clock-acts__seg[data-act="4"] { background: var(--pri); border-radius: 0 5px 5px 0; }
#clock .clock-acts__here { position: absolute; top: -14px; left: calc(var(--pos, 0) * 100%); width: 0; height: 0; translate: -9px 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--pink); filter: drop-shadow(0 -2px 0 var(--ink)); }
#clock .clock-acts__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
#clock .clock-acts__act { margin: 0; padding: 6px 10px 6px 12px; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); font: 600 13.5px/1.3 var(--font-body); color: var(--muted); }
#clock .clock-acts__act.is-current { border-color: var(--ink); color: var(--ink); background: var(--wash); box-shadow: inset 5px 0 0 var(--pink), 3px 3px 0 var(--soft); }
#clock .clock-acts__range { font: 700 12.5px/1 var(--font-mono); white-space: nowrap; }

/* the full log */
#clock .clock-log__h { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: italic 400 clamp(23px, 3.8vw, 30px)/1.1 var(--font-display); }
#clock .clock-log__h::before { content: ""; flex: none; width: 13px; height: 13px; rotate: 45deg; background: var(--pink); border: 2.5px solid var(--ink); }
#clock .tl-act { margin-top: 22px; }
#clock .tl-act__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 0 8px; border-bottom: 3px solid var(--ink); font: italic 900 17px/1.2 var(--font-head); }
#clock .tl-act__range { font: 700 13px/1 var(--font-mono); color: var(--muted); font-style: normal; }
#clock .tl-list { list-style: none; margin: 0; padding: 0; }
#clock .tl-row { position: relative; margin: 0; padding: 6px 0 10px; border-bottom: 1.5px solid var(--rule); }
#clock .tl-row__btn {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "num meta" "num text"; gap: 5px 12px;
  width: 100%; min-height: 44px; margin: 0; padding: 9px 10px 9px 14px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#clock .tl-row__btn::before { content: ""; position: absolute; left: 2px; top: 9px; bottom: 9px; width: 4px; border-radius: 2px; background: var(--line); }
#clock .tl-row[data-kind="x"] .tl-row__btn::before, #clock .tl-row[data-kind="bullpen"] .tl-row__btn::before { width: 0; border-left: 3px dashed var(--ink); background: none; }
#clock .tl-row__btn:hover { background: var(--board); }
#clock .tl-row__num {
  grid-area: num; align-self: start; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font: 700 12.5px/1 var(--font-mono);
}
#clock .tl-row__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
#clock .tl-row__time .when { font-size: 14px; }
#clock .tl-row__text { grid-area: text; font: 500 15.5px/1.5 var(--font-body); }
#clock .tl-row__note { margin: 4px 10px 0 56px; }
#clock .tl-row__proofs { margin: 8px 0 0 56px; }
#clock .tl-row.is-current .tl-row__btn { background: var(--wash); box-shadow: 3px 3px 0 var(--soft); }
#clock .tl-row.is-current .tl-row__btn::before { left: -2px; top: 4px; bottom: 4px; width: 7px; border: 0; border-radius: 3px; background: var(--pink); box-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink); }
#clock .tl-row.is-current .tl-row__num { background: var(--ink); color: var(--on-ink); }
#clock .tl-row[data-key] .tl-row__num { box-shadow: 2px 2px 0 var(--pink); }
@media (max-width: 520px) {
  #clock .tl-row__note, #clock .tl-row__proofs { margin-left: 14px; }
}

/* ═════════════════════════ #ages · 第3話 The wallet-age puzzle ═════════════════════════ */
#ages .qa { display: grid; gap: 22px; }
@media (min-width: 900px) { #ages .qa { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; } }
#ages .qa__card { position: relative; margin: 0; padding: 24px 18px 18px 74px; border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
#ages .qa__card--q { display: grid; align-content: start; gap: 14px; background: var(--tone-dots), var(--board); }
#ages .qa__art { justify-self: end; align-self: end; margin: -4px -4px -6px 0; }
#ages .qa__art svg { display: block; width: clamp(72px, 9vw, 104px); height: auto; }
@media (min-width: 900px) { #ages .qa__card--q { grid-template-rows: auto 1fr; } }
#ages .qa__mark {
  position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 44px; height: 50px;
  background: var(--ink); color: var(--on-ink); rotate: -4deg; box-shadow: 3px 3px 0 var(--pink); font: italic 400 28px/1 var(--font-display);
}
@media (max-width: 599px) {
  #ages .qa__card { padding: 72px 16px 18px; }
  #ages .qa__mark { top: 14px; }
}
#ages .qa__card--a .qa__mark { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), 3px 3px 0 var(--pink); }
#ages .qa__card--q .qa__text { font: italic 900 clamp(19px, 2.6vw, 24px)/1.3 var(--font-head); }
#ages .qa__card--a .qa__text { font: 500 16px/1.62 var(--font-body); }
#ages .their-word { padding: 1px 2px; background: repeating-linear-gradient(135deg, var(--wash) 0 5px, var(--paper) 5px 10px); border-bottom: 2.5px dashed var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#ages .qa__proofs { margin-top: 14px; }
#ages .qa__note { margin-top: 12px; font: 500 13.5px/1.45 var(--font-body); color: var(--muted); }

#ages .age-block { margin-top: clamp(40px, 5.4vw, 64px); }
#ages .age-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: italic 900 clamp(19px, 3vw, 24px)/1.2 var(--font-head); }
#ages .age-h::before { content: ""; flex: none; width: 13px; height: 13px; rotate: 45deg; background: var(--pink); border: 2.5px solid var(--ink); }
#ages .age-legend { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 13.5px/1.3 var(--font-body); }
#ages .age-legend li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
#ages .age-glyph { flex: none; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; vertical-align: middle; }
#ages .age-glyph[data-k="ansem"] { background: var(--paper); border-width: 3.5px; }
#ages .age-glyph[data-k="in"] { background: var(--pink); }
#ages .age-glyph[data-k="later"] { background: var(--soft); }
#ages .age-glyph[data-k="pump"] { width: 14px; height: 14px; margin: 1px; border-radius: 2px; rotate: 45deg; background: var(--paper); border-style: dashed; }

/* the chart */
#ages .age-scroll .scroll-box__view { background: var(--tone-dots), var(--paper); }
#ages .age-chart { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; overflow: visible; }
#ages .age-band { fill: var(--wash); }
#ages .age-band__edge { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
#ages .ac-band { fill: var(--line); font: italic 900 14px var(--font-head); letter-spacing: 0.02em; }
#ages .ac-axis { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
#ages .ac-tick { fill: none; stroke: var(--ink); stroke-width: 1.6; }
#ages .ac-tick--major { stroke-width: 2.4; }
#ages .ac-label { fill: var(--ink); font: 700 14px var(--font-mono); }
#ages .ac-note { fill: var(--ink); font: italic 800 14px var(--font-head); }
#ages .ac-call { fill: var(--ink); font: italic 400 19px var(--font-display); }
#ages .age-pump__lead { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 2 4; stroke-linecap: round; }
#ages .age-call__lead { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
#ages .age-call__end { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
#ages .age-pump__mark { fill: var(--paper); stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 5 3; stroke-linejoin: round; }
#ages .age-dot { cursor: pointer; outline: none; }
#ages .age-dot__hit { fill: transparent; stroke: none; }
#ages .age-dot__sel { fill: none; stroke: none; stroke-width: 3.4; }
#ages .age-dot.is-selected .age-dot__sel { stroke: var(--pink); }
#ages .age-dot__mark { stroke: var(--ink); stroke-width: 2.4; }
#ages .ad--ansem { fill: var(--paper); stroke-width: 4.2; }
#ages .ad--in { fill: var(--pink); }
#ages .ad--later { fill: var(--soft); }
#ages .age-dot:focus-visible .age-dot__sel { stroke: var(--line); }

#ages .age-readout { display: grid; gap: 8px; min-height: 52px; padding: 10px 14px; border: 2.5px dashed var(--ink); border-radius: 12px; background: var(--paper); }
#ages .age-readout__hint { align-self: center; font: italic 800 14px/1.3 var(--font-head); color: var(--muted); }
#ages .age-readout__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
#ages .age-readout__date { font: 700 14px/1.2 var(--font-mono); }
#ages .age-tag { font: italic 800 13px/1 var(--font-head); color: var(--muted); }
#ages .age-callouts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
#ages .age-callouts li { position: relative; margin: 0; padding: 10px 14px 10px 40px; border: 2px solid var(--ink); background: var(--board); font: italic 800 15.5px/1.45 var(--font-head); }
#ages .age-callouts li::before { content: ""; position: absolute; left: 11px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); box-shadow: 7px 0 0 -2px var(--paper), 7px 0 0 0 var(--ink); }
#ages .age-callouts li[data-callout="3"]::before { left: 12px; top: 13px; width: 18px; height: 16px; border-radius: 2px; border-style: dashed; border-color: var(--line); background: var(--wash); box-shadow: none; }
#ages .age-wnote { margin-top: 12px; font: 500 13.5px/1.45 var(--font-body); color: var(--muted); }

/* Exhibit D */
#ages .age-table td, #ages .age-table th { vertical-align: middle; }
#ages .age-table th:first-child, #ages .age-table td:first-child { width: 64px; padding-right: 4px; }
#ages .age-table td:nth-child(n + 4) { text-align: right; font-variant-numeric: tabular-nums; }
#ages .age-table th:nth-child(n + 4) { text-align: right; }
#ages .age-table [data-first] { font: 500 14px/1.2 var(--font-mono); white-space: nowrap; }
#ages .age-table td:nth-child(2) { white-space: nowrap; }
#ages .age-table .proof__label.mono { overflow-wrap: normal; white-space: nowrap; }
#ages .age-pick {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 44px; margin: 0; padding: 0 8px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 2px 3px 0 var(--soft);
  font: 700 12.5px/1 var(--font-mono); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#ages .age-pick:hover { background: var(--board); }
#ages .age-pick[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: 2px 3px 0 var(--pink); }
#ages .age-pick[aria-pressed="true"] .age-glyph { border-color: var(--on-ink); }
#ages .age-table tr.is-selected { background: var(--tone); }
#ages .age-table tr.is-selected > :first-child { box-shadow: inset 6px 0 0 var(--pink); }
#ages .age-note { margin-top: 6px; font: 500 13.5px/1.45 var(--font-body); color: var(--muted); }

#ages .age-verdict { margin-top: clamp(34px, 5vw, 54px); display: flex; flex-wrap: wrap; align-items: center; gap: 22px 26px; }

/* the glossary's help buttons get the full 44px tap target (the component draws 42px) */
#read .gl sakuga-tooltip::part(button) { width: 44px; height: 44px; }

/* the short answer, right under the question */
#case .cover__answer { max-width: 42em; margin: 14px 0 0; padding: 12px 14px; border: 2.5px solid var(--ink); border-left-width: 7px; background: var(--paper); font: 500 15.5px/1.55 var(--font-body); }
#case .cover__answer strong { font-weight: 800; }
