/* Sprint standings: a sports podium above an open, full-width results table. */
.board-main {
  padding-bottom: 64px;
}
.board-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--line);
}
.board-eyebrow {
  font-size: 13px;
  color: var(--pink);
  margin-bottom: 17px;
}
.board-hero h1 {
  font-size: clamp(42px, 5.8vw, 80px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  text-shadow: 2px 2px 0 var(--pink);
}
.board-intro {
  margin-top: 20px;
  font-size: 20px;
  color: var(--muted);
}
.board-hero-art {
  position: relative;
  flex: 0 0 220px;
  height: 150px;
  display: grid;
  place-items: center;
}
.board-hero-art > img:first-of-type {
  width: 116px;
  height: 140px;
  transform: rotate(12deg);
  position: relative;
}
.board-orbit {
  position: absolute;
  inset: 38px 0 12px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.board-orbit::after {
  content: "";
  position: absolute;
  inset: 12px -13px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}
.board-hero-star {
  position: absolute;
  width: 29px;
  height: 29px;
  right: 3px;
  top: 23px;
}
.leaders {
  padding: 24px 0 32px;
}
.leaders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.leaders-heading h2 {
  font-size: 20px;
  font-weight: 500;
}
.leaders-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.leaders-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
  margin: 18px auto 0;
  max-width: 950px;
}
.leader {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 20px 20px;
  min-width: 0;
  border-bottom: 5px solid var(--blue);
}
.leader::before {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  z-index: -1;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.leader-1 {
  grid-column: 2;
  grid-row: 1;
  border-color: var(--pink);
  padding-bottom: 30px;
}
.leader-2 {
  grid-column: 1;
  grid-row: 1;
}
.leader-3 {
  grid-column: 3;
  grid-row: 1;
}
.leader > img {
  width: 64px;
  height: 78px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.leader-1 > img {
  width: 80px;
  height: 97px;
}
.leader-place {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.leader-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  font:
    500 20px/1.3 Poppins,
    sans-serif;
  overflow-wrap: anywhere;
}
.leader-score {
  display: block;
  margin-top: 13px;
  font:
    500 32px/1.3 Poppins,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.leader-score small {
  font:
    400 11px "DM Sans",
    sans-serif;
  margin-left: 5px;
  color: var(--muted);
}
.leader-1 .leader-score {
  color: var(--yellow);
  font-size: 40px;
}
.leader-flags {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.leaders-podium[data-count="1"] {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}
.leaders-podium[data-count="1"] .leader-1 {
  grid-column: 1;
}
.leaders-podium[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}
.standings {
  scroll-margin-top: 105px;
  padding-top: 30px;
}
.standings-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.standings-heading h2 {
  font-size: 28px;
  font-weight: 500;
}
.standings-heading p {
  font-size: 12px;
  margin-top: 9px;
  color: var(--muted);
}
.board-refresh {
  display: flex;
  align-items: center;
  gap: 16px;
}
.board-refresh > span {
  font-size: 11px;
  color: var(--muted);
}
.board-refresh-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--white);
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  min-height: 44px;
}
.board-refresh-button .icon {
  width: 16px;
  height: 16px;
}
.board-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 27px;
}
.board-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: min(100%, 330px);
  padding: 0 13px;
}
.board-search:focus-within {
  border-color: var(--pink);
}
.board-search .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.board-search input {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  font-size: 14px;
}
.board-search input:focus-visible {
  outline-offset: 2px;
}
.board-search input::placeholder {
  color: var(--muted);
}
.board-tools .text-button {
  font-size: 12px;
}
.board-feedback {
  min-height: 22px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 8px;
}
.board-error {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--error);
}
.board-loading {
  border-top: 2px solid var(--blue);
}
.board-loading > span {
  display: block;
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 28px 60px;
}
.board-loading > span::after {
  content: "";
  display: block;
  height: 12px;
  width: 42%;
  background: var(--panel);
}
.board-table-wrap {
  border-top: 2px solid var(--blue);
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.standings-table th {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.standings-table th:first-child {
  width: 90px;
}
.standings-table th:nth-child(3) {
  width: 210px;
}
.standings-table th:last-child {
  width: 140px;
  text-align: right;
}
.standings-table td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.standings-table .board-rank {
  font:
    400 22px "DM Sans",
    sans-serif;
  color: var(--muted);
}
.standings-table tr[data-rank="1"] .board-rank {
  color: var(--yellow);
}
.standings-table tr[data-rank="2"] .board-rank {
  color: var(--white);
}
.standings-table tr[data-rank="3"] .board-rank {
  color: #d9a47c;
}
.board-player-name {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.board-you {
  display: inline-block;
  font-size: 10px;
  color: var(--pink);
  padding: 1px 6px;
  margin-left: 8px;
  border: 1px solid var(--pink);
  border-radius: 3px;
  vertical-align: middle;
}
.standings-table tr.is-you {
  background: var(--panel);
}
.standings-table tr.is-you td:first-child {
  box-shadow: inset 3px 0 0 var(--pink);
}
.board-points {
  text-align: right;
  font:
    500 22px Poppins,
    sans-serif;
}
.board-flags {
  display: flex;
  align-items: center;
  gap: 12px;
}
.board-flags > span:first-child {
  font-size: 12px;
  white-space: nowrap;
}
.flag-lanes {
  display: inline-flex;
  gap: 3px;
}
.flag-lanes i {
  width: 5px;
  height: 16px;
  background: var(--line);
  transform: skewX(-12deg);
}
.flag-lanes i.captured {
  background: var(--pink);
}
.board-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.board-pagination > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.board-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--pink);
}
#board-prev .icon {
  transform: rotate(180deg);
}
.board-empty {
  padding: 50px 20px;
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.board-empty img {
  margin: 0 auto 18px;
}
.board-empty h3 {
  font-size: 26px;
}
.board-empty p {
  margin: 13px auto 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.board-empty .button {
  display: inline-flex;
}
.board-context {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  max-width: 80ch;
  line-height: 1.7;
}
.board-closing {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--blue);
  padding-top: 35px;
  margin-top: 65px;
}
.board-closing h2 {
  font-size: 21px;
  font-weight: 500;
}
.board-closing p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.board-closing > .button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}
@media (max-width: 900px) {
  .standings-table th:nth-child(3) {
    width: 110px;
  }
  .flag-lanes {
    display: none;
  }
  .board-refresh {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
  .leader-name {
    font-size: 16px;
  }
  .leader {
    padding-inline: 12px;
  }
  .board-closing > img {
    display: none;
  }
}
@media (max-width: 560px) {
  .board-main {
    padding-bottom: 30px;
  }
  .standings-page .header-return {
    gap: 3px;
    font-size: 10px;
  }
  .standings-page .header-return .icon {
    width: 14px;
    height: 14px;
  }
  .board-hero {
    gap: 12px;
    padding: 38px 0 32px;
  }
  .board-eyebrow {
    font-size: 11px;
    margin-bottom: 15px;
  }
  .board-hero h1 {
    font-size: clamp(30px, 8.1vw, 44px);
  }
  .board-intro {
    font-size: 14px;
    margin-top: 15px;
    max-width: 24ch;
  }
  .board-hero-art {
    flex-basis: 70px;
    height: 110px;
  }
  .board-hero-art > img:first-of-type {
    width: 63px;
    height: 80px;
  }
  .board-hero-star {
    width: 17px;
    height: 17px;
    right: -4px;
    top: 1px;
  }
  .board-orbit {
    inset: 35px -3px 22px;
  }
  .leaders {
    padding-top: 26px;
    padding-bottom: 29px;
  }
  .leaders-heading h2 {
    font-size: 17px;
  }
  .leaders-heading > span {
    font-size: 10px;
  }
  .leaders-podium {
    gap: 9px;
    margin-top: 18px;
  }
  .leader {
    padding: 14px 6px 20px;
    border-bottom-width: 3px;
  }
  .leader::before {
    top: 72px;
  }
  .leader > img {
    width: 43px;
    height: 53px;
    margin-bottom: 14px;
  }
  .leader-1 > img {
    width: 56px;
    height: 68px;
  }
  .leader-1 {
    padding-bottom: 33px;
  }
  .leader-place {
    font-size: 9px;
  }
  .leader-name {
    font:
      400 12px/1.4 "DM Sans",
      sans-serif;
  }
  .leader-score {
    font-size: 22px;
  }
  .leader-1 .leader-score {
    font-size: 27px;
  }
  .leader-score small {
    display: block;
    margin: 0;
    font-size: 9px;
  }
  .leader-flags {
    font-size: 9px;
  }
  .standings {
    padding-top: 17px;
  }
  .standings-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .standings-heading h2 {
    font-size: 24px;
  }
  .standings-heading p {
    font-size: 11px;
    max-width: 37ch;
  }
  .board-refresh {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .board-tools {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .board-search {
    width: 100%;
  }
  .board-search input {
    font-size: 16px;
  }
  .board-tools .text-button {
    align-self: flex-start;
    min-height: 44px;
  }
  .standings-table th {
    padding: 13px 7px;
    font-size: 10px;
  }
  .standings-table td {
    padding: 17px 7px;
  }
  .standings-table th:first-child {
    width: 42px;
  }
  .standings-table th:nth-child(3) {
    width: 44px;
  }
  .standings-table th:last-child {
    width: 66px;
  }
  .standings-table .board-rank {
    font-size: 16px;
  }
  .board-player-name {
    font-size: 12px;
  }
  .board-points {
    font-size: 15px;
  }
  .board-flags > span:first-child {
    font-size: 10px;
  }
  .board-you {
    font-size: 9px;
    margin: 4px 0 0;
    display: table;
  }
  .board-pagination {
    font-size: 10px;
    gap: 8px;
  }
  .board-pagination > div {
    gap: 7px;
  }
  .board-pagination button {
    width: 38px;
    height: 44px;
  }
  .board-closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 40px;
    padding-top: 28px;
  }
  .board-closing h2 {
    font-size: 20px;
  }
  .board-closing > .button {
    margin-left: 0;
  }
}
@media (max-width: 380px) {
  .board-hero {
    gap: 8px;
  }
  .board-hero-art {
    flex-basis: 46px;
  }
  .board-hero-art > img:first-of-type {
    width: 48px;
    height: 64px;
  }
  .board-hero-star {
    width: 13px;
    height: 13px;
    right: 1px;
    top: 7px;
  }
  .board-orbit {
    inset: 42px 0 32px;
  }
  .board-orbit::after {
    inset: 7px -6px;
  }
}
