/* Mask the page while consent state is loading, including when JS is disabled. */
html:has(body[data-age-pending]) { overflow: hidden; }

.age-gate {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 32px), 700px);
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  z-index: 100;
  border: 1px solid #32383e;
  border-radius: 8px;
  background: #0b0d0e;
  color: #cdd7e1;
  box-shadow: 0 2px 8px -2px rgb(0 0 0 / .6), 0 12px 16px -4px rgb(0 0 0 / .6);
  font: 400 16px/1.5 var(--font);
  text-align: center;
}
.age-gate::backdrop { background: rgba(50, 56, 62, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.age-gate h2 {
  margin: 0 0 .35em;
  color: #f0f4f8;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.33334;
  letter-spacing: -.025em;
}
.age-copy { margin: 0; }
#age-warning { white-space: pre-wrap; }
#age-terms a { color: #4393e4; font-weight: 500; }
#age-terms a:hover { text-decoration: underline; }
.age-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.age-actions > * {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 8px clamp(8px, 4vw, 24px);
  border: 3px solid #0b6bcb;
  border-radius: 6px;
  background: #171a1c;
  color: #f0f4f8;
  font: 600 16px/1.5 var(--font);
  text-align: center;
  cursor: pointer;
}
.age-actions > :hover { background: #0a2744; }
.age-actions > :active { background: #12467b; }
.age-gate :is(a, button):focus-visible { outline: 2px solid #b5d9ff; outline-offset: 2px; }

@media (max-width: 360px) {
  .age-gate { padding: 16px; }
  .age-actions > * { flex-basis: 100%; }
}

