/* Fun Index ($FI). Dark only. Structure from DESIGN.md (serif/sans split, pills, cards, hairlines, no
   shadows); palette is the owner's pump.fun green on near-black. Every color lives in :root. */
:root {
  /* Surfaces */
  --canvas: #0b0b0e;     /* one continuous page canvas */
  --card: #131317;       /* cards */
  --fill: #1b1b1f;       /* panels, inputs, skeletons */
  --fill-2: #242429;     /* raised fills, selected filter */
  /* Hairlines */
  --line: #232327;
  --line-2: #38383f;
  --line-3: #4b4c52;     /* pill tag borders, icon wells */
  /* Text */
  --text: #fafafa;
  --muted: #9da3ae;
  /* The one accent */
  --green: #86efac;
  --on-green: #052e16;   /* text on green fills */
  --green-hover: #a7f3c4;
  --green-dim: rgba(134, 239, 172, 0.4);
  --red: #f34c68;        /* errors and the kill switch only */
  --link: var(--green);
  --data-line: linear-gradient(90deg, rgba(134, 239, 172, 0.35), #86efac); /* thin data lines only */
  --ring: rgba(255, 255, 255, 0.2) 0 0 0 1px; /* icon wells only */
  /* Type */
  --serif: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Shape and layout */
  --radius: 12px;        /* cards */
  --max: 1216px;
  --gutter: 24px;
  --section-pad: 80px;   /* two of these make the 160px gap between sections */
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--canvas); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  font-feature-settings: "calt", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.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; padding: 8px 16px; border-radius: 9999px; background: var(--text); color: var(--canvas); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { display: block; font: 600 13px/1 var(--sans); letter-spacing: -0.02em; color: var(--green); }
.link { color: var(--link); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Banner (dry run / kill switch) ---------- */
.banner { padding: 10px 16px; border-bottom: 1px solid var(--line-2); background: var(--fill-2); color: var(--text); text-align: center; font-size: 14px; }
.banner strong { font-weight: 700; color: var(--text); }
.banner.danger { background: var(--red); border-color: var(--red); color: var(--canvas); }
.banner.danger strong { color: var(--canvas); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 9999px;
  font: 500 14px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
/* 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; }
/* The one filled button per viewport. */
.btn-primary { background: var(--green); color: var(--on-green); font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--green-hover); }
.btn-primary:disabled { opacity: 1; background: var(--fill-2); color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover:not(:disabled, [aria-disabled="true"]) { background: rgba(255, 255, 255, 0.08); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.pill-soon {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-3); border-radius: 9999px; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.pill-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 14, 0.85); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); 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(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand-logo { display: block; flex: none; width: 32px; height: 32px; border-radius: 50%; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 6px 10px; color: var(--muted); font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--green); }
.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: 34px; height: 34px; border-radius: 9999px; border: 1px solid var(--line-3); color: var(--text); }
.nav-x svg { width: 14px; height: 14px; fill: currentColor; }
.nav-x:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 var(--section-pad); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.display {
  margin-top: 20px; font: 400 clamp(40px, 3.4vw + 30px, 84px)/1.02 var(--serif); letter-spacing: 0.01em;
  color: var(--text); text-wrap: balance; font-variant-numeric: lining-nums;
}
.hero-lead { max-width: 540px; margin-top: 24px; font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* Official contract address: the email-capture pill, with the CA in mono and Copy joined on the right */
.ca { margin-top: 32px; max-width: 540px; }
.ca-label { margin-bottom: 10px; font: 600 13px/1 var(--sans); letter-spacing: -0.02em; color: var(--green); }
.ca-field { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 20px; border: 1px solid var(--text); border-radius: 9999px; }
.ca-value { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--text); word-break: break-all; }
.ca-copy {
  flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 9999px;
  background: var(--fill-2); color: var(--text); font: 500 13px/1 var(--sans); cursor: pointer;
}
.ca-copy:hover { background: var(--line-2); }
.ca-warn { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Basket card: the hero's product UI */
.basket-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bc-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.well { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 9999px; border: 1px solid var(--line-3); }
.well-ring { width: 28px; height: 28px; overflow: hidden; border: 0; box-shadow: var(--ring); }
.well-ring img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-drop { margin-top: 20px; }
.bc-label { font: 600 13px/1 var(--sans); letter-spacing: -0.02em; color: var(--muted); }
.bc-time {
  margin-top: 10px; font: 500 48px/1.05 var(--sans); letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Words instead of digits: "Dropping now", "Halted", "Starts at launch". */
.bc-time.is-text { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; white-space: normal; }
/* Two countdowns side by side, split by a hairline like the stat tiles. */
.bc-timers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-timer { min-width: 0; }
.bc-timer:first-child { padding-right: 20px; }
.bc-timer + .bc-timer { padding-left: 20px; border-left: 1px solid var(--line); }
.bc-timers .bc-time { font-size: 44px; }
.bc-timers .bc-time.is-text { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
/* Live drop: what the bot is doing now, then a four-step tracker. */
.bc-run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.bc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: bc-pulse 1.6s ease-in-out infinite; }
.bc-elapsed { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-elapsed b { font-weight: 600; color: var(--text); }
.bc-run .bc-time.is-text { font-size: 28px; }
.bc-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); gap: 8px; }
.bc-steps li { display: grid; align-content: start; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.25; color: var(--muted); }
.bc-steps li::before { content: ""; height: 3px; border-radius: 9999px; background: var(--line-2); }
.bc-steps li.is-done::before { background: var(--green-dim); }
.bc-steps li.is-now { color: var(--text); font-weight: 600; }
.bc-steps li.is-now::before { background: var(--data-line); animation: bc-pulse 1.6s ease-in-out infinite; }
@keyframes bc-pulse { 50% { opacity: 0.4; } }
.bc-cap { margin-top: 12px; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.bc-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fill); font-size: 13px; line-height: 1.45; color: var(--muted); }
.bc-fill { margin-top: 20px; }
.bc-fill-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.bc-fill-head span:last-child { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.meter { position: relative; height: 3px; border-radius: 9999px; background: var(--line-2); overflow: hidden; }
.meter-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 9999px; background: var(--data-line); transition: width 0.6s ease; }
.bc-filter { display: flex; gap: 6px; margin: 18px -2px 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.bc-filter::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; flex: none; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-3); border-radius: 9999px; background: transparent; color: var(--muted);
  font: 500 13px/1 var(--sans); cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover { color: var(--text); border-color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--fill-2); border-color: var(--text); color: var(--text); }
.bc-cols { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 4px 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bc-list { list-style: none; margin: 0; padding: 0; }
.bc-list > li + li { border-top: 1px solid var(--line); }
.hl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 4px; border-radius: 8px; color: inherit; text-decoration: none; }
a.hl-row:hover { background: rgba(255, 255, 255, 0.03); }
a.hl-row:hover .hl-sym { color: var(--green); }
.hl-row .well { width: 30px; height: 30px; }
.hl-row .logo { width: 28px; height: 28px; font-size: 11px; }
.hl-id { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hl-sym { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; transition: color 0.15s; }
.hl-name { flex: 1 1 0; min-width: 0; margin-left: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-val { display: flex; align-items: baseline; gap: 6px; line-height: 1.3; white-space: nowrap; }
.hl-cap { font-size: 15px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.hl-sub { font-size: 12px; color: var(--muted); }
.bc-list > li.is-off .hl-sym, .bc-list > li.is-off .hl-cap { color: var(--muted); }
.bc-list .hl-id .bar { height: 8px; }
.bc-list .hl-val + .bar, .bc-list .hl-row > .bar { height: 8px; }
.hc-empty { padding: 20px 4px; font-size: 14px; color: var(--muted); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Status badge pills (mode badge, basket badge) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 10px;
  border: 1px solid var(--line-3); border-radius: 9999px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { border-color: var(--green-dim); color: var(--green); }
.badge-warn { border-color: var(--text); color: var(--text); }
.badge-danger { border-color: var(--red); color: var(--red); }
.badge-muted { border-color: var(--line-3); color: var(--muted); }

/* Coin logos (shared): a lettered circle under the image */
.logo {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  border-radius: 50%; background: var(--fill-2); color: var(--text); font-weight: 600; line-height: 1;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--fill); }
.logo.is-placeholder { background: var(--fill); }

/* ---------- Stats callout ---------- */
.stats-band { padding: var(--section-pad) 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; padding: 0 16px; text-align: center; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile .v { font: 400 44px/1.1 var(--serif); letter-spacing: 0.01em; color: var(--text); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.tile .k { font-size: 14px; color: var(--muted); }
.stats-note { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance; }
.stats-note:empty { display: none; }
.note-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; margin-right: 6px; padding: 0 9px;
  border: 1px solid var(--green-dim); border-radius: 9999px; color: var(--green); font-size: 12px; font-weight: 500; vertical-align: 1px;
}
.note-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-last { padding-bottom: 120px; }
.section-head { display: grid; justify-items: center; gap: 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.h-display { font: 400 clamp(36px, 2.2vw + 24px, 56px)/1.1 var(--serif); letter-spacing: 0.01em; color: var(--text); text-wrap: balance; font-variant-numeric: lining-nums; }
.lead { max-width: 600px; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; color: var(--muted); text-wrap: pretty; }

/* Tier tags: greener up the tiers, from a plain outline (t0) to a green fill (t3). */
.t0 { --tag-bd: var(--line-3); --tag-fg: var(--muted); --tag-bg: transparent; }
.t1 { --tag-bd: var(--line-3); --tag-fg: var(--text); --tag-bg: transparent; }
.t2 { --tag-bd: var(--green-dim); --tag-fg: var(--green); --tag-bg: transparent; }
.t3 { --tag-bd: var(--green); --tag-fg: var(--on-green); --tag-bg: var(--green); }

/* Basket */
.basket-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.basket-sub:empty { display: none; }
.tier-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 32px; }
.tier-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tier-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 5px 0 14px;
  border: 1px solid var(--line-3); border-radius: 9999px; color: var(--muted); font-size: 13px; white-space: nowrap;
}
.tier-pill b { font-weight: 600; color: var(--text); }
.tier-q {
  display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border: 1px solid var(--tag-bd); border-radius: 9999px;
  background: var(--tag-bg); color: var(--tag-fg); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tier-note { font-size: 13px; color: var(--muted); }
.tier-note:empty { display: none; }
.coin-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.coin-item { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.coin-top { display: flex; align-items: center; gap: 12px; }
.coin-item .well { width: 46px; height: 46px; }
.coin-item .logo { width: 44px; height: 44px; font-size: 17px; }
.coin-id { display: grid; flex: 1 1 auto; min-width: 0; }
.coin-rank { flex: none; align-self: flex-start; font: 500 13px/1 var(--mono); color: var(--muted); }
.coin-sym { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.coin-sym a { color: inherit; text-decoration: none; }
.coin-sym a:hover { color: var(--green); }
.coin-name { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-vol { margin-top: 12px; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.coin-live { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); 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(--text); 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: 12px; flex-wrap: wrap; font-size: 14px; }
.coin-foot a { font-weight: 500; text-decoration: none; }
.coin-foot a:hover { text-decoration: underline; }
.coin-empty { grid-column: 1 / -1; padding: 40px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-align: center; text-wrap: balance; }
.coin-item.is-placeholder .coin-top { margin-bottom: 20px; }
.coin-item.is-placeholder .coin-top .bar { flex: none; }
/* Tier and "Pinned by team" pill tags */
.coin-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 8px; border: 1px solid var(--tag-bd, var(--line-3)); border-radius: 9999px;
  background: var(--tag-bg, transparent); color: var(--tag-fg, var(--text)); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.coin-chips .chip { height: 22px; padding: 0 9px; font-size: 12px; }
.chip-pin { --tag-bd: var(--text); --tag-fg: var(--text); --tag-bg: transparent; }
.chip-pin[title] { cursor: help; }
.bar { display: block; height: 10px; border-radius: 9999px; background: var(--fill-2); }
.bar + .bar { margin-top: 8px; }
.caption { max-width: 760px; margin: 40px auto 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: pretty; }
.caption:empty { display: none; }

/* How it works */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.steps h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--text); }
.steps p { font-size: 15px; color: var(--muted); }
.rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rules > li { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.rules > li > .eyebrow { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.rules b { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; color: var(--text); }
.rules > li > span:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.rules > li.rule-wide { grid-column: 1 / -1; background: var(--card); }
.rules > li.rule-tiers { grid-column: span 2; }
.closer {
  max-width: 900px; margin: 120px auto 0; text-align: center; color: var(--text); text-wrap: balance;
  font: 400 clamp(30px, 1.8vw + 22px, 48px)/1.18 var(--serif); letter-spacing: 0.01em; font-variant-numeric: lining-nums;
}
.closer span { display: block; margin-top: 20px; font: 400 18px/1.4 var(--sans); letter-spacing: -0.01em; color: var(--muted); }

/* History: DESIGN.md's data table, hairline rows and no card */
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 48px 0 12px; font-size: 14px; color: var(--muted); }
.status-line .err { color: var(--red); font-weight: 500; }
.status-line[hidden] + .table-wrap { margin-top: 48px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font-size: 14px; font-weight: 500; color: var(--muted); }
td { color: var(--text); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.muted-row td { color: var(--muted); }
td a, .sig-list a, .wallet-head a, .footer-links a, .more-note a, .ca-warn a { color: var(--link); text-decoration: underline; text-decoration-color: var(--green-dim); }
td a:hover, .sig-list a:hover, .wallet-head a:hover, .footer-links a:hover, .more-note a:hover, .ca-warn a:hover { text-decoration-color: currentColor; }
.err-text { display: block; max-width: 280px; margin-top: 4px; font-size: 12px; white-space: normal; color: var(--red); }
.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: 22px; padding: 0 9px; border: 1px solid var(--line-3); border-radius: 9999px;
  font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--muted);
}
.status.ok { border-color: var(--green-dim); color: var(--green); }
.status.run { border-color: var(--text); color: var(--text); }
.status.bad { border-color: var(--red); color: var(--red); }
.dry-tag { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border: 1px solid var(--line-3); border-radius: 9999px; font: 600 11px/1 var(--sans); color: var(--text); vertical-align: middle; white-space: nowrap; }

.history-row { cursor: pointer; }
.history-row:hover td { background: rgba(255, 255, 255, 0.025); }
.history-row .toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 9999px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.history-row .toggle:hover { border-color: var(--line-3); }
.history-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.chev { display: inline-block; font-size: 13px; transition: transform 0.15s; }
.detail-row > td { padding: 20px; white-space: normal; background: var(--card); }
.detail { display: grid; gap: 24px; }
/* 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: 600 13px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--green); }
.detail table { font-size: 14px; }
.detail th, .detail td { padding: 10px 12px; }
.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(--sans); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--muted); }
.kv b { font-weight: 500; color: var(--text); 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: 24px 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; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); 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(--fill); color: var(--text); font-size: 14px; }
.notice.bad { background: transparent; border: 1px solid var(--red); color: var(--red); }

/* Wallet check: the email-capture pattern */
.wallet-form { max-width: 560px; margin: 40px auto 0; }
.capture { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 20px; border: 1px solid var(--text); border-radius: 9999px; }
.capture:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.capture input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; color: var(--text);
  font: 400 14px var(--mono); letter-spacing: 0;
}
.capture input:focus { outline: none; }
.capture input::placeholder { color: var(--muted); font-family: var(--sans); opacity: 1; }
.capture:has(input:disabled) { border-color: var(--line-3); }
.capture input:disabled { cursor: not-allowed; }
.field-note { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
/* The single minmax(0, 1fr) column lets each .table-wrap scroll instead of pushing the page wider. */
.wallet-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 900px; margin: 40px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.wallet-result:empty { display: none; }
.wallet-result h3 { margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.wallet-result .sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.wallet-head { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-col h2 { margin-bottom: 14px; font: 600 13px/1 var(--sans); letter-spacing: -0.02em; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul a { color: var(--muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--text); }
.footer-links { display: grid; gap: 10px; }
.footer-links:empty { display: none; }
.footer-links:not(:empty) + .footer-fallback { display: none; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules > li.rule-tiers { grid-column: auto; } /* two columns: the eight short cards pair up evenly */
  /* Tighter cells so the 8-column history fits tablets without sideways scrolling. */
  th, td { padding-left: 10px; padding-right: 10px; }
  .hero-grid { gap: 40px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .basket-card { max-width: 600px; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-inner { gap: 8px; }
  .nav-links a { padding: 6px 7px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section-pad: 48px; --nav-h: 96px; }
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 10px var(--gutter) 0; row-gap: 4px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; overflow-x: auto; scrollbar-width: none; margin: 0 -7px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 10px 7px 12px; font-size: 13px; }
  .nav-links a.is-active::after { left: 7px; right: 7px; bottom: 4px; }

  .hero { padding-top: 40px; }
  .display { margin-top: 16px; }
  .hero-lead { margin-top: 20px; font-size: 18px; }
  .cta-row { margin-top: 28px; }
  .basket-card { padding: 20px 16px; }
  .bc-time { font-size: 44px; }
  .bc-time.is-text { font-size: 28px; }
  .bc-timer:first-child { padding-right: 14px; }
  .bc-timer + .bc-timer { padding-left: 14px; }
  .bc-timers .bc-time { font-size: 34px; }
  .bc-timers .bc-time.is-text { font-size: 18px; }
  .bc-run .bc-time.is-text { font-size: 24px; }
  .bc-steps li { font-size: 12px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .tile { padding: 28px 12px; }
  .tile + .tile { border-left: 0; }
  .tile:nth-child(2n) { border-left: 1px solid var(--line); }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tile .v { font-size: 32px; }

  .section-last { padding-bottom: 72px; }
  .section-head { gap: 14px; }
  .lead { font-size: 16px; }
  .tier-row { margin-top: 24px; gap: 10px; }
  .tier-legend { gap: 6px; }
  .tier-pill { gap: 6px; height: 32px; padding: 0 4px 0 11px; font-size: 12px; }
  .tier-q { min-width: 24px; height: 22px; padding: 0 6px; }
  .tier-note { flex-basis: 100%; text-align: center; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .coin-item { padding: 20px; }
  .caption { margin-top: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .rules > li { padding: 20px; }
  .closer { margin-top: 72px; }
  .closer span { font-size: 16px; }
  .status-line { margin-top: 32px; }
  .status-line[hidden] + .table-wrap { margin-top: 32px; }
  .wallet-form { margin-top: 32px; }
  .wallet-result { margin-top: 32px; padding: 16px; }
  .footer { padding-top: 48px; }
  .footer-grid { gap: 28px 20px; }

  /* Tables stack into label/value rows */
  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(--line); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 4px; border: 0; white-space: normal; text-align: right; }
  table.stack td::before { content: attr(data-label); flex: none; padding-top: 2px; font-size: 13px; font-weight: 500; 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; border-radius: 10px; 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:hover td { background: transparent; }
  .history-row .toggle { width: auto; height: 32px; padding: 0 14px; gap: 6px; grid-auto-flow: column; border-color: var(--line-3); }
  .history-row .toggle::after { content: "Details"; font-size: 13px; font-weight: 500; }
  .name { max-width: none; }
}
@media (max-width: 520px) {
  .ca-field { flex-wrap: wrap; padding: 12px 12px 12px 16px; border-radius: 20px; }
  .ca-value { flex-basis: 100%; }
  .ca-copy { margin-left: auto; }
}
@media (max-width: 420px) {
  .bc-filter { gap: 4px; }
  .pill { padding: 0 10px; }
}
@media (max-width: 380px) {
  .brand { font-size: 15px; gap: 8px; }
  .pill-soon { padding: 0 11px; font-size: 12px; }
  .bc-time { font-size: 40px; }
  .bc-timers .bc-time { font-size: 30px; }
  .capture { padding-left: 16px; }
  .capture input::placeholder { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
