/* Age gate 18+ — branded Luxora dialog (not a system alert) */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.age-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(107, 47, 181, 0.32), transparent 65%),
    rgba(5, 2, 12, 0.92);
  backdrop-filter: blur(8px);
  /* Must choose a button — backdrop does not dismiss */
  pointer-events: auto;
}

.age-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius, 14px);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(160deg, rgba(36, 16, 68, 0.98), rgba(8, 4, 18, 0.98));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(107, 47, 181, 0.28),
    inset 0 1px 0 rgba(255, 236, 170, 0.1);
  text-align: center;
  font-family: var(--font-ui, system-ui, sans-serif);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

.age-gate.is-open .age-gate__dialog {
  transform: translateY(0) scale(1);
}

.age-gate__brand {
  display: inline-flex;
  margin: 0 auto 0.85rem;
  line-height: 0;
}

.age-gate__brand img {
  width: auto;
  height: 52px;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.28));
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(240, 208, 96, 0.55);
  background: rgba(107, 47, 181, 0.35);
  color: #ffe9a8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.age-gate__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #ffe9a8;
}

.age-gate__text {
  margin: 0 0 0.7rem;
  color: var(--text-muted, #c9bdd8);
  font-size: 0.95rem;
  line-height: 1.55;
}

.age-gate__text--muted {
  font-size: 0.86rem;
}

.age-gate__text a {
  color: #f0d060;
  font-weight: 600;
  text-underline-offset: 2px;
}

.age-gate__text a:hover {
  color: #ffe9a8;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.age-gate__actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.age-gate__denied {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 92, 92, 0.45);
  background: rgba(80, 20, 28, 0.45);
  text-align: left;
}

.age-gate__denied p {
  margin: 0;
  color: #e8b4b4;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .age-gate,
  .age-gate__dialog {
    transition: none;
  }

  .age-gate__dialog {
    transform: none;
  }
}
