/* Leaderboard — podium + mode pills */

.lb-page {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.lb-header {
  text-align: center;
  margin-bottom: 20px;
}

.lb-title {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.lb-season-pill {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff 0%, #2f6fe8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 #1f4ea8, 0 8px 20px rgba(47, 111, 232, 0.25);
}

.lb-updated {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-mode-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.lb-mode-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lb-mode-pill {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff 0%, #2f6fe8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 0 #1f4ea8;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lb-mode-pill:hover {
  transform: translateY(-1px);
}

.lb-mode-pill--active {
  background: linear-gradient(180deg, #ffd24d 0%, #f0a500 100%);
  color: #3d2914;
  box-shadow: 0 3px 0 #b87800;
}

.lb-board {
  padding: 20px 16px 12px;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  min-height: 148px;
}

.lb-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 110px;
  padding: 14px 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 3px solid rgba(61, 41, 20, 0.35);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease;
}

.lb-podium-slot:hover {
  transform: translateY(-2px);
}

.lb-podium-slot--1 {
  min-height: 132px;
  background: linear-gradient(180deg, #ffe566 0%, #f0c419 55%, #d9a80f 100%);
}

.lb-podium-slot--2 {
  background: linear-gradient(180deg, #eef1f6 0%, #c5ccd8 55%, #9aa5b5 100%);
}

.lb-podium-slot--3 {
  background: linear-gradient(180deg, #f0c9a0 0%, #d4956a 55%, #b87340 100%);
}

.lb-podium-slot--empty {
  opacity: 0.35;
  pointer-events: none;
}

.lb-podium-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 900;
  font-size: 0.9rem;
  border: 2px solid rgba(61, 41, 20, 0.25);
}

.lb-podium-head,
.platform-lb-head,
.lb-rest-item .lb-podium-head {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border: 2px solid rgba(61, 41, 20, 0.35);
  border-radius: 8px;
  image-rendering: pixelated;
  object-fit: cover;
  box-shadow: 2px 2px 0 rgba(61, 41, 20, 0.2);
}

.lb-rest-item .lb-podium-head {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
}

.lb-podium-name {
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  word-break: break-word;
}

.lb-podium-stat {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.lb-rest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-rest-item {
  display: grid;
  grid-template-columns: 42px 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid var(--outline, #3d2914);
}

.lb-rest-rank {
  font-weight: 800;
  color: var(--text-muted);
}

.lb-rest-name {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.lb-rest-name:hover {
  color: var(--primary-dark);
}

.lb-rest-stat {
  font-size: 0.85rem;
  font-weight: 700;
}

.lb-empty {
  text-align: center;
  padding: 24px 12px;
}

.lb-footer {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .lb-podium {
    grid-template-columns: 1fr;
  }

  .lb-podium-slot--1 {
    order: -3;
  }

  .lb-podium-slot--2 {
    order: -2;
  }

  .lb-podium-slot--3 {
    order: -1;
  }

  .lb-rest-item {
    grid-template-columns: 36px 32px 1fr;
  }

  .lb-rest-stat {
    grid-column: 2 / -1;
    padding-left: 46px;
  }
}
