/* =========================================================
   agegate.css — 18+ interstitial for /content.

   The overlay is a position:fixed layer that exists in the static
   HTML, so toggling it causes NO layout shift. An inline <head>
   script adds html.age-ok before paint for verified visitors so
   they never see it. While locked, page scroll behind is frozen.
   ========================================================= */

html.age-locked-scroll { overflow: hidden; }

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-2), transparent 70%),
    var(--bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.35s var(--ease);
}
/* Verified before paint → never shown. */
html.age-ok #age-gate { display: none; }
/* Fade-out when dismissed via the button. */
#age-gate.age-gate--out { opacity: 0; pointer-events: none; }

.age-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--surface-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--border);
  border-radius: 24px;
  padding: 34px 26px 28px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
}
.age-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}
.age-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin-top: 10px;
  color: var(--text);
}
.age-copy {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 12px 0 22px;
}
.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.age-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.age-btn--enter {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px -8px var(--accent-glow);
}
.age-btn--enter:hover { filter: brightness(1.08); }
.age-btn--enter:active { transform: scale(0.98); }
.age-btn--leave {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
}
.age-fine {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
}
