:root {
  --age-gate-ink: #1e0201;
  --age-gate-cream: #f5efe6;
  --age-gate-muted: #5a4a44;
  --age-gate-error: #8f1d14;
  --age-gate-accent: #de7439;
  --age-gate-border: #1e0201;
  --age-gate-overlay: rgba(30, 2, 1, 0.55);
  --age-gate-radius: 4px;
}

html.age-verified .age-gate {
  display: none;
}

html.age-gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--age-gate-overlay);
  overflow-y: auto;
  font-size: 16px;
}

.age-gate__card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  background: var(--age-gate-cream);
  color: var(--age-gate-ink);
  border-top: 6px solid var(--age-gate-accent);
  border-radius: var(--age-gate-radius);
  text-align: center;
  font-family: inherit;
  line-height: 1.5;
}

.age-gate__title {
  margin: 0 0 8px;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25;
}

.age-gate__description {
  margin: 0 0 24px;
  color: var(--age-gate-muted);
  font-size: 1em;
}

.age-gate__fields {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.age-gate__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}

.age-gate__field--month,
.age-gate__field--day {
  width: 72px;
}

.age-gate__field--year {
  width: 104px;
}

.age-gate__label {
  font-size: 0.875em;
  font-weight: 600;
}

.age-gate__input {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid var(--age-gate-border);
  border-radius: var(--age-gate-radius);
  background: #fff;
  color: var(--age-gate-ink);
  font: inherit;
  font-size: 1em;
  text-align: center;
}

.age-gate__input::placeholder {
  color: var(--age-gate-muted);
}

.age-gate__input:focus-visible,
.age-gate__button:focus-visible {
  outline: 3px solid var(--age-gate-ink);
  outline-offset: 2px;
}

.age-gate__error,
.age-gate__denied {
  margin: 12px 0 0;
  color: var(--age-gate-error);
  font-size: 0.9375em;
  font-weight: 600;
}

.age-gate__error[hidden],
.age-gate__denied[hidden],
.age-gate__form[hidden] {
  display: none;
}

.age-gate__button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  border: 2px solid var(--age-gate-ink);
  border-radius: var(--age-gate-radius);
  background: var(--age-gate-ink);
  color: var(--age-gate-cream);
  font: inherit;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.age-gate__button:hover {
  background: var(--age-gate-cream);
  color: var(--age-gate-ink);
}

.age-gate__legal {
  margin: 24px 0 0;
  color: var(--age-gate-muted);
  font-size: 0.8125em;
}

.age-gate__noscript {
  margin: 0 0 16px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .age-gate__card {
    padding: 28px 20px 22px;
  }
}
