:root {
  --glass: rgba(24, 21, 30, .72);
  --line: rgba(246, 241, 231, .12);
  --line-2: rgba(246, 241, 231, .22);
  --ivory: #f6f1e7;
  --gold: #d9ad5b;
  --gold-hi: #f2d69a;
  --text: #f3eee5;
  --muted: #a89f95;
  --ok: #9fdcb0;
  --danger: #ff8f7f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ui: Geist, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  background: #1b1a2e linear-gradient(180deg, #0b1233 0%, #22244a 40%, #3b3158 75%, #5e4260 100%) fixed;
}
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 80px; }
.back { display: inline-block; font-size: 14px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--text); }

.head h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 84px); line-height: .95; }
.lede { margin: 14px 0 0; max-width: 60ch; color: #cdc5b9; font-size: 16.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 32px 0 40px; }
.stats div { padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.stats .verify b { font-family: var(--ui); font-size: 17px; font-weight: 600; line-height: 1.3; }
.stats .verify.ok { border-color: rgba(159,220,176,.4); }
.stats .verify.ok b { color: var(--ok); }
.stats .verify.bad { border-color: rgba(255,143,127,.5); }
.stats .verify.bad b { color: var(--danger); }

/* The chain: cards joined by a gold spine with a link icon between each pair. */
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--gold), rgba(217,173,91,.25)); }
.chain > li { position: relative; padding-left: 76px; }
.chain > li + li { margin-top: 26px; }
.chain > li + li::before {
  content: ""; position: absolute; left: 20px; top: -20px; width: 24px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none' stroke='%23d9ad5b' stroke-width='2'%3E%3Crect x='1' y='3' width='12' height='8' rx='4'/%3E%3Crect x='11' y='3' width='12' height='8' rx='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.node {
  position: absolute; left: 12px; top: 18px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: #15131c; border: 1.5px solid var(--gold);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--gold-hi);
}

.card { padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.card.broken { border-color: rgba(255,143,127,.6); }
.top { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; padding: 7px; display: grid; place-items: center; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.removed { background: rgba(246,241,231,.06); border: 1px dashed var(--line-2); }
.what { min-width: 0; }
.what h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.what h2 span { font-weight: 400; color: #cdc5b9; }
.what p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.what a { text-decoration: none; }
.what a:hover { text-decoration: underline; }
.price { text-align: right; }
.price b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.price span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.tagline { margin: 12px 0 0; font-size: 14px; color: #cdc5b9; }
.reach { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.reach b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(246,241,231,.08); color: var(--text); }
.pill.live { background: rgba(159,220,176,.14); color: var(--ok); }
.pill.gone { color: var(--muted); }
.pill.ok { background: rgba(159,220,176,.1); color: var(--ok); }
.pill.bad { background: rgba(255,143,127,.14); color: var(--danger); }
.hash { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(10,8,14,.4); border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px 3px 9px; }
.hash button { border: 0; background: rgba(246,241,231,.08); color: var(--muted); font: inherit; font-size: 11px; border-radius: 6px; padding: 2px 7px; cursor: pointer; }
.hash button:hover { color: var(--text); }
.meta .spacer { flex: 1; }
.fp { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.genesis .node { border-style: dashed; font-size: 18px; }
.genesis .card { background: rgba(24,21,30,.5); }
.genesis h2 { margin: 0; font-size: 16px; font-weight: 600; }
.genesis p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }

.empty { padding: 26px 24px; border-radius: 18px; background: var(--glass); border: 1px dashed var(--line-2); color: #cdc5b9; }
.empty a { font-weight: 600; }

.explain { margin-top: 44px; padding: 18px 20px; border-radius: 18px; background: rgba(24,21,30,.5); border: 1px solid var(--line); }
.explain summary { cursor: pointer; font-weight: 600; }
.explain p { color: #cdc5b9; font-size: 14px; max-width: 64ch; }
.explain code { font-family: var(--mono); font-size: 13px; color: var(--gold-hi); }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .chain::before { left: 19px; }
  .chain > li { padding-left: 50px; }
  .chain > li + li::before { left: 8px; }
  .node { left: 0; width: 38px; height: 38px; font-size: 11.5px; }
  .top { grid-template-columns: 44px 1fr; }
  .logo { width: 44px; height: 44px; border-radius: 10px; }
  .price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .price span { margin: 0; }
}
