html.age-gate-required,
html.age-gate-required body {
  min-height: 100%;
  background: #0d0c0b;
}

.age-gate-required body {
  overflow: hidden !important;
}

html.main-style-pending body {
  visibility: hidden !important;
}

.age-gate-required body > :not(.age-gate) {
  visibility: hidden !important;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: auto;
  color: #171412;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  isolation: isolate;
  transition: opacity .22s ease, visibility .22s ease;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 22%, rgba(207, 38, 45, .22), transparent 32%),
    linear-gradient(135deg, rgba(13, 12, 11, .98), rgba(23, 20, 18, .96));
}

.age-gate__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12vw);
  pointer-events: none;
}

.age-gate__panel {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(23, 20, 18, .16);
  border-radius: clamp(24px, 4vw, 40px);
  background: #f4efe7;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}

.age-gate__topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 5vw, 52px);
  border-bottom: 1px solid rgba(23, 20, 18, .22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.age-gate__mark {
  margin-bottom: 10px;
  color: #cf262d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 15vw, 132px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.08em;
}

.age-gate__eyebrow {
  margin: 0 0 10px;
  color: #cf262d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
}

.age-gate h1 {
  margin: 0;
  max-width: 11em;
  font-family: Georgia, "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.age-gate__copy {
  margin: 24px 0 0;
  max-width: 42em;
  color: rgba(23, 20, 18, .68);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.8;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 44px);
}

.age-gate__button {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #171412;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.age-gate__button:hover {
  transform: translateY(-2px);
}

.age-gate__button--primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #171412;
  color: #f4efe7;
}

.age-gate__button--secondary {
  background: transparent;
  color: #171412;
}

.age-gate__note {
  margin: 18px 0 0;
  color: rgba(23, 20, 18, .48);
  font-size: 12px;
  line-height: 1.6;
}

.age-gate--closing {
  opacity: 0;
  visibility: hidden;
}

.age-gate--denied .age-gate__panel {
  border-color: rgba(207, 38, 45, .28);
}

.age-gate--denied .age-gate__actions {
  grid-template-columns: 1fr;
}

@media (max-width: 600px) {
  .age-gate {
    align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .age-gate__panel {
    width: 100%;
    padding: 26px 22px 24px;
    border-radius: 28px;
  }

  .age-gate__topline {
    margin-bottom: 28px;
  }

  .age-gate h1 {
    max-width: none;
    font-size: clamp(36px, 11vw, 54px);
  }

  .age-gate__actions {
    grid-template-columns: 1fr;
  }

  .age-gate__button {
    width: 100%;
  }
}

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