/* HOTSITE DE FORGOTTEN LINK: usa a identidade do site (base.css, ui.css e style.css da home);
   aqui ficam só as peças próprias da página, prefixadas com fl-. */

/* HERO: sempre escuro, com a arte dos protagonistas nas laterais */
.fl-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(600px, 86vh, 780px);
  padding: calc(var(--vm-header-h) + 40px) 0 72px;
  overflow: hidden;
  background: #14070f;
  color: #fbeff4;
  text-align: center;
}

.fl-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 62% at 50% 52%, rgba(20, 7, 15, 0.92) 0%, rgba(20, 7, 15, 0.7) 55%, rgba(20, 7, 15, 0.15) 100%),
    linear-gradient(180deg, rgba(20, 7, 15, 0.35) 0%, transparent 30%, transparent 70%, #14070f 100%),
    url("/images/forgotten-link/hero.jpg") center / cover no-repeat;
}

.fl-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fl-hero .eyebrow {
  color: var(--vm-orange);
}

.fl-logo {
  margin: 8px 0 0;
}

.fl-logo img {
  display: block;
  width: min(560px, 86vw);
  height: auto;
  margin: -28px 0 -14px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

.fl-tagline {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
}

.fl-tagline em,
.fl-title em {
  color: var(--vm-orange);
  font-style: normal;
}

.fl-lead {
  max-width: 600px;
  margin: 16px 0 0;
  color: #e9d6e0;
  font-size: 18px;
  line-height: 1.55;
}

.fl-actions {
  justify-content: center;
  margin-top: 28px;
}

.fl-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fl-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: #cdb4c2;
  font-size: 14px;
}

.fl-platform img {
  width: auto;
  height: 20px;
}

/* NAVEGAÇÃO DA PÁGINA: gruda logo abaixo do cabeçalho do site */
.fl-nav {
  position: sticky;
  top: var(--vm-header-h);
  z-index: 900;
  background: var(--vm-header-bg);
  border-bottom: 1px solid var(--vm-line);
  backdrop-filter: blur(10px);
}

.fl-nav-inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-page main .fl-nav a {
  flex: 0 0 auto;
  padding: 14px 14px 12px;
  border-bottom: 3px solid transparent;
  color: var(--vm-text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-page main .fl-nav a:hover,
.home-page main .fl-nav a[aria-current] {
  border-bottom-color: var(--vm-orange);
  color: var(--vm-text);
}

.fl-page .section {
  scroll-margin-top: calc(var(--vm-header-h) + 48px);
}

/* TÍTULOS E MOLDURA DE TELA */
.fl-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 46px);
}

.fl-head {
  max-width: 760px;
  margin-bottom: 36px;
}

/* Moldura em pixel: borda escura, contorno laranja e sombra chapada carmesim */
.fl-screen {
  border: 3px solid #1a0610;
  border-radius: 8px;
  box-shadow:
    0 0 0 3px var(--vm-orange),
    12px 12px 0 3px var(--vm-crimson-deep);
}

.trailer-frame.fl-screen {
  border-radius: 8px;
}

/* UNIVERSO */
.fl-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.fl-split p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
}

.fl-world {
  margin: 0;
  overflow: hidden;
  background: #000;
}

.fl-world img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.fl-routes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
}

.fl-route {
  --route: var(--vm-crimson);
  position: relative;
  padding: 26px 26px 26px 104px;
  overflow: hidden;
  background: var(--vm-surface);
  border: 1px solid var(--vm-line);
  border-left: 6px solid var(--route);
  border-radius: var(--vm-radius);
  box-shadow: var(--vm-shadow);
}

.fl-route-south {
  --route: var(--vm-orange);
}

.fl-route-mark {
  position: absolute;
  top: 50%;
  left: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translateY(-50%) rotate(-6deg);
  border-radius: 14px;
  background: var(--route);
  box-shadow: 0 5px 0 var(--vm-plum);
  color: #fff;
  font-family: "Redonda", system-ui, sans-serif;
  font-size: 30px;
}

.fl-route-label {
  margin: 0 0 4px;
  color: var(--route);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fl-route h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.fl-route p:last-child {
  margin: 0;
}

.fl-versus {
  color: var(--vm-orange);
  font-size: 40px;
}

/* COMBATE */
.fl-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fl-feature {
  overflow: hidden;
  background: var(--vm-surface);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius);
  box-shadow: var(--vm-shadow);
}

.fl-feature-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.fl-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.fl-feature-art span {
  position: absolute;
  left: 16px;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--vm-orange), var(--vm-orange-deep));
  box-shadow: 0 4px 0 var(--vm-plum);
  color: var(--vm-on-accent);
  font-weight: 800;
}

.fl-feature h3 {
  margin: 30px 22px 8px;
  font-size: 24px;
}

.fl-feature p {
  margin: 0 22px 24px;
  line-height: 1.6;
}

/* MONSTROS */
.fl-monster-grid {
  grid-template-columns: repeat(6, 1fr);
}

/* GALERIA */
.fl-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fl-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  box-shadow: var(--vm-shadow);
}

.fl-shot-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.fl-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.25s ease;
}

.fl-shot:hover img {
  transform: scale(1.04);
}

.fl-shot:focus-visible {
  outline: 3px solid var(--vm-orange);
  outline-offset: 3px;
}

.fl-shot-label {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(20, 7, 15, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fl-note {
  margin: 14px 0 0;
  color: var(--vm-text-muted);
  font-size: 14px;
}

/* CHAMADA DA DEMO: faixa carmesim com textura da identidade */
.fl-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0;
  background:
    radial-gradient(circle at 85% 40%, rgba(247, 148, 29, 0.35), transparent 45%),
    linear-gradient(120deg, var(--vm-crimson) 0%, var(--vm-crimson-deep) 55%, var(--vm-plum) 100%);
  color: #fff;
}

.fl-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/ui/card-texture.webp") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.fl-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.fl-cta .eyebrow {
  color: #ffd29a;
}

.fl-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
}

.fl-cta p {
  max-width: 560px;
  color: #ffe6ee;
  font-size: 17px;
  line-height: 1.6;
}

.fl-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.fl-cta-note {
  margin-top: 18px;
  font-size: 14px !important;
  opacity: 0.85;
}

.fl-cta-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  justify-self: center;
  transform: rotate(-4deg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

/* GALERIA AMPLIADA (forgotten-link/main.js) */
.gallery-open {
  overflow: hidden;
}

.gallery-dialog {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  background: #14070f;
  border: 1px solid #4a1f3a;
  border-radius: 16px;
  color: #fbeff4;
}

.gallery-dialog::backdrop {
  background: rgba(10, 3, 8, 0.9);
  backdrop-filter: blur(8px);
}

.gallery-toolbar,
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.gallery-toolbar {
  margin-bottom: 14px;
}

.gallery-dialog button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #4a1f3a;
  border-radius: 10px;
  background: #26101f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gallery-dialog button:hover {
  border-color: var(--vm-orange);
}

.gallery-dialog figure {
  margin: 0;
}

.gallery-dialog figure > img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 215px);
  object-fit: contain;
  image-rendering: pixelated;
}

.gallery-dialog figcaption {
  padding-block: 12px;
  color: #d9c3cf;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .fl-monster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .fl-split,
  .fl-cta-inner {
    grid-template-columns: 1fr;
  }

  .fl-features {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .fl-routes {
    grid-template-columns: 1fr;
  }

  .fl-versus {
    justify-self: center;
    margin: -8px 0;
  }

  .fl-cta-logo {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .fl-nav-inner {
    justify-content: flex-start;
  }

  .fl-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .fl-monster-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fl-screen {
    box-shadow:
      0 0 0 3px var(--vm-orange),
      6px 6px 0 3px var(--vm-crimson-deep);
  }

  .fl-route {
    padding-left: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-shot img {
    transition: none;
  }
}

.fl-page .eyebrow {
  color: var(--vm-orange);
}

@media (max-width: 760px) {
  .fl-platform {
    flex-wrap: wrap;
    justify-content: center;
  }
}
