:root {
  --bg: #07060d;
  --bg2: #0e0c1a;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --text: #eeeaf6;
  --dim: #9a93b3;
  --gold: #ffc043;
  --buy: #4fd18b;
  --sell: #ff5a6e;
  --pink: #ff5ec4;
  --violet: #8b6bff;
  --cyan: #34e1ff;
  --holo: linear-gradient(115deg, #ff5ec4, #8b6bff 20%, #34e1ff 40%, #b6ff5c 60%, #ffc043 80%, #ff5ec4);
  --r: 14px;
  --display: 'Bungee', system-ui, sans-serif;
  --ui: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui); }
body {
  min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(700px 500px at 50% 10%, rgba(139, 107, 255, .16), transparent 70%),
    radial-gradient(600px 500px at 10% 90%, rgba(255, 94, 196, .07), transparent 70%),
    var(--bg);
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- top bar + CA ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(7, 6, 13, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 16px rgba(139, 107, 255, .45); }
.logo-word, .h-holo {
  font-family: var(--display); letter-spacing: 1px; line-height: 1;
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: holoShift 6s linear infinite;
}
.logo-word { font-size: 24px; }
@keyframes holoShift { to { background-position: -200% 0; } }
.status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status.live { color: var(--buy); border-color: rgba(79, 209, 139, .35); }
.status.live i { background: var(--buy); box-shadow: 0 0 10px var(--buy); animation: blink 1.6s infinite; }
.status.sim { color: var(--gold); border-color: rgba(255, 192, 67, .35); }
.status.sim i { background: var(--gold); }
@keyframes blink { 50% { opacity: .35; } }
.mc { display: none; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.mc small, .ca small { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.mc b { font-family: var(--mono); font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 0; background: var(--gold); color: #1a1205; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn.small { min-height: 44px; padding: 0 14px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 18px; }
.cabar { max-width: 1120px; margin: 10px auto 0; padding: 0 16px; }
.ca {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); text-align: left;
}
.ca span { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ca em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 22px 0 8px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 10vw, 64px); line-height: 1.02; display: flex; flex-direction: column; gap: 4px; }
.hero .sub { color: var(--dim); max-width: 620px; margin: 12px auto 16px; font-size: 15px; line-height: 1.5; }
.hero .sub b { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 0 auto; }
.stats div { padding: 10px 6px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-size: 20px; color: var(--buy); }
.stats small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.launchbar { display: inline-flex; gap: 10px; align-items: baseline; margin-bottom: 12px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 192, 67, .1); color: var(--gold); font-weight: 700; font-size: 13px; }
.launchbar b { font-family: var(--mono); font-size: 16px; }

/* ---------- the show ---------- */
.show { margin-top: 18px; }
.show-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h2 small, h3 small { font-size: 12px; font-weight: 500; color: var(--dim); }
.dot { color: var(--buy) !important; }
.rate { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.stage { position: relative; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(139, 107, 255, .08), rgba(255, 255, 255, .02)); padding: 14px; overflow: hidden; }
.slab { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.slab-img { position: relative; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: #15122a; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.slab-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slab-img .holo { position: absolute; inset: 0; background: var(--holo); mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s; }
.stage.hit .slab-img .holo { opacity: .35; animation: holoShift 3s linear infinite; background-size: 300% 100%; }
.slab.in { animation: slabIn .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes slabIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.p-app { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.p-name { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-math { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-math small { display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.p-math b { font-family: var(--mono); font-size: 16px; }
.verdict { margin-top: 12px; min-height: 52px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.35; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); }
.verdict.loss { background: rgba(255, 90, 110, .1); color: #ffc2ca; }
.verdict.hit { background: rgba(79, 209, 139, .12); color: var(--buy); }
.verdict.holder { background: rgba(255, 192, 67, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 192, 67, .4); }
.verdict.paid { background: rgba(79, 209, 139, .16); color: var(--buy); box-shadow: inset 0 0 0 1px rgba(79, 209, 139, .45); }
.verdict .tag { font-family: var(--display); font-weight: 400; font-size: 13px; padding: 3px 8px; border-radius: 6px; background: currentColor; }
.verdict .tag span { color: #120e1c; }
.stage.holder { box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(255, 192, 67, .25); }
.stage.paid { box-shadow: 0 0 0 2px var(--buy), 0 0 40px rgba(79, 209, 139, .25); }
.feed { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--panel); font-size: 13px; }
.row img { width: 34px; height: 46px; border-radius: 4px; object-fit: cover; background: #15122a; }
.row .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .nm small { display: block; color: var(--dim); font-size: 11px; }
.row .rv { font-family: var(--mono); text-align: right; white-space: nowrap; }
.row .rv small { display: block; font-size: 11px; color: var(--dim); }
.up { color: var(--buy); } .down { color: var(--sell); } .gold { color: var(--gold); }
.row.holder { box-shadow: inset 3px 0 0 var(--gold); }
.row.fresh { animation: rowIn .35s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }

/* ---------- panels ---------- */
.cols { display: grid; gap: 14px; margin-top: 20px; }
.panel { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 14px; }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.empty { color: var(--dim); font-size: 14px; margin: 4px 0; }
.rebates { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.rb { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.rb .who { font-family: var(--mono); }
.rb .amt { font-family: var(--mono); font-weight: 700; text-align: right; }
.rb .meta { grid-column: 1 / -1; color: var(--dim); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rb.paid .amt { color: var(--buy); } .rb.waiting .amt { color: var(--gold); } .rb.skipped .amt, .rb.dropped .amt { color: var(--dim); }
.rb a { color: var(--cyan); text-decoration: none; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: rgba(255, 255, 255, .08); }
.pill.whale { background: rgba(52, 225, 255, .16); color: var(--cyan); }
.pill.dolphin { background: rgba(139, 107, 255, .2); color: #c2b3ff; }
.pill.shrimp { background: rgba(255, 94, 196, .16); color: #ffb3e4; }
.me-form { display: flex; gap: 8px; }
.me-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); font-family: var(--mono); font-size: 13px; }
.me-out { margin: 10px 0; font-size: 14px; line-height: 1.5; }
.me-out:empty { display: none; }
.tiers { display: grid; gap: 6px; }
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tier b { font-family: var(--mono); font-size: 18px; }
.tier small { color: var(--dim); font-size: 12px; display: block; }
.tier.me { box-shadow: inset 0 0 0 2px var(--gold); }
.fine { font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---------- how ---------- */
.how { margin-top: 28px; max-width: 760px; }
.how ol, .how ul { padding-left: 20px; line-height: 1.6; color: #d8d3e8; }
.how li { margin-bottom: 8px; }
.how h3 { margin: 18px 0 6px; font-size: 15px; }
.how p { line-height: 1.6; color: #d8d3e8; }
.foot { border-top: 1px solid var(--line); padding: 18px 16px 30px; color: var(--dim); font-size: 13px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 40; padding: 10px 16px; border-radius: 12px; background: #1b1730; border: 1px solid var(--line); font-size: 14px; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.announce { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; gap: 6px; }
.announce div { padding: 8px 14px; border-radius: 99px; background: var(--gold); color: #1a1205; font-weight: 700; font-size: 13px; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .mc { display: flex; }
  .cabar { display: flex; justify-content: center; }
  .ca { width: auto; max-width: 560px; }
  .slab { grid-template-columns: 180px 1fr; gap: 22px; }
  .p-name { font-size: 20px; }
  .p-math b { font-size: 22px; }
  .verdict { font-size: 18px; }
  .stats b { font-size: 26px; }
  .cols { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .feed { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- stream mode (?stream=1): the show only, big ---------- */
body.stream .top, body.stream .cols, body.stream .how, body.stream .foot, body.stream .show-head small { display: none; }
body.stream main { max-width: none; padding: 0 24px; }
body.stream .hero { padding-top: 14px; }
body.stream .slab { grid-template-columns: 260px 1fr; }
body.stream .p-name { font-size: 28px; }
body.stream .p-math b { font-size: 30px; }
body.stream .verdict { font-size: 24px; min-height: 72px; }
body.stream .feed { grid-template-columns: repeat(3, 1fr); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.verdict .nw { white-space: nowrap; }
.verdict .vt { font-weight: 500; }
