/* CINNANA sitewide 18+ threshold gate */

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

/* Prevent mature page content from flashing before the shared gate mounts. */
html.age-gate-pending body > :not(.age-gate) {
  visibility: hidden;
}

html.age-gate-pending .age-gate {
  visibility: visible;
}

    .age-gate {
      position: fixed;
      inset: 0;
      z-index: 2147483640;
      display: grid;
      place-items: center;
      padding: clamp(1rem, 4vw, 2.5rem);
      color: #fff6ed;
      background:
        radial-gradient(
          circle at 18% 14%,
          rgba(231, 105, 145, 0.2),
          transparent 24rem
        ),
        radial-gradient(
          circle at 84% 78%,
          rgba(20, 0, 10, 0.68),
          transparent 30rem
        ),
        rgba(39, 3, 20, 0.92);
      -webkit-backdrop-filter: blur(10px) saturate(0.85);
      backdrop-filter: blur(10px) saturate(0.85);
      opacity: 1;
      visibility: visible;
      transition:
        opacity 440ms ease,
        visibility 440ms ease;
    }

    html.age-confirmed .age-gate {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .age-gate::before,
    .age-gate::after {
      content: "";
      position: absolute;
      pointer-events: none;
      border: 1px solid rgba(255, 216, 226, 0.12);
      border-radius: 50%;
    }

    .age-gate::before {
      left: -8rem;
      top: -9rem;
      width: 25rem;
      height: 25rem;
      box-shadow:
        2.2rem 2.2rem 0 -1px transparent,
        2.2rem 2.2rem 0 rgba(255, 216, 226, 0.07);
    }

    .age-gate::after {
      right: -7rem;
      bottom: -9rem;
      width: 23rem;
      height: 23rem;
      box-shadow:
        -2rem -2rem 0 -1px transparent,
        -2rem -2rem 0 rgba(255, 216, 226, 0.06);
    }

    .age-gate-card {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      width: min(100%, 42rem);
      padding: clamp(1.55rem, 5vw, 3.25rem);
      background:
        linear-gradient(
          145deg,
          rgba(126, 20, 56, 0.98),
          rgba(73, 8, 34, 0.99) 58%,
          rgba(42, 3, 20, 0.99)
        );
      border: 1px solid rgba(255, 222, 215, 0.25);
      border-radius: 1.5rem 1.5rem 2.5rem 1.5rem;
      box-shadow:
        0 1.4rem 4rem rgba(15, 0, 8, 0.5),
        inset 0 1px 0 rgba(255, 239, 226, 0.15),
        inset 0 -1.2rem 2.6rem rgba(23, 0, 10, 0.2);
      text-align: center;
      transform: translateY(0);
      transition:
        transform 440ms ease,
        opacity 440ms ease;
    }

    .age-gate.is-opening .age-gate-card {
      opacity: 0;
      transform: translateY(-1rem) scale(0.985);
    }

    .age-gate-card::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0.65rem;
      border: 1px solid rgba(255, 222, 215, 0.1);
      border-radius: 1.05rem 1.05rem 2rem 1.05rem;
      pointer-events: none;
    }

    .age-gate-card::after {
      content: "18+";
      position: absolute;
      z-index: -1;
      right: -0.4rem;
      bottom: -2rem;
      color: rgba(255, 218, 225, 0.055);
      font-family: "Fraunces", Georgia, serif;
      font-size: clamp(7rem, 24vw, 13rem);
      font-weight: 700;
      line-height: 1;
      transform: rotate(-8deg);
      pointer-events: none;
    }

    .age-gate-seal {
      display: grid;
      place-items: center;
      width: 5.2rem;
      height: 5.2rem;
      margin: 0 auto 1.2rem;
      color: #ffe8d8;
      background:
        radial-gradient(
          circle at 36% 28%,
          rgba(255, 241, 209, 0.22),
          transparent 34%
        ),
        linear-gradient(145deg, #c89543, #8c551d);
      border: 1px solid #e2b868;
      border-radius: 47% 53% 51% 49%;
      box-shadow:
        0 0 0 0.35rem rgba(255, 220, 151, 0.07),
        0 0.6rem 1.5rem rgba(20, 0, 8, 0.28),
        inset 0 1px 0 rgba(255, 246, 215, 0.34);
      font-family: "Fraunces", Georgia, serif;
      font-size: 1.55rem;
      font-weight: 700;
      letter-spacing: -0.04em;
      transform: rotate(-3deg);
    }

    .age-gate-eyebrow {
      margin: 0 0 0.55rem;
      color: rgba(255, 199, 215, 0.86);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.19em;
      text-transform: uppercase;
    }

    .age-gate-title {
      max-width: 13ch;
      margin: 0 auto 1.15rem;
      color: #fff6ed;
      font-family: "Fraunces", Georgia, serif;
      font-size: clamp(2.15rem, 7vw, 4rem);
      line-height: 0.98;
      letter-spacing: -0.045em;
      text-wrap: balance;
      text-shadow:
        0 0.18rem 0 rgba(45, 0, 18, 0.32),
        0 0.7rem 2rem rgba(20, 0, 8, 0.18);
    }

    .age-gate-copy {
      max-width: 38rem;
      margin: 0 auto;
      color: rgba(255, 243, 234, 0.87);
      font-family: Georgia, serif;
      font-size: clamp(0.93rem, 2.3vw, 1.08rem);
      line-height: 1.72;
      text-wrap: pretty;
    }

    .age-gate-copy + .age-gate-copy {
      margin-top: 0.8rem;
    }

    .age-gate-copy strong {
      color: #fff8ef;
    }

    .age-gate-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.75rem;
      margin-top: 1.55rem;
    }

    .age-gate-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 3rem;
      padding: 0.72rem 1rem;
      border-radius: 0.7rem 0.7rem 0.7rem 0.25rem;
      cursor: pointer;
      font: 500 0.76rem/1.2 "DM Mono", monospace;
      text-decoration: none;
      transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
    }

    .age-gate-button:focus-visible {
      outline: 2px dashed #ffe7ef;
      outline-offset: 0.28rem;
    }

    .age-gate-enter {
      color: #4d1026;
      background: #ffd6df;
      border: 1px solid #fff0e8;
      box-shadow:
        4px 5px 0 rgba(28, 0, 12, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    .age-gate-enter:hover,
    .age-gate-enter:focus-visible {
      background: #ffe8ed;
      transform: translate(-2px, -2px);
      box-shadow:
        7px 8px 0 rgba(28, 0, 12, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }

    .age-gate-leave {
      color: rgba(255, 240, 232, 0.82);
      background: rgba(30, 0, 13, 0.18);
      border: 1px solid rgba(255, 226, 215, 0.26);
    }

    .age-gate-leave:hover,
    .age-gate-leave:focus-visible {
      color: #fff8ef;
      background: rgba(30, 0, 13, 0.34);
      transform: translateY(-1px);
    }

    .age-gate-fineprint {
      margin: 1.15rem 0 0;
      color: rgba(255, 218, 225, 0.62);
      font-size: 0.58rem;
      letter-spacing: 0.12em;
      line-height: 1.5;
      text-transform: uppercase;
    }

    @media (max-width: 540px) {
      .age-gate {
        align-items: end;
        padding: 0.65rem;
      }

      .age-gate-card {
        max-height: calc(100dvh - 1.3rem);
        overflow-y: auto;
        padding: 1.35rem 1.05rem 1.25rem;
        border-radius: 1.15rem 1.15rem 1.75rem 1.15rem;
      }

      .age-gate-seal {
        width: 4.3rem;
        height: 4.3rem;
        margin-bottom: 0.9rem;
        font-size: 1.3rem;
      }

      .age-gate-actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .age-gate-button {
        width: 100%;
      }
    }

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

.age-gate .visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

