.screen { overflow-y: auto; }
.screen[hidden], .stage[hidden] { display: none; }
.lobby-text { margin: 0; text-align: center; color: var(--muted); }

.rivals {
  position: fixed;
  top: max(6px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 560px);
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.rival-btn {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(0, 0, 0, .4);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.rival-btn.off { opacity: .4; text-decoration: line-through; }

.chips {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.chips li {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 6px;
  background: rgba(14, 11, 22, .78);
  border: 2px solid transparent;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.chips li.me { border-color: var(--ink); }
.chips li.lead b { color: var(--sun); }
.chips li.out { opacity: .45; }
.chips span, .chips small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips span { font-size: 11px; font-weight: 700; }
.chips b { font-size: 18px; font-weight: 900; font-style: italic; line-height: 1; }
.chips small { display: inline; margin-left: 4px; font-size: 10px; font-weight: 700; color: var(--muted); }

.reconnect {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  background: rgba(14, 11, 22, .88);
  border-radius: 6px;
  font-weight: 800;
}
.board li.out { opacity: .5; }
