html.age-gate-locked,
html.age-gate-locked body {
  overflow: hidden !important;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  min-height: 100dvh;
  padding: 20px;
  place-items: center;
  color: #fff2cf;
  background: rgba(15, 8, 4, .58);
  -webkit-backdrop-filter: blur(16px) brightness(.48);
  backdrop-filter: blur(16px) brightness(.48);
  opacity: 1;
  transition: opacity .32s ease, background-color .32s ease, backdrop-filter .32s ease;
}

.age-gate.is-leaving {
  background: rgba(15, 8, 4, 0);
  -webkit-backdrop-filter: blur(0) brightness(1);
  backdrop-filter: blur(0) brightness(1);
  opacity: 0;
  pointer-events: none;
}

.age-gate__panel {
  width: min(520px, 100%);
  padding: clamp(24px, 6vw, 42px);
  text-align: center;
  background: rgba(28, 17, 9, .97);
  border: 1px solid #d9a94b;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .62);
  transition: transform .32s ease, opacity .32s ease;
}

.age-gate.is-leaving .age-gate__panel {
  transform: scale(.98);
  opacity: 0;
}

.age-gate__eyebrow {
  margin: 0 0 8px;
  color: #ffd978;
  font: 800 .78rem/1.2 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.age-gate h1 {
  margin: 0;
  color: #fff8e8;
  font: 700 clamp(1.8rem, 7vw, 2.6rem)/1.08 Georgia, serif;
}

.age-gate__panel > p:not(.age-gate__eyebrow) {
  max-width: 38ch;
  margin: 14px auto 0;
}

.age-gate__form {
  margin-top: 24px;
}

.age-gate fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.age-gate legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.age-gate label {
  display: grid;
  gap: 6px;
  color: #fff2cf;
  font: 700 .86rem/1.2 Arial, sans-serif;
  text-align: left;
}

.age-gate input {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  color: #17120c;
  background: #fff8e8;
  border: 2px solid transparent;
  border-radius: 10px;
  font: 700 1rem/1 Arial, sans-serif;
}

.age-gate input:focus {
  border-color: #d9a94b;
  outline: 3px solid rgba(255, 217, 120, .42);
}

.age-gate button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 12px 18px;
  color: #17120c;
  background: linear-gradient(180deg, #ffd978, #d9a94b);
  border: 1px solid #8c641b;
  border-radius: 999px;
  font: 800 1rem/1.2 Arial, sans-serif;
  cursor: pointer;
}

.age-gate__status {
  min-height: 1.5em;
  margin: 12px auto 0;
  color: #ffd978;
  font-weight: 700;
}

.age-gate__privacy {
  color: rgba(255, 242, 207, .78);
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 440px) {
  .age-gate { padding: 12px; }
  .age-gate__panel { padding: 24px 18px; }
  .age-gate fieldset { gap: 8px; }
  .age-gate input { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate,
  .age-gate__panel { transition: none; }
}
