/* ─── In-app confirm modal (parallax-styled, replaces window.confirm) ────────── */

.landing-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.landing-modal {
  width: min(92vw, 420px);
  padding: 1.4rem 1.5rem 1.2rem;
  background: rgba(18, 11, 4, 0.95);
  border: 1px solid rgba(220, 170, 50, 0.55);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  color: var(--brass-gold-wash);
  text-align: left;
}

.landing-modal__title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  color: var(--brass-gold-glow);
  letter-spacing: 0.02em;
}

.landing-modal__message {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--brass-gold-faint);
}

.landing-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Override the splash-sized panel-action button styling inside a modal —
   200px min-width is right for a panel CTA but too wide for two side-by-
   side confirm buttons in a 420px dialog. Smaller font + tighter padding
   reads as a polished confirm prompt rather than a stretched primary CTA. */
.landing-modal__actions .landing__panel-action {
  min-width: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.landing-modal__actions .landing__panel-action:hover,
.landing-modal__actions .landing__panel-action:focus-visible {
  transform: none;
}

@media (max-width: 720px) {
  .landing__panel--lobby {
    width: 96vw;
    height: 88vh;
  }
  .lobby-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .landing__stage {
    transition: none;
  }

  .landing__lamp {
    animation: none;
  }

  .landing__content,
  .landing__panel {
    transition: none;
  }

  /* Instant swap — no slide, no residual offset. */
  .landing.is-panel-open .landing__content {
    transform: none;
  }

  .landing__panel,
  .landing.is-panel-open .landing__panel {
    transform: none;
  }
}
