.leaderboard-panel { max-width: 1400px; margin: 48px auto 0; border: 1px solid #333; border-top: 3px solid #ffd44a; background: linear-gradient(150deg,rgba(139,109,255,.08),transparent 38%),#080808; }
.leaderboard-panel[data-layout="wide"] { max-width: 1500px; }
.leaderboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid #333; }
.leaderboard-head p { margin: 0 0 7px; color: #777; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.leaderboard-head h2 { margin: 0; font: 400 clamp(1.9rem, 4vw, 3.6rem)/1 Archivo Black, sans-serif; text-transform: uppercase; }
.leaderboard-form { display: flex; gap: 8px; }
.leaderboard-form input { width: min(42vw, 220px); min-height: 48px; padding: 0 14px; border: 1px solid #555; border-radius: 0; background: #111; color: #fff; font: 600 1rem Inter, sans-serif; }
.leaderboard-form input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.leaderboard-form button, .leaderboard-share { min-height: 48px; padding: 0 18px; border: 1px solid #fff; background: #fff; color: #050505; font: 700 .72rem Inter, sans-serif; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.leaderboard-challenge { display: none; margin: 0; padding: 14px 24px; border-bottom: 1px solid #333; background: #fff; color: #050505; font-weight: 800; text-align: center; }
.leaderboard-challenge.show { display: block; }
.leaderboard-list { min-height: 210px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.leaderboard-row { counter-increment: rank; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 24px; border-bottom: 1px solid #222; }
.leaderboard-row::before { content: counter(rank, decimal-leading-zero); color: #666; font: 700 .76rem Inter, sans-serif; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-player { min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-score { text-align: right; }
.leaderboard-score strong { display: block; color: #ffd44a; font: 400 1.2rem Archivo Black, sans-serif; }
.leaderboard-row:nth-child(2n) .leaderboard-score strong { color: #4de1ff; }
.leaderboard-row:nth-child(3n) .leaderboard-score strong { color: #ff3f81; }
.leaderboard-score small { color: #777; font-size: .68rem; }
.leaderboard-empty, .leaderboard-loading { display: grid; min-height: 210px; place-items: center; margin: 0; padding: 30px; color: #777; text-align: center; }
.leaderboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid #333; }
.leaderboard-status { margin: 0; color: #999; font-size: .84rem; }
.leaderboard-status[data-state="success"] { color: #fff; }
.leaderboard-status[data-state="error"] { color: #ffb4b4; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .leaderboard-panel { margin-top: 34px; }
  .leaderboard-head { align-items: stretch; flex-direction: column; }
  .leaderboard-form { width: 100%; }
  .leaderboard-form input { width: 100%; min-width: 0; }
  .leaderboard-row { grid-template-columns: 42px minmax(0,1fr) auto; padding: 10px 15px; }
  .leaderboard-footer { align-items: stretch; flex-direction: column; }
  .leaderboard-share { width: 100%; }
}
