/* SechsAI — age gate cinematográfico (vídeo + minimalismo IR) */

.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

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

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

.age-gate-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding:
    calc(1.75rem + env(safe-area-inset-top, 0px))
    clamp(1rem, 4vw, 1.75rem)
    calc(1.75rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: #fff;
  box-shadow: none;
  overflow: auto;
  transform: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.age-gate-panel::before {
  display: none;
  content: none;
}

/* --- Vídeo de fundo --- */
.age-gate-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.age-gate-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Vinheta: vídeo visível nas bordas, centro legível */
.age-gate-fx--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 78% 68% at 50% 42%,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.68) 58%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.38) 35%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.age-gate-kicker,
.age-gate-stein-wrap,
.age-gate-hud,
.age-gate-foot,
.age-gate-text {
  display: none !important;
}

/* --- Conteúdo flutuante (sem card) --- */
.age-gate-card,
.age-gate-card--ir,
.age-gate-card--minimal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 32rem);
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.age-gate-brand .site-brand-logo--age-gate {
  flex-direction: row;
  align-items: center;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  max-width: min(96vw, 26rem);
  gap: 0.45rem;
}

.age-gate-brand .site-brand-logo--age-gate .site-brand-logo__mark {
  width: clamp(2.1rem, 6vw, 2.6rem);
  height: clamp(2.1rem, 6vw, 2.6rem);
  filter: drop-shadow(0 0.25rem 0.6rem rgba(0, 0, 0, 0.45));
}

.age-gate-brand .site-brand-logo--age-gate .site-brand-logo__word {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  text-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.55);
}

/* --- Idioma --- */
.age-gate-lang {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 17.5rem);
  margin: 0 auto 1.65rem;
}

.age-gate-lang__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.age-gate-lang__trigger:hover,
.age-gate-lang.is-open .age-gate-lang__trigger {
  background: rgba(22, 22, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.26);
}

.age-gate-lang__flag {
  width: 1.2rem;
  height: 0.9rem;
  object-fit: cover;
  border-radius: 0.1rem;
  flex-shrink: 0;
}

.age-gate-lang__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}

.age-gate-lang__caret {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  line-height: 1;
}

.age-gate-lang__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  z-index: 5;
  width: 100%;
  max-height: 13rem;
  overflow: auto;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: rgba(14, 14, 14, 0.96);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.age-gate-lang__menu[hidden] {
  display: none !important;
}

.age-gate-lang .ir-lang__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.age-gate-lang .ir-lang__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.age-gate-lang .ir-lang__option.is-selected {
  background: rgba(221, 0, 0, 0.16);
}

.age-gate-lang .ir-lang__option-flag {
  width: 1.15rem;
  height: 0.85rem;
  object-fit: cover;
  border-radius: 0.08rem;
}

.age-gate-lang .ir-lang__option-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.age-gate-lang .ir-lang__option-check {
  color: #dd0000;
  opacity: 0;
}

.age-gate-lang .ir-lang__option.is-selected .ir-lang__option-check {
  opacity: 1;
}

.age-gate-lang__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
  text-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.55);
}

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

.age-gate-lang__alt[hidden] {
  display: none !important;
}

.age-gate-lang__alt-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.age-gate-lang__alt-flags img {
  display: block;
  border-radius: 0.06rem;
}

/* --- Tipografia --- */
.age-gate-title {
  margin: 0 0 0.75rem;
  max-width: 26rem;
  font-size: clamp(1.65rem, 4.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.55);
}

.age-gate-lead {
  margin: 0 auto 1.25rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.5);
}

.age-gate-confirm-intro {
  margin: 0 auto 0.55rem;
  max-width: 30rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 0.1rem 0.45rem rgba(0, 0, 0, 0.5);
}

.age-gate-bullets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.65rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.age-gate-bullets li {
  position: relative;
  max-width: 26rem;
  padding-left: 0.95rem;
  text-align: center;
  text-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.45);
}

.age-gate-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Ações --- */
.age-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: min(100%, 26rem);
  margin: 0 auto;
}

.age-gate-btn {
  width: 100%;
  min-width: 0;
  flex: none;
  min-height: 3.2rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: clamp(0.76rem, 2.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.age-gate-btn:active {
  transform: scale(0.985);
}

.age-gate-btn--confirm {
  border: 0;
  background: #dd0000;
  color: #fff;
  box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.35);
  text-transform: none;
}

.age-gate-btn--confirm:hover {
  background: #ff1a1a;
  filter: none;
}

.age-gate-btn--confirm::after {
  display: none !important;
  content: none !important;
}

.age-gate-btn--deny {
  border: 1.5px solid rgba(221, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.28);
  color: #ff4d4d;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.age-gate-btn--deny:hover {
  background: rgba(221, 0, 0, 0.12);
  border-color: #ff1a1a;
  color: #ff6b6b;
}

body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .age-gate-panel {
    justify-content: flex-start;
    padding-top: calc(1.35rem + env(safe-area-inset-top, 0px));
  }

  .age-gate-card {
    width: min(100%, 22.5rem);
  }

  .age-gate-brand {
    margin-bottom: 0.95rem;
  }

  .age-gate-lang {
    width: min(100%, 16rem);
    margin-bottom: 1.35rem;
  }

  .age-gate-title {
    font-size: 1.5rem;
    max-width: 18rem;
  }

  .age-gate-lead {
    font-size: 0.86rem;
    margin-bottom: 1.05rem;
  }

  .age-gate-bullets {
    gap: 0.35rem;
    margin-bottom: 1.35rem;
    font-size: 0.8rem;
  }

  .age-gate-actions {
    width: min(100%, 22rem);
  }

  .age-gate-btn {
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.74rem;
  }
}

@media (max-height: 720px) {
  .age-gate-brand {
    margin-bottom: 0.75rem;
  }

  .age-gate-lang {
    margin-bottom: 1rem;
  }

  .age-gate-lead {
    margin-bottom: 0.9rem;
  }

  .age-gate-bullets {
    margin-bottom: 1.15rem;
    gap: 0.28rem;
  }
}
