/* === Binance-style tokens === */
:root {
  --bg: #0b0e11;
  --bg-2: #181a20;
  --bg-3: #1e2329;
  --bg-4: #2b3139;
  --border: #2b3139;
  --border-2: #3a4049;
  --text: #eaecef;
  --text-2: #b7bdc6;
  --text-3: #848e9c;
  --text-4: #5e6673;
  --yellow: #f0b90b;
  --yellow-2: #fcd535;
  --yellow-soft: rgba(240, 185, 11, 0.10);
  --yellow-line: rgba(240, 185, 11, 0.30);
  --green: #0ecb81;
  --green-soft: rgba(14, 203, 129, 0.12);
  --red: #f6465d;
  --red-soft: rgba(246, 70, 93, 0.12);
  --gb-nav-h: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--text); overflow-x: hidden; max-width: 100vw; width: 100%; }
.b-app { max-width: 100vw; overflow-x: hidden; }
html {
  background: var(--bg);
}
body {
  background:
    linear-gradient(180deg, rgba(11,14,17,0) 0%, rgba(11,14,17,0.55) 30%, rgba(11,14,17,0.82) 100%),
    url('assets/grass.png') repeat;
  background-size: auto, 640px 640px;
  background-attachment: fixed, fixed;
}
body {
  font-family: "Fredoka", "PingFang SC", "Noto Sans SC", -apple-system, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  font-size: 14px;
}
/* Chibi display headings — Lilita One is chunky and round, perfect for Q-style titles */
h1, h2, h3, .b-intro-title, .b-pool-value, .b-bc-name, .b-bc-reserve-num, .b-stat .val,
.b-mt-name, .b-mt-sym, .pf-balance-value, .tv-pair-name,
.b-side-title, .b-cd .n {
  font-family: "Lilita One", "Manrope", "PingFang SC", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
/* Big numbers + ticker = Bungee marquee feel */
.b-cd .n, .b-cd-row .mono {
  font-family: "Bungee", "Lilita One", sans-serif;
}
.mono { font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace; }
.up   { color: var(--green); }
.down { color: var(--red); }
.dim  { color: var(--text-3); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input { font-family: inherit; }

/* === Nav === */
.b-nav {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.b-nav-inner {
  max-width: 1480px; margin: 0 auto;
  height: 56px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.b-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.b-brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  display: block; flex: none;
  box-shadow: 0 2px 10px rgba(240,185,11,0.25);
}
.b-brand-mark { color: var(--yellow); display: grid; place-items: center; }
.b-brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.b-brand-name span { color: var(--text-3); font-weight: 500; font-size: 12px; margin-left: 4px; }

.b-nav-tabs { display: flex; gap: 18px; flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; }
.b-nav-tabs a {
  color: var(--text-3); font-size: 13px; font-weight: 500;
  padding: 6px 0; cursor: pointer; transition: color .15s;
  white-space: nowrap; flex: none;
  user-select: none;
}
.b-nav-tabs a:hover, .b-nav-tabs a.active { color: var(--text); }
.b-nav-tabs a.active { color: var(--yellow); }
.b-nav-tabs .nav-ic { flex: none; }
.b-nav-tabs a { display: inline-flex; align-items: center; gap: 6px; }

.b-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.b-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  width: 280px;
}
.b-search svg { color: var(--text-3); flex: none; }
.b-search input {
  flex: 1; min-width: 0; background: transparent; border: none;
  color: var(--text); outline: none; font-size: 13px;
}
.b-search input::placeholder { color: var(--text-3); }
.b-key {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--text-3); padding: 2px 5px;
  background: var(--bg-3); border-radius: 3px;
}

/* Search dropdown */
.b-search-wrap { position: relative; }
.b-search-pop {
  position: absolute; top: 100%; right: 0; margin-top: 6px;
  width: 360px; max-width: calc(100vw - 24px);
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200; overflow: hidden;
}
.b-search-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; }
.b-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.b-search-item:hover { background: var(--bg-3); }
.b-search-item:last-child { border-bottom: none; }
.b-search-item-meta { flex: 1; min-width: 0; }
.b-search-item-name { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 13px; }
.b-search-item-sub { font-size: 11px; margin-top: 2px; }
.b-search-item-px { font-size: 12px; color: var(--yellow); }
.b-search-foot {
  padding: 8px 12px; font-size: 10px;
  background: var(--bg-3); border-top: 1px solid var(--border);
  display: flex; gap: 6px;
}
.b-wallet {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  background: var(--yellow); color: #181a20;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
  white-space: nowrap; flex: none;
}
.b-wallet:hover { background: var(--yellow-2); }

/* Language toggle */
.b-block {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; font-size: 11px;
  white-space: nowrap; flex: none;
}
.b-block-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
}
.b-block-dot.live { background: var(--green); box-shadow: 0 0 6px rgba(14,203,129,0.6); animation: pulse 2s infinite; }
.b-block-dot.warm { background: var(--yellow); animation: pulse 1.4s infinite; }
.b-block-dot.down { background: var(--red); }

.b-lang {
  display: inline-flex;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px; gap: 0;
}
.b-lang button {
  padding: 4px 10px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer;
  font-size: 12px; font-weight: 600; border-radius: 4px;
  transition: all .15s;
}
.b-lang button:hover { color: var(--text-2); }
.b-lang button.active { background: var(--yellow); color: #181a20; }

/* Music toggle */
.b-x-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: all .15s;
  text-decoration: none; flex: none;
}
.b-x-btn:hover { background: var(--text); color: #181a20; border-color: var(--text); }

.b-music {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  font-size: 11px; font-weight: 600;
}
.b-music:hover { color: var(--text); border-color: var(--border-2); }
.b-music.live {
  background: var(--yellow-soft); color: var(--yellow);
  border-color: var(--yellow-line);
}
.b-music-label { font-family: "JetBrains Mono", monospace; }
@media (max-width: 700px) {
  .b-music-label { display: none; }
}

/* Player name display */
.pn { display: inline-flex; align-items: baseline; gap: 6px; }
.pn-primary { color: inherit; font-weight: inherit; }
.pn-secondary { color: var(--text-3); font-size: 0.85em; font-weight: 400; }

/* === Ticker === */
.b-ticker {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 34px; overflow: hidden;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding-left: 12px;
}
.b-ticker .b-music { flex: none; }
.b-ticker-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  height: 100%; align-items: center;
  flex: 1; min-width: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.b-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.b-tk-sym { color: var(--text-2); font-weight: 600; }
.b-tk-px  { color: var(--text); }
.b-tk-ch  { font-weight: 500; }

/* === Container === */
.b-container {
  max-width: 1480px; margin: 0 auto;
  padding: 0 24px 24px;
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg);
}

/* === Hero banner === */
.b-banner {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 16px;
}
.b-banner-card.mvp {
  display: grid; grid-template-columns: 1fr auto 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}
.b-banner-card.mvp::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow) 50%, transparent);
}
.b-banner-card.mvp:hover { border-color: var(--yellow-line); }
.b-bc-eyebrow { font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: 0.04em; }
.b-bc-row { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.b-bc-jersey { width: 96px; height: 106px; display: grid; place-items: center; flex: none; }
.b-bc-info { flex: 1; min-width: 0; overflow: hidden; }
.b-bc-name { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-bc-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.b-bc-goals { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.b-bc-goals .big {
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 38px; color: var(--yellow); line-height: 1;
}
.b-bc-goals .lab { color: var(--text-3); font-size: 12px; }
.b-bc-goals .delta {
  margin-left: 6px; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
  background: var(--green-soft); color: var(--green);
}
.b-bc-divider { width: 1px; background: var(--border); margin: 0 8px; }
.b-bc-reserve { display: flex; flex-direction: column; }
.b-bc-reserve-num {
  font-size: 32px; font-weight: 700; color: var(--yellow);
  margin-top: 8px; letter-spacing: -0.02em;
}
.b-bc-reserve-num span { font-size: 14px; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.b-bc-reserve-sub { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.b-bc-cta {
  margin-top: auto; align-self: flex-start;
  background: var(--yellow); color: #181a20;
  border: none; border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.b-bc-cta:hover { background: var(--yellow-2); }

.b-banner-side { display: flex; flex-direction: column; gap: 16px; }
.b-side-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
}
.b-side-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.b-side-title { font-size: 12px; color: var(--text-2); font-weight: 600; }
.b-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.b-cd-row { display: flex; gap: 8px; }
.b-cd {
  flex: 1; padding: 8px 4px; background: var(--bg);
  border-radius: 4px; text-align: center;
}
.b-cd .n { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.1; }
.b-cd .l { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.b-side-foot { font-size: 10px; color: var(--text-3); margin-top: 8px; }
.b-side-foot span { color: var(--yellow); }

.b-buyback-list { display: flex; flex-direction: column; gap: 8px; }
.b-buyback-row {
  display: grid; grid-template-columns: 1fr 90px 70px;
  gap: 8px; font-size: 11px; align-items: center;
}
.b-buyback-row span:nth-child(2) { text-align: right; }
.b-buyback-row span:nth-child(3) { text-align: right; color: var(--text-3); }

/* === Intro Hero === */
.b-intro {
  display: flex; flex-direction: column; gap: 18px;
}
.b-intro-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px 36px;
  position: relative; overflow: hidden;
}
.b-intro-row::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(240,185,11,0.07), transparent 60%),
    radial-gradient(700px 220px at 100% 100%, rgba(14,203,129,0.05), transparent 60%);
  pointer-events: none;
}
.b-intro-left { position: relative; z-index: 1; }
.b-intro-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--yellow-soft); color: var(--yellow);
  border: 1px solid var(--yellow-line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.b-intro-title {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  font-weight: 800; letter-spacing: -0.025em;
  margin-top: 18px;
}
.b-intro-title span {
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b-intro-sub {
  color: var(--text-2); font-size: 14px; line-height: 1.65;
  margin-top: 16px; max-width: 580px;
}
.b-intro-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.b-intro-btn {
  height: 40px; padding: 0 18px;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .15s, background .15s;
}
.b-intro-btn.primary { background: var(--yellow); color: #181a20; }
.b-intro-btn.primary:hover { background: var(--yellow-2); }
.b-intro-btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.b-intro-btn.ghost:hover { background: var(--bg-3); }

.b-intro-flow { position: relative; z-index: 1; display: grid; place-items: center; }

/* Big flow inside hero */
.b-bigflow {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.b-bf-node {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px 18px;
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: 14px; min-width: 92px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.b-bf-node.yellow { border-color: var(--yellow); background: var(--yellow-soft); box-shadow: 0 4px 14px rgba(240,185,11,0.25); }
.b-bf-node.silver { border-color: rgba(197,205,214,0.55); background: rgba(197,205,214,0.08); }
.b-bf-node.player { border-color: var(--green); background: var(--green-soft); box-shadow: 0 4px 14px rgba(14,203,129,0.22); }
.b-bf-node.gold   { border-color: var(--yellow); background: rgba(240,185,11,0.18); box-shadow: 0 4px 14px rgba(240,185,11,0.3); }
.b-bf-node.bnb    { border-color: rgba(243,186,47,0.6); background: rgba(243,186,47,0.14); box-shadow: 0 4px 14px rgba(243,186,47,0.25); }
.b-bf-node.pancake { border-color: #1FC7D4; background: rgba(31,199,212,0.10); box-shadow: 0 4px 14px rgba(31,199,212,0.25); }
.b-bf-icon { font-size: 26px; line-height: 1; }
.gb-bf-jersey {
  width: 32px; height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #000;
  background: #2a2a2a;
  display: block;
  -webkit-user-drag: none;
}
.b-bf-name {
  font-size: 11px; font-weight: 700; color: var(--text);
  letter-spacing: 0.04em;
  font-family: "Lilita One", "Manrope", sans-serif;
}

/* Arrow — flowing dashed line + arrowhead */
.b-bf-arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; color: var(--yellow);
  flex: 1 1 60px; min-width: 60px; max-width: 130px;
  padding: 0;
}
.b-bf-arrow-line {
  width: 100%; display: flex; align-items: center;
}
.b-bf-arrow-svg { width: 100%; height: 22px; display: block; overflow: visible; }
.b-bf-dash { animation: bf-dash-flow 0.8s linear infinite; }
@keyframes bf-dash-flow {
  to { stroke-dashoffset: -24; }
}
.b-bf-arrow-label {
  font-size: 11px; color: var(--text-2); font-weight: 600;
  letter-spacing: 0.02em;
  font-family: "Lilita One", "Manrope", sans-serif;
}
.b-bf-arrow-sol { font-size: 9px; color: var(--text-3); opacity: 0.6; font-family: "JetBrains Mono", monospace; }
.b-bf-arrow.up   { color: var(--green); }
.b-bf-arrow.down { color: var(--red); }
.b-bf-arrow.up   .b-bf-arrow-label { color: var(--green); }
.b-bf-arrow.down .b-bf-arrow-label { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .b-bf-dash { animation: none; }
}

/* === Reserve pools row === */
.b-pool-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.b-pool-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px;
  position: relative; overflow: hidden;
}
.b-pool-card.mvp::after {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-2));
}
.b-pool-card.gold::after {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #ffe28a, #f0b90b);
}
.b-pool-icon {
  font-size: 32px; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-3); flex: none;
}
.b-pool-meta { flex: 1; min-width: 0; }
.b-pool-label { font-size: 11px; color: var(--text-3); font-weight: 600; letter-spacing: 0.02em; }
.b-pool-value {
  font-size: 28px; font-weight: 700; margin-top: 4px;
  color: var(--yellow); letter-spacing: -0.02em;
}
.b-pool-value span { font-size: 13px; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.b-pool-sub { font-size: 11px; color: var(--text-2); margin-top: 6px; }
.b-pool-leader {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--bg-3);
  border-radius: 8px; flex: none;
}

@media (max-width: 1100px) {
  .b-intro-row { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .b-pool-row { grid-template-columns: 1fr; }
  .b-bf-node { min-width: 84px; padding: 12px 14px; }
  .b-bf-arrow { min-width: 50px; }
}
@media (max-width: 600px) {
  .b-intro-row { padding: 18px; }
  .b-intro-title { font-size: 24px; }
  .b-intro-sub { font-size: 13px; }
  .b-bigflow { gap: 0; }
  .b-bf-node { min-width: 72px; padding: 10px 12px; gap: 6px; }
  .b-bf-icon { font-size: 20px; }
  .b-bf-name { font-size: 10px; }
  .b-bf-arrow { min-width: 36px; flex: 1 1 36px; }
  .b-bf-arrow-svg { height: 16px; }
  .b-bf-arrow-label { font-size: 10px; }
  .b-bf-arrow-sol { display: none; }
  .b-pool-card { padding: 14px; gap: 10px; }
  .b-pool-icon { width: 44px; height: 44px; font-size: 24px; }
  .b-pool-value { font-size: 22px; }
  .b-pool-leader { display: none; }
}

/* === Stat strip === */
.b-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.b-stat { background: var(--bg-2); padding: 14px 18px; }
.b-stat .lab { font-size: 11px; color: var(--text-3); font-weight: 500; }
.b-stat .val { font-size: 18px; font-weight: 700; margin-top: 6px; }
.b-stat .sub { font-size: 11px; margin-top: 4px; }

@media (max-width: 1100px) {
  .b-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .b-stats { grid-template-columns: repeat(2, 1fr); }
}

/* === Market table === */
.b-market {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  max-width: 100%;
}
.b-mt-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.b-market-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.b-tabs { display: flex; gap: 4px; }
.b-tabs button {
  padding: 6px 12px; border: none; background: transparent;
  color: var(--text-3); border-radius: 4px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.b-tabs button:hover { color: var(--text-2); }
.b-tabs button.active {
  background: var(--bg-3); color: var(--yellow);
}
.b-market-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
  width: 180px;
}
.b-market-search input {
  background: transparent; border: none; color: var(--text);
  outline: none; font-size: 12px; width: 100%;
}
.b-market-search svg { color: var(--text-3); }

.b-mt { width: 100%; border-collapse: collapse; }
.b-mt th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-3); font-weight: 500;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.b-mt td {
  padding: 14px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.b-mt tr:last-child td { border-bottom: none; }
.b-mt tbody tr { cursor: pointer; transition: background .12s; }
.b-mt tbody tr:hover { background: var(--bg-3); }
.b-empty { text-align: center; color: var(--text-3); padding: 40px !important; }

.b-mt-pair { display: flex; align-items: center; gap: 12px; }
.b-mt-pair-meta { line-height: 1.3; min-width: 0; }
.b-mt-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.b-mt-sym { color: var(--text); }
.b-mt-quote { color: var(--text-3); font-weight: 400; font-size: 12px; }
.b-mt-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.b-mt-tag {
  padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
}
.b-mt-tag.gold { background: var(--yellow-soft); color: var(--yellow); border: 1px solid var(--yellow-line); }
.b-mt-tag.pancake { background: rgba(0,193,255,0.10); color: #00c1ff; border: 1px solid rgba(0,193,255,0.30); }
.b-mt-tag.pending { background: rgba(132,142,156,0.16); color: var(--text-3); border: 1px solid var(--border-2); }
/* Dim entire row for pending (not-yet-deployed) players */
.b-mt-pending { opacity: 0.55; }
.b-mt-pending:hover { opacity: 0.85; }
.b-mt-pending td.mono { color: var(--text-3) !important; }

.b-goal-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--yellow-soft);
}
.b-goal-pill .mono { color: var(--yellow); font-weight: 700; font-size: 14px; }
.b-goal-pill .delta { font-size: 10px; color: var(--green); }

.b-mt-prog {
  display: flex; align-items: center; gap: 8px;
}
.b-mt-prog-bar {
  flex: 1; max-width: 120px;
  height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden;
}
.b-mt-prog-fill {
  height: 100%; background: linear-gradient(90deg, var(--yellow-2), var(--yellow));
  border-radius: 2px;
}

.b-mt-btn {
  padding: 5px 14px; border-radius: 4px;
  background: var(--bg-3); color: var(--yellow);
  border: 1px solid var(--border-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.b-mt-btn:hover { background: var(--yellow); color: #181a20; border-color: var(--yellow); }

/* === How it works === */
.b-how {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px;
}
.b-how-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.b-how-head .b-side-title { font-size: 13px; }
.b-how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.b-how-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.b-how-card:hover { border-color: var(--border-2); }
.b-how-n {
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 22px; color: var(--yellow);
  letter-spacing: -0.02em;
}
.b-how-title { font-size: 14px; font-weight: 700; }
.b-how-body { font-size: 12px; color: var(--text-3); line-height: 1.55; flex: 1; }
.b-how-pill {
  font-size: 10px; padding: 4px 8px; border-radius: 4px;
  background: var(--yellow-soft); color: var(--yellow);
  border: 1px solid var(--yellow-line);
  align-self: flex-start;
}

@media (max-width: 1100px) { .b-how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .b-how-grid { grid-template-columns: 1fr; } }

/* === Matches === */
.b-matches {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.b-matches-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px;
}
.b-matches-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.b-match-row {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.b-match-row:last-child { border-bottom: none; }

/* Pre-tournament empty state — left card when no matches have been played */
.b-match-empty {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 4px 8px;
}
.b-match-empty-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f6465d;
  box-shadow: 0 0 10px rgba(246,70,93,0.55);
  animation: tv-led-pulse 1.8s ease-in-out infinite;
  flex: none;
}
.b-match-empty-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.b-match-empty-sub { font-size: 11px; line-height: 1.45; }

/* Opening-match countdown — right card */
.b-match-kickoff {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 4px 4px;
}
.b-match-kickoff-label {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
}
.b-match-kickoff-time {
  font-size: 26px; font-weight: 700; color: var(--yellow);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.b-match-kickoff-sub { font-size: 11px; margin-top: 2px; }
.b-match-teams {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center; gap: 10px;
}
.b-match-flag { font-size: 20px; }
.b-match-team { font-weight: 600; font-size: 14px; }
.b-match-teams .b-match-team:nth-child(4) { text-align: right; }
.b-match-score {
  text-align: center; font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em;
}
.b-match-ko {
  text-align: center; font-size: 13px; color: var(--yellow); font-weight: 600;
}
.b-match-scorers {
  font-size: 11px; color: var(--text-3); margin-top: 6px;
  padding-left: 30px;
}

@media (max-width: 800px) { .b-matches { grid-template-columns: 1fr; } }

/* === Audit row === */
.b-audit {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px;
}
.b-audit-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 14px; font-weight: 700;
}
.b-audit-title-left { display: inline-flex; align-items: center; gap: 10px; }
.b-audit-shield-svg { flex: none; }
.b-audit-head a { color: var(--yellow); font-size: 12px; font-weight: 500; }
.b-audit-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.b-audit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: rgba(14,203,129,0.10); color: var(--green);
  border: 1px solid rgba(14,203,129,0.35);
}
.b-audit-badge svg { flex: none; }
.b-audit-badge.warn { background: var(--yellow-soft); color: var(--yellow); border-color: var(--yellow-line); }

/* Two-row flow (inner vs outer pool) */
.b-flow-wrap { display: flex; flex-direction: column; gap: 14px; }
.b-flow-row {
  display: grid; grid-template-columns: 130px 1fr;
  align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  position: relative;
}
.b-flow-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  text-align: center;
}
.b-flow-tag.inner { background: var(--yellow-soft); color: var(--yellow); border: 1px solid var(--yellow-line); }
.b-flow-tag.outer { background: rgba(31,199,212,0.10); color: #1FC7D4; border: 1px solid rgba(31,199,212,0.35); }
.b-flow-foot {
  grid-column: 2; font-size: 11px; color: var(--text-3);
  line-height: 1.5; padding-top: 4px;
}
/* (legacy duplicates removed — defined in the BigFlow section above) */
@media (max-width: 900px) {
  .b-flow-row { grid-template-columns: 1fr; gap: 8px; }
  .b-flow-tag { align-self: flex-start; }
  .b-flow-foot { grid-column: 1; }
}

/* === Portfolio === */
.pf-header { display: flex; justify-content: space-between; align-items: flex-end; }
.pf-title { font-size: 24px; font-weight: 700; }
.pf-sub { color: var(--text-3); font-size: 13px; margin-top: 6px; max-width: 720px; line-height: 1.5; }

.pf-flow {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px;
}
.pf-flow-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center;
}
.pf-flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 18px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; min-width: 96px;
}
.pf-flow-node.yellow { border-color: var(--yellow-line); background: var(--yellow-soft); }
.pf-flow-node.silver { border-color: rgba(197,205,214,0.30); background: rgba(197,205,214,0.06); }
.pf-flow-node.player { border-color: rgba(14,203,129,0.30); background: var(--green-soft); }
.pf-flow-node.gold   { border-color: var(--yellow-line); background: var(--yellow-soft); }
.pf-flow-node.bnb    { border-color: var(--yellow-line); background: var(--yellow-soft); }
.pf-flow-icon { font-size: 22px; }
.pf-flow-name { font-size: 12px; font-weight: 600; color: var(--text-2); }
.pf-flow-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 10px;
}

.pf-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px;
}
.pf-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.pf-card-head { font-size: 14px; font-weight: 700; }
.pf-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-stat {
  background: var(--bg); padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
}
.pf-stat .lab { font-size: 11px; color: var(--text-3); }
.pf-stat .val { font-size: 18px; font-weight: 700; margin-top: 4px; }
.pf-stat .unit { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 4px; }

.pf-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.pf-tabs button {
  flex: 1; padding: 8px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.pf-tabs button.active { color: var(--yellow); border-bottom-color: var(--yellow); }

.pf-warn {
  background: var(--yellow-soft); border: 1px solid var(--yellow-line);
  border-radius: 6px; padding: 8px 12px;
  font-size: 11px; color: var(--yellow);
}

.pf-balance {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
}
.pf-balance-coin {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #2a2f38;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.3);
}
.pf-balance-coin.silver { background: radial-gradient(circle at 30% 30%, #f4f6f8, #b8c0cc 60%, #6d7480); }
.pf-balance-coin.gold   { background: radial-gradient(circle at 30% 30%, #ffe28a, #f0b90b 60%, #8a6500); color: #2a1a00; }
.pf-balance-label { font-size: 11px; color: var(--text-3); }
.pf-balance-value { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; }

.pf-pending {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
}
.pf-pending-label { font-size: 11px; color: var(--text-3); }
.pf-pending-value { font-size: 14px; font-weight: 600; margin-top: 2px; }
.pf-btn-secondary {
  padding: 9px 16px; border-radius: 5px;
  background: var(--bg-3); color: var(--yellow);
  border: 1px solid var(--border-2); cursor: pointer;
  font-size: 13px; font-weight: 600;
  min-height: 38px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  -webkit-tap-highlight-color: rgba(240,185,11,0.18);
  touch-action: manipulation;
}
.pf-btn-secondary:hover:not(:disabled),
.pf-btn-secondary:active:not(:disabled) {
  background: var(--yellow); color: #181a20; border-color: var(--yellow);
}
.pf-btn-secondary:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: rgba(255,255,255,0.03);
  color: #6b7378;
  border-color: rgba(255,255,255,0.06);
  pointer-events: none;
}
@media (max-width: 768px) {
  .pf-btn-secondary { min-height: 44px; padding: 11px 18px; font-size: 14px; }
}
.pf-btn-link {
  background: transparent; border: none; color: var(--yellow);
  font-size: 12px; cursor: pointer; padding: 6px 0; text-align: left;
  margin-top: auto;
}
.pf-btn-link:hover { color: var(--yellow-2); }

.pf-note {
  background: var(--bg); padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 11px; color: var(--text-3); line-height: 1.5;
}

.pf-table-card { padding: 0; }
.pf-table-card .pf-card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th {
  text-align: left; padding: 10px 20px; font-size: 11px;
  color: var(--text-3); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.pf-table td {
  padding: 12px 20px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.pf-table tr:last-child td { border-bottom: none; }
.pf-table tbody tr:hover { background: var(--bg-3); }

@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: 1fr; }
}

/* === Mobile sweep === */
@media (max-width: 768px) {
  .b-nav-inner { padding: 0 12px; gap: 8px; height: 52px; }
  .b-nav-tabs { display: none; }
  .b-brand-name { font-size: 13px; }
  .b-brand-name span { display: none; }
  .b-brand-logo { width: 28px; height: 28px; }
  .b-search-wrap { display: none; }
  .b-block { display: none; }
  .b-music-label { display: none; }
  .b-wallet { font-size: 12px; padding: 0 10px; height: 30px; }
  .b-lang button { padding: 3px 6px; font-size: 11px; }
  .b-ticker { height: 28px; }
  .b-ticker-item { font-size: 11px; gap: 6px; }
  .b-bigflow { flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
  .b-bf-node { min-width: 56px; padding: 8px; }
  .b-bf-name { font-size: 10px; }
  .b-bf-arrow { padding: 0 2px; }
  .b-bf-arrow-line svg { width: 32px; }
  .b-bf-arrow-label { font-size: 9px; }
  .b-bf-arrow-sol { display: none; }
  .b-flow-row { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }
  .b-flow-tag { font-size: 11px; padding: 5px 8px; }
  .b-flow-foot { font-size: 10px; }
  .b-pool-card { padding: 14px; gap: 10px; }
  .b-pool-icon { width: 44px; height: 44px; font-size: 24px; }
  .b-pool-label { font-size: 12px; }
  .b-pool-value { font-size: 22px; }
  .b-pool-sub { font-size: 10px; }
  .b-intro-row { padding: 18px; gap: 14px; }
  .b-intro-title { font-size: 22px; line-height: 1.2; }
  .b-intro-sub { font-size: 12px; }
  .b-intro-cta { gap: 6px; flex-wrap: wrap; }
  .b-intro-btn { padding: 8px 14px; font-size: 12px; }
  .b-banner { gap: 10px; grid-template-columns: 1fr; }
  .b-banner-card.mvp { padding: 14px; grid-template-columns: 1fr; }
  .b-bc-divider { display: none; }
  .b-bc-jersey { width: 60px; height: 70px; }
  .b-bc-name { font-size: 16px; }
  .b-bc-reserve-num { font-size: 22px; }
  .b-bc-cta { padding: 6px 12px; font-size: 12px; }
  .b-stats { grid-template-columns: 1fr 1fr; }
  .b-stat { padding: 10px 12px; }
  .b-stat .lab { font-size: 10px; }
  .b-stat .val { font-size: 14px; }
  .b-tabs { flex-wrap: wrap; gap: 2px; }
  .b-tabs button { padding: 5px 9px; font-size: 11px; }
  .b-market-search { display: none; }
  .b-market-head { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .b-mt { font-size: 12px; }
  .b-mt th { padding: 8px 6px; font-size: 10px; }
  .b-mt td { padding: 10px 6px; }
  .b-mt th:nth-child(5), .b-mt td:nth-child(5),
  .b-mt th:nth-child(6), .b-mt td:nth-child(6),
  .b-mt th:nth-child(7), .b-mt td:nth-child(7),
  .b-mt th:nth-child(9), .b-mt td:nth-child(9) { display: none; }
  .b-mt-name { font-size: 12px; }
  .b-mt-sub { font-size: 11px; }
  .b-mt-btn { padding: 4px 8px; font-size: 11px; }
  .b-mt td.mono, .b-mt td.mono span { white-space: nowrap; }
  .b-mt td { vertical-align: middle; }
  .b-mt-pair-meta { min-width: 0; }
  .b-mt-name, .b-mt-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
  .b-how-grid { grid-template-columns: 1fr; }
  .b-matches { grid-template-columns: 1fr; }
  .b-audit { padding: 12px 14px; }
  .b-audit-badge { padding: 5px 10px; font-size: 11px; }
  .b-foot { padding: 20px 16px; }
  .b-foot-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pf-flow-row { gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
  .pf-flow-node { min-width: 60px; padding: 8px; }
  .pf-flow-name { font-size: 10px; }
  .pf-flow-arrow svg { width: 24px; }
  .pf-flow-arrow span { font-size: 9px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card { padding: 14px; gap: 12px; }
  .pf-balance-value { font-size: 20px; }
  .pf-table th, .pf-table td { padding: 8px 10px; font-size: 12px; }
  .pf-table th:nth-child(3), .pf-table td:nth-child(3),
  .pf-table th:nth-child(4), .pf-table td:nth-child(4) { display: none; }
  /* Trade view mobile */
  .tv-grid { grid-template-columns: 1fr; padding: 4px; gap: 6px; }
  .tv-bar { padding: 10px 12px; gap: 8px; grid-template-columns: 1fr; }
  .tv-stats { flex-wrap: wrap; gap: 12px; }
  .tv-stat .lab { font-size: 10px; }
  .tv-stat .val { font-size: 13px; }
  .tv-pair-name { font-size: 14px; }
  .candle-wrap { min-height: 220px; max-height: 260px; }
  .candle-chart { max-height: 260px; }
  .volume-chart { max-height: 40px; }
  .swap-panel, .curve-panel, .info-panel { padding: 12px; }
  .cp-grid { grid-template-columns: 1fr 1fr; }
}

/* === Footer === */
.b-foot {
  margin-top: 40px;
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 30px 24px 20px;
}
.b-foot-cols {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.b-foot-h { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.b-foot-cols a {
  display: block; color: var(--text-3); font-size: 12px;
  padding: 4px 0; transition: color .15s;
}
.b-foot-cols a:hover { color: var(--text); }
.b-foot-bottom {
  max-width: 1480px; margin: 24px auto 0;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3); text-align: center;
}

/* Responsive */
@media (max-width: 1700px) {
  .b-block { display: none; }
}
@media (max-width: 1400px) {
  .b-music-label { display: none; }
  .b-music { padding: 6px 8px; }
}
@media (max-width: 1280px) {
  .b-nav-tabs { gap: 14px; }
  .b-search-wrap { display: none; }
}
@media (max-width: 1100px) {
  .b-banner { grid-template-columns: 1fr; }
  .b-nav-tabs { display: none; }
  .b-search { width: 200px; }
  .b-foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .b-banner-card.mvp { grid-template-columns: 1fr; }
  .b-bc-divider { display: none; }
  .b-mt th:nth-child(5), .b-mt td:nth-child(5),
  .b-mt th:nth-child(6), .b-mt td:nth-child(6),
  .b-mt th:nth-child(9), .b-mt td:nth-child(9) { display: none; }
  .b-foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .b-search { display: none; }
}

/* Real ball + BNB icons */
.ball-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  flex: none;
  background: #000;
  object-fit: cover;
}
.ball-icon.ball-gold   { box-shadow: 0 0 8px rgba(240,185,11,0.35); }
.ball-icon.ball-silver { box-shadow: 0 0 6px rgba(160,170,180,0.25); }
.bnb-icon { display: inline-block; vertical-align: middle; flex: none; }

/* === Jerseys === */
/* Jerseys get a soft warm backdrop so light-bodied kits (ENG/GER/GHA/ARG white,
   POR burgundy near-black) don't disappear into the dark page background.
   The radial gradient is subtle but enough to silhouette the kit. */
.jersey {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
}
/* Wrap the SVG with a halo when used in the big MVP card */
.b-bc-jersey {
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.kit-badge { display: block; }

/* ====================================================================== */
/* === TRADE VIEW (same Binance theme, continues below)             ==== */
/* ====================================================================== */

.trade-view {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.trade-view .dim { color: var(--text-3); }
.trade-view .mono { font-family: "JetBrains Mono", monospace; }

.tv-bar {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.tv-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 4px;
  background: var(--bg-3); color: var(--text-2); cursor: pointer;
  border: 1px solid var(--border); font-size: 12px;
}
.tv-back:hover { background: var(--bg-4); color: var(--text); }
.tv-pair { display: flex; align-items: center; gap: 14px; }
.tv-pair-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-wrap: nowrap; }
.tv-pair-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.tv-mvp {
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
  background: var(--yellow-soft); color: var(--yellow);
  border: 1px solid var(--yellow-line);
  font-weight: 600; letter-spacing: 0.04em;
}

.tv-stats { display: flex; gap: 28px; }
.tv-stat .lab { color: var(--text-3); font-size: 11px; }
.tv-stat .val { font-size: 14px; font-weight: 600; margin-top: 2px; }
.tv-stat .sub { color: var(--text-3); font-size: 10px; margin-top: 2px; }

.tv-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 8px;
  padding: 8px;
  max-width: 100%;
  overflow-x: hidden;
}
.tv-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.tv-chart-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tv-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }

.tv-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.tv-tf { display: flex; gap: 2px; }
.tv-tf button {
  padding: 4px 10px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; font-size: 12px;
  border-radius: 4px; font-family: "JetBrains Mono", monospace;
}
.tv-tf button:hover { color: var(--text); }
.tv-tf button.active { background: var(--bg-3); color: var(--yellow); }
.tv-indicators { font-size: 11px; font-family: "JetBrains Mono", monospace; }
.tv-curve-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--yellow-soft); color: var(--yellow);
  border: 1px solid var(--yellow-line);
  font-size: 10px; font-weight: 600;
}
.tv-curve-badge.graduated { background: rgba(0,193,255,0.10); color: #00c1ff; border-color: rgba(0,193,255,0.30); }
.candle-wrap { width: 100%; height: 100%; min-height: 280px; flex: 1 1 auto; display: block; }
.candle-chart { width: 100%; height: 100%; display: block; }
.volume-chart { width: 100%; height: auto; display: block; border-top: 1px solid var(--border); max-height: 64px; flex: 0 0 auto; }
.chart-frame {
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
/* On PC, let the chart card stretch to match the right column's height so
   there's no dead space below the curve panel. */
@media (min-width: 769px) {
  .tv-chart-col > .tv-card:first-child {
    flex: 1 1 auto;
    min-height: 460px;
  }
}
/* Empty chart state — minimal, subtle, looks like a real DEX with no liquidity */
.tv-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  text-align: center;
  background: transparent;
}
.tv-chart-empty-dot {
  width: 8px; height: 8px;
  background: var(--text-3);
  border-radius: 50%;
  animation: tv-breathe 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(132,142,156,0.45);
}
@keyframes tv-breathe {
  0%, 100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(132,142,156,0.55); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(132,142,156,0); }
}
.tv-chart-empty-sub {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* Compact corner tag for the "no trades yet" state — sits over the flat baseline */
.tv-chart-empty-tag {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d8590;
  background: rgba(11, 14, 17, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.tv-chart-empty-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59,130,246,0.6);
  animation: tv-led-pulse 1.6s ease-in-out infinite;
}
@keyframes tv-led-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Silver asset chip */
.sp-silver { display: inline-flex; align-items: center; gap: 6px; }
.silver-coin {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4f6f8, #b8c0cc 60%, #6d7480);
  font-size: 10px; color: #2a2f38; font-weight: 800;
  box-shadow: inset 0 -2px 2px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.3);
}
.silver-coin::before { content: "S"; }

/* === DEX trade stream === */
.rt { padding: 0; display: flex; flex-direction: column; min-height: 0; }
.rt-head {
  padding: 10px 14px; font-size: 12px; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.rt-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 6px 14px; font-size: 11px; color: var(--text-3);
}
.rt-cols.dex { grid-template-columns: 1.1fr 0.9fr 0.9fr 0.7fr; }
.rt-cols span:nth-child(2), .rt-cols span:nth-child(3), .rt-cols.dex span:nth-child(4) { text-align: right; }
.rt-rows { overflow-y: auto; max-height: 540px; }
.rt-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 4px 14px; font-size: 11px; line-height: 1.7;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.rt-row.dex { grid-template-columns: 1.1fr 0.9fr 0.9fr 0.7fr; }
.rt-row span:nth-child(2), .rt-row span:nth-child(3), .rt-row.dex span:nth-child(4) { text-align: right; }
.rt-row.buy  span:first-child { color: var(--green); }
.rt-row.sell span:first-child { color: var(--red); }
.rt-row.buy::before, .rt-row.sell::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
}
.rt-row.buy::before  { background: var(--green); }
.rt-row.sell::before { background: var(--red); }
.rt-row.fresh { animation: flash 1.4s ease-out; }
@keyframes flash {
  0%   { background: rgba(240,185,11,0.18); }
  100% { background: transparent; }
}

/* === Swap panel === */
.swap-panel { padding: 14px 16px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sp-title { font-size: 14px; font-weight: 700; }
.sp-slippage { display: flex; gap: 4px; align-items: center; font-size: 11px; }
.sp-slippage button {
  padding: 3px 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-3); cursor: pointer;
  border-radius: 4px; font-size: 11px;
}
.sp-slippage button.active { background: var(--yellow); color: #181a20; border-color: var(--yellow); font-weight: 600; }

.sp-field {
  padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 4px;
}
.sp-field:focus-within { border-color: var(--yellow); }
.sp-field-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.sp-field-mid { display: flex; align-items: center; gap: 10px; }
.sp-field-mid input {
  flex: 1; min-width: 0;
  background: transparent; border: none; color: var(--text);
  outline: none; font-size: 20px; font-weight: 600;
}
.sp-field-mid input[readonly] { color: var(--text-2); }
.sp-asset {
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-3); font-size: 13px; font-weight: 600;
  white-space: nowrap;
  flex: none;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-token { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sp-token > span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 90px;
}
@media (max-width: 540px) {
  .sp-asset { max-width: 42%; font-size: 12px; padding: 4px 8px; }
  .sp-token > span:last-child { max-width: 70px; font-size: 12px; }
  .sp-field-mid input { font-size: 16px; }
}
.sp-bnb { display: inline-flex; align-items: center; gap: 4px; }
.sp-pcts { display: flex; gap: 6px; margin-top: 10px; }
.sp-pcts button {
  flex: 1; padding: 4px 0; border: 1px solid var(--border);
  background: transparent; color: var(--text-3); border-radius: 4px;
  font-size: 11px; cursor: pointer;
}
.sp-pcts button:hover { background: var(--bg-3); }
.sp-pcts button.active { background: var(--yellow); color: #181a20; border-color: var(--yellow); font-weight: 600; }

.sp-flip-row { display: flex; justify-content: center; margin: -8px 0 -8px; position: relative; z-index: 2; }
.sp-flip {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-2); border: 2px solid var(--bg);
  color: var(--yellow); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s;
}
.sp-flip:hover { transform: rotate(180deg); background: var(--bg-3); }

.sp-quote {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(240,185,11,0.04);
  border: 1px solid var(--border); border-radius: 6px;
}
.sp-quote-row {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-3);
  padding: 3px 0;
}
.sp-quote-row span:last-child { color: var(--text-2); }

.sp-submit {
  width: 100%; padding: 12px; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  margin-top: 12px;
}
.sp-submit.buy  { background: var(--green); color: #fff; }
.sp-submit.sell { background: var(--red); color: #fff; }
.sp-submit:disabled { background: var(--bg-3); color: var(--text-4); cursor: not-allowed; }
.sp-status {
  margin-top: 8px; padding: 8px 10px;
  background: var(--bg-3); border-radius: 6px;
  font-size: 11px; color: var(--text-2);
  text-align: center; word-break: break-all;
}
.rt-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.pf-dispatch {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 6px;
}
.pf-dispatch-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.sp-submit:not(:disabled):hover { filter: brightness(1.06); }

/* === Curve panel === */
.curve-panel { padding: 14px 16px; }
.cp-head { font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cp-stat { background: var(--bg); padding: 10px 12px; border-radius: 4px; border: 1px solid var(--border); }
.cp-stat .lab { font-size: 10px; letter-spacing: 0.04em; color: var(--text-3); }
.cp-stat .val { font-size: 15px; font-weight: 700; margin-top: 4px; }
.cp-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.cp-bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.cp-fill { height: 100%; background: linear-gradient(90deg, var(--yellow-2), var(--yellow)); border-radius: 999px; }

@media (max-width: 768px) { .cp-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Player info panel === */
.info-panel { padding: 14px 16px; }
.info-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; font-size: 12px; color: var(--text-3);
}
.info-row span:last-child { color: var(--text-2); }
.info-mvp-tag {
  margin-top: 10px; padding: 10px 12px; border-radius: 6px;
  background: var(--yellow-soft); color: var(--yellow);
  border: 1px solid var(--yellow-line);
  font-size: 11px; line-height: 1.5;
}

/* === Bottom market list inside trade view === */
.tv-market {
  margin: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
}
.tv-market-head { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tv-market-tabs { display: flex; gap: 4px; }
.tv-market-tabs button {
  padding: 5px 12px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; font-size: 12px; border-radius: 4px;
}
.tv-market-tabs button.active { background: var(--bg-3); color: var(--yellow); }
.tv-market-table { width: 100%; border-collapse: collapse; }
.tv-market-table th {
  text-align: left; padding: 10px 16px; font-size: 11px;
  color: var(--text-3); font-weight: 500; border-bottom: 1px solid var(--border);
}
.tv-market-table td { padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.tv-market-table tr { cursor: pointer; transition: background .12s; }
.tv-market-table tr:hover { background: var(--bg-3); }
.tv-market-table tr.active { background: rgba(240,185,11,0.04); }
.tv-pair-sm { display: flex; align-items: center; gap: 8px; }
.tv-trade-btn {
  padding: 4px 12px; border-radius: 4px;
  background: var(--yellow); color: #181a20; border: none;
  cursor: pointer; font-size: 12px; font-weight: 600;
}
.tv-trade-btn:hover { background: var(--yellow-2); }

@media (max-width: 1100px) {
  .tv-grid { grid-template-columns: 1fr; }
  .tv-bar { grid-template-columns: 1fr; gap: 12px; }
  .tv-stats { flex-wrap: wrap; gap: 18px; }
}

/* === Mascot avatar (replaces Jersey for players with mascot image) === */
.gb-mascot-badge {
  width: 36px; height: 36px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,200,30,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.gb-mascot-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
  -webkit-user-drag: none;
}
.gb-mascot-hero, .gb-jersey-hero {
  width: 96px; height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  -webkit-user-drag: none;
  animation: gb-mascot-bob 2.4s ease-in-out infinite;
}
/* Big country flag as fallback when no mascot or jersey image */
.gb-flag-hero {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  user-select: none;
  animation: gb-mascot-bob 2.4s ease-in-out infinite;
}
@keyframes gb-mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

/* === Wallet picker dropdown === */
.gb-wallet-wrap { position: relative; }
.gb-wallet-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  z-index: 200;
  min-width: 240px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 4px;
}
.gb-wallet-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.gb-wallet-opt:hover { background: var(--bg-3); border-color: var(--border-2); }
.gb-wallet-opt-ic {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}
.gb-wallet-opt-lbl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gb-wallet-opt-name { font-weight: 700; font-size: 13px; color: var(--text); }
.gb-wallet-opt-sub  { font-size: 11px; color: var(--text-3); }

/* === Text-only brand logo ($GOLDBALL in Bungee, ticker-style) === */
.gb-brand-textlogo {
  font-family: "Bungee", "Lilita One", sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #ffd84a;
  text-shadow:
    0 0 8px rgba(255,180,0,0.5),
    0 0 2px #000,
    0 2px 0 #5a3a00;
  cursor: pointer;
  user-select: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.gb-brand-dollar {
  color: #4cd964;
  text-shadow:
    0 0 8px rgba(76,217,100,0.55),
    0 0 2px #000,
    0 2px 0 #1a4a1a;
  margin-right: 1px;
}
@media (max-width: 720px) {
  .gb-brand-textlogo { font-size: 17px; }
}
@media (max-width: 480px) {
  .gb-brand-textlogo { font-size: 14px; }
}

/* === Trophy on countdown card === */
.gb-cd-card { position: relative; overflow: visible; }
.gb-cd-trophy {
  position: absolute;
  top: -22px; right: -8px;
  width: 78px; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  transform: rotate(8deg);
  animation: gb-trophy-bob 3.6s ease-in-out infinite;
}
@keyframes gb-trophy-bob {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-5px); }
}

/* === Stadium Hero — responsive image, flush with nav and ticker ===
   Image scales fluidly with container. On very wide desktops the image is
   capped by max-width so it doesn't dominate; on phones it shrinks naturally
   while preserving aspect ratio. */
.gb-stadium-hero {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  background: #0b0e11;
}
.gb-stadium-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}
/* Mobile/tablet: cap shorter so the hero doesn't push the content table off the
   first viewport. Phones see the hero + ticker + first row of the market table. */
@media (max-width: 1100px) {
  .gb-stadium-img { max-height: 54vh; }
}
@media (max-width: 720px) {
  .gb-stadium-img { max-height: 42vh; }
}
@media (max-width: 540px) {
  .gb-stadium-img { max-height: 36vh; }
  /* Tighten content on tiny phones */
  .b-mt th:nth-child(8), .b-mt td:nth-child(8) { display: none; }
  .b-mt-name, .b-mt-sub { max-width: 88px; }
  .b-container { padding: 0 8px 16px; }
  .b-ticker-item { font-size: 10px; gap: 5px; }
}

/* === Draggable bouncing football (fwc26 port) ===
   No drop-shadow on the ball itself — the ball.png already has its own
   highlight glow baked in, an outer shadow fights with it and makes the
   ball look out of round. The shadow lives on a separate "feet" element. */
#gb-ball {
  position: fixed;
  width: 86px; height: 86px;
  z-index: 9999;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform, left, top;
  overflow: visible;
  transition: transform .15s ease;
}
#gb-ball:hover { transform: scale(1.06); }
#gb-ball.is-dragging {
  cursor: grabbing;
  transform: scale(1.12) rotate(-8deg);
  transition: none;
}
.gb-ball-inner {
  width: 100%; height: 100%;
  pointer-events: none;
  animation: gb-ball-spin 8s linear infinite;
}
.gb-ball-inner img {
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
#gb-ball.is-dragging .gb-ball-inner { animation-play-state: paused; }
@keyframes gb-ball-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gb-ball-inner { animation: none; }
}
@media (max-width: 640px) {
  #gb-ball { width: 60px; height: 60px; }
}
