/* Halo — the whole visual system.

   Near-black surfaces, one gold accent, a lot of air. Type is Inter throughout; IBM Plex
   Mono appears only where a string is an address, a signature or a mint, because those are
   the only places a monospace figure means anything.

   Built mobile-first. Every grid starts at one column and widens at a breakpoint, and the
   page must not scroll sideways at 390px — that is the width the layout is checked at. */

:root {
  --bg: #0B0D12;
  --surface: #131722;
  --surface-2: #181D2B;
  --border: #232838;
  --text: #F4F1EA;
  --muted: #8B93A7;
  --gold: #F0B43C;
  --green: #3DDC84;
  --burn: #FF7A45;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1120px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 48px -16px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.burn { color: var(--burn); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 76px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 650;
}
h2 {
  margin: 0;
  font-size: clamp(27px, 5.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.028em;
  font-weight: 640;
}
h3 { margin: 0; font-size: clamp(18px, 2.4vw, 21px); letter-spacing: -.015em; font-weight: 600; }
h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
nav.scrolled { border-bottom-color: var(--border); }
nav .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -.02em; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.navlinks { display: none; gap: 4px; margin-left: 12px; }
.navlinks a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.navlinks a:hover { color: var(--text); }
.navlinks a.on { color: var(--text); background: var(--surface); }
@media (min-width: 900px) { .navlinks { display: flex; } }

nav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.burger {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }

.drawer { display: none; border-bottom: 1px solid var(--border); background: var(--bg); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px var(--gutter); border-top: 1px solid var(--border); font-size: 16px; }
.drawer a:first-child { border-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 540;
  white-space: nowrap;
  transition: transform .18s var(--ease), border-color .2s var(--ease), background .2s var(--ease), opacity .2s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--text); color: #0B0D12; border-color: var(--text); font-weight: 600; }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.gold { background: var(--gold); color: #251803; border-color: var(--gold); font-weight: 600; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
a.card, .card.tappable { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
a.card:hover, .card.tappable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #2E3448; }
.pad { padding: 20px; }
@media (min-width: 720px) { .pad { padding: 26px; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}
.pill.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 38%, transparent); }
.pill.warn { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 38%, transparent); }
.pill.bad { color: var(--burn); border-color: color-mix(in srgb, var(--burn) 38%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.tag.donated { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.tag.pending { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.tag.queued { color: var(--muted); background: color-mix(in srgb, var(--muted) 13%, transparent); }

.note {
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 4px 12px 12px 4px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  word-break: break-word;
}
.note b { color: var(--text); font-weight: 600; }
.note code { font-family: var(--mono); font-size: .9em; color: var(--text); }
.note.bad { border-left-color: var(--burn); }
.note.good { border-left-color: var(--green); }

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty b { display: block; color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 6px; }

/* ---------- sections ---------- */
main { flex: 1; }
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 104px 0; } }
section.tight { padding: 48px 0; }

.sechead { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sechead p { margin-top: 12px; }
.sechead.left { margin-left: 0; text-align: left; }

.rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.rowhead a { font-size: 14px; color: var(--muted); }
.rowhead a:hover { color: var(--text); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 68px 0 56px; text-align: center; overflow: hidden; }
@media (min-width: 720px) { .hero { padding: 108px 0 88px; } }
.hero:before {
  content: "";
  position: absolute;
  left: 50%; top: -180px;
  width: min(1100px, 150vw); height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 13%, transparent), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .mark { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 28px; box-shadow: var(--shadow-lift); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .line2 { display: block; color: var(--gold); }
.hero .lede { margin: 0 auto; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
@media (min-width: 840px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--bg); padding: 24px 18px; text-align: center; }
.stats b { display: block; font-size: clamp(24px, 4.4vw, 34px); font-weight: 640; letter-spacing: -.03em; line-height: 1.1; }
.stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- the flow ---------- */
.flow { margin-top: 12px; }
.flowline { display: grid; gap: 0; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .flowline { grid-auto-flow: column; grid-auto-columns: 1fr auto; grid-template-columns: none; align-items: center; } }

.node {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  opacity: .42;
  transform: translateY(8px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.flow.lit .node { opacity: 1; transform: none; border-color: #2E3448; box-shadow: var(--shadow); }
.node .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.node h4 { margin: 8px 0 4px; }
.node p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.node .icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
}
.flow.lit .node.is-burn .icon { background: color-mix(in srgb, var(--burn) 14%, transparent); color: var(--burn); }

/* Connectors: a rail that fills as the nodes light. Vertical on phones, horizontal above. */
.conn { position: relative; height: 26px; margin: 0 auto; width: 2px; background: var(--border); overflow: hidden; }
.conn i { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
.flow.lit .conn i { transform: scaleY(1); }
@media (min-width: 900px) {
  .conn { height: 2px; width: 34px; margin: 0 10px; }
  .conn i { transform: scaleX(0); transform-origin: left; }
  .flow.lit .conn i { transform: scaleX(1); }
}
.conn.burnpath i { background: var(--burn); }
@media (prefers-reduced-motion: reduce) {
  .node { opacity: 1; transform: none; }
  .conn i { transform: none !important; }
}

.flowburn { margin-top: 18px; }
.flowburn .rail { display: flex; align-items: stretch; gap: 0; flex-direction: column; }
@media (min-width: 900px) { .flowburn .rail { flex-direction: row; align-items: center; justify-content: center; } .flowburn .node { flex: 1 1 0; } }
.flowburn .node { padding: 12px 16px; }
.flowburn .node h4 { font-size: 14px; margin-top: 0; }
.flowburn .node p { font-size: 12.5px; }
.flownote { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.flownote .sep { color: var(--border); margin: 0 8px; }

/* ---------- campaign cards ---------- */
.ccard { display: flex; flex-direction: column; }
.ccard .shot { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.ccard .shot img { width: 100%; height: 100%; object-fit: cover; }
.ccard .shot .mono-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--bg); }
.ccard .shot .badge { position: absolute; left: 10px; top: 10px; background: rgba(11, 13, 18, .82); backdrop-filter: blur(6px); }
.ccard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ccard .title { font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; }
.ccard .foot b { font-size: 19px; font-weight: 640; letter-spacing: -.02em; color: var(--green); }
.ccard .foot span { font-size: 12.5px; color: var(--muted); }

.bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--muted); border-radius: 999px; }
.bar b { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 999px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }

/* ---------- donation receipt cards ---------- */
.rcard { display: flex; flex-direction: column; }
.rcard .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.rcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rcard .thumb .placeholder { color: var(--muted); font-size: 13px; text-align: center; padding: 0 18px; }
.rcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.rcard .amt { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: var(--green); line-height: 1.1; }
.rcard .to { font-size: 14px; line-height: 1.4; }
.rcard .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.rcard .meta a { text-decoration: underline; }

/* ---------- token tiles ---------- */
.tile .shot { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--surface-2); }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; }
.tile .shot .mono-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--bg); }
.tile .body { padding: 12px 14px 14px; }
.tile .name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.tile .val { font-size: 14px; font-weight: 600; color: var(--green); margin-top: 6px; }

.ico { width: 40px; height: 40px; border-radius: 11px; flex: none; overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--bg); }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 17px; }
.ico.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ledger th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 0 14px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.ledger td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.ledger tr:last-child td { border-bottom: 0; }
/* Numeric columns sit hard against the next one when only the right side is padded, so
   the gap is on the left where it actually separates two figures. */
table.ledger .num, table.ledger th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-left: 18px; padding-right: 0; white-space: nowrap; }
table.ledger .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
table.ledger a.link { text-decoration: underline; text-underline-offset: 3px; }

.tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 13.5px; }
.tabs button.on { background: var(--text); color: var(--bg); font-weight: 600; }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.field .err { font-size: 13px; color: var(--burn); margin-top: 7px; }
.in {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  outline: none;
  transition: border-color .2s var(--ease);
}
.in:focus { border-color: var(--gold); }
textarea.in { min-height: 96px; resize: vertical; }
select.in { appearance: none; }
.two-up { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .two-up { grid-template-columns: 1fr 1fr; } }

/* The file picker is a <label>, so it has to out-specify `.field label { display:block }`
   or the thumbnail and its caption stack instead of sitting side by side. */
.field label.drop, .drop { border: 1px dashed var(--border); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; background: var(--surface); margin-bottom: 0; font-weight: 400; }
.drop:hover { border-color: var(--muted); }
.drop .ph { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 22px; flex: none; }
.drop img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }

.steps { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 14px; margin-top: 14px; background: var(--surface); }
.steps > div { display: flex; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border); color: var(--muted); align-items: center; }
.steps > div:first-child { border-top: 0; }
.steps i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 10px; font-style: normal; flex: none; font-family: var(--mono); }
.steps .on { color: var(--text); } .steps .on i { border-color: var(--gold); color: var(--gold); }
.steps .done { color: var(--text); } .steps .done i { background: var(--green); border-color: var(--green); color: #05301A; }
.steps .fail i { border-color: var(--burn); color: var(--burn); }

.split-bar { display: flex; height: 48px; border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 600; }
.split-bar div { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.split-bar .a { width: 90%; background: var(--green); color: #05301A; }
.split-bar .b { width: 10%; background: var(--burn); color: #2B0C02; justify-content: center; padding: 0 6px; }

/* ---------- trending rail ---------- */
.trend { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.trend .hd { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.trend .hd b { font-size: 14px; font-weight: 600; }
.trend .hd span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.trend .list { max-height: 340px; overflow-y: auto; }
.trend .row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--border); background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.trend .row:first-child { border-top: 0; }
.trend .row:hover { background: var(--surface-2); }
.trend .row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.trend .row .t { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend .row .p { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-top: 3px; }
.trend .foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------- token page ---------- */
.tokhero { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .tokhero { grid-template-columns: 1fr 360px; gap: 40px; } }
.tokshot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--surface-2); }
.tokshot { position: relative; }
.tokshot img { width: 100%; height: 100%; object-fit: cover; }
.tokshot .mono-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 46px; font-weight: 600; color: var(--bg); }

.money { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.money div { background: var(--surface); padding: 18px; }
.money b { display: block; font-size: 22px; font-weight: 640; letter-spacing: -.02em; }
.money span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); display: block; }
.gallery a img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; }
.gallery a .cap { padding: 9px 11px; font-size: 12.5px; }
.gallery a .cap b { display: block; color: var(--green); font-size: 14px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.kv > span:nth-child(even) { word-break: break-all; text-align: right; }

/* ---------- burn totals ---------- */
.burnbig { font-family: var(--mono); font-size: clamp(42px, 11vw, 96px); letter-spacing: -.05em; font-weight: 500; line-height: 1; color: var(--burn); word-break: break-all; }

/* ---------- docs ---------- */
.docs h2 { margin-top: 64px; }
.docs h2:first-of-type { margin-top: 0; }
.docs p, .docs li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.docs p + p { margin-top: 14px; }
.docs ul, .docs ol { padding-left: 20px; }
.docs li { margin: 8px 0; }
.docs h2 + p { margin-top: 14px; }
.docs code { font-family: var(--mono); font-size: .92em; color: var(--text); }
.docs .steplist { list-style: none; padding: 0; counter-reset: s; }
.docs .steplist li { counter-increment: s; position: relative; padding-left: 44px; margin: 22px 0; color: var(--muted); }
.docs .steplist li:before {
  content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--gold); font-size: 13px; font-weight: 600; font-family: var(--mono);
}
.docs .steplist li b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 44px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
footer .col { display: flex; flex-direction: column; gap: 9px; }
footer .col b { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
footer a:hover { color: var(--text); }
footer .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; }

/* ---------- toast + modal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 540;
  z-index: 80; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; background: rgba(6, 7, 11, .78); backdrop-filter: blur(4px); z-index: 70; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal .sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lift); width: 100%; max-width: 540px; padding: 24px; max-height: 92vh; overflow-y: auto; }

/* ---------- operator ---------- */
.ops .in { max-width: 100%; }
.stage { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.stage.offramped, .stage.funded { border-color: var(--gold); color: var(--gold); }
.stage.approved, .stage.donated { border-color: var(--green); color: var(--green); }
.stage.failed { border-color: var(--burn); color: var(--burn); }
.qwait { font-size: 12px; color: var(--gold); margin-top: 5px; max-width: 44ch; }
.qerr { font-size: 12px; color: var(--burn); margin-top: 5px; max-width: 44ch; word-break: break-word; }
.qids { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 5px; word-break: break-all; }

.prog { padding: 12px 14px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.prog .hd { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.prog .hd b { color: var(--text); font-weight: 600; }
.prog ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prog li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: baseline; font-size: 13px; }
.prog li .m { color: var(--muted); } .prog li.on .m { color: var(--text); } .prog li.bad .m { color: var(--burn); }
.prog li .ms { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.prog .mark { font-family: var(--mono); font-size: 12px; text-align: center; }
.prog li.ok .mark { color: var(--green); } .prog li.bad .mark { color: var(--burn); }
.spin { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.prog .out { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; flex-wrap: wrap; }
.prog .out img { width: 130px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: var(--surface); }
.prog .out .msg { max-width: 60ch; word-break: break-word; }
.prog .out .msg.bad { color: var(--burn); } .prog .out .msg.good { color: var(--green); }

.opsgrid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 760px) { .opsgrid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.panel { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 18px; }
.panel h3 { font-size: 16px; margin-bottom: 4px; }
.railrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.floatbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-bottom: 20px; background: var(--surface); }
.floatbar b { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.floatbar.low { border-color: var(--gold); } .floatbar.low b { color: var(--gold); }
.mform { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.mform .in { min-height: 38px; padding: 7px 11px; font-size: 13px; width: auto; }
.mform .ref { width: 190px; max-width: 100%; } .mform .amt { width: 120px; }
.mlog { font-size: 12px; color: var(--muted); margin-top: 20px; }
.mlog table { width: 100%; border-collapse: collapse; }
.mlog td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.wkeys { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 20px; background: var(--surface); font-size: 13px; }
.wkeys table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.wkeys td, .wkeys th { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.wkeys th { color: var(--muted); font-size: 12px; }
.wkeys .kname { font-family: var(--mono); color: var(--text); user-select: all; cursor: copy; }
.wkeys tr.on .kname { color: var(--green); }

.banner { background: var(--surface); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12.5px; text-align: center; padding: 9px 16px; }

/* ---------- ring stepper ----------
   One component for a launch, a claim and anything else that walks a plan of steps. A ring
   per step: faint when it is still to come, an arc turning while it runs, filled with a
   check when it is done, filled in burn orange with a cross when it is not. The rail behind
   them fills as they complete, which is the progress bar without there being a bar.

   Horizontal with the labels beneath from 720px up, and a vertical list below that — six
   rings across a 390px screen would be six illegible rings. */
.rings { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rings .rail { position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.rings .rail i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform .5s var(--ease); }
.rs { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; }
.rs .ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--bg); border-radius: 50%; }
.rs .ring svg { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.rs .ring circle { fill: none; stroke-width: 2.5; }
.rs .ring circle.t { stroke: var(--border); }
.rs .ring circle.f { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .5s var(--ease); }
.rs .ring b { position: relative; font-size: 13px; font-weight: 600; font-family: var(--mono); color: var(--muted); }
.rs .rl { font-size: 14px; color: var(--muted); line-height: 1.4; }
.rs .rt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.rs.done .ring circle.f { stroke-dashoffset: 0; }
.rs.done .ring b { color: var(--gold); font-size: 15px; }
.rs.done .rl { color: var(--text); }

.rs.running .ring circle.f { stroke-dasharray: 30 92; stroke-dashoffset: 0; animation: ringspin 1.1s linear infinite; transform-origin: 22px 22px; }
.rs.running .ring b { color: var(--text); }
.rs.running .rl { color: var(--text); font-weight: 550; }
@keyframes ringspin { to { transform: rotate(360deg); } }

.rs.failed .ring circle.t { stroke: color-mix(in srgb, var(--burn) 40%, transparent); }
.rs.failed .ring circle.f { stroke: var(--burn); stroke-dashoffset: 0; }
.rs.failed .ring b { color: var(--burn); font-size: 15px; }
.rs.failed .rl { color: var(--burn); }

@media (prefers-reduced-motion: reduce) {
  .rs.running .ring circle.f { animation: none; stroke-dasharray: 60 60; }
  .rings .rail i { transition: none; }
}

@media (min-width: 720px) {
  .rings { flex-direction: row; }
  .rings .rail { left: 22px; right: 22px; top: 30px; bottom: auto; width: auto; height: 2px; }
  .rings .rail i { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .rs { flex: 1 1 0; min-width: 0; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 8px 6px; }
  .rs .rl { font-size: 12.5px; }
}

.ringbox { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 20px 18px; }
.ringbox .outcome { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.ringbox .outcome.good { color: var(--green); }
.ringbox .outcome.bad { color: var(--burn); }
.ringbox .outcome .links { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- something happening, on the public pages ---------- */
.inflight { display: grid; gap: 10px; margin-bottom: 20px; }
.inflight .row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
}
.inflight .row.burning { border-color: color-mix(in srgb, var(--burn) 34%, transparent); background: color-mix(in srgb, var(--burn) 7%, transparent); }
.inflight .row.settled { border-color: color-mix(in srgb, var(--green) 34%, transparent); background: color-mix(in srgb, var(--green) 7%, transparent); }
.inflight b { font-weight: 640; letter-spacing: -.01em; }
.inflight .what { color: var(--muted); }
.inflight .stage { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.inflight .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.inflight .row.burning .pulse { background: var(--burn); }
.inflight .row.settled .pulse { background: var(--green); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .inflight .pulse { animation: none; } }

/* ---------- operator: what is still owed ---------- */
.owed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
@media (min-width: 900px) { .owed { grid-template-columns: repeat(4, 1fr); } }
.owed > div { background: var(--surface); padding: 16px 18px; }
.owed b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.owed span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.owed .act { display: grid; place-items: center; }

/* The two buttons a claim leaves behind. The donation is the one that moves money to
   somebody else, so it is the one that looks like a decision. */
.btn.green-cta { border-color: color-mix(in srgb, var(--green) 55%, transparent); color: var(--green); }
.btn.green-cta:hover:not([disabled]) { background: color-mix(in srgb, var(--green) 12%, transparent); border-color: var(--green); }

/* The actions on a coin's row wrap rather than widening the table: five buttons in one
   nowrap cell is what pushed the tracker off the side of its card. */
.ledger td.acts { white-space: normal; min-width: 260px; }
.ledger td.acts .actrow { display: flex; gap: 6px; flex-wrap: wrap; }
.ledger td.acts .actrow.sub { margin-top: 6px; }
.ledger td.acts .actrow.sub .btn { border-color: transparent; color: var(--muted); padding: 0 8px; }
.ledger td.acts .actrow.sub .btn:hover { color: var(--text); border-color: var(--border); }
