.play-setup-dialog {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .45);
}

.play-setup-dialog[hidden] {
  display: none;
}

.play-setup-dialog__box {
  width: min(480px, 100%);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
  overflow: hidden;
}

.play-setup-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.play-setup-dialog__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.play-setup-dialog__close {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.play-setup-dialog__body {
  display: grid;
  gap: 16px;
  padding: 20px 22px 24px;
}

.play-setup-dialog__body label {
  display: grid;
  gap: 6px;
}

.play-setup-dialog__body select {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.play-setup-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.play-setup-dialog__primary,
.play-setup-dialog__secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.play-setup-dialog__primary {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

.play-setup-dialog__secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

@media (max-width: 520px) {
  .play-setup-dialog {
    padding: 10px;
    place-items: stretch;
  }

  .play-setup-dialog__actions {
    flex-direction: column-reverse;
  }

  .play-setup-dialog__primary,
  .play-setup-dialog__secondary {
    width: 100%;
  }
}


/* =========================
   VIEWER DIALOGS
   ========================= */

.viewer-menu{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.viewer-menu button{
  width:100%;
  min-height:56px;
}

#viewerPgnText{
  width:100%;
  min-height:280px;
  max-height:50vh;
  resize:vertical;
  box-sizing:border-box;
  font-family:monospace;
}