/* ============================================================
   ShopRank — "NEON BAZAAR" visual system
   Type: Unbounded (display) · Sora (UI) · Space Mono (prices)
   Vibe: night-market auction hall — hot pink, electric lime,
   cyan sparks on deep violet ink. Hard offset shadows, ribbons,
   pill buttons, striped tickers. Function unchanged, feel new.
   ============================================================ */
:root {
  --bg: #0e0a1c;
  --bg-2: #150f2b;
  --card: #181030;
  --surface: #1d1338;
  --surface-2: #251847;
  --border: rgba(190, 165, 255, 0.16);
  --line: rgba(190, 165, 255, 0.14);
  --line-strong: rgba(190, 165, 255, 0.30);
  --text: #f6f2ff;
  --muted: #a89bd6;
  --faint: #6e62a3;
  --pink: #ff3d7f;
  --pink-deep: #d61e60;
  --pink-ink: #2b0512;
  --lime: #c8ff2e;
  --lime-deep: #9fd400;
  --lime-ink: #131c00;
  --cyan: #3ae7ff;
  --violet: #9d6bff;
  --orange: #ff9f45;
  --green: var(--lime);            /* legacy alias used by older rules */
  --gold: var(--lime);             /* legacy alias: money is lime now */
  --gold-soft: rgba(200, 255, 46, 0.14);
  --silver: #cfc6ff;
  --bronze: #ff9f45;
  --red: #ff4d6b;
  --blue: var(--cyan);
  --r-lg: 22px;
  --r-card: 16px;
  --r-md: 14px;
  --r-sm: 10px;
  --font-display: "Unbounded", "Sora", system-ui, sans-serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-lg: 10px 10px 0 rgba(157, 107, 255, 0.22), 0 30px 70px -20px rgba(0, 0, 0, 0.75);
  --shadow-pink: 5px 5px 0 rgba(255, 61, 127, 0.85);
  --shadow-lime: 5px 5px 0 rgba(200, 255, 46, 0.75);
  --shadow-cyan: 5px 5px 0 rgba(58, 231, 255, 0.55);
  --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: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink), var(--violet)); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg-2); }
:focus-visible { outline: 3px dashed var(--cyan); outline-offset: 3px; border-radius: 4px; }

.tnum { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }
.accent-line {
  color: var(--lime);
  text-shadow: 3px 3px 0 rgba(255, 61, 127, 0.55);
}
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }

/* ---------- Atmosphere: glow blobs + diagonal candy stripes ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% -6%, rgba(255, 61, 127, 0.16), transparent 65%),
    radial-gradient(720px 520px at 88% 12%, rgba(157, 107, 255, 0.18), transparent 65%),
    radial-gradient(560px 480px at 50% 108%, rgba(58, 231, 255, 0.10), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(190, 165, 255, 0.05) 0 2px, transparent 2px 26px);
}
main, section, header, footer, .ticker-wrap { position: relative; z-index: 1; }

/* ---------- Buttons: pills with hard offset shadows ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--text); background: var(--surface-2);
  border: 2px solid var(--line-strong); border-radius: 999px;
  padding: 11px 20px; cursor: pointer; text-decoration: none;
  transition: transform .14s var(--ease-out), box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 4px 0 rgba(190, 165, 255, 0.35); }
.btn:active { transform: translate(0, 0) scale(.97); box-shadow: none; }
.btn-primary {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
  box-shadow: 4px 4px 0 rgba(255, 61, 127, 0.9);
}
.btn-primary:hover { box-shadow: 6px 6px 0 rgba(255, 61, 127, 0.9); background: #d7ff57; }
.btn-gold {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  border-color: var(--pink); color: #fff;
  box-shadow: var(--shadow-lime);
}
.btn-gold:hover { box-shadow: 7px 7px 0 rgba(200, 255, 46, 0.8); background: linear-gradient(120deg, #ff5691, #e72e6e); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 77, 107, 0.12); color: var(--red); border-color: rgba(255, 77, 107, 0.5); }
.btn-block { width: 100%; border-radius: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.top-link {
  font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none; padding: 8px 13px; border-radius: 999px;
  border: 2px solid transparent;
  transition: color .15s, border-color .15s, transform .15s;
}
.top-link:hover { color: var(--cyan); border-color: rgba(58, 231, 255, 0.45); transform: translateY(-1px); }
.top-link.legal-back { border-color: var(--line-strong); }
.foot-link { color: var(--cyan); text-decoration: none; border-bottom: 2px dotted rgba(58, 231, 255, 0.5); }
.foot-link:hover { color: var(--lime); border-bottom-color: var(--lime); }

.theme-btn {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  background: var(--surface); border: 2px solid var(--line-strong);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.theme-btn:hover { transform: rotate(-12deg) scale(1.06); border-color: var(--lime); box-shadow: 3px 3px 0 rgba(200, 255, 46, 0.5); }
.theme-btn svg { width: 16px; height: 16px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--lime); padding: 6px 13px; border-radius: 999px;
  background: rgba(200, 255, 46, 0.08); border: 2px dashed rgba(200, 255, 46, 0.45);
}
.live-pill.offline { color: var(--faint); border-color: var(--line-strong); background: transparent; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); display: inline-block; flex: 0 0 auto;
  animation: pulse 1.6s infinite;
}
.live-pill.offline .dot { background: var(--faint); animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(200, 255, 46, 0); }
}

/* ---------- Header ---------- */
.head-wrap { position: relative; z-index: 60; }
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding: 8px clamp(14px, 3vw, 32px);
  background: rgba(14, 10, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
  transition: border-color .25s, background .25s;
}
.topbar.scrolled { background: rgba(14, 10, 28, 0.95); border-bottom-color: var(--pink); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-logo {
  width: 33px; height: 33px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 rgba(58, 231, 255, 0.75);
  transition: transform .2s var(--ease-out);
}
.brand:hover .brand-logo { transform: rotate(6deg) scale(1.08); }
.brand-logo svg { width: 21px; height: 21px; }
.brand-name { font-family: var(--font-display); font-size: 15px; letter-spacing: .5px; }
.brand-name b { color: var(--lime); font-weight: 800; }

/* ---------- Ticker marquee ---------- */
.ticker-wrap {
  overflow: hidden; white-space: nowrap;
  background: repeating-linear-gradient(-45deg, rgba(255,61,127,.16) 0 18px, rgba(157,107,255,.16) 18px 36px);
  border-bottom: 2px solid var(--line);
  padding: 4px 0;
}
.ticker {
  display: inline-flex; gap: 34px; padding-right: 34px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text);
  animation: tickmove 30s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes tickmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 8px; }
.tk-item b { color: var(--lime); }
.tk-item.hl { color: var(--pink); }

/* ---------- Stats chips row ---------- */
.stats-row { display: block; padding: 0 clamp(14px, 3vw, 32px); margin-top: 10px; }
.stats {
  display: flex; gap: 10px; align-items: stretch; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 6px;
  text-decoration: none;
}
.stats::-webkit-scrollbar { height: 6px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--card); border: 2px solid var(--border); border-radius: 999px;
  padding: 6px 12px; color: var(--muted); white-space: nowrap;
  font-size: 12.5px;
  transition: transform .15s var(--ease-out), border-color .15s;
}
.chip:hover { transform: translateY(-2px) rotate(-.5deg); border-color: var(--violet); }
.chip b { color: var(--text); font-size: 13px; font-weight: 800; }
.chip small { font-size: 9.5px; letter-spacing: .4px; text-transform: uppercase; font-family: var(--font-mono); }
.chip-ico { display: inline-grid; place-items: center; color: var(--cyan); }
.chip-ico svg { width: 13px; height: 13px; }
.chip.gold { border-color: rgba(200, 255, 46, 0.5); background: rgba(200, 255, 46, 0.07); }
.chip.gold b { color: var(--lime); }
.live-chip { border-color: rgba(200, 255, 46, 0.45); }

/* ---------- Hero: asymmetric split ---------- */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 32px) 16px;
  display: grid; grid-template-columns: 1.15fr .95fr; gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; position: sticky; top: 84px; }
.hero-right .claimbox { transform: rotate(.5deg); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2.4px;
  color: var(--pink); background: rgba(255, 61, 127, 0.09);
  border: 2px solid rgba(255, 61, 127, 0.4); border-radius: 999px;
  padding: 6px 13px; transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 rgba(255, 61, 127, 0.35);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(23px, 4vw, 42px);
  line-height: 1.04; letter-spacing: -.5px;
  margin-top: 13px; text-transform: uppercase;
}
.hero-sub {
  margin-top: 11px; max-width: 54ch;
  color: var(--muted); font-size: 13px; line-height: 1.65;
}
.hero-sub b { color: var(--lime); }
.hero-stats-link {
  display: flex; width: fit-content; gap: 8px; align-items: center; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .7px;
  color: var(--faint); text-decoration: none;
  border-bottom: 2px dashed var(--line-strong); padding-bottom: 4px;
}
.hero-stats-link:hover { color: var(--cyan); border-color: var(--cyan); }
.hsl-num { color: var(--cyan); font-weight: 700; }
.hsl-sep { opacity: .5; }

/* ---------- Claimbox: the bidding terminal ---------- */
.claimbox {
  background: var(--card);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 15px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.claimbox::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 2px dashed rgba(190, 165, 255, 0.14); border-radius: calc(var(--r-lg) - 8px);
}
.bidbox { display: flex; gap: 10px; justify-content: center; position: relative; }
.bb-btn {
  width: 44px; height: 54px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center;
  color: var(--text); background: var(--surface-2);
  border: 2px solid var(--line-strong);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.bb-btn svg { width: 17px; height: 17px; }
.bb-btn:hover { border-color: var(--cyan); box-shadow: 3px 3px 0 rgba(58, 231, 255, 0.5); transform: translate(-1px, -1px); }
.bb-btn:active { transform: scale(.94); box-shadow: none; }
.bb-amt {
  min-width: 128px; display: grid; place-items: center; gap: 0;
  border-radius: 14px; padding: 8px 18px; cursor: pointer;
  background: var(--lime); border: 2px solid var(--lime);
  box-shadow: 4px 4px 0 rgba(255, 61, 127, 0.85);
  user-select: none;
}
.bb-cap { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 2.2px; color: var(--lime-ink); opacity: .75; text-transform: uppercase; }
#bbValue { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--lime-ink); line-height: 1.05; }
.bb-edit {
  width: 110px; text-align: center; font-family: var(--font-display);
  font-size: 24px; font-weight: 800; color: var(--lime-ink);
  background: transparent; border: none; outline: none;
}
.bb-edit::-webkit-inner-spin-button, .bb-edit::-webkit-outer-spin-button { appearance: none; margin: 0; }
.bb-read {
  margin-top: 9px; min-height: 34px; text-align: center;
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  position: relative;
}
.bb-read b { color: var(--text); }
.bb-read.dim { opacity: .8; }
.cb-input {
  width: 100%; margin-top: 9px; position: relative;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--text); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: 14px;
  padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cb-input:focus { border-color: var(--cyan); box-shadow: 4px 4px 0 rgba(58, 231, 255, 0.35); }
.cb-input.ok { border-color: rgba(200, 255, 46, 0.7); }
.cb-input.bad { border-color: rgba(255, 77, 107, 0.7); }
.cb-input::placeholder { color: var(--faint); }
.cb-desc-in { margin-top: 10px; font-family: var(--font-body); font-size: 13px; }
.cb-hint { min-height: 18px; margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--faint); }
.cb-hint.error { color: var(--red); font-weight: 600; }
.cat-pick { margin-top: 12px; position: relative; }
.cat-pick-label {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.pick-row {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px 1px 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.pick-row::-webkit-scrollbar { display: none; }
.cat-chips { display: flex; gap: 7px; }
.kind-chip { border-style: dashed; }
.cat-chip { flex: 0 0 auto; white-space: nowrap;
  border: 2px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: .14s; 
}
.cat-chip:hover { color: var(--text); border-color: var(--pink); transform: translateY(-1px); }
.cat-chip.on { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 3px 3px 0 rgba(200, 255, 46, 0.7); }
.cb-preview {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px dashed var(--line-strong);
  border-radius: 12px; padding: 10px 13px;
}
.cb-preview img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.cp-wait { color: var(--faint); font-size: 12.5px; font-family: var(--font-mono); }
.cpn { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpc {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--cyan); border: 2px solid rgba(58, 231, 255, 0.4);
  padding: 3px 9px; border-radius: 999px; flex: 0 0 auto;
}
.bb-claim { margin-top: 10px; width: 100%; font-size: 14.5px; padding: 12px 20px; font-family: var(--font-display); letter-spacing: .5px; }

/* ---------- Rules strip: one slim line, scrolls sideways, fades at edges ---------- */
.rules-strip {
  display: flex; flex-wrap: nowrap; gap: 9px; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
  max-width: 1180px; margin: 4px auto 0;
  padding: 6px clamp(14px, 3vw, 32px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rules-strip::-webkit-scrollbar { display: none; }
.rule {
  flex: 0 0 auto;
  display: flex; gap: 8px; align-items: center;
  background: var(--card); border: 2px solid var(--border); border-radius: 999px;
  padding: 6px 13px; position: relative; counter-increment: rule-step;
  transition: border-color .16s;
}
.rule:hover { border-color: var(--lime); }
.rule::after {
  content: counter(rule-step);
  font-family: var(--font-display); font-size: 10px; font-weight: 800;
  color: var(--lime-ink); background: var(--lime);
  border-radius: 999px; padding: 1px 7px;
  margin-left: -2px;
}
.rule-ico { color: var(--pink); display: grid; place-items: center; }
.rule-ico svg { width: 13px; height: 13px; }
.rule-txt { display: flex; gap: 7px; align-items: baseline; white-space: nowrap; }
.rule-txt b { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .2px; }
.rule-txt small { color: var(--muted); font-size: 10px; }

/* ---------- Board tools ---------- */
.board-tools {
  max-width: 1180px; margin: 6px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.refresh-mini {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan);
  background: transparent; border: 2px dashed rgba(58, 231, 255, 0.45); border-radius: 999px;
  padding: 9px 17px; cursor: pointer;
  transition: .15s;
}
.refresh-mini:hover { background: rgba(58, 231, 255, 0.08); transform: rotate(-1deg); }
.refresh-mini.done { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 46, 0.18); }
.refresh-mini.spinning .ico { animation: spin360 .7s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.refresh-mini svg { width: 13px; height: 13px; }

/* ---------- Podium ---------- */
.podium {
  max-width: 1180px; margin: 12px auto 4px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 16px;
  align-items: center;
}
.podium.sparse { grid-template-columns: minmax(0, 380px); justify-content: center; }
.p-card {
  position: relative; cursor: pointer;
  background: var(--card); border: 2px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 13px 12px 10px;
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.p-card.enter { animation: cardIn .5s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.p-card.clickable:hover { transform: translateY(-5px); }
.p-card.r1 {
  border-color: var(--pink);
  box-shadow: 8px 8px 0 rgba(255, 61, 127, 0.35);
  z-index: 2; padding-top: 20px;
}
.p-card.r1.clickable:hover { transform: translateY(-7px) rotate(-.4deg); }
.p-card.r2 { transform: rotate(-1.1deg); box-shadow: 6px 6px 0 rgba(58, 231, 255, 0.28); }
.p-card.r2.clickable:hover { transform: rotate(-1.1deg) translateY(-5px); }
.p-card.r3 { transform: rotate(1.1deg); box-shadow: 6px 6px 0 rgba(157, 107, 255, 0.32); }
.p-card.r3.clickable:hover { transform: rotate(1.1deg) translateY(-5px); }
.rank-badge {
  position: absolute; top: -13px; left: -7px;
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  padding: 5px 11px; border-radius: 6px;
  transform: rotate(-4deg);
  border: 2px solid var(--bg-2);
}
.rank-badge svg { width: 13px; height: 13px; align-self: center; }
.rb-num { font-size: 15px; font-weight: 800; }
.rb-cap { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 1.8px; opacity: .8; }
.rb1 { background: var(--pink); color: #fff; box-shadow: 3px 3px 0 rgba(200, 255, 200, 0); }
.crown-badge {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-6deg);
  display: grid; place-items: center;
  width: 40px; height: 30px; color: var(--lime);
  filter: drop-shadow(0 3px 8px rgba(255, 61, 127, 0.55));
  animation: crownFloat 3.2s ease-in-out infinite;
  pointer-events: none;
}
.crown-badge svg { width: 34px; height: 34px; }
@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-4deg) translateY(-4px); }
}
.rb2 { background: var(--cyan); color: #04202b; box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.35); }
.rb3 { background: var(--violet); color: #fff; box-shadow: 3px 3px 0 rgba(255, 159, 69, 0.7); }
.p-head { display: flex; gap: 13px; align-items: center; }
.avatar {
  position: relative; display: grid; place-items: center; overflow: visible;
  border-radius: 14px; font-family: var(--font-display); font-weight: 800;
  color: #fff; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.avatar.sm { width: 27px; height: 27px; font-size: 10px; border-width: 1.5px; }
.avatar.xl { width: 37px; height: 37px; font-size: 12px; border-radius: 11px; }
.avatar.lg { width: 53px; height: 53px; font-size: 17px; border-radius: 15px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity .3s; }
.avatar img.on { opacity: 1; }
.p-name-wrap { min-width: 0; flex: 1; }
.pname { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pn-t { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .2px;
  display: block; flex: 0 1 auto; min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plink {
  display: inline-block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--cyan); text-decoration: none;
  border-bottom: 2px dotted rgba(58, 231, 255, 0.4);
}
.plink:hover { color: var(--lime); border-color: var(--lime); }
.kind-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.4px;
  padding: 3px 8px; border-radius: 6px; border: 1.5px solid;
}
.kind-tag svg { width: 8px; height: 8px; }
.kind-tag.k-shop, .kind-tag.k-business { color: var(--pink); border-color: rgba(255, 61, 127, 0.5); background: rgba(255, 61, 127, 0.09); }
.kind-tag.k-saas, .kind-tag.k-product { color: var(--cyan); border-color: rgba(58, 231, 255, 0.5); background: rgba(58, 231, 255, 0.08); }
.kind-tag.k-site, .kind-tag.k-channel { color: var(--violet); border-color: rgba(157, 107, 255, 0.55); background: rgba(157, 107, 255, 0.10); }
.kind-tag.k-social, .kind-tag.k-catalog { color: var(--orange); border-color: rgba(255, 159, 69, 0.55); background: rgba(255, 159, 69, 0.10); }
.cat-tag {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--lime); border: 1.5px dashed rgba(200, 255, 46, 0.5);
  padding: 2px 8px; border-radius: 999px;
}
.g-rank {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  color: var(--faint); border: 1.5px solid var(--line-strong);
  padding: 2px 7px; border-radius: 6px;
}
.p-desc { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.p-tagline { display: flex; gap: 7px; align-items: center; margin-top: 4px; }
.l-age { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 11.5px; font-family: var(--font-mono); }
.l-age svg { width: 10px; height: 10px; }
.bid-row {
  margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 2px dashed var(--line); padding-top: 9px;
}
.bid-cap { display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; }
.bid-big { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--lime); text-shadow: 2px 2px 0 rgba(255, 61, 127, 0.45); }
.fx { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.spark { color: var(--cyan); opacity: .9; }
.mom-chip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  color: var(--orange); background: rgba(255, 159, 69, 0.1);
  border: 1.5px solid rgba(255, 159, 69, 0.4); border-radius: 999px; padding: 3px 9px;
}
.clicks-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 2px solid var(--border); border-radius: 999px;
  padding: 4px 11px;
}
.clicks-pill svg { width: 10px; height: 10px; color: var(--pink); }
.clickcount { font-weight: 800; color: var(--text); font-size: 12px; }
.cp-label { font-size: 10px; letter-spacing: .4px; }
.gap-hint {
  margin-top: 11px; display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--faint); font-family: var(--font-mono);
}
.gap-hint b { color: var(--text); }
.gap-hint .bar { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1.5px solid var(--border); }
.gap-hint .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--lime)); }
.gap-hint.crown { color: var(--lime); }
.gap-hint.crown svg { width: 11px; height: 11px; }
.p-actions { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-open { color: var(--cyan); border-color: rgba(58, 231, 255, 0.45); background: rgba(58, 231, 255, 0.07); }
.btn-open:hover { box-shadow: 4px 4px 0 rgba(58, 231, 255, 0.4); }
.btn-take { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 3px 3px 0 rgba(200, 255, 46, 0.65); }
.btn-take:hover { box-shadow: 5px 5px 0 rgba(200, 255, 46, 0.65); }
.watch-btn {
  width: 34px; height: 34px; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center;
  color: var(--muted); background: var(--surface); border: 2px solid var(--border);
  transition: .15s;
}
.watch-btn svg { width: 13px; height: 13px; }
.watch-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.watch-btn.on { color: var(--lime); border-color: var(--lime); background: rgba(200, 255, 46, 0.1); }
.reign-pill {
  grid-column: 1 / -1;            /* own row across the podium, not a 4th card */
  justify-self: center; width: fit-content; max-width: 92%;
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: var(--muted);
  background: rgba(200, 255, 46, 0.07); border: 2px dashed rgba(200, 255, 46, 0.4);
  border-radius: 999px; padding: 6px 12px;
}
.reign-pill b { color: var(--text); }
.reign-pill svg { width: 13px; height: 13px; color: var(--lime); }
.rp-sep { opacity: .4; }

/* ---------- Duo panels (trending/activity) ---------- */
.duo {
  max-width: 1180px; margin: 26px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.panel {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--r-card); padding: 11px 12px;
}
.panel-h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.panel-h h3 {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.gold-i { color: var(--lime); } .gold-i svg { width: 15px; height: 15px; }
.green-i { color: var(--cyan); } .green-i svg { width: 15px; height: 15px; }
.mini-list { display: grid; gap: 2px; }
.mini {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  padding: 5px 6px; border-radius: 9px;
  transition: background .14s;
}
.mini:hover { background: var(--surface); }
.mini > .mi {
  width: 20px; height: 20px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 800;
  color: var(--violet); background: rgba(157, 107, 255, 0.12);
  border: 1.5px solid rgba(157, 107, 255, 0.35);
}
.mini > .mi svg { width: 10px; height: 10px; }
/* name column: shrinks, never wraps, ellipsizes instead of overflowing */
.mini > .mn {
  flex: 1 1 auto; min-width: 0;
  font-weight: 600; font-size: 11px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* right column: fixed to its content, one line, never pushed out */
.mini > .mm {
  flex: 0 0 auto; margin-left: auto;
  display: flex; align-items: baseline; justify-content: flex-end; gap: 5px;
  white-space: nowrap;
}
.mini > .mm b { font-size: 11px; color: var(--lime); font-family: var(--font-mono); }
.mini > .mm .sub { font-size: 8.5px; color: var(--faint); font-family: var(--font-mono); }
.mini > .mm svg { width: 10px; height: 10px; color: var(--orange); align-self: center; flex: 0 0 auto; }
.mini:last-child { border-bottom: none; }
.panel-more {
  margin-top: 6px; width: 100%; text-align: center;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--faint); padding: 8px;
  border-radius: 9px;
}
.panel-more:hover { color: var(--cyan); background: var(--surface); }

/* ---------- Board head ---------- */
.board-head {
  max-width: 1180px; margin: 14px auto 8px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.board-head h2 {
  font-family: var(--font-display); font-size: clamp(15px, 2.2vw, 19px);
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 12px;
}
.count-badge {
  font-size: 11.5px; font-weight: 800; color: var(--lime-ink);
  background: var(--lime); border-radius: 999px; padding: 1px 9px;
  box-shadow: 2px 2px 0 rgba(255, 61, 127, 0.8);
  transform: rotate(3deg); display: inline-block;
}
#search {
  font-family: var(--font-body); font-size: 13.5px; color: var(--text);
  background: var(--card); border: 2px solid var(--line-strong);
  border-radius: 999px; padding: 7px 14px; outline: none; min-width: min(270px, 74vw);
  transition: border-color .15s, box-shadow .15s;
}
#search:focus { border-color: var(--pink); box-shadow: 4px 4px 0 rgba(255, 61, 127, 0.35); }
#search::placeholder { color: var(--faint); }
.kind-chips {
  max-width: 1180px; margin: 0 auto 8px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip.on b { color: #fff; }
.chip.small { padding: 6px 12px; font-size: 11.5px; }
.chip svg { width: 12px; height: 12px; align-self: center; }

/* ---------- Board rows ---------- */
.board { max-width: 1180px; margin: 0 auto 30px; padding: 0 clamp(16px, 4vw, 40px); display: grid; gap: 9px; }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 5px solid var(--pink);
  border-radius: var(--r-md); padding: 8px 12px 8px 6px;
  box-shadow: -4px 4px 0 rgba(255, 61, 127, 0.14);
  transition: transform .16s var(--ease-out), border-color .16s, box-shadow .16s;
  animation: rowIn .45s var(--ease-out) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes orbBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
html[data-theme="light"] .row:nth-child(even) { background: #ede8fc; }
.row.clickable:hover {
  transform: translateX(6px);
  border-color: var(--pink);
  box-shadow: -6px 6px 0 rgba(255, 61, 127, 0.22);
}
.row.flash { animation: flashRow .9s; }
@keyframes flashRow { 0%, 60% { border-color: var(--lime); } }
.row.owned { border-color: rgba(200, 255, 46, 0.5); }
.rank-num {
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px var(--violet);
  letter-spacing: 1px;
}
.rank-num.bronze, .rank-num.gold { -webkit-text-stroke-color: var(--orange); }
.rank-num.silver { -webkit-text-stroke-color: var(--cyan); }
.rank-num.cat { -webkit-text-stroke-color: var(--pink); }
.rank-flag { font-size: 15px; }
.r-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.r-id { min-width: 0; }
.r-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.r-name > .rn-t { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.rn-t { font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-url { display: inline-block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; color: var(--cyan); text-decoration: none; }
.r-url:hover { color: var(--lime); }
.r-desc { margin-top: 4px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.r-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.r-bid { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--lime); }
.btn-outbid {
  background: var(--lime); color: var(--lime-ink); border-color: var(--lime);
  box-shadow: 3px 3px 0 rgba(255, 61, 127, 0.8); font-size: 11px; padding: 6px 10px;
}
.btn-outbid:hover { box-shadow: 5px 5px 0 rgba(255, 61, 127, 0.8); }
.crumbs { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 6px 0 2px; }
.crumb {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  color: var(--muted); background: var(--surface);
  border: 2px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer;
  transition: .14s;
}
.crumb:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.crumb.on { background: var(--cyan); color: #04202b; border-color: var(--cyan); }
.empty {
  grid-column: 1 / -1; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: var(--r-card);
  padding: 44px 20px; color: var(--muted);
}
.empty .orb {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  animation: orbBob 3.4s ease-in-out infinite;
  display: grid; place-items: center;
  color: var(--pink); background: rgba(255, 61, 127, 0.08);
  border: 2px solid rgba(255, 61, 127, 0.35);
  transform: rotate(-6deg);
}
.empty .orb svg { width: 26px; height: 26px; }

/* ---------- Claim popover ---------- */
.claim-pop {
  position: absolute; z-index: 80; width: 264px;
  background: var(--card); border: 2px solid var(--pink); border-radius: var(--r-md);
  padding: 12px; box-shadow: 5px 5px 0 rgba(255, 61, 127, 0.3);
  animation: popIn .18s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.claim-pop::before {
  content: ""; position: absolute; top: -9px; left: 34px;
  width: 14px; height: 14px; background: var(--card);
  border-left: 2px solid var(--pink); border-top: 2px solid var(--pink);
  transform: rotate(45deg);
}
.cp-title {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--pink);
}
.cp-title svg { width: 13px; height: 13px; flex: 0 0 auto; }
.cp-math { margin: 11px 0 13px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.cp-math b { color: var(--lime); }
.cp-note { margin-top: 11px; font-size: 10.5px; line-height: 1.6; color: var(--faint); }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 5, 18, 0.8); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
}
.modal {
  width: min(430px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--card); border: 2px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: popIn .22s var(--ease-out);
}
.modal h3 { font-family: var(--font-display); font-size: 21px; margin: 8px 0 4px; }
.modal .sub { color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--muted); border: 2px solid var(--border);
}
.modal-close:hover { color: var(--red); border-color: var(--red); transform: rotate(90deg); }
.modal-close svg { width: 12px; height: 12px; }
.m-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2.4px;
  color: var(--pink);
}
.move-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px; }
.chip-btn {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  color: var(--muted); background: var(--surface);
  border: 2px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: .13s;
}
.chip-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.chip-btn.hot { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); box-shadow: 2px 2px 0 rgba(255, 61, 127, 0.8); }
.rm-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 4px; }
.rm-stepper #rmAmt { font-family: var(--font-display); font-size: 25px; font-weight: 800; color: var(--lime); min-width: 110px; text-align: center; }
.rm-outcome { min-height: 40px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 6px 0 14px; }
.rm-outcome b { color: var(--text); }
.method-tabs { display: flex; gap: 8px; margin: 18px 0 14px; }
.method-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer;
  border: 2px solid var(--border); border-radius: 12px; padding: 10px 6px;
  transition: .14s;
}
.method-tab svg { width: 14px; height: 14px; }
.method-tab:hover { color: var(--text); }
.method-tab.active { color: var(--lime); border-color: var(--lime); background: rgba(200, 255, 46, 0.07); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px; color: var(--faint); }
.field input {
  font-family: var(--font-mono); font-size: 14px; color: var(--text);
  background: var(--surface); border: 2px solid var(--line-strong);
  border-radius: 11px; padding: 12px 14px; outline: none; width: 100%;
}
.field input:focus { border-color: var(--cyan); }
.field.err input { border-color: var(--red); }
.field .err { color: var(--red); font-size: 11.5px; min-height: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount-preview {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--surface); border: 2px dashed var(--line-strong);
  border-radius: 12px; padding: 13px 16px; margin: 6px 0 15px;
}
.amount-preview .lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: var(--faint); text-transform: uppercase; }
.amount-preview .val { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--lime); }
.sandbox-tag {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--orange);
  border: 2px dashed rgba(255, 159, 69, 0.5); border-radius: 10px;
  padding: 9px 13px; margin-bottom: 15px;
}
.sandbox-tag svg { width: 12px; height: 12px; }
.sandbox-tag b { color: var(--text); }
.cp-fine { margin-top: 13px; text-align: center; font-size: 10.5px; line-height: 1.7; color: var(--faint); }
.cp-fine code { font-family: var(--font-mono); color: var(--muted); }
.success-view { text-align: center; padding: 8px 0 2px; }
.success-view h3 { font-size: 23px; }
.success-view .sub { margin: 10px 0 18px; }
.tick-ring {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--lime); background: rgba(200, 255, 46, 0.09);
  border: 3px solid var(--lime);
  animation: ringPop .5s var(--ease-out);
  box-shadow: 0 0 0 8px rgba(200, 255, 46, 0.07), 4px 4px 0 rgba(255, 61, 127, 0.6);
}
@keyframes ringPop { from { transform: scale(.5); opacity: 0; } }
.tick-ring svg { width: 31px; height: 31px; }
.token-box {
  background: var(--surface); border: 2px dashed var(--line-strong);
  border-radius: 12px; padding: 13px 15px; margin-top: 12px;
}
.token-box .tk-lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.8px; color: var(--faint); text-transform: uppercase; }
.token-box code { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); word-break: break-all; }
.token-box p { margin-top: 7px; font-size: 11px; color: var(--muted); }
.hint-row { display: flex; gap: 9px; align-items: flex-start; margin-top: 11px; }
.hint-badge {
  display: inline-flex; gap: 7px; align-items: center;
  font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}
.hint-badge b { color: var(--text); }
.hint-badge.gold { border-color: rgba(200, 255, 46, 0.45); }
.hint-badge.gold b { color: var(--lime); }
.linklike { background: none; border: none; color: var(--cyan); cursor: pointer; font: inherit; text-decoration: underline dotted; padding: 0; }
.linklike:hover { color: var(--lime); }
.btn-add { width: 100%; margin-top: 6px; }

/* ---------- Toasts / misc fx ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 9px; justify-items: center; width: min(94vw, 480px); }
.toast {
  background: var(--surface-2); color: var(--text);
  border: 2px solid var(--violet); border-radius: 13px;
  padding: 12px 19px; font-size: 13px; font-weight: 600;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
  animation: toastIn .3s var(--ease-out);
  max-width: 100%;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.error { border-color: var(--red); color: #ffd7de; }
.spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3); border-top-color: currentColor;
  animation: spin360 .7s linear infinite; display: inline-block; vertical-align: -2px;
}
.confetti-canvas { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.foot {
  border-top: 2px solid var(--line); margin-top: 20px;
  background: repeating-linear-gradient(-45deg, rgba(157, 107, 255, 0.05) 0 16px, transparent 16px 32px);
  padding: 16px clamp(14px, 3vw, 32px) 22px;
  display: grid; gap: 12px; justify-items: center; text-align: center;
}
.foot p { color: var(--muted); font-size: 11px; line-height: 1.9; max-width: 900px; }
.foot-rules {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px;
  color: var(--faint); text-transform: uppercase;
  border: 2px dashed var(--line-strong); border-radius: 999px; padding: 5px 12px;
}

/* ---------- Legal / rules page ---------- */
.legal, .page-wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px) 60px; }
.legal-hero { text-align: center; padding-top: 22px; }
.legal-hero h1 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(26px, 4.6vw, 44px); line-height: 1.1;
}
.grad-text {
  color: var(--pink);
  text-shadow: 3px 3px 0 rgba(200, 255, 46, 0.5);
}
.legal-hero p { margin: 18px auto 0; max-width: 62ch; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; counter-reset: none; }
.rule-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--r-card);
  padding: 15px;
  transition: transform .18s var(--ease-out), border-color .18s;
}
.rule-card:hover { transform: translateY(-4px); border-color: var(--violet); }
.rule-card.wide { grid-column: 1 / -1; border-color: rgba(200, 255, 46, 0.35); }
.rule-card h2 {
  font-family: var(--font-display); font-size: 15px; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px;
}
.rule-card h2 .rci { width: 18px; height: 18px; color: var(--pink); flex: 0 0 auto; }
.rule-card p { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.rule-card p.rp { margin-top: 10px; }
.rule-card p b { color: var(--text); }
.legal-foot {
  margin-top: 18px; text-align: center; color: var(--faint);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 2;
  border-top: 2px dashed var(--line); padding-top: 12px;
}

/* ============================================================
   LIGHT THEME — "paper bazaar"
   ============================================================ */
html[data-theme="light"] {
  --bg: #f7f1e4;
  --bg-2: #efe7d6;
  --card: #fffdf7;
  --surface: #f4eddd;
  --surface-2: #ece3cf;
  --border: rgba(43, 26, 76, 0.18);
  --line: rgba(43, 26, 76, 0.14);
  --line-strong: rgba(43, 26, 76, 0.34);
  --text: #201637;
  --muted: #5d5378;
  --faint: #8b81a6;
  --pink: #e51e63;
  --pink-deep: #c11450;
  --pink-ink: #ffffff;
  --lime: #86b300;
  --lime-deep: #6f9400;
  --lime-ink: #ffffff;
  --cyan: #0092b3;
  --violet: #6c3bff;
  --orange: #d97706;
  --silver: #4d4370;
  --bronze: #d97706;
  --red: #d92c50;
  --shadow-lg: 10px 10px 0 rgba(108, 59, 255, 0.14), 0 30px 70px -26px rgba(32, 22, 55, 0.35);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .bg-grid {
  background:
    radial-gradient(600px 420px at 12% -6%, rgba(229, 30, 99, 0.10), transparent 65%),
    radial-gradient(720px 520px at 88% 12%, rgba(108, 59, 255, 0.12), transparent 65%),
    radial-gradient(560px 480px at 50% 108%, rgba(0, 146, 179, 0.08), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(43, 26, 76, 0.045) 0 2px, transparent 2px 26px);
}
html[data-theme="light"] .topbar, html[data-theme="light"] .head-wrap { background: transparent; }
html[data-theme="light"] .topbar { background: rgba(247, 241, 228, 0.85); }
html[data-theme="light"] .topbar.scrolled { background: rgba(247, 241, 228, 0.96); border-bottom-color: var(--pink); }
html[data-theme="light"] .brand-logo { border-color: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .btn:hover { box-shadow: 4px 4px 0 rgba(43, 26, 76, 0.22); }
html[data-theme="light"] .btn-primary { color: #fff; box-shadow: 4px 4px 0 rgba(229, 30, 99, 0.85); }
html[data-theme="light"] .btn-gold { color: #fff; box-shadow: 5px 5px 0 rgba(134, 179, 0, 0.8); }
html[data-theme="light"] .bid-big, html[data-theme="light"] .r-bid { color: var(--lime); text-shadow: none; }
html[data-theme="light"] .accent-line { text-shadow: none; }
html[data-theme="light"] .grad-text { text-shadow: none; }
html[data-theme="light"] .bb-amt { box-shadow: 4px 4px 0 rgba(229, 30, 99, 0.8); }
html[data-theme="light"] .rank-badge { border-color: #fffdf7; }
html[data-theme="light"] .avatar { border-color: rgba(32, 22, 55, 0.25); box-shadow: 3px 3px 0 rgba(32, 22, 55, 0.2); }
html[data-theme="light"] .p-card.r1 { box-shadow: 8px 8px 0 rgba(229, 30, 99, 0.25); }
html[data-theme="light"] .p-card.r2 { box-shadow: 6px 6px 0 rgba(0, 146, 179, 0.2); }
html[data-theme="light"] .p-card.r3 { box-shadow: 6px 6px 0 rgba(108, 59, 255, 0.22); }
html[data-theme="light"] .rb2 { color: #fff; }
html[data-theme="light"] .ticker-wrap {
  background: repeating-linear-gradient(-45deg, rgba(229, 30, 99, 0.12) 0 18px, rgba(108, 59, 255, 0.12) 18px 36px);
}
html[data-theme="light"] .foot {
  background: repeating-linear-gradient(-45deg, rgba(108, 59, 255, 0.05) 0 16px, transparent 16px 32px);
}

/* Desktop podium: classic arrangement — #1 center and lifted, #2 left,
   #3 right, each step a touch smaller. Mobile keeps source order. */
@media (min-width: 781px) {
  .podium { gap: 14px; align-items: end; }
  .p-card.r1 { order: 2; padding: 15px 12px 10px; transform: rotate(-1.2deg) translateY(-22px);
    box-shadow: -7px 8px 0 rgba(255, 61, 127, 0.35), 0 22px 44px -18px rgba(255, 61, 127, 0.45);
    border-color: var(--pink); }
  .p-card.r1:hover { transform: rotate(-1.2deg) translateY(-26px); }
  .p-card.r1::after {
    content: ''; position: absolute; inset: -3px; border-radius: inherit;
    border: 2px dashed rgba(200, 255, 46, 0.5); pointer-events: none;
  }
  .p-card.r2 { order: 1; padding: 11px 11px 9px; transform: rotate(1deg) translateY(-6px) scale(0.93); }
  .p-card.r3 { order: 3; padding: 10px 10px 8px; transform: rotate(-1deg) scale(0.86); }
  .avatar.xl { width: 32px; height: 32px; font-size: 11px; border-radius: 10px; }
  .pn-t { font-size: 12.5px; }
  .bid-big { font-size: 18px; }
  .rank-badge { padding: 4px 10px; top: -11px; }
  .rb-num { font-size: 13px; }
  .crown-badge svg { width: 30px; height: 30px; }
  .crown-badge { top: -22px; }
  .bid-row { margin-top: 8px; padding-top: 8px; }
  .p-actions { margin-top: 7px; }
}

/* Desktop: the reigning card gets size + light, not just a ribbon */
@media (min-width: 781px) {
  .p-card.r1 { transform: rotate(-1.1deg) translateY(-12px) scale(1.055); box-shadow: -7px 9px 0 rgba(255, 61, 127, 0.35), 0 22px 44px -18px rgba(255, 61, 127, 0.45); border-color: var(--pink); }
  .p-card.r1:hover { transform: rotate(-1.1deg) translateY(-16px) scale(1.062); }
  .p-card.r1::after {
    content: ''; position: absolute; inset: -3px; border-radius: inherit;
    border: 2px dashed rgba(200, 255, 46, 0.5); pointer-events: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-right { position: static; }
}
@media (max-width: 780px) {
  .podium { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .p-card.r2, .p-card.r3 { transform: none; }
}
@media (max-width: 860px) {
  .board-head { flex-direction: column; align-items: flex-start; }
  #search { width: 100%; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 38px minmax(0, 1fr); padding: 7px 9px 7px 4px; }
  .r-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .rank-num { font-size: 15px; -webkit-text-stroke-width: 1.5px; }
  .stats { gap: 6px; }
  .chip { padding: 5px 10px; }
  .topbar { gap: 7px; }
  .hero h1 { font-size: clamp(20px, 7vw, 27px); }
  .mini > .mn { font-size: 10px; }
  .mini > .mm b { font-size: 10px; }
  .mini > .mm .sub { display: none; }
  .panel { padding: 8px 9px; }
  .p-actions .btn-sm { padding: 5px 9px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .dot { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Section B: watch the board move ---------- */
.flowlab{max-width:640px;margin:44px auto 10px;padding:0 18px}
.flowlab-inner{display:grid;gap:14px;justify-items:center;text-align:center}
.flowlab-kicker{font-family:var(--font-mono);font-size:9.5px;font-weight:700;letter-spacing:2.6px;color:var(--lime);border:2px solid var(--line-strong);background:var(--card);padding:4px 12px;border-radius:999px;transform:rotate(-1.4deg)}
.flowlab-head h2{font-family:var(--font-display);font-weight:800;font-size:clamp(17px,3.4vw,22px);margin:2px 0 0;letter-spacing:.2px}
.flowlab-head p{margin:6px 0 0;font-size:13px;color:var(--muted)}
.flowlab-board{position:relative;width:100%;background:var(--card);border:2px solid var(--line-strong);border-radius:20px;padding:46px 14px 14px;box-shadow:var(--shadow-lg);overflow:hidden}
.flowlab-board::before{content:"";position:absolute;inset:0;background:
  radial-gradient(90px 50px at 18% 0%,rgba(255,61,127,.10),transparent 70%),
  radial-gradient(110px 60px at 85% 100%,rgba(58,231,255,.08),transparent 70%);pointer-events:none}
.flow-toast{position:absolute;top:9px;left:50%;transform:translateX(-50%) translateY(-8px);opacity:0;max-width:calc(100% - 22px);display:flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;border:2px solid var(--line-strong);background:var(--surface-2);font-size:11.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .4s var(--ease-out),transform .4s var(--ease-out);z-index:2}
.flow-toast::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--violet);box-shadow:0 0 8px currentColor}
.flow-toast.you::before{background:var(--pink)}
.flow-toast.you{border-color:rgba(255,61,127,.55)}
.flow-toast.crown::before{background:var(--lime)}
.flow-toast.crown{border-color:rgba(200,255,46,.55)}
.flow-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
.flow-rows{position:relative}
.flow-row{position:absolute;left:0;right:0;height:44px;display:flex;align-items:center;gap:10px;padding:0 12px;background:var(--surface);border:2px solid var(--line);border-radius:14px;transition:transform .7s cubic-bezier(.22,1.2,.36,1)}
.flow-row .fr-rank{font-family:var(--font-mono);font-size:11px;color:var(--faint);width:32px;flex:none}
.flow-row .fr-ava{flex:none;width:26px;height:26px;border-radius:9px;display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:12px;color:var(--pink-ink)}
.flow-row .fr-name{flex:1;min-width:0;display:flex;align-items:center;gap:7px;font-weight:700;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.flow-row .fr-youtag{flex:none;font-family:var(--font-mono);font-size:8.5px;font-weight:700;letter-spacing:1.4px;color:var(--pink);border:1.5px solid rgba(255,61,127,.5);padding:1.5px 6px;border-radius:999px}
.flow-row .fr-crown{display:none;flex:none;width:15px;height:15px;color:var(--lime);filter:drop-shadow(0 2px 5px rgba(200,255,46,.45))}
.flow-row .fr-crown svg{width:15px;height:15px;display:block}
.flow-row.top .fr-crown{display:block}
.flow-row.top{border-color:rgba(200,255,46,.4)}
.flow-row.top .fr-rank{color:var(--lime)}
.flow-row .fr-bid{flex:none;font-family:var(--font-mono);font-weight:700;font-size:13px;color:var(--lime)}
.flow-row .fr-bid.pop{animation:frPop .5s var(--ease-out)}
@keyframes frPop{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.flow-row.you{border-color:rgba(255,61,127,.45);background:linear-gradient(90deg,rgba(255,61,127,.13),var(--surface) 60%);box-shadow:-4px 4px 0 rgba(255,61,127,.14)}
.flow-row.you .fr-ava{color:#fff}
.flowlab-cta{font-family:var(--font-body);font-weight:800;font-size:13px;color:var(--pink-ink);background:var(--lime);border:2px solid transparent;padding:9px 20px;border-radius:999px;cursor:pointer;box-shadow:4px 4px 0 rgba(255,61,127,.75);transition:transform .15s var(--ease-out),box-shadow .15s var(--ease-out)}
.flowlab-cta:hover{transform:translateY(-2px);box-shadow:6px 7px 0 rgba(255,61,127,.75)}
@media (max-width:780px){.flowlab{margin-top:34px}.flowlab-board{padding:44px 11px 11px}.flow-row{gap:8px;padding:0 10px}.flow-row .fr-name{font-size:12.5px}}
@media (prefers-reduced-motion: reduce){.flow-row{transition:none}.flow-toast{transition:none}}

/* hero tagline chip */
.hero-tag{display:inline-flex;align-items:center;gap:7px;margin-top:14px;font-family:var(--font-mono);font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--cyan);border:2px solid rgba(58,231,255,.4);background:color-mix(in srgb,var(--cyan) 8%,var(--card));padding:7px 14px;border-radius:999px;transform:rotate(-.8deg);width:fit-content;box-shadow:3px 3px 0 rgba(58,231,255,.22)}
.hero-tag .ico{width:14px;height:14px;color:var(--lime)}
