.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #18120e;
  color: #1a1410;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.age-gate-required,
html.age-gate-required body {
  overflow: hidden;
}

html.age-gate-required .age-overlay {
  display: flex;
}

.age-box {
  width: min(100%, 460px);
  margin: auto;
  padding: 36px 32px;
  border: 1px solid rgba(232, 98, 10, .22);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  text-align: center;
}

.age-logo {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1em;
}

.age-logo .dot {
  display: inline-block;
  width: .2em;
  height: .2em;
  margin: 0 .08em;
  border-radius: 1px;
  background: #e8620a;
  vertical-align: middle;
}

.age-title {
  margin: 18px 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.age-body {
  margin-bottom: 18px;
  color: #6b5e55;
  font-size: 14px;
  line-height: 1.55;
}

.age-body strong,
.age-check strong {
  color: #1a1410;
}

.age-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 12px;
  background: #faf7f5;
  color: #6b5e55;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.age-check input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 2px solid #e8620a;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.age-check input:focus-visible,
.age-btn:focus-visible,
.age-check a:focus-visible,
.age-legal a:focus-visible {
  outline: 3px solid rgba(232, 98, 10, .35);
  outline-offset: 3px;
}

.age-check input:checked {
  background: #e8620a;
}

.age-check input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.age-check a,
.age-legal a {
  color: #c94e05;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-btn {
  min-height: 44px;
  padding: 13px 20px;
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.age-btn-yes {
  background: #e8620a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 98, 10, .26);
}

.age-btn-yes:hover {
  background: #b84a06;
}

.age-btn-yes:disabled {
  background: #e7ddd6;
  color: #8a7d74;
  box-shadow: none;
  cursor: not-allowed;
}

.age-btn-no {
  border: 1.5px solid rgba(0, 0, 0, .18);
  background: transparent;
  color: #5c5048;
}

.age-btn-no:hover {
  border-color: #1a1410;
  color: #1a1410;
}

.age-legal {
  margin-top: 20px;
  color: #83746b;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .age-overlay {
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .age-box {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .age-title {
    margin-top: 14px;
    font-size: 20px;
  }

  .age-body,
  .age-check {
    margin-bottom: 14px;
  }

  .age-legal {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-overlay *,
  .age-overlay *::before,
  .age-overlay *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
