/* Age restriction modal overlay */

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

body.age-modal-locked {
  overflow: hidden;
}

.age-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.85));
}

.age-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-inline: var(--space-4);
}

.age-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: var(--space-5);
}

.age-modal-header {
  margin-bottom: var(--space-4);
}

.age-modal-kicker {
  display: block;
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.age-modal-title {
  font-size: var(--font-size-3xl);
}

.age-modal-body p {
  font-size: var(--font-size-sm);
}

.age-modal-footer {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .age-modal-content {
    padding: var(--space-4);
  }

  .age-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .age-modal-footer .button {
    width: 100%;
    justify-content: center;
  }
}

/* When modal is dismissed, scripts may add a class to hide it; keep CSS ready */
.age-modal-hidden {
  display: none !important;
}
