/* 18+ age gate modal — soft click-through, brand-styled.
   Loaded on all public pages. Hides initial body content via opacity until
   the gate decides whether to show or skip. The cookie `la_age_18` records
   the click for 30 days. */

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Solid dark background — no backdrop-filter (it tanked perf when the
     landing's ken-burns animations were running behind it; the 97% opacity
     made the blur near-invisible anyway). */
  background: #0d0e10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #f0e8d8;
}
#age-gate.show { display: flex; }

#age-gate .card {
  max-width: 460px;
  width: 100%;
  background: #1d1e20;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: gateIn 0.4s ease-out;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#age-gate .brand {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #c9a961;
  margin-bottom: 1.6rem;
}
#age-gate h1 {
  font-size: 1.4rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 1rem;
}
#age-gate p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 232, 216, 0.7);
  margin: 0 0 1.8rem;
}
#age-gate .actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#age-gate button,
#age-gate a.no {
  display: block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: inherit;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#age-gate button.yes {
  background: #c9a961;
  color: #111;
  border: 1px solid #c9a961;
}
#age-gate button.yes:hover {
  background: #d8b970;
  border-color: #d8b970;
}
#age-gate a.no {
  background: transparent;
  color: rgba(240, 232, 216, 0.55);
  border: 1px solid rgba(240, 232, 216, 0.18);
}
#age-gate a.no:hover {
  color: #f0e8d8;
  border-color: rgba(240, 232, 216, 0.4);
}

#age-gate .fine {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(240, 232, 216, 0.35);
  text-transform: uppercase;
}

/* Hide page content until the gate has decided. JS removes this class. */
body.age-gate-pending > *:not(#age-gate) {
  visibility: hidden;
}
