/* 21+ entry gate — fullscreen until user confirms (pairs with js/age-gate.js) */

html.hm-age-gate-open,
body.hm-age-gate-open {
  overflow: hidden !important;
}

.hm-age-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2147483640;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: none;
  transform: none !important;
  -webkit-transform: none !important;
  background: radial-gradient(
    circle at 30% 15%,
    rgba(var(--brand-sidebar-from-rgb), 0.94) 0%,
    rgba(var(--brand-sidebar-to-rgb), 0.98) 55%,
    var(--gray-900) 100%
  );
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  pointer-events: auto;
}

.hm-age-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hm-age-gate__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  width: min(calc(100vw - 2rem), 28rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: 0;
  flex-shrink: 0;
  z-index: 2147483641;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  text-align: center;
  color: #1a2618;
}

.hm-age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-sidebar-from), var(--brand-primary));
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hm-age-gate__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

.hm-age-gate__text {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.hm-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hm-age-gate__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
}

.hm-age-gate__confirm:hover {
  filter: brightness(1.06);
}

.hm-age-gate__confirm:focus-visible {
  outline: 3px solid var(--brand-accent-gold);
  outline-offset: 3px;
}

.hm-age-gate__exit {
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem;
}

.hm-age-gate__exit:hover {
  color: var(--brand-primary);
}

.hm-age-gate__exit:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hm-age-gate.is-leaving {
    transition: none;
  }
}
