/* =====================================================================
   FEMDOM SERBIA — AGE CONFIRMATION
   Independent presentation; session and dialog behaviour live in age-gate.js.
   ===================================================================== */

/* <----- 01. SCREEN: opaque coverage and safe scrolling on short displays -----> */
.age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 40px;
  border: 0;
  background: var(--bg, #090909);
  color: var(--text, #f4f0eb);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.age-gate[open] {
  display: grid;
  justify-items: center;
  align-items: center;
}

.age-gate:not([open]) {
  display: none;
}

.age-gate::backdrop {
  background: #090909;
}

html.age-gate-active,
html:has(.age-gate[open]) {
  overflow: hidden;
}

/* <----- 02. COMPOSITION: a portrait and copy sharing the page background -----> */
.age-gate__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
  max-width: 1120px;
  margin-block: auto;
}

.age-gate__visual {
  position: relative;
  height: clamp(500px, 74vh, 720px);
  overflow: hidden;
  background: #090909;
}

.age-gate__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.age-gate__visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #090909, transparent 18%, transparent 85%, #090909),
    linear-gradient(90deg, rgb(9 9 9 / 30%), transparent 25%, transparent 65%, #090909);
  pointer-events: none;
  content: "";
}

.age-gate__content {
  min-width: 0;
  max-width: 440px;
  padding-block: 32px;
}

/* <----- BRAND LOGO: FS tail SVG; independent age-screen sizing -----> */
.age-gate__brand {
  width: 80px;
  max-width: 100%;
  margin: 0 0 32px;
}

.age-gate__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.age-gate__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted, #b8b5b2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.age-gate__label::before {
  width: 26px;
  height: 1px;
  flex: 0 0 26px;
  background: var(--red, #e50920);
  content: "";
}

.age-gate__content h2 {
  margin: 0 0 22px;
  font-family: var(--font-display, Impact, sans-serif);
  font-size: clamp(46px, 4.7vw, 66px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* This heading receives programmatic focus; visible focus stays on the choices. */
.age-gate__content h2:focus {
  outline: none;
}

.age-gate__description {
  max-width: 38ch;
  margin: 0 0 34px;
  color: var(--muted, #b8b5b2);
  font-size: 15px;
  line-height: 1.8;
}

/* <----- 03. CHOICES: clear entry action and a restrained exit link -----> */
.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 0;
}

.age-gate__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text, #f4f0eb);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.age-gate__button--enter {
  border-color: var(--red, #e50920);
  background: var(--red, #e50920);
  color: #fff;
  /* <----- ENTER BUTTON: clearer, slightly stronger label -----> */
font-size: 13px;
font-weight: 600;
letter-spacing: 0.02em;
}

.age-gate__button--enter:hover {
  border-color: #bd071a;
  background: #bd071a;
}

.age-gate__button--leave {
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted, #b8b5b2);
  text-decoration: underline;
  text-decoration-color: #625a55;
  text-underline-offset: 6px;
}

.age-gate__button--leave:hover {
  color: var(--text, #f4f0eb);
  text-decoration-color: currentColor;
}

.age-gate__button:focus-visible {
  outline: 2px solid var(--text, #f4f0eb);
  outline-offset: 5px;
}

/* <----- 04. MOBILE: cropped portrait behind the upper part of the entrance -----> */
@media (max-width: 700px) {
  .age-gate {
    padding: 0;
  }

  .age-gate__card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 520px;
    align-items: flex-end;
    margin-block: 0;
  }

  .age-gate__visual {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: auto;
  }

  .age-gate__visual img {
    object-position: 50% 20%;
  }

  .age-gate__visual::after {
    background: linear-gradient(180deg, rgb(9 9 9 / 10%), rgb(9 9 9 / 45%) 28%, rgb(9 9 9 / 93%) 50%, #090909 78%);
  }

  .age-gate__content {
    width: 100%;
    max-width: none;
    margin-top: clamp(180px, 30vh, 280px);
    padding: 32px 28px max(28px, env(safe-area-inset-bottom));
  }

  /* <----- MOBILE LOGO: center only the mark; keep the text left-aligned -----> */
  .age-gate__brand {
    width: 68px;
    margin-inline: auto;
    margin-bottom: 28px;
  }

  .age-gate__content h2 {
    font-size: clamp(44px, 10vw, 54px);
  }

  .age-gate__description {
    max-width: 38ch;
    margin-bottom: 28px;
    font-size: 14px;
  }

  .age-gate__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .age-gate__button--leave {
    align-self: center;
    padding-inline: 16px;
  }
}

/* Keep all content reachable in landscape windows and at enlarged text sizes. */
@media (max-height: 600px) {
  .age-gate[open] {
    align-items: start;
  }

  .age-gate__card {
    margin-block: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .age-gate__button {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }
}