/* Production leaderboards — Amber Coast (ported from MAIN/WWW) */
.leaderboardsRoot {
  --landing-display: "Oswald", sans-serif;
  --landing-body: "Manrope", system-ui, sans-serif;
  --landing-mono: "JetBrains Mono", ui-monospace, monospace;
  --lb-podium-side-offset: 1.25rem;
  --site-landing-max: 72rem;
  width: 100%;
}

.leaderboardsContent {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 2560px) {
  .previewLeaderboardsRoot {
    --site-shell-app-shell-max: min(92vw, 124rem);
    --site-shell-app-max: var(--site-shell-app-shell-max);
    --site-shell-wide-content-max: var(--site-shell-app-shell-max);
    --site-shell-content-max: var(--site-shell-app-shell-max);
  }
}

@media (min-width: 3200px) {
  .previewLeaderboardsRoot {
    --site-shell-app-shell-max: min(92vw, 136rem);
    --site-shell-app-max: var(--site-shell-app-shell-max);
    --site-shell-wide-content-max: var(--site-shell-app-shell-max);
    --site-shell-content-max: var(--site-shell-app-shell-max);
  }
}



@media (max-width: 899px) {
  .pageShell {
    padding-top: 0;
  }
}

.pill,
.pillActive {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 80, 0.32);
  background: rgba(12, 9, 7, 0.72);
  color: rgba(210, 195, 175, 0.88);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.pill:hover {
  color: #fffaf2;
  border-color: rgba(232, 168, 56, 0.42);
}

.pillActive {
  color: #fff4d4;
  border-color: rgba(232, 168, 56, 0.48);
  background: linear-gradient(180deg, rgba(232, 168, 56, 0.22) 0%, rgba(120, 70, 30, 0.12) 100%);
}

.categoryActions,
.scopeActions {
  flex-wrap: wrap;
}

.speciesFilterRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
}

.speciesFilterLabel {
  font-family: var(--landing-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 180, 155, 0.72);
}

.speciesSelectRoot {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: min(100%, 18rem);
}

.speciesSelectTrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.85rem 0.42rem 0.65rem;
  font-family: var(--landing-body);
  font-size: 0.82rem;
  color: #fff4d4;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 80, 0.32);
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.92) 0%, rgba(10, 8, 6, 0.88) 100%);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.speciesSelectTrigger:hover {
  border-color: rgba(232, 168, 56, 0.42);
}

.speciesSelectTriggerOpen,
.speciesSelectTrigger[aria-expanded="true"] {
  border-color: rgba(232, 168, 56, 0.52);
  box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.18);
}

.speciesSelectTrigger:focus-visible {
  outline: 2px solid rgba(232, 168, 56, 0.55);
  outline-offset: 2px;
}

.speciesSelectValue {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speciesSelectChevron {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid rgba(245, 215, 138, 0.82);
  border-bottom: 1.5px solid rgba(245, 215, 138, 0.82);
  transform: translateY(-15%) rotate(45deg);
}

.speciesSelectMenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(16rem, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.35rem;
  padding-inline-end: 0.28rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(200, 150, 80, 0.34);
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.98) 0%, rgba(8, 6, 5, 0.98) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 130, 70, 0.72) rgba(12, 9, 7, 0.4);
}

.speciesSelectMenu::-webkit-scrollbar {
  width: 0.45rem;
}

.speciesSelectMenu::-webkit-scrollbar-track {
  margin: 0.2rem 0;
  background: rgba(12, 9, 7, 0.35);
  border-radius: 999px;
}

.speciesSelectMenu::-webkit-scrollbar-thumb {
  border: 1px solid rgba(12, 9, 7, 0.45);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(200, 150, 80, 0.55) 0%,
    rgba(140, 95, 45, 0.72) 100%
  );
}

.speciesSelectMenu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(232, 168, 56, 0.62) 0%,
    rgba(160, 105, 50, 0.82) 100%
  );
}

.speciesSelectOption,
.speciesSelectOptionSelected,
.speciesSelectOptionActive {
  display: block;
  width: 100%;
  padding: 0.52rem 0.65rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: rgba(245, 230, 205, 0.92);
  font-family: var(--landing-body);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.speciesSelectOption:hover,
.speciesSelectOptionActive {
  background: rgba(232, 168, 56, 0.1);
  color: #fff4d4;
}

.speciesSelectOptionSelected {
  background: rgba(232, 168, 56, 0.18);
  color: #ffe8b0;
  font-weight: 600;
}

.speciesSelectOption:focus-visible {
  outline: 2px solid rgba(232, 168, 56, 0.55);
  outline-offset: 1px;
}

@media (max-width: 899px) {
  .speciesFilterRow {
    flex-direction: column;
    align-items: stretch;
  }

  .speciesSelectRoot {
    max-width: 100%;
  }
}

.content {
  width: 100%;
  max-width: min(100%, var(--site-landing-max, 100%));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) clamp(3rem, 6vw, 4rem);
}

.mockNotice,
.stateCard {
  margin-bottom: 0.85rem;
}

.stateCard {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(200, 150, 80, 0.24);
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.86) 0%, rgba(10, 8, 6, 0.82) 100%);
}

.mockNotice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 80, 0.22);
  background: rgba(12, 9, 7, 0.62);
  font-size: 0.74rem;
  color: rgba(210, 195, 175, 0.82);
}

.mockNoticeText {
  line-height: 1.35;
}

.mockPill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  font-family: var(--landing-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.32);
  background: rgba(232, 168, 56, 0.1);
  color: rgba(245, 215, 138, 0.92);
}

.stateCard {
  text-align: center;
}

.stateText {
  margin: 0 0 0.75rem;
  color: rgba(210, 195, 175, 0.86);
}

.retryBtn {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.42);
  background: rgba(232, 168, 56, 0.12);
  color: #fff4d4;
  cursor: pointer;
}

.updatedAt {
  margin: 1rem 0 0;
  font-family: var(--landing-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(200, 180, 155, 0.72);
  text-align: right;
}

.boardUpdated {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(200, 150, 80, 0.14);
  font-family: var(--landing-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(200, 180, 155, 0.72);
  text-align: center;
}

.sectionHeading {
  margin: 0 0 0.85rem;
  font-family: var(--landing-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff4d4;
}

.podiumSection {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.podiumGrid {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .podiumGrid {
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  .podiumCardSecond,
  .podiumCardThird {
    margin-top: var(--lb-podium-side-offset);
  }
}

@media (max-width: 767.98px) {
  .podiumCardSecond,
  .podiumCardThird {
    margin-top: 0;
  }
}

.podiumCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 15.5rem;
  height: 100%;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 150, 80, 0.28);
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.9) 0%, rgba(10, 8, 6, 0.86) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-align: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

@media (min-width: 768px) {
  .podiumCard {
    min-height: 17.5rem;
  }
}

.podiumCard:hover,
.podiumCard:focus-within {
  transform: translateY(-3px);
  border-color: rgba(232, 168, 56, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.podiumCardFirst {
  border-color: rgba(232, 168, 56, 0.48);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(232, 168, 56, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(28, 20, 12, 0.94) 0%, rgba(12, 9, 7, 0.9) 100%);
}

.podiumCardSecond {
  border-color: rgba(200, 170, 120, 0.36);
}

.podiumCardThird {
  border-color: rgba(160, 110, 70, 0.34);
}

.podiumCardEmpty {
  opacity: 0.45;
  justify-content: center;
}

.podiumCardBadgeSlot,
.podiumCardAvatarSlot,
.podiumCardMetricsSlot,
.podiumCardDetailSlot {
  width: 100%;
  flex-shrink: 0;
}

.podiumCardBadgeSlot {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podiumCardAvatarSlot {
  min-height: 4.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podiumCardMetricsSlot {
  min-height: 3.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.podiumCardDetailSlot {
  min-height: 2.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
}

.podiumRankBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 80, 0.35);
  background: rgba(12, 9, 7, 0.72);
}

.podiumBadgeGold {
  border-color: rgba(232, 168, 56, 0.55);
  background: linear-gradient(180deg, rgba(232, 168, 56, 0.28) 0%, rgba(120, 70, 30, 0.18) 100%);
  box-shadow: 0 0 20px rgba(232, 168, 56, 0.18);
}

.podiumBadgeSilver {
  border-color: rgba(190, 198, 210, 0.42);
  background: linear-gradient(180deg, rgba(190, 198, 210, 0.18) 0%, rgba(80, 86, 96, 0.16) 100%);
}

.podiumBadgeBronze {
  border-color: rgba(180, 120, 70, 0.45);
  background: linear-gradient(180deg, rgba(180, 120, 70, 0.22) 0%, rgba(90, 55, 30, 0.16) 100%);
}

.podiumBadgeIcon {
  width: 1rem;
  height: 1rem;
}

.podiumBadgeGold .podiumBadgeIcon {
  color: #f5d78a;
}

.podiumBadgeSilver .podiumBadgeIcon {
  color: #d8dee8;
}

.podiumBadgeBronze .podiumBadgeIcon {
  color: #ddb08a;
}

.podiumBadgeRank {
  font-family: var(--landing-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff4d4;
}

.podiumAvatar {
  margin-top: 0.15rem;
}

.podiumName {
  margin: 0;
  min-height: 2.5rem;
  max-width: 100%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff4d4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podiumStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  margin: 0;
}

.podiumStatsSingle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
}

.podiumStats div,
.podiumStatsSingle div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.podiumStats dt,
.podiumStatsSingle dt {
  font-family: var(--landing-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 180, 155, 0.72);
}

.podiumStats dd,
.podiumStatsSingle dd {
  margin: 0;
  font-family: var(--landing-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5d78a;
}

.podiumDetail,
.podiumSpecies {
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(210, 195, 175, 0.82);
}

.podiumDetailReserved {
  display: block;
  width: 100%;
  min-height: 2.85rem;
}

.podiumDetail strong,
.podiumSpecies strong {
  display: block;
  margin-top: 0.1rem;
  color: #fff4d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podiumDetailSubtle,
.podiumSpeciesSubtle {
  opacity: 0.82;
}

.podiumDetailSubtle strong,
.podiumSpeciesSubtle strong {
  color: rgba(235, 220, 195, 0.9);
}

.podiumEmptyLabel {
  margin: 0;
  font-size: 1.5rem;
  color: rgba(200, 180, 155, 0.5);
}

.avatarImg,
.avatarFallback {
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(232, 168, 56, 0.35);
  background: rgba(20, 14, 10, 0.9);
}

.avatarSm {
  width: 2rem;
  height: 2rem;
}

.avatarMd {
  width: 2.75rem;
  height: 2.75rem;
}

.avatarLg {
  width: 4.5rem;
  height: 4.5rem;
}

.avatarFallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--landing-display);
  font-weight: 700;
  color: #f5d78a;
}

.avatarSm {
  font-size: 0.75rem;
}

.avatarMd {
  font-size: 0.95rem;
}

.avatarLg {
  font-size: 1.35rem;
}

.listSection {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding-top: clamp(1rem, 2.5vw, 1.35rem);
  border-top: 1px solid rgba(200, 150, 80, 0.18);
}

.listSectionHeading {
  margin: 0 0 0.65rem;
  font-family: var(--landing-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 180, 155, 0.72);
}

.listRows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.listHeaderRow,
.listRow {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.7fr 0.7fr 0.7fr minmax(0, 1.3fr);
  gap: 0.65rem;
  align-items: center;
}

.listHeaderRow {
  display: none;
  padding: 0 0.85rem 0.35rem;
  font-family: var(--landing-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 180, 155, 0.68);
}

@media (min-width: 900px) {
  .listHeaderRow {
    display: grid;
  }
}

.listRow {
  padding: 0.48rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(200, 150, 80, 0.14);
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.82) 0%, rgba(10, 8, 6, 0.78) 100%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.listRowAlt {
  background: linear-gradient(180deg, rgba(14, 10, 8, 0.8) 0%, rgba(10, 8, 6, 0.76) 100%);
}

@media (min-width: 900px) {
  .listRow:hover,
  .listRow:focus-within {
    border-color: rgba(232, 168, 56, 0.28);
    background: linear-gradient(180deg, rgba(22, 16, 11, 0.88) 0%, rgba(12, 9, 7, 0.84) 100%);
    transform: translateX(2px);
  }
}

.listPlayerCol {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.listRank {
  flex-shrink: 0;
  width: 2.2rem;
  font-family: var(--landing-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245, 215, 138, 0.88);
}

.listName {
  font-weight: 600;
  color: #fff4d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listStat,
.listStatMono {
  font-family: var(--landing-mono);
  font-size: 0.82rem;
  color: rgba(225, 210, 190, 0.9);
}

.listSpecies {
  font-size: 0.78rem;
  color: rgba(210, 195, 175, 0.86);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listSpeciesSubtle {
  font-size: 0.72rem;
  color: rgba(200, 180, 155, 0.62);
}

.listHeaderRowPlaytime,
.listRowPlaytime {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
}

.listHeaderRowSurvival,
.listRowSurvival {
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
}

@media (max-width: 899px) {
  .listHeaderRowPlaytime,
  .listHeaderRowSurvival {
    display: none;
  }

  .listRowPlaytime {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .listRowSurvival {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .listRowSurvival .listStatMono,
  .listRowSurvival .listSpecies {
    padding-left: 2.75rem;
  }
}

@media (max-width: 899px) {
  .listRows {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .listHeaderRow,
  .listRow {
    min-width: 34rem;
  }

  .listRow {
    padding: 0.42rem 0.65rem;
    border-radius: 0.55rem;
  }

  .listStat,
  .listStatMono,
  .listSpecies {
    font-size: 0.74rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.revealVisible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .podiumCard,
  .listRow,
  .reveal {
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}
