@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}

.online-game #game-pilot-names {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.online-game #game-pilot-names .pilot-name {
  position: absolute;
  top: calc(94.5% + 5px);
  max-width: min(17rem, 36%);
  transform: translateX(-50%);
}

.online-game .online-room,
.online-game #room-entry,
.online-game #room-info {
  display: grid;
  width: 100%;
  gap: .65rem;
}

.online-game .online-room {
  width: min(100%, 24rem);
  margin: 0 auto;
  gap: .6rem;
}

.online-game #room-entry {
  justify-items: center;
  gap: .65rem;
}

.online-game #create-room {
  width: min(100%, 15rem);
  min-height: 44px;
  margin: 0;
}

.online-game #button-container {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .65rem;
}

.online-game #button-container #control-panel-start-button {
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding-inline: 1rem;
  margin: 0;
}

.online-game .room-name,
.online-game #join-room {
  display: grid;
  justify-items: center;
  gap: .35rem;
  width: 100%;
}

.online-game .room-name {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.online-game .room-invite,
.online-game .room-join-row,
.online-game .room-share {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  max-width: 100%;
}

.online-game #control-panel-options .online-room label {
  margin: 0;
  color: #254744;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.online-game #player-name,
.online-game #room-input,
.online-game #room-share-value {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  color: #172e2d;
  background: #fff;
  border: 1px solid #709994;
  border-radius: .55rem;
  min-height: 44px;
  padding: .4rem .55rem;
  font: inherit;
}

.online-game #player-name {
  text-align: center;
}

.online-game #room-input {
  width: 8rem;
  text-align: center;
}

.online-game #room-code,
.online-game #room-input {
  font-family: ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.online-game #room-code {
  font-size: 1.35rem;
  text-align: center;
}

.online-game .online-room button:not(.button),
.online-game #leave-room,
.online-game .online-play-controls button {
  position: relative;
  min-height: 44px;
  padding: .42rem .65rem;
  color: #173c39;
  background: #fcffff;
  border: 1px solid #709994;
  border-radius: .6rem;
  cursor: pointer;
  font: 700 .83rem/1.35 system-ui, sans-serif;
}

.online-game #join-room-button {
  padding-inline: .95rem;
}

.online-game .online-room button:disabled,
.online-game .stop-action-mode-btn:disabled {
  opacity: .6;
  cursor: default;
}

.online-game [data-access]:not(.selected) {
  color: #fff;
}

.online-game .ship-card {
  cursor: default;
}

.online-game .pilot-name {
  max-width: 100%;
  overflow: hidden;
  padding: .2rem .6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #071223;
  color: #a4d8ff;
  font: 700 .85rem/1.3 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-game [data-ship="red"] .pilot-name,
.online-game .pilot-name[data-ship="red"] {
  color: #ffb2ad;
}

.online-game button:focus-visible,
.online-game input:focus-visible {
  outline: 3px solid #04786c;
  outline-offset: 2px;
}

.online-game #room-players {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.online-game #room-status {
  margin: 0;
  font-size: .9rem;
}

.online-game #room-status:empty {
  display: none;
}

.online-game .online-play-controls {
  position: fixed;
  z-index: 38;
  top: .55rem;
  right: .55rem;
  display: flex;
  gap: .45rem;
}

.online-game #online-pause {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #000b;
  color: #fff;
  text-align: center;
  font: 700 1.25rem/1.5 system-ui, sans-serif;
}
