/* 21+ gate — Theme Settings → Age Gate. A solid ink screen with the cream
   ticket panel on it: nothing of the site shows through. Shown ONLY when the
   inline head script has put `age-gate-on` on <html>, which is why these
   rules outrank the [hidden] attribute the markup ships with. */
.age-gate {
  z-index: 1000;
  background: var(--bg-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.age-gate-on #age-gate,
html.age-gate-on #age-gate[hidden] {
  display: grid;
  opacity: 1;
}
html.age-gate-on #age-gate .tnbw-dialog__panel { transform: none; }
html.age-gate-on { overflow: hidden; }
/* once passed, it is gone at once (no fade back to the page behind) */
html:not(.age-gate-on) #age-gate { display: none; }

.age-gate__panel { text-align: center; }
.age-gate__badge {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}
.age-gate__title {
  font-size: clamp(40px, 8vw, 68px);
  line-height: 0.95;
  margin: 0 0 12px;
}
.age-gate__title em { font-style: normal; color: var(--accent); }
.age-gate__intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 48ch;       /* room for a whole sentence per line */
  margin: 0 auto 26px;
  text-wrap: balance;    /* short, centred: even lines, no word left on its own */
}
.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.age-gate__actions .btn { min-width: 150px; justify-content: center; }
.age-gate__back {
  background: none;
  border: 0;
  padding: 6px 2px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid currentColor;
  cursor: pointer;
}
.age-gate__back:hover,
.age-gate__back:focus-visible { color: var(--accent-dark); }
.age-gate__legal {
  margin: 28px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.age-gate__legal a { color: inherit; text-decoration: underline; }

@media (max-width: 560px) {
  .age-gate { place-items: center; }
  .age-gate__actions .btn { flex: 1 1 100%; }
}

/* A phone held sideways (1.2.2): the two answers must be on screen without scrolling
   the panel. The badge goes, and the type and spacing tighten. */
@media (max-height: 520px) {
  .age-gate { padding: 10px; }
  .age-gate .tnbw-dialog__panel { padding: 16px 22px 12px; max-height: calc(100dvh - 20px); }
  .age-gate__badge { display: none; }
  .age-gate__title { font-size: clamp(28px, 6vw, 40px); margin-bottom: 6px; }
  .age-gate__intro { font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
  .age-gate__actions .btn { flex: 0 1 auto; padding-top: 10px; padding-bottom: 10px; }
  .age-gate__legal { margin-top: 10px; }
}
