/* ============================================================================
   baskt-live.css - the "Live on Baskt" section (stats, feed, leaderboard,
   rank, referrals, provably-fair verifier). Dark cards with a hairline
   iridescent top edge so the section sits in the same material language as
   the foil packs and the holo cards.
   ========================================================================== */
.baskt-live {
  --bl-up: #46d17f;
  --bl-down: #ff6b81;
  --bl-bd: rgba(255,255,255,.09);
  --bl-bg: rgba(255,255,255,.035);
  --bl-mut: rgba(255,255,255,.55);
  position: relative;
  padding: clamp(56px, 7vw, 108px) clamp(16px, 4vw, 48px);
  background: radial-gradient(120% 90% at 50% 0%, #0d0d13 0%, #07070b 58%, #040406 100%);
  color: #fff;
}
.bl-wrap { max-width: 1180px; margin: 0 auto; }

.bl-head { max-width: 680px; margin: 0 0 clamp(28px, 3.4vw, 44px); }
.bl-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--bl-mut); margin-bottom: 12px;
}
.bl-head h2 {
  font-family: var(--brand-font, sans-serif); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 14px; color: #fff;
}
.bl-head p { font-size: 15px; line-height: 1.6; color: #c3c3c8; margin: 0; max-width: 56ch; }

/* ---- stat tiles --------------------------------------------------------- */
.bl-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.bl-tile {
  position: relative; overflow: hidden;
  padding: 20px 22px 18px; border-radius: 16px;
  border: 1px solid var(--bl-bd); background: var(--bl-bg);
  display: flex; flex-direction: column; gap: 7px;
}
.bl-tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,160,220,.7), rgba(140,190,255,.7), transparent);
}
.bl-tile-l { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--bl-mut); }
.bl-tile-v {
  font-family: var(--brand-font, sans-serif); font-weight: 900;
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1; color: #fff;
}
.bl-tile-v i { font-style: normal; font-size: .46em; font-weight: 800; color: var(--bl-mut); margin-left: 4px; }
.bl-tile-s { font-size: 12.5px; color: var(--bl-mut); }

/* ---- card grid --------------------------------------------------------- */
.bl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 14px; }
.bl-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .bl-grid, .bl-grid-3 { grid-template-columns: 1fr; } }

.bl-card {
  position: relative; overflow: hidden;
  padding: 20px 22px 22px; border-radius: 18px;
  border: 1px solid var(--bl-bd); background: var(--bl-bg);
}
.bl-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.bl-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bl-card-h h3 {
  font-family: var(--brand-font, sans-serif); font-weight: 800; font-size: 17px;
  letter-spacing: -.01em; margin: 0; color: #fff; display: inline-flex; align-items: center; gap: 8px;
}
.bl-card-note { font-size: 11.5px; color: var(--bl-mut); }
.bl-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--bl-up);
  box-shadow: 0 0 9px rgba(70,209,127,.9); animation: bl-pulse 1.9s ease-in-out infinite;
}
@keyframes bl-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.bl-list { list-style: none; margin: 0; padding: 0; }
.bl-empty { font-size: 13.5px; color: var(--bl-mut); padding: 16px 0 6px; line-height: 1.6; }
.bl-foot { font-size: 11.5px; color: rgba(255,255,255,.42); margin: 14px 0 0; line-height: 1.5; }

/* ---- live feed --------------------------------------------------------- */
.bl-row {
  display: grid; grid-template-columns: 1fr 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.055);
  font-size: 13px;
}
.bl-row:first-child { border-top: 0; }
.bl-row-w { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-row-c { color: var(--bl-mut); font-weight: 700; letter-spacing: .02em; }
.bl-row-m {
  font-weight: 800; font-size: 11.5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: var(--bl-mut);
}
.bl-row.is-win .bl-row-m { background: rgba(70,209,127,.14); color: var(--bl-up); }
.bl-row-v { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.bl-row.is-win .bl-row-v { color: var(--bl-up); }
.bl-row-t { font-size: 11.5px; color: rgba(255,255,255,.38); text-align: right; min-width: 28px; }

/* ---- leaderboard ------------------------------------------------------- */
.bl-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); }
.bl-tab {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px; background: transparent; color: var(--bl-mut);
  transition: background .2s ease, color .2s ease;
}
.bl-tab.is-on { background: #ececf2; color: #0a0a0e; }
.bl-brow {
  display: grid; grid-template-columns: 22px 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.055); font-size: 13px;
}
.bl-brow:first-child { border-top: 0; }
.bl-rank { font-weight: 900; color: rgba(255,255,255,.4); font-size: 12px; }
.bl-bw { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bl-bo, .bl-bb { font-size: 11.5px; color: var(--bl-mut); }
.bl-bn { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--bl-up); }
.down { color: var(--bl-down); }

/* ---- your rank --------------------------------------------------------- */
.bl-lvl { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.bl-lvl-n {
  font-family: var(--brand-font, sans-serif); font-weight: 900; font-size: 13px; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 7px; color: #0a0a0e;
  background: linear-gradient(180deg, #fff, #d6d6e0);
}
.bl-bar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bl-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff9ad5, #b98cff 46%, #7fd8ff);
}
.bl-lvl-x { font-size: 11.5px; font-weight: 800; color: var(--bl-mut); }
.bl-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.bl-mini > div { display: flex; flex-direction: column; gap: 3px; }
.bl-mini span { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.bl-mini b { font-family: var(--brand-font, sans-serif); font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: #fff; }

/* ---- referrals --------------------------------------------------------- */
.bl-reflink { display: flex; gap: 8px; margin-bottom: 16px; }
.bl-reflink input, .bl-verify input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 12.5px;
  padding: 10px 12px; border-radius: 10px; color: #fff;
  border: 1px solid var(--bl-bd); background: rgba(0,0,0,.4);
}
.bl-copy {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 12.5px;
  padding: 10px 14px; border-radius: 10px; background: #ececf2; color: #0a0a0e;
  transition: transform .2s ease;
}
.bl-copy:hover { transform: translateY(-1px); }
.bl-link {
  appearance: none; border: 0; background: none; cursor: pointer; font: inherit;
  font-weight: 800; font-size: inherit; color: #fff; text-decoration: underline; padding: 0 2px;
}
.bl-invited {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: #fff; margin-bottom: 14px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(180,150,255,.28); background: rgba(150,120,255,.1);
}

/* ---- provably fair ----------------------------------------------------- */
.bl-fair-p { font-size: 12.5px; line-height: 1.65; color: #b9b9c2; margin: 0 0 14px; }
.bl-fair-p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.07); color: #e6e6ef;
}
.bl-verify { display: flex; gap: 8px; }
.bl-vout:not(:empty) { margin-top: 13px; font-size: 12.5px; }
.bl-vrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-top: 1px solid rgba(255,255,255,.055);
}
.bl-vrow:first-child { border-top: 0; }
.bl-vrow span { color: var(--bl-mut); }
.bl-vrow b { font-weight: 800; }
.bl-vhash {
  display: block; margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; line-height: 1.5; word-break: break-all; color: rgba(255,255,255,.42);
}

/* ---- the /app variant sits above the dashboard ------------------------- */
.baskt-live-app { padding-top: clamp(28px, 4vw, 48px); background: none; }
.baskt-live-app .bl-head { display: none; }
.baskt-live-app .bl-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .baskt-live-app .bl-grid { grid-template-columns: 1fr; } }
