#lobbyContainer {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  pointer-events: auto;
}

#lobbyOverlay {
  display: flex;
  align-items: center;
  padding-inline: 4px;
}

.challenge-row {
  display: flex;
  align-items: center;
}

.challenge-vs {
  position: relative;
  margin-right: 3px;
  font-size: 20px;
  line-height: 1;
  color: #e6e6e6;
  text-shadow: 0 2px 0 rgb(0 0 0 / 60%);
}

.challenge-hint {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 1px 0 rgb(0 0 0 / 60%);
  white-space: nowrap;
  pointer-events: none;
}

.challenge-pill[hidden] ~ .challenge-vs {
  display: none;
}

.lobby-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
}

.lobby-total {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-inline: -1px;
}

.lobby-count::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%);
}

.lobby-count[data-opponent="online"]::after {
  background: #7cb342;
}

.lobby-count[data-opponent="offline"]::after {
  background: #e05252;
}

.lobby-icon {
  transform: translateY(-2px);
}

.lobby-rule {
  font-family:
    "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Symbol",
    "Apple Symbols", sans-serif;
  font-size: 14px;
  line-height: 1;
}

@supports (-moz-appearance: none) {
  .lobby-rule {
    transform: translateY(-1px);
  }
}

.challenge-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  padding: 0 4px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 8px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 1.25;
  height: 30px;
  box-sizing: border-box;
  white-space: nowrap;
}

.challenge-pill[hidden] {
  display: none;
}

.challenge-pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0%) 46%,
    rgb(255 255 255 / 90%) 50%,
    rgb(255 255 255 / 0%) 54%
  );
  background-size: 200% 200%;
  background-position: 100% 100%;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: challenge-glint 0.5s ease-out 1;
}

@keyframes challenge-glint {
  0% {
    opacity: 0;
    background-position: 100% 100%;
  }

  12% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    background-position: 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-pill::after {
    animation: none;
  }
}

.challenge-pill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 5px;
  box-sizing: border-box;
  cursor: pointer;
}

#challengeAccept {
  background: #7cb342;
  color: #15330b;
}

#challengeDecline {
  background: #7f1d1d;
}
