.leaderboard-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line, #d9e0e5);
  border-radius: 8px;
  background: var(--panel, var(--surface, #ffffff));
  box-shadow: 0 8px 24px rgba(35, 34, 31, 0.08);
}

.leaderboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-heading h2 {
  margin: 0;
  color: var(--muted, #63717c);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leaderboard-heading span {
  color: var(--muted, #63717c);
  font-size: 0.82rem;
  font-weight: 850;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line, #d9e0e5);
  border-radius: 8px;
  background: #ffffff;
}

.leaderboard-rank {
  color: var(--muted, #63717c);
  font-weight: 900;
  text-align: right;
}

.leaderboard-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  color: var(--accent-strong, var(--teal-dark, var(--teal, #126c75)));
  font-weight: 950;
  white-space: nowrap;
}

.leaderboard-detail {
  grid-column: 2 / -1;
  color: var(--muted, #63717c);
  font-size: 0.8rem;
  font-weight: 750;
}

.leaderboard-empty {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 10px;
  border: 1px dashed var(--line, #d9e0e5);
  border-radius: 8px;
  color: var(--muted, #63717c);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

@media (max-width: 430px) {
  .leaderboard-panel {
    padding: 12px;
  }

  .leaderboard-item {
    grid-template-columns: 2ch minmax(0, 1fr);
  }

  .leaderboard-score {
    grid-column: 2;
  }
}
