:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #16181a;
  --muted: #5d6468;
  --line: #e3e5e0;
  --accent: #15803d;
  --accent-soft: #e3f4e8;
  --chip: #eef0eb;
  --github: #24292f;
  --x: #000000;
  --wallet: #6d28d9;
  --creator: #b45309;
  --silver: #8e979e;
  --silver-hi: #ffffff;
  --silver-row: #f1f3f5;
  --star: linear-gradient(135deg, #4b5563, #9ca3af 45%, #374151 60%, #6b7280);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1012;
    --surface: #16191c;
    --text: #e8eaec;
    --muted: #949ca3;
    --line: #262b30;
    --accent: #4ade80;
    --accent-soft: #15301f;
    --chip: #1f2428;
    --github: #c9d1d9;
    --x: #e8eaec;
    --wallet: #a78bfa;
    --creator: #fbbf24;
    --silver: #c3cad0;
    --silver-hi: rgba(255, 255, 255, 0.16);
    --silver-row: #1d2226;
    --star: linear-gradient(135deg, #9ca3af, #f3f4f6 45%, #a1a8b0 60%, #ffffff);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1080px; margin: 0 auto; padding: 28px 16px 24px; }

h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; }
.subhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lede { margin: 0; color: var(--muted); }
.recipients { display: flex; flex-wrap: wrap; gap: 8px; }
.recipient {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px;
}
.recipient:hover { border-color: var(--muted); }
.notice {
  margin: 16px 0 0; padding: 9px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--creator); border-radius: 8px;
  background: var(--surface); color: var(--muted); font-size: 14px;
}
.notice strong { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.src-github { --c: var(--github); }
.src-x { --c: var(--x); }
.src-wallet { --c: var(--wallet); }
.src-creator { --c: var(--creator); }
.dot { background: var(--c); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
th button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
th button[aria-sort] { color: var(--text); font-weight: 600; }
th button[aria-sort]::after { content: " ↓"; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { width: 1%; color: var(--muted); font-variant-numeric: tabular-nums; }
.links { width: 1%; }

.coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin img, .coin .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--chip);
}
.coin .avatar { display: grid; place-items: center; font-weight: 600; color: var(--muted); font-size: 13px; }
.coin-text { min-width: 0; }
.coin-name { font-weight: 600; line-height: 1.4; max-width: 340px; overflow: hidden; text-overflow: ellipsis; display: block; }
.coin-sub { color: var(--muted); font-weight: 400; font-size: 13px; }
.ca {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  padding: 0; border: 0; background: none; cursor: copy; text-align: left;
  font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted);
}
.ca:hover { color: var(--text); }
.ca[data-copied]::after { content: "  copied"; color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0;
  padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 12px;
}
.paused { color: var(--muted); font-size: 12px; }
.vol-hot { color: var(--accent); font-weight: 600; }
.dim { color: var(--muted); }
.links a { color: var(--muted); text-decoration: none; font-size: 13px; margin-left: 10px; }
.links a:hover { color: var(--text); text-decoration: underline; }

h2 { font-size: 18px; margin: 22px 0 10px; }
.h2-sub { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
/* #1 coin: silver row with a slow shine sweeping across, a star and a badge. */
.top-coin td { background: var(--silver-row); }
.top-coin td:first-child { box-shadow: inset 3px 0 0 var(--silver); }
.top-coin { position: relative; }
.top-coin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, var(--silver-hi) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  animation: shine 4s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes shine {
  0% { background-position: 150% 0; }
  60%, 100% { background-position: -100% 0; }
}
.top-mark {
  font-size: 16px;
  background: var(--star);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: #1f2937;
  background: linear-gradient(135deg, #d1d5db, #f9fafb 45%, #b8bec6);
  border: 1px solid #aeb5bd;
}
@media (prefers-reduced-motion: reduce) {
  .top-coin::after { animation: none; display: none; }
}

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
footer { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .col-recipients, .links { display: none; }
  .coin-name, .coin-text { max-width: 150px; }
  th, td { padding: 9px 8px; }
}
