.leaderboard-shell { width: min(1040px, calc(100% - 34px)); margin: 0 auto; padding: 22px 0 48px; }
.leaderboard-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.leaderboard-topbar .brand { color: inherit; text-decoration: none; }
.leaderboard-hero { padding: 72px 0 28px; text-align: center; }
.leaderboard-hero h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -.04em; margin-top: 8px; }
.leaderboard-hero p { max-width: 650px; margin: 15px auto 0; color: var(--muted); line-height: 1.65; }
.leaderboard-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(18,30,36,.985), rgba(10,18,22,.985)); box-shadow: 0 24px 60px rgba(0,0,0,.26); overflow: hidden; }
.leaderboard-head-row, .leaderboard-row { display: grid; grid-template-columns: 84px minmax(0,1fr) 150px 130px; gap: 12px; align-items: center; }
.leaderboard-head-row { padding: 13px 18px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.leaderboard-row { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row:hover { background: rgba(255,255,255,.018); }
.leaderboard-place { font-size: 17px; font-weight: 950; color: #b7c5c9; }
.leaderboard-row.top-1 .leaderboard-place { color: #f5c451; }
.leaderboard-row.top-2 .leaderboard-place { color: #d0d7da; }
.leaderboard-row.top-3 .leaderboard-place { color: #cf8b5d; }
.leaderboard-player { min-width: 0; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-rank { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 99px; background: rgba(255,70,85,.1); border: 1px solid rgba(255,70,85,.25); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.leaderboard-score { text-align: right; font-size: 18px; font-weight: 950; }
.leaderboard-empty { padding: 42px 20px; text-align: center; color: var(--muted); }
@media (max-width: 680px) {
  .leaderboard-shell { width: min(100% - 18px,1040px); padding-top: 10px; }
  .leaderboard-hero { padding-top: 46px; }
  .leaderboard-head-row { display: none; }
  .leaderboard-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 8px; }
  .leaderboard-rank { display: none; }
  .leaderboard-score { font-size: 15px; }
}
.leaderboard-nav-actions { display:flex; align-items:center; gap:10px; }
.leaderboard-player-wrap { display:flex; align-items:center; gap:10px; min-width:0; }
.leaderboard-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex:0 0 auto; border:1px solid rgba(255,255,255,.12); background:#17242a; }
.leaderboard-avatar.fallback { display:grid; place-items:center; font-weight:950; color:#b9c7cc; }
.leaderboard-player-copy { min-width:0; }
.leaderboard-player-copy small { display:flex; align-items:center; gap:5px; margin-top:3px; color:var(--muted); font-size:10px; }
.discord-verified { padding:2px 6px; border:1px solid rgba(88,101,242,.36); border-radius:99px; background:rgba(88,101,242,.11); color:#b9c0ff; font-size:8px; font-weight:950; text-transform:uppercase; letter-spacing:.06em; }
.legacy-score { padding:2px 6px; border:1px solid rgba(255,255,255,.12); border-radius:99px; color:#7f8b90; font-size:8px; text-transform:uppercase; }
@media (max-width: 680px) {
  .leaderboard-nav-actions .discord-auth { display:none; }
  .leaderboard-avatar { width:30px; height:30px; }
}
