/* Founder — design system shared by every page (v3, "Ice at dusk").
   Page-specific layout stays in each page's own <style>; anything used on two or more pages lives here.

   Principles
   - Ink-black stage, warm paper-white type. One brand colour (pink); the dusk gradient belongs to the gem and to
     one-off highlights. Green / red only ever mean price direction.
   - Three type roles: Anybody (variable width + weight) for display, Geist for reading, Geist Mono for
     labels, numbers and addresses. Display type is uppercase, condensed and tight; width is the animated axis.
   - Hairlines, not shadows. Radii: 6 (controls inside panels) / 14 (panels) / 28 (stage cards) / pill (buttons).
   - Motion has a job: reveal on entry, feedback on hover / press, a tick when a price moves.
     In calm mode (see the end of this file) nothing plays by itself; hover and press feedback stays. */

/* ---------- fonts (self-hosted, CSP font-src 'self'; all OFL, licences next to the files) ---------- */
@font-face { font-family: "Anybody"; font-style: normal; font-weight: 100 900; font-stretch: 50% 150%; font-display: block; src: url(/vendor/fonts/v3/anybody-latin-var.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/vendor/fonts/v3/geist-latin-var.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/vendor/fonts/v3/geist-mono-latin-var.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;

  --ink: #08070a;           /* page */
  --ink-1: #0f0d12;         /* panels */
  --ink-2: #16131a;         /* inputs, nested surfaces, row hover */
  --ink-3: #211d27;         /* selected / pressed */
  --line: #221e28;          /* hairlines inside and around panels */
  --line-2: #342f3c;        /* control borders */
  --line-3: #4d4657;        /* control borders on hover */

  --fg: #f5f1ec;
  --fg-2: #b5aeb9;
  --fg-3: #8b8492;          /* 5.4:1 on --ink-1, the floor for small text */

  --pink: #ff5aa8;
  --pink-hi: #ff86c0;
  --pink-ink: #1c0511;
  --pink-soft: rgba(255, 90, 168, .14);
  --coral: #ff8a5c;
  --amber: #ffd166;
  --violet: #8f6bff;
  --dusk: linear-gradient(96deg, #ff5aa8 0%, #ff8a5c 52%, #ffd166 100%);

  --paper: #efe9e0;         /* the one light surface: certificates */
  --paper-2: #e2dace;
  --paper-ink: #131016;
  --paper-ink-2: #5d5562;

  --up: #3fe0a0;
  --up-soft: rgba(63, 224, 160, .13);
  --down: #ff6074;
  --down-soft: rgba(255, 96, 116, .13);
  --warn: #f1bd62;

  --r-1: 6px;
  --r-2: 14px;
  --r-3: 28px;

  --display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1360px;
  --gutter: clamp(20px, 3.4vw, 52px);
  --topbar-h: 36px;
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--fg);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain over everything: a single tiled SVG, no blend mode, no repaint on scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--pink); color: var(--pink-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: var(--r-1); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.subtle { color: var(--fg-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
.link:hover { text-decoration-color: var(--pink); }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
@media (max-width: 900px) { .hide-md { display: none !important; } }

/* ---------- type roles ---------- */
.display { font-family: var(--display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; line-height: .9; letter-spacing: -0.012em; text-wrap: balance; }
.display--l { font-size: clamp(44px, 7.4vw, 124px); }
.display--m { font-size: clamp(34px, 4.6vw, 72px); }
.display em { font-style: normal; background: var(--dusk); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--pink); transform: rotate(45deg); }
.label { font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- top strip (shell in each page, filled by site.js) ---------- */
.topbar { position: relative; z-index: 31; border-bottom: 1px solid var(--line); background: var(--ink); font: 400 12px/1 var(--mono); color: var(--fg-3); }
.topbar__inner { display: flex; align-items: center; gap: 12px; height: var(--topbar-h); white-space: nowrap; }
.topbar__inner > * { flex: none; }
.topbar__tk { color: var(--pink); font-weight: 600; letter-spacing: .04em; }
.topbar__sep { width: 1px; height: 12px; background: var(--line-2); }
.topbar__label { letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.topbar__ca { color: var(--fg-2); user-select: all; }
.topbar__ca--short { display: none; }
.topbar__btn { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--fg-2); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .15s, border-color .15s, background-color .15s; }
.topbar__btn:hover { color: var(--ink); background: var(--fg); border-color: var(--fg); }
.topbar__btn .ico { width: 12px; height: 12px; }
.topbar__buy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); letter-spacing: .04em; transition: color .15s; }
.topbar__buy:hover { color: var(--pink); }
.topbar__buy .ico { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.topbar__buy:hover .ico { transform: translate(2px, -2px); }
@media (max-width: 820px) {
  .topbar__ca--full { display: none; }
  .topbar__ca--short { display: inline; }
  .topbar__label { display: none; }
}
@media (max-width: 420px) { .topbar__long { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-stuck { background: rgba(8, 7, 10, .78); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); font-stretch: 112%; letter-spacing: .01em; text-transform: uppercase; color: var(--fg); transition: font-stretch .5s var(--ease-out); }
.brand:hover { font-stretch: 150%; }
.brand__mark { width: 24px; height: 21px; flex: none; color: var(--pink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; padding: 6px 0; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--pink); transform: rotate(45deg); }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .site-header__inner { gap: 20px; }
  .site-nav { gap: 20px; }
  .site-nav .hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn--primary { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.btn--primary:hover { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.btn--primary[disabled]:hover { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.btn--buy { background: var(--up); border-color: var(--up); color: #03170e; }
.btn--buy:hover { background: #6beeb8; border-color: #6beeb8; color: #03170e; }
.btn--buy[disabled]:hover { background: var(--up); border-color: var(--up); color: #03170e; }
.btn--sell { background: var(--down); border-color: var(--down); color: #20040a; }
.btn--sell:hover { background: #ff8191; border-color: #ff8191; color: #20040a; }
.btn--sell[disabled]:hover { background: var(--down); border-color: var(--down); color: #20040a; }
.btn--ghost { border-color: transparent; color: var(--fg-2); }
.btn--ghost:hover { background: var(--ink-3); border-color: transparent; color: var(--fg); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; gap: 12px; }
.btn--block { width: 100%; }
.btn .ico { width: 15px; height: 15px; }
.btn--icon { width: 34px; padding: 0; }
/* arrow that travels on hover */
.btn__arrow { display: inline-grid; place-items: center; width: 18px; height: 18px; overflow: hidden; }
.btn__arrow .ico { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow .ico { transform: translateX(3px); }

/* wallet button: address + status dot once connected (site.js and the coin page toggle .is-connected) */
.btn.is-connected { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.btn.is-connected::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; }

/* ---------- form controls ---------- */
.input, .select {
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink-1); border: 1px solid var(--line-2); color: var(--fg);
  font-size: 14px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder { color: var(--fg-3); }
.input:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .select:focus { border-color: var(--fg-3); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); outline: none; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%238b8492' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.select option { background: var(--ink-1); color: var(--fg); }
.search { position: relative; display: block; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.search .input { width: 100%; padding-left: 42px; }
.search .input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.5); }

/* segmented control: buttons use aria-pressed or aria-selected */
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ink-1); border: 1px solid var(--line-2); }
.segmented > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--fg-3); font-size: 13px; font-weight: 500; transition: color .15s, background-color .15s;
}
.segmented > button:hover { color: var(--fg); }
.segmented > button[aria-pressed="true"], .segmented > button[aria-selected="true"] { background: var(--fg); color: var(--ink); }
.segmented .ico { width: 14px; height: 14px; }

/* ---------- panels ---------- */
.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-2); min-width: 0; }
.panel__head { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.panel__title { font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.panel__body { padding: 18px; }
.panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }

/* figures: a row of headline numbers divided by hairlines */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.figures > div { padding: 28px 28px 30px; min-width: 0; }
.figures > div:first-child { padding-left: 0; }
.figures > div + div { border-left: 1px solid var(--line); }
.figures dt { font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.figures dd { margin: 18px 0 0; font: 700 clamp(30px, 4vw, 60px)/.95 var(--display); font-stretch: 78%; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div { padding: 20px 16px 22px; }
  .figures > div:nth-child(odd) { padding-left: 0; }
  .figures > div:nth-child(3) { border-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures dd { margin-top: 12px; }
}

/* ---------- tables ---------- */
.table-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th {
  position: sticky; top: 0; z-index: 1; background: var(--ink-1);
  padding: 0 18px; height: 38px; text-align: left; white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
  box-shadow: inset 0 -1px 0 var(--line);
}
.table td { padding: 0 18px; height: 48px; border-top: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:first-child td { border-top: 0; }
.table .r { text-align: right; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.table a:not(.btn) { color: var(--fg-2); }
.table a:not(.btn):hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.table td.mono, .table td .mono { font-size: 12.5px; }

/* coin identity cell */
.coin-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-cell__name { display: block; font-weight: 500; color: var(--fg); }
.coin-cell__sym { display: block; font: 400 11.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--fg-3); }
.table a.coin-cell, .table a.coin-cell:hover { color: var(--fg); text-decoration: none; }

/* avatars (coin icons fall back to two letters) */
.avatar { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink-3); color: var(--fg-2); font: 600 11px/1 var(--mono); letter-spacing: .02em; }
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--mono); background: var(--ink-3); color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag--up { background: var(--up-soft); color: var(--up); }
.tag--down { background: var(--down-soft); color: var(--down); }
.tag--subtle { background: var(--ink-3); color: var(--fg-3); }

/* status dot: live data breathes, stale data does not */
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
.dot--off { background: var(--warn); }
.dot--off::after { display: none; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.live-note { display: inline-flex; align-items: center; gap: 9px; font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* a number that just changed */
.tick-up { animation: tick-up 1s var(--ease-out); }
.tick-down { animation: tick-down 1s var(--ease-out); }
@keyframes tick-up { 0% { color: var(--up); } }
@keyframes tick-down { 0% { color: var(--down); } }

/* loading placeholders */
.skel { display: inline-block; height: 10px; width: 64px; border-radius: 999px; background: var(--ink-3); vertical-align: middle; animation: skel 1.6s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .45; } }

/* empty / error message in a panel or table */
.empty { padding: 40px 18px; text-align: center; color: var(--fg-3); font-size: 14px; }
.table td.empty, .table td .empty { height: auto; white-space: normal; }
.table td.empty { padding: 40px 18px; }
.table tbody tr:has(.empty):hover { background: none; }

/* ---------- section scaffolding ---------- */
.section { padding-top: clamp(104px, 15vh, 190px); }
.section__head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(40px, 6vh, 72px); }
.section__head p { max-width: 52ch; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }

/* ---------- entry motion (only when JS is running: <html class="js">) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* headlines rise word by word out of a clipped line (site.js wraps the words) */
.js [data-split] .w { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding-block: .08em; margin-block: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- dialog (wallet picker on every page, built by site.js) ---------- */
.dialog {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-3);
  background: var(--ink-1); color: var(--fg);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5);
}
.dialog::backdrop { background: rgba(8, 7, 10, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog[open] { animation: dlg-in .35s var(--ease-out); }
.dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog__inner { padding: 26px; display: grid; gap: 20px; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog__head h2 { font: 800 30px/.95 var(--display); font-stretch: 68%; text-transform: uppercase; letter-spacing: 0; }
.dialog__desc { margin-top: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.dialog__close { margin: -6px -8px 0 0; color: var(--fg-3); }
.dialog__list { display: grid; gap: 8px; }
.dialog__msg { min-height: 0; font-size: 13px; color: var(--down); overflow-wrap: anywhere; }
.dialog__msg:empty { display: none; }
.wopt {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 60px; padding: 0 18px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--ink-2);
  color: var(--fg); font-size: 15px; font-weight: 500; text-align: left; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .3s var(--ease-out);
}
.wopt:hover { border-color: var(--fg-3); background: var(--ink-3); transform: translateX(4px); }
.wopt__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--mono); color: #fff; flex: none; }
.wopt__icon--phantom { background: #ab9ff2; color: #1c1640; }
.wopt__icon--solflare { background: #fcd34d; color: #3a2a00; }
.wopt__icon--backpack { background: #e33e3f; }
.wopt__state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.wopt__state .ico { width: 13px; height: 13px; }
.wopt__state--on { color: var(--up); }

/* ---------- footer (built by site.js) ---------- */
.site-footer { margin-top: clamp(112px, 16vh, 200px); border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-3); overflow: clip; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 40px; padding-block: 56px 48px; align-items: start; }
.site-footer__about { display: grid; gap: 16px; max-width: 38ch; }
.site-footer__about p { line-height: 1.6; color: var(--fg-2); }
.site-footer__nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; gap: 12px 48px; }
.site-footer__nav a { color: var(--fg-2); transition: color .15s; display: inline-flex; align-items: center; gap: 4px; }
.site-footer__nav a:hover { color: var(--fg); }
.site-footer__nav .ico { width: 12px; height: 12px; }
/* the wordmark: one word, edge to edge; its width axis follows the pointer */
.site-footer__word { display: block; padding-inline: var(--gutter); font: 900 21.5vw/.78 var(--display); font-stretch: 100%; text-transform: uppercase; letter-spacing: -0.02em; text-align: center; white-space: nowrap; user-select: none;
  /* outline only: the stroke is painted first and the fill (page colour) covers its inner half and the glyphs' overlapping contours */
  color: var(--ink); -webkit-text-stroke: 2px var(--line-3); paint-order: stroke fill; transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease); }
.site-footer__word:hover { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding-block: 28px 40px; font-size: 12.5px; line-height: 1.6; }
.site-footer__legal p { max-width: 86ch; }
.ca-pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--fg-2); font-size: 12.5px; white-space: nowrap; }
button.ca-pill { cursor: pointer; transition: border-color .2s, background-color .2s; }
button.ca-pill:hover { border-color: var(--fg-3); background: var(--ink-2); }
.ca-pill b { color: var(--pink); font: 600 12px/1 var(--mono); letter-spacing: .04em; }
.ca-pill span { font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.ca-pill .ico { width: 13px; height: 13px; color: var(--fg-3); }
@media (max-width: 820px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px 36px; }
}

/* ---------- page-to-page transitions (cross-document view transitions where supported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.site-header { view-transition-name: site-header; }
.topbar { view-transition-name: topbar; }
::view-transition-group(coin-avatar), ::view-transition-group(coin-name) { animation-duration: .55s; animation-timing-function: var(--ease-out); }

/* ---------- calm mode ----------
   <html class="calm"> (set in each page's <head>): the visitor switched motion off in the footer. The system's
   reduced-motion setting is deliberately ignored: motion plays by default. Nothing plays by itself and nothing animates in as you scroll or change page;
   hover and press feedback (colour, fill, a letter widening) stays, because the visitor caused it. */
.calm *, .calm *::before, .calm *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
.calm [data-reveal], .calm [data-split] .w > span { opacity: 1; transform: none; transition: none; }
:root.calm::view-transition-group(*), :root.calm::view-transition-old(*), :root.calm::view-transition-new(*) { animation: none !important; }

/* the footer's motion switch */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--fg-2); font: 400 12px/1.6 var(--mono); letter-spacing: .04em; white-space: nowrap; transition: color .15s; }
.motion-toggle:hover { color: var(--fg); }
.motion-toggle i { width: 26px; height: 14px; border-radius: 999px; border: 1px solid var(--line-3); position: relative; transition: background-color .2s, border-color .2s; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); transition: transform .25s var(--ease-out), background-color .2s; }
.motion-toggle[aria-checked="true"] i { background: var(--pink); border-color: var(--pink); }
.motion-toggle[aria-checked="true"] i::after { transform: translateX(12px); background: var(--pink-ink); }
