/* Local leaderboard under the Cover summary: plain rows with hairlines. */

.leaderboard {
  margin-top: var(--space-6);
}

.leaderboard h2 {
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--text-title);
}

.leaderboard h2 small {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 500;
}

.leader-row {
  min-height: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: var(--space-2);
}

.leader-row:last-child {
  border-bottom: 1px solid var(--line);
}

.leader-row.current-score {
  font-weight: 600;
}

.leader-row.current-score .leader-rank {
  background: var(--ink);
  color: var(--paper);
}

.leader-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wash);
  display: grid;
  place-items: center;
  font-size: var(--text-caption);
  font-weight: 600;
}

.leader-score small {
  margin-left: var(--space-2);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 400;
}

.leader-time {
  font-size: var(--text-small);
}

.empty-state {
  margin: var(--space-3) 0;
  color: var(--muted);
  font-size: var(--text-small);
}
