:root {
  /* white + the green of the logo (megaphone) */
  --bg: #ffffff;
  --panel: #ffffff;
  --card: #f5f7f6;
  --hover: #f3f6f4;
  --line: #eaedeb;
  --line-2: #dde1de;
  --line-3: #c4cac6;
  --text: #0c0d0c;
  --text-2: #2a2d2b;
  --muted: #5c6260;
  --dim: #959b98;
  --green: #00bf63;
  --green-ink: #00994f;
  --green-soft: rgba(0, 191, 99, .1);
  --tape: #f6f8f7;
  --radius: 10px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.g { color: var(--green-ink); }
.nowrap { white-space: nowrap; }

/* ---------- ticker tape ---------- */
.tape { height: 30px; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; background: var(--tape); }
.tape::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 48px; z-index: 1; pointer-events: none; background: linear-gradient(-90deg, var(--tape), transparent); }
.tape-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 12px 0 16px; background: var(--tape); color: var(--dim); font-size: 12px; font-weight: 500; box-shadow: 12px 0 16px var(--tape); }
.ul { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.ul:hover { text-decoration-color: var(--text); }
.tape-track { display: flex; gap: 28px; align-items: center; height: 100%; width: max-content; padding-left: 130px; animation: tape 80s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.tape-item b { color: var(--text); font-weight: 500; }
.tape-item .av { width: 18px; height: 18px; }
.tape-empty { font-size: 12.5px; color: var(--dim); padding-left: 16px; line-height: 30px; }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .logo { width: 34px; height: 34px; }
.brand .tick { font-weight: 500; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a.on { color: var(--text); background: var(--card); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-demo { font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; padding: 3px 7px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ca:hover { color: var(--text); border-color: var(--line-3); }
.ca svg { width: 13px; height: 13px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); background: transparent; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }
.icon-btn svg { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--green); color: #0c0d0c; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #00ad59; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--line-3); background: var(--hover); }
.btn:disabled { opacity: .5; cursor: default; }
.menu-btn { display: none; }
.btn svg { width: 14px; height: 14px; }
.hide-buy { display: none; }

/* ---------- coin stats bar ---------- */
.coinbar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; scrollbar-width: none; }
.coinbar::-webkit-scrollbar { display: none; }
.coin-id { display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-right: 1px solid var(--line); flex: none; }
.coin-id img, .coin-id .coin-img { width: 34px; height: 34px; border-radius: 8px; }
.coin-id b { display: block; font-size: 14px; }
.coin-id small { color: var(--muted); font-size: 12px; }
.stat { padding: 10px 14px; flex: none; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
@media (max-width: 1540px) { .stat.wide-only { display: none; } }
.stat small { color: var(--dim); font-size: 11.5px; font-weight: 500; }
.stat b { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.stat b em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 5px; }
.stat.hl b { color: var(--green-ink); }
.up { animation: up 1.6s ease-out; border-radius: 4px; }
@keyframes up { 0% { background: rgba(0, 191, 99, .22); } 100% { background: transparent; } }
.live-note { font-size: 12.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; }
.live-note b { color: var(--muted); font-weight: 600; }
.stat.next > div { display: flex; flex-direction: column; }
.stat.next { flex-direction: row; align-items: center; gap: 10px; margin-left: auto; border-right: 0; border-left: 1px solid var(--line); }
.ring { width: 30px; height: 30px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--line-2); }
.ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.prelaunch { padding: 0 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot.off { background: var(--dim); }
.dot.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- terminal grid ---------- */
main { flex: 1; width: 100%; }
.mission { background: #f1fbf5; display: flex; align-items: center; gap: 16px; padding: 0 20px; min-height: 42px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mission b { color: var(--text); font-weight: 600; }
.mission .more { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mission .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rule-note { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.term { display: grid; grid-template-columns: minmax(330px, 390px) minmax(0, 1fr) minmax(320px, 370px); gap: 1px; background: var(--line); height: calc(100vh - 30px - 56px - 59px); min-height: 560px; }
.panel { background: var(--panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-head h2 svg { width: 16px; height: 16px; color: var(--muted); }
.panel-head .count { color: var(--dim); font-weight: 500; font-size: 12.5px; }
.panel-head .more { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.panel-head .more:hover { color: var(--text); }
.panel-tools { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); flex: none; }
.scroll { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.stack { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1px; background: var(--line); min-height: 0; }

.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 4px 11px; border-radius: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line-2); }
.seg button:hover:not(.on) { color: var(--text); }
.seg button .n { color: var(--dim); margin-left: 4px; }
.sel { height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); padding: 0 26px 0 10px; font-size: 12.5px; color: var(--text); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%239b9ea6' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.push { margin-left: auto; }

/* ---------- avatars ---------- */
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; background: var(--card); }
.av.lg { width: 38px; height: 38px; }
.av.xl { width: 56px; height: 56px; }
.av-wrap { position: relative; flex: none; display: inline-flex; }
.av-wrap.earning::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--panel); }

/* ---------- leaderboard rows ---------- */
.lb-row { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 16px; border-bottom: 1px solid transparent; }
.lb-row:hover { background: var(--hover); }
.lb-rank { color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; }
.lb-row:nth-child(-n+3) .lb-rank { color: var(--text); }
.lb-name { min-width: 0; }
.lb-name b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--dim); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { text-align: right; }
.lb-val b { display: block; font-weight: 600; color: var(--green-ink); }
.lb-val small { color: var(--dim); font-size: 12px; }
.lb-val.plain b { color: var(--text); }

/* ---------- callout cards ---------- */
.call { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.call.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: rgba(0, 191, 99, .09); } }
.call > .av-wrap { align-self: start; }
.call-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.call-head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-head .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.call-head .ago { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.call-text { margin: 5px 0 11px; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-line; }
.pos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; }
.pos .coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pos .coin img, .pos .coin .coin-img { width: 34px; height: 34px; border-radius: 8px; }
.pos .coin b { display: block; font-weight: 600; }
.pos .coin small { color: var(--muted); font-size: 12px; }
.kv { text-align: right; }
.kv small { display: block; color: var(--dim); font-size: 11.5px; }
.kv b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.call-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--dim); font-size: 12.5px; }
.call-foot span, .call-foot a { display: inline-flex; align-items: center; gap: 5px; }
.call-foot svg { width: 14px; height: 14px; }
.call-foot a:hover { color: var(--text); }
.call-foot .mc { margin-left: auto; color: var(--muted); font-weight: 600; }

.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.st-earning { color: var(--green-ink); border-color: rgba(0, 191, 99, .35); background: var(--green-soft); }
.st-earning::before { background: var(--green); }
.st-deleted { text-decoration: line-through; text-decoration-color: var(--dim); }

/* ---------- payouts panel ---------- */
.next { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.next .big-ring { width: 74px; height: 74px; position: relative; }
.next .big-ring svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.next .big-ring circle { fill: none; stroke-width: 4; }
.next .big-ring .bg { stroke: var(--line-2); }
.next .big-ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.next .big-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.next h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.next .sum { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.next p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.round-live { padding: 16px 18px 18px; }
.rl-head { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.rl-head b { font-weight: 600; }
.rl-pct { margin-left: auto; color: var(--green-ink); font-weight: 700; font-size: 15px; }
.rl-track { position: relative; height: 12px; margin: 12px 0 14px; border-radius: 999px; background: #eef1ef; border: 1px solid var(--line-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.rl-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #009e51 0%, #00bf63 55%, #35e08a 100%); box-shadow: 0 0 14px rgba(0, 191, 99, .45); transition: width 1s linear; overflow: hidden; }
.rl-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); width: 40%; animation: shine 2.2s linear infinite; }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.rl-amt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rl-sol { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--green-ink); }
.rl-unit { color: var(--muted); font-size: 13px; }
.rl-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.rl-sub b { color: var(--text); }
.rl-last { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.mini-bar { display: block; width: 110px; height: 4px; border-radius: 99px; background: #eef1ef; border: 1px solid var(--line-2); margin-top: 4px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00a957, #35e08a); box-shadow: 0 0 8px rgba(0, 191, 99, .45); transition: width 1s linear; }
.rule { padding: 14px 18px 16px; }
.rule ol { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: r; }
.rule li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--text-2); font-size: 13px; counter-increment: r; }
.rule li::before { content: counter(r); width: 20px; height: 20px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.check { display: flex; gap: 6px; }
.check input { flex: 1; min-width: 0; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 10px; font-family: var(--mono); font-size: 12px; }
.check input:focus { outline: none; border-color: var(--green); }
.round-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.round-row:hover { background: var(--hover); }
.round-row b { font-weight: 600; }
.round-row .r { text-align: right; }
.round-row small { color: var(--dim); font-size: 12px; }
.round-row.fresh { animation: fresh 2.4s ease-out; }

.empty { padding: 36px 22px; color: var(--dim); text-align: center; font-size: 13px; line-height: 1.6; }
.empty b { color: var(--muted); display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.page-head .push { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.box + .box { margin-top: 16px; }
.box-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.box-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.search { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); padding: 0 11px; font-size: 13px; width: 240px; max-width: 100%; }
.search:focus { outline: none; border-color: var(--green); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.tile { background: var(--panel); padding: 16px 18px; }
.tile small { color: var(--dim); font-size: 12px; font-weight: 500; display: block; }
.tile b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; display: block; margin-top: 2px; }
.tile span { color: var(--muted); font-size: 12.5px; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--hover); }
.t .r { text-align: right; }
.t .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t .who b { font-weight: 600; display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t .who small { color: var(--dim); font-size: 12px; font-family: var(--mono); }
.t .txt { color: var(--text-2); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t tr.click { cursor: pointer; }
.fresh-in { animation: fresh 2.4s ease-out; }
tr.fresh-in td { animation: fresh 2.4s ease-out; }
.t tr.detail td { background: var(--bg); padding: 0; }
.t-wrap { overflow-x: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager:empty { display: none; }
.pg-info { color: var(--dim); font-size: 12.5px; }
.pg-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.pg { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.pg:hover:not(:disabled):not(.on) { color: var(--text); border-color: var(--line-3); }
.pg.on { background: var(--green); color: #0c0d0c; border-color: var(--green); font-weight: 700; }
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--dim); padding: 0 4px; align-self: center; }

.chart { position: relative; padding: 14px 18px 12px; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--dim); font-size: 11px; }
.chart .area { fill: url(#cg); }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.chart .goal { stroke: var(--muted); stroke-dasharray: 4 4; }
.chart .goal-l { fill: var(--muted); font-size: 11px; }
.chart .cross { stroke: var(--line-2); }
.chart .pt { fill: var(--green); stroke: var(--panel); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.tip b { font-size: 13px; }
.tip div { color: var(--muted); }

/* wallet page */
.wcheck { display: flex; gap: 8px; max-width: 720px; }
.wcheck input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 14px; font-family: var(--mono); font-size: 13px; }
.wcheck input:focus { outline: none; border-color: var(--green); }
.wcheck .btn { height: 44px; padding: 0 18px; }
.wres { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.who-big { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.who-big b { font-size: 18px; display: block; }
.who-big small { color: var(--dim); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.req { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req .ic { width: 26px; height: 26px; display: grid; place-items: center; color: var(--dim); }
.req .ic svg { width: 24px; height: 24px; }
.req.ok .ic { color: var(--green); }
.req b { display: block; font-weight: 600; }
.req p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.req blockquote { margin: 10px 0 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); font-size: 13px; }
.verdict { padding: 18px; display: flex; align-items: center; gap: 12px; }
.verdict b { font-size: 16px; }
.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.wres > .box + .box { margin-top: 0; }
.kvs > div { background: var(--panel); padding: 14px 18px; }
.kvs small { color: var(--dim); font-size: 12px; display: block; }
.kvs b { font-size: 18px; font-weight: 700; }

/* how page */
.how { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.step { background: var(--panel); padding: 20px 18px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.step b { display: block; font-size: 16px; margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.prose { padding: 6px 22px 18px; color: var(--text-2); }
.prose h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.prose p { margin: 0 0 10px; color: var(--muted); }
.prose ul { margin: 0 0 10px; padding-left: 18px; color: var(--muted); }
.prose li { margin: 4px 0; }
.prose code, .formula { font-family: var(--mono); font-size: 12.5px; }
.formula { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text-2); margin: 8px 0 12px; white-space: pre-wrap; }
.facts { padding: 4px 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

footer.foot { border-top: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 16px; align-items: center; color: var(--dim); font-size: 12.5px; flex-wrap: wrap; }
footer.foot a:hover { color: var(--text); }
footer.foot .push { display: flex; gap: 16px; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 50; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .term { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); height: auto; }
  .term > .stack { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .term > .panel { height: 78vh; }
  .term > .stack .scroll { max-height: 340px; }
}
@media (max-width: 1020px) {
  .nav a { padding: 7px 8px; }
  .ca .ca-txt { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .wres { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .bar { gap: 10px; padding: 0 16px; }
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 10px; }
  .bar-right .x-link, .chip-demo { display: none; }
  .term { grid-template-columns: 1fr; }
  .term > .panel { height: auto; max-height: none; }
  .term > .panel .scroll { max-height: 70vh; }
  .term > .stack { grid-template-columns: 1fr; }
  .coin-id { padding: 10px 16px; }
  .stat { padding: 10px 14px; min-width: 0; }
  .stat.next { margin-left: 0; }
  .page { padding: 22px 16px 48px; }
  .steps { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .mission { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px; }
  .mission .push { margin-left: 0; }
}
@media (max-width: 560px) {
  .brand .tick { display: none; }
  .bar-right .buy-txt { display: none; }
  .hide-buy { display: inline-flex; }
  #buy { width: 34px; padding: 0; }
  .pos { grid-template-columns: auto minmax(0, 1fr); }
  .pos .kv { text-align: left; }
  .call { padding: 14px 16px; }
  .lb-row { padding: 9px 14px; }
  .search { width: 100%; }
  .kvs { grid-template-columns: 1fr; }
  .wcheck { flex-direction: column; }
}

/* Phosphor icons carry no size of their own */
svg[viewBox="0 0 256 256"] { width: 14px; height: 14px; flex: none; }
.more svg, .mission .more svg { width: 12px; height: 12px; }
.panel-head h2 svg { width: 16px; height: 16px; }
.call-foot svg { width: 15px; height: 15px; }
.req .ic svg { width: 24px; height: 24px; }
.panel-head h2 svg { color: var(--green); }
.box-head h2 svg { color: var(--green); }

/* the coin's block in the stats bar: ticker + state + contract address (the logo and name live in the header only) */
.coin-id { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.cid-top { display: flex; align-items: center; gap: 10px; }
.cid-tk { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.cid-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.cid-state.on { color: var(--green-ink); }
.cid-ca { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cid-ca:hover { color: var(--text); }
.cid-ca svg { width: 12px; height: 12px; }

/* sold / callout deleted: still on the board, greyed, no longer earning */
.lb-row.out, .t tr.out td { opacity: .5; }
.lb-row.out .lb-val b, .t tr.out .g { color: var(--muted); }
