/* FrostFire global 21+ age gate. Loaded after the site stylesheet on every page. */

html.age-gate-pending body {
  visibility: hidden !important;
}

html.age-gate-active,
html.age-gate-active body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.age-gate-active body {
  touch-action: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #eef8ff;
  background:
    linear-gradient(115deg, rgba(12, 45, 76, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(1, 5, 13, 0.965), rgba(2, 8, 18, 0.985));
  -webkit-backdrop-filter: blur(13px) saturate(70%);
  backdrop-filter: blur(13px) saturate(70%);
  isolation: isolate;
}

.age-gate::before,
.age-gate::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.age-gate::before {
  inset: 0;
  opacity: 0.56;
  background:
    linear-gradient(90deg, transparent 0 49.93%, rgba(135, 213, 255, 0.07) 50%, transparent 50.07%),
    linear-gradient(0deg, transparent 0 49.93%, rgba(135, 213, 255, 0.045) 50%, transparent 50.07%),
    repeating-linear-gradient(118deg, transparent 0 92px, rgba(159, 217, 245, 0.018) 93px, transparent 94px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.age-gate::after {
  top: 50%;
  left: 50%;
  width: min(76rem, 120vw);
  height: min(36rem, 82vh);
  border: 1px solid rgba(123, 197, 238, 0.055);
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow:
    0 0 100px rgba(34, 123, 195, 0.07),
    inset 0 0 80px rgba(31, 99, 158, 0.04);
}

.age-gate__panel {
  position: relative;
  width: min(100%, 39rem);
  padding: clamp(1.7rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3.6rem) clamp(1.5rem, 5vw, 2.65rem);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(17, 46, 72, 0.36), transparent 28%),
    linear-gradient(315deg, rgba(18, 58, 91, 0.19), transparent 24%),
    linear-gradient(180deg, rgba(4, 14, 27, 0.99), rgba(2, 8, 17, 0.995));
  border: 1px solid rgba(151, 213, 244, 0.42);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.62),
    inset 0 1px rgba(232, 249, 255, 0.08),
    inset 0 0 3.5rem rgba(31, 111, 173, 0.075);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.age-gate.is-ready .age-gate__panel {
  opacity: 1;
  transform: translateY(0);
}

.age-gate.is-leaving {
  opacity: 0;
  transition: opacity 210ms ease;
}

.age-gate__panel::before,
.age-gate__panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.age-gate__panel::before {
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(112deg, transparent 0 17%, rgba(184, 229, 250, 0.14) 17.2%, transparent 17.55%),
    linear-gradient(76deg, transparent 0 82%, rgba(113, 191, 231, 0.1) 82.2%, transparent 82.55%);
}

.age-gate__panel::after {
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 246, 255, 0.82), transparent);
  box-shadow: 0 0 16px rgba(98, 191, 242, 0.45);
}

.age-gate__corner {
  position: absolute;
  z-index: 1;
  width: 3.75rem;
  height: 3.75rem;
  pointer-events: none;
}

.age-gate__corner--top {
  top: 9px;
  left: 9px;
  border-top: 1px solid rgba(216, 244, 255, 0.72);
  border-left: 1px solid rgba(139, 209, 243, 0.5);
}

.age-gate__corner--bottom {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid rgba(139, 209, 243, 0.5);
  border-bottom: 1px solid rgba(216, 244, 255, 0.72);
}

.age-gate__content {
  position: relative;
  z-index: 2;
}

.age-gate__logo {
  display: block;
  width: clamp(5.75rem, 16vw, 7.4rem);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0 15px rgba(79, 175, 229, 0.18));
  -webkit-user-select: none;
  user-select: none;
}

.age-gate__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.65rem;
  color: #9fdcff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.age-gate__eyebrow::before,
.age-gate__eyebrow::after {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(145, 214, 247, 0.56));
}

.age-gate__eyebrow::after {
  transform: scaleX(-1);
}

.age-gate__title {
  max-width: 11ch;
  margin: 0 auto;
  color: #f2f8fc;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
  text-shadow: 0 1px rgba(255, 255, 255, 0.08), 0 0 26px rgba(82, 169, 223, 0.09);
}

.age-gate__divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(18rem, 78%);
  margin: 1.25rem auto 1.05rem;
  color: rgba(173, 224, 249, 0.8);
}

.age-gate__divider::before,
.age-gate__divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(120, 193, 231, 0.48));
}

.age-gate__divider::after {
  transform: scaleX(-1);
}

.age-gate__divider span {
  width: 0.34rem;
  height: 0.34rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.age-gate__description {
  max-width: 31rem;
  margin: 0 auto;
  color: #c8d7e1;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.98rem, 2.5vw, 1.075rem);
  line-height: 1.6;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 0.48fr);
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.age-gate__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.1rem;
  overflow: hidden;
  color: #06101a;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(105deg, #a7dfff, #d7f2ff 52%, #8fcdf2);
  border: 1px solid #d9f3ff;
  border-radius: 0;
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.age-gate__button::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-18deg);
  transition: left 240ms ease;
}

.age-gate__button:hover {
  background: #e5f7ff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(92, 190, 242, 0.2);
}

.age-gate__button:hover::after {
  left: 108%;
}

.age-gate__button:active {
  box-shadow: inset 0 0 0 1px rgba(3, 19, 31, 0.28);
}

.age-gate__button--secondary {
  color: #c7d9e4;
  background: rgba(4, 17, 31, 0.74);
  border-color: rgba(150, 205, 234, 0.34);
}

.age-gate__button--secondary::after {
  background: linear-gradient(90deg, transparent, rgba(161, 218, 247, 0.18), transparent);
}

.age-gate__button--secondary:hover {
  color: #effaff;
  background: rgba(12, 35, 55, 0.86);
  border-color: rgba(178, 225, 248, 0.62);
  box-shadow: none;
}

.age-gate__button:focus-visible {
  outline: 2px solid #effaff;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(79, 177, 230, 0.3);
}

.age-gate__note {
  margin: 1rem auto 0;
  color: #8296a5;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 29rem) {
  .age-gate {
    place-items: center;
    padding: 0.75rem;
  }

  .age-gate__panel {
    padding: 1.5rem 1.05rem 1.25rem;
    clip-path: polygon(0 13px, 13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px));
  }

  .age-gate__logo {
    width: 5.3rem;
    margin-bottom: 0.55rem;
  }

  .age-gate__eyebrow {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }

  .age-gate__eyebrow::before,
  .age-gate__eyebrow::after {
    width: 1.4rem;
  }

  .age-gate__title {
    font-size: clamp(1.82rem, 9.2vw, 2.35rem);
  }

  .age-gate__divider {
    margin: 1rem auto 0.85rem;
  }

  .age-gate__description {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .age-gate__actions {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.15rem;
  }

  .age-gate__button {
    min-height: 2.8rem;
  }

  .age-gate__note {
    margin-top: 0.75rem;
    font-size: 0.73rem;
  }
}

@media (max-height: 35rem) {
  .age-gate {
    place-items: start center;
  }

  .age-gate__panel {
    margin-block: auto;
    padding-top: 1.25rem;
    padding-bottom: 1.15rem;
  }

  .age-gate__logo {
    width: 4.75rem;
    margin-bottom: 0.35rem;
  }

  .age-gate__divider {
    margin-block: 0.75rem 0.65rem;
  }

  .age-gate__actions {
    margin-top: 0.9rem;
  }

  .age-gate__note {
    margin-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate,
  .age-gate *,
  .age-gate *::before,
  .age-gate *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
