:root {
  --bg: #0d0c0b;
  --panel: #171513;
  --line: #2b2723;
  --text: #ece6dc;
  --muted: #9a9187;
  --accent: #ff5a1f;
  --accent-ink: #160803;
  --gold: #e8c26b;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 980px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--gold); }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero { text-align: center; padding: 24px 0 8px; }
.kicker { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0; }
h1 {
  font: 800 clamp(44px, 10vw, 96px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em; margin: 8px 0 12px;
}
.tagline { font-size: clamp(18px, 3vw, 22px); color: var(--muted); margin: 0 0 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 640px; margin: 0 auto; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; }
.stats span { display: block; font: 700 clamp(20px, 4vw, 28px)/1.1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.stats small { color: var(--muted); font-size: 12px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 32px auto; max-width: 640px;
}
.field { display: block; margin: 0 0 20px; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-weight: 600; margin-bottom: 8px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; font-size: 14px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amounts button {
  font: 700 18px/1 ui-monospace, Consolas, monospace; padding: 12px 0; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer;
}
.amounts button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
input[type="text"] {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
input[type="text"]:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 13px; }
.hint.bad { color: var(--accent); }
.dest label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.dest input { margin-top: 4px; accent-color: var(--accent); }
.dest span { color: var(--muted); }
.dest b { color: var(--text); }

.big {
  width: 100%; font: 800 22px/1 Georgia, serif; padding: 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; letter-spacing: .01em;
}
.big:hover { filter: brightness(1.08); }
.big:disabled { opacity: .5; cursor: wait; }
.status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.status.ok { color: var(--gold); }
.status.err { color: var(--accent); }
.certificate { margin-top: 16px; text-align: center; }
.certificate img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.small-btn { display: inline-block; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.board h2 { font: 700 20px/1.2 Georgia, serif; margin: 0 0 12px; }
.board h2 small { font: 400 12px/1 system-ui, sans-serif; color: var(--muted); margin-left: 6px; }
.board h2.mt { margin-top: 24px; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.ledger li:first-child { border-top: 0; }
.ledger .rank { color: var(--muted); font: 600 14px ui-monospace, Consolas, monospace; }
.ledger .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .who small { display: block; color: var(--muted); font-size: 12px; }
.ledger .amt { font: 700 15px ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.ledger li.top .who b { color: var(--gold); }
.ledger.recent li { grid-template-columns: 1fr auto; }
.ledger .empty { color: var(--muted); grid-template-columns: 1fr; }

.faq { max-width: 720px; margin: 40px auto 0; }
.faq h2 { font: 700 24px Georgia, serif; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

footer { margin-top: 40px; color: var(--muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.demo { color: var(--gold); }

@media (max-width: 720px) {
  .boards { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .amounts { grid-template-columns: repeat(5, 1fr); }
}

.center { text-align: center; }
