/*
 * 18+ age gate styles.
 *
 * Kept in its own file (instead of css/style.css) because the pages under
 * printable/ deliberately do NOT load the site stylesheet — they have their own
 * light, paper-like theme. The gate must look identical on every page, so it
 * carries all of its own styles.
 *
 * Two cooperating pieces:
 *   .age-gate-pending  — put on <html> by the inline <head> snippet BEFORE any
 *                        content paints, so the page is never briefly readable
 *                        before the gate appears.
 *   .age-gate          — the overlay itself, forced visible even while the rest
 *                        of the page is still hidden.
 */

html.age-gate-pending { overflow: hidden !important; }
html.age-gate-pending body { visibility: hidden !important; }

html.age-gate-lock { overflow: hidden !important; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: visible !important;   /* beats html.age-gate-pending body rule */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(212, 93, 122, 0.18), transparent 60%),
    #07070a;
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, sans-serif;
  color: #f4eef1;
  overflow-y: auto;
}

.age-gate-box {
  width: 100%;
  max-width: 30rem;
  text-align: center;
  background: #14141b;
  border: 1px solid rgba(212, 93, 122, 0.35);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.age-gate-badge {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #d45d7a;
  border: 1px solid rgba(212, 93, 122, 0.5);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  letter-spacing: 0.06em;
}

.age-gate-title {
  margin: 1.1rem 0 0.6rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.age-gate-text {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b9b2bd;
}

.age-gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.age-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;              /* touch target floor */
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.age-gate-yes {
  background: linear-gradient(135deg, #d45d7a, #c4a265);
  color: #12080c;
}
.age-gate-yes:hover { filter: brightness(1.08); }
.age-gate-yes:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.age-gate-no {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #b9b2bd;
}
.age-gate-no:hover { border-color: rgba(255, 255, 255, 0.45); color: #f4eef1; }
.age-gate-no:focus-visible { outline: 3px solid #c4a265; outline-offset: 2px; }

.age-gate-fine {
  margin: 1.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #7d7783;
}

@media (max-width: 420px) {
  .age-gate-box { padding: 1.5rem 1.1rem 1.15rem; }
  .age-gate-row { flex-direction: column; }
  .age-gate-btn { width: 100%; }
}

/* The gate is a screen-only courtesy layer; it must never print. */
@media print {
  html.age-gate-pending, html.age-gate-lock { overflow: visible !important; }
  html.age-gate-pending body { visibility: visible !important; }
  .age-gate { display: none !important; }
}