/* ============================================================
   Screen-specific tweaks
   ============================================================ */

/* ---------- Stake wordmark sizing ---------- */
.stake-wordmark { user-select: none; }

/* ---------- Hero mode tiles (home page right-side) ---------- */
.hero-mode-tile {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 280px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface-700);
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  isolation: isolate;
}
.hero-mode-tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 40%, var(--mode-glow, transparent), transparent 60%);
  z-index: -1;
}
.hero-mode-tile.casino { --mode-glow: rgba(3, 230, 37, 0.28); }
.hero-mode-tile.sports { --mode-glow: rgba(232, 156, 65, 0.28); }
.hero-mode-tile:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-mode-icon { width: 48px; height: 48px; flex: none; }
.hero-mode-icon svg { width: 100%; height: 100%; }
.hero-mode-meta { display: flex; flex-direction: column; gap: 2px; }
.hero-mode-label { font-size: var(--text-lg); font-weight: 700; }
.hero-mode-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 600;
}
.hero-mode-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
  animation: pulse 1.6s var(--ease) infinite;
}
@media (max-width: 1023px) {
  .hero-mode-tile { width: auto; }
  .hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; }
}
.browse-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px var(--gutter) 4px;
}
.browse-modes .hero-mode-tile { width: auto; }

/* ---------- Page-head (sub-pages without the Register hero) ---------- */
.page-head {
  padding: 28px var(--gutter) 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.page-head h1 {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600;
  letter-spacing: -0.02em;
}
.page-head .sub { color: var(--text-muted); font-size: var(--text-sm); max-width: 60ch; }
@media (min-width: 1024px) {
  .page-head { padding: 36px var(--gutter-lg) 18px; }
  .page-head h1 { font-size: 32px; }
}

/* ---------- Meta chips (game detail playing/RTP/volatility) ---------- */
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--surface-700);
  border-radius: var(--r-pill);
  font-size: var(--text-xs); font-weight: 600;
  color: var(--text-muted);
}
.meta-chip.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
}
.meta-chip strong { color: var(--text-primary); }

/* ---------- Game stage (the giant play frame on game detail) ---------- */
.game-stage {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, #2C7BB6 0%, #1F5C8B 60%, #143C5E 100%);
  position: relative;
  margin: 0 var(--gutter);
  overflow: hidden;
}
.game-stage.has-iframe {
  background: #000;
}
.game-stage:not(.has-iframe)::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 14px, transparent 14px 28px);
}
.game-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
  z-index: 2;
}
.game-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  z-index: 1;
  background: linear-gradient(180deg, #2C7BB6 0%, #143C5E 100%);
  color: #fff;
  font-weight: 600;
}
.game-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.game-loading-text { font-size: var(--text-sm); opacity: 0.9; letter-spacing: 0.02em; }
@keyframes spin { to { transform: rotate(360deg); } }
.game-stage .stage-brand {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.95);
  font-weight: 700; font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 24px;
}
.game-stage .stage-brand .stake-wordmark { height: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.game-stage .stage-brand .only { font-size: var(--text-xs); letter-spacing: 0.12em; opacity: 0.85; text-transform: uppercase; }
.game-stage .stage-brand .stage-note { max-width: 36ch; font-size: var(--text-sm); font-weight: 500; opacity: 0.85; line-height: 1.4; }
@media (min-width: 1024px) {
  .game-stage { aspect-ratio: 16 / 9; min-height: 540px; max-height: 720px; }
}
.game-stage-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface-900);
  margin: 0 var(--gutter);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin-top: -2px;
}
.game-stage-bar .spacer { flex: 1; }
.game-stage-bar .btn-icon { width: 32px; height: 32px; }
.game-stage-bar .btn-icon svg { width: 16px; height: 16px; }
.game-stage-bar .hide-on-mobile { display: none; }
@media (min-width: 768px) { .game-stage-bar .hide-on-mobile { display: inline; } }

/* Play mode toggle (Real / Fun) — segmented control */
.play-mode {
  display: inline-flex;
  background: var(--surface-700);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.play-mode-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.play-mode-btn:hover { color: var(--text-primary); }
.play-mode-btn.active {
  background: var(--brand-green);
  color: #07140A;
}
.play-mode-btn.active[data-mode="real"] { background: var(--brand-blue); color: #fff; }
.play-mode-btn .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.play-mode-btn.active .dot { opacity: 1; background: currentColor; }
@media (max-width: 600px) {
  .play-mode-btn { padding: 6px 10px; }
}
@media (min-width: 1024px) {
  .game-stage, .game-stage-bar { margin-left: var(--gutter-lg); margin-right: var(--gutter-lg); }
}

/* ---------- VIP hero (real Stake illustration) ---------- */
.vip-hero {
  position: relative;
  padding: 32px var(--gutter) 28px;
  background:
    radial-gradient(circle at 80% 30%, rgba(232, 156, 65, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.03), transparent 50%),
    var(--surface-900);
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  align-items: stretch;
}
.vip-hero-art {
  position: relative;
  width: 100%; max-width: 320px;
  margin: 0 auto;
}
.vip-hero-art img {
  width: 100%; height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
.vip-hero-copy { flex: 1; min-width: 0; }
.vip-eyebrow {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 10px;
}
.vip-hero h1 {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.vip-hero .sub {
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 12px;
  font-size: var(--text-sm);
}
.vip-hero .cta-row {
  margin-top: 20px;
  display: flex; gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .vip-hero {
    flex-direction: row;
    align-items: center;
    padding: 48px var(--gutter) 40px;
  }
  .vip-hero-art { max-width: 360px; flex: none; }
}
@media (min-width: 1024px) {
  .vip-hero { padding: 64px var(--gutter-lg) 56px; gap: 32px; }
  .vip-hero-art { max-width: 420px; }
  .vip-hero h1 { font-size: 40px; }
}

/* ---------- Top Sports cards (Sports lobby) ---------- */
.top-sports {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
}
.top-sports::-webkit-scrollbar { display: none; }
.top-sport-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%),
    var(--surface-600);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  isolation: isolate;
}
.top-sport-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45));
  z-index: 0;
}
.top-sport-card:hover { filter: brightness(1.08); transform: translateY(-2px); }
.top-sport-art {
  position: absolute;
  right: -10%; top: -8%;
  width: 65%; aspect-ratio: 1 / 1;
  z-index: 0;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.top-sport-art svg { width: 100%; height: 100%; }
.top-sport-meta { position: relative; z-index: 1; }
.top-sport-name { font-size: var(--text-xl); font-weight: 700; letter-spacing: 0.01em; }
.top-sport-markets { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
@media (min-width: 1024px) {
  .top-sports { padding: 0 var(--gutter-lg); grid-auto-columns: 240px; }
}

/* ---------- Affiliate hero ---------- */
.affiliate-hero {
  position: relative;
  padding: 32px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background:
    radial-gradient(circle at 90% 30%, rgba(3, 230, 37, 0.10), transparent 60%),
    var(--surface-900);
  overflow: hidden;
}
.affiliate-copy { flex: 1; min-width: 0; }
.affiliate-copy h1 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.affiliate-copy .sub { color: var(--text-muted); max-width: 56ch; margin-top: 12px; }
.affiliate-copy .cta-row { margin-top: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.affiliate-art {
  width: 100%;
  display: flex; justify-content: center;
}
.affiliate-card {
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.affiliate-big-num {
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--brand-green);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.affiliate-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 80px; margin-top: 18px;
  padding: 0; border-bottom: 1px solid var(--hairline);
}
.affiliate-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-green), rgba(3, 230, 37, 0.4));
  border-radius: 2px 2px 0 0;
  min-width: 2px;
  transition: height 220ms var(--ease);
}

@media (min-width: 768px) {
  .affiliate-hero {
    flex-direction: row;
    align-items: center;
    padding: 48px var(--gutter) 36px;
    gap: 32px;
  }
}
@media (min-width: 1024px) {
  .affiliate-hero { padding: 64px var(--gutter-lg) 48px; }
  .affiliate-copy h1 { font-size: 36px; max-width: 18ch; }
  .affiliate-art { width: auto; flex: none; }
}

/* ---------- Feature card (VIP / affiliate) — overhauled to use real PNGs */
.feature-card .feature-art {
  width: 56px; height: 56px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.feature-card .feature-art img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.feature-card.step .step-num {
  width: 44px; height: 44px;
  background: var(--surface-700);
  color: var(--brand-blue);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-lg);
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- Feature grid (affiliate / VIP benefits) ---------- */
.feature-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter);
}
@media (min-width: 768px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); padding: 0 var(--gutter-lg); } }
.feature-card { background: var(--surface-600); border-radius: var(--r-md); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.feature-card .icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.feature-card .icon.green { background: var(--brand-green); color: #07140A; }
.feature-card .icon.blue  { background: var(--brand-blue);  color: #fff; }
.feature-card .icon svg { width: 18px; height: 18px; }
.feature-card h4 { color: var(--text-primary); margin-bottom: 4px; }
.feature-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* ---------- Stats row (affiliate hero stats) ---------- */
.stats-row .stat .n { font-size: var(--text-3xl); font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.stats-row .stat .lbl { color: var(--text-muted); font-size: var(--text-sm); }

/* Make the chip row not bleed under the rail on desktop */
@media (min-width: 1024px) {
  .chip-row { padding-bottom: 4px; }
}

/* Match grid scales up on wider screens */
@media (min-width: 768px) {
  .match-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .match-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tweaks for hero on mobile */
@media (max-width: 1023px) {
  .hero h1 { font-size: clamp(1.5rem, 7vw, 1.875rem); }
}

/* Game detail card: stack on narrow */
@media (max-width: 600px) {
  .content section .surface[style*="grid-template-columns: 140px"] {
    grid-template-columns: 1fr !important;
  }
  .content section .surface[style*="grid-template-columns: 140px"] > div:first-child {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* Wider, denser grid on desktop slot listing */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Smooth scroll across the app */
html { scroll-behavior: smooth; }

/* Loading shimmer (not currently used but available) */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-700), var(--surface-600), var(--surface-700));
  background-size: 800px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}

/* Print/utility */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
}

/* ============================================================
   Sports lobby — rich treatment
   ============================================================ */

/* Hero band */
.sports-hero {
  margin: 0 var(--gutter) 18px;
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 117, 225, 0.28), transparent 55%),
    radial-gradient(circle at 0% 95%, rgba(3, 230, 37, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-700), var(--surface-800));
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.sports-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.03) 0 1px, transparent 1px 60px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .6;
}
.sports-hero-copy { position: relative; z-index: 1; max-width: 64ch; }
.sports-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-green); font-weight: 800;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(3, 230, 37, 0.14);
  margin-bottom: 14px;
}
.sports-hero-eyebrow svg { width: 14px; height: 14px; color: var(--brand-green); }
.sports-hero h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.sports-hero .sub {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin: 0 0 18px;
  max-width: 52ch;
}
.sports-hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.sports-hero-stat {
  display: flex; flex-direction: column;
}
.sports-hero-stat .n {
  font-size: clamp(1.5rem, 3.4vw, 1.875rem);
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.sports-hero-stat .lbl {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
@media (min-width: 1024px) {
  .sports-hero { margin: 0 var(--gutter-lg) 22px; padding: 36px 36px 32px; }
}

/* ---------- Live rail ---------- */
.live-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter) 4px;
  scroll-snap-type: x mandatory;
}
.live-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .live-rail { padding: 0 var(--gutter-lg) 4px; grid-auto-columns: 320px; }
}
.live-chip {
  position: relative;
  background: linear-gradient(135deg, var(--surface-600), var(--surface-700));
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text-primary);
  scroll-snap-align: start;
  transition: filter var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.live-chip:hover { filter: brightness(1.08); border-color: var(--brand-red); }
.live-chip-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.live-chip-flag {
  width: 18px; height: 12px; border-radius: 2px; overflow: hidden;
  flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
}
.live-chip-flag svg { width: 18px; height: 12px; display: block; }
.live-chip-league {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-chip-pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}
.live-chip-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.live-chip-teams > span:first-child { text-align: left; }
.live-chip-teams > span:last-child  { text-align: right; }
.live-chip-score {
  background: var(--surface-900);
  padding: 4px 10px; border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
  color: var(--brand-green); font-weight: 800;
}
.live-chip-foot {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); font-weight: 600;
}

/* ---------- Competition badges rail ---------- */
.comp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter) 4px;
}
.comp-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .comp-rail { padding: 0 var(--gutter-lg) 4px; } }
.comp-badge {
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--text-primary);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.comp-badge:hover { background: var(--surface-500); border-color: var(--brand-blue); }
.comp-badge-flag {
  width: 28px; height: 18px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
}
.comp-badge-flag svg { width: 28px; height: 18px; display: block; }
.comp-badge-name {
  font-size: var(--text-sm); font-weight: 700; color: var(--text-primary);
}
.comp-badge-meta { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ---------- Match card · rich ---------- */
.match-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 var(--gutter);
}
@media (min-width: 768px)  { .match-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .match-card-grid { grid-template-columns: repeat(3, 1fr); padding: 0 var(--gutter-lg); } }

.match.match-rich {
  background: linear-gradient(180deg, var(--surface-600), var(--surface-700));
  border: 1px solid var(--hairline);
  padding: 16px;
  gap: 14px;
}
.match.match-rich:hover { filter: brightness(1.06); border-color: rgba(20,117,225,0.5); }
.match-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  min-width: 0;
}
.match-flag {
  width: 18px; height: 12px; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
  flex: none;
}
.match-flag svg { width: 18px; height: 12px; display: block; }
.match-league {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-primary); font-weight: 700;
}
.match-tag.boost {
  background: linear-gradient(135deg, var(--brand-green), color-mix(in srgb, var(--brand-green) 60%, #1A2C38));
  color: #07140A;
}
.match-tag.live {
  display: inline-flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: livePulse 1.6s ease-out infinite;
}

.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.match-team {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.match-team.away { flex-direction: row-reverse; text-align: right; }
.match-team-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink, #FFFFFF);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.25);
}
.match-team-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
}
.match-team-score {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--brand-green);
  font-variant-numeric: tabular-nums;
}
.match-vs {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}

.match-markets {
  display: flex; flex-direction: column; gap: 10px;
}
.match-market { display: flex; flex-direction: column; gap: 6px; }
.match-market-label {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
}
.match-market-row {
  display: grid; gap: 6px;
  grid-template-columns: 1fr 1fr 1fr;
}
.match-market-row.two { grid-template-columns: 1fr 1fr; }

.match-foot {
  display: flex; justify-content: space-between;
  padding-top: 4px;
  border-top: 1px dashed var(--hairline);
  font-size: 11px; color: var(--text-muted); font-weight: 600;
}
.match-stat, .match-tv {
  display: inline-flex; align-items: center; gap: 6px;
}
.match-stat svg, .match-tv svg {
  width: 14px; height: 14px;
  color: var(--text-muted);
}

/* ---------- Bet Builder grid ---------- */
.bb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 var(--gutter);
}
@media (min-width: 768px)  { .bb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .bb-grid { grid-template-columns: repeat(3, 1fr); padding: 0 var(--gutter-lg); } }

.bb-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 117, 225, 0.22), transparent 60%),
    var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: filter var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.bb-card:hover { filter: brightness(1.06); border-color: rgba(20, 117, 225, 0.55); }
.bb-eyebrow {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-blue);
}
.bb-title {
  margin: 4px 0 2px;
  font-size: var(--text-base); font-weight: 800;
  color: var(--text-primary);
}
.bb-sub { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.bb-legs {
  list-style: none; margin: 0; padding: 8px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--hairline);
}
.bb-legs li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-sm); color: var(--text-primary); font-weight: 600;
}
.bb-legs li::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(3, 230, 37, 0.16);
}
.bb-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
}
.bb-price { display: flex; flex-direction: column; }
.bb-price-label { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bb-price-amt {
  font-size: var(--text-xl); font-weight: 800;
  color: var(--brand-green); font-variant-numeric: tabular-nums;
}

/* ---------- My Bets panel ---------- */
.my-bets-panel {
  margin: 0 var(--gutter);
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 1024px) { .my-bets-panel { margin: 0 var(--gutter-lg); } }
.my-bets-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: var(--surface-700);
  border-bottom: 1px solid var(--hairline);
}
.my-bets-tab {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--text-sm); font-weight: 700;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.my-bets-tab:hover { color: var(--text-primary); }
.my-bets-tab.active {
  background: var(--surface-500);
  color: var(--text-primary);
}
.my-bets-empty {
  padding: 36px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.my-bets-empty img { height: 64px; opacity: .9; }
.my-bets-empty-title {
  font-size: var(--text-base); font-weight: 700; color: var(--text-primary);
  margin-top: 8px;
}
.my-bets-empty-sub {
  font-size: var(--text-sm); color: var(--text-muted);
  max-width: 36ch;
}
.my-bets-empty .btn { margin-top: 6px; }
