/* The leaderboard's own layout, on top of base.css. */

main { padding-top: clamp(1.75rem, 5vw, 3rem); padding-bottom: 2rem; }
.shell { max-width: 56rem; }
.topbar .shell { max-width: var(--shell); }
.foot .shell { max-width: var(--shell); }

.board-head { display: flex; align-items: center; gap: 1rem; }
.board-head .avatar, .board-head .initials { width: 3.5rem; height: 3.5rem; font-size: 1.2rem; }
.board-head .title { margin: 0; outline: none; }
.about { color: var(--muted); max-width: 62ch; margin: 1rem 0 1.5rem; }

.tabs { display: flex; gap: 0.4rem; margin: 1.25rem 0 0; }
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.tabs a:hover { border-color: var(--sky); color: var(--text); }
.tabs a[aria-current="page"] { border-color: var(--pink); background: rgba(255, 111, 174, 0.12); color: var(--text); }

.board {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.entry {
  display: grid;
  grid-template-columns: 2.5rem auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.1rem 0.7rem 0.75rem;
  border-top: 1px solid var(--hair);
}
.entry:first-child { border-top: 0; }
.entry.top { background: linear-gradient(90deg, rgba(255, 111, 174, 0.1), transparent 55%); }
.rank {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}
.entry.top .rank { color: var(--pink); font-weight: 600; font-size: 1.1rem; }
.entry .avatar, .entry .initials { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.who { display: flex; flex-direction: column; min-width: 0; }
.name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.prestige { color: var(--sky-lit); }
.value { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.value b { font-weight: 600; color: var(--text); }
.value span { color: var(--muted); font-size: 0.8rem; }

.back { margin: 1.5rem 0 0; }

@media (max-width: 520px) {
  .entry { grid-template-columns: 2rem auto minmax(0, 1fr); gap: 0.2rem 0.7rem; padding: 0.7rem 0.85rem 0.7rem 0.5rem; }
  .value { grid-column: 3; text-align: left; }
}
