/* ============================================================
   BidExplorer — visual system
   Type: Space Grotesk (display) · Inter (UI) · tabular numerals
   ============================================================ */
:root {
  --bg: #07090d;
  --bg-2: #0d1218;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3f8;
  --muted: #93a1b3;
  --faint: #5d6b7d;
  --green: #2fe57c;
  --green-deep: #0e9f5c;
  --green-ink: #052b16;
  --gold: #ffc94b;
  --gold-soft: rgba(255, 201, 75, 0.14);
  --silver: #ccd6e4;
  --bronze: #e59a6b;
  --red: #ff5d73;
  --blue: #58a6ff;
  --r-lg: 20px;
  --r-card: 3px;   /* listing cards: near-square, still perceptible */
  --r-md: 14px;
  --r-sm: 10px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
  --shadow-green: 0 8px 30px -6px rgba(47, 229, 124, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(47, 229, 124, 0.28); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid rgba(47,229,124,.65); outline-offset: 2px; border-radius: 6px; }

.tnum { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }
.accent-line { color: var(--gold); }
.hidden { display: none !important; }

/* ---------- Atmosphere ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
}
main, section, header, footer, .ticker-wrap { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .1px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 18px; cursor: pointer; text-decoration: none;
  transition: transform .14s var(--ease-out), box-shadow .2s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.1); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #33ef85, var(--green-deep));
  border-color: rgba(47,229,124,.4); color: var(--green-ink);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: linear-gradient(135deg, #45f793, #12b56b); box-shadow: 0 10px 36px -6px rgba(47,229,124,.5); }
.btn-gold { background: linear-gradient(135deg, #ffd76e, #eda819); border-color: rgba(255,201,75,.45); color: #3a2600; box-shadow: 0 8px 28px -8px rgba(255,201,75,.4); }
.btn-gold:hover { background: linear-gradient(135deg, #ffe18a, #f5b52a); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255,93,115,.1); color: var(--red); border-color: rgba(255,93,115,.35); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.top-link {
  font-size: 13.5px; font-weight: 650; color: var(--muted);
  text-decoration: none; padding: 9px 12px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.top-link:hover { color: var(--green); background: rgba(47, 229, 124, 0.07); }
.foot-link { color: var(--green); text-decoration: none; border-bottom: 1px dotted rgba(47,229,124,.45); }
.foot-link:hover { color: #6ff5ab; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 36px);
  background: rgba(7, 9, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, padding .25s;
}
.topbar.scrolled { background: rgba(7,9,13,.82); border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,229,124,.22), rgba(47,229,124,.06));
  border: 1px solid rgba(47,229,124,.35); color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 16px -4px rgba(47,229,124,.35);
}
.brand-logo svg { width: 19px; height: 19px; }
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: .2px; }
.brand-name b { color: var(--green); font-weight: 700; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.6px;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(47,229,124,.1); color: var(--green);
  border: 1px solid rgba(47,229,124,.3);
}
.live-pill .dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.live-pill .dot::after { content:""; position:absolute; inset:-3px; border-radius:50%; border:1px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1;} 100% { transform: scale(1.6); opacity: 0;} }
.live-pill.offline { background: rgba(255,93,115,.1); color: var(--red); border-color: rgba(255,93,115,.35); }
.live-pill.offline .dot { background: var(--red); } .live-pill.offline .dot::after { display:none; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.chip {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip b { font-size: 14.5px; font-weight: 700; }
.chip small { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.chip-ico { font-size: 12px; }
.chip.gold { border-color: rgba(255,201,75,.3); background: rgba(255,201,75,.06); }
.chip.gold b { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { max-width: 900px; margin: 0 auto; padding: clamp(40px, 7vw, 84px) 20px 8px; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 2.4px;
  color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 8px 16px; background: var(--surface);
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blinkG 1.8s ease-in-out infinite; }
@keyframes blinkG { 50% { opacity: .35; } }
.hero h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.06; letter-spacing: -1.5px; font-weight: 700;
}
.hero-sub { margin: 22px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(14.5px, 2.2vw, 17px); line-height: 1.7; }
.hero-sub b { color: var(--text); font-weight: 650; }
.hint-row { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hint-badge {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 99px;
}
.hint-badge b { color: var(--text); font-family: var(--font-display); }
.hint-badge.gold { border-color: rgba(255,201,75,.35); }
.hint-badge.gold b { color: var(--gold); }

/* ---------- Rules strip ---------- */
.rules-strip {
  max-width: 1060px; margin: 22px auto 0; padding: 0 20px;
  display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.rule {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 9px;
}
.rule-ico svg { width: 13px; height: 13px; }
.rule-txt { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; white-space: nowrap; }
.rule-txt b { font-size: 11.5px; font-weight: 700; }
.rule-txt small { color: var(--faint); font-size: 10px; }

/* ---------- Ticker ---------- */
.ticker-wrap { max-width: 1060px; margin: 18px auto 0; padding: 0 20px; min-height: 26px; overflow: hidden; }
.ticker { display: flex; gap: 8px; justify-content: safe center; flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tk-item {
  flex-shrink: 0; white-space: nowrap;
  font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 12px;
  animation: tkIn .45s var(--ease-out) both;
}
.tk-item b { color: var(--text); }
.tk-item.hl { border-color: rgba(255,201,75,.4); color: var(--gold); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px) scale(.95);} to { opacity: 1; transform: none; } }

/* ---------- Avatars ---------- */
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px; color: rgba(255,255,255,.94);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -8px 16px rgba(0,0,0,.22);
  user-select: none;
}
.avatar.lg { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar { position: relative; overflow: hidden; }
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .45s ease;
}
.avatar img.on { opacity: 1; }

/* ---------- Podium ---------- */
.podium {
  max-width: 1080px; margin: 40px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; align-items: stretch;
}
@media (min-width: 800px) {
  .podium { grid-template-columns: 1fr 1.16fr 1fr; }
  .podium:not(.sparse) .p-card.r2 { order: 1; }
  .podium:not(.sparse) .p-card.r1 { order: 2; }
  .podium:not(.sparse) .p-card.r3 { order: 3; }
}
.p-card {
  position: relative;
  display: flex; flex-direction: column; gap: 9px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 15px 13px; cursor: pointer;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
  animation: cardIn .5s var(--ease-out) both;
}
.p-card:hover { transform: translateY(-4px); }
.p-card.enter { animation: popIn .45s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none;} }
@keyframes popIn { from { opacity: 0; transform: scale(.92);} to { opacity: 1; transform: scale(1);} }
.podium.sparse { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 800px) {
  .podium:not(.sparse) .p-card.r1 { border-color: rgba(255,201,75,.4); margin-top: -18px; margin-bottom: 18px; }
}
/* glowing platform under each podium card */
.p-card::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 12px;
  border-radius: 99px; background: rgba(255,255,255,.05); filter: blur(6px);
}
.p-card.r1::after { background: rgba(255,201,75,.35); }
.p-medal {
  position: absolute; top: -17px; left: 18px;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-size: 19px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.p-card.r1 .p-medal { border-color: rgba(255,201,75,.5); background: linear-gradient(160deg, #2a2110, #171208); }
.rank-flag {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--faint);
}
.p-card.r1 .rank-flag { color: var(--gold); }
.p-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-name-wrap { min-width: 0; }
.pname {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.2px;
  word-break: break-word; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; line-height: 1.25;
}
.p-card.r1 .pname { font-size: 21px; }
.plink {
  font-size: 11.5px; color: var(--faint); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; display: inline-block;
}
.plink:hover { color: var(--green); }
.bid-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bid-big { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.p-card.r1 .bid-big { font-size: 29px; color: var(--gold); text-shadow: 0 0 34px rgba(255,201,75,.3); }
.bid-cap { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: var(--faint); text-transform: uppercase; margin-bottom: 5px; }
.clicks-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 99px;
}
.clicks-pill .eye { font-size: 12px; }
.gap-hint { font-size: 11.5px; color: var(--faint); display: flex; flex-direction: column; gap: 5px; }
.gap-hint .bar { height: 3px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.gap-hint .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-deep), var(--green)); transition: width .6s var(--ease-out); }
.gap-hint.crown { color: var(--gold); }
.p-actions { display: flex; gap: 6px; margin-top: auto; align-items: stretch; }
.p-actions .btn-open { flex: 0 1 auto; min-width: 0; padding: 9px 10px; }
.p-actions .btn-take { flex: 1.4; }
.p-actions .watch-btn { align-self: center; width: 30px; height: 30px; }
.btn-sm { padding: 9px 12px; font-size: 12.5px; border-radius: var(--r-sm); flex: 1; font-weight: 650; }
.btn-open { background: rgba(47,229,124,.09); border-color: rgba(47,229,124,.35); color: var(--green); }
.btn-open:hover { background: rgba(47,229,124,.16); }
.btn-take { background: var(--gold-soft); border-color: rgba(255,201,75,.4); color: var(--gold); }
.btn-take:hover { background: rgba(255,201,75,.2); }
.own-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  color: var(--green-ink); background: linear-gradient(135deg, #43f393, #17c06e);
  padding: 3px 8px; border-radius: 99px; flex-shrink: 0;
}

/* ---------- Board head / rows ---------- */
.board-head {
  max-width: 780px; margin: 48px auto 14px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.board-head h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.count-badge {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 10px;
}
#search {
  flex: 1; min-width: 190px; max-width: 300px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px; outline: none;
  transition: border-color .15s, background .15s;
}
#search::placeholder { color: var(--faint); }
#search:focus { border-color: rgba(47,229,124,.5); background: rgba(47,229,124,.04); }

.board { max-width: 780px; margin: 0 auto 70px; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.row {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 16px;
  transition: border-color .18s, background .18s, transform .18s var(--ease-out), box-shadow .25s;
  animation: rowIn .4s var(--ease-out) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }
.row:hover { border-color: rgba(47,229,124,.35); background: rgba(47,229,124,.045); }
.row.owned { border-color: rgba(47,229,124,.5); background: rgba(47,229,124,.06); }
.row.flash { animation: flashRing 2.4s ease; }
@keyframes flashRing { 0% { box-shadow: 0 0 0 3px rgba(47,229,124,.8);} 100% { box-shadow: 0 0 0 0 rgba(47,229,124,0);} }
.rank-num {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 11px;
  color: var(--muted);
}
.rank-num.gold { color: var(--gold); border-color: rgba(255,201,75,.4); background: rgba(255,201,75,.07); }
.rank-num.silver { color: var(--silver); border-color: rgba(204,214,228,.35); background: rgba(204,214,228,.06); }
.rank-num.bronze { color: var(--bronze); border-color: rgba(229,154,107,.4); background: rgba(229,154,107,.07); }
.r-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.r-id { min-width: 0; }
.r-name { font-weight: 650; font-size: 14.5px; word-break: break-word; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: center; line-height: 1.3; }
.r-url { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; text-decoration: none; display: inline-block; }
.r-url:hover { color: var(--green); }
.r-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.r-meta .btn-outbid { margin-left: auto; }
@media (max-width: 640px) { .r-meta .spark, .r-meta .mom-chip { display: none; } }
.r-bid { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.btn-outbid { padding: 8px 13px; font-size: 12px; border-radius: 9px; background: var(--gold-soft); border-color: rgba(255,201,75,.4); color: var(--gold); font-weight: 700; }
.btn-outbid:hover { background: rgba(255,201,75,.2); }
.empty {
  text-align: center; padding: 56px 24px; color: var(--muted);
  border: 1.5px dashed rgba(255,255,255,.14); border-radius: var(--r-lg);
  background: var(--surface);
}
.empty .orb {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 24px;
  display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(150deg, rgba(255,201,75,.16), rgba(47,229,124,.1));
  border: 1px solid var(--line-strong);
}

/* ---------- Claim popover ---------- */
.claim-pop {
  position: absolute; z-index: 80; width: 264px;
  background: #10161d; border: 1px solid rgba(47,229,124,.35);
  border-radius: var(--r-md); padding: 16px;
  box-shadow: 0 24px 60px -8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
  animation: tkIn .2s var(--ease-out) both;
}
.claim-pop::before {
  content: ""; position: absolute; top: -5px; left: 24px; width: 9px; height: 9px;
  transform: rotate(45deg); background: #10161d;
  border-left: 1px solid rgba(47,229,124,.35); border-top: 1px solid rgba(47,229,124,.35);
}
.claim-pop .cp-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.claim-pop .cp-math { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.claim-pop .cp-math b { color: var(--gold); font-family: var(--font-display); }
.claim-pop .cp-note { font-size: 10.5px; color: var(--faint); margin-top: 10px; line-height: 1.55; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 5, 8, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 440px;
  background: linear-gradient(170deg, #131a23, #0d1218);
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 28px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  animation: modalIn .3s var(--ease-out) both;
  position: relative;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.97);} to { opacity: 1; transform: none;} }
.modal h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -.3px; margin-bottom: 5px; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.m-kicker {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 1.8px;
  color: var(--green); background: rgba(47,229,124,.09); border: 1px solid rgba(47,229,124,.28);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 12px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10.5px; font-weight: 750; color: var(--faint); margin-bottom: 7px; letter-spacing: 1.1px; }
.field input {
  width: 100%; background: rgba(0,0,0,.3); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; font-size: 15px; outline: none; font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: rgba(47,229,124,.55); box-shadow: 0 0 0 3px rgba(47,229,124,.12); }
.field .err { color: var(--red); font-size: 12px; margin-top: 6px; min-height: 15px; }
.field-row { display: flex; gap: 10px; }
.amount-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gold-soft); border: 1px solid rgba(255,201,75,.3);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px;
}
.amount-preview .lbl { font-size: 12px; color: var(--muted); line-height: 1.45; }
.amount-preview .val { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--gold); letter-spacing: -.4px; white-space: nowrap; }
.method-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.method-tab {
  flex: 1; text-align: center; padding: 11px 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; color: var(--faint); background: rgba(0,0,0,.25);
  transition: all .15s;
}
.method-tab:hover { color: var(--muted); border-color: var(--line-strong); }
.method-tab.active { color: var(--green); border-color: rgba(47,229,124,.5); background: rgba(47,229,124,.08); box-shadow: 0 0 0 3px rgba(47,229,124,.07); }
.sandbox-tag {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 10px; letter-spacing: 1.4px; font-weight: 800; color: var(--faint);
  border: 1px dashed var(--line-strong); border-radius: 99px;
  padding: 8px 12px; margin-bottom: 16px;
}
.sandbox-tag b { color: var(--gold); }
.success-view { text-align: center; padding: 6px 0 2px; }
.tick-ring {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 38px;
  background: radial-gradient(circle at 30% 25%, rgba(47,229,124,.28), rgba(47,229,124,.07));
  border: 1px solid rgba(47,229,124,.5);
  box-shadow: 0 0 0 10px rgba(47,229,124,.05), 0 12px 44px -8px rgba(47,229,124,.4);
  animation: popIn .5s cubic-bezier(.2,1.6,.4,1) both;
}
.success-view h3 { margin-bottom: 6px; }
.token-box {
  margin: 18px 0; padding: 14px; text-align: left;
  background: rgba(0,0,0,.3); border: 1px dashed rgba(255,201,75,.45); border-radius: var(--r-md);
}
.token-box .tk-lbl { font-size: 10.5px; font-weight: 750; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.token-box code { font-size: 13px; color: var(--gold); word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.token-box p { font-size: 11px; color: var(--faint); margin-top: 8px; line-height: 1.55; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.spin {
  width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 7px;
  border: 2px solid rgba(5,43,22,.3); border-top-color: var(--green-ink); border-radius: 50%;
  animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg);} }
.cp-fine { text-align:center; font-size: 10.5px; color: var(--faint); margin-top: 12px; line-height: 1.5; }
.cp-fine code { font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--muted); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 400px); }
.toast {
  background: #131a23; border: 1px solid var(--line-strong); border-left: 3px solid var(--green);
  border-radius: var(--r-sm); padding: 12px 15px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: tkIn .3s var(--ease-out) both;
}
.toast.error { border-left-color: var(--red); }

/* ---------- Confetti ---------- */
.confetti-canvas { position: fixed; inset: 0; z-index: 300; pointer-events: none; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 0 20px 48px; color: var(--faint); font-size: 12px; line-height: 1.9; }
.foot-rules { opacity: .7; font-size: 11px; letter-spacing: .2px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
  .btn-add { order: 5; width: 100%; }
  .stats { order: 4; width: 100%; margin-left: 0; justify-content: space-between; }
  .chip { padding: 6px 9px; gap: 5px; } .chip small { display: none; }
  .brand-name { font-size: 17px; }
  .r-url { max-width: 130px; }
  .r-main { min-width: 0; }
  .claim-pop {
    position: fixed; left: 50% !important; right: auto !important; bottom: 14px; top: auto !important;
    transform: translateX(-50%); width: min(92vw, 350px);
  }
  .claim-pop::before { display: none; }
  .podium { gap: 12px; }
  .bid-big { font-size: 22px; } .p-card.r1 .bid-big { font-size: 25px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- name autofill hint ---------- */
.field .ok { color: var(--green); font-size: 11.5px; margin-top: 6px; min-height: 15px; }

/* ---------- Rules page ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 42px 20px 70px; }
.legal-hero { text-align: center; margin-bottom: 10px; }
.legal-hero h1 {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1px; line-height: 1.1;
}
.legal-hero p { color: var(--muted); max-width: 520px; margin: 14px auto 0; font-size: 14.5px; line-height: 1.65; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 34px; }
.rule-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rule-card.wide { grid-column: 1 / -1; }
.rule-card h2 {
  font-family: var(--font-display); font-size: 15.5px; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
}
.rule-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.rule-card p b { color: var(--text); font-weight: 650; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; }
.legal-foot { text-align: center; color: var(--faint); font-size: 11.5px; margin-top: 34px; line-height: 1.8; }

/* ---------- small phones ---------- */
@media (max-width: 560px) {
  .row { flex-wrap: wrap; row-gap: 10px; padding: 12px 14px; }
  .r-main { flex: 1; min-width: 0; }
  .r-meta { width: 100%; justify-content: space-between; align-items: center; }
  .r-bid { font-size: 18px; }
  .r-url { max-width: 220px; }
  .pname { font-size: 16px; }
  .p-head { gap: 10px; }
  .p-card { padding: 14px 13px 11px; }
  .p-card.r1 .pname { font-size: 17px; }
  .bid-big { font-size: 26px; }
  .p-card.r1 .bid-big { font-size: 30px; }
  .modal { padding: 20px 18px; border-radius: 18px; }
  .amount-preview .val { font-size: 22px; }
  .hero { padding-top: 36px; }
  .rules-strip { gap: 8px; }
  .rule { padding: 11px 13px; }
  .board-head h2 { font-size: 17px; }
  .claim-pop { width: min(94vw, 360px); }
}

/* ============================================================
   v3 — density pass (everything smaller EXCEPT podium cards),
   bid box, trending/activity panels, svg icon system
   ============================================================ */
.topbar { padding: 9px clamp(12px, 3vw, 24px); gap: 12px; }
.brand-logo { width: 28px; height: 28px; border-radius: 8px; }
.brand-logo svg { width: 15px; height: 15px; }
.brand-name { font-size: 16px; }
.live-pill { font-size: 8.5px; padding: 3px 7px; letter-spacing: 1.2px; }
.chip { padding: 5px 9px; gap: 5px; border-radius: 9px; }
.chip b { font-size: 12.5px; }
.chip small { font-size: 8.5px; letter-spacing: .5px; }
.chip-ico { display: inline-flex; color: var(--muted); }
.chip-ico svg { width: 13px; height: 13px; display: block; }

.btn { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn-add { padding: 9px 13px; }
.btn .ico { margin-right: 6px; }

.hero { padding-top: 28px; }
.hero h1 { margin-top: 16px; font-size: clamp(25px, 4.4vw, 42px); letter-spacing: -0.8px; }
.hero-sub { margin-top: 12px; font-size: clamp(12.5px, 2vw, 14px); max-width: 520px; }

.rules-strip { margin-top: 16px; gap: 8px; }
.rule { padding: 9px 12px; gap: 9px; border-radius: 12px; }
.rule-ico { display: inline-flex; color: var(--green); }
.rule-ico svg { width: 16px; height: 16px; }
.rule-txt b { font-size: 12px; }
.rule-txt small { font-size: 10.5px; }

/* podium intentionally NOT compacted */

.board-head { margin: 24px auto 8px; }
.board-head h2 { font-size: 15px; }
.count-badge { font-size: 10px; padding: 3px 8px; }
#search { padding: 7px 11px; font-size: 12.5px; min-width: 150px; }
.board { gap: 7px; margin-bottom: 38px; }
.row { padding: 8px 12px; gap: 10px; border-radius: var(--r-card); cursor: pointer; }
.rank-num { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; border-radius: 8px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; border-radius: 8px; }
.r-name { font-size: 13px; }
.r-url { font-size: 10.5px; }
.clicks-pill { padding: 3px 8px; font-size: 10.5px; gap: 4px; }
.r-bid { font-size: 14px; }
.btn-outbid { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.empty { padding: 32px 18px; }
.empty .orb { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 12px; }
.empty .orb svg { width: 26px; height: 26px; color: var(--gold); }

.modal { padding: 22px; border-radius: 20px; }
.modal h3 { font-size: 18px; }
.modal .sub { font-size: 12.5px; margin-bottom: 14px; }
.m-kicker { font-size: 8.5px; padding: 3px 8px; margin-bottom: 10px; }
.field { margin-bottom: 11px; }
.field label { font-size: 9.5px; margin-bottom: 5px; }
.field input { padding: 10px 12px; font-size: 14px; }
.amount-preview { padding: 10px 13px; margin-bottom: 12px; border-radius: 11px; }
.amount-preview .val { font-size: 21px; }
.method-tabs { gap: 6px; margin-bottom: 12px; }
.method-tab { padding: 8px 5px; font-size: 11px; border-radius: 9px; }
.sandbox-tag { padding: 6px 10px; font-size: 9px; margin-bottom: 12px; }
.token-box { padding: 11px; margin: 12px 0; }
.tick-ring { width: 64px; height: 64px; margin-bottom: 14px; }
.tick-ring svg { width: 30px; height: 30px; color: var(--green); }
.cp-fine { margin-top: 10px; font-size: 10px; }
.foot { padding-bottom: 32px; font-size: 11px; }

/* ---------- icons ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; vertical-align: -2px; }
.ico svg { width: 1em; height: 1em; }
.gold-i { color: var(--gold); }
.green-i { color: var(--green); }

/* ---------- bid box ---------- */
.bidbox {
  margin: 22px auto 0;
  display: inline-flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.07);
}
.bb-btn {
  width: 46px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 0; color: var(--green);
  transition: background .15s;
}
.bb-btn:hover { background: rgba(47, 229, 124, 0.08); }
.bb-btn:active { background: rgba(47, 229, 124, 0.16); }
.bb-btn svg { width: 17px; height: 17px; }
.bb-amt {
  min-width: 170px; padding: 9px 18px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  cursor: ns-resize; user-select: none;
}
.bb-cap { font-size: 8.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); font-weight: 750; }
#bbValue { font-family: var(--font-display); font-size: 33px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: var(--text); }
.bb-read { margin-top: 10px; font-size: 12px; color: var(--muted); min-height: 18px; line-height: 1.55; }
.bb-read b { color: var(--gold); font-family: var(--font-display); }
.bb-read .dim { color: var(--faint); }
.bb-claim { margin-top: 13px; }

/* ---------- trending / activity panels ---------- */
.duo {
  max-width: 1080px; margin: 24px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px 8px; min-width: 0;
}
.panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.panel-h h3 { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .3px; display: flex; align-items: center; gap: 7px; }
.panel-h .ico svg { width: 14px; height: 14px; }
.linklike {
  background: none; border: 0; color: var(--faint); font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  padding: 4px 7px; border-radius: 7px; transition: color .15s, background .15s;
}
.linklike:hover { color: var(--green); background: rgba(47, 229, 124, 0.06); }
.mini-list { display: flex; flex-direction: column; }
.mini {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 2px; font-size: 11.5px; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.mini:last-child { border-bottom: 0; }
.mini .mi { color: var(--faint); display: inline-flex; flex-shrink: 0; }
.mini .mi svg { width: 12px; height: 12px; }
.mini .mi.tnum { font-size: 10.5px; width: 14px; justify-content: center; }
.mini .mn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 550; }
.mini .mm { white-space: nowrap; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.mini .mm b { color: var(--gold); font-family: var(--font-display); font-weight: 650; }

/* ---------- medal icons on podium ---------- */
.p-medal svg { width: 19px; height: 19px; }
.p-medal.m1 { color: var(--gold); }
.p-medal.m2 { color: var(--silver); }
.p-medal.m3 { color: var(--bronze); }
.cp-title { display: flex; align-items: center; gap: 6px; }
.cp-title svg { width: 13px; height: 13px; color: var(--gold); }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  #bbValue { font-size: 27px; }
  .bb-amt { min-width: 138px; }
  .bb-btn { width: 42px; }
  .bidbox { margin-top: 18px; }
}

/* icon sizing inside small components */
.clicks-pill svg { width: 11px; height: 11px; }
.gap-hint.crown { display: flex; align-items: center; gap: 5px; }
.gap-hint.crown svg { width: 12px; height: 12px; flex-shrink: 0; }
.method-tab { display: flex; align-items: center; justify-content: center; gap: 5px; }
.mini .mm svg { width: 12px; height: 12px; color: var(--gold); }
.sandbox-tag svg { width: 11px; height: 11px; color: var(--gold); }

/* rules page heading icons */
.rule-card h2 svg.rci { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* ============================================================
   v4 — inline claim box + always-horizontal duo panels
   ============================================================ */
.claimbox {
  margin: 20px auto 0;
  display: flex; flex-direction: column; align-items: center;
  width: min(92vw, 380px);
}
.claimbox .bidbox { margin: 0; }
.cb-input {
  width: 100%; margin-top: 12px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 12px;
  padding: 11px 14px; font-size: 13px; outline: none;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.cb-input::placeholder { color: var(--faint); }
.cb-input:focus { border-color: rgba(47, 229, 124, 0.55); box-shadow: 0 0 0 3px rgba(47, 229, 124, 0.10); }
.bb-claim { width: 100%; margin-top: 10px; font-size: 13.5px; }
.cb-hint { min-height: 16px; margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.cb-hint.error { color: var(--red); }

/* duo panels: side by side at every width */
.duo { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) {
  .duo { gap: 8px; padding: 0 12px; margin-top: 18px; }
}
@media (max-width: 560px) {
  .panel { padding: 8px 9px 4px; border-radius: 12px; min-width: 0; }
  .panel-h { margin-bottom: 2px; }
  .panel-h h3 { font-size: 10px; letter-spacing: .2px; gap: 5px; }
  .panel-h .ico svg { width: 11px; height: 11px; }
  .linklike { font-size: 9px; padding: 3px 5px; }
  .mini { font-size: 9.5px; gap: 5px; padding: 5px 1px; }
  .mini .mi svg { width: 10px; height: 10px; }
  .mini .mi.tnum { width: 10px; font-size: 9px; }
  .mini .mm { gap: 4px; }
  .mini .mm b { font-size: 10px; }
  .cb-input { font-size: 12px; padding: 10px 10px; }
}
@media (max-width: 430px) {
  .mini .mm .sub { display: none; }
}

/* ============================================================
   v5 — light mode · tap-to-type amount · panel-more · preview
   ============================================================ */

/* ---------- theme toggle ---------- */
.theme-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; color: var(--muted);
  transition: color .15s, border-color .15s, transform .14s;
}
.theme-btn:hover { color: var(--gold); border-color: rgba(255,201,75,.4); transform: translateY(-1px); }
.theme-btn svg { width: 15px; height: 15px; }

/* ---------- tap-to-type amount ---------- */
#bbValue { cursor: pointer; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
#bbValue:hover { color: var(--green); border-bottom-color: rgba(47, 229, 124, 0.55); }
.bb-edit {
  width: 128px; text-align: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -.5px; color: var(--text);
  background: transparent; border: none; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.bb-edit::-webkit-inner-spin-button, .bb-edit::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- faint centered view-more at panel bottom ---------- */
.panel-more {
  display: block; margin: 4px auto 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .6px; color: var(--faint);
  padding: 5px 14px; border-radius: 99px;
  transition: color .15s, background .15s;
}
.panel-more:hover { color: var(--green); background: rgba(47, 229, 124, 0.07); }

/* ---------- channel preview chip ---------- */
.cb-preview {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 8px; padding: 7px 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; animation: tkIn .25s ease both;
}
.cb-preview img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cb-preview .cpn { flex: 1; min-width: 0; font-size: 12px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cb-preview .cpc { font-size: 9.5px; color: var(--faint); font-family: ui-monospace, Menlo, monospace; flex-shrink: 0; }
.cp-wait { font-size: 11px; color: var(--faint); }

/* ============================================================
   LIGHT THEME  (html[data-theme="light"])
   ============================================================ */
html[data-theme="light"] {
  --bg: #eef1f6;
  --bg-2: #ffffff;
  --surface: rgba(16, 28, 48, 0.045);
  --surface-2: rgba(16, 28, 48, 0.08);
  --line: rgba(16, 32, 54, 0.11);
  --line-strong: rgba(16, 32, 54, 0.20);
  --text: #14202f;
  --muted: #4c5c74;
  --faint: #8695aa;
  --green: #0ea35c;
  --green-deep: #0b8a4d;
  --gold: #bd8a08;
  --gold-soft: rgba(189, 138, 8, 0.13);
  --shadow-lg: 0 16px 40px -16px rgba(35, 52, 80, 0.28);
  --shadow-green: 0 8px 26px -8px rgba(14, 163, 92, 0.45);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .bg-grid {
  background:
    linear-gradient(rgba(16, 32, 54, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 54, 0.05) 1px, transparent 1px);
}
html[data-theme="light"] .topbar { background: rgba(238, 241, 246, 0.72); }
html[data-theme="light"] .topbar.scrolled { background: rgba(238, 241, 246, 0.94); border-bottom-color: var(--line); }
html[data-theme="light"] .btn:hover { background: rgba(16, 32, 54, 0.09); }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn-gold { color: #fff; }
html[data-theme="light"] .btn-gold { background: linear-gradient(135deg, #e3a919, #c4870a); border-color: rgba(189, 138, 8, 0.5); box-shadow: 0 8px 24px -8px rgba(189, 138, 8, 0.5); }
html[data-theme="light"] .btn-open { background: rgba(14, 163, 92, 0.09); }
html[data-theme="light"] .btn-take { background: rgba(189, 138, 8, 0.1); }
html[data-theme="light"] .btn-outbid { background: rgba(189, 138, 8, 0.1); }
html[data-theme="light"] .p-card {
  background: linear-gradient(165deg, #ffffff, #f3f6fa 60%);
  box-shadow: 0 14px 34px -14px rgba(35, 52, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .podium:not(.sparse) .p-card.r1,
html[data-theme="light"] .p-card.r1 { border-color: rgba(189, 138, 8, 0.45); }
html[data-theme="light"] .p-card.r1 .bid-big { text-shadow: none; }
html[data-theme="light"] .p-card::after { background: rgba(35, 52, 80, 0.14); }
html[data-theme="light"] .p-card.r1::after { background: rgba(189, 138, 8, 0.3); }
html[data-theme="light"] .p-medal { background: #ffffff; border-color: var(--line-strong); }
html[data-theme="light"] .rank-num, html[data-theme="light"] .clicks-pill,
html[data-theme="light"] .gap-hint .bar { background: rgba(16, 32, 54, 0.06); }
html[data-theme="light"] .row:hover { background: rgba(14, 163, 92, 0.05); }
html[data-theme="light"] .row.owned { background: rgba(14, 163, 92, 0.07); }
html[data-theme="light"] .claim-pop { background: #ffffff; border-color: rgba(14, 163, 92, 0.45); }
html[data-theme="light"] .claim-pop::before { background: #ffffff; border-left-color: rgba(14, 163, 92, 0.45); border-top-color: rgba(14, 163, 92, 0.45); }
html[data-theme="light"] .modal { background: #ffffff; }
html[data-theme="light"] .field input, html[data-theme="light"] .cb-input { background: #f5f7fa; border-color: var(--line); }
html[data-theme="light"] .field input:focus, html[data-theme="light"] .cb-input:focus { background: #fff; }
html[data-theme="light"] .method-tab { background: rgba(16, 32, 54, 0.04); }
html[data-theme="light"] .method-tab.active { background: rgba(14, 163, 92, 0.09); }
html[data-theme="light"] .token-box { background: rgba(189, 138, 8, 0.07); }
html[data-theme="light"] .toast { background: #ffffff; }
html[data-theme="light"] .sandbox-tag { border-color: var(--line-strong); }
html[data-theme="light"] .empty { background: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .empty .orb { background: linear-gradient(150deg, rgba(189, 138, 8, 0.14), rgba(14, 163, 92, 0.1)); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(16, 32, 54, 0.22); border-color: var(--bg); }
html[data-theme="light"] .live-pill { background: rgba(14, 163, 92, 0.1); }
html[data-theme="light"] .chip.gold, html[data-theme="light"] .hint-badge.gold { background: rgba(189, 138, 8, 0.08); }
html[data-theme="light"] .brand-logo { background: linear-gradient(135deg, rgba(14, 163, 92, 0.16), rgba(14, 163, 92, 0.05)); }

/* ============================================================
   v6 — kind tags (channel / business / product) + descriptions
   ============================================================ */
.kind-tag {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  font-size: 8px; font-weight: 800; letter-spacing: .7px;
  padding: 2.5px 6px; border-radius: 6px; line-height: 1;
}
.kind-tag svg { width: 8px; height: 8px; }
.kind-tag.k-channel { color: var(--green); background: rgba(47, 229, 124, 0.10); border: 1px solid rgba(47, 229, 124, 0.28); }
.kind-tag.k-business { color: var(--blue); background: rgba(88, 166, 255, 0.12); border: 1px solid rgba(88, 166, 255, 0.32); }
.kind-tag.k-product { color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(255, 201, 75, 0.32); }
.kind-tag.k-profile { color: #0d9488; background: rgba(13, 148, 136, 0.10); border: 1px solid rgba(13, 148, 136, 0.30); }

.p-desc {
  font-size: 11px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.r-desc {
  font-size: 9.5px; color: var(--faint); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
@media (max-width: 560px) {
  .r-desc { max-width: 200px; }
  .kind-tag { font-size: 7px; padding: 2px 4.5px; }
  .p-desc { font-size: 10.5px; }
}

/* ============================================================
   v7 — raise modal · move chips · validation states
   ============================================================ */
.move-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip-btn {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 6px 12px; cursor: pointer; transition: all .14s;
}
.chip-btn:hover { color: var(--text); border-color: var(--green); }
.chip-btn.hot { color: var(--green-deep); background: rgba(47, 229, 124, 0.1); border-color: rgba(47, 229, 124, 0.45); }
.rm-stepper {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 8px 6px;
}
.rm-stepper #rmAmt { font-family: var(--font-display); font-size: 24px; font-weight: 700; min-width: 90px; text-align: center; color: var(--text); }
.rm-outcome { min-height: 34px; margin: 10px 0; font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }
.cb-input.ok { border-color: rgba(47, 229, 124, 0.5) !important; box-shadow: 0 0 0 3px rgba(47, 229, 124, 0.09) !important; }
.cb-input.bad { border-color: rgba(255, 92, 92, 0.55) !important; box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.09) !important; }

/* ============================================================
   v8 — podium proportions · name clamps · catalog kind
   ============================================================ */

/* cards become flex columns so bid rows align across all three */
.podium .p-card { display: flex; flex-direction: column; }
.podium .p-card .bid-row { margin-top: auto; padding-top: 10px; }
.p-name-wrap { min-width: 0; flex: 1; }

/* long names clamp to two lines instead of squashing or sprawling */
.pname { min-width: 0; }
.pname .pn-t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; line-height: 1.22;
  flex: 1 1 auto; min-width: 0;
}
.r-name { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.r-name .rn-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .pname .pn-t { font-size: 13px; }
  .p-desc { font-size: 10px; -webkit-line-clamp: 2; }
}

/* optional description input (business / catalog) */
.cb-desc { width: 100%; margin-top: 8px; }
.cb-desc-in { margin-top: 0 !important; text-align: left !important; font-size: 12px !important; padding: 9px 12px !important; background: rgba(0, 0, 0, 0.22) !important; }
html[data-theme="light"] .cb-desc-in { background: #f5f7fa !important; }

/* ============================================================
   v9 — podium hierarchy · rank badges · stage · breadcrumbs
   ============================================================ */

/* --- connected stage under the trio (desktop) --- */
@media (min-width: 800px) {
  .podium { position: relative; gap: 16px; padding-bottom: 10px; }
  .podium::before {
    content: ''; position: absolute; left: 4%; right: 4%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47,229,124,.35) 18%, rgba(255,201,75,.4) 50%, rgba(47,229,124,.35) 82%, transparent);
    pointer-events: none;
  }
  .podium::after {
    content: ''; position: absolute; left: 10%; right: 10%; bottom: -14px; height: 40px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(47,229,124,.08), transparent 70%);
    pointer-events: none;
  }
  /* classic podium silhouette: center high, sides eased down */
  .podium:not(.sparse) .p-card.r2 { margin-top: 26px; }
  .podium:not(.sparse) .p-card.r3 { margin-top: 40px; }
}

/* --- dominant rank badge --- */
.rank-badge {
  position: absolute; top: -12px; right: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 58px; padding: 7px 12px 6px;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(0,0,0,.28));
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 2; pointer-events: none;
}
.rb-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.5px; color: var(--text); }
.rb-cap { font-size: 7.5px; font-weight: 800; letter-spacing: 1.6px; color: var(--faint); margin-top: 3px; }
.rank-badge svg { width: 13px; height: 13px; color: var(--gold); margin-bottom: 2px; filter: drop-shadow(0 0 8px rgba(255,201,75,.5)); }

.rank-badge.rb1 { border-color: rgba(255,201,75,.55); background: linear-gradient(165deg, #332711, #171208); box-shadow: 0 12px 30px -10px rgba(255,201,75,.35), inset 0 1px 0 rgba(255,201,75,.25); }
.rank-badge.rb1 .rb-num { color: var(--gold); font-size: 34px; text-shadow: 0 0 22px rgba(255,201,75,.35); }
.rank-badge.rb1 .rb-cap { color: rgba(255,201,75,.75); }
.rank-badge.rb2 { border-color: rgba(200,210,225,.35); background: linear-gradient(165deg, #232a35, #10151d); }
.rank-badge.rb2 .rb-num { color: #cdd6e4; }
.rank-badge.rb3 { border-color: rgba(205,127,50,.45); background: linear-gradient(165deg, #2b1d12, #170f09); }
.rank-badge.rb3 .rb-num { color: #d99a5b; }

html[data-theme="light"] .rank-badge { background: #fff; box-shadow: 0 10px 24px -12px rgba(35,52,80,.35); }
html[data-theme="light"] .rank-badge.rb1 { background: linear-gradient(165deg, #fff7e0, #ffedb8); }
html[data-theme="light"] .rank-badge.rb2 { background: linear-gradient(165deg, #f2f5fa, #e2e8f1); }
html[data-theme="light"] .rank-badge.rb3 { background: linear-gradient(165deg, #faeede, #f3dcc2); }

.p-card.r1 { padding-top: 20px; }

/* mobile: badge tucks into the card corner, smaller */
@media (max-width: 799px) {
  .rank-badge { top: -10px; right: 10px; min-width: 46px; padding: 5px 9px 4px; border-radius: 11px; }
  .rb-num { font-size: 21px; }
  .rank-badge.rb1 .rb-num { font-size: 23px; }
  .rb-cap { font-size: 6.5px; letter-spacing: 1.2px; }
}

/* --- breadcrumbs for ranks past the podium --- */
.crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 14px 4px 6px; margin-top: 4px;
  border-top: 1px dashed var(--line);
}
.crumb {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--faint); background: transparent; border: 1px solid transparent;
  padding: 5px 11px; border-radius: 99px; cursor: pointer; transition: all .15s;
}
.crumb:hover { color: var(--green); background: rgba(47,229,124,.07); }
.crumb.on { color: var(--gold); background: var(--gold-soft); border-color: rgba(255,201,75,.3); }
html[data-theme="light"] .crumb.on { color: #8a6405; }

/* kind tag lives on its own line, clear of the floating rank badge */
.p-tagline { display: flex; margin-top: 6px; }

/* ---------- category ranking chips: one small scrollable row, faded edges ---------- */
.kind-chips {
  display: flex; flex-wrap: nowrap; gap: 6px;
  max-width: 1060px; margin: 0 auto 12px; padding: 0 20px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.kind-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font: 600 9.5px/1 var(--font-ui); letter-spacing: .04em;
  color: var(--text-2); background: transparent;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 3px 7px; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.chip svg { width: 8px; height: 8px; }
.chip b { color: var(--gold); font-size: 8.5px; }
.chip:hover { border-color: rgba(47,229,124,.5); color: var(--text); }
.chip.on { border-color: var(--green); color: var(--green); background: rgba(47,229,124,.08); }

/* category-view rank + global tag */
.rank-num.cat { color: var(--green); }
.g-rank { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 1px 4px; margin-left: 6px; vertical-align: 1px; }

/* ---------- momentum ---------- */
.mom-chip { font-size: 10.5px; font-weight: 800; color: var(--green); opacity: .95; letter-spacing: .02em; }
.spark { color: var(--gold); opacity: .85; flex: none; }

/* ---------- watchlist star ---------- */
.watch-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; flex: none;
  background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  color: var(--text-3); cursor: pointer; transition: color .2s, border-color .2s, transform .15s;
}
.watch-btn:hover { color: var(--gold); border-color: rgba(255,201,75,.55); transform: scale(1.06); }
.watch-btn.on { color: var(--gold); border-color: rgba(255,201,75,.7); background: rgba(255,201,75,.09); }
.watch-btn.on svg { fill: currentColor; }

/* ---------- reign pill ---------- */
.reign-pill {
  grid-column: 1 / -1; justify-self: center; align-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  font: 600 12.5px/1 var(--font-ui); color: var(--text-2);
  border: 1px solid rgba(255,201,75,.35); background: rgba(255,201,75,.07);
}
.reign-pill b { color: var(--gold); font-weight: 800; }
.reign-pill svg { color: var(--gold); }

html[data-theme="light"] .chip { border-color: rgba(10,20,30,.18); color: var(--text-2); }
html[data-theme="light"] .chip.on { border-color: #0a9c53; color: #0a7a42; background: rgba(16,185,129,.1); }
html[data-theme="light"] .g-rank { border-color: rgba(10,20,30,.18); color: var(--text-3); }
html[data-theme="light"] .watch-btn { border-color: rgba(10,20,30,.18); }
html[data-theme="light"] .reign-pill { border-color: rgba(180,120,10,.4); background: rgba(255,193,7,.1); color: var(--text-2); }

/* reign pill: never let a long listing name break mobile */
.reign-pill { max-width: calc(100% - 24px); white-space: nowrap; }
.reign-pill b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.rp-sep { opacity: .5; margin: 0 6px; }


/* ============================================================
   HEADER STAT STRIP — horizontal only, compact, scrollable L→R
   "79 views since launch · 18 channels listed · …"
   ============================================================ */
a.stats {
  display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  gap: 6px; max-width: 46vw; padding: 2px;
  text-decoration: none; -webkit-overflow-scrolling: touch;
}
a.stats::-webkit-scrollbar { display: none; }
.stats .chip {
  flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px;
  padding: 4px 9px; font-size: 12px; white-space: nowrap; cursor: pointer;
}
.stats .chip b { font-size: 12.5px; font-weight: 800; line-height: 1; }
.stats .chip small {
  display: inline !important; font-size: 10px; font-weight: 600;
  letter-spacing: .3px; text-transform: none; opacity: .75;
}
@media (max-width: 720px) {
  a.stats { max-width: 40vw; }
  .stats .chip { padding: 3px 7px; font-size: 10.5px; }
  .stats .chip b { font-size: 11px; }
  .stats .chip small { font-size: 9px; }
}

/* ---- refresh button floating above the #1 podium card ---- */
.board-tools { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 8px; }
.refresh-mini {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
}
.refresh-mini:hover { color: var(--text); border-color: var(--accent); }
.refresh-mini.spinning .ico { animation: spin360 .8s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* ---- live/watching pill: prominent ---- */
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(94,234,212,.16), rgba(94,234,212,.05));
  border: 1px solid rgba(94,234,212,.45); color: #5eead4;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800;
  white-space: nowrap; box-shadow: 0 0 14px rgba(94,234,212,.15);
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ---- card descriptions: readable (≈3× the old 9.5px) ---- */
.r-desc {
  font-size: 12.5px !important; color: var(--muted) !important; margin-top: 3px;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; max-width: 420px;
}

/* ---- watching-now as first-class chip in the strip ---- */
.stats .chip.live-chip {
  background: linear-gradient(135deg, rgba(94,234,212,.18), rgba(94,234,212,.06));
  border-color: rgba(94,234,212,.5); color: #5eead4;
}
.stats .chip.live-chip small { color: #5eead4; opacity: .9; }
.live-pill .dot, .stats .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulseDot 1.8s infinite; flex: 0 0 auto;
}

/* ---- strip: fit most content; scroll only as last resort ---- */
a.stats { max-width: none; flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.stats .chip { padding: 3px 8px; font-size: 11px; gap: 5px; }
.stats .chip b { font-size: 11.5px; }
.stats .chip small { font-size: 9.5px; }
@media (max-width: 900px) { a.stats { max-width: 52vw; } }

/* ---- stat strip: dedicated full-width header row ---- */
.stats-row { display: flex; justify-content: center; padding: 2px 18px 6px; max-width: 1180px; margin: 0 auto; width: 100%; }
.stats-row a.stats { max-width: none; width: 100%; justify-content: center; gap: 8px; }
@media (max-width: 900px) {
  .stats-row a.stats { justify-content: flex-start; max-width: 100%; }
}

/* ---- tiny local-currency approximation ---- */
.fx {
  display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--faint); margin-top: 1px; white-space: nowrap;
}
.bid-big + .fx { margin-top: -2px; }

/* ---- sticky stat strip ---- */
.stats-row {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .stats-row { background: rgba(255,255,255,.85); }

/* ---- rank list uses the width on desktop ---- */
.board { max-width: min(1080px, 100%); }
@media (min-width: 900px) { .board { max-width: 1060px; } }

/* ---- light-mode variants: presence + fx need contrast ---- */
html[data-theme="light"] .stats .chip.live-chip {
  background: linear-gradient(135deg, rgba(13,148,136,.14), rgba(13,148,136,.05));
  border-color: rgba(13,148,136,.55); color: #0f766e;
}
html[data-theme="light"] .stats .chip.live-chip small { color: #0f766e; }
html[data-theme="light"] .stats .dot, html[data-theme="light"] .live-pill .dot { background: #0d9488; box-shadow: 0 0 0 0 rgba(13,148,136,.6); }
html[data-theme="light"] .live-pill {
  border-color: rgba(13,148,136,.5); color: #0f766e;
  background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(13,148,136,.04));
}
html[data-theme="light"] .fx { color: #64748b; }
html:not(.light) .fx { color: var(--faint); }

/* ============================================================
   HEADER UNIT: topbar + stat strip stick together as one
   ============================================================ */
.head-wrap { position: sticky; top: 0; z-index: 80; }
html[data-theme="light"] .head-wrap { background: rgba(247,248,252,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html:not(.light) .head-wrap { background: rgba(10,12,18,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stats-row { position: static !important; background: transparent !important; border-bottom: none; }

/* ---- reign pill: never slides under podium ---- */
.reign-pill { position: relative; z-index: 5; margin-top: 30px; }
@media (min-width: 900px) { .reign-pill { margin-top: 6px; } }

/* ---- description sizes: rows smaller, podium larger ---- */
.r-desc { font-size: 10.5px !important; line-height: 1.4; }
.p-desc { font-size: 13.5px !important; line-height: 1.45; color: var(--muted); }

/* ============================================================
   PREMIUM PODIUM — gold / silver / bronze identities
   ============================================================ */
.p-card.r1 {
  border: 1px solid rgba(251,191,36,.55);
  background:
    radial-gradient(420px 220px at 85% -10%, rgba(251,191,36,.16), transparent),
    linear-gradient(180deg, rgba(251,191,36,.07), transparent 40%),
    var(--card);
  box-shadow: 0 10px 44px rgba(251,191,36,.14), inset 0 1px 0 rgba(251,191,36,.25);
}
.p-card.r1 .rank-badge { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #241a02; }
.p-card.r2 {
  border: 1px solid rgba(203,213,225,.5);
  background:
    radial-gradient(380px 200px at 85% -10%, rgba(203,213,225,.13), transparent),
    linear-gradient(180deg, rgba(203,213,225,.06), transparent 40%),
    var(--card);
  box-shadow: 0 8px 34px rgba(148,163,184,.12), inset 0 1px 0 rgba(203,213,225,.22);
}
.p-card.r2 .rank-badge { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #10151f; }
.p-card.r3 {
  border: 1px solid rgba(205,127,50,.5);
  background:
    radial-gradient(380px 200px at 85% -10%, rgba(205,127,50,.14), transparent),
    linear-gradient(180deg, rgba(205,127,50,.06), transparent 40%),
    var(--card);
  box-shadow: 0 8px 34px rgba(205,127,50,.12), inset 0 1px 0 rgba(205,127,50,.2);
}
.p-card.r3 .rank-badge { background: linear-gradient(135deg, #e09658, #b45f2d); color: #21100a; }
.p-card.r1 .avatar.lg, .p-card.r1 .avatar.xl { box-shadow: 0 0 0 2px #fbbf24, 0 0 22px rgba(251,191,36,.35); }
.p-card.r2 .avatar.lg, .p-card.r2 .avatar.xl { box-shadow: 0 0 0 2px #cbd5e1, 0 0 18px rgba(203,213,225,.28); }
.p-card.r3 .avatar.lg, .p-card.r3 .avatar.xl { box-shadow: 0 0 0 2px #cd7f32, 0 0 18px rgba(205,127,50,.28); }
.p-card .avatar.xl { width: 64px; height: 64px; font-size: 20px; border-radius: 16px; }
.p-card.r1 .avatar.xl { width: 74px; height: 74px; }
.p-name-wrap .pname { font-size: 17px; }
.p-card.r1 .pname { font-size: 19px; }
@media (max-width: 720px) {
  .p-card .avatar.xl, .p-card.r1 .avatar.xl { width: 52px; height: 52px; font-size: 16px; }
}

/* ============================================================
   CANONICAL HEADER/STRIP LAYOUT — overrides everything above
   One row. Full width. Horizontally scrollable only if truly needed.
   ============================================================ */
.head-wrap { width: 100%; }
.topbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.topbar::-webkit-scrollbar { display: none; }
.stats-row {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  padding: 4px clamp(10px, 2.5vw, 22px) 7px !important;
}
.stats-row a.stats {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: space-between !important;
  align-items: center;
  gap: clamp(6px, 1vw, 14px) !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.stats-row a.stats::-webkit-scrollbar { display: none; }
.stats-row .chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* ---- rank badges: high-contrast in BOTH themes ---- */
.p-card.r1 .rank-badge { background: linear-gradient(160deg, #ffd75e, #eab308) !important; border-color: #a16207 !important; }
.p-card.r1 .rank-badge .rb-num { color: #451a03 !important; text-shadow: none !important; font-weight: 900; }
.p-card.r1 .rank-badge .rb-cap { color: #713f12 !important; }
.p-card.r2 .rank-badge { background: linear-gradient(160deg, #f1f5f9, #94a3b8) !important; border-color: #475569 !important; }
.p-card.r2 .rank-badge .rb-num { color: #0f172a !important; font-weight: 900; }
.p-card.r2 .rank-badge .rb-cap { color: #334155 !important; }
.p-card.r3 .rank-badge { background: linear-gradient(160deg, #f0a35e, #c2410c) !important; border-color: #7c2d12 !important; }
.p-card.r3 .rank-badge .rb-num { color: #431407 !important; font-weight: 900; }
.p-card.r3 .rank-badge .rb-cap { color: #7c2d12 !important; }
html[data-theme="light"] .p-card .rank-badge { box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }

/* ---- head unit: inherit the page background, never a black band ---- */
.head-wrap, html[data-theme="light"] .head-wrap, html:not(.light) .head-wrap {
  background: color-mix(in srgb, var(--bg) 90%, transparent) !important;
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .head-wrap { --bg: #f7f8fc; }

/* ---- compact chips so the whole strip fits on normal screens ---- */
.stats-row a.stats { justify-content: space-between !important; gap: clamp(4px, .8vw, 10px) !important; }
.stats-row .chip { padding: 3px clamp(6px, 1vw, 10px) !important; gap: 5px !important; font-size: 10.5px; }
.stats-row .chip b { font-size: 11.5px !important; }
.stats-row .chip small { font-size: 9px !important; letter-spacing: .2px; }
@media (max-width: 1100px) {
  .stats-row .chip small { display: none; }
  .stats-row .chip.live-chip small { display: inline !important; }
}

/* ---- presence text: dark-on-light variants that are actually readable ---- */
html[data-theme="light"] .stats .chip.live-chip { color: #0b4f46 !important; }
html[data-theme="light"] .stats .chip.live-chip small { color: #0b4f46 !important; }
html[data-theme="light"] .live-pill { color: #0b4f46 !important; border-color: rgba(11,79,70,.55) !important; }
html[data-theme="light"] .fx { color: #475569 !important; }

.row.clickable, .p-card.clickable { cursor: pointer; }
.row.clickable:hover .r-name .rn-t, .p-card.clickable:hover .pn-t { text-decoration: underline; text-underline-offset: 3px; }

/* ---- legibility: labels & kicker no longer faint ---- */
.stats-row .chip small { color: var(--muted) !important; opacity: 1 !important; }
.stats-row .chip b { color: var(--text); }
.hero-kicker { color: var(--muted); }
html[data-theme="light"] .stats-row .chip small,
html[data-theme="light"] .hero-kicker { color: #475569; }

/* ---- avatar fallback rank: visible in both themes ---- */
.p-card .avatar, .row .avatar, .card .avatar {
  background: linear-gradient(160deg, #223052, #101828) !important;
  color: #dbe6f5 !important; font-weight: 800;
}
html[data-theme="light"] .p-card .avatar, html[data-theme="light"] .row .avatar {
  background: linear-gradient(160deg, #e2e8f0, #cbd5e1) !important;
  color: #0f172a !important;
}

/* ---- clicks pill label ---- */
.clicks-pill .cp-label { font-size: 10px; opacity: .8; margin-left: 2px; }
@media (max-width: 640px){ .clicks-pill .cp-label { display: none; } }

/* ---- clicks label: always visible, all cards ---- */
.clicks-pill { flex: 0 0 auto; }
.clicks-pill .cp-label {
  display: inline !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  margin-left: 3px !important;
  letter-spacing: .2px;
}

/* ---- listing age chip ---- */
.l-age {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 650; color: var(--faint);
  white-space: nowrap;
}
.l-age svg { width: 11px; height: 11px; }
.p-tagline .l-age { margin-left: 8px; color: var(--muted); }
html[data-theme="light"] .l-age { color: #64748b; }

/* ---- category presets + tags ---- */
.cat-pick { margin-top: 8px; text-align: left; }
.cat-pick-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.cat-chip:hover { color: var(--text); border-color: var(--accent); }
.cat-chip.on { background: #5eead4; color: #05201b; border-color: transparent; }
.cat-tag {
  font-size: 8.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 6px; vertical-align: 1px;
  background: rgba(94,234,212,.14); color: #5eead4; border: 1px solid rgba(94,234,212,.35);
}
html[data-theme="light"] .cat-tag { background: rgba(13,148,136,.1); color: #0f766e; border-color: rgba(13,148,136,.4); }

/* ============================================================
   WARM THEME PASS — kill the ash: faint gold page, white cards
   ============================================================ */
html[data-theme="light"] {
  --bg: #fffcf3;              /* almost-white with a whisper of gold */
  --bg-2: #fff8e8;
  --card: #ffffff;
  --surface: rgba(20, 16, 4, 0.035);
  --surface-2: rgba(20, 16, 4, 0.06);
  --line: rgba(146, 110, 20, 0.16);
  --line-strong: rgba(146, 110, 20, 0.28);
  --text: #17150f;
  --muted: #5c5546;
  --faint: #8a8069;
}
html[data-theme="light"] body { background: linear-gradient(180deg, #fffcf3 0%, #fffdf7 40%, #fdf6e3 100%) !important; }
html[data-theme="light"] .topbar { background: rgba(255, 252, 243, 0.85) !important; }
html[data-theme="light"] .head-wrap { background: rgba(255, 252, 243, 0.92) !important; }
html[data-theme="light"] .stats-row { background: transparent !important; }
html[data-theme="light"] .chip,
html[data-theme="light"] .panel,
html[data-theme="light"] .modal,
html[data-theme="light"] .claim-pop { background: #ffffff !important; }
html[data-theme="light"] .row { background: #ffffff; }
html[data-theme="light"] .p-card { background: #ffffff; }
html:not([data-theme="dark"]) html:not(.x) {}
/* dark mode: soften ash surfaces toward neutral */
html[data-theme="dark"], html:not([data-theme]) {
  --surface-2: rgba(255,255,255,.055);
}

/* strip in hero: centered, roomy, clearly clickable */
.hero .stats-row { display: flex; justify-content: center; margin-bottom: 14px; padding: 0; position: static; }
.hero .stats-row a.stats { justify-content: center; gap: clamp(8px,1.4vw,16px); }

/* hero stats link (above kicker) */
.hero-stats-link{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;
  font-size:13px;font-weight:700;color:var(--muted);text-decoration:none;
  border:1px solid var(--border);border-radius:999px;padding:7px 15px;background:var(--card);
  transition:.16s;
}
.hero-stats-link:hover{color:var(--text);border-color:#fbbf24;transform:translateY(-1px)}
.hsl-num{color:#0d9488;font-weight:800}
html[data-theme="light"] .hsl-num{color:#0f766e}

/* ============================================================
   STAGE LIGHTS: aurora backdrop, championship sheen, flip trails
   (all transform/opacity only; disabled under reduced motion)
   ============================================================ */
.aurora{position:fixed;inset:-20%;z-index:-1;pointer-events:none;overflow:hidden}
.aurora i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.16;will-change:transform}
.aurora .a1{width:52vmax;height:52vmax;left:-12vmax;top:-14vmax;background:radial-gradient(circle,#f5b73c,transparent 62%);animation:drift1 38s ease-in-out infinite alternate}
.aurora .a2{width:46vmax;height:46vmax;right:-10vmax;top:24%;background:radial-gradient(circle,#0fb5a3,transparent 62%);opacity:.13;animation:drift2 46s ease-in-out infinite alternate}
html[data-theme="light"] .aurora i{opacity:.10}
@keyframes drift1{from{transform:translate(0,0) scale(1)}to{transform:translate(9vw,6vh) scale(1.15)}}
@keyframes drift2{from{transform:translate(0,0) scale(1)}to{transform:translate(-8vw,-7vh) scale(1.18)}}

/* championship sheen orbiting the #01 card */
.p-card.r1::before{
  content:"";position:absolute;inset:-3px;border-radius:inherit;padding:2px;z-index:-1;
  background:conic-gradient(from var(--sheen-at,0deg),rgba(251,191,36,0) 0deg,rgba(251,191,36,.85) 40deg,rgba(255,236,170,.95) 70deg,rgba(251,191,36,.35) 100deg,rgba(251,191,36,0) 180deg);
  animation:sheen-orbit 6s linear infinite;
  -webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);
  -webkit-mask-composite:xor;mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);mask-composite:exclude;
}
@property --sheen-at{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes sheen-orbit{to{--sheen-at:360deg}}
.p-card.r2,.p-card.r3{animation:podium-glow 5s ease-in-out infinite alternate}
@keyframes podium-glow{from{box-shadow:0 6px 22px -10px rgba(251,191,36,.12)}to{box-shadow:0 10px 30px -10px rgba(251,191,36,.30)}}

/* rank-flip trails */
.row.flip-up,.p-card.flip-up{box-shadow:0 0 0 1px rgba(94,234,212,.55),0 12px 34px -12px rgba(94,234,212,.45)!important}
.row.flip-down,.p-card.flip-down{box-shadow:0 0 0 1px rgba(148,163,184,.35),0 10px 26px -14px rgba(148,163,184,.35)!important}

@media (prefers-reduced-motion:reduce){
  .aurora i{animation:none!important}
  .p-card.r1::before,.p-card.r2,.p-card.r3{animation:none!important}
}

/* ---- open-rank invitation ---- */
.open-rank .claim-rank-btn{font-size:14px;padding:11px 22px;border-radius:12px}
.open-rank .claim-rank-btn:hover{transform:translateY(-1px)}
