.board-host {
  min-width: 0;
  container-type: inline-size;
}
.work-locations > .board-host {
  margin-bottom: 12px;
}
.score-board {
  --pos: 27px;
  --total: 55px;
  --pad: 10px;
  --edge: #40594e;
  --text: #f6edcf;
  --quiet: #adbaaa;
  background: #141f1c;
  color: var(--text);
  border: 1px solid var(--edge);
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 8px var(--pad) 7px;
}
.board-head h3 {
  font:
    700 23px/1 Barlow,
    sans-serif;
  margin: 0;
}
.board-expand {
  padding: 4px 0 4px 4px;
  flex-shrink: 0;
  color: var(--quiet);
  font:
    600 10px/1.2 DM,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.board-columns,
.board-row {
  display: grid;
  grid-template-columns: var(--pos) minmax(0, 1fr) var(--total);
  align-items: baseline;
  gap: 4px;
  padding-inline: var(--pad);
}
.board-columns {
  padding-block: 4px;
  border-block: 1px solid var(--edge);
  font: 600 9px/1.2 var(--mono);
  color: var(--quiet);
}
.board-columns > :last-child,
.board-count {
  text-align: right;
}
.board-row {
  min-height: 23px;
  padding-block: 4px;
  font:
    600 12px/1.2 DM,
    sans-serif;
  color: var(--text);
}
.board-rank,
.board-count {
  font: 500 11px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}
.board-rank {
  color: var(--quiet);
}
.board-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.board-row:hover .board-name,
.board-step:hover .step-name {
  text-decoration: underline;
}
.score-board :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.board-row[aria-current] {
  background: #efcb7b;
  color: #26221a;
}
.board-row[aria-current] .board-rank {
  color: inherit;
}
.board-lines {
  position: relative;
}
.scrollable-board {
  max-height: 132px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #879687 #1a2720;
}
.scrollable-board:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.score-board[data-design='arcade'] {
  --edge: #545244;
  --text: #f4ebcf;
  --quiet: #b5c5b1;
  background: #151b1a;
  border-color: #81785d;
  box-shadow: inset 0 2px #cfad62;
}
[data-design='arcade'] .board-columns {
  padding-block: 6px;
  border-top: 0;
}
.work-locations .scrollable-board {
  max-height: clamp(76px, 14dvh, 120px);
}
@media (orientation: landscape) and (max-height: 570px) {
  .work-locations .scrollable-board {
    max-height: clamp(52px, 14dvh, 74px);
  }
  .work-locations > .board-host {
    margin-bottom: 5px;
  }
}
[data-design='arcade'] .board-name {
  font-family: var(--mono);
  font-size: 11px;
}
[data-design='arcade'] .board-row + .board-row {
  border-top: 1px solid #3f473a;
}
[data-design='arcade'] .board-row[aria-current] .board-count {
  font-weight: 800;
}

.score-board[data-design='podium'] {
  --edge: #c5b99b;
  --text: #302e24;
  --quiet: #645b45;
  background: #ede4cf;
}
[data-design='podium'] .board-head {
  padding-bottom: 0;
}
.podium-unit {
  margin: 2px var(--pad) 4px;
  color: var(--quiet);
  font: 400 10px/1.2 var(--mono);
}
.board-podium {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 4px var(--pad) 9px;
}
.board-step {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  justify-items: center;
  row-gap: 2px;
}
.step-art {
  display: block;
  width: 86%;
  height: 35px;
  object-fit: contain;
}
.step-plinth {
  display: grid;
  width: 100%;
  height: calc(21px + var(--step) * 9px);
  place-items: center;
  background: #d7cbb2;
  border-top: 3px solid #b7a688;
  color: #504832;
}
.step-rank {
  font:
    700 19px/1 Barlow,
    sans-serif;
}
.step-name {
  display: grid;
  align-content: center;
  height: 2.3em;
  font:
    600 11px/1.15 DM,
    sans-serif;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.step-score {
  font: 600 11px/1.2 var(--mono);
}
.board-step[aria-current] .step-plinth {
  color: #f8ecc6;
  background: #394e43;
  border-color: #a67c3d;
}
.board-step[aria-current] .step-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}
[data-design='podium'] .board-row[aria-current] {
  background: #394e43;
  color: #fff4d7;
}
[data-design='podium'] .board-full {
  margin-top: 6px;
}

.score-board[data-design='ladder'] {
  --edge: #395958;
  --quiet: #a4c7be;
  background: #142928;
  border-color: #526b62;
}
[data-design='ladder'] .board-head {
  border-top: 3px solid #96cdb8;
}
[data-design='ladder'] .board-head h3 {
  color: #d9f0df;
}
[data-design='ladder'] .board-row {
  border-bottom: 1px solid #2e4744;
}
[data-design='ladder'] .board-row[aria-current] {
  color: #e0fff0;
  background: #2b4841;
  box-shadow: inset 3px 0 #abe9cf;
}
.chase-gap {
  padding: 5px var(--pad) 6px;
  color: #c0dfcf;
  font:
    500 11px/1.3 DM,
    sans-serif;
}
@container (max-width: 205px) {
  .score-board {
    --pos: 18px;
    --total: 38px;
    --pad: 5px;
  }
  .board-head {
    padding-block: 6px;
    flex-wrap: wrap;
  }
  .board-head h3 {
    font-size: 18px;
  }
  .board-expand {
    font-size: 9px;
  }
  .board-columns {
    font-size: 7px;
  }
  .board-row,
  [data-design='arcade'] .board-name {
    font-size: 10px;
  }
  .board-rank,
  .board-count {
    font-size: 9px;
  }
  .board-row {
    min-height: 19px;
    padding-block: 3px;
  }
  .step-art {
    height: 25px;
  }
  .step-score,
  .step-name {
    font-size: 9px;
  }
  .step-name {
    height: 3.45em;
  }
  .chase-gap {
    font-size: 10px;
  }
}
