/* Lobby (lobby.js). The window is the 1v1 window's (versus.css: .versus-modal); the room, the rounds and the final
   standings live in the centre card, with the lobby bar in place of the card's tier tabs. */

/* ---------- the room ---------- */
.lb-code {
  max-width: 340px;
  margin: 12px auto 10px;
}
.lb-label {
  margin: 20px 0 0;
  color: #a9b0a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.lb-label span {
  color: #7d857b;
  letter-spacing: 0.5px;
}
.lb-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.lb-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #2c3228;
  border-radius: 999px;
  background: #151a10;
  color: #dfe4df;
  font-size: 11.5px;
  font-weight: 750;
  animation: roundIn 0.32s var(--ease-out) both;
}
.lb-player.me {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.lb-player-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-player small {
  color: #747b73;
  font-size: 9.5px;
  font-weight: 700;
}
.lb-crown {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--medium);
}
.lb-settings .filter-group {
  margin-top: 14px;
}
.lb-settings .filter-group legend {
  margin-bottom: 8px;
}
.lb-settings .filter-options {
  justify-content: center;
}
.lb-settings .vs-hint {
  margin: 8px 0 0;
}
.lb-room .filter-options button:disabled {
  cursor: default;
}
.lb-room .filter-options button:disabled:not(.selected) {
  opacity: 0.5;
}
.lb-room .filter-options button:disabled:hover {
  transform: none;
}
.lb-room-hint {
  margin: 16px 0 0;
}

/* ---------- the lobby bar: round, category, whose pick, and every player's points + live status ---------- */
.vs-bar.lb-bar {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 7px 10px;
}
.lb-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.lb-picker {
  overflow: hidden;
  color: #8f968c;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.lb-p {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: baseline;
  column-gap: 5px;
  max-width: 124px;
  padding: 3px 8px;
  border: 1px solid #262a22;
  border-radius: 9px;
  background: #12160e;
}
.lb-p-name {
  overflow: hidden;
  color: #c8cec8;
  font-size: 10.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-p-points {
  color: #fff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.lb-p-status {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #8f968c;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-p.me {
  border-color: rgba(var(--accent-rgb), 0.35);
}
.lb-p.active .lb-p-status,
.lb-p.ok .lb-p-status {
  color: var(--accent);
}
.lb-p.miss .lb-p-status {
  color: #e57c78;
}
.lb-p.gone {
  opacity: 0.45;
}

/* ---------- under the result card: waiting, then the round's ranking and the standings ---------- */
.lb-end {
  min-width: 0;
  height: 30px;
  margin-top: 6px;
}
.lb-results {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.lb-res {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #262a22;
  border-radius: 11px;
  background: #12160e;
  font-size: 11.5px;
}
.lb-res.first {
  border-color: rgba(var(--accent-rgb), 0.45);
}
.lb-res-place {
  color: #8f968c;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}
.lb-res.first .lb-res-place {
  color: var(--accent);
}
.lb-res.miss .lb-res-place {
  color: #e57c78;
}
.lb-res-name {
  overflow: hidden;
  color: #e3e8e2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-res.me .lb-res-name,
.lb-final-row.me .lb-res-name {
  color: var(--accent);
}
.lb-res-score {
  color: #a4aba3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lb-res-points {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}
.lb-res.miss .lb-res-points {
  color: #747b73;
}
.lb-standings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 9px 0 0;
  color: #8f968c;
  font-size: 10.5px;
}
.lb-standings > span:first-child {
  color: #72786f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.lb-stand b {
  color: #e3e8e2;
  font-variant-numeric: tabular-nums;
}
.lb-stand.me,
.lb-stand.me b {
  color: var(--accent);
}
.lb-stand.gone {
  opacity: 0.5;
}

/* ---------- the final standings ---------- */
.lb-final-table {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.lb-final-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 4px 14px;
  padding: 9px 13px;
  border: 1px solid #272b23;
  border-radius: 13px;
  background: #12160e;
}
.lb-final-row.first {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.08);
}
.lb-final-row.gone {
  opacity: 0.55;
}
.lb-final-row .lb-res-name {
  font-size: 12.5px;
}
.lb-final-row .lb-res-name small {
  color: #747b73;
  font-size: 9.5px;
  font-weight: 650;
}
.lb-final-num {
  color: #dfe4df;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}
.lb-final-num small {
  display: block;
  color: #6f766c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.lb-final-points {
  color: var(--accent);
}
.vs-round-row.lb-round-row {
  grid-template-columns: 18px minmax(0, 1fr) minmax(0, 0.8fr);
}
.lb-round-row .vs-rr-res span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- large desktop ---------- */
@media (min-width: 1600px) and (min-height: 850px) {
  .lb-player {
    height: 36px;
    font-size: 14px;
  }
  .lb-p-name,
  .lb-p-points {
    font-size: 12.5px;
  }
  .lb-p-status,
  .lb-picker {
    font-size: 11px;
  }
  .lb-p {
    max-width: 150px;
  }
  .lb-res {
    font-size: 14px;
  }
  .lb-standings {
    font-size: 12.5px;
  }
  .lb-final-row .lb-res-name,
  .lb-final-num {
    font-size: 15px;
  }
}

/* ---------- phones ---------- */
@media (max-width: 430px) {
  .lb-p {
    max-width: 104px;
  }
  .lb-res {
    grid-template-columns: 30px minmax(0, 1fr) auto 26px;
    gap: 6px;
    padding: 6px 9px;
  }
  .lb-final-row {
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    gap: 4px 10px;
  }
  .lb-final-row .lb-final-num:nth-of-type(4) {
    display: none; /* "Got": the points and wins say enough on a phone */
  }
}
