.game--arena-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game--arena {
  width: 1400px;
  height: 700px;
  flex-shrink: 0;
  transform-origin: center;
}

.game--target-marks {
  position: absolute;
  left: calc(50% - 100px);
  top: calc(50% - 100px);
  width: 200px;
  height: 200px;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.game--rope-and-players {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game--rope-class {
  background-position: 0px -500px;
  top: 22px;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.game--character {
  width: 250px;
  height: 250px;
  background-size: 1000px 750px;
  background-repeat: no-repeat;
}

.game--derek-class {
  background-image: url("/assets/derek_bramble_3c74bccf1a3cd295bc5bd90bec39a661.webp");
  position: relative;
}

.game--marta-class {
  background-image: url("/assets/marta_muddleton_4a8a88012011eeb600a0b2e10df0c5ff.webp");
  position: relative;
}

.game--marta-class.game--character-pose-pulling {
  top: 3px;
}

.game--marta-class.game--character-pose-surprised {
  top: 3px;
}

.game--marta-class.game--character-pose-cheering {
  top: -2px;
}

.game--marta-class.game--character-pose-exhausted {
  top: -3px;
}

.game--marta-class.game--character-pose-idle {
  top: -2px;
}

.game--derek-class.game--character-pose-pulling {
  top: 15px;
}

.game--derek-class.game--character-pose-surprised {
  top: 14px;
}

.game--derek-class.game--character-pose-cheering {
  top: 12px;
}

.game--derek-class.game--character-pose-exhausted {
  top: 11px;
}

.game--derek-class.game--character-pose-idle {
  top: 10px;
}

.game--character-pose-pulling {
  background-position: 0px 0px;
}

.game--character-pose-surprised {
  background-position: -750px 0px;
}

.game--character-pose-idle {
  background-position: -500px -250px;
}

.game--character-pose-cheering {
  background-position: 0px -250px;
}

.game--character-pose-exhausted {
  background-position: -250px -250px;
}

.game--result-label {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.22em 0.7em;
  border-radius: 999px;
  color: #1f2933;
  background-color: rgb(255, 255, 255, 85%);
  box-shadow: 0px 8px 18px rgb(31, 41, 51, 22%);
  font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.game--player-name-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  margin: 0;
  padding: 0.35em 0.8em;
  border: 0;
  border-radius: 999px;
  color: #1f2933;
  background-color: rgb(255, 255, 255, 85%);
  box-shadow: 0px 8px 18px rgb(31, 41, 51, 22%);
  font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1;
  min-width: 7em;
  text-align: center;
  white-space: nowrap;
}

.game--pull-trigger {
  height: 250px;
  width: 250px;
}

.game--next-game-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-350px - 1.25rem));
  z-index: 3;
  margin: 0;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  color: #1f2933;
  background-color: rgb(255, 255, 255, 85%);
  box-shadow: 0px 8px 18px rgb(31, 41, 51, 22%);
  font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.game--leaderboards {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.game--leaderboard {
  position: absolute;
  top: 50%;
  margin: 0;
  padding: 0;
  color: #1f2933;
  font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  transform: translateY(-50%);
}

.game--leaderboard-left {
  right: calc(50% + 385px);
}

.game--leaderboard-right {
  left: calc(50% + 385px);
}

.game--leaderboard-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game--leaderboard-list-left {
  align-items: flex-end;
}

.game--leaderboard-list-right {
  align-items: flex-start;
}

.game--leaderboard-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.4em;
  margin-bottom: 0.25rem;
  padding: 0.14em 0.45em;
  border-radius: 999px;
  background-color: rgb(255, 255, 255, 58%);
  box-shadow: 0px 4px 10px rgb(31, 41, 51, 10%);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 700;
  line-height: 1.25;
}

.game--leaderboard-name {
  max-width: 16rem;
  white-space: nowrap;
}

.game--leaderboard-count {
  flex-shrink: 0;
  font-variant-numeric: "tabular-nums";
}

@media (max-height: 875px) {
  .game--arena {
    transform: scale(0.82);
  }

  .game--next-game-countdown {
    transform: translate(-50%, calc((0px - 40dvh) - 1.25rem));
  }
}

@media (max-width: 1050px) {
  .game--arena {
    transform: scale(0.72);
  }
}

@media (max-width: 820px) {
  .game--arena {
    transform: scale(0.58);
  }
}

@media (max-width: 680px) {
  .game--arena {
    transform: scale(0.53);
  }
}

@media (max-height: 430px) {
  .game--arena {
    transform: scale(0.69);
  }
}

@media (max-height: 360px) {
  .game--arena {
    transform: scale(0.62);
  }
}

@media (max-height: 500px) {
  .game--result-label {
    top: 8px;
  }

  .game--next-game-countdown {
    transform: translate(-50%, calc((0px - 25dvh) - 0.5rem));
  }

  .game--leaderboard {
    top: 54%;
  }
}