/* Natmeg global leaderboard page. Page-specific, not folded into styles.css: nothing else on the
   site needs a ranked-list component, and styles.css's own header says structure lives there — this
   is one page's structure. Colour tokens still come from themes.css, loaded before this file. */

.lb-state {
  color: var(--muted);
  font-size: 15px;
  padding: 8px 0 24px;
}

.lb-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 640px;
}

.lb-row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

/* The three ball colours, same homage as .feature's coloured cap, for the top three ranks only. */
.lb-row:nth-child(1) .lb-rank { color: var(--gold); }
.lb-row:nth-child(2) .lb-rank { color: var(--violet); }
.lb-row:nth-child(3) .lb-rank { color: var(--sky); }

.lb-rank {
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  color: var(--muted);
}

.lb-name {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-platform {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.lb-score {
  font-family: var(--font-display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
}

.lb-note { font-size: 14px; }

@media (max-width: 420px) {
  .lb-row { grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 12px; }
  .lb-platform { display: none; }   /* tight on a small phone; the score matters more than the badge */
}
