/* Sports moments built from the ZeroDay Cloud event palette and artwork. */
#player-greeting {
  overflow-wrap: anywhere;
  min-width: 0;
}
.athlete-pass {
  gap: 24px;
  padding-bottom: 24px;
  min-width: 0;
}
.competitor-bib {
  position: relative;
  display: grid;
  flex: 0 0 132px;
  text-align: center;
  color: var(--background);
  background: var(--white);
  border: 1px solid var(--white);
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--blue);
}
.competitor-bib::before,
.competitor-bib::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 7px;
  border-radius: 50%;
  background: var(--background);
}
.competitor-bib::before {
  left: 8px;
}
.competitor-bib::after {
  right: 8px;
}
.competitor-bib > span {
  padding: 3px 18px;
  color: var(--white);
  background: var(--blue);
  font:
    italic 600 11px Poppins,
    sans-serif;
}
.competitor-bib > strong {
  padding: 6px 7px 0;
  font:
    600 23px/1.25 Poppins,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.competitor-bib > small {
  padding: 3px 0 7px;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.athlete-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pass-eyebrow {
  color: var(--pink);
  font-size: 11px;
}
.athlete-identity > strong {
  font:
    500 20px/1.35 Poppins,
    sans-serif;
  overflow-wrap: anywhere;
}
.athlete-identity #race-stage {
  margin: 0;
  font-size: 12px;
}
.qualification-stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 12px 18px;
  border: 1px solid var(--pink);
  outline: 1px solid var(--pink);
  outline-offset: -5px;
  color: var(--pink);
  transform: rotate(3deg);
}
.qualification-stamp > span {
  display: grid;
  gap: 3px;
}
.qualification-stamp strong {
  font:
    600 14px/1.2 Poppins,
    sans-serif;
  letter-spacing: 0.1em;
}
.qualification-stamp small {
  color: var(--muted);
  font-size: 10px;
}
.starting-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
}
#signal-caption {
  font-size: 11px;
  color: var(--muted);
}
.signal-lamps {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.signal-lamps i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
[data-signal="offline"] .signal-lamps i:first-child,
[data-signal="portal"] .signal-lamps i:first-child {
  background: var(--pink);
}
[data-signal="preparing"] .signal-lamps i:nth-child(-n + 2) {
  background: var(--yellow);
}
[data-signal="attention"] .signal-lamps i {
  background: var(--error);
}
[data-signal="ready"] .signal-lamps i {
  background: var(--pink);
}
[data-signal="ready"] #signal-caption {
  color: var(--pink);
}
#signal-go {
  width: 42px;
  height: 36px;
  object-fit: contain;
  margin-left: auto;
}

.relay-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.relay-track > li {
  position: relative;
  min-width: 0;
}
.relay-track > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  border-top: 1px solid var(--line);
}
.relay-step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 12px);
  min-height: 86px;
  padding: 14px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.relay-track > li:last-child .relay-step {
  width: 100%;
}
.relay-step:hover {
  background: var(--panel);
  border-color: var(--pink);
}
.relay-step.has-baton {
  border-color: var(--pink);
  color: var(--white);
  background: var(--panel);
}
.relay-step.is-solved {
  color: var(--white);
}
.relay-marker {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.relay-marker .icon {
  width: 23px;
  color: var(--pink);
}
.relay-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.relay-copy strong {
  font-size: 13px;
  font-weight: 500;
}
.relay-copy small {
  color: var(--muted);
  font-size: 11px;
}
.has-baton .relay-copy small {
  color: var(--pink);
}
.relay-baton {
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex: 0 0 40px;
}

.village-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.village-guide {
  color: var(--muted);
  font-size: 13px;
}
.event-view-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 4px;
}
.event-view-switch button {
  min-height: 38px;
  padding: 7px 16px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.event-view-switch button[aria-pressed="true"] {
  background: var(--pink);
  color: var(--background);
}
.event-view-switch button:hover {
  color: var(--white);
  background: var(--raised);
}
.event-view-switch button[aria-pressed="true"]:hover {
  color: var(--background);
  background: #ffabff;
}
.village-map {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 8px 8px;
  background: var(--background);
}
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.map-caption > span:first-child {
  color: var(--pink);
}
.village-venues {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  aspect-ratio: 1200 / 860;
}
.village-park {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.venue {
  position: absolute;
  top: var(--venue-y);
  left: var(--venue-x);
  transform: translateX(-50%);
  width: 25%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 2px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.venue::before {
  content: "";
  position: absolute;
  inset: -9cqw 0 0;
}
.venue-3 {
  --venue-x: 50%;
  --venue-y: 41%;
}
.venue-4 {
  --venue-x: 19%;
  --venue-y: 21%;
}
.venue-5 {
  --venue-x: 50%;
  --venue-y: 19%;
}
.venue-6 {
  --venue-x: 80%;
  --venue-y: 21%;
}
.venue-7 {
  --venue-x: 18%;
  --venue-y: 42%;
}
.venue-8 {
  --venue-x: 82%;
  --venue-y: 41%;
}
.venue-9 {
  --venue-x: 29%;
  --venue-y: 60%;
}
.venue-10 {
  --venue-x: 72%;
  --venue-y: 60%;
}
.venue-11 {
  --venue-x: 22%;
  --venue-y: 79%;
}
.venue-12 {
  --venue-x: 50%;
  --venue-y: 79%;
}
.venue-13 {
  --venue-x: 78%;
  --venue-y: 79%;
}
.venue-14 {
  --venue-x: 33%;
  --venue-y: 94%;
}
.venue-15 {
  --venue-x: 68%;
  --venue-y: 94%;
}
.venue-pin {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--pink);
  background: var(--background);
  color: var(--pink);
  border-radius: 50%;
  font:
    400 10px/1 "DM Sans",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.operations-hub .venue-pin {
  color: var(--white);
  border-color: #759fff;
  background: var(--blue);
}
.venue-label {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.venue-name {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.venue-title {
  order: -1;
  font:
    400 14px/1.35 "DM Sans",
    sans-serif;
}
.venue-status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.venue .venue-pin {
  align-self: flex-start;
  margin-top: 1px;
}
.venue .venue-label {
  grid-template-areas: "title" "detail";
  text-shadow:
    0 0 3px var(--background),
    0 0 6px var(--background),
    0 0 9px var(--background);
}
.venue .venue-title {
  grid-area: title;
}
.venue .venue-name,
.venue .venue-status {
  grid-area: detail;
}
.venue .venue-status {
  visibility: hidden;
}
.venue:is(:hover, :focus-visible, .is-locked, .is-solved) .venue-name {
  visibility: hidden;
}
.venue:is(:hover, :focus-visible, .is-locked, .is-solved) .venue-status {
  visibility: visible;
}
.venue.is-solved .venue-status {
  color: var(--yellow);
}
.venue.is-locked .venue-status {
  color: var(--muted);
}
.venue.is-solved .venue-pin {
  color: var(--background);
  background: var(--yellow);
  border-color: var(--yellow);
}
.venue.operations-hub .venue-pin {
  color: var(--white);
  background: var(--blue);
  border-color: #759fff;
}
.venue:hover .venue-title,
.venue:focus-visible .venue-title {
  color: var(--pink);
}
.venue:hover .venue-pin,
.venue:focus-visible .venue-pin {
  background: var(--pink);
  color: var(--background);
}
.venue:focus-visible {
  z-index: var(--z-content);
  outline-offset: 4px;
}
.village-key {
  display: none;
}
.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.map-legend i {
  width: 9px;
  height: 9px;
  background: var(--pink);
}
.map-legend i.base-marker {
  background: var(--blue);
  border: 1px solid #759fff;
  margin-left: 12px;
}
.map-key {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.leaderboard-table {
  font-variant-numeric: tabular-nums;
}
.leaderboard-table .scoreboard-place {
  padding-left: 12px;
  font:
    500 22px Poppins,
    sans-serif;
  color: var(--muted);
}
.leaderboard-table tbody tr:first-child .scoreboard-place {
  color: var(--yellow);
}
.leaderboard-table tbody tr:nth-child(2) .scoreboard-place {
  color: var(--white);
}
.leaderboard-table tbody tr:nth-child(3) .scoreboard-place {
  color: #d9a47c;
}
.leaderboard-table tr.is-you {
  background: var(--raised);
}
.leaderboard-table tr.is-you td:first-child {
  box-shadow: inset 3px 0 0 var(--pink);
}
.scoreboard-player {
  overflow-wrap: anywhere;
}
.you-label {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 10px;
  vertical-align: middle;
}
.capture-celebration {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: -10px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  animation: sprint-capture 400ms ease-out both;
}
.capture-celebration img {
  width: 116px;
  height: 94px;
}
.capture-celebration strong {
  color: var(--pink);
  font:
    600 25px/1.2 Poppins,
    sans-serif;
  text-wrap: balance;
}
.capture-celebration span {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.capture-celebration.is-qualification strong {
  color: var(--yellow);
  font-size: 28px;
}
.solved-message:has(.capture-celebration:not([hidden])) > .icon,
.solved-message:has(.capture-celebration:not([hidden])) > h3 {
  display: none;
}
.how-to-play {
  position: relative;
  isolation: isolate;
}
.how-to-play::before {
  content: "";
  position: absolute;
  inset: 15px 0;
  z-index: -1;
  background: url("assets/rules-court.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
@keyframes sprint-capture {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .capture-celebration {
    animation: none;
  }
}
@media (max-width: 1000px) {
  .relay-baton {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .relay-step {
    gap: 8px;
    padding: 11px;
  }
  .venue {
    width: 28%;
    gap: 6px;
  }
  .venue-title {
    font-size: 12px;
  }
  .venue-name,
  .venue-status {
    font-size: 9px;
  }
  .venue-pin {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
}
@media (max-width: 800px) {
  .athlete-pass {
    flex-wrap: wrap;
    gap: 20px;
  }
  .qualification-stamp {
    padding: 10px 14px;
  }
  .relay-track {
    gap: 10px;
  }
  .relay-step {
    width: 100%;
    align-items: flex-start;
    min-height: 120px;
    flex-wrap: wrap;
  }
  .relay-track > li:not(:last-child)::after {
    right: -10px;
    width: 10px;
  }
  .relay-copy {
    order: 2;
    width: 100%;
  }
  .relay-baton {
    position: absolute;
    right: 11px;
    top: 8px;
  }
  .map-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .village-venues {
    margin-block: 12px;
  }
  .venue {
    width: 44px;
    height: 44px;
    padding: 0;
    top: calc(var(--venue-y) - 13%);
    background: transparent;
  }
  .venue .venue-label {
    display: none;
  }
  .venue::before {
    display: none;
  }
  .venue .venue-pin {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 10px;
    align-self: center;
    margin-top: 0;
    box-shadow: 0 0 0 3px var(--background);
  }
  .village-key {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    list-style: none;
    margin: 0;
    padding: 0 18px 18px;
  }
  .village-key > li {
    min-width: 0;
    border-top: 1px solid var(--line);
  }
  .venue-key-button {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 90px;
    padding: 14px 0 10px;
    color: var(--white);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
  }
  .venue-key-button .venue-pin {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .venue-key-button .venue-title {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .venue-key-button .venue-name {
    display: none;
  }
  .venue-key-button .venue-status {
    font-size: 9px;
  }
  .venue-key-button:hover .venue-title {
    color: var(--pink);
  }
}
@media (max-width: 560px) {
  .athlete-pass {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 17px;
    padding-bottom: 22px;
  }
  .competitor-bib {
    flex-basis: 104px;
  }
  .competitor-bib > strong {
    font-size: 19px;
  }
  .athlete-identity {
    flex: 1;
  }
  .athlete-identity > strong {
    font-size: 15px;
  }
  .athlete-identity #race-stage {
    font-size: 10px;
  }
  .pass-eyebrow {
    font-size: 10px;
  }
  .qualification-stamp {
    grid-column: 1/-1;
    justify-self: end;
    margin: 2px 0 0 auto;
    transform: rotate(2deg);
  }
  .relay-track {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .relay-track > li:not(:last-child)::after {
    right: auto;
    top: 100%;
    left: 27px;
    height: 8px;
    width: 0;
    border-left: 1px solid var(--line);
    border-top: 0;
  }
  .relay-step {
    align-items: center;
    flex-wrap: nowrap;
    min-height: 66px;
    padding: 12px;
    gap: 14px;
  }
  .relay-copy {
    order: 0;
    width: auto;
  }
  .relay-copy strong {
    font-size: 12px;
  }
  .relay-copy small {
    font-size: 10px;
  }
  .relay-baton {
    position: static;
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .village-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .event-view-switch {
    width: 100%;
  }
  .event-view-switch button {
    flex: 1;
    min-height: 40px;
    padding-inline: 8px;
  }
  .map-caption {
    padding: 17px 18px;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
  }
  .map-footer {
    padding: 18px;
  }
  .map-key {
    line-height: 1.6;
  }
  .leaderboard-table .scoreboard-place {
    font-size: 18px;
  }
  .leaderboard-table .you-label {
    display: block;
    width: max-content;
    margin: 4px 0 0;
  }
  .capture-celebration strong {
    font-size: 23px;
  }
  .capture-celebration.is-qualification strong {
    font-size: 25px;
  }
}
