/* Revive. usual.money's grammar in Revive's own skin: full-bleed slabs that
 * alternate black and bone and overlap with a rounded lip, centred display
 * type with stock badges set into the headline, a device carrying live
 * figures, stacked solid cards with label-over-value pairs, one warm wash,
 * amber eyebrows, pills with a round icon. Motion is opt-in through .rv and
 * never reads scroll position to drive a value. */

:root {
  --black: #0a0a0a;
  --black-2: #131313;
  --black-3: #1b1b1b;
  --bone: #f7f6f1;
  --bone-2: #ebe9e1;
  --white: #ffffff;
  --ink: #0f0f0e;
  --ink-2: #62615b;
  --w-80: rgba(255, 255, 255, 0.84);
  --w-60: rgba(255, 255, 255, 0.62);
  --w-40: rgba(255, 255, 255, 0.42);
  --w-12: rgba(255, 255, 255, 0.12);
  --w-07: rgba(255, 255, 255, 0.07);
  --amber: #f2b64a;
  --mint: #8ee3b5;
  --up: #8ee3b5;
  --down: #ff8f8f;
  --wash: radial-gradient(120% 140% at 50% 120%, #b8742a 0%, #5a3a12 40%, transparent 72%);
  --r: 30px;
  --r-sm: 20px;
  --r-xs: 14px;
  --lip: 32px;
  --display: "Instrument Sans", "Inter Tight", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 16px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--black); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; }
.narrow { width: min(760px, 100% - 2 * var(--pad)); margin: 0 auto; }

/* ── type ─────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 14px 0 0; text-wrap: balance; }
.t-hero { font-size: clamp(42px, 7vw, 92px); }
.t-1 { font-size: clamp(34px, 4.6vw, 62px); }
.t-2 { font-size: clamp(26px, 3vw, 40px); }
.t-3 { font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--w-60); max-width: 56ch; margin: 22px auto 0; }
.body { color: var(--w-60); max-width: 60ch; }
.center { text-align: center; }
.center .body, .center .lead { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { opacity: 0.6; }
.sm { font-size: 13px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* badges set into a headline, the way usual sets coins into theirs */
.badges { display: inline-flex; align-items: center; vertical-align: -0.12em; margin: 0 0.06em 0 0.18em; }
.badge { display: inline-grid; place-items: center; width: 1.06em; height: 1.06em; border-radius: 50%; background: var(--white); color: var(--black); box-shadow: 0 0 0 0.06em var(--black); margin-left: -0.2em; object-fit: cover; }
.badge b { font: 700 0.21em/1 var(--body); letter-spacing: 0; }
.badge:first-child { margin-left: 0; }
.badge.amber { background: var(--amber); }
.badge.mint { background: var(--mint); }
.badge.bone { background: var(--bone-2); }
.bone .badge { box-shadow: 0 0 0 0.05em var(--bone); }

/* ── slabs ────────────────────────────────────────────────── */
.slab { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.slab + .slab { margin-top: calc(-1 * var(--lip)); border-radius: var(--lip) var(--lip) 0 0; padding-top: calc(clamp(72px, 9vw, 128px) + var(--lip) * 0.4); }
.slab.dark { background: var(--black); color: var(--white); }
.slab.bone { background: var(--bone); color: var(--ink); color-scheme: light; }
.slab.bone .lead, .slab.bone .body { color: var(--ink-2); }
.slab.bone .display { color: var(--ink); }
.slab.hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(90px, 10vw, 140px); }
.slab.tight { padding-top: clamp(40px, 5vw, 64px); }
.head { margin-bottom: clamp(30px, 4vw, 52px); }
.head .lead { margin-top: 16px; }

/* ── nav ──────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px var(--pad); background: rgba(10, 10, 10, 0.4); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: padding 0.35s var(--ease), background 0.35s var(--ease); }
.nav.stuck { padding: 10px var(--pad); background: rgba(10, 10, 10, 0.8); box-shadow: 0 1px 0 var(--w-07); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand small { font-weight: 500; font-size: 13px; color: var(--w-40); letter-spacing: 0; }
.nav .links { display: flex; justify-content: center; gap: 4px; }
.nav .links a { padding: 8px 14px; border-radius: 999px; color: var(--w-60); font-size: 14px; transition: color 0.2s, background 0.2s; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--white); background: var(--w-07); }
.nav .right { display: flex; justify-content: flex-end; gap: 8px; }
.x-link { padding: 9px 10px; }
.x-link i { font-style: normal; font-weight: 700; }
.hero .ca { max-width: min(100%, 520px); }
.hero .ca .mono { font-size: 13px; }
footer .ca { max-width: 100%; font-size: 12px; }

/* ── pills ────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1; background: var(--white); color: var(--black); transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s; white-space: nowrap; }
.pill i { width: 22px; height: 22px; border-radius: 50%; background: var(--black); display: inline-grid; place-items: center; color: var(--white); font-size: 12px; font-style: normal; flex: none; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.pill:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.pill.ghost { background: var(--w-12); color: var(--white); }
.pill.ghost i { background: var(--white); color: var(--black); }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.pill.amber { background: var(--amber); color: var(--black); }
.pill.sm { padding: 9px 16px 9px 10px; font-size: 14px; }
.pill.sm i { width: 18px; height: 18px; font-size: 10px; }
.pill.wide { width: 100%; justify-content: center; }
.bone .pill { background: var(--ink); color: var(--white); }
.bone .pill i { background: var(--white); color: var(--ink); }
.bone .pill.ghost { background: rgba(0, 0, 0, 0.07); color: var(--ink); }
.bone .pill.ghost i { background: var(--ink); color: var(--white); }
.bone .pill.amber { background: var(--amber); color: var(--black); }
.bone .pill.amber i { background: var(--black); color: var(--white); }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ── cards ────────────────────────────────────────────────── */
.card { background: var(--black-2); border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); position: relative; overflow: hidden; }
.bone .card { background: var(--white); color: var(--ink); }
.bone .card .body { color: var(--ink-2); }
.card.wash { background: var(--black-3); color: var(--white); }
.card.wash::before { content: ""; position: absolute; inset: 0; background: var(--wash); pointer-events: none; }
.card.wash > * { position: relative; }
.card.wash .body, .card.wash .stat span { color: var(--w-60); }
.card.wash .display { color: var(--white); }
.card .t-3 { margin-bottom: 8px; }
.card.inset { background: var(--black-3); }
.bone .card.inset { background: var(--bone); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px 24px; margin-top: 22px; }
.stat span { display: block; font-size: 13px; color: var(--w-40); margin-bottom: 6px; }
.bone .stat span { color: var(--ink-2); }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats.small .stat b { font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.stat b small { font-size: 0.55em; font-weight: 500; margin-left: 3px; opacity: 0.6; }
.herostats { margin: clamp(36px, 5vw, 60px) auto 0; width: min(980px, 100%); display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.herostats .stat b { font-size: clamp(20px, 2vw, 26px); }

/* ── the device ───────────────────────────────────────────── */
.device-wrap { display: grid; place-items: center; margin-top: clamp(40px, 6vw, 72px); perspective: 1400px; }
.device { width: min(400px, 100%); background: #151515; border-radius: 40px; padding: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--w-12); position: relative; transform: rotateX(6deg); transition: transform 1.2s var(--ease); }
.device.is-in { transform: rotateX(0deg); }
.device::before, .device::after { content: ""; position: absolute; width: 3px; height: 54px; background: #2a2a2a; border-radius: 2px; top: 110px; }
.device::before { left: -3px; }
.device::after { right: -3px; top: 140px; height: 84px; }
.screen { background: var(--black); border-radius: 30px; overflow: hidden; padding: 22px 22px 18px; display: grid; gap: 18px; }
.screen .big span { display: block; font-size: 14px; color: var(--w-60); margin-bottom: 6px; }
.screen .big b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.screen .pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.screen .pairs span { display: block; font-size: 13px; color: var(--w-40); margin-bottom: 4px; }
.screen .pairs b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.screen .latest { border-top: 1px solid var(--w-07); padding-top: 14px; font-size: 13px; color: var(--w-60); display: grid; gap: 4px; }
.screen .latest b { color: var(--white); font-weight: 600; }
.screen .tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--w-07); font-size: 12px; color: var(--w-60); width: max-content; }
.screen .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; }

/* ── pair cards ───────────────────────────────────────────── */
.pairs-list { display: grid; gap: 14px; }
.pair-card { display: block; background: var(--black-2); border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); transition: transform 0.35s var(--ease), background 0.25s; }
.pair-card:hover { transform: translateY(-3px); background: var(--black-3); }
.bone .pair-card { background: var(--white); color: var(--ink); }
.bone .pair-card:hover { background: var(--white); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08); }
.pair-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pair-top .sym { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.pair-top .sym small { font-weight: 500; font-size: 15px; color: var(--w-40); margin-left: 6px; letter-spacing: 0; }
.bone .pair-top .sym small { color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--w-07); font-size: 13px; color: var(--w-60); }
.chip .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--white); color: var(--black); display: inline-grid; place-items: center; font: 700 8px/1 var(--body); }
.chip.on { color: var(--up); }
.chip.on .dot { background: var(--up); }
.chip.amber .dot { background: var(--amber); }
.bone .chip { background: var(--bone-2); color: var(--ink-2); }
.bone .chip .dot { background: var(--ink); color: var(--white); }
.bone .chip.amber .dot { background: var(--amber); }
.pair-top .by { margin-left: auto; font-size: 14px; color: var(--w-40); }
.bone .pair-top .by { color: var(--ink-2); }
.pair-note { margin-top: 12px; font-size: clamp(16px, 1.3vw, 19px); color: var(--w-80); max-width: 70ch; }
.bone .pair-note { color: var(--ink); }
.pair-card .stats { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.empty { padding: 34px; color: var(--w-40); text-align: center; background: var(--black-2); border-radius: var(--r); }
.bone .empty { background: var(--white); color: var(--ink-2); }

/* ── steps, the machine ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.step { min-height: 220px; display: flex; flex-direction: column; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; margin-bottom: 22px; }
.bone .step .n { background: var(--ink); color: var(--white); }
.step .t-3 { margin-bottom: 8px; }
.step code { margin-top: auto; padding-top: 22px; display: block; font-family: var(--mono); font-size: 13px; color: var(--w-60); }
.bone .step code { color: var(--ink-2); }
.machine { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 40px; }
.machine .arrow { display: grid; place-items: center; font-family: var(--mono); color: var(--w-40); font-size: 18px; }
.machine .card { display: grid; gap: 6px; align-content: start; }
.machine .card .t-3 { margin: 0; }
.bar-split { display: flex; gap: 4px; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 22px; }
.bar-split i { display: block; height: 100%; }
.bar-split i:nth-child(1) { background: var(--white); }
.bar-split i:nth-child(2) { background: var(--amber); }
.bar-split i:nth-child(3) { background: var(--w-40); }
.bone .bar-split i:nth-child(1) { background: var(--ink); }
.bone .bar-split i:nth-child(3) { background: rgba(0, 0, 0, 0.25); }
.keys { display: flex; justify-content: space-between; font-size: 13px; color: var(--w-40); font-family: var(--mono); gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.bone .keys { color: var(--ink-2); }

/* ── ledger table ─────────────────────────────────────────── */
.ledger { overflow-x: auto; }
.ledger table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; }
.ledger th { font-weight: 500; font-size: 13px; color: var(--w-40); padding: 0 0 14px; }
.ledger td { padding: 14px 0; border-top: 1px solid var(--w-07); font-size: 14px; color: var(--w-60); vertical-align: top; }
.ledger td:first-child { color: var(--white); font-weight: 500; white-space: nowrap; padding-right: 20px; }
.ledger .n { font-family: var(--mono); text-align: right; white-space: nowrap; padding-left: 20px; }
.bone .ledger th { color: var(--ink-2); }
.bone .ledger td { color: var(--ink-2); border-top-color: rgba(0, 0, 0, 0.06); }
.bone .ledger td:first-child { color: var(--ink); }

/* ── logos ────────────────────────────────────────────────── */
.logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--white); flex: none; }
.logo.lg { width: 36px; height: 36px; }
.logo.dot { display: inline-grid; place-items: center; color: var(--black); font: 700 8px/1 var(--body); }
.logo.xl { width: 44px; height: 44px; }
.chip .logo { width: 18px; height: 18px; margin-left: -4px; }
.stocks .top { display: flex; align-items: center; gap: 10px; }
.choice { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.choice .logo { grid-row: 1 / 3; }

/* ── stocks grid ──────────────────────────────────────────── */
.stocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stocks a, .stocks div { background: var(--black-2); border-radius: var(--r-sm); padding: 18px 18px 16px; display: grid; gap: 4px; transition: transform 0.3s var(--ease), background 0.2s; }
.stocks a:hover { transform: translateY(-3px); background: var(--black-3); }
.stocks b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.stocks .px { font-family: var(--mono); font-size: 14px; }
.stocks .n { font-size: 12px; color: var(--w-40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bone .stocks a, .bone .stocks div { background: var(--white); color: var(--ink); }
.bone .stocks .n { color: var(--ink-2); }

/* ── rules, faq ───────────────────────────────────────────── */
.rules { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 22px; border-radius: var(--r-sm); background: var(--black-2); color: var(--w-60); font-size: 15px; }
.rules li > div { min-width: 0; }
.rules li::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--w-40); padding-top: 2px; }
.rules li b { color: var(--white); font-weight: 500; display: block; margin-bottom: 4px; }
.bone .rules li { background: var(--white); color: var(--ink-2); }
.bone .rules li b { color: var(--ink); }
.bone .rules li::before { color: var(--ink-2); }
.faq details { background: var(--white); border-radius: var(--r-sm); padding: 0 24px; margin-top: 10px; }
.dark .faq details { background: var(--black-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--ink-2); transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 22px; max-width: 70ch; }
.dark .faq p { color: var(--w-60); }
.prose { display: grid; gap: 14px; color: var(--w-60); max-width: 68ch; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; margin: 34px 0 0; color: var(--white); }
.prose h2:first-child { margin-top: 0; }
.prose b { color: var(--white); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--w-07); padding: 2px 6px; border-radius: 6px; }
.bone .prose { color: var(--ink-2); }
.bone .prose h2, .bone .prose b { color: var(--ink); }
.bone .prose code { background: rgba(0, 0, 0, 0.06); }

/* ── pair page ────────────────────────────────────────────── */
.pair-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }
.pair-id { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; min-width: 0; max-width: 100%; }
.pair-id .quote { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.ca { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 14px; border-radius: var(--r-xs); background: var(--w-07); font-size: 13px; color: var(--w-60); text-align: left; }
.ca .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--white); }
.ca .act { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--w-40); flex: none; }
.ca.is-copied .act { color: var(--white); }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.kv-grid .card { padding: 22px; }
.kv-grid .stat b { font-size: clamp(20px, 2vw, 26px); }
.ladder { display: grid; gap: 8px; }
.rung { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-xs); background: var(--w-07); font-size: 14px; }
.rung.paid { color: var(--up); }
.rung.next { outline: 1px solid var(--amber); }
.rung .n { font-family: var(--mono); font-size: 12px; color: var(--w-40); }
.rung .bar { height: 4px; border-radius: 2px; background: var(--w-12); overflow: hidden; grid-column: 2 / -1; }
.rung .bar i { display: block; height: 100%; background: var(--amber); }
.bone .rung { background: var(--bone); }
.bar-line { height: 6px; background: var(--w-07); border-radius: 3px; overflow: hidden; }
.bar-line i { display: block; height: 100%; background: var(--amber); border-radius: 3px; transition: width 0.8s var(--ease); }
.bone .bar-line { background: rgba(0, 0, 0, 0.08); }

/* ── forms, panels ────────────────────────────────────────── */
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.seg { display: inline-flex; border-radius: 999px; background: var(--w-07); padding: 4px; }
.seg button { padding: 9px 18px; border-radius: 999px; color: var(--w-60); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--black); }
.bone .seg { background: var(--bone-2); }
.bone .seg button { color: var(--ink-2); }
.bone .seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--w-40); display: flex; justify-content: space-between; gap: 10px; }
.field .hint { font-size: 12.5px; color: var(--w-40); }
.bone .field label, .bone .field .hint { color: var(--ink-2); }
.in { display: flex; align-items: center; gap: 8px; background: var(--black); border: 1px solid var(--w-12); border-radius: var(--r-xs); padding: 0 14px; height: 50px; }
.in:focus-within { border-color: var(--w-40); }
.in input, .in select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; height: 100%; font-family: var(--mono); font-size: 15px; }
.in select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.in select option { background: var(--black-2); }
.in textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--body); font-size: 15px; resize: vertical; padding: 12px 0; }
.in.tall { height: auto; min-height: 50px; }
.in .post { font-family: var(--mono); font-size: 13px; color: var(--w-40); white-space: nowrap; }
.bone .in { background: var(--white); border-color: rgba(0, 0, 0, 0.12); }
.bone .in:focus-within { border-color: rgba(0, 0, 0, 0.4); }
.bone .in select option { background: var(--white); }
.bal { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--w-40); }
.bal button { color: var(--white); text-decoration: underline; }
.bone .bal { color: var(--ink-2); }
.bone .bal button { color: var(--ink); }
.quote-rows { display: grid; margin: 0; }
.quote-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--w-07); }
.quote-rows div:first-child { border-top: 0; }
.quote-rows dt { color: var(--w-40); }
.quote-rows dd { margin: 0; font-family: var(--mono); color: var(--white); text-align: right; }
.bone .quote-rows div { border-top-color: rgba(0, 0, 0, 0.06); }
.bone .quote-rows dt { color: var(--ink-2); }
.bone .quote-rows dd { color: var(--ink); }
.msg { font-size: 13.5px; color: var(--w-60); min-height: 1.4em; }
.msg.bad { color: var(--down); }
.msg.ok { color: var(--up); }
.msg a { text-decoration: underline; }
.bone .msg { color: var(--ink-2); }
.bone .msg.ok { color: #1c7c4a; }
.bone .msg.bad { color: #b3261e; }
.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wizard .card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wizard .card .t-3 { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.choice { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-xs); background: var(--w-07); text-align: left; border: 1px solid transparent; }
.choice b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.choice span { font-family: var(--mono); font-size: 12px; color: var(--w-40); }
.choice[aria-pressed="true"] { border-color: var(--amber); background: rgba(242, 182, 74, 0.1); }
.bone .choice { background: var(--bone); }
.bone .choice span { color: var(--ink-2); }
.list { background: var(--black-2); border-radius: var(--r); padding: 4px clamp(18px, 2.4vw, 28px); }
.bone .list { background: var(--white); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--w-07); font-size: 14px; }
.row:first-child { border-top: 0; }
.row .av { width: 40px; height: 40px; border-radius: 50%; background: var(--w-07); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.row .main { min-width: 0; display: grid; gap: 3px; }
.row .main b { font-weight: 600; }
.row .main span { color: var(--w-40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--w-60); }
.bone .row { border-top-color: rgba(0, 0, 0, 0.06); }
.bone .row .av { background: var(--bone-2); }
.bone .row .main span, .bone .row .end { color: var(--ink-2); }

/* ── wallet chrome ────────────────────────────────────────── */
.wal { display: inline-flex; align-items: center; gap: 8px; }
.wal .addr { font-family: var(--mono); font-size: 13px; }
.banner { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 999px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); max-width: calc(100% - 2 * var(--pad)); }
.banner button { background: var(--black); color: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(420px, 100%); background: var(--black-2); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; color: var(--white); color-scheme: dark; }
.modal-top { display: flex; align-items: center; justify-content: space-between; }
.modal .x { font-size: 24px; line-height: 1; color: var(--w-40); }
.modal-list { display: grid; gap: 8px; }
.modal-item { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--w-07); border-radius: var(--r-xs); padding: 14px; color: var(--white); text-align: left; }
.modal-item:hover { background: var(--w-12); }
.modal-item img { width: 26px; height: 26px; border-radius: 6px; }
.modal-dot { width: 26px; height: 26px; border-radius: 6px; background: var(--w-12); }
.skel { color: transparent !important; background: var(--w-07); border-radius: 0.4em; }
.bone .skel { background: rgba(0, 0, 0, 0.06); }

/* ── the chart ────────────────────────────────────────────── */
.chart-card { position: relative; background: var(--black-2); border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.chart-head > div { display: grid; gap: 5px; }
.live-k { font-size: 13px; color: var(--w-40); }
.chart-now { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chart-meta { text-align: right; }
.fine { font-size: 13px; color: var(--w-40); }
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--w-07); stroke-width: 1; }
.chart .axis { font-family: var(--mono); font-size: 11px; fill: var(--w-40); }
.chart .line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--amber); opacity: 0.1; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--w-40); font-size: 14px; }

/* ── footer ───────────────────────────────────────────────── */
footer { background: var(--black); position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0 0; margin-top: calc(-1 * var(--lip)); border-radius: var(--lip) var(--lip) 0 0; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; font-size: 14px; color: var(--w-60); }
footer .cols b { display: block; color: var(--white); font-weight: 500; margin-bottom: 10px; }
footer .cols a { display: block; padding: 3px 0; }
footer .cols a:hover { color: var(--white); }
footer .fine { margin-top: 40px; font-size: 13px; color: var(--w-40); max-width: 72ch; }
footer .giant { font-family: var(--display); font-weight: 700; font-size: clamp(110px, 24vw, 360px); letter-spacing: -0.06em; line-height: 0.8; color: var(--w-07); text-align: center; margin-top: 40px; user-select: none; pointer-events: none; transform: translateY(18%); }

/* ── motion ───────────────────────────────────────────────── */
html.js .rv { opacity: 0; transform: translateY(22px); filter: blur(6px); }
html.js .rv.is-in { opacity: 1; transform: none; filter: blur(0); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms); }
.hero .enter { animation: enter 1s var(--ease) both; }
.hero .enter.d1 { animation-delay: 0.08s; }
.hero .enter.d2 { animation-delay: 0.16s; }
.hero .enter.d3 { animation-delay: 0.26s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.card.lift { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card.lift:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12); }
.dark .card.lift:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
@media (prefers-reduced-motion: reduce) {
  html.js .rv, .device { opacity: 1; transform: none; filter: none; }
  * { transition: none !important; animation: none !important; }
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4, .rules, .steps, .pair-head, .row2 { grid-template-columns: minmax(0, 1fr); }
  .machine { grid-template-columns: 1fr; }
  .machine .arrow { transform: rotate(90deg); }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .herostats { grid-template-columns: repeat(3, 1fr); }
  .nav { grid-template-columns: auto 1fr; }
  .nav .links { display: none; }
  .t-hero { font-size: clamp(38px, 10vw, 60px); }
  .brand small { display: none; }
}
@media (max-width: 520px) {
  .herostats { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
}
