/* =============================================
   AGE GATE DIALOG
   Shows once on first visit; state stored in
   localStorage. Blocks the UI until accepted.
   ============================================= */

/* ── Full-viewport backdrop ──────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  /* Hidden until .active is added */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.age-gate.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Card ──────────────────────────────────── */
.age-gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,0,0,0.6);

  /* Slide up when shown */
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.age-gate.active .age-gate-card {
  transform: translateY(0);
}

/* ── Logo ──────────────────────────────────── */
.age-gate-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

/* ── Heading ───────────────────────────────── */
.age-gate-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 8px;
}

.age-gate-card p {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

/* ── Check list ────────────────────────────── */
.age-gate-checks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.age-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.age-check-item:hover {
  border-color: var(--border-md);
  background: var(--bg-hover);
}
.age-check-item.checked {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hide native checkbox — replaced by custom box */
.age-chk {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkbox visual */
.age-check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-md);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
  flex-shrink: 0;
}
.age-check-item.checked .age-check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.age-check-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s;
}
.age-check-item.checked .age-check-box svg {
  opacity: 1;
  transform: scale(1);
}

.age-check-text { flex: 1; }
.age-check-text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.age-check-text span {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Accept button ─────────────────────────── */
.age-gate-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-xl);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: not-allowed;
  transition: all 0.25s;
  background: var(--bg-hover);
  color: var(--text-3);
  margin-bottom: 14px;
}
.age-gate-btn.ready {
  cursor: pointer;
  background: linear-gradient(135deg, #1e5cd8, var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.age-gate-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}
.age-gate-btn.ready:active {
  transform: scale(0.97);
}

/* ── Fine print ────────────────────────────── */
.age-gate-note {
  font-size: 0.72rem !important;
  color: var(--text-3) !important;
  margin-bottom: 0 !important;
}
.age-gate-note a {
  color: var(--accent);
  text-decoration: none;
}
.age-gate-note a:hover { text-decoration: underline; }

/* ── Mobile ────────────────────────────────── */
@media (max-width: 480px) {
  .age-gate-card { padding: 28px 20px 22px; border-radius: var(--r-lg); }
  .age-gate-card h2 { font-size: 1.05rem; }
}