/* 小组排行榜（参考领奖台 + 列表布局） */

.screen--leaderboard {
  padding-bottom: 1rem;
}

.screen--leaderboard .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ecfdf5;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.screen--leaderboard .btn--ghost {
  color: #ecfdf5;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.screen--leaderboard .btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.leaderboard-mount {
  max-width: min(440px, 96vw);
  margin: 0 auto;
  padding: 0 0.75rem 1rem;
}

body.leaderboard-screen-bg {
  background: linear-gradient(165deg, #0f766e 0%, #134e4a 48%, #042f2e 100%);
}

body.leaderboard-screen-bg .bg-pattern {
  opacity: 0.45;
}

.lb-top-spacer {
  width: 4rem;
  flex-shrink: 0;
}

.lb {
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.lb__head {
  text-align: center;
  margin-bottom: 1rem;
}

.lb__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fef9c3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.lb__sub {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(254, 249, 195, 0.85);
}

.lb__self-rank {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ecfdf5;
}

.lb__self-rank-num {
  color: #fde047;
  font-size: 1.05rem;
}

/* 领奖台：左 2、中 1、右 3 */
.lb__podium {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0 0.15rem;
}

.lb__podium-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lb__podium-slot--1 .lb__podium-card {
  min-height: 168px;
  padding-bottom: 2rem;
}

.lb__podium-slot--2 .lb__podium-card {
  min-height: 138px;
  padding-bottom: 1.65rem;
}

.lb__podium-slot--3 .lb__podium-card {
  min-height: 122px;
  padding-bottom: 1.5rem;
}

.lb__podium-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem 1rem 0.35rem 0.35rem;
  padding: 1rem 0.45rem 1.85rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.lb__podium-card--me {
  box-shadow:
    0 0 0 3px #fbbf24,
    0 12px 32px rgba(0, 0, 0, 0.28);
}

.lb__podium-card--empty {
  min-height: 100px;
  opacity: 0.35;
}

.lb__avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #f97316);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.lb__podium-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.2rem;
}

.lb__podium-score {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.lb__podium-rank-badge {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fcd34d, #f59e0b);
  color: #78350f;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 列表区 */
.lb__list-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  padding: 0.85rem 0.65rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.lb__list-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.lb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.lb__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.5rem;
}

.lb__row:last-child {
  margin-bottom: 0;
}

.lb__row--me {
  background: rgba(251, 191, 36, 0.22);
  outline: 2px solid rgba(245, 158, 11, 0.65);
}

.lb__row-rank {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: #64748b;
  text-align: right;
}

.lb__row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.lb__row--me .lb__row-main {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.45);
}

.lb__row-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb923c, #ea580c);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb__row-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
}

.lb__row-score {
  flex-shrink: 0;
  min-width: 4.25rem;
  text-align: center;
  padding: 0.4rem 0.45rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.lb__hint {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(236, 253, 245, 0.78);
  text-align: center;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  width: 100%;
}

.btn--leaderboard {
  width: 100%;
  border: 2px solid rgba(59, 130, 246, 0.65);
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  font-weight: 800;
}

.btn--leaderboard:hover:not(:disabled) {
  background: rgba(239, 246, 255, 0.98);
}
