/* ==========================================================
   age-gate.css — Cedar Stone Bistro
   Age gate overlay — styled via CSS classes, no inline styles.
   ========================================================== */

/* Lock body scroll while age gate is visible */
body:has(#age-gate:not([hidden])) {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 4, 7, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.age-gate__card {
  background: var(--cs-bg-3);
  border: 1px solid rgba(131, 28, 145, 0.38);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(131, 28, 145, 0.1),
    0 8px 64px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(131, 28, 145, 0.12);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: age-gate-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes age-gate-in {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate__card {
    animation: none;
  }
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(131, 28, 145, 0.15);
  border: 1px solid rgba(131, 28, 145, 0.5);
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cs-purple-soft);
  margin: 0 auto 1.5rem;
  letter-spacing: 0.02em;
}

.age-gate__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--cs-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.age-gate__desc {
  font-size: 1.2rem;
  color: var(--cs-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .age-gate__card {
    padding: 3rem 2.5rem;
  }

  .age-gate__actions {
    flex-direction: row;
  }

  .age-gate__actions .btn {
    flex: 1;
  }
}

.age-gate__note {
  font-size: 1.1rem;
  color: rgba(232, 223, 240, 0.4);
  line-height: 1.55;
  margin: 0;
}
