/* ── Base ─────────────────────────────────────────────────────────────────── */
:root {
  --bg-primary: #0a0e1a;
  --bg-card: #111827;
  --bg-card-2: #1a2235;
  --border-color: #2a3448;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --accent: #4f8ef7;
  --exact-color: #00e676;
  --close-color: #ffab40;
  --result-color: #29b6f6;
}

* { box-sizing: border-box; }

body.dark-theme {
  background: var(--bg-primary);
  color: #e0e6f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

/* Override Bootstrap text-muted to be readable on dark background */
body.dark-theme .text-muted,
body.dark-theme small.text-muted,
body.dark-theme .form-text {
  color: #c8d2e8 !important;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #0d1528 0%, #1a2035 100%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.admin-navbar {
  background: linear-gradient(135deg, #1a0d28 0%, #2a1535 100%);
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  padding: 2rem 0 1rem;
}

/* ── Podium ───────────────────────────────────────────────────────────────── */
.podium-section {
  padding: 1rem 0;
}

.podium-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 1rem;
  border-radius: 16px;
  transition: transform 0.2s;
}

.podium-item:hover { transform: translateY(-4px); }

.podium-item.rank-1 {
  background: linear-gradient(160deg, #2a2010 0%, #1a1508 100%);
  border: 1px solid rgba(255,215,0,0.3);
  padding-bottom: 1.5rem;
}

.podium-item.rank-2 {
  background: linear-gradient(160deg, #1a1f2e 0%, #111827 100%);
  border: 1px solid rgba(192,192,192,0.25);
}

.podium-item.rank-3 {
  background: linear-gradient(160deg, #1e1610 0%, #130e08 100%);
  border: 1px solid rgba(205,127,50,0.25);
}

.crown-icon {
  position: absolute;
  top: -20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.rank-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  margin-bottom: 0.5rem;
}

.rank-badge.gold { background: var(--gold); color: #000; }
.rank-badge.silver { background: var(--silver); color: #000; }
.rank-badge.bronze { background: var(--bronze); color: #fff; }

.avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.avatar-circle.gold-border  { border: 3px solid var(--gold); box-shadow: 0 0 20px rgba(255,215,0,0.4); }
.avatar-circle.silver-border { border: 3px solid var(--silver); }
.avatar-circle.bronze-border { border: 3px solid var(--bronze); }

.player-name { font-weight: 600; color: #e0e6f0; text-align: center; margin-top: 0.25rem; }
.player-name.large { font-size: 1.15rem; }
.player-score { font-weight: 800; color: var(--gold); font-size: 1.2rem; text-align: center; }
.player-score.large { font-size: 1.5rem; }

/* ── Leaderboard ──────────────────────────────────────────────────────────── */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 1fr;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card-2);
  color: #ffd700;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 1fr;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  transition: background 0.15s;
}

.leaderboard-row:hover { background: rgba(255,255,255,0.04); }
.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-row.top-1 { background: linear-gradient(90deg, rgba(255,215,0,0.12) 0%, transparent 60%); }
.leaderboard-row.top-2 { background: linear-gradient(90deg, rgba(192,192,192,0.08) 0%, transparent 60%); }
.leaderboard-row.top-3 { background: linear-gradient(90deg, rgba(205,127,50,0.08) 0%, transparent 60%); }

.rank-cell { display: flex; align-items: center; justify-content: center; }
.rank-num { font-weight: 700; color: #c8d2e8; font-size: 1rem; }

.player-cell {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 600;
}

.avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-cell { display: flex; align-items: center; justify-content: center; }

.pts-cell {
  font-weight: 800;
  color: var(--gold);
  font-size: 1.05rem;
  text-align: right;
}

/* ── Win type badges ──────────────────────────────────────────────────────── */
.badge-exact {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 20px;
  background: rgba(0,230,118,0.15);
  color: var(--exact-color);
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(0,230,118,0.3);
}

.badge-close {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 20px;
  background: rgba(255,171,64,0.15);
  color: var(--close-color);
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(255,171,64,0.3);
}

.badge-result {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 20px;
  background: rgba(41,182,246,0.15);
  color: var(--result-color);
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(41,182,246,0.3);
}

/* ── Match cards ──────────────────────────────────────────────────────────── */
.match-card-link:hover .match-card { border-color: var(--accent); transform: translateY(-3px); }

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.match-name { font-weight: 600; color: #e0e6f0; margin-bottom: 0.5rem; }

.match-score {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0.5rem 0;
}

.score-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.score-sep { color: #c8d2e8; font-size: 1.2rem; }

/* ── Prize cards ──────────────────────────────────────────────────────────── */
.prize-section { }

.prize-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  height: 100%;
  transition: transform 0.2s;
}

.prize-card:hover { transform: translateY(-3px); }

.prize-rank {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.prize-image {
  width: 100%; max-height: 140px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.prize-image-placeholder {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}

.prize-name { font-weight: 600; color: #e0e6f0; }

/* ── Round nav pills ──────────────────────────────────────────────────────── */
.nav-pills .nav-link {
  color: #c8d2e8;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-pills .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-pills .nav-link.active { background: var(--accent); color: #fff; }

/* ── Admin components ─────────────────────────────────────────────────────── */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-icon { margin-bottom: 0.75rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { color: #c8d2e8; font-size: 0.85rem; margin-top: 0.25rem; }

.table-dark { --bs-table-bg: transparent; }
.table-dark td, .table-dark th { border-color: var(--border-color); }

/* ── Login box ────────────────────────────────────────────────────────────── */
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 45px 1.5fr 1fr 1fr 1fr;
  }

  /* Hide exact/close columns on mobile, keep rank/player/pts */
  .leaderboard-header span:nth-child(3),
  .leaderboard-header span:nth-child(4),
  .leaderboard-row .stat-cell:nth-child(3),
  .leaderboard-row .stat-cell:nth-child(4) {
    display: none;
  }

  .podium-row { gap: 0.75rem; }
  .avatar-circle { width: 56px; height: 56px; }

  .leaderboard-header {
    grid-template-columns: 45px 2fr 1fr 1fr;
  }
  .leaderboard-row {
    grid-template-columns: 45px 2fr 1fr 1fr;
  }
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════════════════
   STADIUM LEADERBOARD
═══════════════════════════════════════════════════════════════════════════ */

.stadium-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  overflow: hidden;
}

/* Spotlight rays */
.spotlight-left, .spotlight-right {
  position: absolute;
  top: -60px;
  width: 500px; height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.spotlight-left {
  left: -200px;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,200,50,.18) 0%, transparent 65%);
}
.spotlight-right {
  right: -200px;
  background: radial-gradient(ellipse at 70% 0%, rgba(255,200,50,.18) 0%, transparent 65%);
}

/* ── Header ── */
.stadium-header { position: relative; z-index: 1; padding: 2rem 0 1rem; }

.header-laurels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.laurel-left, .laurel-right { font-size: 1.8rem; }

.stadium-title {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 40%, #ffb300 70%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: .02em;
  text-shadow: none;
}

.round-subtitle {
  font-size: .9rem;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: .12em;
  margin-top: .4rem;
}

/* Round tabs */
.round-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
.rtab {
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: #c8d2e8;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  transition: all .2s;
}
.rtab:hover  { color: #fff; border-color: rgba(255,215,0,.5); background: rgba(255,215,0,.08); }
.rtab.active { color: #000; background: #ffd700; border-color: #ffd700; }
.multiplier-badge { font-size: .7rem; background: rgba(255,215,0,.25); color: #ffd700; border-radius: 8px; padding: 1px 5px; }

/* ── Podium ── */
.podium-stage {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 2.5rem 1rem 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 140px;
}
.podium-col.invisible { visibility: hidden; }

/* height offsets */
.col-1 { margin-bottom: 2rem; }
.col-2 { margin-bottom: 1rem; }
.col-3 { margin-bottom: 0; }

.podium-crown-icon { font-size: 2rem; margin-bottom: -.2rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── Podium icon animations ── */
@keyframes ball-breathe {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}
@keyframes aura-gold {
  0%,100% {
    box-shadow:
      inset -10px -14px 28px rgba(0,0,0,.58),
      inset 5px 8px 20px rgba(255,248,160,.45),
      0 0 22px rgba(255,210,0,.85), 0 0 50px rgba(255,155,0,.45);
  }
  50% {
    box-shadow:
      inset -10px -14px 28px rgba(0,0,0,.58),
      inset 5px 8px 20px rgba(255,248,160,.45),
      0 0 35px rgba(255,220,0,1), 0 0 80px rgba(255,160,0,.75), 0 0 110px rgba(255,100,0,.3);
  }
}
@keyframes aura-silver {
  0%,100% {
    box-shadow:
      inset -10px -14px 28px rgba(0,0,0,.52),
      inset 5px 8px 20px rgba(220,235,255,.45),
      0 0 20px rgba(160,185,225,.8), 0 0 45px rgba(120,155,210,.4);
  }
  50% {
    box-shadow:
      inset -10px -14px 28px rgba(0,0,0,.52),
      inset 5px 8px 20px rgba(220,235,255,.45),
      0 0 32px rgba(190,210,255,.95), 0 0 70px rgba(150,185,240,.65), 0 0 100px rgba(100,140,210,.3);
  }
}
@keyframes trophy-pulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(255,215,0,.6)); transform: scale(1); }
  50%     { filter: drop-shadow(0 0 18px rgba(255,215,0,1)) drop-shadow(0 0 40px rgba(255,140,0,.7)); transform: scale(1.08); }
}
@keyframes ring-aura-gold {
  0%,100% { box-shadow: 0 0 0 3px #0a0a14, 0 0 0 6px #ffd700, 0 0 30px rgba(255,215,0,.45); }
  50%     { box-shadow: 0 0 0 3px #0a0a14, 0 0 0 7px #ffe566, 0 0 55px rgba(255,215,0,.85), 0 0 90px rgba(255,140,0,.35); }
}

/* ── 3D CSS Metallic Balls ── */
.ball-3d {
  border-radius: 50%;
  position: relative;
  width: 100%; height: 100%;   /* fill the avatar circle fully */
}

/* Gold ball – rank 2 */
.gold-ball-3d {
  background:
    /* bright specular flash top-left */
    radial-gradient(ellipse at 32% 26%, #fffde0 0%, #ffe566 14%, rgba(255,220,0,.35) 36%, transparent 55%),
    /* secondary warm highlight */
    radial-gradient(ellipse at 55% 40%, rgba(255,200,50,.25) 0%, transparent 50%),
    /* dark shadow bottom-right */
    radial-gradient(ellipse at 70% 74%, rgba(80,35,0,.65) 0%, transparent 42%),
    /* main metallic gold */
    radial-gradient(ellipse at 50% 50%,
      #ffe14d 0%, #ffc200 20%, #e89000 38%,
      #c06400 55%, #8a3e00 72%, #4a1e00 90%);
  animation: aura-gold 1.8s ease-in-out infinite, ball-breathe 2s ease-in-out infinite;
}
/* pentagon/hex seam lines */
.gold-ball-3d::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(60deg,  transparent, transparent 8px, rgba(80,35,0,.22) 8px, rgba(80,35,0,.22) 9px),
    repeating-linear-gradient(-60deg, transparent, transparent 8px, rgba(80,35,0,.22) 8px, rgba(80,35,0,.22) 9px),
    repeating-linear-gradient(0deg,   transparent, transparent 8px, rgba(80,35,0,.15) 8px, rgba(80,35,0,.15) 9px);
}
/* rim light top */
.gold-ball-3d::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 18%, rgba(255,255,200,.55) 0%, transparent 35%);
  pointer-events: none;
}

/* Silver / chrome ball – rank 3 */
.silver-ball-3d {
  background:
    radial-gradient(ellipse at 32% 26%, #ffffff 0%, #dde8ff 14%, rgba(200,220,255,.3) 36%, transparent 55%),
    radial-gradient(ellipse at 55% 40%, rgba(180,210,255,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 74%, rgba(20,25,40,.6) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 50%,
      #f4f8ff 0%, #d0daf0 18%, #98aac0 36%,
      #607888 54%, #3a4a58 72%, #182230 90%);
  animation: aura-silver 2s ease-in-out infinite, ball-breathe 2.4s ease-in-out infinite;
}
.silver-ball-3d::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(60deg,  transparent, transparent 8px, rgba(20,30,50,.18) 8px, rgba(20,30,50,.18) 9px),
    repeating-linear-gradient(-60deg, transparent, transparent 8px, rgba(20,30,50,.18) 8px, rgba(20,30,50,.18) 9px),
    repeating-linear-gradient(0deg,   transparent, transparent 8px, rgba(20,30,50,.12) 8px, rgba(20,30,50,.12) 9px);
}
.silver-ball-3d::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 18%, rgba(255,255,255,.65) 0%, transparent 35%);
  pointer-events: none;
}

/* Trophy emoji inside rank-1 circle */
.trophy-in-circle { font-size: 3.6rem; line-height: 1; display: block; animation: trophy-pulse 2s ease-in-out infinite; }
.col-1 .podium-avatar { animation: ring-aura-gold 2s ease-in-out infinite; }

/* Gold name for rank 1 above avatar */
.gold-name {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem; font-weight: 900;
  max-width: 140px;
}

/* Avatar rings */
.podium-avatar {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.col-1 .podium-avatar { width: 90px; height: 90px; }
.col-2 .podium-avatar, .col-3 .podium-avatar { width: 76px; height: 76px; }

.ring-gold {
  background: linear-gradient(135deg, #1a1505, #0d0d1a);
  border: 3px solid #ffd700;
  box-shadow: 0 0 0 3px #0a0a14, 0 0 0 6px #ffd700, 0 0 30px rgba(255,215,0,.45);
}
.ring-silver {
  background: linear-gradient(135deg, #121420, #0a0d1a);
  border: 3px solid #b0b8c8;
  box-shadow: 0 0 0 3px #0a0a14, 0 0 0 6px #9aa0b0, 0 0 20px rgba(180,190,210,.3);
}
.ring-bronze {
  background: linear-gradient(135deg, #160e06, #0a0a14);
  border: 3px solid #cd7f32;
  box-shadow: 0 0 0 3px #0a0a14, 0 0 0 6px #cd7f32, 0 0 20px rgba(205,127,50,.3);
}

/* Medal badges */
.podium-medal {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem;
}
.gold-medal   { background: linear-gradient(135deg, #ffe066, #ffa500); color: #000; }
.silver-medal { background: linear-gradient(135deg, #d8dce8, #9aa0b0); color: #000; }
.bronze-medal { background: linear-gradient(135deg, #e0a060, #9e5820); color: #fff; }

.podium-name {
  font-weight: 700; font-size: .9rem; color: #e0e6f0;
  text-align: center; max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-name.large { font-size: 1.05rem; max-width: 120px; }

.podium-pts { font-weight: 900; font-size: 1.1rem; }
.podium-pts.large { font-size: 1.4rem; }
.gold-pts   { color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,.5); }
.silver-pts { color: #c0c8d8; }
.bronze-pts { color: #cd7f32; }

/* ── Stadium table ── */
.stadium-table-wrap {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,215,0,.1);
}

.stadium-table {
  width: 100%;
  border-collapse: collapse;
}

.stadium-table thead tr {
  background: linear-gradient(90deg, #1a1200 0%, #2a1f00 50%, #1a1200 100%);
  border-bottom: 2px solid rgba(255,215,0,.4);
}
.stadium-table th {
  padding: .75rem 1rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #ffd700;
  text-align: center;
  white-space: nowrap;
}
.th-player { text-align: left; }

.stadium-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.stadium-table tbody tr:last-child { border-bottom: none; }
.stadium-table tbody tr:hover { background: rgba(255,255,255,.04); }

/* Row highlights */
.row-gold   { background: linear-gradient(90deg, rgba(255,215,0,.14) 0%, transparent 55%); }
.row-silver { background: linear-gradient(90deg, rgba(192,192,192,.09) 0%, transparent 55%); }
.row-bronze { background: linear-gradient(90deg, rgba(205,127,50,.09) 0%, transparent 55%); }
.row-last   { background: linear-gradient(90deg, rgba(120,60,160,.08) 0%, transparent 55%); }

.stadium-table td { padding: .75rem 1rem; text-align: center; }

/* Rank cell */
/* Player cell */
.td-player { text-align: left; }
.player-row { display: flex; align-items: center; gap: .65rem; }

.player-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dot-gold   { border-color: #ffd700; background: rgba(255,215,0,.12);
              box-shadow: 0 0 8px rgba(255,215,0,.4); }
.dot-silver { border-color: #b0b8c8; background: rgba(176,184,200,.12); }
.dot-bronze { border-color: #cd7f32; background: rgba(205,127,50,.12); }
.dot-last   { border-color: #6b7a99; background: rgba(107,122,153,.12); }

.dot-icon { font-size: 1.1rem; line-height: 1; }
.dot-num  { font-weight: 900; color: #c8d2e8; font-size: .95rem; }

.player-label { font-weight: 700; color: #e0e6f0; }

.prize-winner-icon {
  font-size: 1.15rem;
  animation: prize-pulse 1.8s ease-in-out infinite;
  cursor: default;
  flex-shrink: 0;
}
@keyframes prize-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Round pts */
.td-round-pts .round-pts-val {
  font-weight: 700;
  color: #4ade80;
  font-size: .95rem;
}

/* Total */
.td-total { font-weight: 900; color: #ffd700; font-size: 1rem; }

/* Latest match points column */
.th-match-pts, .td-match-pts { text-align: center; }
.match-pts-val { color: #4ade80; font-weight: 800; font-size: .9rem; }

/* Rank change column */
.change-up   { color: #4ade80; font-weight: 800; font-size: .9rem; }
.change-down { color: #f87171; font-weight: 800; font-size: .9rem; }
.change-none { color: #8899bb; font-size: .9rem; }

/* Footer */
.footer-text { color: #c8d2e8; font-size: .85rem; }

/* Responsive */
@media (max-width: 600px) {
  .col-1 .podium-avatar { width: 78px; height: 78px; }
  .col-2 .podium-avatar, .col-3 .podium-avatar { width: 62px; height: 62px; }
  .trophy-in-circle { font-size: 2.8rem; }
  .gold-name { font-size: .9rem; max-width: 100px; }
  .podium-name { font-size: .8rem; max-width: 90px; }
  .stadium-table th, .stadium-table td { padding: .6rem .5rem; font-size: .8rem; }
}
@media (max-width: 400px) {
  .col-1 .podium-avatar { width: 68px; height: 68px; }
  .col-2 .podium-avatar, .col-3 .podium-avatar { width: 54px; height: 54px; }
  .trophy-in-circle { font-size: 2.4rem; }
  .podium-name { font-size: .75rem; max-width: 78px; }
  .gold-name { max-width: 88px; font-size: .85rem; }
}
