/* PULL THE PLUG: a dark wall, a live wire, power coming back. Phone first (390 px), then desktop and the stream. */
:root {
  --bg: #050607;
  --panel: #0e1215;
  --panel2: #12181c;
  --line: #1e262c;
  --text: #f1f5f3;
  --dim: #8c999f;
  --mint: #4beba9;          /* the mascot's green: power on */
  --mint-ink: #03160d;
  --mint-deep: #0f3a29;
  --spark: #ffe25a;         /* SOL coming back, the crown */
  --spark-ink: #2a2200;
  --off: #39424a;           /* unplugged */
  --warn: #f2b45a;
  --bad: #ff7a7a;
  --paper: #f2efe6;
  --ink: #101417;
  --r: 16px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: var(--mint);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--sans);
  overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom);
  background-image: radial-gradient(120% 60% at 85% -10%, rgba(75, 235, 169, .13), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--mint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
b { font-weight: 800; }

/* ---------- header, preview strip, CA bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { width: 40px; height: 40px; border-radius: 12px; flex: none; display: block; }
.name { font-weight: 900; letter-spacing: .04em; font-size: 17px; white-space: nowrap; }
.ticker { color: var(--mint-ink); background: var(--mint); font-weight: 900; font-size: 12px; padding: 2px 7px; border-radius: 6px; letter-spacing: .03em; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg path:first-child { fill: currentColor; stroke: none; }
.icon-btn .x { display: none; }
.icon-btn.off .wave { display: none; }
.icon-btn.off .x { display: inline; }
.icon-btn.off { color: var(--dim); }

.preview { margin: 0 16px; text-align: center; font-size: 13px; color: var(--warn); border: 1px dashed #5a4a2c; border-radius: 10px; padding: 6px 10px; }
.cabar { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 6px 6px 6px 12px; background: var(--panel); border: 1px solid #24443a; border-radius: 14px; box-shadow: 0 0 0 1px rgba(75, 235, 169, .06), 0 8px 30px -12px rgba(75, 235, 169, .35); }
.ca-label { color: var(--mint); font-size: 12px; font-weight: 900; }
.cabar code { flex: 1; min-width: 0; font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce { margin: 8px 16px 0; padding: 8px 12px; border-radius: 10px; background: var(--mint-deep); color: var(--mint); font-size: 14px; }
@media (min-width: 1212px) { .preview, .cabar, .announce { max-width: 1148px; margin-left: auto; margin-right: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid #2a343b; background: var(--panel2); color: var(--text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.accent { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.wide { width: 100%; }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
h2 { font-size: 20px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
h2 small, h3 small { color: var(--dim); font-weight: 400; font-size: 13px; letter-spacing: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: inline-block; align-self: center; box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .25; box-shadow: none; } }
.empty { color: var(--dim); font-size: 14px; margin: 6px 0; }
.fine { font-size: 13px; color: var(--dim); margin: 12px 0 0; }

/* ---------- hero: headline, the meter, the paste box ---------- */
.hero { display: grid; grid-template-areas: "copy" "meter" "tool"; gap: 14px; padding: 14px 0 8px; }
.hero-copy { grid-area: copy; }
.kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mint); text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 11.4vw, 92px); line-height: .92; letter-spacing: -.035em; }
h1 span { display: block; color: var(--mint); }

.meter { grid-area: meter; position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: linear-gradient(160deg, #0f1a16, var(--panel) 60%); border: 1px solid #1f3a30; overflow: hidden; }
.meter-art { position: relative; align-self: start; }
.meter-art img { display: block; width: 74px; height: 74px; border-radius: 18px; }
.cord { display: none; }
.meter-read { min-width: 0; }
.total { display: flex; align-items: baseline; gap: 8px; font-size: clamp(40px, 12vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.total .unit { font-size: .36em; color: var(--mint); letter-spacing: 0; }
.total-label { margin-top: 6px; font-size: 14px; font-weight: 700; }
.total-sub { font-size: 13px; color: var(--dim); }
.total-sub.returned { margin-top: 6px; color: var(--spark); font-weight: 700; }
.total-sub.returned b { font-variant-numeric: tabular-nums; }
.meter.surge { border-color: var(--mint); }
.meter.surge .total { text-shadow: 0 0 24px rgba(75, 235, 169, .55); }
.cta-stream { display: none; }

.tool { grid-area: tool; min-width: 0; }
.check { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 18px; background: var(--panel); border: 2px solid #2b5b48; box-shadow: 0 10px 40px -18px rgba(75, 235, 169, .6); }
.check:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(75, 235, 169, .15), 0 10px 40px -18px rgba(75, 235, 169, .7); }
.socket { flex: none; width: 34px; height: 34px; margin-left: 4px; border-radius: 10px; background: #1a2227; border: 1px solid #2c363d; display: flex; align-items: center; justify-content: center; gap: 6px; }
.socket i { width: 4px; height: 12px; border-radius: 2px; background: #050607; box-shadow: inset 0 0 0 1px #3b464d; }
.check input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; color: var(--text); padding: 0 4px; font: 15px var(--mono); }
.check input::placeholder { color: #7d8a90; }
.check input:focus { outline: none; }
.check .btn { min-height: 52px; padding: 0 20px; font-size: 17px; border-radius: 13px; }
.msg { font-size: 14px; color: var(--dim); margin-top: 8px; }
.msg.err { color: var(--bad); }
.msg:empty { display: none; }
.pitch { margin: 12px 2px 0; color: #b9c3c8; font-size: 15px; max-width: 640px; }
.pitch b { color: var(--mint); }

/* ---------- a pasted wallet: the result ---------- */
.result { margin-top: 14px; }
.who { font: 13px var(--mono); color: var(--dim); margin-bottom: 8px; word-break: break-all; }
.win { position: relative; padding: 18px 16px 16px; border-radius: var(--r); background: radial-gradient(130% 120% at 0% 0%, #1c4a37, #0d1d17 55%, #0a1310); border: 1px solid #2f6e55; overflow: hidden; }
.win-num { display: flex; align-items: baseline; gap: 10px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.win-num b { font-size: clamp(52px, 17vw, 104px); font-weight: 900; color: var(--mint); font-variant-numeric: tabular-nums; }
.win-num span { font-size: 24px; color: var(--text); }
.win-line { margin: 10px 0 0; font-size: 17px; font-weight: 600; }
.win-line b { font-variant-numeric: tabular-nums; }
.win-back { display: block; color: var(--spark); font-weight: 800; }
.charge { margin-top: 14px; height: 8px; border-radius: 99px; background: #08100d; border: 1px solid #224c3c; overflow: hidden; }
.charge i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--spark)); }
.win.go .charge i { animation: charge 1.4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes charge { to { width: 100%; } }
.win.none { background: var(--panel); border-color: var(--line); }
.win.none .win-num b { color: var(--dim); }
.win.none .win-back, .win.none .charge { display: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.stats b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stats span { font-size: 12px; color: var(--dim); }
.note { font-size: 14px; color: var(--dim); margin: 10px 0 0; }
.note.cb { color: var(--warn); }
.actions { display: grid; gap: 8px; margin-top: 12px; }
.actions p { margin: 0; font-size: 14px; color: var(--dim); }
.actions .btn.accent { min-height: 56px; font-size: 18px; box-shadow: 0 10px 30px -14px rgba(75, 235, 169, .8); }
.steps { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.steps:empty { display: none; }
.steps li { padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; }
.steps li.ok { border-color: #2a6b51; }
.steps li.bad { border-color: #5a2a2a; color: #ffb3b3; }
.steps a { font-family: var(--mono); font-size: 13px; }

/* big wallets: one approval per run */
.run { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid #2a6b51; }
.run-head { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.4; }
.run-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.run-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.run-stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.run-stats span { font-size: 12px; color: var(--dim); }
.run-total { margin: 10px 0 0; font-size: 14px; color: var(--mint); }
.run-total:empty { display: none; }

/* 0x chains: spam coins grouped by chain, removable first */
.chain { margin-top: 14px; }
.chain h3 { font-size: 15px; margin: 0 0 6px; }
.chain h3 small { color: var(--dim); font-weight: 400; font-size: 13px; }
.note.bad, .actions p.warn { color: var(--warn); }
.coins { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.coin { display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.coin-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 52px; }
label.coin-main { cursor: pointer; }
.coin input { width: 22px; height: 22px; flex: none; accent-color: var(--mint); }
.coin-text { min-width: 0; display: grid; }
.coin-name, .coin-sub, .coin-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-name { font-size: 15px; font-weight: 600; }
.coin-name small { color: var(--dim); font-weight: 400; }
.coin-sub { font: 12px var(--mono); color: var(--dim); }
.coin-why { font-size: 13px; color: var(--warn); white-space: normal; }
.coin.v-fake .coin-why, .coin.v-unchecked .coin-why { color: var(--dim); }
.coin.v-removed { border-color: #2a6b51; }
.coin.v-removed .coin-why { color: var(--mint); }
.coin-link { flex: none; display: grid; place-items: center; min-width: 56px; min-height: 44px; padding: 0 10px; font-size: 13px; border-left: 1px solid var(--line); text-decoration: none; }
.chain details { margin-top: 8px; }
.chain summary { cursor: pointer; padding: 12px 0; color: var(--dim); font-size: 14px; }

/* the result card and its two buttons */
.share { margin-top: 14px; display: grid; gap: 10px; }
.share img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* a reclaim confirmed: the win moment */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; transform: translateX(-50%); width: min(92vw, 420px); padding: 14px 18px; border-radius: 18px; background: var(--spark); color: var(--spark-ink); box-shadow: 0 20px 60px -10px rgba(255, 226, 90, .55); text-align: center; animation: toast-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.toast-num { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.toast-line { font-size: 14px; font-weight: 700; }
@keyframes toast-in { from { transform: translate(-50%, 30px) scale(.9); opacity: 0; } }

/* ---------- $PLUG buyers: plugged in / unplugged ---------- */
.crowd { margin-top: 26px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #0c1a15, #080c0b); border: 1px solid #1f3a30; }
.plugdot { width: 12px; height: 12px; border-radius: 4px; background: var(--mint); box-shadow: 0 0 12px var(--mint); align-self: center; flex: none; }
.crowd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.crowd-stats div { min-width: 0; padding: 10px; border-radius: 12px; background: rgba(5, 6, 7, .55); border: 1px solid #1d3a2f; }
.crowd-stats b { display: block; font-size: clamp(22px, 6.4vw, 34px); font-weight: 900; line-height: 1.05; color: var(--mint); font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.crowd-stats .hot b { color: var(--spark); }
.crowd-stats b.invite { font-size: clamp(16px, 4.4vw, 24px); line-height: 1.15; white-space: normal; padding-top: 4px; }
.crowd-stats span { display: block; font-size: 12px; color: var(--dim); line-height: 1.3; margin-top: 2px; }
.recount { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #2c5545; font-size: 14px; color: #c9d4d0; }
.recount b { color: var(--text); font-variant-numeric: tabular-nums; }
.recount .done { display: block; color: var(--text); }
.recount .done + .done { margin-top: 4px; }
.recount .k { display: inline-block; min-width: 34px; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--mint); color: var(--mint-ink); font-size: 12px; font-weight: 900; text-align: center; }
.crowd-body { display: grid; gap: 14px; margin-top: 14px; }
.crown-box h3 { font-size: 16px; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.crown { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.crown li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; min-height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.crown li:first-child { border-color: var(--spark); background: linear-gradient(90deg, rgba(255, 226, 90, .14), var(--panel) 70%); }
.crown .rank { font-weight: 900; color: var(--dim); text-align: center; }
.crown li:first-child .rank { color: var(--spark); }
.crown .rank svg { width: 22px; height: 18px; display: block; margin: 0 auto; fill: var(--spark); }
.crown .w { font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crown .w small { color: var(--dim); font-family: var(--sans); margin-right: 4px; }
.crown .v { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--spark); white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.hcard { position: relative; min-width: 0; padding: 10px 12px 12px; border-radius: 14px; background: var(--panel); border: 1px solid #285444; min-height: 96px; overflow: hidden; }
.hcard::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.hcard .num { font-weight: 900; font-size: 22px; color: var(--mint); letter-spacing: -.02em; line-height: 1.1; }
.hcard .w { font: 13px var(--mono); color: var(--dim); }
.hcard .v { font-size: 14px; margin-top: 4px; line-height: 1.35; overflow-wrap: anywhere; }
.hcard .v b { color: var(--text); }
.hcard .v .sub { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.hcard.pending .v b { color: var(--spark); }
.hcard.out .v .sub { color: #4e585e; }
.hcard .state { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.hcard.pin { grid-column: 1 / -1; border-color: var(--mint); background: linear-gradient(120deg, #123326, var(--panel) 65%); }
.hcard.pending .v { color: var(--dim); }
.hcard.out { background: #0a0c0d; border-color: #1b2125; }
.hcard.out::after { background: var(--off); box-shadow: none; }
.hcard.out .num, .hcard.out .state { color: var(--off); }
.hcard.out .v { color: #5d686f; }
.hcard.out .v b { color: #6c777e; }
.hcard.new { animation: card-in .6s ease-out; }
.hcard.flick { animation: flick .9s steps(1); }
@keyframes card-in { from { transform: scale(.94); border-color: var(--spark); } }
@keyframes flick { 0% { opacity: 1; } 15% { opacity: .2; } 30% { opacity: 1; } 45% { opacity: .3; } 60% { opacity: .9; } 75% { opacity: .2; } 100% { opacity: 1; } }

/* ---------- the live show: audits on a wire, the board as bars ---------- */
.show { display: grid; gap: 22px; margin-top: 26px; }
.feed { position: relative; list-style: none; margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; }
.feed::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--mint), rgba(75, 235, 169, .08)); }
.feed li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.feed li::before { content: ""; position: absolute; left: -20px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); }
.feed li.new { animation: pull .7s ease-out; }
.feed li.new::before { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
@keyframes pull { from { transform: translateX(-10px); opacity: 0; border-color: var(--mint); background: #12291f; } }
.feed .w { font: 14px var(--mono); color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .t { font-size: 12px; color: var(--dim); text-align: right; white-space: nowrap; }
.feed .what { grid-column: 1 / -1; font-size: 15px; }
.feed .what b { color: var(--mint); font-variant-numeric: tabular-nums; }
.feed .tag { font: 900 11px var(--sans); color: var(--mint-ink); background: var(--mint); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.feed li.back { border-color: #6b5c1d; background: linear-gradient(90deg, rgba(255, 226, 90, .1), var(--panel) 60%); }
.feed li.back::before { border-color: var(--spark); }
.feed li.back.new::before { background: var(--spark); box-shadow: 0 0 12px var(--spark); }
.feed li.back .what b { color: var(--spark); }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 12px; min-height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; overflow: hidden; isolation: isolate; }
.board li::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, rgba(75, 235, 169, .2), rgba(75, 235, 169, .05)); transition: width .8s ease; }
.board .rank { color: var(--dim); font-weight: 900; font-variant-numeric: tabular-nums; }
.board .w { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .v small { color: var(--dim); font-weight: 400; }

/* ---------- what you sign: a spec sheet, light on purpose ---------- */
.sign { margin-top: 30px; padding: 20px 18px; border-radius: 20px; background: var(--paper); color: var(--ink); }
.sign h2 { font-size: 26px; text-transform: uppercase; letter-spacing: -.02em; color: var(--ink); }
.sign h3 { font-size: 16px; margin: 18px 0 8px; color: var(--ink); }
.sign ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: #2a3136; font-size: 15px; }
.sign b { color: var(--ink); }
.sign a, .sign a.file { color: #0b6b47; }
.sign a.file { display: inline-block; padding: 12px 0; min-height: 44px; font-family: var(--mono); font-weight: 700; }
.sign .fine { color: #5a6368; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy meter" "tool meter"; gap: 22px 40px; padding: 36px 0 12px; align-items: start; }
  h1 { font-size: clamp(56px, 6.6vw, 92px); }
  .meter { grid-template-columns: 1fr; padding: 22px; align-self: start; position: sticky; top: 16px; }
  .meter-art { display: flex; align-items: center; gap: 0; height: 150px; }
  .meter-art img { width: 150px; height: 150px; border-radius: 28px; flex: none; }
  .cord { display: block; flex: 1; height: 120px; margin-left: -18px; overflow: visible; }
  .cord path { fill: none; stroke-linecap: round; }
  .cord-line { stroke: #1d3d31; stroke-width: 7; }
  .cord-flow { stroke: var(--mint); stroke-width: 3; stroke-dasharray: 10 22; animation: flow 1.2s linear infinite; filter: drop-shadow(0 0 4px rgba(75, 235, 169, .8)); }
  .meter.surge .cord-flow { stroke: var(--spark); animation-duration: .4s; }
  .total { font-size: clamp(56px, 6vw, 88px); }
  .total-label { font-size: 16px; }
  .show { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .crowd { padding: 22px; }
  .crowd-body { grid-template-columns: minmax(280px, .8fr) 1.6fr; align-items: start; }
  .crowd.no-crown .crowd-body { grid-template-columns: 1fr; }
  .sign { padding: 28px 32px; }
  .sign ul { max-width: 900px; }
  .tool .result { max-width: 640px; }
}
@keyframes flow { to { stroke-dashoffset: -32; } }

/* phones: keep the board and the buyer cards close; lighter effects */
@media (max-width: 759px) {
  .feed li:nth-child(n+9) { display: none; }
  .cards .hcard:nth-child(n+18) { display: none; }   /* the pinned newest + 16 */
  .check, .cabar, .actions .btn.accent { box-shadow: none; }
  body { background-image: none; }
}
@media (max-width: 370px) {
  .crowd-stats { grid-template-columns: 1fr 1fr; }
  .crowd-stats .hot { grid-column: 1 / -1; }
  .check .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .win .charge i { width: 100%; }
}

/* ---------- ?stream=1: the show only, 1280x720, for the pump.fun livestream ---------- */
.stream body { overflow: hidden; height: 100vh; background-image: radial-gradient(80% 70% at 10% 30%, rgba(75, 235, 169, .14), transparent 60%); }
.stream .tool, .stream .sign, .stream #mute, .stream .announce, .stream .kicker, .stream .crowd .fine, .stream .crown-box h3 small { display: none !important; }
.stream .top { max-width: none; padding: 14px 28px 8px; }
.stream .name { font-size: 26px; }
.stream .mark { width: 48px; height: 48px; }
.stream .ticker { font-size: 16px; }
.stream .preview, .stream .cabar { max-width: none; margin: 0 28px; font-size: 16px; }
.stream .cabar code { font-size: 20px; }
.stream main { max-width: none; height: calc(100vh - 136px); display: grid; grid-template-columns: .95fr 1.15fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 0 24px; padding: 14px 28px 0; overflow: hidden; }
.stream .hero { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; padding: 6px 0 0; min-height: 0; }
.stream h1 { font-size: 46px; }
.stream .meter { grid-template-columns: 1fr; padding: 18px; }
.stream .meter-art { display: flex; align-items: center; height: 110px; }
.stream .meter-art img { width: 110px; height: 110px; border-radius: 24px; flex: none; }
.stream .cord { display: block; flex: 1; height: 90px; margin-left: -14px; overflow: visible; }
.stream .cord path { fill: none; stroke-linecap: round; }
.stream .cord-line { stroke: #1d3d31; stroke-width: 7; }
.stream .cord-flow { stroke: var(--mint); stroke-width: 3; stroke-dasharray: 10 22; animation: flow 1.2s linear infinite; }
.stream .meter.surge .cord-flow { stroke: var(--spark); animation-duration: .4s; }
.stream .total { font-size: 62px; }
.stream .total-label { font-size: 18px; }
.stream .total-sub { font-size: 16px; }
.stream .cta-stream { display: block; margin: 12px 0 0; font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.stream .cta-stream b { color: var(--mint); }
.stream .show { display: contents; }
.stream .feed-col { grid-column: 2; grid-row: 1; min-height: 0; overflow: hidden; }
.stream .board-col { grid-column: 3; grid-row: 1; min-height: 0; overflow: hidden; }
.stream .feed li { padding: 10px 14px; }
.stream .feed .what { font-size: 18px; }
.stream .feed .w { font-size: 16px; }
.stream .board li { font-size: 17px; }
.stream h2 { font-size: 22px; }
.stream .crowd { display: none !important; }
.stream.live .board-col { display: none; }
.stream.live .crowd { display: block !important; grid-column: 3; grid-row: 1; margin: 0; padding: 14px; min-height: 0; overflow: hidden; }
.stream.live .crowd h2 small { display: none; }
.stream .crowd-stats b { font-size: 28px; }
.stream .crowd-stats b.invite { font-size: 18px; }
.stream .crowd-body { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.stream .cards { grid-template-columns: 1fr 1fr; }
.stream .hcard { min-height: 84px; }
.stream .hcard:nth-child(n+5) { display: none; }
.stream .crown li:nth-child(n+4) { display: none; }
@media (max-width: 760px) {
  .stream body { overflow: auto; height: auto; }
  .stream main { display: block; height: auto; padding: 0 16px; }
  .stream .top { padding: 10px 16px; }
  .stream .preview, .stream .cabar { margin: 0 16px; }
  .stream .show { display: grid; }
  .stream.live .crowd { display: block !important; }
}
