.players-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--players-gap, 12px);
  position: relative;
}
.players-bar [data-side="0"] { --night: #2d2254; --light: #d4c4ff; --wash: #523877; }
.players-bar [data-side="1"] { --night: #542a46; --light: #ffda8d; --wash: #7d4051; }
.player-badge {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: .55em;
  min-height: 2.25em;
  padding: .22em .65em;
  border: 2px solid var(--wash);
  border-radius: .65em;
  background: var(--night);
  color: var(--light);
  font-size: var(--players-size, clamp(22px, 2.1vw, 38px));
  font-weight: 750;
  line-height: 1.12;
}
.player-badge strong { font-size: 1.35em; font-variant-numeric: tabular-nums; }
.player-name { white-space: nowrap; }
.players-bar[data-mode="turns"] .player-badge { min-height: 2.65em; grid-template-rows: 1fr auto; }
.player-badge.active { border-color: var(--light); box-shadow: 0 0 16px color-mix(in srgb, var(--light) 65%, transparent); }
.player-turn { grid-column: 1 / -1; font-size: .66em; color: #fff; }
.player-handover:not(:empty) {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: min(440px, 95vw);
  padding: .35em 1em;
  border-radius: .65em;
  border: 2px solid var(--light);
  background: var(--night);
  color: var(--light);
  box-shadow: 0 8px 22px #1e152b55;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.player-handover:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }
