.leaderboard {
  margin: 14px 0 12px;
}

.leaderboard .eyebrow {
  margin-bottom: 8px;
  text-align: center;
}

.leaderboard-list {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 208px;
  overflow-y: auto;
  background-color: #f2eee5;
  border-radius: 13px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
}

.leaderboard-row + .leaderboard-row {
  border-top: 1px solid rgba(110, 101, 90, 0.12);
}

.leaderboard-row.me {
  background-color: rgba(111, 85, 198, 0.16);
  color: #4c3b87;
  font-weight: 800;
}

.leaderboard-row .rank {
  min-width: 20px;
  color: #716a61;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.leaderboard-row:nth-child(1) .rank {
  color: #d8830b;
}

.leaderboard-row:nth-child(2) .rank {
  color: #7a8a96;
}

.leaderboard-row:nth-child(3) .rank {
  color: #a5653a;
}

.leaderboard-row .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.leaderboard-row .score {
  color: #4c3b87;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.leaderboard-list .empty {
  padding: 16px 12px;
  color: #716a61;
  font-size: 12px;
  text-align: center;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.name-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dcd5c8;
  border-radius: 12px;
  background-color: #fff;
  color: #29272d;
  font: inherit;
  font-size: 13px;
}

.name-row input:focus {
  outline: none;
  border-color: #6f55c6;
  box-shadow: 0 0 0 2px rgba(111, 85, 198, 0.18);
}

.name-row .small-button {
  min-width: 76px;
}

.score-status {
  margin: -2px 0 10px;
  color: #4c3b87;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.score-status.error {
  color: #b83240;
}

/* 顶部导航的排行榜按钮图标（领奖台样式） */
.leaderboard-icon {
  display: block;
}

/* 独立排行榜弹窗（无需游玩即可查看） */
.leaderboard-card {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
}

.leaderboard-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.leaderboard-list--tall {
  min-height: 120px;
  max-height: 46vh;
}

.leaderboard-card .primary-button {
  margin-top: 14px;
}
