 /* Very basic styling */
 .modal-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  /* Above tutorial overlay (#tutorial-overlay = z-index 9998) so the
     resume / cancel modal is reachable when shown during a tutorial. */
  z-index: 10010;
}
.modal {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
}
.modal h3 { margin-top: 0; }
.modal button { margin-top: 10px; }
/* ---------- Boîtes de dialogue mutualisées (js/modal.js) ---------- */
.aoo-dialog {
  min-width: 260px;
  max-width: min(480px, 90vw);
  text-align: center;
}
.aoo-dialog-text {
  white-space: pre-line;
  line-height: 1.45;
}
.aoo-dialog-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 6px 9px;
  text-align: center;
}
.aoo-dialog-buttons {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.aoo-dialog-buttons button {
  min-width: 90px;
  cursor: pointer;
}
