/* DJVU · the CATE hold board. Geist for the interface, condensed Archivo for the shouting, pump green for holding, red for paper. */

:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --panel-2: #17171a;
  --line: #24242a;
  --line-2: #1a1a1f;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --green: #1fd978;
  --green-2: #86efac;
  --green-dim: rgba(31, 217, 120, 0.12);
  --green-ink: #03210f;
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.10);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --r: 8px;
  --r-lg: 12px;
  --w: 1280px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum";
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
b, strong { font-weight: 600; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.display { font-family: var(--display); font-variation-settings: "wdth" 76; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.green { color: var(--green); }

/* ── top ── */
.top {
  max-width: var(--w); margin: 0 auto; padding: 14px var(--gutter) 0;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .05em; font-size: 15px; min-height: 40px; }
.mark { width: 22px; height: 22px; overflow: visible; }
.mark-ink { fill: var(--text); }
.mark-echo { fill: var(--green); opacity: .9; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--green); }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 217, 120, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(31, 217, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 217, 120, 0); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-2); }
.top-right a { min-height: 40px; display: inline-flex; align-items: center; color: var(--text-2); }
.top-right a:hover { color: var(--text); }
.treasury b { color: var(--text); font-family: var(--mono); font-weight: 500; }

/* ── hero ── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 40px var(--gutter) 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 56px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.eyebrow img { width: 22px; height: 22px; border-radius: 50%; }
h1 {
  margin: 18px 0 0; font-family: var(--display); font-variation-settings: "wdth" 74; font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 7.6vw, 108px); line-height: .92; letter-spacing: -.01em;
}
h1 em { font-style: normal; color: var(--green); }
.lead { margin: 22px 0 0; font-size: 17px; color: var(--text-2); max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0 40px; margin-top: 34px; justify-content: start; }
.stat .k { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.stat .v { display: block; margin-top: 4px; font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .v small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.stat .v.soon { color: var(--red); }

/* ── sign panel ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; }
.panel-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.panel-head > span:first-child { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1; }
.panel-sub { font-size: 12.5px; color: var(--text-3); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field label em { font-style: normal; color: var(--text-3); margin-left: 6px; }
.field input, .amt {
  width: 100%; height: 50px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 12px; font-size: 16px; color: var(--text); outline: none; transition: border-color .15s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .amt:focus-within { border-color: var(--green); }
.amt { display: flex; align-items: center; gap: 10px; }
.amt input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; padding: 0; font-family: var(--mono); font-size: 22px; font-weight: 500; outline: none; }
.amt i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button {
  height: 30px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-family: var(--mono); font-size: 12.5px; cursor: pointer; transition: all .12s;
}
.quick button:hover { color: var(--text); border-color: #3a3a42; }
.quick button.on { background: var(--green-dim); color: var(--green); border-color: rgba(31, 217, 120, .45); }
.est { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin: 4px 0 14px; font-size: 13px; color: var(--text-2); }
.est b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.est b.green { color: var(--green); }
.rank-pill { flex: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--green); background: var(--green-dim); border: 1px solid rgba(31, 217, 120, .35); border-radius: 999px; padding: 4px 9px; }
.pay { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.qr { width: 116px; height: 116px; padding: 7px; background: #fff; border-radius: var(--r); }
.qr svg { width: 100%; height: 100%; display: block; }
.addr {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; height: 44px;
  padding: 0 10px 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--text); text-align: left; transition: border-color .12s;
}
.addr:hover { border-color: #3a3a42; }
.addr #addr-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .hint { flex: none; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--green); }
.cta {
  display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 8px; border-radius: 999px;
  background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 14px; transition: filter .12s, transform .12s;
}
.cta b { font-family: var(--mono); font-weight: 600; margin-left: 4px; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: translateY(1px); }
.note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.note b { font-family: var(--mono); color: var(--text-2); font-weight: 500; }
.check { display: block; margin-top: 12px; }
.check input { width: 100%; height: 38px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; }
.check input:focus { border-color: var(--line); }
.check input::placeholder { color: var(--text-3); font-family: var(--sans); font-size: 12.5px; }
.check span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-2); min-height: 16px; }
.check span.ok { color: var(--green-2); }
.check span.bad { color: var(--red); }
.rules { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

/* ── board ── */
.board-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 40px; margin-top: 44px; align-items: start; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.board-sub { font-size: 12.5px; color: var(--text-3); }
.thead, .row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 92px 78px 92px 64px 156px; gap: 0 12px; align-items: center; }
.thead { padding: 10px 0 8px; font-size: 11.5px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.thead span:nth-child(n+3) { text-align: right; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; animation: rowin .35s ease both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } }
.row .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.row .who { min-width: 0; display: flex; flex-direction: column; }
.row .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who small { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.row .num { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.row .earn { color: var(--green); }
.row .streak { color: var(--text-2); }
.row .tag { justify-self: end; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.row.king .tag { color: var(--green); border-color: rgba(31, 217, 120, .5); background: var(--green-dim); }
.row.king .n { color: var(--green); font-weight: 600; }
.rows-paper .row, .rows-paid .row { grid-template-columns: 34px minmax(0, 1fr) 92px 78px 92px 64px 156px; }
.rows-paper .row .who b { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.rows-paper .row .num.loss { color: var(--red); }
.rows-paper .row .tag { color: var(--red); border-color: rgba(248, 113, 113, .45); background: var(--red-dim); }
.rows-paid .row .num.got { color: var(--green); }
.rows-paid .row .tag { color: var(--green-2); border-color: rgba(134, 239, 172, .35); }
.row .meta a { color: var(--text-3); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.row .meta a:hover { color: var(--text); }
.paper-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.rows .empty { padding: 14px 0 4px; font-size: 13px; color: var(--text-3); }

/* ── feed ── */
.feed-wrap { border-left: 1px solid var(--line); padding-left: 28px; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; animation: rowin .35s ease both; }
.feed li i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transform: translateY(1px); }
.feed li.signed i { background: var(--green); }
.feed li.sold i { background: var(--red); }
.feed li.paid i { background: var(--green-2); }
.feed li .t { color: var(--text-2); min-width: 0; }
.feed li .t b { color: var(--text); font-weight: 600; }
.feed li.sold .t b { color: var(--red); }
.feed li .when { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.feed .empty { padding: 14px 0; font-size: 13px; color: var(--text-3); }
.share {
  display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13.5px; transition: border-color .12s, background .12s;
}
.share:hover { border-color: #3a3a42; background: var(--panel); }

.race { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto 18px; gap: 0 8px; align-items: center; margin-top: 24px; font-size: 11.5px; color: var(--text-3); }
.race img { width: 18px; height: 18px; border-radius: 50%; }
.race b { color: var(--text-2); font-weight: 600; }
.rail { position: relative; height: 10px; border-bottom: 1px solid var(--line); }
.ghost { position: absolute; bottom: -1px; width: 1px; height: 7px; background: var(--red); transition: left 1s ease; }
.runner { position: absolute; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); transform: translateX(-3px); transition: left 1.2s ease; box-shadow: 0 0 0 2px var(--bg); }
.race-n { grid-column: 1 / -1; margin-top: 6px; }

/* ── foot, states ── */
.foot { max-width: var(--w); margin: 0 auto; padding: 24px var(--gutter) 44px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line-2); }
.offline { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 35; max-width: min(92vw, 560px); padding: 12px 16px; font-size: 13px; line-height: 1.45; border-radius: var(--r); background: var(--panel-2); color: var(--text-2); border: 1px solid var(--red); }
.offline[hidden] { display: none; }
.bar { display: none; }

/* ── laptop ── */
@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 0 36px; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .board-wrap { grid-template-columns: 1fr; gap: 32px 0; }
  .feed-wrap { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

/* ── tablet and phone ── */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .top { padding-top: 12px; }
  .treasury, .top-right a:last-child { display: none; }
  .wrap { padding: 26px var(--gutter) 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px 0; }
  .hero-copy, .panel { min-width: 0; }
  h1 { font-size: clamp(54px, 17vw, 76px); }
  .lead { font-size: 15.5px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; margin-top: 26px; justify-content: stretch; }
  .stat .v { font-size: 24px; }
  .stat { min-width: 0; }
  .panel { padding: 16px 14px 14px; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .pay-side { min-width: 0; }
  .qr { display: none; }
  .cta { height: 50px; font-size: 15px; }
  .board-wrap { margin-top: 32px; }
  .thead { display: none; }
  .thead, .row, .rows-paper .row, .rows-paid .row { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "n who num" "n meta meta"; }
  .row .n { grid-area: n; }
  .row .who { grid-area: who; }
  .row .num.stake { grid-area: num; }
  .row .held, .row .streak, .row .tag, .row .num.meta { display: none; }
  .paper-head .board-sub { display: none; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  h2 { font-size: 26px; }
  .row .earn, .row .num.loss, .row .num.got { grid-area: num; }
  .row .num.stake:not(:only-of-type) { display: none; }
  .row .m { grid-area: meta; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 2px; display: flex; gap: 10px; }
  .foot { padding-bottom: 104px; }
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 11, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .bar-clock { display: grid; line-height: 1.1; }
  .bar-clock i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
  .bar-clock b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
  .bar-go { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 14px; }
  .offline { bottom: 84px; }
}
@media (max-width: 860px) {
  .row .m { display: flex; }
}
@media (min-width: 861px) {
  .row .m { display: none; }
}

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