/* NSFW Nation — age gate (centered + restricted tapes) */

.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding:
    calc(1rem + env(safe-area-inset-top, 0px))
    1rem
    calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 50% 42%, rgba(220, 20, 38, 0.28), transparent 62%),
    radial-gradient(ellipse 40% 35% at 18% 80%, rgba(90, 0, 10, 0.4), transparent 55%),
    radial-gradient(ellipse 35% 30% at 85% 15%, rgba(90, 0, 10, 0.35), transparent 50%),
    linear-gradient(160deg, #050405 0%, #140a0c 45%, #070506 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.age-gate-modal.is-open {
  opacity: 1;
  visibility: visible;
}

html.age-gate-skip .age-gate-modal {
  display: none;
}

/* Hazard / restricted tapes */
.age-gate-tapes {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.age-gate-tape {
  position: absolute;
  left: -20%;
  display: flex;
  align-items: center;
  width: 140%;
  height: 2.35rem;
  padding: 0 1rem;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(10, 6, 7, 0.92);
  font-family: Archivo, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(
      -45deg,
      #dc1426 0 12px,
      #1a0a0c 12px 24px
    );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.55;
}

.age-gate-tape--a {
  top: 12%;
  transform: rotate(-14deg);
  opacity: 0.42;
}

.age-gate-tape--b {
  top: 28%;
  transform: rotate(9deg);
  opacity: 0.5;
  background:
    repeating-linear-gradient(
      -45deg,
      #8a0010 0 12px,
      #0c0809 12px 24px
    );
  color: rgba(255, 210, 214, 0.88);
}

.age-gate-tape--c {
  top: 48%;
  transform: rotate(-7deg);
  opacity: 0.38;
  height: 2.1rem;
}

.age-gate-tape--d {
  top: 68%;
  transform: rotate(12deg);
  opacity: 0.48;
  background:
    repeating-linear-gradient(
      -45deg,
      #ff1f33 0 11px,
      #12080a 11px 22px
    );
}

.age-gate-tape--e {
  top: 84%;
  transform: rotate(-11deg);
  opacity: 0.4;
  background:
    repeating-linear-gradient(
      -45deg,
      #8a0010 0 12px,
      #0c0809 12px 24px
    );
  color: rgba(255, 210, 214, 0.85);
}

.age-gate-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 28rem);
  max-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 2px solid rgba(220, 20, 38, 0.55);
  border-radius: 0.12rem;
  background:
    linear-gradient(180deg, rgba(18, 10, 12, 0.94) 0%, rgba(8, 6, 7, 0.96) 100%);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    8px 8px 0 rgba(90, 0, 10, 0.4),
    0 1.5rem 3rem rgba(0, 0, 0, 0.55);
  text-align: center;
  overflow: auto;
  gap: clamp(0.45rem, 1.3vh, 0.85rem);
}

.age-gate-panel::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid rgba(220, 20, 38, 0.28);
  pointer-events: none;
}

.age-gate-panel::after {
  display: none;
}

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  flex-shrink: 0;
}

.age-gate-badge__mark {
  display: grid;
  width: clamp(2.2rem, 4.8vh, 2.65rem);
  height: clamp(2.2rem, 4.8vh, 2.65rem);
  place-items: center;
  border: 2px solid #ff1f33;
  border-radius: 0.1rem;
  background: #dc1426;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 4px 4px 0 rgba(90, 0, 10, 0.55);
}

.age-gate-badge__label {
  color: rgba(240, 238, 236, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem 0 0.25rem;
  flex-shrink: 0;
  filter: drop-shadow(4px 4px 0 rgba(90, 0, 10, 0.45));
}

.age-gate-kicker {
  margin: 0;
  color: #ff1f33;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.age-gate-title {
  margin: 0;
  max-width: 16ch;
  font-family: Archivo, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 4.2vh + 0.35rem, 2.45rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  flex-shrink: 0;
  text-wrap: balance;
}

.age-gate-text {
  margin: 0;
  max-width: 26rem;
  color: rgba(240, 238, 236, 0.68);
  font-size: clamp(0.8rem, 1.5vh + 0.35rem, 0.9rem);
  font-weight: 400;
  line-height: 1.5;
  flex-shrink: 1;
}

.age-gate-text a {
  color: #ff1f33;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.age-gate-text a:hover {
  color: #fff;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: min(100%, 20rem);
  margin: 0.25rem 0 0;
  flex-shrink: 0;
}

.age-gate-btn {
  width: 100%;
  min-height: clamp(2.55rem, 5.4vh, 3rem);
  padding: 0.6rem 1.15rem;
  border-radius: 0.1rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.age-gate-btn:active {
  transform: translate(2px, 2px);
}

.age-gate-btn--confirm {
  border: 0;
  background: #dc1426;
  color: #fff;
  box-shadow: 5px 5px 0 rgba(90, 0, 10, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.age-gate-btn--confirm:hover {
  background: #ff1f33;
}

.age-gate-btn--deny {
  border: 1px solid rgba(240, 238, 236, 0.16);
  border-radius: 0.1rem;
  background: transparent;
  color: rgba(240, 238, 236, 0.55);
  font-weight: 650;
  min-height: 2.2rem;
  box-shadow: none;
}

.age-gate-btn--deny:hover {
  color: rgba(240, 238, 236, 0.92);
  border-color: rgba(240, 238, 236, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
  .age-gate-panel {
    width: min(100%, 24rem);
    padding: 1.1rem 1rem 1rem;
  }

  .age-gate-tape {
    height: 1.85rem;
    font-size: 0.68rem;
  }

  .age-gate-title {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate-tape {
    opacity: 0.28;
  }
}
