/* Kaboomville microsite v2. One stylesheet, no framework.
   Tokens come from the game's own daylight: the haze at the horizon, the ink of its night sky,
   the brick orange of its UI. See README "Design system". */

@font-face { font-family: "Lilita One"; src: url("/assets/fonts/LilitaOne.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kaboom Display CZ"; src: url("/assets/fonts/KaboomDisplayCZ.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --haze: #eaf0f3;      /* page: the pale sky at the horizon */
  --paper: #f8fafb;     /* raised surfaces (summary boxes) */
  --ink: #17213b;       /* text, the night */
  --ink-2: #4a556b;     /* secondary text (6.5:1 on haze) */
  --line: rgba(23, 33, 59, .14);
  --brick: #ff5a1f;     /* the game's brick orange: indicators, active states, never small text */
  --brick-ink: #b83208; /* brick dark enough for text (5.2:1 on haze) */
  --night: #121a30;
  --sun: #ffc233;
  --sky-1: #86b3e2; --sky-2: #b9d1ea; --sky-3: #efd9c4; --horizon: #f3d9bf;

  --display: "Lilita One", "Kaboom Display CZ", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  --r-media: 18px;
  --r-small: 12px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--haze); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brick-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-foot :focus-visible, .closer :focus-visible { outline-color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-small); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type scale (perfect fourth, fluid at the top) ---------- */
.d-xl { font-family: var(--display); font-size: clamp(3rem, 1.6rem + 6.2vw, 7.6rem); line-height: .9; letter-spacing: -.012em; }
.d-l  { font-family: var(--display); font-size: clamp(2.35rem, 1.5rem + 3.9vw, 5rem); line-height: .95; letter-spacing: -.01em; }
.d-m  { font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 20; padding-block: 14px; }
.has-hero .site-head { position: absolute; inset: 0 0 auto 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: auto; height: 42px; }
@media (min-width: 900px) { .logo img { height: 54px; } .site-head { padding-block: 20px; } }
.head-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 600; font-size: .95rem; }
.navlink { text-decoration: none; display: none; padding-block: 8px; }
.navlink:hover { text-decoration: underline; }
@media (min-width: 760px) { .navlink { display: inline-block; } }
.lang { display: flex; gap: 2px; font-weight: 700; font-size: .9rem; }
.lang a, .lang span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 6px; border-radius: 999px; text-decoration: none; }
.lang span { box-shadow: inset 0 -3px 0 var(--brick); border-radius: 0; min-width: 28px; margin-inline: 6px; }
.lang a:hover { background: rgba(255, 255, 255, .5); color: var(--ink); }

/* ---------- hero: the toy ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 720px); display: flex; flex-direction: column; justify-content: flex-end;
  --hz: 52%;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) calc(var(--hz) - 30%), var(--sky-3) calc(var(--hz) - 9%), var(--horizon) calc(var(--hz) - 1%), var(--haze) 100%);
}
@media (min-width: 900px) { .hero { min-height: clamp(680px, 100svh, 1080px); } }
.toy-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .6s ease; cursor: crosshair; }
.toy-canvas canvas { width: 100%; height: 100%; }
.toy-on .toy-canvas { opacity: 1; }
.hero-still { position: absolute; inset: 0; z-index: 0; }
.hero-still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.toy-on .hero-still, .toy-pending .hero-still { opacity: 0; transition: opacity .6s ease; }
.toy-on .hero-still { visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.hero-fade { position: absolute; inset: max(38svh, 280px) 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(234, 240, 243, 0) 0%, rgba(234, 240, 243, .82) 26%, var(--haze) 42%); }
@media (min-width: 900px) {
  .hero-fade { height: 100%; inset: 0;
    background: linear-gradient(180deg, rgba(234, 240, 243, 0) 66%, rgba(234, 240, 243, .82) 100%),
                radial-gradient(ellipse 62% 74% at 0% 100%, rgba(234, 240, 243, .95) 0%, rgba(234, 240, 243, .72) 45%, rgba(234, 240, 243, 0) 78%); }
}
.hero-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding-bottom: clamp(22px, 4vw, 56px); pointer-events: none; }
@media (max-width: 899px) { .hero { min-height: 0; justify-content: flex-start; } .hero-bottom { padding-top: max(48svh, 330px); } .toy-on .hero-bottom { padding-top: max(46svh, 320px); } }
.hero-bottom a, .hero-bottom button, .toy-dock { pointer-events: auto; }
@media (min-width: 900px) { .hero-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; } }
.hero-copy { max-width: 40rem; }
.hero-copy h1 { margin-bottom: .32em; }
.hero-copy .lede { color: var(--ink); opacity: .86; margin-bottom: 22px; }
.getit { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; flex: none; }
.badge img { height: 52px; width: auto; }
.soon { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; line-height: 1.3; max-width: 24ch; }
.soon::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px rgba(255, 90, 31, .22); }
.getit.is-live .soon { display: none; }
.small-print { margin-top: 14px; font-size: .875rem; color: var(--ink-2); max-width: 46ch; }

/* the dock: iOS-style frosted glass, one panel for every toy control */
.toy-dock { display: none; position: relative; order: -1; align-self: stretch;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "things actions" "mats mats"; gap: 8px 10px; align-items: center;
  background: rgba(255, 255, 255, .46); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 22px; padding: 10px; box-shadow: 0 10px 40px -18px rgba(23, 33, 59, .45), inset 0 1px 0 rgba(255, 255, 255, .8); }
.toy-on .toy-dock { display: grid; }
.dock-things { grid-area: things; } .dock-mats { grid-area: mats; } .dock-actions { grid-area: actions; } .toy-count { grid-area: count; } .toy-hint { grid-area: hint; }
.dock-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dock-k { font-size: .8rem; font-weight: 600; color: var(--ink-2); width: 4.8em; flex: none; line-height: 1.15; display: none; }
.dock-set { display: flex; gap: 6px; min-width: 0; }

.tb, .mb, .db { appearance: none; border: 0; cursor: pointer; background: rgba(255, 255, 255, .55); color: var(--ink); transition: background .15s, box-shadow .15s, transform .15s var(--ease-out); }
.tb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none; }
.tb img { width: 34px; height: 34px; }
.mb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none; }
.tb:hover, .mb:hover, .db:hover { background: #fff; }
.tb:active, .mb:active, .db:active { transform: scale(.94); }
.tb[aria-pressed="true"], .mb[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2.5px var(--brick); }
.sw { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .18), inset 0 2px 3px rgba(255, 255, 255, .55); }
.sw--brick { background: radial-gradient(circle at 35% 30%, #d9865d, #b0603a 55%, #7d3d20); }
.sw--jelly { background: radial-gradient(circle at 35% 30%, #ffb3be, #ff3d55 50%, #c4142e); }
.sw--glass { background: radial-gradient(circle at 35% 30%, #ffffff, #c6e8ff 45%, #7fb7e0); }
.sw--chocolate { background: radial-gradient(circle at 35% 30%, #a8714c, #6a3a1e 55%, #3d1d0c); }
.sw--gold { background: radial-gradient(circle at 35% 30%, #fff1b8, #f2b630 50%, #a8740e); }
.dock-actions { display: flex; gap: 6px; justify-self: end; }
.db { height: 40px; border-radius: 999px; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.db svg { width: 20px; height: 20px; flex: none; }
.db--icon { width: 40px; padding: 0; justify-content: center; }
.db[aria-pressed="true"] { background: var(--ink); color: #fff; }
.db[aria-pressed="false"] .w { opacity: .25; }
.toy-count { display: none; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.25; }
/* phone: the hint floats just above the dock, over the town */
.toy-hint { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; margin: 0;
  font-size: .8rem; font-weight: 650; line-height: 1; padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .3s; }
@media (max-width: 899px) { .db:not(.db--icon) { width: 40px; padding: 0; justify-content: center; } .db:not(.db--icon) span { display: none; } }
@media (max-width: 359px) { .tb { width: 40px; height: 40px; } .tb img { width: 30px; height: 30px; } .mb { width: 36px; height: 36px; } .sw { width: 23px; height: 23px; } .dock-set { gap: 4px; } }
@media (min-width: 900px) {
  .toy-dock { order: 0; align-self: auto; width: 380px; flex: none; padding: 16px; gap: 12px 0; border-radius: 24px;
    grid-template-areas: "hint hint" "things things" "mats mats" "count actions"; }
  .dock-k { display: block; }
  .toy-hint { position: static; transform: none; white-space: normal; background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: .88rem; line-height: 1.3; }
  .toy-count { display: block; padding: 12px 12px 0 0; border-top: 1px solid rgba(23, 33, 59, .1); align-self: stretch; }
  .dock-set { gap: 8px; }
  .dock-actions { padding-top: 12px; border-top: 1px solid rgba(23, 33, 59, .1); }
  .tb { width: 48px; height: 48px; } .tb img { width: 37px; height: 37px; }
}

/* the map credit (ODbL): the town and the still photo are both OpenStreetMap data, so it sits with them */
.map-credit { order: -1; align-self: flex-end; margin: -6px 2px 0 0; font-size: .72rem; line-height: 1.2; color: var(--ink-2); }
.map-credit a { color: inherit; text-decoration-color: rgba(74, 85, 107, .45); text-underline-offset: 2px; }
.map-credit a:hover { color: var(--ink); }
@media (min-width: 900px) { .map-credit { position: absolute; right: var(--gutter); bottom: clamp(4px, 1.2vw, 18px); margin: 0; order: 0; } }

/* the pop: a line in the brand voice where the thing landed (only appears after a throw) */
.toy-pop { position: absolute; z-index: 3; left: 50%; top: 30%; transform: translate(-50%, -50%); pointer-events: none;
  font: 400 clamp(1.45rem, 1.1rem + 1.6vw, 2.4rem)/1.02 var(--display); color: var(--ink); text-align: center; width: max-content; max-width: min(84vw, 520px);
  text-shadow: 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .95), 0 0 26px rgba(255, 255, 255, .8); opacity: 0; }
.toy-pop.on { animation: pop 1.7s var(--ease-out) forwards; }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  20% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -70%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -85%) scale(1); }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(80px, 11vw, 168px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head p { max-width: 46ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
@media (min-width: 1000px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}
.n { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border: .085em solid currentColor; border-radius: 50%;
  font-size: .48em; line-height: 1; vertical-align: .42em; margin-right: .32em; padding-top: .06em; }

/* trailer */
.trailer .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.vid { position: relative; background: var(--night); overflow: hidden; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; }
.vid video { width: 100%; height: 100%; object-fit: cover; background: var(--night); }
@media (max-width: 899px) and (orientation: portrait) {
  .vid { aspect-ratio: 720 / 1560; max-height: 92svh; }
}
.vid-tools { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 8px; }
.iconbtn, .vid-sound, .vid-big-play { appearance: none; border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; color: #fff;
  background: rgba(18, 26, 48, .42); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn[data-cc][aria-pressed="false"] { opacity: .65; }
.vid-sound { position: absolute; z-index: 3; left: 14px; bottom: 14px; height: 48px; padding: 0 20px 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.vid-sound svg { width: 24px; height: 24px; }
.vid-sound[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: var(--ink); }
@media (min-width: 900px) { .vid-tools { top: 24px; right: var(--gutter); } .vid-sound { left: var(--gutter); bottom: 28px; } }
.vid-big-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: none; place-items: center; }
.vid-big-play svg { width: 36px; height: 36px; margin-left: 4px; }
.js .vid.is-paused .vid-big-play { display: grid; }
.vid-cap { position: absolute; left: 16px; right: 16px; bottom: 78px; z-index: 2; text-align: center; pointer-events: none; opacity: 0; transition: opacity .15s; }
.vid-cap.on { opacity: 1; }
.vid-cap span { display: inline; font: 600 1rem/1.5 var(--text); color: #fff; background: rgba(18, 26, 48, .78); padding: .15em .5em; border-radius: 8px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 900px) { .vid-cap { bottom: 96px; } .vid-cap span { font-size: 1.2rem; } }
.vid video::cue { font-family: var(--text); font-size: 1.05em; line-height: 1.3; color: #fff; background: rgba(18, 26, 48, .8); }
.vid-note { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }

/* step 1: postcards you can flick through */
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px max(var(--gutter), (100% - var(--maxw)) / 2) 8px;
  scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }
.card-place { position: relative; margin: 0; width: min(78vw, 360px); aspect-ratio: 3 / 4; border-radius: var(--r-media); overflow: hidden; background: #d9cdbd; }
@media (min-width: 700px) { .card-place { width: min(64vw, 920px); aspect-ratio: 2556 / 1180; } }
.card-place img { width: 100%; height: 100%; object-fit: cover; }
.card-place figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff;
  background: linear-gradient(180deg, rgba(18, 26, 48, 0), rgba(18, 26, 48, .62)); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-place b { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem)/1 var(--display); }
.card-place span { font-size: .95rem; font-weight: 600; opacity: .9; }
.rail-ctrl { display: none; }
@media (min-width: 700px) {
  .rail-ctrl { display: flex; gap: 8px; }
  .rail-btn { appearance: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
  .rail-btn:hover { background: var(--ink); color: #fff; }
  .rail-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
  .rail-btn svg { width: 22px; height: 22px; }
}
.sec-head .rail-ctrl { justify-self: start; }
@media (min-width: 1000px) { .sec-head--split .rail-ctrl { justify-self: end; } }
.after-rail { margin-top: 22px; color: var(--ink-2); font-size: .98rem; max-width: 60ch; }

/* step 2: materials, real frames */
.mats { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.4vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .mats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mat { margin: 0; }
.mat img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-media); background: #cfd8e3; }
.mat figcaption { padding-top: 12px; }
.mat b { display: block; font: 400 clamp(1.35rem, 1.1rem + .6vw, 1.65rem)/1.05 var(--display); }
.mat span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.4; margin-top: 4px; }
.mats-more { margin-top: 28px; max-width: 62ch; color: var(--ink-2); }

/* step 3: one big real frame */
.throw { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.throw-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.throw-copy { padding: 26px var(--gutter) 0; }
.throw-copy p { max-width: 46ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.throw-copy p + p { margin-top: 14px; }
@media (min-width: 900px) {
  .throw-img img { aspect-ratio: 2868 / 1320; max-height: 92svh; }
  .throw-copy { position: absolute; inset: 0; padding: 0; pointer-events: none; display: flex; align-items: flex-start; justify-content: flex-end; }
  .throw-copy .inner { margin-top: clamp(32px, 4.5vw, 80px); width: min(42%, 34rem); margin-right: var(--gutter); color: #fff; }
  .throw-copy h2 { color: #fff; text-shadow: 0 2px 30px rgba(18, 26, 48, .25); }
  .throw-copy p { color: #fff; text-shadow: 0 1px 14px rgba(18, 26, 48, .55); }
  .throw::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(23, 45, 90, .38), rgba(23, 45, 90, 0) 55%); }
  .throw-copy { z-index: 1; }
}
.punch { padding-block: clamp(72px, 10vw, 150px) 0; }
.punch p { font-family: var(--display); font-size: clamp(2.6rem, 1.5rem + 5vw, 6.4rem); line-height: .92; letter-spacing: -.01em; max-width: 12ch; }

/* the good stuff: a plain list, not cards */
.split { display: grid; gap: 28px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } .split > .sec-head { position: sticky; top: 32px; align-self: start; margin-bottom: 0; } }
.goods { list-style: none; margin: 0; padding: 0; }
.goods li { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.goods li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .goods li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 28px; align-items: baseline; } }
.goods h3 { font: 400 1.5rem/1.1 var(--display); }
.goods p { color: var(--ink-2); max-width: 52ch; }

/* money */
.money { display: grid; gap: 40px; }
@media (min-width: 800px) { .money { grid-template-columns: 1fr 1fr; gap: 64px; } }
.money h3 { font: 400 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--display); margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) center / 15px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticks--no li::before { background-color: var(--brick);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%2317213b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 52px 20px 0; position: relative; font-weight: 650; font-size: 1.15rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' stroke='%2317213b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brick-ink); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.faq .ans p + p { margin-top: .8em; }

/* closer: night in Tokyo */
.closer { position: relative; margin-top: clamp(96px, 12vw, 180px); color: #fff; background: var(--night); isolation: isolate; overflow: hidden; }
.closer picture, .closer picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; z-index: -1; }
.closer picture img { transform: scaleX(-1); } /* mirrored: the tower stands right of the words */
.closer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 50, .55), rgba(10, 20, 50, .05) 50%, rgba(18, 26, 48, .7)); }
.closer .wrap { min-height: min(86svh, 820px); display: flex; flex-direction: column; justify-content: flex-start; padding-block: clamp(56px, 9vw, 120px); }
.closer .big-logo { width: min(68vw, 340px); height: auto; margin-bottom: 18px; }
.closer .claim { font: 400 clamp(3.4rem, 2rem + 7vw, 9rem)/.88 var(--display); letter-spacing: -.012em; text-shadow: 0 4px 40px rgba(0, 0, 0, .3); }
.closer .up { margin-top: 24px; display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.closer .up:hover { background: var(--sun); color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: #c9d1e0; font-size: .875rem; line-height: 1.55; padding-block: 48px 56px; }
.closer + .site-foot { padding-top: 8px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.foot-joke { font: 400 1.6rem/1.1 var(--display); color: #fff; margin-bottom: 16px; }
.foot-links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 1rem; font-weight: 600; }
.foot-links a { color: #fff; display: inline-block; padding-block: 6px; }
.foot-links a:hover { color: var(--sun); }
.foot-small + .foot-small { margin-top: 10px; }
.site-foot a { color: #fff; }

/* ---------- text pages (privacy, terms, support, data) ---------- */
.page-hero { padding-block: clamp(36px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); line-height: .93; letter-spacing: -.01em; max-width: 14ch; }
.page-hero .lede { margin-top: 20px; max-width: 42ch; }
.page-body { padding-bottom: clamp(72px, 10vw, 140px); }
/* one reading column, hero and body share its left edge, set a little left of centre */
.page-hero .wrap > *, .prose { max-width: 44rem; margin-left: clamp(0px, calc((100% - 44rem) * .3), 14rem); margin-right: 0; }
.page-hero .wrap > h1 { max-width: 14ch; }
/* (the text body is a .wrap itself: the page gutter plus the same shift; without the gutter it stuck to a phone's edge) */
.wrap.prose { margin-left: calc(max(var(--gutter), (100% - var(--maxw)) / 2) + clamp(0px, calc((min(100% - 2 * var(--gutter), var(--maxw)) - 44rem) * .3), 14rem)); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.08 var(--display); margin-top: 2.4em; scroll-margin-top: 24px; }
.prose h3 { font-weight: 700; font-size: 1.15rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brick-ink); }
.prose code { font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(23, 33, 59, .07); padding: .1em .35em; border-radius: 6px; }
.prose .meta { font-size: .9rem; color: var(--ink-2); }
.tldr, .contact-card, .dl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-media); padding: clamp(20px, 3vw, 32px); }
.tldr { margin-top: 1.4em; }
.tldr-k { font-size: .9rem; font-weight: 700; color: var(--brick-ink); margin-bottom: 6px; }
.tldr h2, .dl-card h3 { margin-top: 0; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.05 var(--display); }
.tldr ul { margin-top: 14px; }
.tldr .note, .prose .note { font-size: .875rem; color: var(--ink-2); margin-top: 14px; }
.contact-card > * + *, .dl-card > * + * { margin-top: .9em; }
.toc { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6em !important; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .9rem; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.steps-list { list-style: none; padding-left: 0 !important; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; min-height: 32px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 400 1rem/1 var(--display); }
.credit-list { font-size: .95rem; }
.pending { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pending::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px rgba(255, 90, 31, .22); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--brick); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 404 */
.lost { padding-block: clamp(48px, 10vw, 140px); }
.lost .code { font: 400 clamp(6rem, 3rem + 16vw, 16rem)/.8 var(--display); color: var(--brick); display: block; margin-bottom: 12px; }
.lost h1 { font: 400 clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem)/.95 var(--display); max-width: 14ch; }
.lost h2 { font: 400 1.8rem/1 var(--display); margin-top: 40px; }
.lost p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.lost .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* rail footer + toy hint state (appended) */
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.rail-foot .after-rail { margin: 0; }
.thrown .toy-hint { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .thrown .toy-hint { opacity: .6; } }
.toy-canvas:focus-visible { outline-offset: -8px; border-radius: 22px; }
