html.age-gate-open {
  overflow: hidden;
}

body.age-gate-open {
  position: fixed;
  top: calc(-1 * var(--age-gate-scroll-y, 0px));
  right: 0;
  left: 0;
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  background: #14141c;
  opacity: 1;
  color: #f9fafb;
}

.age-gate__panel {
  width: 100%;
  max-width: 34rem;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid rgb(16 185 129 / 55%);
  border-radius: 1rem;
  background: #1f2937;
  text-align: center;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 55%);
}

.age-gate__badge {
  display: inline-flex;
  min-width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 .75rem;
  border: 1px solid #10b981;
  border-radius: 9999px;
  background: rgb(16 185 129 / 14%);
  color: #6ee7b7;
  font-size: .875rem;
  font-weight: 700;
}

.age-gate__title {
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.age-gate__heading {
  margin: 1rem 0 0;
  color: #f3f4f6;
  font-size: 1.125rem;
  font-weight: 600;
}

.age-gate__description {
  max-width: 30rem;
  margin: .75rem auto 0;
  color: #9ca3af;
  font-size: .875rem;
  line-height: 1.6;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.75rem;
}

.age-gate__enter,
.age-gate__leave {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.25rem;
  border-radius: .5rem;
  color: #fff;
  font: inherit;
  font-size: .875rem;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}

.age-gate__enter {
  border: 1px solid #10b981;
  background: #10b981;
  font-weight: 700;
}

.age-gate__enter:hover {
  border-color: #059669;
  background: #059669;
}

.age-gate__leave {
  border: 1px solid #4b5563;
  background: transparent;
  color: #d1d5db;
  font-weight: 500;
}

.age-gate__leave:hover {
  border-color: #9ca3af;
  color: #fff;
}

.age-gate__enter:focus-visible,
.age-gate__leave:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  .age-gate {
    padding: 1.5rem;
  }

  .age-gate__panel {
    padding: 2.5rem;
  }

  .age-gate__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 22rem) {
  .age-gate__panel {
    padding: 1.125rem;
  }

  .age-gate__actions > * {
    width: 100%;
  }
}
