[hidden] { display: none !important; }

.play-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.game-hall-status {
  color: var(--muted, #5b6472);
  font-size: 12px;
  font-weight: 600;
}

.game-hall-button {
  /* One style for every hall control, whether it is a <button> or an <a>. The
     register/profile/console entries are links, and without the flex box,
     text-decoration and line-height rules they rendered as underlined inline text
     that did not line up with the button next to them. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 6px;
  background: var(--white, #fff);
  color: var(--ink, #111827);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.game-hall-button:visited {
  color: var(--ink, #111827);
}

.game-hall-button:hover {
  border-color: var(--coral, #d94b3d);
  color: var(--coral, #d94b3d);
}

.game-hall-button:focus-visible {
  outline: 2px solid var(--coral, #d94b3d);
  outline-offset: 2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(17, 24, 39, .48);
  z-index: 50;
}

.modal-panel {
  width: min(100%, 380px);
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 8px;
  background: var(--white, #fff);
  box-shadow: 0 18px 48px rgba(17, 24, 39, .16);
}

.modal-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.modal-panel p {
  margin: 0 0 18px;
  color: var(--muted, #5b6472);
  line-height: 1.6;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, .2);
  border-radius: 6px;
  font: inherit;
}

.modal-error {
  min-height: 1.4em;
  margin: 12px 0 0 !important;
  color: #b42318 !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 9px 14px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 6px;
  background: var(--white, #fff);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal-actions button[type="submit"] {
  background: var(--ink, #111827);
  border-color: var(--ink, #111827);
  color: #fff;
}