.leaderboards-page .leaderboard-hero {
  min-height: 330px;
  background: #f8fcfe;
}

.leaderboards-page .leaderboard-hero .page-hero-inner {
  padding-block: 0;
}

.leaderboards-page .leaderboard-hero h1 {
  margin-bottom: 16px;
}

.leaderboards-page .leaderboard-section {
  padding-top: 54px;
}

.leaderboards-page .leaderboard-card {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.leaderboards-page .board-header {
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 28px;
  border: 1px solid #d9e9ef;
  border-radius: 12px;
  background: #fff;
}

.leaderboards-page .board-header h2 {
  margin-block: 10px 5px;
  color: #132238;
  font-size: 30px;
}

.leaderboards-page .live-label { font-size: 11px; }

.leader-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.leader-card-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e9ef;
  border-radius: 12px;
  background: #fff;
}

.leader-card-rank {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 3px;
  border: 1px solid rgba(19, 34, 56, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 6px 18px rgba(19, 34, 56, .2);
}

.leaderboards-page .medal {
  width: 34px;
  height: 34px;
  border-width: 1px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  text-shadow: none;
}

.leaderboards-page .medal.gold {
  color: #5b4100;
  border-color: #c99b00;
  background: #ffe58a;
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
}

.leaderboards-page .medal.silver {
  color: #243b4a;
  border-color: #86a9b8;
  background: #ddecf2;
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.leaderboards-page .medal.bronze {
  color: #5a2e1c;
  border-color: #bd6f43;
  background: #f4c09f;
  box-shadow: inset 0 1px rgba(255, 255, 255, .68);
}

.leader-card-art-shell {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 18px 12px 14px;
  background: #eff9fc;
}

.leader-card-art {
  display: block;
  width: 164px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 13px rgba(19, 34, 56, .18));
}

.leader-card-copy {
  padding: 17px;
}

.leader-card-copy h3 {
  margin: 11px 0 4px;
  overflow: hidden;
  color: #132238;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-card-copy > p {
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: #64808d;
  font-size: 12px;
  line-height: 1.45;
}

.leaderboards-page .rarity {
  min-width: 36px;
  padding: 4px 7px;
  font-size: 10px;
  letter-spacing: .06em;
}

.leaderboards-page .rarity-ssr {
  color: #005f7c;
  border-color: #69cee3;
  background: #e1f8fc;
  box-shadow: inset 0 0 0 1px rgba(33, 199, 243, .08);
}

.leader-card-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}

.leader-card-score strong {
  color: #007a9e;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.leader-card-score span {
  color: #54798b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.leader-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e1edf2;
  color: #64808d;
  font-size: 11px;
}

.leader-card-meta code {
  padding: 3px 5px;
  color: #007a9e;
  background: #eef9fc;
}

.leader-card-meta b {
  margin-left: auto;
  color: #ba2f72;
}

.leaderboards-page .board-footer {
  min-height: 74px;
  justify-content: flex-end;
  margin-top: 18px;
  padding: 14px 4px;
  border: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  .leader-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .leader-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .leader-card-grid { grid-template-columns: 1fr; }
  .leader-card-art-shell { min-height: 300px; }
}
