:root {
  --paper: #fbf8f1;
  --paper-2: #f3eddc;
  --card: #fffefb;
  --ink: #161616;
  --ink-2: #4b4a46;
  --ink-3: #85827a;
  --blue: #7a9cc6;
  --blue-tint: #e4ebf5;
  --green: #7db46a;
  --green-2: #2f7a3e;
  --green-tint: #e2f0d8;
  --sun: #f6d96b;
  --sun-tint: #fbf0c4;
  --red: #b8452f;
  --red-tint: #f9e1da;

  --stroke: 2.5px;
  --r-card: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-icon: cubic-bezier(0.2, 0, 0, 1);

  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgb(22 22 22 / 0.07) 1px, transparent 1.3px);
  background-size: 24px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
/* The spinning orbit tracks are squares; rotated, their corners poke past the viewport. */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* Components set their own display, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 22px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition-property: scale, background-color, box-shadow, translate;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.btn:active { scale: 0.96; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 rgb(22 22 22 / 0.18); }
.btn--paper { background: var(--card); box-shadow: 0 3px 0 var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .i-out { width: 16px; height: 16px; margin-right: -4px; }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: #2a2a2a; }
  .btn--paper:hover { background: var(--sun-tint); }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 12px auto 0;
  padding: 8px 8px 8px 14px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  background: rgb(255 254 251 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav-link:hover { background: var(--paper-2); } }
@media (max-width: 640px) {
  .nav-link { display: none; }
  .brand span { font-size: 20px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 64px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.02em; }
.lede { max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.4s var(--ease-out) infinite;
}
.live[data-state="error"] .live-dot, .live[data-state="error"] .live-dot::after { background: var(--red); }
@keyframes ping { 0% { opacity: 0.7; scale: 1; } 70%, 100% { opacity: 0; scale: 2.6; } }

.ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 8px 6px 6px;
  border: 2px dashed rgb(22 22 22 / 0.35);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition-property: scale, border-color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.ca:active { scale: 0.96; }
@media (hover: hover) and (pointer: fine) { .ca:hover { border-color: var(--ink); background: var(--card); } }
.ca-label {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.ca code { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink-2); }
.ref a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.ref-code {
  padding: 2px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition-property: scale, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.ref-code:active { scale: 0.96; }
.ref-code[data-copied] { background: var(--green-tint); color: var(--green-2); }

/* Copy → check crossfade; both icons stay mounted so enter and exit both animate. */
.copy-icon { position: relative; display: grid; width: 20px; height: 20px; flex: none; }
.copy-icon svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition-property: opacity, scale, filter;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-icon);
}
.copy-icon .i-check { opacity: 0; scale: 0.25; filter: blur(4px); color: var(--green-2); }
[data-copied] .copy-icon .i-copy { opacity: 0; scale: 0.25; filter: blur(4px); }
[data-copied] .copy-icon .i-check { opacity: 1; scale: 1; filter: blur(0); }

/* ---------- Orbit ---------- */

.orbit {
  --inner-r: 32cqi;
  --outer-r: 48cqi;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px dashed rgb(22 22 22 / 0.24);
  border-radius: 50%;
  translate: -50% -50%;
}
.orbit-ring--outer { width: calc(var(--outer-r) * 2); aspect-ratio: 1; }
.orbit-ring--inner { width: calc(var(--inner-r) * 2); aspect-ratio: 1; }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25cqi;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
}
.core-globe { width: 25cqi; height: auto; }
.core-runner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1cqi;
  margin: 0 0 -2.8cqi 1.4cqi;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: bob 3.2s ease-in-out infinite alternate;
}
.core-frongus { width: 17cqi; height: auto; transform-origin: 50% 100%; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -1.4cqi; } }

.orbit-track { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.orbit-track--inner { --dur: 70s; --r: var(--inner-r); --size: 10cqi; }
.orbit-track--outer { --dur: 110s; --r: var(--outer-r); --size: 12.5cqi; animation-direction: reverse; }
.orbit-body {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit-body > div {
  display: grid;
  justify-items: center;
  gap: 0.8cqi;
  animation: spin var(--dur) linear infinite reverse;
}
.orbit-track--outer .orbit-body > div { animation-direction: normal; }
.orbit-body .avatar { width: var(--size); height: var(--size); border-width: max(2px, 0.45cqi); }
.orbit .tag {
  padding: 0.2cqi 1.4cqi;
  border: max(1.5px, 0.3cqi) solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: max(10px, 2.2cqi);
  line-height: 1.5;
  white-space: nowrap;
  max-width: 22cqi;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes spin { to { rotate: 360deg; } }

/* The runner's ticker reads as the headline of the system. */
.orbit .tag--runner { padding: 0.3cqi 1.8cqi; background: var(--ink); color: var(--paper); font-size: max(12px, 2.8cqi); max-width: none; }

/* Clicking a body copies its CA; the ticker swaps to a confirmation in place. */
.orbit .tag { transition: background-color 200ms ease, color 200ms ease; }
.swap { display: grid; justify-items: center; }
.swap > span {
  grid-area: 1 / 1;
  transition-property: opacity, scale, filter;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-icon);
}
.swap > span:last-child { opacity: 0; scale: 0.8; filter: blur(4px); }
[data-copied] .swap > span:first-child { opacity: 0; scale: 0.8; filter: blur(4px); }
[data-copied] .swap > span:last-child { opacity: 1; scale: 1; filter: blur(0); }
[data-copied] .tag { background: var(--green-tint); color: var(--green-2); }

.orbit .avatar, .core-frongus { transition: scale 160ms var(--ease-out); }
.orbit-body:active .avatar, .core-runner:active .core-frongus { scale: 0.96; }
@media (hover: hover) and (pointer: fine) {
  .orbit-body:hover .avatar, .core-runner:hover .core-frongus { scale: 1.06; }
}
.orbit-body:focus-visible, .core-runner:focus-visible { outline: none; }
.orbit-body:focus-visible .avatar { outline: 3px solid var(--blue); outline-offset: 3px; }
.core-runner:focus-visible .tag { outline: 3px solid var(--blue); outline-offset: 3px; }

.orbit-body { opacity: 0; scale: 0.9; transition: opacity 500ms var(--ease-out), scale 500ms var(--ease-out); }
.orbit-body[data-in] { opacity: 1; scale: 1; }

.sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  animation: twinkle 2.6s ease-in-out var(--t) infinite alternate;
}
@keyframes twinkle { from { scale: 0.82; rotate: -8deg; } to { scale: 1.06; rotate: 6deg; } }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticker { font-family: var(--font-display); font-weight: 500; color: var(--ink-2); }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--tone, var(--paper-2));
  font-family: var(--font-display);
  font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--home { background: var(--sun); }
.avatar--home img { object-fit: contain; padding: 14%; }
.avatar span { font-size: 22px; line-height: 1; }
.orbit-body .avatar span { font-size: 4.4cqi; }

.change {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.change:empty { display: none; }
.change::after { content: attr(data-label); font-weight: 500; opacity: 0.7; font-size: 12px; }
.change[data-dir="up"] { background: var(--green-tint); color: var(--green-2); }
.change[data-dir="down"] { background: var(--red-tint); color: var(--red); }

/* ---------- Pillars: the official coin beside the runner ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.pillar {
  --pad: clamp(16px, 2.4vw, 24px);
  --r: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--pad);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink);
}
.pillar--home { background: var(--sun); }
.pillar--runner { background: var(--blue); }
.pillar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.pillar-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pillar-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--card);
}
.pillar-avatar img { width: 46px; height: auto; }
.pillar-avatar--planet img { width: 50px; }
.pillar-id .eyebrow { color: var(--ink); opacity: 0.72; }
.pillar-id h2 { font-size: clamp(26px, 2.8vw, 34px); }
.pillar-id .ticker { display: block; margin-top: 4px; color: var(--ink); opacity: 0.62; font-size: 0.52em; }
.pillar-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.price { font-family: var(--font-display); font-weight: 650; font-size: clamp(28px, 3vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.price sub { font-size: 0.55em; vertical-align: -0.1em; }
.changes { display: flex; gap: 6px; }
.pillar .change { border: 2px solid var(--ink); background: var(--card); }
.pillar .change[data-dir="up"] { background: var(--green-tint); }
.pillar .change[data-dir="down"] { background: var(--red-tint); }

/* Tiles sit inside the card's padding, so their radius is the card radius minus that inset. */
.pillar-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: max(10px, calc(var(--r) - var(--pad)));
  background: var(--card);
}
.tile--wide { grid-column: 1 / -1; display: grid; gap: 8px; }
.tile dt, .verse-stats dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tile dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); font-variant-numeric: tabular-nums; }
.tile--wide dd { font-size: 17px; }
.pillar-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn--icon { width: 48px; padding: 0; }
.btn--icon .copy-icon, .btn--icon .copy-icon svg { width: 19px; height: 19px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Paired ---------- */

.paired {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 0;
  scroll-margin-top: 80px;
}
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin-top: 6px; font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
.section-sub { margin-top: 10px; max-width: 34em; color: var(--ink-2); }

.sort {
  display: inline-flex;
  padding: 4px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  background: var(--card);
}
.sort button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.sort button:active { scale: 0.96; }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .sort button[aria-pressed="false"]:hover { background: var(--paper-2); } }

.verse-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  background: var(--sun-tint);
}
.verse-stats > div { padding: 16px 20px; }
.verse-stats > div + div { border-left: 2px dashed rgb(22 22 22 / 0.3); }
.verse-stats dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); font-variant-numeric: tabular-nums; }
.verse-stats small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 760px) {
  .verse-stats { grid-template-columns: 1fr; }
  .verse-stats > div + div { border-left: 0; border-top: 2px dashed rgb(22 22 22 / 0.3); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.coin {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  transition-property: translate, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .coin:not(.coin--skeleton):hover { translate: 0 -3px; box-shadow: 0 7px 0 var(--ink); }
}
.coin--skeleton { min-height: 236px; border-color: rgb(22 22 22 / 0.15); box-shadow: none; background: var(--paper-2); animation: pulse 1.4s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.45; } }

.coin-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-id { flex: 1; min-width: 0; }
.coin-id h3 { font-size: 21px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id .ticker { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.coin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coin-stats dt { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.coin-stats dd { font-family: var(--font-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.coin-stats dd .change { margin-left: 2px; padding: 1px 7px; font-family: var(--font-body); font-size: 12px; vertical-align: 2px; }
.coin-stats dd .change::after { content: none; }

.progress { display: grid; gap: 6px; }
.progress-track { height: 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); }
.progress-fill {
  height: 100%;
  background: var(--green);
  transform-origin: left;
  scale: var(--p) 1;
  transition: scale 700ms var(--ease-out);
}
.progress-label { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress[data-stage="graduated"] .progress-fill { background: var(--sun); }

.coin-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  min-height: 36px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition-property: scale, background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.chip:active { scale: 0.96; }
.chip--buy { background: var(--ink); color: var(--paper); }
.chip .i-out { width: 14px; height: 14px; }
.chip--icon { width: 36px; padding: 0; justify-content: center; }
.chip--icon:last-child { margin-left: auto; }
.chip--icon svg { width: 15px; height: 15px; }
.chip--icon .copy-icon, .chip--icon .copy-icon svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: var(--sun-tint); }
  .chip--buy:hover { background: #2a2a2a; }
}

.grid-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.grid-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 20px;
  border: 2px dashed rgb(22 22 22 / 0.3);
  border-radius: var(--r-card);
  text-align: center;
  color: var(--ink-2);
}
.grid-empty img { width: 120px; }

/* ---------- Footer ---------- */

.footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: clamp(80px, 10vw, 128px) auto 0;
  padding: 0 0 48px;
  text-align: center;
}
.footer-planet { width: min(320px, 70vw); height: auto; animation: bob 4s ease-in-out infinite alternate; }
.footer-tag { font-family: var(--font-display); font-weight: 650; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { background: var(--sun-tint); } }
.fineprint { max-width: 40em; font-size: 13px; color: var(--ink-3); }

/* ---------- Entrance ---------- */

.reveal { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--d) * 100ms); }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }

/* ---------- Layout breakpoints ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .orbit { width: min(100%, 460px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-track, .orbit-body > div, .core-runner, .footer-planet, .sparkle, .live-dot::after { animation: none; }
  .reveal { animation-name: fade; }
  .coin--skeleton { animation: none; }
}
@keyframes fade { from { opacity: 0; } }
