:root {
  --bg: #050506; --panel: #0b0b0d; --line: #1f1f24; --line2: #2a2a31; --text: #e8e3d9; --dim: #8a857c; --faint: #55524c;
  --amber: #f5c451; --sick: #b5e550; --pink: #ff5fa2; --cyan: #4fd6ec; --red: #ff5f5f;
  --name: #ece6da; --pitch: #4fd6ec; --site: #ff5fa2; --socials: #f5c451; --chain: #5ce2b2; --market: #a78bfa; --ship: #ff8a4c;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --head: 'Bungee', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 var(--mono); overflow-x: hidden; }
a { color: var(--amber); }
button { font: inherit; }
.pink { color: var(--pink) !important; } .dim { color: var(--dim); }

/* ---------- app frame: fills the screen on desktop and stream ---------- */
.app { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; height: 100vh; height: 100svh; }
.top { display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; flex: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand span { font-size: 11px; color: var(--dim); }
.brand i { font-style: normal; color: var(--text); font-weight: 800; letter-spacing: .5px; }
.stats { display: flex; gap: 14px; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; min-width: 0; flex: 1; }
.stats b { color: var(--text); font-weight: 700; }
.right { display: flex; align-items: center; gap: 10px; flex: none; }
.colony { display: flex; align-items: baseline; gap: 6px; }
.colony small { font-size: 10px; color: var(--dim); letter-spacing: 1px; }
.colony b { font: 22px/1 var(--head); color: var(--amber); text-shadow: 0 0 14px rgba(245, 196, 81, .3); }
.colony.bump b { animation: bump .5s; }
@keyframes bump { 30% { color: var(--sick); transform: scale(1.08); } }
.pill { font-size: 10px; font-weight: 700; color: var(--dim); border: 1px solid var(--line2); border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.pill.live { color: #050506; background: var(--sick); border-color: var(--sick); }
.mute { width: 40px; height: 40px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); border-radius: 8px; cursor: pointer; }
.mute.off { color: var(--faint); text-decoration: line-through; }
.tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px 12px; border-bottom: 1px solid var(--line); }
.tabs span { text-align: center; font-size: 10.5px; color: var(--faint); background: #0e0e11; padding: 2px 0; position: relative; overflow: hidden; }
.tabs span i { position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; }
.tabs span.on { color: #050506; font-weight: 700; }
.tabs span.done { color: var(--dim); }
.announce { position: fixed; left: 0; right: 0; top: 0; z-index: 30; background: var(--amber); color: #120c02; text-align: center; padding: 4px; font-weight: 700; }

/* ---------- stage ---------- */
.stage { position: relative; min-height: 0; overflow: hidden; background: #050506; }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sechead { position: absolute; left: 14px; top: 12px; z-index: 3; pointer-events: none; border-left: 3px solid var(--sec, var(--amber)); padding-left: 10px; }
.sechead div { font: 800 26px/1.05 var(--mono); letter-spacing: .5px; text-transform: uppercase; }
.sechead small { display: block; font-size: 11px; color: var(--sec, var(--amber)); margin-top: 2px; }
.coinbox { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; background: rgba(8, 8, 10, .82); border: 1px solid var(--line2); padding: 8px 10px; max-width: min(430px, 60%); }
.coinbox img { width: 44px; height: 44px; object-fit: cover; flex: none; background: #15151a; }
.cmeta { display: flex; flex-direction: column; min-width: 0; }
.cmeta b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta span { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta .engine { color: var(--cyan); }
.ccol { text-align: right; flex: none; font: 26px/1 var(--head); color: var(--sick); }
.ccol small { display: block; font: 700 9px var(--mono); color: var(--dim); letter-spacing: 1px; }
.ccol.pop { animation: pop .3s; }
@keyframes pop { 40% { transform: scale(1.15); } }
.why { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px); background: rgba(8, 8, 10, .85); border: 1px solid var(--line2); padding: 5px 10px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why b { color: var(--text); }
.tag { display: inline-block; font-weight: 800; font-size: 10px; padding: 0 6px; margin-right: 6px; background: var(--line2); color: var(--text); }
.tag.t-CLAIM { background: var(--amber); color: #120c02; } .tag.t-OWNER { background: #6fb7ff; color: #06121f; } .tag.t-FILE { background: #7bd88f; color: #061509; }
.tag.t-APPROVAL { background: #d59cff; color: #170a22; } .tag.t-VAGUE { background: #7d7468; color: #050506; }
.why .plus { color: var(--sick); font-weight: 800; } .why .miss { color: var(--red); } .why .flg { color: var(--pink); font-weight: 700; }
.verdict { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(closest-side, rgba(5, 5, 6, .82), rgba(5, 5, 6, .35)); pointer-events: none; }
.verdict .stamp { display: grid; justify-items: center; padding: 6px 22px 10px; transform: rotate(-3deg); animation: stamp .38s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes stamp { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } 60% { transform: scale(.95) rotate(-3deg); opacity: 1; } to { transform: scale(1) rotate(-3deg); } }
.verdict.big .stamp { border: 6px double var(--sick); }
.verdict .stamp b { font: 64px/1 var(--head); color: var(--sick); }
.verdict .stamp span { font: 24px var(--head); color: var(--amber); margin-top: 4px; }
.verdict.low .stamp b { color: var(--dim); } .verdict.low .stamp span { color: var(--faint); }
.verdict i { font-style: normal; font-size: 13px; color: var(--text); margin-top: 10px; background: rgba(5, 5, 6, .7); padding: 2px 8px; }
.verdict i.sub { color: var(--dim); margin-top: 4px; }
.verdict i b { color: var(--amber); }
.banner { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 5; min-width: min(560px, 90%); padding: 10px 16px; background: var(--sick); color: #050506; font-weight: 800; font-size: 18px; text-align: center; transition: opacity .3s; }
.banner small { display: block; font-size: 12px; font-weight: 600; }
.banner.in { animation: bannerin .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes bannerin { from { transform: translate(-50%, -30px); opacity: 0; } }
.banner.out { opacity: 0; }
.cchips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 5px; background: #050506; color: var(--text); border-radius: 99px; padding: 2px 9px 2px 2px; font-size: 12px; animation: bannerin .32s both; }
.cchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ---------- HUD ---------- */
.hud { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.1fr 1fr 1.25fr; gap: 6px; padding: 6px 12px; border-top: 1px solid var(--line); height: 214px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 7px 9px; min-width: 0; overflow: hidden; position: relative; }
.panel h3 { margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; display: flex; justify-content: space-between; }
.panel h3 em { font-style: normal; color: var(--sick); font-weight: 600; }
.panel h3 em.live { color: var(--sick); }
#log { list-style: none; margin: 0; padding: 0; font-size: 10.5px; line-height: 1.5; }
#log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
#log li .tm { color: var(--faint); margin-right: 6px; }
#log li .k { display: inline-block; min-width: 34px; margin-right: 6px; } #log li .k.read { color: var(--text); } #log li .k.link { color: var(--sick); } #log li .k.flag { color: var(--pink); } #log li .k.miss { color: var(--red); } #log li .k.walk { color: var(--cyan); } #log li .k.egg { color: var(--amber); }
#log li.new { animation: lognew .6s; }
@keyframes lognew { from { background: rgba(181, 229, 80, .12); } }
.secrow { display: grid; grid-template-columns: 1fr auto; font-size: 10.5px; color: var(--dim); margin-bottom: 3px; }
.secrow .bar { grid-column: 1 / -1; height: 4px; background: #17171b; margin-top: 2px; }
.secrow .bar i { display: block; height: 100%; width: 0; transition: width .3s; }
.secrow.on { color: var(--text); }
.foot { position: absolute; bottom: 4px; left: 9px; margin: 0; font-size: 9.5px; color: var(--faint); }
#radar { width: 100%; height: 118px; display: block; }
#kinds { font-size: 10px; color: var(--dim); }
#kinds div { display: grid; grid-template-columns: 70px 1fr 20px; align-items: center; gap: 6px; }
#kinds i { height: 4px; background: #17171b; display: block; } #kinds i b { display: block; height: 100%; background: #5ce2b2; }
#heat { display: grid; gap: 2px; }
.hrow { display: grid; grid-template-columns: 26px 1fr; gap: 4px; align-items: center; font-size: 9px; color: var(--faint); }
.hrow .sq { display: flex; gap: 2px; flex-wrap: nowrap; overflow: hidden; }
.hrow .sq i { width: 8px; height: 8px; background: #17171b; flex: none; }
.hrow .sq i.ok { background: var(--c); } .hrow .sq i.fl { background: var(--pink); } .hrow .sq i.no { background: #4a2020; } .hrow .sq i.cur { outline: 1px solid #fff; }
.nums { display: grid; grid-template-columns: 1fr auto; font-size: 10px; color: var(--dim); margin-top: 6px; }
.nums b { color: var(--text); text-align: right; }
#spark { width: 100%; height: 22px; display: block; }
.gauge { position: relative; width: 120px; margin: 0 auto; }
.gauge svg { width: 120px; height: 70px; display: block; }
.gauge .track { fill: none; stroke: #1c1c21; stroke-width: 9; }
.gauge .arc { fill: none; stroke: var(--amber); stroke-width: 9; stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset .4s, stroke .4s; }
.gauge b { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 26px; font-weight: 800; }
.gauge small { position: absolute; left: 0; right: 0; top: 60px; text-align: center; font-size: 9px; color: var(--dim); }
.flags { margin: 14px 0 0; font-size: 10.5px; line-height: 1.3; }
#jev { margin: 0; font: 10.5px/1.5 var(--mono); color: #b8b2a6; white-space: pre-wrap; word-break: break-all; }
#jev .c { color: var(--faint); } #jev .k { color: #c792ea; } #jev .s { color: var(--sick); } #jev .n { color: var(--amber); } #jev .p { color: var(--pink); } #jev .cy { color: var(--cyan); }
#jev .cursor { display: inline-block; width: 6px; height: 11px; background: var(--pink); vertical-align: -1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- CA bar ---------- */
.cabar { display: flex; align-items: center; gap: 8px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #08080a; }
.calabel { font-weight: 800; color: var(--amber); font-size: 12px; }
.cabar code { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cabar .mc { font-size: 11px; color: var(--dim); white-space: nowrap; } .cabar .mc b { color: var(--text); }
.cabar button, .cabar .buy { min-height: 44px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line2); background: #15151a; color: var(--text); font-weight: 700; cursor: pointer; display: grid; place-items: center; text-decoration: none; }
.cabar .buy { background: var(--sick); color: #050506; border-color: var(--sick); }
.cabar .buy.off, .cabar button:disabled { opacity: .4; pointer-events: none; }

/* ---------- below the fold ---------- */
.below { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; padding: 14px 12px 40px; }
.panel.big { padding: 12px 14px; }
.panel.big h2 { margin: 0 0 8px; font: 14px var(--head); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sick); box-shadow: 0 0 8px var(--sick); animation: blink 1.6s infinite; }
.hint { margin: -2px 0 8px; color: var(--dim); font-size: 12px; }
ol.feed, ol.nests, ol.census { list-style: none; margin: 0; padding: 0; }
.feed li, .nests li, .census li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; }
.feed li:first-child, .nests li:first-child, .census li:first-child { border-top: 0; }
.feed li.new { animation: lognew 1.2s; }
.feed .k { font-weight: 800; font-size: 9.5px; padding: 1px 5px; background: var(--line2); flex: none; }
.feed .k.egg { background: var(--sick); color: #050506; } .feed .k.husk { background: var(--red); color: #050506; } .feed .k.read { background: var(--amber); color: #120c02; } .feed .k.ev { background: var(--cyan); color: #050506; }
.feed .t { color: var(--faint); margin-left: auto; flex: none; font-size: 10.5px; }
.feed li > span:not(.k):not(.t) { min-width: 0; overflow-wrap: anywhere; }
.feed b, .nests b { color: var(--text); }
.nests .r, .census .r { color: var(--faint); width: 20px; flex: none; }
.nests .n, .census .n { margin-left: auto; font: 14px var(--head); color: var(--sick); flex: none; }
.census img { width: 26px; height: 26px; object-fit: cover; background: #15151a; flex: none; }
.census a { color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.census .v { font-size: 10px; color: var(--dim); flex: none; }
.empty { color: var(--faint); }
.how ol { margin: 0; padding-left: 18px; color: var(--dim); font-size: 12.5px; }
.how li { margin: 6px 0; } .how li b { color: var(--text); }
.how i { font-style: normal; font-weight: 800; font-size: 10px; padding: 0 5px; color: #050506; }
.how .t-claim { background: var(--amber); } .how .t-owner { background: #6fb7ff; } .how .t-file { background: #7bd88f; } .how .t-approval { background: #d59cff; } .how .t-vague { background: #7d7468; }
.sched { font-size: 12.5px; } .fine { color: var(--faint); font-size: 11px; }

/* ---------- phone: graph on top, four panels, CA bar; everything readable at 390 px ---------- */
@media (max-width: 979px) {
  .app { height: auto; grid-template-rows: auto auto auto auto auto; }
  .top { gap: 8px; padding: 6px 10px; }
  .brand span { display: none; }
  .stats { gap: 8px; font-size: 9.5px; }
  .stats .hm { display: none; }
  .colony b { font-size: 18px; }
  .colony small { display: none; }
  .pill { display: none; }
  .tabs { padding: 4px 10px; gap: 3px; }
  .tabs span { font-size: 9px; }
  .stage { height: 47svh; min-height: 330px; }
  .sechead { left: 10px; top: 8px; } .sechead div { font-size: 17px; } .sechead small { font-size: 9.5px; }
  .coinbox { right: 8px; top: auto; bottom: 40px; left: 8px; max-width: none; padding: 5px 8px; }
  .coinbox img { width: 32px; height: 32px; }
  .cmeta b { font-size: 13px; } .cmeta span { font-size: 9.5px; }
  .ccol { font-size: 20px; }
  .why { font-size: 10.5px; bottom: 6px; padding: 3px 8px; }
  .verdict .stamp b { font-size: 46px; } .verdict .stamp span { font-size: 18px; } .verdict i { font-size: 11px; }
  .banner { top: 48px; font-size: 14px; }
  .hud { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 132px; height: auto; padding: 6px 10px; }
  .p-sec, .p-radar { display: none; }
  .p-log { order: 1; } .p-score { order: 2; } .p-heat { order: 3; } .p-jev { order: 4; }
  #log li:nth-child(n+9) { display: none; }
  .gauge { transform: scale(.85); transform-origin: top center; }
  .flags { margin-top: 0; }
  #jev { font-size: 9.5px; }
  .hrow .sq i { width: 6px; height: 6px; }
  .cabar { position: sticky; bottom: 0; z-index: 10; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .cabar .mc { display: none; }
}

/* ---------- ?stream=1: the pump.fun livestream (1920×1080), everything bigger ---------- */
body.stream .below { display: none; }
@media (min-width: 1600px) {
  body.stream .stats { font-size: 15px; gap: 22px; }
  body.stream .colony b { font-size: 34px; }
  body.stream .tabs span { font-size: 15px; padding: 4px 0; }
  body.stream .sechead div { font-size: 44px; } body.stream .sechead small { font-size: 18px; }
  body.stream .coinbox { max-width: 620px; padding: 12px 16px; } body.stream .coinbox img { width: 72px; height: 72px; }
  body.stream .cmeta b { font-size: 26px; } body.stream .cmeta span { font-size: 16px; } body.stream .ccol { font-size: 48px; }
  body.stream .why { font-size: 20px; padding: 8px 16px; }
  body.stream .verdict .stamp b { font-size: 140px; } body.stream .verdict .stamp span { font-size: 46px; } body.stream .verdict i { font-size: 22px; }
  body.stream .hud { height: 300px; }
  body.stream .panel h3 { font-size: 15px; }
  body.stream #log, body.stream .secrow, body.stream #jev, body.stream #kinds, body.stream .nums, body.stream .flags { font-size: 14px; }
  body.stream .gauge { transform: scale(1.4); transform-origin: top center; }
  body.stream .cabar code { font-size: 22px; } body.stream .calabel { font-size: 20px; }
  body.stream .banner { font-size: 30px; } body.stream .banner small { font-size: 18px; }
  body.stream .mute { display: none; }
}
@media (prefers-reduced-motion: reduce) { .verdict .stamp, .banner.in { animation: none; } }
