.leaderboard-screen {
  min-height: 100%;
  padding: 14px 14px var(--pp-auth-bottom-clearance);
  background:
    radial-gradient(circle at 50% -5%, rgba(245, 179, 47, 0.16), transparent 10rem),
    radial-gradient(circle at 12% 16%, rgba(255, 45, 141, 0.14), transparent 12rem),
    #0a0a0a;
  color: #fff;
}

.leaderboard-shell {
  width: min(100%, var(--pp-auth-compact-content-max));
  max-width: var(--pp-auth-compact-content-max);
  margin: 0 auto;
}

.leaderboard-titlebar {
  display: grid;
  place-items: center;
  margin: 2px 0 8px;
}

.leaderboard-titlebar h1 {
  margin: 0;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-tabs button,
.leaderboard-filters button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leaderboard-tabs button.active {
  color: #ff2d8d;
  border-bottom: 3px solid #ff2d8d;
  text-shadow: 0 0 16px rgba(255, 45, 141, 0.65);
}

.leaderboard-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #111;
}

.leaderboard-filters button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff1493, #b31268);
  box-shadow: 0 0 22px rgba(255, 45, 141, 0.32);
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 8px;
  min-height: 284px;
  margin: 8px 0 12px;
}

.podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 205px;
  padding: 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--rank-rgb), 0.36), transparent 4rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    #111;
  box-shadow: 0 0 26px rgba(var(--rank-rgb), 0.18);
  text-align: center;
}

.podium-card.rank-1 {
  min-height: 244px;
  --rank-rgb: 245, 179, 47;
  order: 2;
}

.podium-card.rank-2 {
  --rank-rgb: 138, 43, 226;
  order: 1;
}

.podium-card.rank-3 {
  --rank-rgb: 255, 111, 45;
  order: 3;
}

.podium-avatar,
.leader-row-avatar,
.leader-house-logo {
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(var(--rank-rgb, 245, 179, 47), 0.7), transparent 1.7rem),
    linear-gradient(135deg, #301128, #080808);
  border: 2px solid rgb(var(--rank-rgb, 245, 179, 47));
}

.podium-avatar {
  width: 82px;
  height: 82px;
}

.podium-card.rank-1 .podium-avatar {
  width: 100px;
  height: 100px;
}

.podium-avatar::before,
.leader-row-avatar::before {
  content: "";
  width: 58%;
  height: 68%;
  background: linear-gradient(180deg, #f4c499, #6e344d);
  clip-path: polygon(50% 0, 72% 18%, 78% 50%, 62% 90%, 38% 90%, 22% 50%, 28% 18%);
}

.podium-rank {
  width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin-top: -22px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(var(--rank-rgb), 1), rgba(var(--rank-rgb), 0.62));
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.podium-card strong,
.leader-row strong {
  font-weight: 950;
}

.podium-card strong {
  font-size: 0.92rem;
}

.podium-card small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.podium-card b {
  color: rgb(var(--rank-rgb));
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
}

.leaderboard-list-new {
  display: grid;
  gap: 8px;
}

.leader-row {
  display: grid;
  grid-template-columns: 28px 52px 1fr auto 16px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(17, 17, 17, 0.86);
}

.leader-row.is-you {
  border-color: rgba(255, 45, 141, 0.9);
  box-shadow: 0 0 24px rgba(255, 45, 141, 0.16);
}

.leader-rank {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
}

.leader-row-avatar,
.leader-house-logo {
  width: 48px;
  height: 48px;
  --rank-rgb: 245, 179, 47;
}

.leader-house-logo {
  border-radius: 12px;
  clip-path: polygon(50% 0, 92% 16%, 86% 72%, 50% 100%, 14% 72%, 8% 16%);
}

.leader-house-logo::before {
  content: "";
  width: 26px;
  height: 26px;
  background: rgb(var(--rank-rgb, 245, 179, 47));
  clip-path: polygon(50% 0, 64% 34%, 100% 36%, 72% 58%, 82% 94%, 50% 74%, 18% 94%, 28% 58%, 0 36%, 36% 34%);
}

.leader-row small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
}

.leader-pxp {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}

.you-badge {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff2d8d;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 950;
}

.leaderboard-refresh-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.leaderboard-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 45, 141, 0.22);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 70%, rgba(138, 43, 226, 0.18), transparent 7rem), #111;
  text-align: center;
}

@media (max-width: 390px) {
  .podium {
    gap: 6px;
  }

  .podium-card {
    padding-left: 5px;
    padding-right: 5px;
  }

  .leader-row {
    grid-template-columns: 24px 46px 1fr auto 12px;
    gap: 8px;
  }
}
