/* Kream & Sugar — 18+ age gate overlay (app shell).
   External file so it loads under CSP `style-src 'self'` without needing 'unsafe-inline'.
   Hidden by default; age_gate.js reveals it only when the visitor hasn't passed. */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above IAB interstitial (10000) and loading screen (9999) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html.age-gate-active { overflow: hidden; }
html.age-gate-active .age-gate { display: flex; }
.age-gate [hidden] { display: none; }
.age-gate * { box-sizing: border-box; }

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  /* Warm cream/pink — intentionally NOT a stark "adult content" blackout. */
  background: linear-gradient(180deg, rgba(244, 231, 231, 0.97) 0%, rgba(245, 184, 197, 0.93) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.age-gate__modal {
  position: relative;
  width: 100%;
  max-width: 30rem;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(151, 108, 88, 0.35);
}
.age-gate__logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 1.25rem; display: block; }
.age-gate__title {
  font-family: Georgia, 'Times New Roman', serif;
  color: #976C58;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.age-gate__text { color: #4b5563; font-size: 1rem; line-height: 1.6; margin: 0 0 1.5rem; }
.age-gate__fields { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 0.75rem; }
.age-gate__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.age-gate__field input {
  width: 4.25rem;
  text-align: center;
  font-size: 1.25rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  outline: none;
  font-family: inherit;
  color: #111827;
}
.age-gate__field--year input { width: 5.75rem; }
.age-gate__field input:focus { border-color: #976C58; box-shadow: 0 0 0 3px rgba(151, 108, 88, 0.15); }
.age-gate__error { color: #b4304a; font-size: 0.875rem; min-height: 1.1rem; margin: 0 0 0.75rem; }
.age-gate__submit {
  width: 100%;
  background: #976C58;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.age-gate__submit:hover { background: #7c5846; }
.age-gate__fine { margin: 1.1rem 0 0; font-size: 0.75rem; color: #9ca3af; line-height: 1.5; }
.age-gate__fine a { color: #976C58; text-decoration: underline; }
.age-gate__retry {
  margin-top: 1rem;
  background: none;
  border: none;
  color: #976C58;
  text-decoration: underline;
  font-size: 0.875rem;
  cursor: pointer;
}
@media (max-width: 400px) {
  .age-gate__modal { padding: 1.75rem 1.25rem; }
  .age-gate__field input { width: 3.5rem; font-size: 1.1rem; }
  .age-gate__field--year input { width: 4.75rem; }
}
