/* Search any verified license: a TrustFinance future history by Peter Bu. Everything after 2026 is imagined.
   Poppins only (local SIL OFL copies, fonts/FONTS.md). Colors from the logo files and the B2B tokens.
   Every ground is ink; the cover is Trust Blue. Solid means it happened, dashes mean it might. */

@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Black.ttf') format('truetype'); font-weight: 900; font-display: block; }

:root {
  --ink: #1c1c2e; --white: #ffffff; --faint: #9aa0b4;
  --trust: #006bf1; --deep: #0038db; --mark: #175df1; --sky: #69adff; --sky-end: #6cb1ff; --tint: #e6f1ff;
  --glass: rgba(255,255,255,.05); --edge: rgba(255,255,255,.16); --ghost: rgba(255,255,255,.7);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --g: #1c1c2e;
}
html, body { margin: 0; height: 100%; background: #1c1c2e; overflow: hidden; }
body { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }

#deck {
  position: fixed; inset: 0; background: var(--g); overflow: hidden; transition: background-color .4s var(--ease);
  font-family: 'Poppins', Arial, sans-serif; color: var(--fg); cursor: default;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  --fg: #ffffff; --sub: rgba(255,255,255,.8); --soft: #9aa0b4; --rc: rgba(255,255,255,.55); --lab: rgba(255,255,255,.7);
}
#deck.gnow, #deck.gnow #ground { transition: none !important; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; contain: layout paint; }
#ground { position: absolute; inset: 0; background: var(--g); transition: background-color .4s var(--ease); }
#gl, #fx { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; pointer-events: none; }
#slides { position: absolute; inset: 0; z-index: 1; }

/* ---------- slides and transitions */
.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.slide.active { visibility: visible; opacity: 1; }
.slide.leaving { visibility: visible; }
#slides[data-trans="scroll"] .slide.active { animation: scrollIn .4s var(--ease) both; }
#slides[data-trans="scroll"] .slide.leaving { animation: scrollOut .4s var(--ease) both; }
#slides[data-trans="cross"] .slide.active { animation: fadeIn .4s var(--ease) both; }
#slides[data-trans="cross"] .slide.leaving,
#slides[data-trans="flood"] .slide.leaving,
#slides[data-trans="land"] .slide.leaving,
#slides[data-trans="tip"] .slide.leaving,
#slides[data-trans="seam"] .slide.leaving { animation: fadeOut .4s var(--ease) both; }
/* world-owned arrivals (WOW2 F7): the world moves the camera, the copy reveals keep their delays */
#slides[data-trans="through"] .slide.leaving,
#slides[data-trans="crack"] .slide.leaving,
#slides[data-trans="lie"] .slide.leaving { animation: fadeOut .25s var(--ease) both; }
@keyframes scrollIn { from { translate: 0 140px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes scrollOut { from { translate: 0 0; opacity: 1; } to { translate: 0 -140px; opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
#slides.inst .slide, #slides.inst .slide * { animation: none !important; transition: none !important; }
.slide.leaving:not(.keep) { pointer-events: none; }

/* ---------- lines: positioned by their vertical centre */
.ln { position: absolute; left: 160px; right: 160px; top: var(--y); margin: 0; text-align: center; transform: translateY(-50%); white-space: nowrap; }
.ln.l { left: var(--x, 160px); right: auto; text-align: left; }
.ln.r { left: auto; right: calc(1920px - var(--x, 1760px)); text-align: right; }
.ln.nl { font-size: 0; line-height: 0; }
.ln.wrap { white-space: normal; }
.rv { opacity: 0; translate: 0 16px; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.rv.fast { transition-duration: .25s; }
/* S01: the total slams in out of silence (opacity in one frame, scale on the brand curve) */
.rv.slam { translate: none; scale: 1.32; transition: opacity .05s linear, scale .2s var(--ease); }
.rv.slam.on { scale: 1; }
.reduced .rv.slam, .still .rv.slam.on { scale: 1; }
.rv.on { opacity: 1; translate: 0 0; }
.rv.on.off, .rv.on.out { opacity: 0; translate: 0 -12px; transition-duration: .25s; transition-delay: 0s !important; }
.reduced .rv { translate: none; transition-duration: .2s !important; transition-delay: 0s !important; }
.still .rv, .still .slide { transition: none !important; animation: none !important; }

/* ---------- type roles */
.date { font: 500 28px/1.2 'Poppins'; color: var(--soft); }
.word { font: 700 150px/1.2 'Poppins'; letter-spacing: -0.04em; color: var(--fg); }
.word.w110 { font-size: 110px; } .word.w200 { font-size: 200px; letter-spacing: -0.045em; } .word.w96 { font-size: 96px; } .word.w120 { font-size: 120px; } .word.w100 { font-size: 100px; }
.word .gap { display: inline-block; width: 1em; }
.line { font: 700 64px/1.2 'Poppins'; letter-spacing: -0.02em; color: var(--fg); }
.line.w6 { font-weight: 600; }
.line.big { font-size: 84px; }
.line.big100 { font-size: 100px; letter-spacing: -0.03em; }
.line.l52 { font-weight: 600; font-size: 52px; line-height: 1.25; letter-spacing: -0.01em; }
.line.l48 { font-size: 48px; letter-spacing: -0.01em; }
.line.l60 { font-size: 60px; }
.sub { font: 400 38px/1.3 'Poppins'; color: var(--sub); }
.sub.s34 { font-size: 34px; } .sub.s32 { font-size: 32px; } .sub.s30 { font-size: 30px; }
.sub.solid { color: #ffffff; }
.quote { font: 600 48px/1.25 'Poppins'; color: var(--fg); }
.quote.q52 { font-size: 52px; } .quote.q64 { font-size: 64px; line-height: 1.2; letter-spacing: -0.01em; } .quote.q46 { font-size: 46px; } .quote.q34 { font-weight: 400; font-size: 34px; color: var(--sub); }
.micro { font: 400 22px/1.3 'Poppins'; color: var(--soft); }
.receipt { font: 500 16px/1.3 'Poppins'; letter-spacing: .02em; color: var(--rc); }
.era { font: 500 30px/1.2 'Poppins'; color: var(--faint); }
.disclaimer { font: 400 18px/1.3 'Poppins'; color: var(--sub); }
.meta { font: 500 16px/1.2 'Poppins'; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.onblue.sub { color: rgba(255,255,255,.85); }
.onblue.micro { color: rgba(255,255,255,.7); }
.onblue.disclaimer { color: rgba(255,255,255,.85); }
/* S01: the day's clock under the count; both ride the frame bottom right until the cut */
.clock { font: 500 24px/1.2 'Poppins'; color: rgba(255,255,255,.5); opacity: 0; font-variant-numeric: tabular-nums; }
.count01 { opacity: 0; font-size: 0; line-height: 0; }
.foot { font: 500 18px/1.2 'Poppins'; color: var(--faint); }
.lab24 { font: 500 24px/1.2 'Poppins'; color: var(--faint); }
.llab { font: 500 32px/1.2 'Poppins'; color: var(--lab); }
.brought { font: 500 24px/1.2 'Poppins'; color: #ffffff; }
.brought .seal { margin-right: 12px; vertical-align: 0.02em; }
.cta { font: 600 30px/1.2 'Poppins'; letter-spacing: .01em; color: #ffffff; }
.linkline { font: 600 18px/1.2 'Poppins'; }
.linkline a { color: var(--sky); text-decoration: none; padding: 8px 4px; cursor: pointer; pointer-events: auto; }
.linkline a:hover { text-decoration: underline; text-underline-offset: 5px; }
.linkline a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.word2.ln { display: flex; justify-content: center; align-items: center; gap: 26px; font-size: 0; line-height: 0; }

/* numerals in fixed cells (js/num.js) */
svg.num { display: inline-block; vertical-align: top; overflow: visible; }
svg.num text { font-family: 'Poppins'; }
svg.num.fg { fill: var(--fg); }
/* an imagined hero number (96 px and up) sits on a dashed baseline rule: dash 10, gap 6, white 70% (STORY3 section 2).
   --gb: the rule's distance above the line box's bottom, under the commas' tails */
.ln.gl::after, span.gl::after { content: ''; position: absolute; left: 0; right: 0; bottom: var(--gb, 5px); height: 1.5px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 10px, transparent 10px 16px); pointer-events: none; }
span.gl { position: relative; display: inline-block; }
.word span.gl svg.num { vertical-align: -0.25em; }

/* the seal, the mark's own diamond, as the tick */
.seal { display: inline-block; width: 12px; height: 12px; position: relative; }
.seal::before { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--mark); }
.seal.h::before { background: none; }
.seal.h::after { content: ''; position: absolute; inset: 0; background: var(--faint);
  clip-path: polygon(evenodd, 50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0, 50% 18%, 18% 50%, 50% 82%, 82% 50%, 50% 18%); }
.seal.s12 { width: 12px; height: 12px; } .seal.s14 { width: 14px; height: 14px; } .seal.s28 { width: 28px; height: 28px; }

/* ---------- the search field (js/search.js): fill is the present, solid is real, dashed is imagined */
.sbar { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h);
  box-sizing: border-box; border-radius: calc(var(--h) / 2); padding: 0 calc(var(--h) * 0.5); display: flex; align-items: center; }
.sbar[data-sbar] { opacity: 0; }
.sbar.fill { background: #ffffff; color: var(--ink); box-shadow: 0 8px 14px rgba(0,56,219,.42); }
#deck[data-slide="carried-forward"] .sbar.fill { box-shadow: 0 0 60px rgba(0,107,241,.35); }
.sbar.solid { border: 1.5px solid #ffffff; color: #ffffff; }
.sbar.dashed { color: var(--ghost); }
.sbar .q { position: relative; margin: 0; white-space: nowrap; }
.sbar .q .ch { opacity: 0; }
.sbar .q .ch.on { opacity: 1; }
.sbar .title { font: 600 92px/1.2 'Poppins'; letter-spacing: -0.02em; color: var(--ink); }
.sbar .caret { position: absolute; left: 0; top: 50%; width: 3px; height: calc(var(--h) * 0.46); margin-top: calc(var(--h) * -0.23); background: var(--trust); opacity: 0; }
.sbar.solid .caret, .sbar.dashed .caret { background: #ffffff; }
.sbar .caret.solid { opacity: 1; }
.sbar .caret.blink { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
.still .sbar .caret.blink, .reduced .sbar .caret.blink { animation: none; opacity: 1; }
.sbar .slot { position: absolute; right: calc(var(--h) * 0.37 - 16px); top: 50%; translate: 0 -50%; display: block; }
.dedge { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }

/* glass: cards and result rows */
.glass { box-sizing: border-box; background: var(--glass); border: 1px solid var(--edge); border-radius: 12px; }
.glass.dashed { border-color: transparent; }
.rline { display: inline-block; white-space: nowrap; font-size: 0; line-height: 0; }
.rline svg { display: inline-block; vertical-align: top; }
.rline svg:not(.num) { overflow: visible; }
.rline17 { font-size: 0; line-height: 0; }

/* result rows (S08, S09): a seal slot, a label, a drawn value */
.rrows, .rows08, .rows09 { position: absolute; }
.rrow { position: absolute; left: 0; width: 100%; display: flex; align-items: center; padding: 0 24px 0 12px; gap: 10px; }
.rrow .slot { position: static; flex: none; translate: none; }
.rrow .lb { flex: none; width: 250px; font: 500 26px/1 'Poppins'; color: #ffffff; }
.rrow .il { display: flex; align-items: center; gap: 12px; }
.rrow .il .bar { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); }
.rrow .il .dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.rrow .il svg { display: block; margin-right: -6px; }
.rrow .il svg + .bar { margin-left: 14px; }

/* the review card: a slot, five stars, bars where the words would be */
.rcard { position: absolute; left: 0; top: 0; transform-origin: 100% 50%; }
.rcard .pl { position: absolute; left: 24px; top: 16px; margin: 0; font: 500 20px/1.2 'Poppins'; color: var(--faint); }
.rcard .st { position: absolute; left: 24px; top: 50px; display: flex; }
.rcard .st svg { display: block; }
.rcard .bars { position: absolute; left: 24px; top: 92px; display: grid; gap: 9px; }
.rcard .bars i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transform-origin: 0 50%; }
.rcard.np .st { top: 30px; }
.rcard.np .bars { top: 84px; }
.rcard .sl { position: absolute; top: 50%; translate: 0 -50%; }
.rcard.c05 { background: rgba(28,28,46,.94); }
.rcard.c05 .st { left: 34px; top: 30px; }
.rcard.c05 .bars { left: 34px; top: 82px; gap: 11px; }
.card05, .cards15 { position: absolute; inset: 0; }
.cards15 .rcard { background: rgba(28,28,46,.72); }

/* ---------- the tally (js/tally.js) */
#tally { position: absolute; right: 160px; top: 112px; z-index: 3; text-align: right; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
#tally.show { opacity: 1; }
#tally .tr { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 48px; }
#tally .tl { margin: 0; height: 15px; margin-top: 4px; font: 500 15px/15px 'Poppins'; color: var(--faint); white-space: nowrap; transition: opacity .25s var(--ease); }
#tally .tl s { text-decoration: none; position: relative; }
#tally .tl s::after { content: ''; position: absolute; left: -1px; right: -1px; top: 55%; height: 1px; background: #ffffff; transform-origin: 0 50%; animation: strike .15s var(--ease) both; }
#tally .tl .ins { display: inline-block; animation: insIn .25s var(--ease) both; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes insIn { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
.still #tally .tl s::after, .still #tally .tl .ins, .reduced #tally .tl s::after, .reduced #tally .tl .ins { animation: none; }
#tally .dots { display: grid; grid-template-columns: repeat(4, 3px); grid-auto-rows: 3px; gap: 6px; padding: 0 2px; }
#tally .dots i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
#tally.frozen { opacity: .5; }
#tallyHero { position: absolute; left: 0; top: 0; z-index: 3; display: none; transform-origin: 0 0; pointer-events: none; }
#tallyHero.show { display: flex; align-items: center; gap: 0; }
/* while the pilot is docked, it is the counter's seal (WOW2 F1) */
#tally.piloted .tr > span:first-child, #tallyHero.piloted > span:first-child { visibility: hidden; }

/* ---------- the pilot: the seal as the deck's travelling check (js/pilot.js) */
#pilot { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transform-origin: 0 0; will-change: transform; display: none; }
#pilot.show { display: block; }
#pilot svg { display: block; overflow: visible; }

/* ---------- the stamp: every imagined frame carries it */
#stamp { position: absolute; left: 160px; top: 82px; margin: 0; display: none; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px dashed rgba(255,255,255,.35); border-radius: 4px; font: 600 14px/1 'Poppins'; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); z-index: 3; }
#stamp .hs { width: 8px; height: 8px; position: relative; display: inline-block; }
#stamp .hs::after { content: ''; position: absolute; inset: 0; background: #9aa0b4;
  clip-path: polygon(evenodd, 50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0, 50% 22%, 22% 50%, 50% 78%, 78% 50%, 50% 22%); }
#deck[data-slide="title"] #stamp .hs::after { background: rgba(255,255,255,.8); }
#deck[data-stamp="on"] #stamp { display: inline-flex; animation: press .15s var(--ease) both; }
#deck.still[data-stamp="on"] #stamp, #deck.reduced[data-stamp="on"] #stamp { animation: none; }
@keyframes press { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
#embedNote { display: none; position: absolute; left: 40px; bottom: 30px; margin: 0; font: 400 16px/1.45 'Poppins'; color: var(--sub); z-index: 3; }
/* embedded, the footer sits on a small plate of ink, so it reads over rails, planks and rows */
#deck.embed #embedNote { display: block; font-size: 24px; left: 34px; bottom: 26px; padding: 8px 14px; border-radius: 8px; background: rgba(28,28,46,.82); }
/* embedded at 1280 by 720 the stage is two thirds size: the footer, the stamp, receipts and labels stay legible */
#deck.embed #stamp { font-size: 20px; padding: 8px 16px; gap: 10px; }
#deck.embed #stamp .hs { width: 11px; height: 11px; }
#deck.embed .receipt { font-size: 21px; }
#deck.embed #tally .tl { font-size: 20px; height: 20px; line-height: 20px; }
#deck.embed .slide .disclaimer { visibility: hidden; }
#deck[data-slide="title"] #embedNote { color: rgba(255,255,255,.85); background: none; }
/* embedded, the lowest lines step up, clear of the footer */
#deck.embed .slide[data-id="math"] .receipt, #deck.embed .slide[data-id="trustmark"] .receipt[data-step="1"] { --y: 960px !important; }
#deck.embed .slide[data-id="one-scale"] .sub[data-step="1"] { --y: 968px !important; }
#deck.embed .slide[data-id="one-scale"] .receipt { --y: 964px !important; }

/* ---------- S04 ledger */
.ledger4 { position: absolute; inset: 0; }
.ledger4 .seal { position: absolute; width: 14px; height: 14px; left: 1113px; margin-top: -7px; opacity: 0; scale: .6; transition: opacity .15s var(--ease), scale .15s var(--ease); }
.ledger4 .seal.on { opacity: 1; scale: 1; }

/* ---------- S06 the lattice and the rail */
.scale06 { position: absolute; inset: 0; }
.scale06 svg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; }

/* ---------- S08 the fallback without WebGL: a blind deboss on a dark surface, then the foil */
.deboss { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-50%) perspective(1500px) rotateX(var(--rx, 0deg)); transform-origin: 50% 62%; height: 140px; --k: -0.3; transition: opacity .25s var(--ease); }
.deboss .db { position: absolute; inset: 0; margin: 0; text-align: center; white-space: nowrap; font: 600 110px/140px 'Poppins'; letter-spacing: -0.02em; color: var(--ink); }
.deboss .base { text-shadow: -1px -1px 0 rgba(0,0,0,.35), 1px 1px 0 rgba(255,255,255,.10);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--k) * 100% - 10%), transparent calc(var(--k) * 100% + 4%));
          mask-image: linear-gradient(90deg, #000 calc(var(--k) * 100% - 10%), transparent calc(var(--k) * 100% + 4%)); }
/* behind the light the pressed letters take the foil: the line goes on the record, fully readable */
.deboss .ink { color: #ffffff; text-shadow: 1px 1px 0 rgba(0,0,0,.35);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--k) * 100% - 16%), transparent calc(var(--k) * 100% - 4%));
          mask-image: linear-gradient(90deg, #000 calc(var(--k) * 100% - 16%), transparent calc(var(--k) * 100% - 4%)); }
.deboss .lit { color: var(--sky); text-shadow: -2px -2px 0 rgba(0,0,0,.4), 2px 2px 0 rgba(255,255,255,.2);
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--k) * 100% - 30%), #000 calc(var(--k) * 100%), transparent calc(var(--k) * 100% + 30%));
          mask-image: linear-gradient(90deg, transparent calc(var(--k) * 100% - 30%), #000 calc(var(--k) * 100%), transparent calc(var(--k) * 100% + 30%)); }

/* ---------- S10 rows, S11 table, S12 mark, S13 sheet, S17 line */
.rows10, .line16, .rule11, .mark12, .sheet13 { position: absolute; inset: 0; }
.rows10 svg, .line16 svg, .rule11 svg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; }
.lead12 { position: absolute; left: 1036px; top: 540px; width: 1px; height: 86px; background: rgba(255,255,255,.3); }
/* S16: the search field the mark lands in (2027): a dashed pill, 1200 px wide */
.field15 { position: absolute; left: 360px; top: 395px; width: 1200px; height: 150px; box-sizing: border-box; border-radius: 75px; opacity: 0; pointer-events: none; }
.field15 .fl { position: absolute; left: 60px; right: 60px; top: -40px; margin: 0; display: flex; justify-content: space-between; font: 500 20px/1.2 'Poppins'; color: var(--faint); }
.sheet13 .guil13 { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.sheet13 .mp13 { font: 500 9px 'Poppins'; letter-spacing: .12em; fill: #ffffff; fill-opacity: .55; }
/* S13: type set on top of the engraving, with a breath of ink round the letters */
.overprint { text-shadow: 0 0 22px #1c1c2e, 0 0 10px #1c1c2e, 0 0 4px #1c1c2e, 0 0 2px #1c1c2e; }
.table11 { position: absolute; inset: 0; transition: opacity .25s var(--ease); }
.table11 .thd { font: 500 22px/1.2 'Poppins'; color: var(--faint); }
.table11 .trl { font: 500 24px/1.2 'Poppins'; color: var(--faint); }
.table11 .tv { opacity: 0; translate: 0 10px; transition: opacity .25s var(--ease), translate .25s var(--ease); }
.table11 .tv.on { opacity: 1; translate: 0 0; }
.table11 .seal { position: absolute; width: 12px; height: 12px; margin-top: -6px; opacity: 0; scale: .6; transition: opacity .15s var(--ease), scale .15s var(--ease); }
.table11 .seal.on { opacity: 1; scale: 1; }
.mark12 svg { position: absolute; }
/* S13: two result cards (the four returns) and the minis of the ring; dashed glass, because 2030 is imagined */
.sheet13 .card { position: absolute; left: 0; top: 0; border-radius: 12px; transform-origin: 0 0; background: rgba(255,255,255,.04); }
.sheet13 .card .hd { position: absolute; left: 30px; top: 24px; margin: 0; font: 500 24px/1.2 'Poppins'; color: var(--faint); }
.sheet13 .card .qy { position: absolute; left: 30px; top: 62px; margin: 0; font: 500 26px/1.2 'Poppins'; color: var(--ghost); }
.sheet13 .card .cr { position: absolute; left: 14px; margin: 0; display: flex; align-items: center; gap: 0; font: 500 22px/1 'Poppins'; }
.sheet13 .card .cr .slot { position: static; translate: none; flex: none; }
.sheet13 .card .cr .k { width: 132px; color: var(--faint); }
.sheet13 .card .cr .v { color: rgba(255,255,255,.85); }
.sheet13 .card .rv2 { position: absolute; left: 30px; top: 248px; margin: 0; display: flex; align-items: center; gap: 16px; font-size: 0; line-height: 0; }
.sheet13 .card .rv2 .cn { font: 500 24px/1 'Poppins'; color: var(--ghost); }
.sheet13 .card .tsl { position: absolute; right: 34px; top: 222px; margin: 0; font: 500 20px/1 'Poppins'; color: var(--faint); }
.sheet13 .card .sc { position: absolute; right: 26px; top: 238px; }
.sheet13 .join { position: absolute; height: 1.5px; background: var(--trust); transform-origin: 0 50%; }
.sheet13 .rcard { z-index: 1; }

/* ---------- S18 gauge and readout */
.gauge { font-size: 0; line-height: 0; transform-origin: 50% 50%; }
.gauge svg.num { vertical-align: middle; }
.gauge .glab { display: inline-block; vertical-align: middle; margin-left: 18px; font: 500 22px/1.2 'Poppins'; color: var(--faint); }
.gauge .gdots { display: none; vertical-align: middle; width: 104px; height: 86px; align-items: center; justify-content: flex-end; gap: 14px; }
.gauge .gdots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.gauge.empty svg.num { display: none; }
.gauge.empty .gdots { display: inline-flex; }
.readout { opacity: 0; transition: opacity .25s var(--ease); }
.readout.show { opacity: 1; }
.readout.r1 { font: 500 32px/1.2 'Poppins'; color: var(--fg); }
.readout.r2 { font-size: 0; line-height: 0; }
.readout.r3 { font: 500 22px/1.2 'Poppins'; color: var(--faint); }
#deck[data-slide="switch-off"]:not(.embed):not(.still) { cursor: grab; touch-action: none; -webkit-touch-callout: none; }
/* the hold ring follows the pointer while it is held */
#holdRing { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .15s var(--ease); }
#holdRing.show { opacity: 1; }
#holdRing svg { display: block; overflow: visible; }
#deck.holding { cursor: grabbing !important; }

/* ---------- chrome outside the stage */
#hud { position: fixed; right: 40px; bottom: 26px; font: 500 13px/1 'Poppins', sans-serif; color: var(--faint); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; z-index: 10; }
#hud.show { opacity: 1; }
#deck.embed #hud, #deck.still #hud { display: none; }
#msg { position: fixed; left: 50%; top: 24px; translate: -50% 0; font: 500 13px 'Poppins', sans-serif; color: #e7e8ec;
  padding: 8px 14px; border-radius: 6px; background: rgba(154,160,180,.18); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 10; }
#msg.show { opacity: 1; }
#helpline { position: fixed; left: 0; right: 0; bottom: 44px; margin: 0; text-align: center; font: 400 14px 'Poppins', sans-serif;
  color: var(--faint); opacity: 0; transition: opacity .8s ease; pointer-events: none; z-index: 10; }
#helpline.show { opacity: 1; }
#hint { display: none; position: fixed; left: 0; right: 0; bottom: 18%; text-align: center; font: 500 15px 'Poppins', sans-serif; color: var(--faint); z-index: 10; }
#hint.show { display: block; }
#notes { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 92vw); box-sizing: border-box; padding: 28px 28px 40px;
  background: rgba(20,20,34,.97); color: #e7e8ec; font: 400 14px/1.55 'Poppins', sans-serif; overflow: auto;
  translate: 100% 0; transition: translate .4s var(--ease); z-index: 20; user-select: text; -webkit-user-select: text; }
#notes.show { translate: 0 0; }
#notes .nh { font: 500 12px/1 'Poppins'; letter-spacing: .14em; text-transform: uppercase; color: #9aa0b4; margin: 0 0 14px; }
#notes .nt { font-weight: 600; font-size: 17px; margin: 0 0 10px; }
#notes .nb { margin: 0; color: #e7e8ec; word-break: break-word; white-space: pre-wrap; }
#help { position: fixed; left: 50%; top: 50%; translate: -50% -50%; padding: 26px 32px; border-radius: 12px; z-index: 21;
  background: rgba(20,20,34,.97); color: #e7e8ec; font: 400 15px/1.5 'Poppins', sans-serif; opacity: 0; pointer-events: none; transition: opacity .25s; }
#help.show { opacity: 1; pointer-events: auto; }
#help .hh { margin: 0 0 12px; font: 500 12px/1 'Poppins'; letter-spacing: .14em; text-transform: uppercase; color: #9aa0b4; }
#help dl { display: grid; grid-template-columns: auto auto; gap: 6px 26px; margin: 0; }
#help dt { color: #9aa0b4; } #help dd { margin: 0; }
#deck.embed #helpline, #deck.embed #notes, #deck.embed #help, #deck.still #helpline { display: none; }
.slide .notes { display: none; }
#deck.still, #deck.still #ground { transition: none !important; }
/* a still is a finished frame: nothing in it is mid transition */
#deck.still *, #deck.still *::before, #deck.still *::after { transition: none !important; animation: none !important; }
