.lb-container { padding: 50px 0 100px; }
.lb-head { margin-bottom: 32px; text-align: center; }
.lb-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.lb-head p { color: var(--text-muted); font-size: 15.5px; }

/* Podium for top 3 — rank 2 left, rank 1 middle, rank 3 right */
.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 36px;
  align-items: end;
}
.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.25, 1),
              border-color 0.2s,
              box-shadow 0.25s;
  cursor: default;
}
.podium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.podium-card.rank-1:hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 14px 40px rgba(251, 191, 36, 0.18);
}
.podium-card.rank-2:hover {
  border-color: rgba(203, 213, 225, 0.55);
  box-shadow: 0 14px 40px rgba(203, 213, 225, 0.12);
}
.podium-card.rank-3:hover {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 14px 40px rgba(217, 119, 6, 0.15);
}
/* Avatar zoom on card hover */
.podium-card .podium-avatar {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.podium-card:hover .podium-avatar {
  transform: scale(1.06);
}
/* Medal subtle bounce on card hover */
.podium-card .podium-medal {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.podium-card:hover .podium-medal {
  transform: scale(1.12) rotate(-4deg);
}

.podium-card.rank-1 {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.10), var(--bg-card) 65%);
  padding-top: 30px;
  padding-bottom: 30px;
}
.podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.35);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.06), var(--bg-card) 65%);
}
.podium-card.rank-3 {
  border-color: rgba(180, 83, 9, 0.4);
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.08), var(--bg-card) 65%);
}

/* Medal with rank number — custom, no emojis */
.podium-medal {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.podium-medal svg { width: 100%; height: 100%; display: block; }
.podium-medal .podium-rank-num {
  position: absolute;
  /* Circle in SVG: cx=12, cy=8 → center at 33% from top */
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 900;
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Gold / Silver / Bronze — both medal stroke AND number inherit the color */
.podium-medal.medal-1 {
  color: #fbbf24;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.55));
}
.podium-medal.medal-1 .podium-rank-num { color: #fbbf24; }

.podium-medal.medal-2 {
  color: #cbd5e1;
  filter: drop-shadow(0 0 10px rgba(203, 213, 225, 0.45));
}
.podium-medal.medal-2 .podium-rank-num { color: #cbd5e1; }

.podium-medal.medal-3 {
  color: #d97706;
  filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.5));
}
.podium-medal.medal-3 .podium-rank-num { color: #d97706; }

.podium-card.rank-1 .podium-medal { width: 64px; height: 64px; }
.podium-card.rank-1 .podium-medal .podium-rank-num { font-size: 18px; }

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  object-fit: cover;
}
.podium-card.rank-1 .podium-avatar { width: 78px; height: 78px; border-color: rgba(251, 191, 36, 0.5); }

.podium-name {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  word-break: break-word;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s, opacity 0.15s;
  color: var(--text);
  display: inline-block;
  line-height: 1.25;
}
.podium-card.rank-1 .podium-name { font-size: 16px; }
.podium-name.lb-clickable:hover { border-bottom-color: currentColor; opacity: 0.85; }

.podium-amount {
  font-size: 17px;
  font-weight: 800;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
}
.podium-card.rank-1 .podium-amount { font-size: 22px; color: #fbbf24; }

/* List for #4+ */
.lb-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.lb-row {
  display: grid;
  grid-template-columns: 60px 50px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(38, 38, 38, 0.5);
  transition: background 0.18s ease,
              transform 0.18s ease,
              padding 0.18s ease;
  position: relative;
}
.lb-row:last-child { border-bottom: none; }
.lb-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.2, 0.7, 0.25, 1);
  border-radius: 0 3px 3px 0;
}
.lb-row:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 24px;
}
.lb-row:hover::before { width: 3px; }
.lb-row.is-placeholder:hover {
  background: rgba(255, 255, 255, 0.012);
  padding-left: 20px;
}
.lb-row.is-placeholder:hover::before { width: 0; }
.lb-avatar {
  transition: transform 0.2s ease;
}
.lb-row:hover .lb-avatar { transform: scale(1.1); }
.lb-rank {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dim);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  object-fit: cover;
}
.lb-name {
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s, opacity 0.15s;
  word-break: break-word;
  color: var(--text);
  display: inline-block;
  line-height: 1.25;
}
.lb-name.lb-clickable:hover { border-bottom-color: currentColor; opacity: 0.85; }
.lb-amount {
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
}

/* Placeholders — greyed out */
.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
}
.podium-card .placeholder-avatar {
  width: 64px;
  height: 64px;
}
.podium-card.rank-1 .placeholder-avatar {
  width: 78px;
  height: 78px;
}
.podium-name.placeholder,
.lb-name.placeholder {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 600;
  cursor: default;
  border-bottom: none !important;
}
.podium-amount.muted,
.lb-amount.muted {
  color: var(--text-dim);
  font-weight: 500;
}
.podium-card.is-placeholder {
  opacity: 0.5;
  background: var(--bg-card);
  border-color: var(--border);
}
.podium-card.is-placeholder.rank-1 { padding-top: 30px; padding-bottom: 30px; }
.lb-row.is-placeholder { opacity: 0.45; }

.lb-loading,
.lb-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Gradient names — uses shared shimmer animation */
.lb-name.role-gradient,
.podium-name.role-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShimmer 4s linear infinite;
  border-bottom: none;
}
.lb-name.role-gradient:hover,
.podium-name.role-gradient:hover {
  filter: brightness(1.15);
}

@media (max-width: 760px) {
  .lb-container { padding: 30px 0 60px; }
  .lb-head h1 { font-size: clamp(28px, 8vw, 40px); }
  .lb-head p { font-size: 13.5px; }
  .lb-podium {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .podium-card.rank-1 { order: -1; padding: 24px 16px; }
  .podium-card { padding: 18px 14px; }
  .podium-card.rank-1 .podium-medal { width: 56px; height: 56px; }
  .podium-card.rank-1 .podium-avatar { width: 64px; height: 64px; }

  .lb-row {
    grid-template-columns: 40px 38px 1fr auto;
    padding: 11px 14px;
    gap: 10px;
    font-size: 13px;
  }
  .lb-avatar, .placeholder-avatar { width: 34px; height: 34px; }
  .lb-rank { font-size: 14px; }
  .lb-name { font-size: 13px; }
  .lb-amount { font-size: 14px; }
}
