/* Bytany · bytany.com
   A field guide to tiny worlds that fold open.
   Palette, type and plates follow the app (docs/BRAND.md). */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #F3EBDC;
  --paper-2: #EADFCA;
  --paper-3: #E1D3B8;
  --card: #FBF6EC;
  --ink: #1F1B16;
  --ink-2: #4A4237;
  --ink-3: #6B6152;
  --moss: #3D5A39;
  --moss-ink: #3D5A39;
  --fern: #7DA26A;
  --terra: #C2563E;
  --terra-ink: #A3402B;
  --brass: #B48A4C;
  --rule: rgba(31, 27, 22, .16);
  --rule-2: rgba(31, 27, 22, .30);
  --shade: rgba(60, 40, 15, .16);
  --lcd: #C9D3B4;
  --lcd-ink: #2A2F22;
  --night: #141912;
  --night-2: #1C2419;
  --night-ink: #EDE3CF;
  --sp-leaf: #5E8F4A;
  --sp-stem: #3D5A39;
  --sp-pot: #B48A4C;
  --grain-o: .55;

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-lcd: "VT323", "IBM Plex Mono", ui-monospace, monospace;
  --f-pixel: "Silkscreen", "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* An evening greenhouse: moss-black glass, lamplit parchment. */
    --paper: #121710;
    --paper-2: #192016;
    --paper-3: #222B1E;
    --card: #1A2217;
    --ink: #EFE6D3;
    --ink-2: #C9BFAA;
    --ink-3: #A39A86;
    --moss: #9CC089;
    --moss-ink: #A9CC95;
    --fern: #8DB57A;
    --terra: #E07A5F;
    --terra-ink: #EE9478;
    --brass: #D2AA68;
    --rule: rgba(239, 230, 211, .12);
    --rule-2: rgba(239, 230, 211, .26);
    --shade: rgba(0, 0, 0, .45);
    --night: #0B0F0A;
    --night-2: #131A11;
    --sp-leaf: #8DCB6E;
    --sp-stem: #6FAF55;
    --sp-pot: #D9A257;
    --grain-o: .35;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--paper);
  /* Paper grain: one static tile, painted once. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -.015em; font-variation-settings: "opsz" 144; text-wrap: balance; }
em { font-style: italic; }
:where(p, li) { text-wrap: pretty; }
::selection { background: var(--fern); color: #10180E; }

:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 3px;
}
a:not([class]):focus-visible { border-radius: 4px; }

.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: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.1rem;
  font: 500 .74rem/1.3 var(--f-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-ink);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.kicker--plain::before { display: none; }

.lede { font-size: clamp(1.06rem, 1rem + .4vw, 1.26rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); }

.sec { position: relative; padding-block: clamp(76px, 11vw, 168px); overflow-x: clip; }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head--center .kicker { justify-content: center; }
.h2 { font-size: clamp(2.1rem, 1.25rem + 3.6vw, 4.25rem); }
.h2 em { color: var(--moss-ink); font-weight: 500; }
.h2 + .lede, .h2 + p { margin-top: clamp(16px, 2vw, 26px); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }

.sprig { width: 120px; height: 24px; color: var(--brass); margin: 0 auto 22px; }

/* Pixel sprout (logo) colours */
.sp-l { fill: var(--sp-leaf); }
.sp-s { fill: var(--sp-stem); }
.sp-p { fill: var(--sp-pot); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 50px; padding: 0 24px;
  border: 1.5px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-body); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -14px var(--shade);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px -14px var(--shade); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--moss); --fg: #F6F0E2; }
.btn--primary:hover { --bg: #314A2E; }
@media (prefers-color-scheme: dark) {
  .btn--primary { --bg: #7FAE68; --fg: #0F160D; }
  .btn--primary:hover { --bg: #93C27B; }
}
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--rule-2); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .price { font-family: var(--f-mono); font-weight: 500; font-size: .9em; opacity: .85; padding-left: .6em; border-left: 1px solid currentColor; }
.btn__mark { width: 20px !important; height: 17px !important; image-rendering: pixelated; }
.btn-store { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 58px; padding: 0 28px; font-size: 1.18rem; letter-spacing: -.01em; }
.btn-store small { font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--moss-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, gap .3s var(--ease); }
.link-arrow svg { width: 18px; height: 18px; }
button.link-arrow { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.link-arrow:hover { border-color: currentColor; gap: .65em; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-stuck { border-bottom-color: var(--rule); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 25px; image-rendering: pixelated; shape-rendering: crispEdges; }
.brand__word { font: 700 1.42rem/1 var(--f-display); letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--rule-2); background: transparent; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -30px var(--shade);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav a:hover { background: transparent; }
  .header-cta .price { display: none; }
}
@media (max-width: 380px) {
  .header-cta { padding: 0 14px; }
  .brand__word { font-size: 1.28rem; }
}
.no-js .nav-toggle { display: none; }
@media (max-width: 820px) { .no-js .nav { display: none; } }

/* ------------------------------------------------------------------ unfold scene (hero + postures) */
.unfold { position: relative; }
.unfold__stage { overflow-x: clip; }
.unfold__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(24px, 4vh, 56px);
}
.unfold__copy { position: relative; display: grid; align-items: center; z-index: 2; }
.unfold__copy > * { grid-area: 1 / 1; }

.hero-copy h1 {
  font-size: clamp(2.7rem, 1.2rem + 5.2vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.03em;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.hero-copy h1 em { display: block; color: var(--moss-ink); font-weight: 500; letter-spacing: -.035em; }
.hero-copy .lede { margin-bottom: clamp(22px, 3vw, 34px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Apple's official badge: unmodified artwork, at least 40px tall, clear space around it. */
/* The badge is the same height as the buttons beside it; the "arriving soon"
   note hangs below it so it never pushes the row out of line. */
.store-badge { position: relative; display: inline-flex; border-radius: 9px; text-decoration: none; }
.store-badge img { display: block; height: 50px; width: auto; transition: transform .25s var(--ease), filter .25s var(--ease); }
.store-badge:hover img { transform: translateY(-2px); filter: drop-shadow(0 10px 16px var(--shade)); }
.store-badge--lg img { height: 58px; }
.store-badge__soon { display: none; position: absolute; top: calc(100% + 8px); left: 1px; white-space: nowrap; font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--terra-ink); }
.is-prelaunch .store-badge__soon { display: block; }
.cta-row:has(.store-badge) .btn { min-height: 50px; }
.is-prelaunch .cta-row:has(.store-badge) { row-gap: 34px; }
.is-prelaunch .cta-row:has(.store-badge) + .fineprint { margin-top: 40px; }
.final .store-badge__soon { left: 50%; transform: translateX(-50%); }
/* App Store + Google Play side by side, sharing one "arriving soon" line. */
.store-badges { position: relative; display: inline-flex; align-items: center; gap: 12px; }
@media (max-width: 400px) {
  .store-badges { gap: 8px; }
  .store-badges .store-badge img { height: 42px; }
  .store-badges .store-badge--lg img { height: 46px; }
}
.fineprint { margin: 18px 0 0; font: 500 .8rem/1.5 var(--f-mono); color: var(--ink-3); letter-spacing: .02em; }
.fineprint b { color: var(--ink); font-weight: 500; }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .28s; }
  .hero-copy > :nth-child(5) { animation-delay: .36s; }
  .duo-wrap { animation: arrive 1.4s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* Postures (static: a 4-up "how the fold works" grid) */
.postures-head { display: none; }
.postures { list-style: none; margin: 0; padding: 0; }
.posture__num { display: block; font: 500 .78rem/1 var(--f-mono); letter-spacing: .18em; color: var(--terra-ink); text-transform: uppercase; margin-bottom: 10px; }
.posture h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: 10px; }
.posture h3 em { color: var(--moss-ink); font-weight: 500; }
.posture p { color: var(--ink-2); margin: 0; max-width: 32em; }
.posture__fig { margin: 0 0 18px; }

/* Device */
.unfold__device { position: relative; height: 100%; min-height: 360px; display: grid; place-items: center; }
.duo-wrap {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  perspective: 2000px;
  perspective-origin: 50% 40%;
}
.duo {
  --wi: clamp(120px, min(17vw, 26svh), 270px);
  --hi: calc(var(--wi) * 1.4067);
  --b: calc(var(--wi) * .052);
  --w: calc(var(--wi) + var(--b) * 1.5);
  --h: calc(var(--hi) + var(--b) * 2);
  --r: calc(var(--wi) * .13);
  position: relative;
  width: calc(var(--w) * 2);
  height: var(--h);
  transform-style: preserve-3d;
  /* Default: closed, cover facing you. JS takes over when motion is allowed. */
  transform: translateX(calc(var(--w) * .5)) rotateX(10deg) rotateY(-16deg) rotateZ(0deg) scale(1.12);
  will-change: transform;
}
.half { position: absolute; top: 0; width: var(--w); height: var(--h); transform-style: preserve-3d; }
.half--a { left: 0; }
.half--b { left: var(--w); transform-origin: 0 50%; transform: rotateY(-178deg); will-change: transform; }
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 30%),
    linear-gradient(#2E2A25, #1F1C18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 2px rgba(0, 0, 0, .35);
}
.half--a .face--front { border-radius: var(--r) calc(var(--r) * .18) calc(var(--r) * .18) var(--r); }
.half--b .face--front { border-radius: calc(var(--r) * .18) var(--r) var(--r) calc(var(--r) * .18); }
.face--back { transform: rotateY(180deg); border-radius: var(--r); }
.half--a .face--back { display: none; }
.screen {
  position: absolute;
  top: var(--b); bottom: var(--b);
  border-radius: calc(var(--r) * .5);
  overflow: hidden;
  background: #0E0D0B;
}
.half--a .screen { left: var(--b); right: calc(var(--b) * .5); border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.half--b .face--front .screen { left: calc(var(--b) * .5); right: var(--b); border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.face--back .screen { inset: var(--b); }
.screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05));
}
.layer { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; }
.layer.is-on { opacity: 1; }
.layer--cover { background-size: cover; background-position: 50% 50%; }
.layer--desk {
  inset: auto; left: 50%; top: 50%;
  width: calc(var(--hi) + 1px); height: calc(var(--wi) + var(--b) * .5);
  transform: translate(-50%, -50%) rotate(90deg);
  background-size: 100% 200%;
}
.half--a .layer--desk { background-position: 0 100%; }
.half--b .layer--desk { background-position: 0 0; }
.hinge {
  position: absolute; top: calc(var(--r) * .4); bottom: calc(var(--r) * .4); left: calc(var(--w) - var(--b) * .7);
  width: calc(var(--b) * 1.4);
  border-radius: 6px;
  background: linear-gradient(90deg, #151310, #4B453D 45%, #8C8274 52%, #3A352F 60%, #151310);
  transform: translateZ(-1px);
}
.duo-shadow {
  position: absolute; left: -12%; right: -12%; top: 4%; bottom: -10%;
  background: radial-gradient(closest-side, rgba(40, 26, 8, .40), rgba(40, 26, 8, .14) 55%, transparent);
  transform: translateZ(-30px) translateX(var(--shx, 0px)) scaleX(var(--shs, 1));
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .duo-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 55%, transparent); }
}

/* Image sources for the device layers (no inline styles: CSP-friendly) */
.sh-cover-thistlepin { background-image: url("/assets/shots/thistlepin_cover.webp?v=1"); }
.sh-desk-thistlepin { background-image: url("/assets/shots/thistlepin_desk.webp?v=1"); }
/* The rest are fetched after load (home.js adds .is-warm), keeping them off the critical path. */
.is-warm .sh-desk-kestrel { background-image: url("/assets/shots/kestrel_desk.webp?v=1"); }
.is-warm .sh-desk-groove { background-image: url("/assets/shots/groove_desk.webp?v=1"); }
.is-warm .sh-desk-sproutling { background-image: url("/assets/shots/sproutling_desk.webp?v=1"); }
.is-warm .sh-info-sproutling { background-image: url("/assets/shots/sproutling_info.webp?v=1"); }

/* Marginalia beside the device */
.margin-note {
  position: absolute; z-index: 3;
  font: italic 400 .98rem/1.35 var(--f-display);
  color: var(--ink-2);
  max-width: 15em;
  pointer-events: none;
}
.margin-note b { font: 500 .7rem/1 var(--f-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); display: block; margin-bottom: 6px; }
.margin-note--fig { right: 0; top: 0; text-align: right; max-width: 13em; }
.margin-note--fig::after { content: ""; display: block; width: 46px; height: 1px; background: var(--rule-2); margin: 10px 0 0 auto; }

.fern-deco { position: absolute; color: var(--moss); opacity: .13; pointer-events: none; z-index: 0; }
.fern-deco--hero { width: clamp(160px, 22vw, 320px); right: -4%; top: -2%; transform: rotate(14deg); }
@media (prefers-color-scheme: dark) { .fern-deco { opacity: .16; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--ink-3), transparent); display: block; }

.rail { display: none; }

/* Static layout (no JS or reduced motion): hero, then a 4-up posture grid. */
html:not(.motion) .unfold__stage { min-height: min(calc(100svh - var(--header-h)), 900px); }
html:not(.motion) .duo {
  transform: rotateX(56deg) rotateZ(-104deg) scale(1);
}
html:not(.motion) .half--b { transform: rotateY(-74deg); }
html:not(.motion) .duo .layer--desk.sh-desk-thistlepin { opacity: 1; }
html:not(.motion) .duo .layer--cover { opacity: 0; }
html:not(.motion) .postures-wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 4vw, 40px); }
html:not(.motion) .postures-head { display: block; margin-bottom: 36px; }
html:not(.motion) .postures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3vw, 40px); }
html:not(.motion) .posture__fig { height: 280px; display: flex; align-items: center; justify-content: center; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; overflow: hidden; }
html:not(.motion) .posture__fig img { max-height: 100%; max-width: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 18px 30px -18px var(--shade); }

/* Motion layout: one sticky stage, scroll drives the fold. */
html.motion .unfold { height: 560vh; }
html.motion .unfold__stage {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 0;
  padding-block: clamp(16px, 3vh, 40px);
}
html.motion .postures-wrap { position: relative; }
html.motion .postures-head { display: block; margin-bottom: 18px; }
html.motion .postures-head .kicker { margin: 0; }
html.motion .postures { display: grid; }
html.motion .posture { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
html.motion .posture.is-active { opacity: 1; transform: none; pointer-events: auto; }
html.motion .posture__fig { display: none; }
html.motion .unfold__copy .postures-wrap { opacity: 0; transition: opacity .5s var(--ease); }
html.motion .unfold.is-past-hero .unfold__copy .postures-wrap { opacity: 1; }
html.motion .hero-copy { transition: opacity .5s var(--ease), transform .6s var(--ease); }
html.motion .unfold.is-past-hero .hero-copy { opacity: 0; transform: translateY(-18px); pointer-events: none; visibility: hidden; transition: opacity .4s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
html.motion .scroll-cue { display: flex; transition: opacity .4s; }
html.motion .unfold.is-past-hero .scroll-cue { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.motion .scroll-cue i { animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

html.motion .rail { display: flex; gap: 6px; margin-top: 28px; }
.rail button {
  flex: 1; min-width: 0; padding: 12px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  border-top: 2px solid var(--rule-2);
  font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  transition: color .3s, border-color .3s;
}
.rail button[aria-current="step"] { color: var(--ink); border-top-color: var(--terra); }
.rail button:hover { color: var(--ink); }

.now-showing { margin-top: 14px; font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); min-height: 1.4em; }
.now-showing b { color: var(--terra-ink); font-weight: 500; }

@media (max-width: 860px) {
  .unfold__stage { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; }
  html:not(.motion) .unfold__stage { padding-top: 32px; }
  html:not(.motion) .unfold__device { min-height: 380px; }
  html.motion .unfold__stage { grid-template-rows: auto minmax(0, 1fr); }
  html.motion .unfold { height: 520vh; }
  .margin-note--fig { display: none; }
  html.motion .scroll-cue { display: none; }
  .fern-deco--hero { right: -20%; top: 10%; }
  html.motion .rail { margin-top: 16px; }
  html.motion .rail button { font-size: .6rem; letter-spacing: .08em; padding-top: 9px; }
  html.motion .postures-head { margin-bottom: 10px; }
  .now-showing { display: none; }
}
@media (max-width: 600px) {
  html.motion .posture h3 { font-size: 1.55rem; margin-bottom: 6px; }
  html.motion .posture p { font-size: .97rem; line-height: 1.5; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .hero-copy h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); margin-bottom: 12px; }
  .hero-copy .lede { font-size: 1rem; margin-bottom: 18px; }
  .hero-copy .lede .more { display: none; }
  .fineprint { margin-top: 12px; }
  .btn { min-height: 46px; }
}
@media (max-width: 400px) {
  .hero-copy .cta-row .btn--ghost, .final .cta-row .btn--ghost { display: none; }
}

/* ------------------------------------------------------------------ index of verbs + numbers */
.verbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); border-top: 1px solid var(--rule-2); }
.verb { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.verb__n { font: 500 .74rem/1 var(--f-mono); color: var(--terra-ink); letter-spacing: .1em; padding-top: .5em; }
.verb h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-style: italic; font-weight: 500; color: var(--moss-ink); }
.verb p { grid-column: 2; margin: 4px 0 0; color: var(--ink-2); }

.tally { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--rule-2); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 70%, transparent); }
.tally div { padding: clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--rule); }
.tally div:first-child { border-left: 0; }
.tally b { display: block; font: 600 clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem)/1 var(--f-display); letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.tally span { display: block; margin-top: 8px; font: 500 .74rem/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) {
  .tally { grid-template-columns: 1fr 1fr; }
  .tally div:nth-child(3) { border-left: 0; }
  .tally div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ collection */
.sec--collection { background: linear-gradient(transparent, color-mix(in srgb, var(--paper-3) 45%, transparent) 14%, color-mix(in srgb, var(--paper-3) 45%, transparent) 86%, transparent); }
.collection-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.collection-head .sec__head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--card); color: var(--ink-2);
  font: 500 .92rem/1 var(--f-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { font: 500 .72rem/1 var(--f-mono); opacity: .7; }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scrollbar-width: none; margin-bottom: 18px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { white-space: nowrap; }
}
.filter-status { font: 500 .78rem/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }

.plates {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  grid-auto-flow: dense;
}
.plate {
  position: relative;
  display: flex; flex-direction: column;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 26px -22px var(--shade);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.plate:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 40px -26px var(--shade); border-color: var(--rule-2); }
.plate:focus-within { border-color: var(--terra); }
.plate[hidden] { display: none; }
.plate__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.plate__no { color: var(--terra-ink); white-space: nowrap; }
.plate__cat { color: var(--ink-3); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate__roman {
  position: absolute; right: 12px; bottom: 4px;
  font: italic 500 2.6rem/1 var(--f-display); letter-spacing: -.02em;
  color: var(--ink); opacity: .08; pointer-events: none;
}
.plate[data-cat="game"] .plate__fig { background: color-mix(in srgb, var(--fern) 16%, var(--paper-2)); }
.plate[data-cat="music"] .plate__fig { background: color-mix(in srgb, var(--brass) 18%, var(--paper-2)); }
.plate[data-cat="media"] .plate__fig { background: color-mix(in srgb, var(--terra) 12%, var(--paper-2)); }
.plate[data-cat="gadget"] .plate__fig { background: color-mix(in srgb, var(--moss) 10%, var(--paper-2)); }
.plate[data-cat="curiosity"] .plate__fig { background: color-mix(in srgb, var(--brass) 8%, var(--paper-3)); }
.plate:nth-child(3n) .plate__fig svg { transform: rotate(-5deg); }
.plate:nth-child(3n+1) .plate__fig svg { transform: rotate(4deg) scale(.94); }
.plate__fig {
  position: relative; margin: 0 0 14px;
  aspect-ratio: 626 / 440;
  border-radius: 10px;
  background: var(--paper-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.plate__fig::before, .plate__fig::after { /* photo corners, like the app's plates */
  content: ""; position: absolute; width: 10px; height: 10px; z-index: 1;
  border: 5px solid transparent;
}
.plate__fig::before { left: 6px; top: 6px; border-left-color: var(--ink-2); border-top-color: var(--ink-2); opacity: .55; }
.plate__fig::after { right: 6px; bottom: 6px; border-right-color: var(--ink-2); border-bottom-color: var(--ink-2); opacity: .55; }
.plate__fig svg { width: 46%; height: auto; color: var(--ink-2); opacity: .82; }
.plate__fig img { width: 100%; height: 100%; object-fit: cover; }
.plate--shot .plate__fig { background: #111; }
.plate--shot .plate__fig::before, .plate--shot .plate__fig::after { display: none; }
.plate h3 { font-size: 1.28rem; line-height: 1.12; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.plate h3 button {
  all: unset; cursor: pointer;
}
.plate h3 button::after { content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 2; }
.plate h3 button:focus-visible::after { outline: 2.5px solid var(--terra); outline-offset: 3px; }
.plate__sp { display: block; margin-top: 3px; font: italic 400 .93rem/1.3 var(--f-display); color: var(--ink-2); }
.plate__tag { margin: 10px 0 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.plate__meta { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font: 500 .7rem/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.plate__meta span { display: inline-flex; align-items: center; gap: 5px; }
.plate__meta svg { width: 14px; height: 14px; color: var(--moss-ink); }
.plate--shot { grid-column: span 2; }
.plate--shot h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.75rem); }
@media (max-width: 520px) {
  .plates { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plate { padding: 11px 11px 13px; border-radius: 13px; }
  .plate__tag { display: none; }
  .plate--shot .plate__tag { display: block; }
  .plate h3 { font-size: 1.08rem; }
  .plate__sp { font-size: .82rem; }
  .plate__top { font-size: .58rem; letter-spacing: .08em; }
  .plate__cat { display: none; }
  .plate__meta .lb { display: none; }
  .plate--shot .plate__meta .lb { display: inline-flex; }
}

/* Plate viewer (dialog) */
.viewer {
  width: min(100% - 24px, 980px);
  max-height: min(100% - 24px, 820px);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(20, 16, 10, .58); }
.viewer[open] { display: grid; }
.viewer__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 0; max-height: inherit; }
.viewer__fig { margin: 0; background: var(--paper-2); display: grid; place-items: center; padding: clamp(18px, 3vw, 36px); border-right: 1px solid var(--rule); min-height: 0; }
.viewer__fig img { max-height: min(62vh, 640px); width: auto; border-radius: 14px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.viewer__fig { position: relative; }
.viewer__fig svg { width: 60%; color: var(--ink-2); }
.viewer__fig .plate__roman { font-size: 5rem; right: 24px; bottom: 16px; }
.viewer__body { padding: clamp(22px, 3.4vw, 44px); overflow: auto; display: flex; flex-direction: column; }
.viewer__no { font: 500 .74rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }
.viewer h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.viewer__sp { font: italic 400 1.15rem/1.3 var(--f-display); color: var(--ink-2); margin: 6px 0 18px; }
.viewer__tag { font-size: 1.1rem; line-height: 1.5; }
.viewer dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 14px 0 22px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.viewer dt, .viewer dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--rule); }
.viewer dt { font: 500 .68rem/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.viewer dd { font-weight: 500; }
.viewer dt:first-of-type, .viewer dd:first-of-type { border-top: 0; }
.viewer__nav { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 10px; }
.viewer__nav .count { margin: 0 auto; font: 500 .8rem/1 var(--f-mono); color: var(--ink-3); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--card); cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--prev svg { transform: scaleX(-1); }
.viewer__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .viewer.flip-next .viewer__in { animation: page-next .5s var(--ease); }
  .viewer.flip-prev .viewer__in { animation: page-prev .5s var(--ease); }
  .viewer[open] { animation: viewer-in .45s var(--ease); }
}
@keyframes page-next { 0% { opacity: .2; transform: perspective(1400px) rotateY(-14deg) translateX(30px); transform-origin: left center; } }
@keyframes page-prev { 0% { opacity: .2; transform: perspective(1400px) rotateY(14deg) translateX(-30px); transform-origin: right center; } }
@keyframes viewer-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 760px) {
  .viewer__in { grid-template-columns: 1fr; overflow: auto; }
  .viewer__fig { border-right: 0; border-bottom: 1px solid var(--rule); padding: 18px; }
  .viewer__fig img { max-height: 42vh; }
  .viewer__body { overflow: visible; }
}

/* ------------------------------------------------------------------ Sproutling */
.sprout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sprout-figs { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0; }
.mini-duo { margin: 0; padding: 9px; border-radius: 22px; background: linear-gradient(#2E2A25, #1F1C18); box-shadow: 0 40px 60px -36px var(--shade), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.mini-duo img { border-radius: 14px; width: 100%; }
.sprout-figs .mini-duo:first-child { transform: rotate(-4deg) translateX(10%); z-index: 1; }
.sprout-figs .mini-duo:last-child { transform: rotate(3deg) translateY(-12%); }
.sprout-figs figcaption { position: absolute; }
.timeline { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px dashed var(--rule-2); }
.timeline li { position: relative; padding: 18px 8px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--fern); box-shadow: 0 0 0 3px var(--paper); }
.timeline b { display: block; font: 600 1.05rem/1.2 var(--f-display); }
.timeline span { display: block; font: 500 .68rem/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
#herbarium-title { margin-top: clamp(56px, 8vw, 110px); }
#herbarium-title em { color: var(--moss-ink); font-weight: 500; }
.herbarium { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.specimen { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 12px 14px; text-align: center; transition: transform .45s var(--ease); }
.specimen:nth-child(odd) { transform: rotate(-1.2deg); }
.specimen:nth-child(even) { transform: rotate(1deg); }
.specimen:hover { transform: rotate(0) translateY(-4px); }
.lcd { background: var(--lcd); border-radius: 8px; padding: 12px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18); margin-bottom: 12px; }
.lcd svg { width: 100%; height: auto; shape-rendering: crispEdges; }
.lcd .px { fill: var(--lcd-ink); }
.lcd .px2 { fill: #7E8870; }
.lcd .ghost { fill: #C0CAAB; }
.specimen b { display: block; font: 400 .74rem/1.2 var(--f-pixel); letter-spacing: .04em; }
.specimen span { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 980px) {
  .herbarium { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sprout-grid { grid-template-columns: 1fr; }
  .sprout-figs { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr 1fr 1fr; row-gap: 22px; }
  .herbarium { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ online (night section) */
.night {
  --paper: var(--night); --paper-2: var(--night-2); --card: #1A2217;
  --ink: #EFE6D3; --ink-2: #C9BFAA; --ink-3: #A39A86; --moss-ink: #A9CC95; --terra-ink: #EE9478;
  --rule: rgba(239, 230, 211, .12); --rule-2: rgba(239, 230, 211, .26);
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(125, 162, 106, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(180, 138, 76, .12), transparent 70%),
    var(--night);
  color: var(--ink);
}
.night .btn--ghost { --fg: var(--ink); }
.online-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ticks { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 9px; height: 9px; margin: .55em 0 0 6px; border-radius: 2px; background: var(--fern); transform: rotate(45deg); }
.ticks b { color: var(--ink); font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.quick li { font: 400 .72rem/1 var(--f-pixel); padding: 9px 12px 8px; border-radius: 10px 10px 10px 2px; background: rgba(239, 230, 211, .08); border: 1px solid var(--rule); color: var(--ink); }

.console {
  border-radius: 24px;
  padding: clamp(14px, 2vw, 22px);
  background: linear-gradient(#2A2622, #1B1815);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.console__screen { position: relative; border-radius: 14px; background: #0A0F09; padding: clamp(14px, 2vw, 22px); color: #B9E59E; overflow: hidden; }
.console__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .22) 2px 3px); }
.console__label { display: flex; justify-content: space-between; gap: 10px; font: 400 .68rem/1 var(--f-pixel); color: #7DA26A; letter-spacing: .06em; margin-bottom: 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5A6B52; }
.is-live .live-dot::before { background: #8EF06A; box-shadow: 0 0 8px #8EF06A; }
.pong { position: relative; height: 74px; border: 1px dashed rgba(185, 229, 158, .25); border-radius: 6px; margin-bottom: 16px; }
.pong::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; border-left: 2px dashed rgba(185, 229, 158, .25); }
.pong__pad { position: absolute; top: 18px; width: 5px; height: 26px; background: #B9E59E; }
.pong__pad--l { left: 10px; }
.pong__pad--r { right: 10px; }
.pong__ball { position: absolute; left: 18px; top: 30px; width: 7px; height: 7px; background: #E8FFD8; box-shadow: 0 0 10px #B9E59E; }
.pong__names { position: absolute; top: 4px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 22px; font: 400 .6rem/1 var(--f-pixel); color: rgba(185, 229, 158, .6); }
@media (prefers-reduced-motion: no-preference) {
  .pong__ball { animation: pong-x 2.4s linear infinite alternate, pong-y 1.1s ease-in-out infinite alternate; }
  .pong__pad--l { animation: pad 2.4s ease-in-out infinite alternate; }
  .pong__pad--r { animation: pad 2.4s ease-in-out infinite alternate-reverse; }
}
@keyframes pong-x { to { left: calc(100% - 25px); } }
@keyframes pong-y { from { top: 10px; } to { top: 56px; } }
@keyframes pad { from { transform: translateY(-10px); } to { transform: translateY(18px); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { border: 1px solid rgba(185, 229, 158, .18); border-radius: 8px; padding: 8px 10px 6px; }
.stat b { display: block; font: 400 clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem)/1 var(--f-lcd); color: #D8FFC2; }
.stat span { display: block; font: 400 .52rem/1.2 var(--f-pixel); color: #7DA26A; letter-spacing: .04em; margin-top: 2px; }
.board-mini { width: 100%; border-collapse: collapse; font: 400 1.35rem/1.1 var(--f-lcd); }
.board-mini caption { text-align: left; font: 400 .66rem/1 var(--f-pixel); color: #7DA26A; padding-bottom: 8px; }
.board-mini td { padding: 4px 0; border-top: 1px dashed rgba(185, 229, 158, .14); }
.board-mini td:first-child { width: 2.4em; color: #7DA26A; }
.board-mini td:last-child { text-align: right; color: #E8FFD8; }
.board-mini .skel td span { display: inline-block; height: .7em; width: 60%; background: rgba(185, 229, 158, .14); border-radius: 2px; }
.console__msg { font: 400 1.2rem/1.25 var(--f-lcd); color: #B9E59E; margin: 6px 0 0; }
.console__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 0 4px; font: 500 .7rem/1.3 var(--f-mono); color: #8E8574; }
@media (max-width: 920px) { .online-grid { grid-template-columns: 1fr; } }
/* Leaderboards are not open yet: the console explains them instead of showing empty scores. */
.soon-dot { display: inline-flex; align-items: center; gap: 6px; color: #E8C27A; }
.soon-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E8C27A; box-shadow: 0 0 8px #E8C27A; }
@media (prefers-reduced-motion: no-preference) { .soon-dot::before { animation: soon-blink 1.6s steps(2) infinite; } }
@keyframes soon-blink { 50% { opacity: .25; } }
.soon-head { margin: 0 0 6px; font: 400 .66rem/1 var(--f-pixel); color: #7DA26A; letter-spacing: .06em; }
.soon-list { list-style: none; margin: 0; padding: 0; font: 400 clamp(1.3rem, 1.05rem + .8vw, 1.6rem)/1.1 var(--f-lcd); text-transform: uppercase; }
.soon-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(185, 229, 158, .14); }
.soon-list li:last-child { border-bottom: 1px dashed rgba(185, 229, 158, .14); }
.soon-list span { color: #E8FFD8; }
.soon-list i { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(185, 229, 158, .3); transform: translateY(-5px); }
.soon-list b { font-weight: 400; color: #B9E59E; }
.soon-msg { margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) { .soon-msg::after { content: "_"; animation: soon-blink 1.1s steps(2) infinite; } }
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .board-mini { font-size: 1.2rem; }
}

/* ------------------------------------------------------------------ field notes */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.note-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px 18px 18px 18px;
  box-shadow: 0 18px 34px -30px var(--shade);
}
.note-card::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 24px; width: 70px; height: 20px;
  background: color-mix(in srgb, var(--brass) 40%, transparent); transform: rotate(-3deg); border-radius: 2px;
}
.note-card__plate { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.note-card h3 { font-size: 1.5rem; margin: 10px 0 16px; }
.hints { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.hint { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.hint i { font: 500 .62rem/1 var(--f-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hint span { font: italic 400 1.04rem/1.4 var(--f-display); }
.hint[hidden] { display: none; }
.hint--redacted span { font-style: normal; }
.redact { display: inline-block; width: min(13em, 100%); height: .9em; vertical-align: -.08em; border-radius: 2px; background: var(--ink); opacity: .85; }
.note-card .btn { margin-top: auto; align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .hint.is-new { animation: rise .6s var(--ease); }
}
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ------------------------------------------------------------------ packs */
.packs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.shelf { position: relative; display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 10px); padding: 0 12px; max-width: 100%; height: 340px; border-bottom: 10px solid #6E4F2E; border-radius: 2px; }
.shelf::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -22px; height: 12px; background: radial-gradient(closest-side, var(--shade), transparent); }
.vol {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  flex: none; width: clamp(50px, 15vw, 74px); padding: 18px 0 16px;
  border-radius: 5px 5px 2px 2px;
  font-family: var(--f-display);
  box-shadow: inset -8px 0 14px -8px rgba(0, 0, 0, .45), inset 6px 0 10px -8px rgba(255, 255, 255, .5);
}
.vol--one { height: 300px; width: clamp(66px, 20vw, 92px); background: linear-gradient(90deg, #2F4A2C, #3D5A39 40%, #34502F); color: #F3EBDC; }
.vol--one .vol__band { width: 100%; height: 2px; background: #B48A4C; box-shadow: 0 6px 0 #B48A4C; }
.vol__num { font-size: 2rem; font-weight: 600; }
.vol__title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.05rem; letter-spacing: .02em; font-weight: 500; }
.vol--ghost { height: 260px; border: 1.5px dashed var(--rule-2); background: transparent; box-shadow: none; color: var(--ink-3); }
.vol--ghost:nth-child(3) { height: 280px; }
.vol--ghost:nth-child(4) { height: 240px; opacity: .7; }
.vol--ghost .vol__num { font-size: 1.4rem; font-weight: 400; font-style: italic; }
.vol--ghost svg { width: 36px; height: 30px; opacity: .8; image-rendering: pixelated; }
.vol--lean { transform: rotate(8deg); transform-origin: bottom right; margin-left: 6px; }
.packs__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.packs__list li { display: flex; gap: 14px; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 10px; }
.packs__list b { font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; color: var(--terra-ink); min-width: 4.5em; text-transform: uppercase; }
@media (max-width: 860px) {
  .packs { grid-template-columns: 1fr; }
  .shelf { height: 280px; justify-content: center; }
  .vol--one { height: 250px; }
  .vol--ghost { height: 210px; }
  .vol--ghost:nth-child(3) { height: 230px; }
  .vol--ghost:nth-child(4) { height: 190px; }
}

/* ------------------------------------------------------------------ privacy promise */
.promise { text-align: center; }
.promise .h2 { max-width: 14em; margin: 0 auto 22px; }
.promise .lede { margin-inline: auto; }
.promise-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); text-align: left; border-top: 1px solid var(--rule-2); }
.promise-cols div { padding: 24px 24px 0 0; }
.promise-cols div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.promise-cols h3 { font-size: 1.3rem; margin-bottom: 8px; }
.promise-cols p { color: var(--ink-2); font-size: .98rem; margin: 0; }
@media (max-width: 760px) {
  .promise-cols { grid-template-columns: 1fr; }
  .promise-cols div, .promise-cols div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ final CTA */
.final { position: relative; overflow: hidden; text-align: center; }
.final .h2 { font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6rem); line-height: .98; letter-spacing: -.03em; max-width: 11em; margin: 0 auto 26px; }
.final .lede { margin: 0 auto 34px; }
.final .cta-row { justify-content: center; }
.final .fern-deco { width: clamp(140px, 18vw, 260px); }
.final .fern-deco--l { left: -2%; bottom: -10%; transform: rotate(-24deg); }
.final .fern-deco--r { right: -2%; top: -8%; transform: rotate(160deg); }
.final .wrap { position: relative; z-index: 1; }
.final__frame { padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 48px); border: 1px solid var(--rule-2); outline: 1px solid var(--rule-2); outline-offset: 7px; border-radius: 4px; background: color-mix(in srgb, var(--card) 55%, transparent); }
.final__frame::before, .final__frame::after { content: "✦"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 0 12px; background: var(--paper); color: var(--brass); font-size: 14px; line-height: 26px; }
.final__frame::after { top: auto; bottom: -13px; }
.final .fern-deco { opacity: .2; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--rule-2); padding: 48px 0 40px; font-size: .95rem; }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer p { color: var(--ink-3); margin: 12px 0 0; max-width: 26em; }
.site-footer h2 { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; border-top: 1px solid var(--rule); font: 500 .74rem/1.4 var(--f-mono); color: var(--ink-3); }
@media (max-width: 720px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__in > :first-child { grid-column: 1 / -1; } }
.site-footer p a, .site-footer__base a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.social { display: flex !important; gap: 8px !important; margin-top: 16px !important; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule-2); border-radius: 50%; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ------------------------------------------------------------------ reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-in > :nth-child(2) { transition-delay: .06s; }
  .js .reveal-stagger.is-in > :nth-child(3) { transition-delay: .12s; }
  .js .reveal-stagger.is-in > :nth-child(4) { transition-delay: .18s; }
  .js .reveal-stagger.is-in > :nth-child(5) { transition-delay: .24s; }
  .js .reveal-stagger.is-in > :nth-child(6) { transition-delay: .3s; }
}

/* ------------------------------------------------------------------ inner pages (support, privacy, 404) */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); letter-spacing: -.03em; line-height: .98; max-width: 12em; }
.page-hero h1 em { color: var(--moss-ink); font-weight: 500; }
.page-hero .lede { margin-top: 22px; }
.page-hero .fern-deco { width: clamp(120px, 16vw, 220px); right: 2%; top: 8%; transform: rotate(12deg); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; font-size: .9rem; color: var(--ink-2); background: var(--card); }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.prose { padding-bottom: clamp(60px, 9vw, 120px); }
.prose section { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px 40px; }
.prose section > h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.12; }
.prose section > h2 small { display: block; font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 10px; }
.prose section > div > :last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.18rem; margin: 22px 0 8px; font-variation-settings: "opsz" 36; letter-spacing: 0; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--fern); }
.prose a { color: var(--moss-ink); text-underline-offset: 3px; }
.prose kbd, .path {
  font: 500 .86em/1 var(--f-mono); padding: 3px 7px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap;
}
.postures-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 18px; padding: 0; list-style: none; }
.postures-mini li { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); margin: 0; }
.postures-mini b { display: block; font: 600 1.05rem/1.2 var(--f-display); color: var(--ink); margin-bottom: 4px; }
.callout { padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--fern); margin: 0 0 1em; }
.callout p:last-child { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--moss); color: #F3EBDC; }
.contact-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.contact-card p { color: rgba(243, 235, 220, .85) !important; margin: 6px 0 0; }
.contact-card .btn { --bg: #F3EBDC; --fg: #1F1B16; }
@media (prefers-color-scheme: dark) {
  .contact-card { background: #24331F; }
}
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.summary li { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); }
.summary b { display: block; font: 600 1.15rem/1.2 var(--f-display); margin-bottom: 6px; }
.summary span { color: var(--ink-2); font-size: .95rem; }
table.data { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
table.data th { font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
table.data td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .prose section { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .postures-mini { grid-template-columns: 1fr; }
  .table-scroll { overflow-x: auto; }
}

.lost { min-height: calc(100svh - var(--header-h) - 160px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost__mark { width: 132px; height: 108px; margin: 0 auto 28px; image-rendering: pixelated; shape-rendering: crispEdges; }
.lost h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); letter-spacing: -.03em; line-height: .98; margin-bottom: 18px; }
.lost h1 em { color: var(--moss-ink); font-weight: 500; }
.lost .lede { margin: 0 auto 30px; }
.lost .cta-row { justify-content: center; }
.lost__code { font: 400 1.6rem/1 var(--f-lcd); color: var(--terra-ink); margin-bottom: 14px; letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) {
  .lost__mark { animation: droop 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes droop { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }

/* ------------------------------------------------------------------ leaderboards page */
.lb-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.lb-hero h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5rem); letter-spacing: -.03em; line-height: .98; }
.lb-hero h1 em { color: var(--moss-ink); font-weight: 500; }
.lb-hero .lede { margin-top: 18px; }
.lb-hero .fern-deco { width: clamp(120px, 16vw, 220px); right: 0; top: 4%; transform: rotate(14deg); }
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.lb-stats div { padding: 16px 20px; border-left: 1px solid var(--rule); }
.lb-stats div:first-child { border-left: 0; }
.lb-stats b { display: block; font: 400 2.4rem/1 var(--f-lcd); color: var(--moss-ink); min-height: 1em; }
.lb-stats span { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) {
  .lb-stats { grid-template-columns: 1fr 1fr; }
  .lb-stats div:nth-child(3) { border-left: 0; }
  .lb-stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.lb-banner { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--brass); font-size: .95rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.lb-banner[hidden] { display: none; }
.lb-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.lb-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100svh - var(--header-h) - 32px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.lb-search { position: relative; padding: 14px; border-bottom: 1px solid var(--rule); }
.lb-search svg { position: absolute; left: 28px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.lb-search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--rule-2);
  background: var(--paper); color: var(--ink); font: 400 1rem/1 var(--f-body);
}
.lb-search input::placeholder { color: var(--ink-3); }
.lb-search input:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 1px; }
.lb-cats { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.lb-cats::-webkit-scrollbar { display: none; }
.lb-cats .chip { min-height: 32px; padding: 0 12px; font-size: .82rem; white-space: nowrap; }
.lb-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.lb-list li[hidden] { display: none; }
.lb-item {
  display: grid; grid-template-columns: 3.4em 1fr auto; gap: 8px; align-items: center;
  width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer;
  transition: background-color .15s;
}
.lb-item:hover { background: var(--paper-2); }
.lb-item[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lb-item[aria-current="true"] .lb-item__no, .lb-item[aria-current="true"] .lb-item__meta { color: inherit; opacity: .75; }
.lb-item__no { font: 500 .66rem/1 var(--f-mono); color: var(--terra-ink); letter-spacing: .06em; }
.lb-item__name { font-weight: 500; line-height: 1.25; }
.lb-item__meta { font: 500 .66rem/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.lb-item--global { margin-bottom: 6px; border: 1px dashed var(--rule-2); }
.lb-item--global .lb-item__name { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; }
.lb-empty-list { padding: 18px 14px; color: var(--ink-3); font-size: .95rem; }
.lb-main { min-width: 0; }
.board { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.board__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--rule); background: linear-gradient(var(--card), var(--paper-2)); }
.board__fig { grid-row: span 3; width: clamp(72px, 10vw, 120px); aspect-ratio: 1; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.board__fig img { width: 100%; height: 100%; object-fit: cover; }
.board__fig svg { width: 64%; color: var(--ink-2); }
.board__no { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.board h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
.board__sp { font: italic 400 1.02rem/1.3 var(--f-display); color: var(--ink-2); }
.tabs { display: flex; gap: 6px; padding: 14px clamp(14px, 3vw, 30px) 0; border-bottom: 1px solid var(--rule); }
.tab {
  position: relative; padding: 10px 14px 12px; border: 0; background: none; cursor: pointer;
  font: 600 .95rem/1 var(--f-body); color: var(--ink-3);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--terra); }
.tab:disabled { cursor: not-allowed; opacity: .45; }
.board__note { margin: 0; padding: 12px clamp(14px, 3vw, 30px); font: 500 .74rem/1.4 var(--f-mono); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.ranks { width: 100%; border-collapse: collapse; }
.ranks th { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--rule); }
.ranks td { padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ranks th:first-child, .ranks td:first-child { padding-left: clamp(14px, 3vw, 30px); width: 4.6em; }
.ranks th:last-child, .ranks td:last-child { padding-right: clamp(14px, 3vw, 30px); text-align: right; }
.ranks tr:last-child td { border-bottom: 0; }
.rk { font: 500 .9rem/1 var(--f-mono); color: var(--ink-3); }
.rk--1, .rk--2, .rk--3 { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 .95rem/1 var(--f-display); color: #1F1B16; }
.rk--1 { background: radial-gradient(circle at 35% 30%, #F5D58A, #C9A050); }
.rk--2 { background: radial-gradient(circle at 35% 30%, #F0EEE6, #B9B3A4); }
.rk--3 { background: radial-gradient(circle at 35% 30%, #E9B58E, #B4774C); }
.nick { font: 400 1.75rem/1 var(--f-lcd); letter-spacing: .14em; }
.val { font: 500 1rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.when { font: 500 .74rem/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.ranks .skel span { display: inline-block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .ranks .skel span { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.board__state { padding: clamp(36px, 6vw, 70px) 24px; text-align: center; }
.board__state svg.state-mark { width: 84px; height: 70px; margin: 0 auto 18px; image-rendering: pixelated; shape-rendering: crispEdges; }
.board__state h3 { font-size: 1.7rem; margin-bottom: 8px; }
.board__state p { color: var(--ink-2); max-width: 30em; margin: 0 auto 18px; }
.board__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px clamp(14px, 3vw, 30px); border-top: 1px solid var(--rule); font: 500 .74rem/1.4 var(--f-mono); color: var(--ink-3); }
@media (max-width: 900px) {
  .lb-layout { grid-template-columns: 1fr; }
  .lb-side { position: relative; top: 0; max-height: 46svh; }
}
@media (max-width: 520px) {
  .ranks .col-when { display: none; }
  .nick { font-size: 1.5rem; }
  .board__head { grid-template-columns: 1fr; }
  .board__fig { display: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .unfold__device, .btn, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------ leaderboards: coming soon */
.lbs-hero { padding-bottom: clamp(48px, 7vw, 96px); }
.lbs-hero .kicker { gap: 10px; }
.lbs-hero .kicker::before { display: none; }
.lbs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra) 18%, transparent); }
@media (prefers-reduced-motion: no-preference) { .lbs-dot { animation: lbs-pulse 2.4s ease-in-out infinite; } }
@keyframes lbs-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--terra) 4%, transparent); } }
.lbs-hero h1 { max-width: 12em; }
.lbs-hero h1 em { display: block; }
.lbs-cta { margin-top: clamp(26px, 3.4vw, 40px); }

.lbs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); }
.lbs-list { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; gap: 4px; }
.lbs-list li { display: grid; grid-template-columns: 54px 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.lbs-list li:last-child { border-bottom: 0; }
.lbs-n { font: 500 .78rem/1.9 var(--f-mono); color: var(--terra-ink); letter-spacing: .1em; }
.lbs-list h3 { font-size: 1.5rem; margin: 0 0 6px; }
.lbs-list p { margin: 0; color: var(--ink-2); }

.lbs-preview { position: relative; margin: 0; }
.lbs-board { position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: 18px; background: #0A0F09; color: #B9E59E; box-shadow: 0 0 0 10px #22261F, 0 0 0 11px rgba(0, 0, 0, .4), 0 40px 70px -30px rgba(31, 27, 22, .55); overflow: hidden; }
.lbs-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .22) 2px 3px); }
.lbs-board__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; font: 400 .66rem/1.3 var(--f-pixel); letter-spacing: .06em; color: #7DA26A; }
.lbs-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 400 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.15 var(--f-lcd); }
.lbs-rows li { display: grid; grid-template-columns: 2.2em 1fr auto; padding: 4px 6px; border-radius: 4px; opacity: calc(1 - var(--i, 0) * .14); }
.lbs-rows li:nth-child(1) { --i: 0; background: rgba(185, 229, 158, .08); }
.lbs-rows li:nth-child(2) { --i: 1; } .lbs-rows li:nth-child(3) { --i: 2; } .lbs-rows li:nth-child(4) { --i: 3; } .lbs-rows li:nth-child(5) { --i: 4; }
.lbs-rows span { color: #7DA26A; }
.lbs-rows i { font-style: normal; letter-spacing: .08em; }
.lbs-board__msg { margin: 14px 0 0; font: 400 1.25rem/1.2 var(--f-lcd); color: #B9E59E; }
@media (prefers-reduced-motion: no-preference) { .lbs-board__msg::after { content: "_"; animation: lbs-blink 1.1s steps(2) infinite; } }
@keyframes lbs-blink { 50% { opacity: 0; } }
.lbs-stamp { position: absolute; top: -14px; right: -10px; padding: 8px 14px; border: 2.5px double var(--terra); border-radius: 6px; background: var(--paper); color: var(--terra); font: 700 .78rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 8px 18px -10px var(--shade); }
.lbs-preview figcaption { margin-top: 26px; font: italic 400 1rem/1.5 var(--f-display); color: var(--ink-3); text-align: center; }

.lbs-steps-sec { padding-block: clamp(64px, 9vw, 128px); background: color-mix(in srgb, var(--paper-3) 45%, transparent); border-top: 1px solid var(--rule); }
.lbs-steps { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.lbs-steps li { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--rule); border-radius: 18px; background: var(--card); box-shadow: 0 20px 40px -30px var(--shade); }
.lbs-step { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; margin-bottom: 18px; border-radius: 999px; border: 1px solid var(--rule-2); font: 500 1.1rem/1 var(--f-display); color: var(--moss-ink); }
.lbs-steps h3 { font-size: 1.4rem; margin: 0 0 8px; }
.lbs-steps p { margin: 0; color: var(--ink-2); }
.lbs-promise { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin-top: clamp(32px, 4vw, 52px); color: var(--ink-2); }
.lbs-promise .state-mark { flex: none; width: 34px; height: auto; margin-top: 2px; shape-rendering: crispEdges; }
.lbs-promise p { margin: 0; }
.lbs-promise b { color: var(--ink); }
.lbs-promise a { color: var(--moss-ink); }
@media (max-width: 860px) {
  .lbs-grid { grid-template-columns: 1fr; }
  .lbs-steps { grid-template-columns: 1fr; }
  .lbs-stamp { right: 0; }
}
