/* Orbancy, Nov 2026. Dark first, light to match. Newsreader for display, Geist for everything else.
   One accent (gold), hairlines for depth, one easing language. */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --d1: 150ms; --d2: 250ms; --d3: 450ms; --d4: 800ms;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px; --r-s: 12px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1240px;
  color-scheme: dark;
  --bg: #0B0C0E; --bg2: #101215; --card: #14161A; --card2: #191C21;
  --fg: #ECE8E1; --muted: #A29E96; --faint: #75726B;
  --line: rgba(236, 232, 225, .09); --line2: rgba(236, 232, 225, .16);
  --gold: #CFB077; --gold-ink: #17140E; --gold-soft: rgba(207, 176, 119, .12);
  --up: #7FC6A2; --down: #E3907F;
  --grain: .035;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F1EA; --bg2: #EDE9E0; --card: #FBF9F4; --card2: #F6F3EC;
  --fg: #16161A; --muted: #5C5952; --faint: #8A867E;
  --line: rgba(22, 22, 26, .09); --line2: rgba(22, 22, 26, .16);
  --gold: #8A6A2C; --gold-ink: #FBF9F4; --gold-soft: rgba(138, 106, 44, .1);
  --up: #2E7A55; --down: #B0473A;
  --grain: .03;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.55 var(--sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--d3) var(--ease-io), color var(--d3) var(--ease-io);
}
body::after { /* grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--gold-ink); }
.num, .t { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 400; }
.display, h1 { font: 400 clamp(2.9rem, 7.2vw, 6.4rem)/.98 var(--serif); letter-spacing: -.035em; font-optical-sizing: auto; }
h2 { font: 400 clamp(2rem, 4.2vw, 3.4rem)/1.04 var(--serif); letter-spacing: -.03em; }
h3 { font: 500 1.05rem/1.3 var(--sans); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.up { color: var(--up); } .down { color: var(--down); }
.gold { color: var(--gold); }

/* Shell */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--d3) var(--ease-out); }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; font: 500 1.06rem/1 var(--sans); letter-spacing: -.01em; }
.mark svg { width: 26px; height: 26px; stroke-width: 1.5; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .94rem; transition: color var(--d2) var(--ease-out), background-color var(--d2) var(--ease-out); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--card); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; color: var(--muted); transition: color var(--d2) var(--ease-out), border-color var(--d2) var(--ease-out); }
.icon-btn:hover { color: var(--fg); border-color: var(--line2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-light { display: none; }
:root[data-theme="light"] .theme-light { display: block; }
:root[data-theme="light"] .theme-dark { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 500 .96rem/1 var(--sans); letter-spacing: -.005em; cursor: pointer; white-space: nowrap; transition: background-color var(--d2) var(--ease-out), color var(--d2) var(--ease-out), border-color var(--d2) var(--ease-out), transform var(--d2) var(--ease-out); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: none; color: var(--fg); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--fg); background: none; color: var(--fg); }
.btn.sm { height: 40px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.link { color: var(--fg); border-bottom: 1px solid var(--line2); padding-bottom: 1px; transition: border-color var(--d2) var(--ease-out), color var(--d2) var(--ease-out); }
.link:hover { border-color: var(--gold); color: var(--gold); }
.arrow { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .92rem; transition: color var(--d2) var(--ease-out); }
.arrow:hover { color: var(--fg); }
.arrow::after { content: '→'; transition: transform var(--d2) var(--ease-out); }
.arrow:hover::after { transform: translateX(3px); }

main { padding-bottom: 40px; overflow-x: clip; }
section { padding: clamp(56px, 9vw, 120px) 0 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.head .lead { margin-top: 14px; }

footer { margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
footer .big { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.02em; max-width: 16ch; }
footer nav { display: grid; gap: 10px; align-content: start; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--fg); }
footer .fine { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .84rem; }

/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav, .tools .btn { display: none; }
  .top .wrap { height: 60px; justify-content: space-between; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; min-height: 48px; color: var(--faint); font-size: .72rem; }
  .tabbar a[aria-current="page"] { color: var(--fg); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .big { grid-column: 1 / -1; }
}

/* Surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: clamp(20px, 3vw, 32px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); vertical-align: middle; margin-right: 8px; box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 60%, transparent); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* Figures row */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs > div { padding: 26px 22px 24px 0; }
.figs > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.figs b { display: block; font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.figs span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr 1fr; } .figs > div:nth-child(3) { padding-left: 0; border-left: 0; } .figs > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Skeletons */
.sk { color: transparent !important; background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%) 0 0 / 200% 100%; border-radius: 8px; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(78vh, 760px); padding-top: clamp(32px, 6vw, 72px); }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .status { margin-top: 26px; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } .orrery { max-width: 520px; margin: 0 auto; } }
@media (max-width: 520px) { .orbit .tag { font-size: .66rem; } .orbit .body { --size: 34px !important; } .orrery { width: 88%; } }

/* Orrery: the leading clones in orbit around Orbancy */
.orrery { position: relative; aspect-ratio: 1; width: 100%; }
.orrery svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orrery .ring { fill: none; stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orrery .ring.hair { stroke: var(--line); stroke-dasharray: 2 6; }
.orrery .core { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--gold) 55%, white), var(--gold) 45%, color-mix(in oklab, var(--gold) 40%, black) 100%); box-shadow: 0 0 80px 10px var(--gold-soft); }
.orbit { position: absolute; inset: 0; animation: spin var(--period, 90s) linear infinite; animation-delay: var(--delay, 0s); }
.orbit .body { position: absolute; left: 50%; top: calc(50% - var(--rad)); translate: -50% -50%; animation: spin var(--period, 90s) linear infinite reverse; animation-delay: var(--delay, 0s); display: grid; justify-items: center; gap: 6px; }
.orbit img, .orbit .ph { width: var(--size, 44px); height: var(--size, 44px); border-radius: 50%; object-fit: cover; border: 1px solid var(--line2); background: var(--card2); }
.orbit .ph { display: grid; place-items: center; font: 500 .8rem var(--sans); color: var(--muted); }
.orbit .tag { font-size: .74rem; color: var(--muted); white-space: nowrap; background: color-mix(in oklab, var(--bg) 80%, transparent); padding: 2px 6px; border-radius: 6px; }
.orbit .tag b { font-weight: 500; }
.orrery.paused .orbit, .orrery.paused .orbit .body { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Rows: leaderboard preview, tape */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); transition: background-color var(--d2) var(--ease-out); }
.row:last-child { border-bottom: 1px solid var(--line); }
a.row:hover, button.row:hover { background: var(--card); }
button.row { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.row .rk { color: var(--faint); font-size: .88rem; text-align: right; }
.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; color: var(--muted); overflow: hidden; }
.av.sm { width: 28px; height: 28px; font-size: .7rem; }
.who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val { text-align: right; font-variant-numeric: tabular-nums; }
.row .val small { display: block; color: var(--faint); font-size: .8rem; }
.spark { width: 96px; height: 32px; }
.spark path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (max-width: 620px) { .row { grid-template-columns: 22px 36px minmax(0, 1fr) auto; } .row .spark { display: none; } }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split .sticky { position: sticky; top: 108px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }
.steps { display: grid; }
.step { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.step p { margin-top: 8px; color: var(--muted); max-width: 54ch; }

/* Token band */
.band { position: relative; overflow: hidden; border-radius: calc(var(--r) + 8px); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, var(--gold-soft), transparent 55%), var(--card); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.band .figs { border: 0; grid-template-columns: 1fr 1fr; }
.band .figs > div { padding: 18px 18px 18px 0; border-top: 1px solid var(--line); }
.band .figs > div:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
.band .figs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.band .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* Feed of clone trades with reasons */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trade { padding: 22px; display: grid; gap: 14px; align-content: start; }
.trade .top-line { display: flex; align-items: center; gap: 10px; }
.trade .who { min-width: 0; flex: 1; }
.trade q { quotes: none; color: var(--fg); font: 400 1.08rem/1.45 var(--serif); }
.trade .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.side { font-weight: 500; }
.side.buy { color: var(--up); } .side.sell { color: var(--down); }
@media (max-width: 960px) { .feed { grid-template-columns: 1fr; } }

/* Page header (non-home pages) */
.phead { padding-top: clamp(40px, 7vw, 88px); display: grid; gap: 18px; }
.phead h1 { font-size: clamp(2.6rem, 6vw, 5rem); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--faint); font: 400 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .series path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: opacity var(--d2) var(--ease-out), stroke-width var(--d2) var(--ease-out); }
.chart .series path.dim { opacity: .18; }
.chart .area { opacity: .16; }
.chart .bar { fill: var(--fg); opacity: .18; transition: opacity var(--d1) var(--ease-out); }
.chart .bar.on, .chart .bar:hover { opacity: .7; }
.chart .bar.gold { fill: var(--gold); opacity: .85; }
.chart .cross line { stroke: var(--line2); }
.tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); font-size: .82rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity var(--d1) var(--ease-out); font-variant-numeric: tabular-nums; z-index: 5; }
.tip.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .86rem; color: var(--muted); }
.legend button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; }
.legend i { width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.legend button[aria-pressed="false"] { opacity: .4; }

/* Segmented control (interactive, so a pill is right) */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: .88rem; cursor: pointer; transition: color var(--d2) var(--ease-out), background-color var(--d2) var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.search { height: 40px; width: min(260px, 100%); border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); padding: 0 14px; font: inherit; font-size: .92rem; }
.search::placeholder { color: var(--faint); }
.search:focus { outline: none; border-color: var(--gold); }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; font-weight: 400; color: var(--faint); font-size: .84rem; padding: 0 12px 12px; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td { text-align: right; padding: 14px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background-color var(--d1) var(--ease-out); }
.tbl tbody tr:hover { background: var(--card); }
.tbl .cl { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.tbl .cl .who b { max-width: 220px; }
.tbl th button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: inherit; }
.tbl th button[aria-pressed="true"] { color: var(--fg); }
.more { display: flex; justify-content: center; padding-top: 20px; }

/* Two-up grid of panels */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .grid2, .grid2.even { grid-template-columns: 1fr; } }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.panel-h h3 { font-size: 1rem; }

/* Leader card */
.leader { display: grid; gap: 22px; align-content: space-between; }
.leader .who-big { display: flex; align-items: center; gap: 16px; }
.leader .who-big img, .leader .who-big .av { width: 64px; height: 64px; }
.leader .ret { font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.kv > div { padding: 14px 0; border-top: 1px solid var(--line); }
.kv > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.kv dt, .kv span { display: block; color: var(--muted); font-size: .84rem; }
.kv b { display: block; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Tape */
.tape { display: grid; max-height: 520px; overflow: auto; }
.tick { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tick .what { min-width: 0; }
.tick .what b { font-weight: 500; }
.tick .what small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick .when { color: var(--faint); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.tick.new { animation: flash 1.6s var(--ease-out); }
@keyframes flash { from { background: var(--gold-soft); } to { background: transparent; } }

/* Coins grid */
.coins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.coins > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.coins > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.coins b { font-weight: 500; display: block; }
.coins span { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .coins { grid-template-columns: 1fr 1fr; } .coins > div:nth-child(odd) { padding-left: 0; border-left: 0; } }

/* Drawer */
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw; border: 0; border-left: 1px solid var(--line2); background: var(--bg); color: var(--fg); padding: 0; }
dialog.drawer::backdrop { background: rgba(5, 6, 8, .55); backdrop-filter: blur(3px); }
dialog.drawer[open] { animation: slide var(--d3) var(--ease-out); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer .dh { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 2; }
.drawer .db { padding: 24px; display: grid; gap: 28px; }
.drawer h2 { font-size: 2.2rem; }
.bar-pct { height: 6px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.bar-pct i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }

/* Token page */
.tok { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tok img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line2); }
.price { font: 400 clamp(2.6rem, 6vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.chg { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.addr { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.addr:last-child { border-bottom: 1px solid var(--line); }
.addr span { color: var(--muted); font-size: .9rem; min-width: 120px; }
.addr code { font: 400 .84rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.copy { border: 1px solid var(--line); background: none; border-radius: 10px; height: 32px; padding: 0 12px; color: var(--muted); cursor: pointer; font-size: .82rem; }
.copy:hover { color: var(--fg); border-color: var(--line2); }
.splitbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; }
.splitbar i { display: block; height: 100%; }
.splitkey { display: grid; gap: 0; margin-top: 18px; }
.splitkey > div { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.splitkey i { width: 10px; height: 10px; border-radius: 3px; }
.decision { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.decision:last-child { border-bottom: 1px solid var(--line); }
.decision p { font: 400 1.12rem/1.5 var(--serif); max-width: 68ch; }
.decision small { color: var(--faint); font-size: .82rem; }
.ms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ms a { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-s); border: 1px solid var(--line); transition: border-color var(--d2) var(--ease-out); }
.ms a:hover { border-color: var(--gold); }
.ms b { font: 400 1.4rem/1 var(--serif); }
.ms span { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.meter { display: grid; gap: 10px; }
.meter .track { position: relative; height: 10px; border-radius: 10px; background: var(--card2); }
.meter .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--gold); }
.meter .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--fg); border-radius: 2px; }
.meter .lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }

/* Entrance (progressive) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
.note { color: var(--faint); font-size: .84rem; margin-top: 14px; max-width: 70ch; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

.skline { display: block; height: .9em; width: var(--w, 60%); margin: 5px 0; }
@media (max-width: 520px) { .meter .lbl span:nth-child(2) { display: none; } }
