/* Shared by the leaderboard and server stats pages: the view switch, the
   "as of" line, the server totals strip and the leaderboard's top three. */
.board-switch {
  display: flex;
  gap: 4px;
  margin: -8px 0 0;
  border-bottom: 1px solid #434c40;
}
.board-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px 5px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: #acb7a4;
  font: 700 1.375rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.board-switch a:first-child {
  padding-left: 0;
}
.board-switch a:hover {
  color: var(--cream);
}
.board-switch a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.board-switch a:focus-visible {
  outline-offset: 2px;
}
/* Extras under a player's name wrap part by part on a phone. */
.leaderboard-player small span {
  display: inline-block;
}
.leaderboard-card th abbr {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
.score-asof {
  margin: -12px 0 20px;
  font-size: 0.875rem;
  color: #aebba3;
}
.score-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.score-totals > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 20px 15px;
  background: #202526;
  border: 1px solid #434c40;
  border-top: 4px solid var(--orange);
}
.score-totals dt {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #acb7a4;
}
/* The number reads first on screen; screen readers still hear the label first. */
.score-totals dd {
  order: -1;
  margin: 0;
  font: 800 clamp(2.2rem, 3.6vw, 3rem)/1 var(--display);
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.podium {
  margin: 0 0 30px;
}
.podium ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 132px;
  padding: 22px 22px 20px 96px;
  background: var(--cream);
  color: var(--ink-deep);
  border: 1px solid var(--ink-deep);
  box-shadow: 8px 8px 0 #0b0d0e;
}
.podium-card.podium-1 {
  background: var(--orange);
}
.podium-rank {
  position: absolute;
  left: 20px;
  top: calc(50% - 29px);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--orange);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px currentColor inset;
  font: 800 2.1rem/1 var(--display);
}
.podium-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.podium-name {
  margin: 3px 0 4px;
  font: 800 2rem/1.02 var(--display);
  overflow-wrap: anywhere;
}
.podium-line {
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.podium-weapon {
  font-size: 0.875rem;
  color: #3a3a33;
}
.podium-1 .podium-weapon {
  color: #2a1a10;
}
/* The sticker look: a slight tilt, only where there is room for it. */
@media (min-width: 761px) {
  .podium-card.podium-1 {
    transform: rotate(-1.2deg);
  }
  .podium-card.podium-2 {
    transform: rotate(0.8deg);
  }
  .podium-card.podium-3 {
    transform: rotate(-0.6deg);
  }
  .podium-rank {
    transform: rotate(-8deg);
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .podium-card {
    justify-content: flex-start;
    padding: 74px 18px 18px;
  }
  .podium-rank {
    left: 16px;
    top: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}
@media (max-width: 760px) {
  .board-switch a {
    font-size: 1.25rem;
    padding-inline: 12px;
  }
  .score-asof {
    margin-top: -10px;
  }
  .score-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .score-totals > div {
    padding: 12px 14px 11px;
  }
  .score-totals dt {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
  .score-totals dd {
    font-size: 2.1rem;
  }
  .podium {
    margin-bottom: 24px;
  }
  .podium ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .podium-card {
    min-height: 0;
    padding: 14px 16px 14px 74px;
    box-shadow: 5px 5px 0 #0b0d0e;
    margin-right: 5px;
  }
  .podium-rank {
    left: 14px;
    top: calc(50% - 23px);
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
  }
  .podium-name {
    font-size: 1.65rem;
  }
}
/* A busy Refresh button keeps keyboard focus; it only looks busy. */
.button[aria-disabled="true"] {
  cursor: wait;
}
/* The narrowest phones. The wordmark already links home, so the header keeps
   only the cross-link; two links push the wordmark's star onto a new line. */
@media (max-width: 400px) {
  .leaderboard-page .site-header nav a:first-child {
    display: none;
  }
  /* Row extras stack one per line in a smaller size, so each part wraps
     between words instead of inside them. */
  .leaderboard-player small {
    font-size: 0.75rem;
    line-height: 1.45;
  }
  .leaderboard-player small > span {
    display: block;
  }
  .leaderboard-player .extras-sep {
    display: none;
  }
}
/* The smallest phones also drop the leaderboard's HS column so names keep
   their width. Server headshot kills still show in the totals. */
@media (max-width: 360px) {
  #leaderboard .leaderboard-card :is(th, td):nth-child(5) {
    display: none;
  }
}
