/* ------------------------------------------------------------
   Página exclusiva · The Dark Knight · "Noite em Gotham"
   Céu noturno no palco, bat-sinal que acompanha o cursor e uma
   lanterna que revela a estátua. Tudo sobre produto.css.
------------------------------------------------------------ */

/* ---------- palco: noite em Gotham ---------- */
.s3x[data-theme="gotham"] .s3x-stage {
  background:
    radial-gradient(ellipse 80% 45% at 50% 105%, rgba(70, 78, 96, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 20%, rgb(18, 22, 32) 0%, rgb(6, 7, 10) 60%, rgb(0, 0, 0) 100%);
}
.gk-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* bat-sinal: segue o cursor de leve (--sx/--sy no .s3x-view) */
.gk-signal {
  position: absolute;
  left: calc(62% + var(--sx, 0px));
  top: calc(16% + var(--sy, 0px));
  transition: left 1.2s cubic-bezier(0, 0, 0.3642, 1), top 1.2s cubic-bezier(0, 0, 0.3642, 1);
}
.gk-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 900px;
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(var(--beam, 18deg));
  background: linear-gradient(to bottom, rgba(255, 238, 190, 0.16), rgba(255, 238, 190, 0) 80%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(6px);
  transition: transform 1.2s cubic-bezier(0, 0, 0.3642, 1);
}
.gk-disc {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: radial-gradient(closest-side, rgba(255, 236, 180, 0.42), rgba(255, 236, 180, 0.12) 75%, transparent);
  filter: blur(0.6px);
  animation: gk-flicker 6s infinite;
}
.gk-disc svg {
  width: 112px;
  fill: rgba(6, 7, 10, 0.88);
}
@keyframes gk-flicker {
  0%, 100% { opacity: 1; }
  46% { opacity: 1; }
  48% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* morcegos cruzando o céu */
.gk-bat {
  position: absolute;
  left: -60px;
  top: calc(8% + var(--i) * 6%);
  width: calc(14px + var(--i) * 3px);
  fill: rgba(0, 0, 0, 0.85);
  opacity: 0.7;
  animation: gk-fly calc(16s + var(--i) * 3s) linear infinite;
  animation-delay: calc(var(--i) * -4.3s);
}
@keyframes gk-fly {
  0% { transform: translate(0, 0) scaleY(1); }
  25% { transform: translate(30vw, -12px) scaleY(0.6); }
  50% { transform: translate(60vw, 10px) scaleY(1); }
  75% { transform: translate(90vw, -8px) scaleY(0.6); }
  100% { transform: translate(120vw, 0) scaleY(1); }
}

/* névoa no chão */
.gk-fog {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 32%;
  background: radial-gradient(ellipse 60% 70% at 30% 100%, rgba(150, 160, 180, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 100%, rgba(150, 160, 180, 0.1), transparent 70%);
  animation: gk-fog 18s ease-in-out infinite alternate;
}
@keyframes gk-fog {
  to { transform: translateX(6%); }
}

/* lanterna: escurece o palco e abre um círculo onde o mouse passa */
.gk-dark {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.55);
  -webkit-mask-image: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 45%), transparent 35%, #000 100%);
  mask-image: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 45%), transparent 35%, #000 100%);
  opacity: 0;
  transition: opacity 1.2s;
}
.s3x[data-theme="gotham"] .s3x-view.gk-night .gk-dark {
  opacity: 1;
}
.s3x[data-theme="gotham"] .s3x-light {
  background: radial-gradient(300px circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 236, 180, 0.08), transparent 70%);
}

/* ---------- painel ---------- */
.gk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(0, 0, 0);
}
.gk-eyebrow span {
  width: 24px;
  height: 1px;
  background: rgb(204, 5, 5);
}
.gk-edition {
  margin: -10px 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

/* ---------- história ---------- */
.gk-story {
  background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(40, 46, 62, 0.6), transparent 70%), rgb(5, 6, 9);
}
.gk-story .s3x-words .w.is-hl.is-on {
  color: rgb(255, 222, 140);
}

/* ---------- detalhes com lupa ---------- */
.gk-lens-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgb(0, 0, 0);
  cursor: none;
}
.gk-lens-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gk-lens-glass {
  position: absolute;
  left: var(--gx, 50%);
  top: var(--gy, 50%);
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background-repeat: no-repeat;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0, 0, 0.3642, 1);
  pointer-events: none;
}
.gk-lens-frame:hover .gk-lens-glass {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gk-lens-hint {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.gk-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.gk-stats strong {
  display: block;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: rgb(0, 0, 0);
}
.gk-stats span {
  font-size: 15px;
}

/* ---------- final ---------- */
.gk-final {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 236, 180, 0.1), transparent 70%), rgb(0, 0, 0);
}
.gk-final h2 {
  position: relative;
}
.gk-final-word {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-size: clamp(120px, 26vw, 420px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  pointer-events: none;
}
.gk-credit {
  position: relative;
  max-width: 620px;
  margin: 60px auto 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.gk-credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (max-width: 992px) {
  .gk-signal {
    left: 70%;
    top: 14%;
  }
  .gk-disc {
    width: 130px;
    height: 84px;
  }
  .gk-disc svg {
    width: 78px;
  }
  .gk-stats strong {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gk-bat,
  .gk-fog,
  .gk-disc {
    animation: none;
  }
}
