@layer app {
/* ============================================================
   Modal overlay
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--screen-bg);
  border: 1px solid var(--cell-brd);
  border-radius: 8px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.modal-message {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-flap);
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
  padding: 10px 16px;
}

}
