.game-frame#game-frame,
.online .screen#game-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#game-frame #game {
  position: relative;
  overflow: hidden;
}

/* The player includes an extra strip beside the 800 × 600 game view. */
#game-frame #game ruffle-player {
  position: absolute;
  inset: 0 auto 0 0;
  width: 125%;
  height: 100%;
  max-width: none;
}

.game-frame#game-frame:fullscreen,
.online .screen#game-frame:fullscreen {
  aspect-ratio: auto;
}

.roster-slots {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.roster-slots[hidden] {
  display: none;
}

.roster-slots li {
  display: grid;
  place-items: center;
  width: min(100px, 45%);
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 6px;
  border: 1px dashed #92786c;
  background: #171514;
  color: #e0d3cd;
  font-size: 13px;
  text-align: center;
}
