.overlays {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  pointer-events: none;
}

.event-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(7 10 27 / 58%);
  pointer-events: auto;
  animation: reveal-message 180ms ease-out;
}

.message-card {
  width: min(100%, 360px);
  max-height: 100%;
  padding: clamp(16px, 5vmin, 32px);
  border: 1px solid rgb(219 244 255 / 35%);
  border-radius: 24px;
  background: linear-gradient(145deg, #202744, #33213f);
  box-shadow: 0 12px 48px rgb(0 0 0 / 25%);
  color: #f5faff;
  text-align: center;
}

.message-card p { margin: 0 0 20px; font-size: clamp(16px, 5vmin, 23px); line-height: 1.45; }
.message-card button {
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid rgb(224 248 255 / 55%);
  border-radius: 99px;
  background: rgb(190 232 255 / 12%);
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.message-card button:focus-visible { outline: 2px solid #bdefff; outline-offset: 4px; }
.scene--aurora { --bg-1: #0b2330; --bg-2: #163b48; --bg-3: #48305c; }
@keyframes reveal-message { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .event-backdrop { animation: none; } }
