/* Fantasy Index 6900 ($FIX). Light theme only. Structure from DESIGN.md, palette from the owner's logo. */
:root {
  /* Palette: the only place colors are defined (from the owner's logo). */
  --night: #0b2a6b;        /* Night Sky: dark sections, nav text, dark cards */
  --night-raised: #1c3975; /* tonal step of Night: cards on dark sections */
  --gold: #ffd76a;         /* Star Gold: CTA fill and active state, about one per section. Never text on light. */
  --royal: #1975e6;        /* Royal Blue: decorative accent on dark sections */
  --link: #1565d8;         /* links on white */
  --sky-mist: #e8f2ff;     /* light band */
  --peach: #fdeee0;        /* optional warm band */
  --cyan: #2dadf9;         /* decorative only */
  --alarm: #cb272f;        /* errors and the kill switch */
  --heading: #0a1838;      /* display headlines */
  --text: #3d4a63;         /* body */
  --muted: #626c86;        /* secondary text: AA on Paper, Sky Mist and Mist */
  --faint: #8a93a6;        /* borders and placeholders only, never text */
  --mist: #eef2f9;         /* cards */
  --paper: #ffffff;
  --hairline: rgba(10, 24, 56, 0.12);
  --hairline-soft: rgba(10, 24, 56, 0.08);
  --on-dark: rgba(255, 255, 255, 0.8);
  --shadow-subtle: rgba(10, 24, 56, 0.12) 0 0 0 1px;
  --shadow-lg: rgba(0, 0, 0, 0.08) 0 6px 20px 0;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  font-feature-settings: "calt";
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.band-forest :focus-visible, .orbit-stage :focus-visible { outline-color: var(--gold); }
.mono, code { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.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;
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--paper); color: var(--night); padding: 8px 16px; border-radius: 9999px; box-shadow: var(--shadow-subtle); }

.wrap { width: 100%; max-width: calc(1200px + 48px); margin: 0 auto; padding: 0 24px; }

/* ---------- Banner (dry run / kill switch) ---------- */
.banner { background: var(--night); color: var(--paper); padding: 10px 16px; text-align: center; font-size: 14px; }
.banner strong { color: var(--gold); font-weight: 700; letter-spacing: 0; }
.banner.danger { background: var(--alarm); }
.banner.danger strong { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 9999px;
  font: 500 16px/1 var(--font); letter-spacing: -0.006em; text-decoration: none; white-space: nowrap; cursor: pointer;
}
/* aria-disabled keeps a control focusable while it cannot be used, so focus never drops to <body>. */
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--night); }
/* Nothing to click: no gold, and no washed-out gold either. */
.btn-primary:disabled { opacity: 1; background: var(--mist); color: var(--muted); }
.btn-outline { background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 1px var(--night); height: 40px; padding: 0 18px; }
.btn-outline:hover:not(:disabled, [aria-disabled="true"]) { background: var(--sky-mist); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.text-link { color: var(--night); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.pill-soon {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 9999px; background: var(--mist); color: var(--night); font-size: 16px; font-weight: 500; white-space: nowrap;
}
.pill-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--night); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 1px 0 var(--hairline-soft); }
.nav-inner {
  max-width: calc(1200px + 48px); margin: 0 auto; padding: 0 24px; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--night); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand-logo { display: block; flex: none; border-radius: 50%; }
.brand .brand-logo { width: 40px; height: 40px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--hairline); }
.seg a {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px;
  border-radius: 9999px; color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.seg a:hover { background: var(--sky-mist); color: var(--night); }
.seg a.is-active { background: var(--gold); color: var(--night); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-cta { display: flex; }
.nav-social:empty { display: none; }
.nav-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; border: 1px solid var(--night); color: var(--night); }
.nav-x svg { width: 16px; height: 16px; fill: currentColor; }
.nav-x:hover { background: var(--night); color: var(--paper); }
.nav-cta .btn-outline { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 40px; text-align: center; overflow: hidden; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--muted); }
.display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--heading);
  font-size: clamp(44px, 6.4vw + 14px, 96px); line-height: 0.85; letter-spacing: -0.025em;
  max-width: 1120px; margin: 0 auto; text-wrap: balance;
}
.hero-lead { max-width: 640px; margin: 20px auto 0; font-size: 20px; line-height: 1.45; color: var(--text); letter-spacing: -0.012em; text-wrap: pretty; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px;
  border-radius: 9999px; background: var(--sky-mist); color: var(--night); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--sky-mist); color: var(--night); }
.badge-warn { background: var(--night); color: var(--paper); }
.badge-danger { background: var(--paper); color: var(--alarm); box-shadow: inset 0 0 0 1px rgba(203, 39, 47, 0.4); }
.badge-muted { background: var(--mist); color: var(--text); }

/* Next-cycle badge (DESIGN.md's floating badge). It floats fixed only from 1480px, where the side
   gutter holds it even with a classic scrollbar. Below that it sits in the sky band of the hero,
   so it never covers content. */
.cycle-badge {
  position: absolute; right: max(24px, calc((100% - 1200px) / 2)); bottom: 24px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 104px; padding: 10px 12px; border-radius: 16px;
  background: var(--night); color: var(--paper); text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), var(--shadow-lg);
}
.cb-coin { display: block; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; }
.cb-label { font-size: 12px; font-weight: 500; color: var(--gold); letter-spacing: 0; }
.cb-time { font: 600 18px/1.25 var(--mono); font-variant-numeric: tabular-nums; color: var(--paper); white-space: nowrap; letter-spacing: 0; }
.cb-time.is-text { font: 500 14px/1.3 var(--font); }

/* Orbit stage */
.orbit-stage {
  margin-top: 40px; padding: 32px 0 56px; display: flex; justify-content: center;
  background-color: var(--night);
  background-image: url("assets/hero-sky.jpg");
  background-image: image-set(url("assets/hero-sky.webp") type("image/webp"), url("assets/hero-sky.jpg") type("image/jpeg"));
  background-position: center 40%; background-size: cover; background-repeat: no-repeat;
}
.orbit {
  --orb: clamp(212px, 56vw, 440px);
  --coin: clamp(44px, 7vw, 64px);
  --gap: clamp(14px, 2.4vw, 28px); /* air between the logo's rim and the coins */
  --r: calc(var(--orb) / 2 + var(--gap) + var(--coin) / 2);
  position: relative; flex: none;
  width: calc(var(--r) * 2 + var(--coin)); height: calc(var(--r) * 2 + var(--coin));
}
.orb { position: absolute; left: 50%; top: 50%; width: var(--orb); height: var(--orb); transform: translate(-50%, -50%); display: block; }
/* A Paper rim, like the coins and og.png, so the logo reads as a medallion over the painted sky. */
.orb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper); }
.orbit-ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.orbit-coins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: orbit-spin 80s linear infinite; }
.orbit-slot {
  position: absolute; left: 50%; top: 50%; width: var(--coin); height: var(--coin);
  margin: calc(var(--coin) / -2) 0 0 calc(var(--coin) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit-upright { width: 100%; height: 100%; animation: orbit-spin 80s linear infinite reverse; }
.orbit:hover .orbit-coins, .orbit:hover .orbit-upright,
.orbit:focus-within .orbit-coins, .orbit:focus-within .orbit-upright { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-coin { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; text-decoration: none; }
.orbit-coin .logo { width: 100%; height: 100%; border: 3px solid var(--paper); box-shadow: var(--shadow-subtle); font-size: calc(var(--coin) * 0.34); }
/* Gold between two Night rings, so focus shows over blue sky and over pale clouds alike. */
.orbit-coin:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 9px var(--night); }
.orbit-tag {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  padding: 4px 10px; border-radius: 9999px; background: var(--paper); color: var(--night); box-shadow: var(--shadow-subtle);
  font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.orbit-coin:hover .orbit-tag, .orbit-coin:focus-visible .orbit-tag { opacity: 1; }

/* Coin logos (shared) */
.logo {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  border-radius: 50%; background: var(--mist); color: var(--night); font-weight: 700; line-height: 1;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--paper); }
.logo.is-placeholder { background: var(--mist); }

/* ---------- Sections ---------- */
.band, .section { padding: 96px 0; }
.section-tight { padding: 48px 0; }
.section-last { padding-bottom: 96px; }
.band-mist { background: var(--sky-mist); }
.band-forest { background: var(--night); color: var(--paper); }
/* One size for every section title, on light and on Night. */
.h-display, .dark-title {
  font: 900 clamp(40px, 3.6vw + 22px, 61px)/0.88 var(--display); text-transform: uppercase;
  letter-spacing: -0.025em; color: var(--heading); text-wrap: balance;
}
.band-forest .h-display { color: var(--paper); }
.section-head { display: grid; gap: 16px; }
.section-head.split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; }
.lead { max-width: 640px; font-size: 18px; color: var(--text); }

/* Basket grid */
.basket-sub { display: grid; justify-items: end; gap: 8px; text-align: right; color: var(--night); font-size: 16px; font-weight: 500; max-width: 360px; }
.basket-sub:empty { display: none; }
/* Badges that share the band's Sky Mist or Mist fill get Paper here; Night badges keep their own fill. */
.basket-sub .badge-live, .basket-sub .badge-muted { background: var(--paper); }
.coin-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.coin-item { display: flex; flex-direction: column; min-width: 0; }
.coin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.coin-item .logo { width: 56px; height: 56px; font-size: 20px; background: var(--paper); box-shadow: var(--shadow-subtle); }
.coin-item .logo.is-placeholder { background: rgba(255, 255, 255, 0.6); box-shadow: none; }
.coin-rank { font: 500 14px/1 var(--mono); color: var(--muted); }
.coin-sym { font-size: 18px; font-weight: 600; color: var(--night); line-height: 1.3; overflow-wrap: anywhere; }
.coin-sym a { color: inherit; text-decoration: none; }
.coin-sym a:hover { text-decoration: underline; }
.coin-name { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-vol { margin-top: 2px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.coin-live { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(11, 42, 107, 0.14); display: grid; gap: 4px; font-size: 14px; }
.coin-live div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.coin-live dt { color: var(--muted); }
.coin-live dd { margin: 0; color: var(--heading); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.coin-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; font-size: 14px; }
.coin-foot a { font-weight: 500; }
.coin-empty { grid-column: 1 / -1; padding: 40px 24px; border-radius: 10px; background: var(--paper); color: var(--text); text-align: center; text-wrap: balance; }
.bar { display: block; height: 10px; border-radius: 9999px; background: rgba(255, 255, 255, 0.6); }
.bar + .bar { margin-top: 8px; }
.caption { margin-top: 48px; max-width: 760px; font-size: 14px; color: var(--muted); }
.caption:empty { display: none; }
.caption b { color: var(--night); font-weight: 600; }

/* How it works */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
/* Numerals stay below the section title and off gold: the active nav pill is the band's one gold mark. */
.step-num { display: block; margin-bottom: 20px; font: 900 clamp(36px, 2.4vw + 18px, 52px)/0.85 var(--display); letter-spacing: -0.03em; color: var(--royal); }
.steps h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.012em; color: var(--paper); }
.steps p { color: var(--on-dark); }
.rules { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rules li { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: 10px; background: var(--night-raised); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.rules b { font-size: 18px; font-weight: 600; color: var(--paper); }
.rules span { font-size: 16px; color: var(--on-dark); }
.closer {
  margin-top: 80px; max-width: 980px; color: var(--paper); text-wrap: balance;
  font: 900 clamp(30px, 2.4vw + 18px, 52px)/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.02em;
}
.closer span { display: block; margin-top: 18px; font: 500 20px/1.4 var(--font); text-transform: none; letter-spacing: -0.012em; color: var(--on-dark); }

/* Stats tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.tile { min-width: 0; padding: 20px 24px; border-radius: 10px; background: var(--mist); }
.tile-wide { grid-column: span 2; }
.tile .k { font-size: 14px; font-weight: 500; color: var(--muted); }
.tile .v { margin-top: 8px; font: 700 36px/1.15 var(--font); letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .v small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tile .calm { display: inline-block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--night); }
.tile.highlight { background: var(--sky-mist); }

.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; font-size: 14px; color: var(--muted); }
.status-line .err { color: var(--alarm); font-weight: 500; }
.status-line[hidden] + .table-wrap { margin-top: 12px; } /* pre-launch: same gap as between tiles */

/* Tables */
.table-wrap { max-width: 100%; overflow-x: auto; background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--hairline-soft); }
th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--muted); background: var(--paper); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tr.muted-row td { color: var(--muted); }
td a, .sig-list a, .wallet-head a, .footer-links a, .more-note a { text-decoration: underline; text-decoration-color: rgba(21, 101, 216, 0.35); }
td a:hover, .sig-list a:hover, .wallet-head a:hover, .footer-links a:hover, .more-note a:hover { text-decoration-color: currentColor; }
.err-text { display: block; max-width: 280px; margin-top: 4px; font-size: 12px; white-space: normal; color: var(--alarm); }
.name { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.status {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--mist); color: var(--text);
}
.status.ok { background: var(--sky-mist); color: var(--night); }
.status.run { background: var(--night); color: var(--paper); }
.status.bad { background: var(--paper); color: var(--alarm); box-shadow: inset 0 0 0 1px rgba(203, 39, 47, 0.4); }
.band-mist .status.ok { background: var(--paper); }
.dry-tag { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 9999px; font: 600 12px/1 var(--font); letter-spacing: 0; background: var(--mist); color: var(--night); vertical-align: middle; white-space: nowrap; }

.history-row { cursor: pointer; }
.history-row:hover td { background: var(--sky-mist); }
.history-row .toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--night); font: inherit; cursor: pointer; }
.history-row .toggle:hover { background: var(--paper); box-shadow: var(--shadow-subtle); }
.history-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.chev { display: inline-block; font-size: 14px; transition: transform 0.15s; }
.detail-row > td { padding: 20px; white-space: normal; background: color-mix(in srgb, var(--mist) 45%, var(--paper)); }
.detail { display: grid; gap: 20px; }
/* width 0 + min-width 100%: the detail never widens the history table; its own tables scroll instead.
   Two classes so the phone rule `table.stack td > * { min-width: 0 }` cannot collapse it. */
.detail-row .detail { width: 0; min-width: 100%; }
.detail > * { min-width: 0; }
.detail h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.sig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; }
.sig-list li { overflow-wrap: anywhere; }
.sig-list .tag { display: inline-block; min-width: 72px; margin-right: 8px; color: var(--muted); font-family: var(--font); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--muted); }
.kv b { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0 0; font-size: 14px; }
.page-info { min-width: 96px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.loading { padding: 16px 0; color: var(--muted); font-size: 14px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--mist); color: var(--text); font-size: 14px; }
.notice.bad { background: var(--paper); color: var(--alarm); box-shadow: inset 0 0 0 1px rgba(203, 39, 47, 0.35); }

/* Wallet: dark section card */
.dark-card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: start;
  padding: 48px; border-radius: 28px; background: var(--night); color: var(--paper);
}
.dark-title { color: var(--paper); }
.dark-copy p { margin-top: 20px; max-width: 420px; font-size: 18px; color: var(--on-dark); }
.inset-card { min-width: 0; padding: 20px; border-radius: 10px; background: var(--paper); color: var(--text); }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--night); }
.wallet-row { display: flex; gap: 8px; }
.wallet-row input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--faint); border-radius: 10px; background: var(--paper); color: var(--heading);
  font: 400 16px var(--mono); letter-spacing: 0;
}
.wallet-row input::placeholder { color: var(--faint); font-family: var(--font); }
.wallet-row input:focus { outline: none; border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.wallet-row input:disabled { background: var(--mist); border-color: var(--mist); cursor: not-allowed; }
.field-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* Results get their own inset card across the full width of the dark card. The single minmax(0, 1fr)
   column lets each .table-wrap scroll instead of pushing the card (and the page) wider. */
.wallet-result { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.wallet-result:empty { display: none; }
.wallet-result h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--heading); }
.wallet-result .sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.wallet-head { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* Risk notes */
.risk { padding: 28px 32px; border-radius: 10px; background: var(--mist); }
.risk h2 { margin-bottom: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.012em; color: var(--heading); }
.risk ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); font-size: 16px; }
.risk strong { color: var(--heading); font-weight: 600; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--hairline-soft); font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--night); font-weight: 600; font-size: 16px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links:empty { display: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1480px) {
  .cycle-badge { position: fixed; right: 16px; bottom: 16px; }
}
/* Short laptop screens: keep the logo breaking the lower edge of the first viewport. */
@media (min-width: 761px) and (max-height: 860px) {
  .display { font-size: clamp(44px, min(6.4vw + 14px, 11.5vh - 4px), 88px); }
  .orbit { --orb: 380px; --coin: 60px; }
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tighter cells so the 8-column history fits tablets without sideways scrolling. */
  th, td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 960px) {
  .dark-card { grid-template-columns: 1fr; padding: 36px 28px; }
}
/* Tablet portrait: the brand name does not fit beside the centered section switcher, so the logo
   stands alone (the name stays in the accessibility tree). */
@media (max-width: 480px), (min-width: 761px) and (max-width: 940px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) {
  :root { --nav-h: 104px; }
  .wrap { padding: 0 16px; }
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 8px 16px 10px; row-gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand .brand-logo { width: 34px; height: 34px; }
  .seg { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a { flex: 1 0 auto; height: 34px; padding: 0 10px; font-size: 14px; }
  .pill-soon, .nav-cta .btn-outline { height: 36px; padding: 0 14px; font-size: 14px; }
  .nav-x { width: 36px; height: 36px; }

  .hero { padding-top: 28px; }
  .hero-lead { font-size: 18px; }
  .cta-row { margin-top: 24px; gap: 20px; }
  /* The countdown rides in the sky band, below the orbit, instead of pushing the logo down. */
  .cycle-badge {
    left: 50%; right: auto; bottom: 16px; transform: translateX(-50%);
    flex-direction: row; gap: 10px; min-width: 0; width: max-content;
    padding: 6px 16px 6px 6px; border-radius: 9999px;
  }
  .cb-coin { width: 32px; height: 32px; margin: 0; }
  .cb-time { font-size: 16px; }
  .orbit-stage { margin-top: 28px; padding: 28px 0 80px; }

  .band, .section { padding: 64px 0; }
  .section-tight { padding: 32px 0; }
  .section-last { padding-bottom: 64px; }
  .section-head.split { grid-template-columns: 1fr; }
  .basket-sub { justify-items: start; text-align: left; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 32px; }
  .caption { margin-top: 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .step-num { margin-bottom: 12px; }
  .rules { grid-template-columns: 1fr; margin-top: 48px; }
  .rules li { padding: 18px 20px; }
  .closer { margin-top: 56px; }
  .closer span { font-size: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .tile { padding: 16px; }
  .tile-wide { grid-column: auto; } /* two tiles side by side fill the 2-column row */
  .tile .v { font-size: 22px; }
  .tile .calm { font-size: 16px; }
  .dark-card { padding: 28px 20px; border-radius: 28px; }
  .dark-copy p { font-size: 16px; }
  .inset-card { padding: 16px; }
  .risk { padding: 24px 20px; }

  /* Tables stack into label/value cards */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 16px; border: 0; white-space: normal; text-align: right; }
  table.stack td::before { content: attr(data-label); flex: none; padding-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--muted); text-align: left; }
  table.stack td > * { min-width: 0; overflow-wrap: anywhere; }
  /* Child combinators: only the outer detail cell is a plain block. The Coins and Payouts tables
     nested inside it keep their own label/value cells. */
  table.stack > tbody > tr.detail-row > td { display: block; padding: 14px; text-align: left; }
  table.stack > tbody > tr.detail-row > td::before { display: none; }
  table.stack tr.history-row { display: flex; flex-direction: column; }
  table.stack tr.history-row td:first-child { order: 99; justify-content: flex-start; padding-top: 8px; }
  table.stack tr.history-row td:first-child::before { display: none; }
  .history-row .toggle { width: auto; height: 32px; padding: 0 14px; gap: 6px; grid-auto-flow: column; box-shadow: inset 0 0 0 1px var(--hairline); }
  .history-row .toggle::after { content: "Details"; font-size: 14px; font-weight: 500; }
  .name { max-width: none; }
}
@media (max-width: 380px) {
  .seg a { padding: 0 8px; font-size: 13px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand .brand-logo { width: 30px; height: 30px; }
  .pill-soon, .nav-cta .btn-outline { padding: 0 12px; font-size: 13px; }
  .pill-soon::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-coins, .orbit-upright { animation: none; }
  * { transition: none !important; }
}
