/* ============================================================
   VineToast — age gate presentation.
   Paired with /age-gate.js. See that file for why the gate exists.

   Its own file rather than a block in site.css, because of the cache split in
   firebase.json: HTML is served no-cache but css/js carry
   `max-age=604800`. A returning visitor would therefore have taken the new
   HTML with a SEVEN-DAY-STALE site.css - the gate's script would run, inject
   the overlay, and find none of the rules that hide the page behind it. A new
   filename cannot be stale, so the gate ships its own.

   The three rules that actually withhold the page are ALSO injected inline by
   age-gate.js, so the lock holds even if this file never arrives. What is here
   is presentation.
   ============================================================ */
html.age-lock, html.age-lock body { overflow: hidden; height: 100%; }
html.age-lock body > *:not(.agegate) { visibility: hidden; }
html.age-ok .agegate { display: none; }

.agegate {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface-page);
}

.agegate-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px 32px;
  text-align: center;
}

.agegate-mark { width: 64px; height: 64px; margin: 0 0 18px; }

.agegate-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 12px;
}

.agegate-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--burgundy);
  margin: 0;
}

.agegate-rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: 16px auto 18px;
  background: var(--gold);
}

.agegate-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.agegate-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  margin: 26px 0 10px;
}

.agegate-input {
  width: 160px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-page);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 4px;
  text-align: center;
  color: var(--burgundy);
}

.agegate-input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.agegate-input.is-error { border-color: var(--error); }

.agegate-error {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--error);
  margin: 10px 0 0;
}

.agegate-btn {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--burgundy);
  color: var(--cream-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.agegate-btn:hover { background: var(--burgundy-dark); }
.agegate-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.agegate-legal {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 18px 0 0;
}

.agegate-declined-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 0 18px;
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  background: var(--overlay-gold-soft);
  color: var(--gold-dark);
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 480px) {
  .agegate-card { padding: 36px 24px 28px; }
  .agegate-title { font-size: 28px; }
}
