/* Wickpad. The design language is measured from a reference site (site/design/parameter-ai/): near-black canvas
   with a dither tile, one blue accent, Geist at medium weight with tight tracking, pixel-face bracket labels,
   2 px corners, hairlines at 10% of the foreground, dithered voxel pictures. No inline style anywhere: the CSP
   refuses it. Breakpoints: 640, 1024 (the reference's lg), 1280. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Pixel'; src: url('/fonts/geist-pixel-square-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* colour roles (measured) */
  --canvas: #0b0c0f;
  --fg: #f1f3f9;
  --fg-70: rgba(241, 243, 249, 0.7);
  --fg-50: rgba(241, 243, 249, 0.5);
  --fg-20: rgba(241, 243, 249, 0.2);
  --fg-10: rgba(241, 243, 249, 0.1);
  --fg-05: rgba(241, 243, 249, 0.05);
  --ink: #090a0b;
  --panel: #101010;
  --panel-deep: #060606;
  --field: #18191d;
  --accent: #3370ff;
  /* The accent as a fill under text and as text: one step darker and one lighter than the measured #3370ff,
     so the words on and in it reach 4.5:1 (the house contrast floor); lines, rings and pixels keep #3370ff. */
  --accent-btn: #2b5fe6;
  --accent-text: #4d82ff;
  --accent-10: rgba(51, 112, 255, 0.1);
  --accent-20: rgba(51, 112, 255, 0.2);
  /* the pixel palette: one colour per category */
  --up: #00e58a;
  --down: #ef4444;
  --down-text: #ff5c5c;
  --cyan: #00ffff;
  --violet: #7b61ff;
  --orange: #ff7a45;
  --lime: #efff45;
  --gold: #f3ba2f;
  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pixel: 'Geist Pixel', 'Geist Mono', ui-monospace, monospace;
  /* geometry */
  --r: 2px;
  --r-lg: 4px;
  --gut: 20px;
  --max: 1440px;
  --top-h: 44px;
  --sec-y: 64px;
  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-act: 0.14s;
  color-scheme: dark;
}
@media (min-width: 1024px) { :root { --gut: 80px; --top-h: 72px; --sec-y: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--canvas) url('/img/dither.png') repeat; color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
sub { font-size: 0.7em; vertical-align: -0.2em; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.muted { color: var(--fg-50); }
.small { font-size: 13px; }
.vh { position: absolute; 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: -9999px; top: 8px; z-index: 100; background: var(--accent-btn); color: var(--fg); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 8px; }
.ic { width: 1em; height: 1em; flex: none; }
.px-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Interaction (measured): 140 ms on transform, filter, colours and shadow; buttons brighten 1.12 and press to
   .97, links brighten 1.4; focus is a 2 px accent ring 2 px out. */
.act { cursor: pointer; transition: transform var(--t-act), filter var(--t-act), background-color var(--t-act), border-color var(--t-act), box-shadow var(--t-act); }
.act:hover { filter: brightness(1.12); }
.act:active { transform: scale(0.97); }
.act-link { cursor: pointer; transition: filter var(--t-act), opacity var(--t-act); }
.act-link:hover { filter: brightness(1.4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }

/* ------------------------------------------------------------------ the frame */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.main { flex: 1; width: 100%; }

/* ------------------------------------------------------------------ header */

.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 12, 15, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top-in {
  max-width: var(--max); margin: 0 auto; padding: 0 20px; min-height: var(--top-h);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'brand chip actions' 'nav nav x'; align-items: center; column-gap: 12px;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; height: var(--top-h); }
.brand-mark { width: 22px; height: 20px; image-rendering: pixelated; }
.wordmark { font-weight: 500; font-size: 20px; letter-spacing: -0.6px; line-height: 1; }
.nav { grid-area: nav; display: flex; gap: 2px; align-items: center; margin: 0 -8px; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-a { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-70); text-decoration: none; padding: 6px 8px; white-space: nowrap; }
.nav-a.is-on { color: var(--fg); }
.nav-a.is-on::before { color: var(--accent); }
.nav-a::before { content: '/ '; color: var(--fg-50); }
@media (max-width: 639px) { .nav-a::before { content: none; } }
.top-x { grid-area: x; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--fg-70); text-decoration: none; padding: 6px 0 6px 8px; margin-bottom: 8px; white-space: nowrap; }
.top-x .ic { width: 14px; height: 14px; color: var(--fg); }
.chip-round { grid-area: chip; justify-self: end; display: inline-flex; align-items: center; gap: 7px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-50); white-space: nowrap; }
.chip-dot { width: 6px; height: 6px; background: var(--up); animation: blink 1.6s ease-in-out infinite; }
.chip-v { color: var(--fg); font-family: var(--mono); font-size: 13px; min-width: 4ch; }
.actions { grid-area: actions; display: inline-flex; align-items: center; gap: 20px; }
.btn-wallet { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--accent-btn); color: var(--fg); font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.45px; white-space: nowrap; }
.btn-wallet .ic { width: 15px; height: 15px; }
.btn-wallet.is-on { background: var(--fg-05); box-shadow: inset 0 0 0 1px var(--fg-10); font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
@media (max-width: 420px) { .chip-k { display: none; } .btn-wallet { padding: 0 11px; } .btn-wallet .ic { display: none; } }
@media (min-width: 1024px) {
  .top-in { padding: 0 var(--gut); grid-template-columns: auto 1fr auto auto auto; grid-template-areas: 'brand nav chip x actions'; column-gap: 24px; }
  .nav { justify-self: center; margin: 0; padding: 0; gap: 8px; overflow: visible; }
  .nav-a { font-size: 13px; padding: 8px 10px; }
  .top-x { margin: 0; padding: 6px 0; font-size: 13px; }
}

/* ------------------------------------------------------------------ type */

.eyebrow { font-family: var(--pixel); font-size: 13px; line-height: 1; letter-spacing: 0.26px; text-transform: uppercase; color: var(--fg-50); margin: 0; }
.h1 { font-weight: 500; font-size: 36px; line-height: 1.2; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.h1-sub { font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; margin: 0; }
.h2 { font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.h2 .dim, .h1 .dim { color: var(--fg-50); }
.h2 span, .h1 span { display: block; }
.h3 { font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.6px; margin: 0; }
.lede { font-size: 16px; line-height: 1.5; letter-spacing: -0.03em; color: var(--fg-70); margin: 0; max-width: 46ch; }
.body { font-size: 15px; line-height: 1.5; letter-spacing: -0.03em; color: var(--fg-50); margin: 0; }
.caption { font-size: 13px; line-height: 1; letter-spacing: -0.03em; color: var(--fg-50); margin: 0; }
@media (min-width: 1024px) {
  .h1 { font-size: 60px; }
  .h1-sub { font-size: 44px; }
  .h2 { font-size: 44px; }
  .lede { font-size: 18px; }
}

/* ------------------------------------------------------------------ buttons */

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: -0.51px; line-height: 1; text-decoration: none; white-space: nowrap; overflow: hidden; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn-primary { background: var(--accent-btn); color: var(--fg); }
.btn-light { background: var(--fg); color: var(--ink); border-color: var(--fg-20); }
.btn-ghost { background: var(--fg-05); color: var(--fg); border-color: var(--fg-10); }
.btn-wide { width: 100%; height: 48px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 15px; letter-spacing: -0.45px; }
/* The primary call to action carries a column of lit pixels at each end. */
.btn-px { padding: 0 44px; }
.btn-px::before, .btn-px::after { content: ''; position: absolute; top: 0; bottom: 0; width: 20px; background: url('/img/px-corner.svg') no-repeat center / 20px 40px; animation: twinkle 2.4s ease-in-out infinite; }
.btn-px::before { left: 0; }
.btn-px::after { right: 0; transform: scaleX(-1); animation-delay: 1.2s; }
.more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 13px; letter-spacing: 0.26px; text-transform: uppercase; color: var(--accent-text); text-decoration: none; }
.more .ic { width: 13px; height: 13px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cta-col { display: grid; gap: 8px; justify-items: center; }

/* ------------------------------------------------------------------ surfaces */

/* A pixel-stepped block: the body plus two shorter tabs at its sides, so its corners read as cut pixels. */
.stepped { position: relative; background: var(--fg-05); border-radius: var(--r); }
.stepped::before, .stepped::after { content: ''; position: absolute; top: 6px; bottom: 6px; width: 6px; background: var(--fg-05); }
.stepped::before { left: -6px; }
.stepped::after { right: -6px; }
.cardbox { border: 1px solid var(--fg-10); border-radius: var(--r); padding: 20px; min-width: 0; }
.cardbox.is-accent { border-color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--fg-10); border-radius: var(--r-lg); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--fg-10); }
.panel-b { padding: 18px; }
.panel-t { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 13px; letter-spacing: 0.26px; text-transform: uppercase; color: var(--fg-70); margin: 0; }
.panel-t .ic { color: var(--accent); width: 14px; height: 14px; }
@media (min-width: 1024px) { .cardbox { padding: 32px; } }

/* The band: a lighter strip whose top and bottom edges are stitched pixels. */
.band { position: relative; background: var(--fg-05); padding: 32px 0; }
.band::before, .band::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: url('/img/stitch.svg') repeat-x 0 0 / 48px 8px; }
.band::before { top: -8px; }
.band::after { bottom: -8px; transform: scaleY(-1); }
/* A stitched rule between sections. */
.stitch { height: 8px; background: url('/img/stitch.svg') repeat-x 0 0 / 48px 8px; opacity: 0.6; }

/* Crosshair marks at grid intersections. */
.cross { position: absolute; width: 9px; height: 9px; pointer-events: none; }
.cross::before, .cross::after { content: ''; position: absolute; background: var(--fg-20); }
.cross::before { left: 4px; top: 0; width: 1px; height: 9px; }
.cross::after { top: 4px; left: 0; height: 1px; width: 9px; }

/* ------------------------------------------------------------------ sections */

.sec { padding-block: var(--sec-y); }
.sec-head { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-head-row { display: grid; gap: 24px; align-items: end; margin-bottom: 40px; }
@media (min-width: 1024px) {
  .sec-head { gap: 24px; margin-bottom: 64px; }
  .sec-head-row { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 64px; }
}

/* ------------------------------------------------------------------ the opening drawings */

.opening { width: 100%; margin: 0; }
.opening .drawing { width: 100%; height: auto; }

/* ------------------------------------------------------------------ home: hero */

.hero { position: relative; display: grid; gap: 24px; padding: 24px 0 40px; }
.hero-copy { display: grid; gap: 24px; align-content: start; min-width: 0; }
.hero-t { display: grid; gap: 16px; }
.badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 0 14px 0 10px; height: 36px; font-size: 15px; letter-spacing: -0.45px; color: var(--fg-70); }
.badge-sq { width: 16px; height: 16px; border-radius: 1px; background: var(--gold); display: grid; place-items: center; }
.badge-sq svg { width: 12px; height: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 6px 0; }
.stat { padding: 14px 14px 16px; min-width: 0; display: grid; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--fg-05); }
.stat dt { order: 2; font-size: 12px; line-height: 1.2; letter-spacing: -0.36px; color: var(--fg-70); overflow-wrap: anywhere; }
.stat dd { order: 1; margin: 0; font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: 'tnum' 1; }
.hero .opening { margin: 0 -8px; width: calc(100% + 16px); }
@media (min-width: 640px) and (max-width: 1023px) { .hero .opening .drawing { max-height: 420px; } .phero .opening .drawing { max-height: 360px; } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); grid-template-areas: 'copy art'; gap: 40px; padding: 72px 0 64px; align-items: center; }
  .hero .opening { grid-area: art; margin: 0; width: 100%; }
  .hero-copy { grid-area: copy; gap: 32px; }
  .stats { margin: 24px 6px 0; max-width: 555px; }
  .stat { padding: 14px 20px 16px; }
  .stat dt { font-size: 15px; letter-spacing: -0.45px; }
  .stat dd { font-size: 27px; letter-spacing: -0.27px; }
}

/* ------------------------------------------------------------------ home: the markets band */

.mk-band { overflow: hidden; }
.mk-row { display: flex; align-items: center; gap: 32px; }
.mk-label { flex: none; font-size: 17px; line-height: 1.2; letter-spacing: -0.51px; color: var(--fg-50); }
.marquee { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.mk { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--fg-70); white-space: nowrap; }
.mk img { width: 28px; height: 28px; image-rendering: pixelated; }
@media (max-width: 639px) { .mk-row { flex-direction: column; align-items: stretch; gap: 16px; } .mk-label { text-align: center; } }

/* ------------------------------------------------------------------ home: the board */

.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--fg-05); border: 1px solid var(--fg-10); border-radius: var(--r); }
.seg-b { border: 0; background: transparent; color: var(--fg-50); font-family: var(--pixel); font-size: 13px; letter-spacing: 0.26px; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r); }
.seg-b.is-on { background: var(--fg-10); color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid:empty { display: none; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-right: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); text-decoration: none; min-width: 0; }
a.card { transition: background-color var(--t-act), filter var(--t-act); }
a.card:hover { background: var(--fg-05); filter: brightness(1.12); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--fg-05); overflow: hidden; border-radius: var(--r); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.ph, .coin-img img.ph, .rw-img img.ph { image-rendering: pixelated; }
.card-ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--pixel); font-size: 44px; color: var(--fg-20); }
.card-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-r1, .card-r2, .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.card-tick { font-weight: 500; font-size: 17px; letter-spacing: -0.51px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { color: var(--fg-50); font-size: 14px; letter-spacing: -0.42px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-mcap { font-family: var(--mono); font-weight: 500; font-size: 15px; white-space: nowrap; }
.chg { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--fg-50); white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down-text); }
.card-bar { width: 100%; height: 4px; }
.card-meta { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.22px; text-transform: uppercase; color: var(--fg-50); }
.badge-mkt { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.24px; color: var(--fg-70); white-space: nowrap; flex: none; }
.badge-mkt img { width: 16px; height: 16px; image-rendering: pixelated; }
.bar-bg { fill: var(--fg-10); }
.bar-fill { fill: var(--accent); }
.bar-up { fill: var(--up); }
.bar-down { fill: var(--down); }
.empty { position: relative; display: grid; justify-items: center; gap: 20px; text-align: center; padding: 40px 20px; border: 1px solid var(--fg-10); border-radius: var(--r); }
.empty .drawing { width: min(620px, 100%); }
.empty-t { font-weight: 500; font-size: 20px; letter-spacing: -0.6px; margin: 0; }
.more-row { display: flex; justify-content: center; margin-top: 24px; }

/* ------------------------------------------------------------------ home: the loop (three steps) */

.steps3 { display: grid; border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); }
.step3 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; padding: 24px; border-right: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); }
.step3 svg { width: 76px; height: 76px; }
.step3-t { display: grid; gap: 8px; }
.step3-n { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.26px; color: var(--fg-50); }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .step3 { grid-template-columns: 1fr; gap: 24px; } .step3 svg { width: 116px; height: 116px; } }

/* ------------------------------------------------------------------ home: the closing panel */

.cta-box { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 16px; padding: 56px 20px 0; border: 1px solid var(--fg-10); border-radius: var(--r-lg); }
.cta-box .lede { text-align: center; }
.cta-box .btn { margin-top: 8px; position: relative; z-index: 1; }
.cta-box .d-cta { width: min(880px, 130%); max-width: none; margin: 8px 0 -8px; }
@media (min-width: 1024px) { .cta-box { padding-top: 80px; } .cta-box .d-cta { margin-top: -48px; } }

/* ------------------------------------------------------------------ page heads (inner routes) */

/* An inner route's hero: the opening drawing first in the document, the words beside it from 1024 up. */
.phero { display: grid; gap: 20px; padding-block: 16px 32px; }
.phero-copy { display: grid; gap: 16px; align-content: center; justify-items: start; min-width: 0; }
.phero-copy .lede { max-width: 52ch; }
@media (min-width: 1024px) {
  .phero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-areas: 'copy art'; gap: 48px; padding-block: 48px 56px; align-items: center; }
  .phero .opening { grid-area: art; }
  .phero-copy { grid-area: copy; gap: 24px; }
  .phero-coin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ coin page */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-50); margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs .sep { color: var(--fg-20); }
.crumbs .here { font-family: var(--mono); color: var(--fg); }
.coin-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: start; width: 100%; }
.coin-img { display: block; width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; background: var(--fg-05); }
.coin-img img { width: 100%; height: 100%; object-fit: cover; }
.coin-img .card-ph { font-size: 32px; }
.coin-t { min-width: 0; display: grid; gap: 10px; }
.h1-coin { font-weight: 500; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.coin-tick { font-family: var(--mono); font-size: 0.5em; color: var(--fg-50); letter-spacing: 0; font-weight: 500; }
.coin-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag:empty { display: none; }
.tag { display: inline-flex; align-items: center; height: 24px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.24px; text-transform: uppercase; color: var(--fg-70); background: var(--fg-05); border-radius: var(--r); padding: 0 8px; white-space: nowrap; }
.ca { display: inline-flex; align-items: center; gap: 6px; height: 24px; font-size: 12px; color: var(--fg-70); background: var(--fg-05); border: 1px solid var(--fg-10); border-radius: var(--r); padding: 0 8px; max-width: 100%; }
.ca .ic { width: 12px; height: 12px; }
.ca.is-copied { color: var(--up); border-color: var(--up); }
.coin-desc { color: var(--fg-70); margin: 0; font-size: 15px; letter-spacing: -0.03em; max-width: 70ch; overflow-wrap: anywhere; }
.coin-desc:empty { display: none; }
.coin-links { display: flex; flex-wrap: wrap; gap: 8px; }
.coin-links:empty { display: none; }
.coin-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-70); text-decoration: none; height: 28px; padding: 0 10px; border: 1px solid var(--fg-10); border-radius: var(--r); }
.coin-links a .ic { width: 13px; height: 13px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 6px 24px; }
.kpis div { padding: 12px 14px 14px; min-width: 0; display: grid; gap: 8px; }
.kpis div + div { border-left: 1px solid var(--fg-05); }
.kpis div:nth-child(3) { border-left: 0; }
.kpis dt { order: 2; font-size: 12px; letter-spacing: -0.36px; color: var(--fg-70); }
.kpis dd { order: 1; margin: 0; font-family: var(--mono); font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis dd.up { color: var(--up); }
.kpis dd.down { color: var(--down-text); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis div:nth-child(3) { border-left: 1px solid var(--fg-05); } .h1-coin { font-size: 36px; } }
.coin-missing { border: 1px solid var(--fg-10); border-radius: var(--r); padding: 16px 18px; color: var(--fg-70); margin: 0 0 24px; }

.coin-grid { display: flex; flex-direction: column; gap: 16px; padding-bottom: 64px; }
.col-main, .col-side { display: contents; }
.p-vote { order: 1; }
.p-chart { order: 2; }
.p-pots { order: 3; }
.p-rounds { order: 4; }
.p-burns { order: 5; }
@media (min-width: 1024px) {
  .coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .col-main, .col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .col-side { position: sticky; top: calc(var(--top-h) + 16px); }
}
.chart-box { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 460px; background: var(--panel-deep); display: grid; place-items: center; overflow: hidden; }
.chart-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .chart-box { aspect-ratio: 4 / 5; } }

.vote-q { margin: 0; font-weight: 500; font-size: 24px; letter-spacing: -0.72px; line-height: 1.2; }
.vote-win { margin: 6px 0 16px; font-size: 13px; color: var(--fg-50); }
.tally { width: 100%; height: 12px; }
.tally-n { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 10px; }
.t-up { color: var(--up); }
.t-down { color: var(--down-text); }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.vote-btns .btn { height: 52px; font-size: 17px; }
.btn-up { background: rgba(0, 229, 138, 0.1); border-color: rgba(0, 229, 138, 0.4); color: var(--up); }
.btn-up.is-mine { background: var(--up); color: var(--ink); }
.btn-down { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.45); color: var(--down-text); }
.btn-down.is-mine { background: var(--down); color: var(--ink); }
.vote-note { font-size: 13px; line-height: 1.5; letter-spacing: -0.03em; color: var(--fg-50); margin: 16px 0 0; }
.vote-msg { font-size: 13px; margin: 10px 0 0; min-height: 1.2em; color: var(--fg-70); overflow-wrap: anywhere; }
.vote-msg.is-bad { color: var(--down-text); }
.vote-msg.is-good { color: var(--up); }

.potbar { width: 100%; height: 12px; margin-bottom: 14px; }
.pots { list-style: none; margin: 0; padding: 0; display: grid; }
.pot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--fg-05); }
.pot-k { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-70); min-width: 0; }
.pot-k em { font-style: normal; font-family: var(--pixel); font-size: 11px; color: var(--fg-50); }
.pot-v { font-weight: 500; white-space: nowrap; }
.pot-sw { width: 10px; height: 10px; border-radius: 1px; flex: none; }
.pot-position .pot-sw { background: var(--accent); }
.pot-buyback .pot-sw { background: var(--orange); }
.pot-treasury .pot-sw { background: var(--violet); }
.pot-creator .pot-sw { background: var(--gold); }
.pb-position { fill: var(--accent); }
.pb-buyback { fill: var(--orange); }
.pb-treasury { fill: var(--violet); }
.pb-creator { fill: var(--gold); }
.control { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); font-size: 13px; line-height: 1.5; color: var(--fg); }
.control .ic { color: var(--down-text); margin-top: 3px; width: 14px; height: 14px; }
.control a { color: var(--down-text); }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 16px 0 0; }
.totals-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.totals dt { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.22px; color: var(--fg-50); text-transform: uppercase; }
.totals dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-up { color: var(--up); }
.ext { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.24px; text-transform: uppercase; color: var(--accent-text); text-decoration: none; margin-top: 16px; }
.ext .ic { width: 12px; height: 12px; }
.empty-sm { display: grid; justify-items: center; gap: 6px; padding: 8px 0; text-align: center; color: var(--fg-50); font-size: 14px; }
.empty-sm p { margin: 0; }
.empty-sm .drawing { width: 160px; }

.rounds, .burns { list-style: none; margin: 0; padding: 0; display: grid; }
.rd { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fg-05); font-family: var(--mono); font-size: 13px; }
.rd-id { color: var(--fg-50); }
.rd-call { font-family: var(--pixel); font-size: 12px; padding: 3px 7px; border-radius: var(--r); background: var(--fg-10); color: var(--fg-70); }
.rd-call.up { color: var(--ink); background: var(--up); }
.rd-call.down { color: var(--ink); background: var(--down); }
.rd-votes { color: var(--fg-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-res { font-weight: 500; white-space: nowrap; }
.rd-res.won { color: var(--up); }
.rd-res.lost { color: var(--down-text); }
.rd-res.open { color: var(--gold); }
.rd-res.skipped { color: var(--fg-50); }
.rd a { color: inherit; }
.rd .ic { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.bn { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fg-05); font-family: var(--mono); font-size: 12.5px; }
.bn a { color: var(--fg-50); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.bn .ic { width: 12px; height: 12px; }
.bn-k { color: var(--orange); font-weight: 500; }
.p-burns .d-burn { margin: 0 0 8px; }

/* ------------------------------------------------------------------ launch */

.launch { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .launch { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 32px; } .preview { position: sticky; top: calc(var(--top-h) + 16px); } }
.form { display: grid; gap: 20px; min-width: 0; }
.f-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.f-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.f-2, .f-3 { display: grid; gap: 16px; }
@media (min-width: 700px) { .f-2 { grid-template-columns: 1fr 1fr; } .f-3 { grid-template-columns: 1fr 1fr 1fr; } }
.fl { display: grid; gap: 8px; min-width: 0; }
.fl-k { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.24px; color: var(--fg-70); text-transform: uppercase; }
.fl-k .ic { width: 12px; height: 12px; }
.fl-k em { font-style: normal; color: var(--fg-50); }
.fl input, .fl textarea { width: 100%; background: var(--field); border: 1px solid rgba(156, 156, 156, 0.2); border-radius: var(--r); padding: 10px 12px; font-size: 15px; letter-spacing: -0.45px; outline: none; transition: border-color var(--t-act); min-width: 0; }
.fl input::placeholder, .fl textarea::placeholder { color: #8a8a8a; }
.fl textarea { resize: vertical; min-height: 64px; }
.fl input:focus, .fl textarea:focus { border-color: var(--accent); }
.fl input.is-bad { border-color: var(--down); }
.drop { position: relative; display: block; width: 120px; height: 120px; border: 1px dashed var(--fg-20); border-radius: var(--r); background: var(--fg-05); cursor: pointer; overflow: hidden; transition: border-color var(--t-act); }
.drop:hover, .drop.is-over { border-color: var(--accent); }
.drop-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 8px; color: var(--fg-50); }
.drop-in .ic { width: 22px; height: 22px; color: var(--accent); }
.drop-t { font-size: 13px; font-weight: 500; color: var(--fg); }
.drop-s { font-family: var(--pixel); font-size: 10px; letter-spacing: 0.2px; color: var(--fg-50); }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.mkts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); }
@media (min-width: 700px) { .mkts { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.mkt { position: relative; cursor: pointer; min-width: 0; }
.mkt input, .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mkt-in { display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border-right: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); transition: background-color var(--t-act); height: 100%; }
.mkt-in img { width: 28px; height: 28px; image-rendering: pixelated; }
.mkt-k { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.mkt-n { font-size: 11px; color: var(--fg-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mkt:hover .mkt-in { background: var(--fg-05); }
.mkt input:checked + .mkt-in { background: var(--accent-10); box-shadow: inset 0 0 0 1px var(--accent); }
.mkt input:focus-visible + .mkt-in, .opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.mkt input:disabled + .mkt-in { opacity: 0.35; cursor: not-allowed; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--fg-10); background: var(--fg-05); font-family: var(--mono); font-weight: 600; font-size: 14px; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-10); color: var(--fg); }
.sum { display: grid; gap: 0; margin: 0; padding: 4px 18px; background: var(--panel); border: 1px solid var(--fg-10); border-radius: var(--r-lg); }
.sum div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-width: 0; padding: 10px 0; }
.sum div + div { border-top: 1px solid var(--fg-05); }
.sum dt { font-family: var(--pixel); font-size: 12px; letter-spacing: 0.24px; color: var(--fg-50); text-transform: uppercase; white-space: nowrap; }
.sum dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; text-align: right; min-width: 0; }
.sum dd.is-ready { color: var(--up); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); }
.steps li { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.22px; text-transform: uppercase; text-align: center; color: var(--fg-50); padding: 9px 2px; border-right: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.is-now { color: var(--gold); background: rgba(243, 186, 47, 0.08); }
.steps li.is-done { color: var(--ink); background: var(--up); }
.f-msg { margin: 0; font-size: 14px; color: var(--fg-70); min-height: 1.2em; overflow-wrap: anywhere; }
.f-err { margin: 0; font-size: 14px; color: var(--down-text); overflow-wrap: anywhere; }
.f-err:empty { display: none; }
.preview { display: grid; gap: 12px; min-width: 0; }
.preview-card { max-width: 240px; border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); margin-bottom: 12px; }
.preview .d-split-c { width: 100%; }

/* ------------------------------------------------------------------ rewards */

.rw { max-width: 920px; margin-bottom: 64px; }
.rw-connect { padding: 4px 0; }
.rw-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rw-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--fg-05); }
.rw-img { width: 48px; height: 48px; border-radius: var(--r); overflow: hidden; background: var(--fg-05); }
.rw-img img { width: 100%; height: 100%; object-fit: cover; }
.rw-img .card-ph { font-size: 22px; }
.rw-t { min-width: 0; display: grid; gap: 4px; }
.rw-t a { font-weight: 500; text-decoration: none; }
.rw-s { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--fg-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-c { display: grid; justify-items: end; gap: 6px; }
.rw-c .mono { font-weight: 500; color: var(--gold); white-space: nowrap; }

/* ------------------------------------------------------------------ how */

.how-sec { padding: 48px 0; }
.how-sec + .how-sec { border-top: 1px solid var(--fg-05); }
@media (min-width: 1024px) { .how-sec { padding: 72px 0; } }
.how-sec .drawing { width: 100%; margin: 0 0 24px; }
.figbox { border: 1px solid var(--fg-10); border-radius: var(--r); background: var(--panel-deep); margin: 0 0 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.figscroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin: 0 0 8px; }
@media (max-width: 760px) { .figbox .drawing, .figscroll .drawing { min-width: 720px; } }
.figbox .drawing { margin: 0; }
/* Statements: a grid of hairline cells with a crosshair where the lines meet. */
.facts-wrap { position: relative; }
.facts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--fg-10); border-left: 1px solid var(--fg-10); }
@media (min-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-right: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); font-size: 15px; line-height: 1.5; letter-spacing: -0.03em; color: var(--fg-70); }
.facts li .ic { color: var(--accent); margin-top: 4px; width: 15px; height: 15px; }
.facts li b { color: var(--fg); font-weight: 500; }
.facts a { color: var(--accent-text); }
.facts-wrap .cross { left: calc(50% - 4px); top: -4px; z-index: 1; display: none; }
@media (min-width: 800px) { .facts-wrap .cross { display: block; } }
.facts-control li .ic { color: var(--down-text); }
.facts-control { border-color: rgba(239, 68, 68, 0.3); }
.facts-control li { border-color: rgba(239, 68, 68, 0.3); }
.contracts { margin-top: 16px; }
.nf { padding-block: 32px 80px; display: grid; gap: 20px; justify-items: start; }
.nf .drawing { width: min(560px, 100%); }
.xline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--fg); text-decoration: none; }
.xline .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--fg-05); margin-top: auto; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 32px; display: grid; gap: 40px; }
.foot-top { display: grid; gap: 32px; }
.foot-mark .drawing { width: 150px; height: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-h { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.26px; text-transform: uppercase; color: var(--fg); margin: 0 0 4px; }
.foot-a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.45px; color: var(--fg-50); text-decoration: none; }
.foot-a .ic { width: 13px; height: 13px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--fg-05); }
.foot-note { margin: 0; font-size: 13px; letter-spacing: -0.39px; color: var(--fg-50); }
.foot-social { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--fg-70); text-decoration: none; }
.foot-social .ic { width: 15px; height: 15px; color: var(--fg); }
@media (min-width: 1024px) {
  .foot-in { padding-top: 64px; }
  .foot-top { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .foot-mark .drawing { width: 190px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 160px)); justify-content: start; gap: 48px; }
}

/* ------------------------------------------------------------------ wallet sheet */

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(4, 5, 6, 0.72); display: grid; place-items: center; padding: 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--fg-20); border-radius: var(--r-lg); padding: 18px; animation: sheet-in 0.3s var(--ease-out) both; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-title { font-weight: 500; font-size: 20px; letter-spacing: -0.6px; }
.sheet-x { border: 1px solid var(--fg-10); background: var(--fg-05); width: 32px; height: 32px; border-radius: var(--r); display: grid; place-items: center; color: var(--fg-70); }
.sheet-list { display: grid; border-top: 1px solid var(--fg-10); }
.sheet-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--fg-10); text-decoration: none; font-weight: 500; text-align: left; width: 100%; }
.sheet-row:hover { background: var(--fg-05); }
.sheet-row img, .sheet-ico { width: 28px; height: 28px; border-radius: var(--r); flex: none; }
.sheet-ico { background: var(--fg-05); display: grid; place-items: center; color: var(--accent); }
.sheet-ico .ic { width: 15px; height: 15px; }
.sheet-note { color: var(--fg-70); font-size: 14px; margin: 0 0 12px; }
.sheet-acct { display: grid; gap: 4px; padding: 12px; background: var(--fg-05); border-radius: var(--r); margin-bottom: 12px; }
.sheet-addr { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-err { color: var(--down-text); font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.sheet-err:empty { display: none; }

/* ------------------------------------------------------------------ reveal on scroll (only below the fold,
   only once a script has armed it, so nothing is hidden without JavaScript) */

.rv-armed:not(.in) { opacity: 0; transform: translateY(20px); }
.rv-armed { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.rv-armed.rv-2 { transition-delay: 0.04s; } .rv-armed.rv-3 { transition-delay: 0.08s; } .rv-armed.rv-4 { transition-delay: 0.12s; }
.enter { animation: enter 0.5s var(--ease-out) both; }
.enter-2 { animation-delay: 0.06s; } .enter-3 { animation-delay: 0.12s; } .enter-4 { animation-delay: 0.18s; } .enter-5 { animation-delay: 0.24s; }

/* ------------------------------------------------------------------ keyframes */

@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: 0.3; } 60% { opacity: 0.85; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The drawings. Every element's resting state is its final, complete state; the keyframes only bring it there
   (the arrival, the first ~1.2 s, on the reference's curve cubic-bezier(.16, 1, .3, 1)) and then keep a calm
   loop going. prefers-reduced-motion removes the motion and leaves the still picture. */

.drawing { overflow: visible; }
.drawing text { font-family: var(--mono); font-size: 15px; fill: var(--fg); }
.drawing .t-px { font-family: var(--pixel); letter-spacing: 0.02em; }
.drawing .t-mono { font-family: var(--mono); font-weight: 500; }
.drawing .t-dim { fill: var(--fg-50); }
.drawing .t-up { fill: var(--up); }
.drawing .t-down { fill: var(--down-text); }
.drawing .t-gold { fill: var(--gold); }
.drawing .t-ink { fill: var(--ink); }
.drawing .t-xs { font-size: 12px; }
.drawing .t-sm { font-size: 18px; }
.drawing .t-step { font-size: 15px; }
.drawing .t-clock { font-size: 48px; letter-spacing: -0.02em; }
.drawing .t-roll { font-size: 20px; fill: var(--up); }
.drawing .t-addr { font-size: 20px; fill: var(--fg-70); }
.drawing .ui-box { fill: var(--panel-deep); stroke: var(--fg-20); stroke-width: 1; }
.drawing .tile-box { fill: #101115; stroke: var(--fg-10); }
.drawing .is-pick .tile-box { stroke: var(--accent); stroke-width: 2; }
.drawing .btn-mini { fill: var(--gold); }
.drawing .win-box { fill: var(--up); }
.drawing .lock-shackle { fill: none; stroke: var(--fg); stroke-width: 4; }
.drawing .track { fill: none; stroke: var(--fg-10); stroke-width: 10; }
.drawing .clock-arc { fill: none; stroke: var(--accent); stroke-width: 10; stroke-dasharray: 100 100; }
.drawing .tick { fill: var(--fg-50); }
.drawing .tick-s { fill: var(--fg-20); }
.drawing .rail { fill: none; stroke: var(--fg-10); stroke-width: 4; }
.drawing .rail-pulse { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 40 600; animation: rail 3.2s cubic-bezier(0.5, 0, 0.5, 1) 1.2s infinite both; }
.drawing .flow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 6; animation: flow 1.1s linear infinite; }
.drawing .flow-gold { stroke: var(--gold); }
.drawing .flow-down { stroke: var(--down); }
.drawing .loop { fill: none; stroke: var(--fg-10); stroke-width: 3; stroke-linejoin: round; }
.drawing .loop-dash { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 36 1200; animation: loop 6s linear 0.9s infinite both; }

/* ---- the arrival (one-shot), staggered 80 ms by d1 .. d12 ---- */
.drawing .fade { animation: fade 0.5s var(--ease-out) both; }
.drawing .drop { animation: drop 0.55s var(--ease-out) both; }
.drawing .pop { transform-box: fill-box; transform-origin: center; animation: pop 0.45s var(--ease-out) both; }
.drawing .slide { animation: slide-in 0.5s var(--ease-out) both; }
.drawing .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-y 0.6s var(--ease-out) both; }
.drawing .grow-x { transform-box: fill-box; transform-origin: 0 50%; animation: grow-x 0.6s var(--ease-out) both; }
.drawing .rise { animation: rise 0.7s var(--ease-out) both; }
.drawing .flick { animation: flicker 1.1s step-end both; }

/* ---- the calm loops ---- */
.drawing .float { animation: float 3s ease-in-out 1.2s infinite alternate; }
.drawing .float.fl1 { animation-duration: 3.8s; animation-delay: 1.6s; }
.drawing .float.fl2 { animation-duration: 4.4s; animation-delay: 2s; }
.drawing .pxg .lit { animation: twinkle 2.4s ease-in-out infinite; }
.drawing .pxg .lit:nth-child(3n) { animation-delay: 0.8s; }
.drawing .pxg .lit:nth-child(3n + 1) { animation-delay: 1.6s; }
.drawing .flame { animation: flame-in 0.5s var(--ease-out) both; }
.drawing .flame-in { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker-y 1.1s steps(3, end) infinite; }
.drawing .nudge { animation: nudge 2.6s ease-in-out infinite; }
.drawing .sink { animation: sink 2.6s ease-in-out infinite; }
.drawing .fall { animation: fall 2.4s cubic-bezier(0.5, 0, 0.8, 0.6) infinite both; }
.drawing .fall.f1 { animation-delay: 0.8s; }
.drawing .fall.f2 { animation-delay: 1.6s; }
.drawing .turn { animation: nudge 3.6s ease-in-out 1s infinite; }

/* ---- home: the call ---- */
.d-home .wall { opacity: 0.9; }

/* ---- launch: the mint ---- */
.d-launch .press { animation: press 2.8s cubic-bezier(0.5, 0, 0.3, 1) 0.2s infinite both; }
.d-launch .roll { animation: roll 0.9s steps(4, end) 0.2s both; }
.d-launch .r1 { animation-duration: 1s; } .d-launch .r2 { animation-duration: 1.1s; } .d-launch .r3 { animation-duration: 1.2s; }
.d-launch .mkt-tile.is-pick { animation: pop 0.45s var(--ease-out) both, bob 2.4s ease-in-out 1.4s infinite; }

/* ---- coin: the round clock ---- */
/* One turn per round: ROUND_SECONDS in src/rounds.mjs (build.mjs checks the two agree). */
.d-coin .live-arc { animation: arc-live 900s linear infinite both; }
.d-coin .step.is-now .vx { animation: glow 2s ease-in-out 1.2s infinite; }

/* ---- rewards: the creator cut ---- */
.d-rewards .pot-col.is-mine { animation: grow-y 0.6s var(--ease-out) both, glow 2.4s ease-in-out 1.4s infinite; }

/* ---- empty states ---- */
.d-empty .ghost-box { opacity: 0.6; }
.d-empty .ghost { animation: fade 0.6s var(--ease-out) both, breathe 3.6s ease-in-out 1.2s infinite; }

/* The stagger: after every drawing rule, so an element's own animation shorthand does not reset its delay. */
.drawing .d1 { animation-delay: 0.04s; } .drawing .d2 { animation-delay: 0.12s; } .drawing .d3 { animation-delay: 0.2s; }
.drawing .d4 { animation-delay: 0.28s; } .drawing .d5 { animation-delay: 0.36s; } .drawing .d6 { animation-delay: 0.44s; }
.drawing .d7 { animation-delay: 0.52s; } .drawing .d8 { animation-delay: 0.6s; } .drawing .d9 { animation-delay: 0.68s; }
.drawing .d10 { animation-delay: 0.76s; } .drawing .d11 { animation-delay: 0.84s; } .drawing .d12 { animation-delay: 0.92s; }
.d-launch .mkt-tile.is-pick.d8 { animation-delay: 0.6s, 1.4s; }
.d-rewards .pot-col.is-mine.d6 { animation-delay: 0.44s, 1.4s; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0% { opacity: 0; } 6% { opacity: 0.85; } 9% { opacity: 0.08; } 15% { opacity: 0.7; } 19% { opacity: 0.15; } 27% { opacity: 1; } 34% { opacity: 0.25; } 39% { opacity: 1; } 52% { opacity: 0.55; } 56% { opacity: 1; } 100% { opacity: 1; } }
@keyframes float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: 0.3; } 60% { opacity: 0.85; } }
@keyframes flame-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flicker-y { 0% { transform: scaleY(1); } 33% { transform: scaleY(1.12); } 66% { transform: scaleY(0.94); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes sink { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@keyframes fall { 0% { opacity: 0; transform: translateY(-30px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(90px); } }
@keyframes press { 0%, 100% { transform: translateY(-10px); } 40% { transform: translateY(-10px); } 55% { transform: translateY(14px); } 70% { transform: translateY(-10px); } }
@keyframes roll { from { transform: translateY(120px); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes arc-live { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes rail { 0% { stroke-dashoffset: 40; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -420; opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes loop { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1236; } }

/* Narrow screens: an opening shrinks to about 40% of its drawing units, so its smallest labels go and its step
   labels grow; wide figures scroll inside their own box at a size where their words can be read. */
.drawing .sm-only { display: none; }
@media (min-width: 1024px) {
  .phero .drawing text { font-size: 17px; }
  .phero .drawing .t-xs { font-size: 15px; }
  .phero .d-coin .t-step { font-size: 20px; }
  .phero .d-coin .t-clock { font-size: 52px; }
  .phero .d-launch .t-addr, .phero .d-launch .t-roll { font-size: 22px; }
}
@media (max-width: 639px) {
  .opening .t-xs, .opening .lg-only { display: none; }
  .opening .sm-only { display: inline; }
  .drawing .t-big { font-size: 30px; }
  .d-coin .t-step { font-size: 30px; }
  .d-how .t-xs { display: inline; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-armed:not(.in) { opacity: 1; transform: none; }
}
