/* Shared pieces for pages outside a game (selector, Arcade Setup): dialogs, toasts, form bits. */
#layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
#layer > * {
  pointer-events: auto;
}
.overlay.top {
  z-index: 80;
}
.hidden {
  visibility: hidden;
}
.grow {
  flex: 1;
}
.ico {
  display: inline-flex;
  width: 1em;
  height: 1em;
}
.ico svg {
  width: 100%;
  height: 100%;
}
.btn.round {
  min-width: 4.6rem;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border-radius: 50%;
  font-size: 2rem;
}
.btn.small {
  min-height: 3.6rem;
  min-width: 3.6rem;
  padding: 0.3rem 1.2rem;
  font-size: 1.4rem;
}
.btn.dark {
  background: #ece6f7;
  color: var(--ink);
  box-shadow: 0 0.25rem 0 #c9bfe0;
}
.btn.danger {
  background: #e5484d;
  box-shadow: 0 0.3rem 0 #a1262b, 0 0.7rem 1.1rem rgba(0, 0, 0, 0.25);
}
.btn.purple {
  background: #7a5cf0;
  box-shadow: 0 0.3rem 0 #4b34b0, 0 0.7rem 1.1rem rgba(0, 0, 0, 0.3);
}
.modal {
  width: 46rem;
  max-width: 94%;
  max-height: 94%;
  overflow-y: auto;
  padding: 1.2rem 1.8rem;
}
.modal.wide {
  width: 60rem;
}
.confirm {
  text-align: center;
}
.confirm h2 {
  margin: 0 0 0.6rem;
  font-size: 2.6rem;
}
.confirm p {
  margin: 0 0 1.2rem;
  font-size: 1.7rem;
}
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 3rem;
  max-width: 80%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  border-radius: 1.2rem;
  background: #2a1f4a;
  color: #fff;
  font-size: 1.7rem;
  text-align: center;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.4);
  z-index: 90;
}
.text-input {
  width: 100%;
  border: 0.25rem solid #d9d0ee;
  border-radius: 1.1rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 2.2rem;
  padding: 0.6rem 1.1rem;
  -webkit-user-select: text;
  user-select: text;
  outline: none;
}
.text-input:focus {
  border-color: var(--teal);
}
.switch {
  position: relative;
  flex: none;
  width: 7rem;
  height: 4rem;
  border: 0;
  border-radius: 2rem;
  background: #c9c3dc;
  transition: background 0.15s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.switch.on {
  background: var(--teal);
}
.switch.on::after {
  transform: translateX(3rem);
}
.pin-cancel {
  margin-top: 0.9rem;
  width: 100%;
}
