/* 03-final — plain sections. Every section is styled as an object of the room and
   is laid out with container queries so the same DOM also works inside a panel. */

/* ====================================================================== marquee
   Caution tape under the room. The tilt is on a band as wide as the viewport
   (plus a bleed), never on the long track: rotating the track would pivot it
   around its own far-away centre and push the visible part out of the box. */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 30px 0;
  background: #0b0b10;
}
.marquee__band {
  width: 108vw;
  margin-left: -4vw;
  overflow: hidden;
  rotate: -1.6deg;
  border-block: 4px solid #000;
  background: repeating-linear-gradient(-45deg, #ffcc00 0 22px, #141414 22px 44px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear -9s infinite;
}
.marquee__item {
  display: grid;
  align-content: center;
  flex: none;
  margin: 7px 8px;
  padding: 9px 18px 6px;
  border: 3px solid #000;
  border-radius: 8px;
  background: #111;
  color: #ffcc00;
  font: 400 clamp(19px, 0.6vw + 16px, 24px)/1 var(--ff-brand);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
/* the recurring lines stay in the PDF's English; other languages read them under */
.marquee__tr { margin-top: 5px; color: var(--paper); font: 600 14px/1.2 var(--ff-body); letter-spacing: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* ====================================================================== shell */
.sec {
  position: relative;
  padding: clamp(54px, 6.5vw, 96px) 16px;
  overflow-x: clip;
}
.sec__in {
  max-width: 1160px;
  margin: 0 auto;
  container: sec / inline-size;
}
.sec__head {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 50px);
}
.sec__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--amber);
  font: 400 22px/1 var(--ff-pixel);
  letter-spacing: 0.05em;
}
.sec__tag > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sec__num {
  flex: none;
  padding: 3px 7px 1px;
  border: 2px solid currentColor;
  border-radius: 6px;
}
.sec__title {
  margin: 0;
  color: #fff;
  font: 400 clamp(40px, 5vw, 72px)/0.92 var(--ff-display);
  letter-spacing: 0.015em;
  text-shadow: 4px 4px 0 #000, 0 0 36px rgba(252, 92, 4, 0.22);
}
.sec__lead {
  max-width: 62ch;
  margin: 0;
  color: #dcd4c4;
  font: 500 clamp(17px, 0.5vw + 14px, 20px)/1.5 var(--ff-body);
}
.sec__room {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  padding: 6px 14px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #1d1c23;
  color: var(--amber);
  font: 600 14px/1 var(--ff-body);
  box-shadow: 2px 2px 0 #000;
}
.sec__room:hover { background: #2a2930; color: #fff; }
.sec__room .ico { width: 18px; height: 18px; }
.sec__note { max-width: 62ch; margin: 0; color: var(--amber); font: 700 14px/1.45 var(--ff-body); }

/* "Act N": a line of his story quoted outside it opens the reader at that act. It
   takes the colour of its text; the hit area is 44 px tall. */
.act-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 11px 2px 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: 700 14px/1 var(--ff-body);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}
.act-link::after { content: ""; position: absolute; inset: -8px -2px; }
.act-link:hover { background: rgba(252, 92, 4, 0.18); }
/* the ring takes the link's colour too, which reads on its note, receipt or wall */
.act-link:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.act-link .ico { width: 16px; height: 16px; }
.sec__lead .act-link { color: var(--amber); }

/* page atmospheres: translucent tints over the one wall that runs down the
   page (html background), so the bulb's cone and dust (page.js) show through */
.sec--what { background: radial-gradient(900px 500px at 85% 20%, rgba(253, 137, 73, 0.07), transparent 70%); }
.sec--story { background: linear-gradient(180deg, transparent, rgba(40, 26, 12, 0.32) 25%, rgba(30, 20, 10, 0.32) 75%, transparent); }
.sec--bill { background: radial-gradient(1000px 600px at 15% 40%, rgba(255, 59, 59, 0.07), transparent 70%); }
.sec--rewards { background: linear-gradient(180deg, transparent 0%, rgba(13, 18, 48, 0.7) 25%, rgba(17, 26, 68, 0.7) 65%, transparent 100%); }
.sec--tok { background: radial-gradient(900px 500px at 30% 50%, rgba(200, 154, 91, 0.1), transparent 70%); }
.sec--buy { background: radial-gradient(1000px 600px at 50% 30%, rgba(60, 110, 255, 0.1), transparent 70%); }
.sec--roadmap { background: linear-gradient(180deg, transparent, rgba(40, 26, 12, 0.32) 40%, transparent); }
.sec--community { background: radial-gradient(900px 500px at 20% 30%, rgba(139, 255, 58, 0.07), transparent 70%); }
.sec--faq { background: linear-gradient(180deg, transparent, rgba(16, 13, 11, 0.55)); }

/* story: a header row, title left, the ways through it on the right; wide
   screens put the hook between them */
@container sec (min-width: 900px) {
  .sec__head--row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .sec__head--row > * { grid-column: 1; }
  .sec__head--row > .sec__links { grid-column: 2; grid-row: 1 / span 4; align-self: end; justify-content: flex-end; }
}
@container sec (min-width: 1100px) {
  .sec__head--row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 48px; row-gap: 10px; }
  .sec__head--row > .sec__title { grid-row: 2 / span 2; }
  .sec__head--row > .story-head__hook { grid-column: 2; grid-row: 1 / span 2; }
  .sec__head--row > .story-head__length { grid-column: 2; grid-row: 3; }
  .sec__head--row > .story-head__short { grid-column: 2; grid-row: 4; }
  .sec__head--row > .sec__links { grid-column: 3; grid-row: 1 / span 3; flex-direction: column; align-items: stretch; }
}

/* ====================================================================== 01 what */
.what { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
@container sec (min-width: 880px) {
  .what { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 48px; }
}
.what__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.what__main > .sec__head, .bill__left > .sec__head, .gear__left > .sec__head,
.roadmap > .sec__head, .community > .sec__head, .faq__side > .sec__head,
.sky__top > .sec__head, .os__body > .sec__head { margin-bottom: 0; }
.notes {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 14px 4px 0;
  list-style: none;
}
@container sec (min-width: 600px) {
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .note { min-height: 210px; }
}
.note {
  position: relative;
  padding: 28px 16px 34px;
  border: 2px solid #000;
  color: #191713;
  background: #ffe45c;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.35), 5px 5px 0 #000;
  transform: rotate(var(--r, -2deg));
}
.note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: calc(50% - 46px);
  width: 92px;
  height: 26px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.18);
  transform: rotate(-4deg);
}
.note--1 { --r: -2.4deg; }
.note--2 { --r: 1.6deg; background: #ffb3c7; }
.note--3 { --r: -1deg; background: #9dffb6; }
.note__big { margin: 0 0 10px; font: 400 clamp(22px, 1.2vw + 16px, 28px)/1.08 var(--ff-hand); overflow-wrap: anywhere; }
.note__small { margin: 0; font: 500 15px/1.42 var(--ff-body); overflow-wrap: anywhere; }
/* his line from the story (the closing quotes stay in the PDF's English, their
   translation under them), then its act */
.note__tr { margin: 4px 0 0; color: #3d362b; font: 400 15px/1.42 var(--ff-body); overflow-wrap: anywhere; }
.note__act { margin: 12px 0 0; }
.note__stamp {
  position: absolute;
  right: 12px;
  bottom: -16px;
  padding: 6px 10px 3px;
  border: 3px solid currentColor;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
  max-width: calc(100% - 24px);
  overflow-wrap: anywhere;
  color: #d11c1c;
  font: 400 22px/1 var(--ff-display);
  letter-spacing: 0.06em;
  transform: rotate(-9deg);
}
.note__stamp--win { color: #0b7a34; }
.what__side { display: grid; justify-items: center; }
.mascot {
  position: relative;
  margin: 0;
  width: min(100%, 300px);
}
.mascot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border: 4px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fd8b4c, #fc5c04 55%, #cd4a02);
  box-shadow: 0 0 0 8px #fff, 0 0 0 11px #000, 8px 10px 0 11px #000;
}
.bubble {
  position: relative;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font: 400 21px/1.1 var(--ff-display);
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 #000;
}
.bubble::before, .bubble::after {
  content: "";
  position: absolute;
  left: calc(50% - 14px);
  width: 28px;
  height: 18px;
  clip-path: polygon(30% 0, 100% 100%, 0 100%);
}
.bubble::before { top: -19px; background: #000; }
.bubble::after { top: -14px; left: calc(50% - 10px); width: 21px; height: 15px; background: #fff; }
/* the mascot says Act XIII's closing quote, in the PDF's English in every language (its
   translation under it), then its act */
.bubble__line { margin: 0; font-family: var(--ff-brand); }
.bubble__tr { margin: 6px 0 0; color: #3d362b; font: 400 15px/1.42 var(--ff-body); letter-spacing: 0; }
.bubble .act-link { margin-top: 10px; letter-spacing: 0; }
.what__card {
  padding: 18px 22px;
  border: 3px solid #000;
  border-radius: 16px;
  background: #1d1c23;
  box-shadow: 5px 5px 0 #000;
}
.what__explainer { margin: 0 0 12px; font: 400 clamp(17px, 0.4vw + 15px, 19px)/1.55 var(--ff-body); color: var(--paper); }
.what__explainer b { color: var(--btc); }
.what__notbtc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #ffd1d1;
  font: 700 15px/1.4 var(--ff-body);
}
.what__notbtc .ico { width: 22px; height: 22px; padding: 2px; border: 2px solid #000; border-radius: 6px; background: var(--red); color: #fff; stroke-width: 3.2; }

/* ====================================================================== 02 story
   His album: one whole act at a time in a cork frame (story.js), the chapter tabs
   on top of it, the red string with one pin per act under it. A page is a polaroid
   (the only tilted thing in the story) and one taped paper note: text sits only on
   paper. Without JavaScript the 27 pages stack in order. */
.sec--story { padding-block: clamp(28px, 2.8vw, 40px) clamp(20px, 2.8vw, 40px); }
.sec--story .sec__in { max-width: 1240px; }
.sec--story .sec__head { row-gap: 8px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.sec__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 0; }
.sec__links .sec__room { margin-top: 0; }
.sec__skip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px dashed rgba(244, 236, 216, 0.4);
  border-radius: 999px;
  color: var(--paper);
  font: 600 14px/1 var(--ff-body);
  text-decoration: none;
}
.sec__skip:hover { border-color: var(--amber); color: #fff; }
.sec__skip .ico { width: 18px; height: 18px; color: var(--amber); }

/* the head row: the PDF hook is the lead (its translation under it), then the length */
.story-head__hook p { margin: 0; }
.story-head__hook .story-head__tr { margin-top: 6px; color: var(--muted); font: 400 16px/1.5 var(--ff-body); }
.story-head__length { margin: 0; color: var(--amber); font: 700 14px/1.4 var(--ff-body); letter-spacing: 0.02em; }
/* the story in 30 seconds, folded under the length line */
.story-head__short { max-width: 62ch; }
.story-head__short summary {
  width: max-content;
  max-width: 100%;
  padding: 12px 2px;
  color: var(--paper);
  font: 700 15px/1.2 var(--ff-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.story-head__short summary::marker { color: var(--btc); }
.story-head__summary { margin: 4px 0 8px; color: var(--paper); font: 400 16px/1.6 var(--ff-body); }
.story-head__summary .page__mark { color: var(--muted); }
.story-head__rewards { margin: 0 0 4px; padding-left: 10px; border-left: 3px solid var(--btc); color: var(--muted); font: 700 14px/1.4 var(--ff-body); }

/* the translations under the lines that stay in the PDF's English (empty in English) */
[data-st-tr]:empty { display: none; }

.reader { position: relative; container: reader / inline-size; overflow-anchor: none; }

/* the chapter tabs: seven index cards tucked behind the top of the frame */
.tabs { display: none; }
.tabs__list {
  /* each card as wide as its name, so the names keep to one line where they can */
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 8px;
  margin: 0 18px -12px;
  padding: 0;
  list-style: none;
}
.tab {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 62px;
  padding: 8px 10px 24px;
  border: 2px solid #000;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fffdf5;
  color: #1b1712;
  text-align: left;
  transform: translateY(6px);
  transition: transform 0.2s var(--ease-pop), background-color 0.2s;
}
.tab:hover { transform: translateY(2px); }
/* its foot is tucked behind the frame, so the ring is a little thicker */
.tab:focus-visible { outline-width: 4px; }
.tab[aria-current="true"] { background: #ffd1b8; box-shadow: inset 0 4px 0 var(--btc); transform: translateY(-6px); }
.tab__name { font: 400 20px/1 var(--ff-display); letter-spacing: 0.02em; }
.tab__range { color: #973702; font: 700 14px/1 var(--ff-body); }

/* the cork frame */
.reader__frame {
  position: relative;
  padding: 16px;
  border: 12px solid #5a3a1f;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.14) 0 1.5px, transparent 2px) 0 0 / 11px 13px,
    radial-gradient(circle at 70% 60%, rgba(255, 230, 190, 0.18) 0 1.2px, transparent 1.8px) 0 0 / 9px 8px,
    radial-gradient(circle at 40% 80%, rgba(60, 30, 10, 0.2) 0 2px, transparent 2.6px) 0 0 / 17px 15px,
    linear-gradient(135deg, #c08f58, #a87842 50%, #b98a52);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 3px #000, inset 0 0 50px rgba(0, 0, 0, 0.35), 8px 8px 0 3px #000;
}
/* on the cork, the polaroid and the paper the focus ring is ink (amber is under 3:1 there) */
.reader__frame :focus-visible, .sheet :focus-visible { outline-color: #111; }

/* a page: the polaroid and the note, one column until the reader is wide */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 680px; margin-inline: auto; }
.js .page:not(.is-current) { display: none; }
html:not(.js) .page + .page { margin-top: 40px; }
.page__media { display: grid; justify-items: center; align-content: start; gap: 14px; min-width: 0; }

/* the polaroid: the act's pictures on a white frame (each at its own ratio), its
   numeral on the strip, one red pin */
.pol {
  --tilt: -1.2deg;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: 12px 12px 0;
  border: 2px solid #000;
  background: #fbf8f1;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt));
  touch-action: pan-y;
}
.page:nth-child(even) .pol { --tilt: 1deg; }
.pol__pin {
  position: absolute;
  top: -11px;
  left: calc(50% - 11px);
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 2px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9b9b, #c2261c 62%);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45);
}
.pol__pic { position: relative; overflow: hidden; border: 2px solid #000; background: #1c1b22; }
.pol__img { display: block; width: 100%; height: auto; }
.js .pol__pic > .pol__img:not(.is-on) { display: none; }
html:not(.js) .pol__pic > .pol__img + .pol__img { border-top: 2px solid #000; }
/* XX: the before / after pair, two squares side by side */
.pol__pic--pair { display: grid; grid-template-columns: 1fr 1fr; }
.pol__panel { position: relative; min-width: 0; }
.pol__panel + .pol__panel { border-left: 2px solid #000; }
.pol__tag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 4px 7px 3px;
  border: 2px solid #000;
  border-radius: 6px;
  background: var(--paper);
  color: #111;
  font: 700 14px/1 var(--ff-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* the first time a photo is shown it develops (story.js fades this out) */
.pol__veil { position: absolute; inset: 0; z-index: 1; background: #fffdf5; pointer-events: none; }
.pol__strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 8px 0; }
.pol__num { padding-left: 4px; color: #2a2620; font: 400 30px/1 var(--ff-marker); }
.pol__full {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid #000;
  border-radius: 10px;
  background: #1d1c23;
  color: var(--paper);
  font: 700 15px/1 var(--ff-body);
  box-shadow: 2px 2px 0 #000;
}
.pol__full:hover { background: #2a2930; }
.pol__full .ico { width: 18px; height: 18px; }

/* the act's other pictures: thumbnails that swap the big one */
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.thumb {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 2px solid #000;
  background: #1c1b22;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.5);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb__img--fit { object-fit: contain; }
.thumb__cap {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px 1px;
  border: 1.5px solid #000;
  border-radius: 5px;
  background: var(--paper);
  color: #111;
  font: 700 14px/1.1 var(--ff-body);
}
/* the one shown big: a white frame, like the polaroid it is in */
.thumb[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #000, 3px 4px 0 1px rgba(0, 0, 0, 0.5); }

/* the note: taped paper, not tilted */
.page__note {
  position: relative;
  min-width: 0;
  padding: 26px 18px 22px;
  border: 2px solid #000;
  background: var(--paper);
  color: #1b1712;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}
.page__note::before {
  /* a strip of tape */
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 40px);
  width: 80px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.55);
}
.page__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; margin-bottom: 14px; }
.page__kicker { grid-column: 1; margin: 0 0 6px; color: #a3201a; font: 700 14px/1.3 var(--ff-body); letter-spacing: 0.02em; }
.page__title { grid-column: 1; margin: 0; color: #111; font: 400 clamp(28px, 3.4vw + 15px, 34px)/1 var(--ff-display); letter-spacing: 0.015em; }
.page__title:focus-visible { outline-offset: 4px; }
.page__copy { grid-column: 2; grid-row: 1 / span 2; background: #fffdf5; color: #111; }
.page__copy:hover { background: #fff; }
.page__copy .ico { width: 20px; height: 20px; }
/* narration: 45 to 72 characters a line (46ch of Rubik is 526 px at 18 px) */
.page__text { max-width: 46ch; margin: 0 0 12px; font: 400 17px/1.6 var(--ff-body); }

/* the lines, each right after the sentence that sets it up */
.says { display: grid; gap: 6px; margin: 0 0 12px; }
.say { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.say--write, .say--narr { grid-template-columns: minmax(0, 1fr); }
.say__head { width: 40px; max-height: 52px; margin-top: 2px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.55)); }
/* the old RTC, in his head: the sad head, desaturated, in a dashed think bubble */
.say__head--old { filter: grayscale(1) drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.55)); opacity: 0.85; }
/* a named prop token for the people without a real head (an object, never a face) */
.say__token {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fffdf5;
  color: #1b1712;
}
.say__token .ico { width: 22px; height: 22px; }
.say__body { position: relative; min-width: 0; padding: 4px 12px 6px; border: 2px solid #1b1712; border-radius: 12px; background: #fff; }
.say--say .say__body::before {
  /* the bubble's tail, toward the speaker */
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #1b1712;
  border-bottom: 2px solid #1b1712;
  background: #fff;
  transform: rotate(45deg);
}
.say--think .say__body { border-style: dashed; border-radius: 20px; background: #eeebe6; }
.say__label { margin: 0; color: #4a3d2c; font: 700 14px/1.3 var(--ff-body); }
.say__cue { font-style: italic; font-weight: 500; }
.say__ch { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.say__text { margin: 0; color: #111; font: 500 16px/1.45 var(--ff-body); }
.say__aside { margin: 2px 0 0; color: #4a4033; font: italic 500 16px/1.45 var(--ff-body); }
.say__tr { margin: 2px 0 0; color: #4a4033; font: 400 16px/1.45 var(--ff-body); }
/* message cards: one component, the channel and the recipient in its label */
.say--write .say__body { border-radius: 10px; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22); }
/* a written line on the card of the one before (the three comments) */
.say:has(+ .say--more) .say__body { border-bottom: 1px dashed #b9ad97; border-radius: 10px 10px 0 0; box-shadow: none; }
.say--more { margin-top: -6px; }
.say--more .say__body { border-top: 0; border-radius: 0 0 10px 10px; }
.say--sms .say__body { background: #e3f6e7; }
.say--note .say__body { border-radius: 3px; background: #ffe98a; }
.say--plaque .say__body { border: 3px solid #2a1c00; border-radius: 6px; background: #dcb75e; }
.say--plaque .say__label, .say--plaque .say__tr { color: #3a2800; }
.say--plaque .say__text { color: #241800; font-weight: 700; letter-spacing: 0.03em; }
.say--notif .say__body, .say--meme .say__body, .say--slogan .say__body { border-color: #000; background: #1c1b22; }
.say--notif .say__label, .say--meme .say__label, .say--slogan .say__label { color: var(--amber); }
.say--notif .say__text, .say--meme .say__text, .say--slogan .say__text { color: #fff; }
.say--notif .say__tr, .say--meme .say__tr, .say--slogan .say__tr { color: #d8cfbd; }
.say--meme .say__text, .say--slogan .say__text { font-weight: 700; }
/* the shill group's twenty identical messages: one card, stacked */
.say--shill { padding: 0 8px 8px 0; }
.say--shill .say__body { box-shadow: 4px 4px 0 -2px #fff, 4px 4px 0 0 #1b1712, 8px 8px 0 -2px #fff, 8px 8px 0 0 #1b1712; }
/* told by the narration: no bubble, a rule and quotes */
.say--narr .say__body { padding: 2px 0 2px 14px; border: 0; border-left: 4px solid #c2261c; border-radius: 0; background: none; }
.say--narr .say__text { font-style: italic; }
.say--narr .say__text::before { content: open-quote; }
.say--narr .say__text::after { content: close-quote; }

.page__fiction { margin: 0 0 12px; padding: 10px 12px; border: 2px dashed #8a7a61; border-radius: 8px; color: #3a3226; font: 400 16px/1.5 var(--ff-body); }
/* the payoff of his story (Act XVII): its own paragraph, a touch bigger, highlighted like a marker on the paper */
.page__payoff {
  font-weight: 600;
  text-decoration: underline rgba(39, 240, 107, 0.45);
  text-decoration-thickness: 0.42em;
  text-underline-offset: -0.3em;
  text-decoration-skip-ink: none;
}
/* the rewards line, right under the sentence that says what holding RTC brought him (Acts XVII and XX), which
   carries its mark */
.page__mark { margin-left: 1px; color: #4a3d2c; font-size: max(14px, 0.8em); font-weight: 700; line-height: 0; }
.page__rewards { margin: -4px 0 12px; padding-left: 10px; border-left: 3px solid var(--btc); color: #4a3d2c; font: 700 14px/1.4 var(--ff-body); }

/* the closing quote on its own taped strip */
.page__quote {
  position: relative;
  margin: 20px -8px 0;
  padding: 14px 18px 12px;
  border: 2px solid #000;
  background: #fffaf0;
  color: #111;
  font: 400 clamp(20px, 5.6vw, 24px)/1.3 var(--ff-marker);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.page__quote::before, .page__quote::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 54px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.6);
}
.page__quote::before { left: 16px; }
.page__quote::after { right: 16px; }
.page__quote .red { color: #c2261c; }
.page__quote .green { color: #0b7a34; }
.page__quote .btc { color: #b54203; }
.page__quote-tr { margin: 10px 0 0; color: #3a3226; font: 400 16px/1.5 var(--ff-body); }
.page__bridge { margin: 16px 0 0; }
.page__bridge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #1d1c23;
  color: var(--paper);
  font: 700 16px/1.25 var(--ff-body);
  text-decoration: none;
  box-shadow: 2px 2px 0 #000;
}
.page__bridge a:hover { background: #2a2930; }

/* the end card, after the epilogue */
.end__bill { padding-top: 6px; }
.end__bill .frame__wood { transform: none; }
.end__note { min-width: 0; padding: 24px 22px; border: 2px solid #000; background: var(--paper); color: #1b1712; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55); }
.end__lines { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.end__lines li { padding-left: 14px; border-left: 4px solid var(--btc); }
.end__line { margin: 0; color: #111; font: 700 18px/1.4 var(--ff-body); }
.end__tr { margin: 2px 0 0; color: #4a4033; font: 400 16px/1.45 var(--ff-body); }
.end__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.end__fiction { margin: 0; color: #4a4033; font: 600 14px/1.5 var(--ff-body); }

/* the red string under the reader: one pin per act, the read ones filled, the
   current one larger and glowing; the red is drawn up to it (story.js) */
.string { margin-top: 14px; }
.string__track { position: relative; }
.string__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.string__guide { fill: none; stroke: rgba(224, 50, 42, 0.45); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.string__red { fill: none; stroke: #e0322a; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.5)); }
.string__pins { position: relative; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; margin: 0; padding: 0; list-style: none; }
.string__break { flex-basis: 100%; }
.string__pin {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
}
.string__head {
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #34323b;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-pop), background-color 0.3s, box-shadow 0.3s;
}
.string__num { font: 700 14px/1 var(--ff-body); letter-spacing: -0.02em; }
.string__pin:hover .string__head { transform: scale(1.2); }
.string__pin.is-read .string__head { background: #c2261c; }
.string__pin[aria-current="step"] { color: #fff; }
.string__pin[aria-current="step"] .string__head {
  background: #ff4d3d;
  box-shadow: 0 0 0 3px rgba(255, 77, 61, 0.35), 0 0 16px 4px rgba(255, 77, 61, 0.65);
  transform: scale(1.45);
}
.string__foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.string__step { width: 48px; height: 48px; }
.string__count { min-width: 10ch; margin: 0; color: var(--paper); font: 700 16px/1.2 var(--ff-body); text-align: center; }
.string__fiction { margin: 8px 0 0; color: var(--muted); font: 600 14px/1.45 var(--ff-body); text-align: center; }
[data-step][aria-disabled="true"] { opacity: 0.4; cursor: default; }

/* phones: the reader bar, stuck to the bottom of the viewport while the reader is
   on screen, and its chapter sheet */
.reader__bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 8px;
  height: 56px;
  margin: 14px -16px 0;
  padding: 0 8px;
  border-top: 3px solid #000;
  background: #1c1b22;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.4);
}
.reader__step { width: 48px; }
.reader__where {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #2a2930;
  color: var(--paper);
  font: 700 16px/1.2 var(--ff-body);
}
.reader__where .ico { width: 18px; height: 18px; color: var(--amber); }
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 82svh;
  margin: 0;
  padding: 0;
  border: 3px solid #000;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  color: #1b1712;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(6, 5, 9, 0.7); }
.sheet__in { padding: 0 16px 24px; }
.sheet__top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -16px 6px;
  padding: 10px 12px 10px 16px;
  border-bottom: 2px solid #000;
  background: var(--paper);
}
.sheet__title { margin: 0; font: 400 26px/1 var(--ff-display); letter-spacing: 0.02em; }
.sheet__name { margin: 16px 0 6px; font: 400 20px/1.1 var(--ff-display); letter-spacing: 0.02em; }
.sheet__range { color: #973702; font: 700 14px/1 var(--ff-body); letter-spacing: 0; }
.sheet__acts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sheet__act {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 6px 10px;
  border: 2px solid #000;
  border-radius: 10px;
  background: #fffdf5;
  color: #111;
  font: 500 16px/1.3 var(--ff-body);
  text-align: left;
}
.sheet__num { color: #973702; font: 700 14px/1 var(--ff-body); }
.sheet__act.is-read .sheet__num::after { content: " •"; color: #c2261c; }
.sheet__act[aria-current="true"] { background: var(--btc); }
.sheet__act[aria-current="true"] .sheet__num { color: #000; }

/* tablets and up: a little more room in the frame */
@container reader (min-width: 600px) {
  .reader__frame { padding: 20px; }
  .page__note { padding: 26px 26px 24px; }
  .say__text { font-size: 17px; }
}
/* the reader at full width: the tabs, the polaroid left (it stays in view while the
   note is read) and the note right */
@container reader (min-width: 940px) {
  .tabs { display: block; }
  .page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; max-width: none; }
  .page__media { position: sticky; top: calc(var(--topbar-h) + 22px); }
  /* the polaroid and its thumbnails stay whole under the header on short screens,
     and inside the dialog in full screen (100cqh: the dialog's body) */
  .pol { max-width: min(480px, calc(100svh - 240px)); }
  .reader.is-full .pol { max-width: min(480px, calc(100cqh - 180px)); }
  .page--end { align-items: center; }
  .page__note { padding: 26px 30px 26px; }
  .page__quote { margin-inline: -12px; padding: 16px 22px 14px; }
  .end__note { padding: 30px 30px 28px; }
}
/* the 27 pins fit on one line from about 1200 px; below, they break between chapters 3 and 4 */
@container reader (min-width: 1200px) {
  .string__break { display: none; }
}
/* the desktop type floor: titles 36 px and up, narration and lines 18 px, quotes 22 px and up */
@media (min-width: 1024px) {
  .page__title { font-size: clamp(36px, 2.8vw, 44px); }
  .page__text { font-size: 18px; }
  .page__payoff { font-size: 20px; }
  .say__text { font-size: 18px; }
  .page__quote { font-size: clamp(22px, 1.8vw, 28px); }
}
/* phones: the cork runs from edge to edge, the polaroid is not tilted, the bar and
   the sheet take over from the tabs and the pins */
@media (max-width: 767.98px) {
  .story-head .sec__links { gap: 8px; }
  .story-head :is(.sec__room, .sec__skip) { gap: 6px; padding-inline: 11px; }
  .reader__frame { margin-inline: -16px; padding: 12px 6px 14px; border-width: 8px 0; border-radius: 0; box-shadow: 0 0 0 2px #000, inset 0 0 40px rgba(0, 0, 0, 0.35); }
  .page { gap: 14px; }
  .page__media { gap: 12px; }
  .pol { max-width: none; padding: 10px 10px 0; transform: none; }
  .pol__strip { min-height: 54px; padding: 5px 0; }
  .page__note { padding: 20px 12px 16px; }
  .page__head { margin-bottom: 10px; }
  .page__text { margin-bottom: 10px; line-height: 1.5; }
  .says { margin-bottom: 10px; }
  .page__quote { margin-top: 16px; padding: 12px 16px 10px; }
  .string__track, .string__foot { display: none; }
  .string { margin-top: 10px; }
  .reader__bar { display: flex; margin-top: 10px; }
}
html:not(.js) :is(.tabs, .string__track, .string__foot, .reader__bar, .thumbs, .pol__full, .page__copy) { display: none; }

/* a placeholder while a story picture is being made (dev label, English only) */
.rtc-slot { position: relative; display: grid; place-items: end start; width: 100%; aspect-ratio: 1; background: #2a2118; }
.rtc-slot__label { padding: 8px 10px; background: rgba(0, 0, 0, 0.76); color: #f4ecd8; font: 500 14px/1.3 var(--ff-body); }
.thumb__todo { display: block; width: 100%; height: 100%; background: #2a2118; }

/* ====================================================================== 03 bill */
.bill { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.bill__left { display: grid; gap: 30px; align-content: start; min-width: 0; }
@container sec (min-width: 900px) {
  .bill { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 40px; }
  main .calc { position: sticky; top: calc(var(--topbar-h) + 22px); }
}
.invoice {
  position: relative;
  padding: 24px 22px 22px;
  border: 2px solid #000;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 28px),
    #f7f2e5;
  color: #1d1a16;
  box-shadow: 7px 7px 0 #000;
  transform: rotate(-1.1deg);
}
.invoice__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #8a8170;
}
.invoice__title { min-width: 0; margin: 0; font: 700 21px/1.15 var(--ff-mono); overflow-wrap: anywhere; }
.invoice__stamp {
  padding: 6px 10px 3px;
  border: 3px solid currentColor;
  border-radius: 6px;
  max-width: 100%;
  color: #d61f1f;
  font: 400 23px/1 var(--ff-display);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  transform: rotate(7deg);
}
.invoice__lines { margin: 10px 0 0; }
.invoice__lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted #b3a990;
  font: 400 14px/1.35 var(--ff-mono);
}
.invoice__lines dt { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.invoice__lines dd { max-width: 55%; margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.invoice__lines dd[data-bill-line] { white-space: nowrap; }
.invoice__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 2px;
  font: 700 16px/1.2 var(--ff-mono);
}
.invoice__total b {
  position: relative;
  padding: 4px 12px 0;
  color: #d61f1f;
  font: 400 clamp(38px, 4cqw, 50px)/1 var(--ff-display);
  letter-spacing: 0.02em;
}
.invoice__total b::after {
  content: "";
  position: absolute;
  inset: -9px -10px -7px -12px;
  border: 3px solid #d61f1f;
  border-radius: 50%;
  transform: rotate(-5deg);
}
.invoice__note { margin: 10px 0 18px; color: #5f574a; font: 400 12px/1.3 var(--ff-mono); }
.envelopes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.env {
  position: relative;
  display: grid;
  align-content: end;
  gap: 2px;
  min-height: 88px;
  padding: 26px 8px 8px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  overflow: hidden;
}
.env::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 46px;
  background: inherit;
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: brightness(0.92);
}
.env--blue { background: #9fc3ff; }
.env--yellow { background: #ffe08a; }
.env__name { position: relative; font: 700 14px/1.15 var(--ff-body); overflow-wrap: anywhere; hyphens: auto; }
.env__state {
  position: relative;
  justify-self: start;
  max-width: 100%;
  padding: 2px 6px 1px;
  overflow-wrap: anywhere;
  border: 2px solid #d61f1f;
  border-radius: 4px;
  color: #d61f1f;
  font: 400 15px/1 var(--ff-display);
  letter-spacing: 0.05em;
  transform: rotate(-4deg);
}
/* on a paper chip, which reads on any envelope */
.env__state--paid { border-color: #0b7a34; background: #f4ecd8; color: #0b7a34; }
.invoice__quote { margin: 0; font: 400 19px/1.25 var(--ff-hand); color: #2a2620; }
.invoice__quote::before { content: open-quote; }
.invoice__quote::after { content: close-quote; }
.invoice__tr { margin: 6px 0 0; color: #4a4033; font: 400 15px/1.45 var(--ff-body); }

.calc {
  position: relative;
  padding: 22px clamp(16px, 3cqw, 26px) 20px;
  border: 3px solid #000;
  border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 1.6px) 0 0 / 6px 6px,
    linear-gradient(180deg, #c4c0b8, #9a968e);
  color: #141210;
  box-shadow: 7px 7px 0 #000, inset 0 2px 0 rgba(255, 255, 255, 0.55);
}
.calc__title { margin: 0; font: 400 clamp(30px, 3.4cqw, 40px)/1 var(--ff-display); letter-spacing: 0.02em; }
.calc__lead { margin: 4px 0 16px; font: 600 15px/1.4 var(--ff-body); color: #2f2b25; }
.calc__lcd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
  padding: 16px 16px 14px;
  border: 3px solid #000;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 30%, #2b0707, #140303 75%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(255, 255, 255, 0.4);
}
.calc__cell { min-width: 0; }
.calc__cell--main { grid-column: 1 / -1; }
.calc__cap { display: block; color: #ff9a9a; font: 400 18px/1 var(--ff-pixel); letter-spacing: 0.04em; opacity: 0.85; }
.calc__out {
  display: block;
  margin-top: 2px;
  color: #ff4040;
  font: 400 clamp(46px, 7cqw, 66px)/0.95 var(--ff-pixel);
  text-shadow: 0 0 10px rgba(255, 50, 50, 0.75);
  overflow-wrap: anywhere;
}
.calc__out--sm { font-size: clamp(28px, 3.6cqw, 36px); }
.calc__out--mined { color: #fd8442; text-shadow: 0 0 10px rgba(253, 123, 52, 0.6); }
.calc__controls { display: grid; gap: 16px; margin: 20px 0 14px; }
.slider { display: grid; gap: 6px; }
.slider__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font: 700 15px/1.2 var(--ff-body); }
.slider__val { font: 400 22px/1 var(--ff-pixel); color: #3a0a0a; }
.slider input[type="range"] {
  width: 100%;
  height: 40px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border: 2.5px solid #000;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b3b var(--fill, 50%), #57534c var(--fill, 50%));
}
.slider input[type="range"]::-moz-range-track {
  height: 8px;
  border: 2.5px solid #000;
  border-radius: 999px;
  background: #57534c;
}
.slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: #ff3b3b; }
.slider input[type="range"]::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border: 3px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd28a, var(--btc) 60%);
  box-shadow: 2px 2px 0 #000;
  -webkit-appearance: none;
  appearance: none;
}
.slider input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--btc);
}
.slider input[type="range"]:focus-visible { outline: 3px solid var(--btc); outline-offset: 2px; border-radius: 999px; }
.calc__pizza { margin: 0 0 6px; font: 700 16px/1.4 var(--ff-body); }
.calc__verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
/* the neighbours' exchange of Act III, a line more for every price bracket */
.calc__talk { display: grid; gap: 8px; margin: 8px 0 4px; padding: 0; list-style: none; color: #3a0a0a; }
.calc__who { margin: 0; font: 700 14px/1.3 var(--ff-body); }
.calc__cue { font-weight: 500; }
.calc__cue::before { content: " · "; font-style: normal; }
.calc__line { margin: 0; font: 400 19px/1.25 var(--ff-hand); }
.calc__tr { margin: 2px 0 0; font: 500 15px/1.4 var(--ff-body); }
.calc__act { flex: 1 1 auto; margin: 0; }
.calc .fineprint { color: #26231e; }
.calc__stamp {
  flex: none;
  margin: 4px 6px 6px auto;
  padding: 8px 14px 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  border: 5px solid #d61f1f;
  border-radius: 10px;
  color: #d61f1f;
  font: 400 clamp(26px, 3.6cqw, 40px)/1 var(--ff-display);
  letter-spacing: 0.05em;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}


/* ====================================================================== 04 rewards */
.sky {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4cqw, 50px) clamp(16px, 3cqw, 40px) clamp(22px, 3cqw, 36px);
  border: 3px solid #000;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(80, 100, 200, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, #111a3f 0%, #1a2558 50%, #2f2759 82%, #5a2a3b 100%);
  color: var(--paper);
  box-shadow: 7px 7px 0 #000;
}
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 64%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 37% 12%, #fff6c8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 48% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 58% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 66% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 74% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 92% 40%, #fff6c8 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 14% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 84% 86%, #fff 50%, transparent 51%);
  animation: skyTwinkle 5s ease-in-out infinite alternate;
}
@keyframes skyTwinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.sky__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(14px, 3cqw, 40px);
}
.sky__top > .sec__head { grid-column: 1; grid-row: 1; }
.sky__moon {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: clamp(76px, 12cqw, 140px);
  aspect-ratio: 1;
  border: 3px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd27a, #fc5c04 62%, #d04b02);
  color: rgba(110, 50, 0, 0.55);
  font: 400 clamp(40px, 6cqw, 74px)/1 var(--ff-display);
  box-shadow: 0 0 60px 14px rgba(253, 130, 62, 0.38);
}
.sky__moon span { transform: rotate(14deg); }
.constel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  aspect-ratio: 1000 / 300;
  margin: clamp(18px, 4cqw, 44px) auto clamp(18px, 3cqw, 30px);
}
.constel__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constel__line {
  fill: none;
  stroke: rgba(255, 246, 200, 0.85);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.8));
}
.constel__star path {
  fill: #fff6c8;
  stroke: #000;
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 214, 120, 0.95));
}
.constel__lab {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 24%;
  padding: 4px 8px 3px 4px;
  border: 2px solid #000;
  border-radius: 999px;
  background: rgba(8, 11, 30, 0.86);
  color: #fff;
  font: 400 clamp(13px, 1.8cqw, 19px)/1.05 var(--ff-display);
  letter-spacing: 0.03em;
  transform: translate(-50%, 46%);
}
.constel__lab b {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  font-weight: 400;
}
.constel__lab:nth-of-type(2n) { transform: translate(-50%, -150%); }
.constel__lab:first-of-type { transform: translate(-18%, 46%); }
.constel__lab:last-of-type { transform: translate(-82%, -150%); }
@container sec (max-width: 560px) {
  .constel__lab span { display: none; }
  .constel__lab { max-width: none; padding: 3px; }
}
.stars {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@container sec (min-width: 600px) {
  .stars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container sec (min-width: 980px) {
  .stars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
.star {
  position: relative;
  padding: 18px 16px 18px 64px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(9, 13, 36, 0.8);
  box-shadow: 4px 4px 0 #000;
}
.star__n {
  position: absolute;
  left: 14px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  font: 400 24px/1 var(--ff-display);
  box-shadow: 0 0 14px rgba(255, 196, 96, 0.6);
}
.star__title { margin: 0 0 8px; color: #fff; font: 400 clamp(24px, 2.4cqw, 28px)/1.02 var(--ff-display); letter-spacing: 0.025em; }
.star p { margin: 0; color: #d7dbf2; font: 400 15px/1.5 var(--ff-body); }
/* his story on two receipts: a year of mining against the months of holding $RTC (the client's emphasis). Mining is
   the electricity bill (the invoice's paper, lines and circled total, the calculator's stamp), holding $RTC the
   receipt (its paper and torn edge, shadowed by a drop shadow since the edge is a clip). Story numbers both, and
   under them how the rewards are paid, on its own card, never covered. page.js plays the beat. */
.vs { position: relative; z-index: 2; margin-top: clamp(36px, 5cqw, 62px); }
.vs__head { display: grid; justify-items: center; gap: 8px; margin-bottom: clamp(22px, 3cqw, 34px); text-align: center; }
.vs__title { margin: 0; color: #fff; font: 400 clamp(36px, 4.6cqw, 58px)/0.95 var(--ff-display); letter-spacing: 0.02em; text-shadow: 4px 4px 0 #000; text-wrap: balance; }
.vs__lead { margin: 0; color: #d7dbf2; font: 600 17px/1.45 var(--ff-body); }
.vs__pair { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.vs__card { position: relative; width: min(100%, 520px); min-width: 0; color: #1d1a16; }
.vs__card--mine {
  padding: 18px;
  border: 2px solid #000;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 28px), #f7f2e5;
  box-shadow: 7px 7px 0 #000;
  rotate: -1deg;
}
.vs__card--hold { filter: drop-shadow(7px 7px 0 #000); rotate: 0.8deg; }
.vs__paper {
  padding: 18px 18px 32px;
  border: 2px solid #000;
  background: #fbf8f0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
}
.vs__vs {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -16px 0;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--btc);
  color: #000;
  font: 400 30px/1 var(--ff-brand);
  box-shadow: 4px 4px 0 #000;
  rotate: -8deg;
}
/* the photo of the receipt's moment, a small polaroid with the cross or the tick on its corner, then its name and when */
.vs__top { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding-bottom: 14px; border-bottom: 2px dashed #8a8170; }
.vs__top .vs__pic { grid-row: span 2; }
.vs__pic { width: clamp(88px, 12cqw, 132px); aspect-ratio: 1; object-fit: cover; object-position: 68% 50%; padding: 5px 5px 16px; border: 2px solid #000; background: #fff; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); rotate: -3deg; }
.vs__card--hold .vs__pic { rotate: 2.5deg; }
/* each photo framed on its one subject: the circled bill, his grin at the phone that shows +0.00021 BTC */
.vs__card--mine .vs__pic { object-view-box: inset(50% 0% 8% 72%); object-position: 50% 50%; }
.vs__card--hold .vs__pic { object-view-box: inset(27% 30% 37% 32%); object-position: 50% 50%; }
.vs__name { min-width: 0; }
.vs__title-sm { margin: 0; color: #111; font: 400 clamp(28px, 3.2cqw, 38px)/1 var(--ff-display); letter-spacing: 0.02em; }
.vs__mark { position: absolute; left: -12px; top: -12px; width: 34px; height: 34px; padding: 5px; border: 2.5px solid #000; border-radius: 50%; background: var(--red); color: #000; stroke-width: 3.4; box-shadow: 2px 2px 0 #000; }
.vs__card--hold .vs__mark { background: var(--green); }
.vs__when { margin: 6px 0 0; color: #5f574a; font: 700 14px/1.35 var(--ff-body); }
/* the lines of the invoice; what he lost is struck out (--strike, page.js) and stays lost */
.vs__lines dd { max-width: 62%; }
/* an amount stays whole beside a long label ("Первое распределение", "In einem Jahr geschürft"), like the bill's lines */
.vs__lines :is([data-screen], [data-vs-zero], [data-reward-value]) { white-space: nowrap; }
.vs__lost dt { position: relative; }
.vs__lost dt::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2.5px; background: #d61f1f; transform: scaleX(var(--strike, 1)) rotate(-3deg); transform-origin: 0 50%; }
.vs__lost dd { color: #d61f1f; font-weight: 700; }
.vs__total { margin: 14px 0 0; }
/* the bill's total is circled, a size under the receipt's: the eye lands on what holding $RTC got him */
.vs__card--mine .vs__total b { font-size: clamp(32px, 3.4cqw, 38px); }
/* the receipt's total is a sentence, its label above it, the words stamped in green: the loudest mark of the pair */
.vs__card--hold .vs__total { display: grid; justify-items: start; gap: 8px; }
.vs__card--hold .vs__total b {
  padding: 6px 12px 3px;
  border: 4px solid #0b7a34;
  border-radius: 10px;
  justify-self: stretch;
  background: rgba(39, 240, 107, 0.14);
  color: #0b7a34;
  font-size: clamp(28px, 3cqw, 38px);
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  rotate: -1.5deg;
}
.vs__card--hold .vs__total b::after { display: none; }
/* NOT PROFITABLE, in the bill's header where the invoice has its FINAL NOTICE: never on the circled total */
.vs__stamp {
  grid-column: 2;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  margin: 2px 4px 0 0;
  padding: 5px 10px 2px;
  border: 3px solid #d61f1f;
  border-radius: 8px;
  color: #d61f1f;
  font: 400 clamp(19px, 2cqw, 23px)/1 var(--ff-display);
  letter-spacing: 0.05em;
  text-align: center;
  overflow-wrap: anywhere;
  rotate: 6deg;
}
/* what he put in, in his own words of Act XIV */
.vs__put { margin: 12px 0 4px; }
.vs__put .vs__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 0; }
.vs__put .act-link { margin-left: 4px; }
/* his own words on it, from the story */
.vs__talk { margin: 10px 0 0; }
.vs__who { margin: 6px 0 0; color: #5f574a; font: 700 14px/1.3 var(--ff-body); }
.vs__who i { font-weight: 500; }
.vs__line { margin: 0; color: #2a2620; font: 400 19px/1.3 var(--ff-hand); }
.vs__line::before { content: open-quote; }
.vs__line::after { content: close-quote; }
.vs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 14px 0 0; color: #5f574a; font: 700 14px/1.3 var(--ff-body); }
/* how the rewards are paid, right under the receipt, and the act where it happens */
.vs__after { display: grid; justify-items: center; gap: 16px; width: min(100%, 520px); margin-top: 34px; }
.vs__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  border: 3px solid #000;
  border-radius: 14px;
  background: var(--amber);
  color: #111;
  font: 800 clamp(17px, 1.6cqw, 21px)/1.35 var(--ff-body);
  box-shadow: 5px 5px 0 #000;
  rotate: -0.6deg;
}
.vs__rule .ico { width: 34px; height: 34px; stroke-width: 2.2; }
.vs__read { min-height: 44px; padding: 6px 16px 5px 12px; color: var(--paper); font-size: 16px; }
@container sec (min-width: 860px) {
  /* each paper keeps its own length: the long bill on the left, the short receipt on the right with how the
     rewards are paid right under it */
  .vs__pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "mine vs hold" "mine vs after";
    align-items: start;
    justify-items: stretch;
  }
  .vs__card { width: auto; }
  .vs__card--mine { grid-area: mine; }
  .vs__card--hold { grid-area: hold; }
  /* it laps over the two papers' margins only, never their words, between their titles */
  .vs__vs { grid-area: vs; align-self: start; margin: 56px -10px 0; }
  .vs__after { grid-area: after; width: auto; }
}

/* ====================================================================== 05 tokenomics */
.gear { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.gear__left { display: grid; gap: 10px; align-content: start; min-width: 0; }
@container sec (min-width: 920px) {
  .gear { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 44px; }
}
.gear__box {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  height: 230px;
  margin-top: 60px;
}
.gear__front {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-content: center;
  gap: 6px;
  padding: 16px;
  border: 3px solid #000;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, 0.12) 47% 53%, transparent 53%),
    linear-gradient(180deg, #d4a868, #b98745);
  box-shadow: 7px 7px 0 #000;
  text-align: center;
}
.gear__flap {
  position: absolute;
  top: -2px;
  width: 52%;
  height: 74px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #c99b5b, #a9783c);
  transform-origin: 50% 100%;
}
.gear__flap--l { left: -2%; transform: translateY(-100%) rotate(-26deg) skewX(10deg); transform-origin: 100% 100%; }
.gear__flap--r { right: -2%; transform: translateY(-100%) rotate(24deg) skewX(-10deg); transform-origin: 0 100%; }
.gear__flap { transition: transform 0.6s cubic-bezier(0.3, 1.7, 0.5, 1); }
.gear__box.is-closed .gear__flap { transition-duration: 0.01s; }
.gear__box.is-closed .gear__flap--l { transform: translateY(-100%) rotate(0deg) skewX(0deg) scaleY(0.1); }
.gear__box.is-closed .gear__flap--r { transform: translateY(-100%) rotate(0deg) skewX(0deg) scaleY(0.1); }
.gear__label { max-width: 100%; font: 400 34px/1 var(--ff-hand); color: #201409; overflow-wrap: anywhere; }
.gear__label--old {
  position: relative;
  justify-self: center;
  color: #3b2a14;
}
.gear__label--old::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 48%;
  height: 5px;
  border-radius: 3px;
  background: #d61f1f;
  transform: rotate(-6deg);
}
.gear__label--new { color: #d61f1f; transform: rotate(-4deg); font-size: 38px; }
.toks {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.tok {
  position: relative;
  min-height: 112px;
  padding: 16px 16px 16px 84px;
  border: 4px solid #fff;
  border-radius: 20px;
  background: #fffdf7;
  color: #141210;
  box-shadow: 0 0 0 3px #000, 6px 6px 0 3px #000;
}
.tok:nth-child(odd) { transform: rotate(-0.8deg); }
.tok:nth-child(even) { transform: rotate(0.9deg); }
.tok__ico { position: absolute; left: 12px; top: 16px; width: 60px; height: 60px; }
.tok__label { margin: 0; color: #5d5547; font: 700 13px/1.25 var(--ff-body); }
.tok__value {
  margin: 3px 0 5px;
  font: 400 clamp(24px, 2.4cqw, 30px)/1.02 var(--ff-display);
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}
.tok__value[data-tok="supply"] { font-family: var(--ff-num); }
.tok__note { margin: 0; color: #3b352c; font: 500 14px/1.38 var(--ff-body); }

/* ====================================================================== 06 buy */
.os {
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(80, 130, 255, 0.18), transparent 60%),
    #0e1938;
  box-shadow: 8px 8px 0 #000, 0 0 70px rgba(60, 120, 255, 0.16);
}
.os__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 3px solid #000;
  background: linear-gradient(180deg, #3557c2, #243c92);
}
.os__dots { display: flex; gap: 7px; }
.os__dots i { width: 14px; height: 14px; border: 2px solid #000; border-radius: 50%; background: #ff5f57; }
.os__dots i:nth-child(2) { background: #fd782f; }
.os__dots i:nth-child(3) { background: #28c840; }
.os__title { color: #fff; font: 400 24px/1 var(--ff-pixel); letter-spacing: 0.06em; }
.os__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(16px, 3cqw, 32px);
}
.os__side { display: grid; gap: 22px; min-width: 0; align-content: start; }
@container sec (min-width: 920px) {
  .os__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "head side" "steps side";
    align-items: start;
    column-gap: 30px;
  }
  .os__body > .sec__head { grid-area: head; }
  .steps { grid-area: steps; }
  .os__side { grid-area: side; }
  main .os__side { position: sticky; top: calc(var(--topbar-h) + 22px); }
  .os__side .degen { order: -1; }
}
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.step__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 2px solid #000;
  border-radius: 11px;
  background: var(--btc);
  color: #000;
  font: 400 25px/1 var(--ff-display);
  box-shadow: 2px 2px 0 #000;
}
.step__txt { min-width: 0; }
.step__title { margin: 2px 0 5px; color: #fff; font: 400 clamp(23px, 2.2cqw, 27px)/1.04 var(--ff-display); letter-spacing: 0.025em; }
.step p { margin: 0; color: #c9d3f0; font: 400 15px/1.5 var(--ff-body); }
.step .step__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.os__ca-title { margin: 0 0 8px; color: var(--amber); font: 400 22px/1 var(--ff-pixel); letter-spacing: 0.05em; }
.degen {
  padding: 22px clamp(16px, 2.4cqw, 24px);
  border: 3px solid #000;
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 26px),
    var(--paper);
  color: #141210;
  box-shadow: 6px 6px 0 #000;
}
.degen__title { margin: 0 0 6px; font: 400 clamp(28px, 3cqw, 36px)/1 var(--ff-display); letter-spacing: 0.02em; }
.degen__lead { margin: 0 0 14px; color: #3d372e; font: 500 15px/1.45 var(--ff-body); }
.degen__list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border: 2.5px solid #000;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  font: 700 16px/1.3 var(--ff-body);
  box-shadow: 3px 3px 0 #000;
  transition: background-color 0.2s, transform 0.15s var(--ease-pop);
}
.tick:hover { transform: translate(-1px, -1px); }
.tick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.tick__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 3px solid #000;
  border-radius: 9px;
  background: #fff;
}
.tick__box .ico { width: 24px; height: 24px; stroke-width: 3.6; color: #000; transform: scale(0) rotate(-20deg); transition: transform 0.3s var(--ease-pop); }
.tick input:checked + .tick__box { background: var(--green); }
.tick input:checked + .tick__box .ico { transform: none; }
.tick input:checked ~ .tick__txt { color: #0b6a2d; }
.tick:has(input:checked) { background: #e9ffef; }
.tick input:focus-visible + .tick__box { outline: 3px solid var(--btc); outline-offset: 3px; }
.degen__go { display: grid; gap: 10px; justify-items: start; }
.btn--swap { width: 100%; background: var(--green); }
.btn--swap[aria-disabled="true"] {
  background: #a29c90;
  color: #403c35;
  cursor: not-allowed;
  box-shadow: 3px 3px 0 #000;
}
.btn--swap[aria-disabled="true"]:hover { transform: none; }
.lockico { width: 26px; height: 26px; stroke-width: 2.6; overflow: visible; }
.lockico .shackle { transform-box: view-box; transform-origin: 16px 11px; transition: transform 0.5s var(--ease-pop); }
.btn--swap:not([aria-disabled="true"]) .lockico .shackle { transform: translate(0, -3px) rotate(32deg); }
.degen__state { margin: 0; font: 700 14px/1.4 var(--ff-body); color: #4a4337; }
.degen__progress {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 9px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #141210;
}
.degen .fineprint, .invoice .fineprint { color: #5a5246; }
.degen__unlocked { display: none; color: #0b6a2d; }
.degen.is-unlocked .degen__locked { display: none; }
.degen.is-unlocked .degen__unlocked { display: inline; }
.btn--swap.is-shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 6px 0; }
  60% { translate: -4px 0; }
  80% { translate: 4px 0; }
}

/* ====================================================================== 07 roadmap */
.pizzas {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@container sec (min-width: 940px) {
  .roadmap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 54px; }
  main .roadmap > .sec__head { position: sticky; top: calc(var(--topbar-h) + 30px); }
  .pizzas { max-width: none; }
}
.pizza { position: relative; perspective: 900px; }
.pizza:nth-child(odd) { transform: rotate(-0.5deg); }
.pizza:nth-child(even) { transform: rotate(0.6deg) translateX(6px); }
@container sec (max-width: 559px) {
  .pizza:nth-child(odd) { transform: rotate(-0.35deg); }
  .pizza:nth-child(even) { transform: rotate(0.35deg); }
}
.pizza__lid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 3px solid #000;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(90deg, #d8ac6c, #c9995a 50%, #d2a564);
  color: #1d140a;
  text-align: left;
  box-shadow: 0 6px 0 #8f6330, 4px 10px 0 #000;
  transform-origin: 50% 0;
  transition: transform 0.45s var(--ease-pop);
}
.pizza__lid:hover { filter: brightness(1.05); }
.pizza__n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff3df;
  font: 400 25px/1 var(--ff-display);
}
.pizza__title { font: 400 clamp(21px, 2.3cqw, 29px)/1.08 var(--ff-hand); }
.pizza__status {
  max-width: 8em;
  padding: 5px 10px 3px;
  overflow-wrap: anywhere;
  hyphens: auto;
  border: 2.5px solid #000;
  border-radius: 7px;
  background: #fff8ec;
  font: 400 17px/1 var(--ff-display);
  letter-spacing: 0.05em;
  text-align: center;
}
.pizza.is-done .pizza__status { background: var(--green); }
.pizza.is-done .pizza__n { background: var(--green); }
.pizza--inf .pizza__n { background: #ffd27a; font-size: 30px; }
.pizza__inside {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.pizza.is-open .pizza__inside { grid-template-rows: 1fr; }
/* clip, not hidden: in the tilted box's perspective Chrome left a hidden-overflow
   slice unpainted on narrow screens */
.pizza__slice { overflow: hidden; overflow: clip; }
.pizza__slice p {
  position: relative;
  margin: 8px 8px 4px 28px;
  padding: 10px 14px 10px 42px;
  border: 2.5px solid #000;
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 30%, rgba(200, 120, 30, 0.18) 0 14px, transparent 15px),
    radial-gradient(circle at 70% 80%, rgba(200, 120, 30, 0.14) 0 9px, transparent 10px),
    #fff7e8;
  color: #261d12;
  font: 500 16px/1.45 var(--ff-body);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.pizza__slice p::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 50% 70%, #c2261c 0 3px, transparent 3.5px), #ffcf6b;
  border: 2px solid #000;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.pizza.is-done .pizza__slice p { background: #eafff0; }
.pizza__tr { display: block; margin-top: 4px; color: #4f4232; font: 400 15px/1.4 var(--ff-body); }

/* ====================================================================== 08 community */
.community { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin: 0 0 54px; }
@container sec (min-width: 980px) {
  .community { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); align-items: center; gap: 40px; }
  .community .cans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .community .can { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; text-align: center; }
  .community .can__tin { grid-row: auto; margin-bottom: 8px; }
  .community .can__name { align-self: auto; }
}
.cans {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.can {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  height: 100%;
  min-height: 190px;
  padding: 16px;
  border: 3px solid #000;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 100%, rgba(139, 255, 58, 0.14), transparent 50%),
    #121a14;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.2s var(--ease-pop), box-shadow 0.2s;
}
.can:hover { transform: translate(-2px, -3px) rotate(-0.6deg); box-shadow: 8px 8px 0 #000; }
.can__tin {
  position: relative;
  grid-row: 1 / -1;
  align-self: center;
  width: 82px;
  height: 156px;
  border: 3px solid #000;
  border-radius: 16px / 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.28) 22%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, #0d150b, #1d3410 45%, #12200b);
  box-shadow: inset 0 -14px 0 #9aa09c, inset 0 -17px 0 #000, inset 0 16px 0 #c9cfcb, inset 0 19px 0 #000;
  transform-origin: 50% 100%;
}
.can__top {
  position: absolute;
  left: 22px;
  top: 4px;
  width: 30px;
  height: 7px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #e9eeea;
}
.can__brand {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  bottom: 44px;
  display: grid;
  place-items: center;
  color: var(--copium);
  font: 400 30px/1 var(--ff-brand);
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(139, 255, 58, 0.75), 2px 2px 0 #000;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.can__ico { position: absolute; left: calc(50% - 13px); bottom: 22px; width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.can__name { align-self: end; color: #fff; font: 400 32px/1 var(--ff-brand); letter-spacing: 0.03em; }
.can__text { color: #cfe8c1; font: 500 15px/1.42 var(--ff-body); }
.can__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--copium); font: 400 19px/1 var(--ff-display); letter-spacing: 0.04em; }
.can__cta .ico { width: 16px; height: 16px; }
.can.is-crushed .can__tin { animation: crush 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes crush {
  0% { transform: none; }
  30% { transform: scale(1.12, 0.62) rotate(-6deg); }
  60% { transform: scale(0.94, 1.06) rotate(3deg); }
  100% { transform: none; }
}
.confess {
  padding: clamp(18px, 3cqw, 34px);
  border: 3px dashed rgba(139, 255, 58, 0.5);
  border-radius: 20px;
  background: rgba(139, 255, 58, 0.035);
}
.confess__title { margin: 0 0 6px; color: #fff; font: 400 clamp(32px, 4cqw, 46px)/1 var(--ff-display); letter-spacing: 0.02em; }
.confess__lead { margin: 0; color: var(--muted); font: 500 16px/1.45 var(--ff-body); }
.cnotes {
  display: grid;
  gap: 20px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.cnote { position: relative; display: grid; min-width: 0; min-height: 176px; }
@container sec (max-width: 519px) {
  .cnotes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .cnote { min-height: 120px; }
  .cnote.is-open { grid-column: 1 / -1; }
  .cnote__ball { width: 104px; height: 94px; }
}
.cnote > * { grid-area: 1 / 1; }
.cnote__ball {
  justify-self: center;
  max-width: 100%;
  align-self: center;
  width: 128px;
  height: 116px;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 0.25s var(--ease-pop);
}
.cnote__ball:hover { transform: rotate(-8deg) scale(1.05); }
.ballshape {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #000;
  background:
    linear-gradient(32deg, transparent 40%, rgba(0, 0, 0, 0.18) 41% 43%, transparent 44%),
    linear-gradient(-48deg, transparent 52%, rgba(0, 0, 0, 0.16) 53% 55%, transparent 56%),
    linear-gradient(80deg, transparent 30%, rgba(0, 0, 0, 0.14) 31% 33%, transparent 34%),
    radial-gradient(circle at 35% 30%, #fffdf6, #e9e2d0 70%);
  clip-path: polygon(14% 18%, 32% 4%, 52% 10%, 70% 2%, 88% 16%, 96% 38%, 90% 58%, 98% 76%, 80% 94%, 58% 88%, 40% 98%, 20% 88%, 6% 70%, 12% 50%, 2% 32%);
  filter: drop-shadow(4px 4px 0 #000);
}
.cnote__paper {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px 16px 14px;
  border: 2px solid #000;
  background:
    linear-gradient(120deg, transparent 48%, rgba(0, 0, 0, 0.05) 49% 50%, transparent 51%),
    linear-gradient(30deg, transparent 58%, rgba(0, 0, 0, 0.05) 59% 60%, transparent 61%),
    #fbf6ea;
  color: #1d1a15;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.55s var(--ease-pop), opacity 0.3s;
}
.cnote:not(.is-open) .cnote__paper { opacity: 0; visibility: hidden; transform: scale(0.2) rotate(50deg); }
.cnote.is-open .cnote__ball { display: none; }
.cnote__text { margin: 0 0 10px; font: 400 18px/1.25 var(--ff-hand); }
.cnote__lesson { margin: 0 0 8px; font: 500 14px/1.4 var(--ff-body); }
.cnote__lesson b { color: #0b7a34; }
.cnote__by { margin: 0; color: #6b6253; font: 500 13px/1.3 var(--ff-body); }
.confess__form { margin-top: 8px; }
.confess__label { display: block; margin-bottom: 8px; color: #fff; font: 400 24px/1 var(--ff-display); letter-spacing: 0.03em; }
.confess__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.confess__row textarea {
  flex: 1 1 260px;
  min-height: 56px;
  padding: 12px 14px;
  border: 3px solid #000;
  border-radius: 12px;
  background: #fbf6ea;
  color: #111;
  font: 400 18px/1.3 var(--ff-hand);
  resize: vertical;
  box-shadow: 3px 3px 0 #000;
}
.confess__row textarea::placeholder { color: #8a8170; }
.confess__row .btn { align-self: flex-start; }

/* ====================================================================== 09 faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.faq__side { display: grid; gap: 26px; align-content: start; min-width: 0; }
@container sec (min-width: 980px) {
  .faq { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .faq__side { grid-column: 2; grid-row: 1; }
  .clipboard { grid-column: 1; grid-row: 1; }
  main .faq__side { position: sticky; top: calc(var(--topbar-h) + 24px); }
}
.tom { display: grid; justify-items: center; gap: 0; margin: 0; }
.tom img {
  width: min(200px, 46%);
  border: 4px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #6aa6ff, #2b5cb3 70%);
  box-shadow: 0 0 0 7px #fff, 0 0 0 10px #000, 7px 9px 0 10px #000;
}
.bubble--tom { max-width: 260px; margin-top: 26px; text-align: center; }
.clipboard {
  position: relative;
  max-width: 920px;
  padding: 58px clamp(12px, 3cqw, 36px) 30px;
  border: 3px solid #000;
  border-radius: 24px;
  background:
    repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.07) 0 3px, transparent 3px 19px),
    linear-gradient(180deg, #8a5a30, #6e4422);
  box-shadow: 8px 8px 0 #000, inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.clipboard__clip {
  position: absolute;
  top: -22px;
  left: calc(50% - 84px);
  width: 168px;
  height: 58px;
  border: 3px solid #000;
  border-radius: 14px 14px 22px 22px;
  background: linear-gradient(180deg, #f1f1f1, #a7a7a7);
  box-shadow: 3px 3px 0 #000, inset 0 -8px 0 rgba(0, 0, 0, 0.15);
}
.receipts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qa {
  border: 2px solid #000;
  border-radius: 5px;
  background: #fbf8f0;
  color: #1a1712;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.qa:nth-child(odd) { transform: rotate(-0.4deg); }
.qa:nth-child(even) { transform: rotate(0.35deg); }
.qa summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 58px 12px 16px;
  cursor: pointer;
  font: 700 clamp(17px, 0.5vw + 14px, 20px)/1.3 var(--ff-body);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 18px;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: #000;
  transition: transform 0.3s var(--ease-pop);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa[open] summary { color: #b14002; }
.qa p {
  margin: 0;
  padding: 0 16px 16px;
  border-top: 1px dashed #b8ae99;
  padding-top: 12px;
  color: #3a342a;
  font: 400 16px/1.6 var(--ff-body);
}

/* ====================================================================== the reader, full screen
   The same reader moves into this modal and back (story.js): its bar says where
   you are, with ‹ › and Close. Phones: the whole screen, the reader bar keeps its
   place at the bottom. */
.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(6, 5, 9, 0.84); }
html.has-viewer { overflow: hidden; }
.viewer__frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #121117;
}
.viewer__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-bottom: 3px solid #000;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 204, 0, 0.08) 0 10px, transparent 10px 20px),
    #1c1b22;
}
.viewer__count { min-width: 0; margin: 0; color: var(--paper); font: 700 16px/1.2 var(--ff-body); }
.viewer__bar .panel__navs { margin-left: auto; }
.viewer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px 0; container-type: size; }
.reader.is-full .pol__full, .reader.is-full .string__foot { display: none; }
.reader.is-full .page__media { top: 18px; }
.reader.is-full .string { padding-bottom: 22px; }
@media (max-width: 767.98px) {
  /* the reader bar at the bottom has ‹ › and the chapter sheet */
  .viewer__bar .panel__navs { display: none; }
  .viewer__bar .panel__close { margin-left: auto; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .viewer__frame {
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(96vw, 1340px);
    height: min(94svh, 1000px);
    translate: -50% -50%;
    border: 3px solid #000;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 10px 10px 0 #000, 0 40px 120px rgba(0, 0, 0, 0.6);
  }
  .viewer__body { padding: 26px 30px 0; }
}

/* ====================================================================== motion off */
@media (prefers-reduced-motion: reduce) {
  /* the tape holds still with its first lines in view */
  .marquee__track { animation: none; padding-left: calc(4vw + 8px); }
  .tab, .string__head { transition: none; }
}
