/* Leaderboard page. */
.page { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 5vw, 3.5rem);
}
.topbar .logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.topbar .logo .dot { color: var(--cyan); }
.nav { display: flex; gap: 0.6rem; align-items: center; }

.lb-wrap {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 2rem) 3rem;
}
.lb-title { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.03em; font-weight: 850; text-align: center; }
.lb-sub { text-align: center; color: var(--muted); margin: 0.4rem 0 2rem; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--faint); font-weight: 700; text-align: right;
  padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border);
}
.lb-table th.c-rank, .lb-table td.c-rank { text-align: center; width: 3rem; }
.lb-table th.c-name, .lb-table td.c-name { text-align: left; }

.lb-table tbody tr, .lb-table tfoot tr { border-bottom: 1px solid var(--border); }
.lb-table td {
  padding: 0.8rem 0.7rem; text-align: right; font-variant-numeric: tabular-nums;
}
.lb-table td.c-rank { font-weight: 800; color: var(--muted); }
.lb-table td.c-name { text-align: left; font-weight: 650; }
.lb-table td.c-elo {
  font-weight: 850;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lb-table td.c-acc, .lb-table td.c-ans { color: var(--muted); }

.lb-table tr.me { background: rgba(99, 102, 241, 0.12); }
.lb-table tr.me td { color: var(--text); }
.lb-table tr.me td.c-name::after { content: " (you)"; color: var(--cyan); font-weight: 700; }
.lb-table tfoot tr.me { border-top: 2px solid var(--border-strong); }

.lb-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.lb-cta { text-align: center; margin-top: 2.2rem; }

.footer {
  text-align: center; color: var(--faint); font-size: 0.85rem;
  padding: 1.6rem; border-top: 1px solid var(--border);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
