/* ==========================================================================
   FEATURES EXCLUSIVAS — mosaico inclinado (6 painéis) + mapa de Aden ao fundo
   Esquerda: título, texto, botão e o mapa do L2 estilizado em esmeralda.
   Direita: 3 fileiras de painéis em paralelogramo; as artes saem pelo topo do painel.
   Carregar depois do launcher-ui.css.
   ========================================================================== */

/* títulos de seção: todos no mesmo tamanho do "Notícias e guias" */
.features-title, .other-features-title, .lineage-title, .faq-title, .videos-title {
  font-size: clamp(30px, 4.4vw, 52px) !important; line-height: 1.05 !important;
}

.fx2 {
  --rh: clamp(178px, 12.6vw, 236px);          /* altura de cada fileira */
  --sl: calc(var(--rh) * .3);                 /* deslocamento da inclinação */
  --gap: 12px;
  position: relative; overflow: hidden; padding: 72px 0 84px !important;
}
.fx2 .features-title::before { content: none !important; }

/* mapa de Aden: fundo da seção inteira, deitado em perspectiva (mesa de mapa), apagado, sem brilho */
.fx2-map {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  perspective: 1100px; perspective-origin: 50% 0%;
  -webkit-mask-image: radial-gradient(52% 60% at 42% 52%, #000 30%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 30%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(52% 60% at 42% 52%, #000 30%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 30%, #000 78%, transparent 100%);
          mask-composite: intersect;
}
.fx2-map::before {
  content: ''; position: absolute; left: -12%; right: -12%; top: -55%; bottom: -55%;
  background: url('img/ascension/features/mapa-aden.webp') 46% 50% / 56% auto no-repeat;
  transform: rotateX(56deg) rotateZ(-22deg) translateY(-2%);
  transform-origin: 50% 50%;
  opacity: .42;
}

.fx2-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(320px, .78fr) 1.5fr; align-items: center; gap: 24px;
  padding-left: max(24px, calc((100vw - 1440px) / 2 + 24px));
}

/* ---------- coluna do texto ---------- */
.fx2-copy { position: relative; max-width: 470px; }
.fx2-copy .features-title { margin: 6px 0 18px; }
.fx2-lead { margin: 0 0 28px; font-family: var(--e-sans); font-size: 17px; line-height: 1.6; color: var(--e-body, #c9d6d1); }
.fx2-cta { min-width: 210px; }
.fx2-all { display: block; margin-top: 22px; text-decoration: none; }
.fx2-all-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 14px;
  font-family: var(--l-cond, sans-serif); font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  color: #02201a; background: var(--l-gold, #e2b65c);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.fx2-all-tag::before {
  content: ''; width: 13px; height: 13px; background: #02201a;
  -webkit-mask: url('img/ascension/estrela-ascension.svg') center / contain no-repeat;
          mask: url('img/ascension/estrela-ascension.svg') center / contain no-repeat;
}
.fx2-all small { display: block; margin-top: 8px; font-family: var(--e-sans); font-size: 14px; color: var(--e-muted, #8ea39c); }
.fx2-all:hover .fx2-all-tag { background: #2fe0c0; }

/* ---------- mosaico ---------- */
.fx2-mosaic { position: relative; padding-top: 70px; margin-right: calc(var(--sl) * -1); }
.fx2-row { display: flex; height: var(--rh); margin-bottom: calc(var(--gap) * 2.4); }
.fx2-row.r1 { margin-left: calc((var(--sl) + var(--gap) * .3) * 2); }
.fx2-row.r2 { margin-left: calc(var(--sl) + var(--gap) * .3); }
.fx2-row.r3 { margin-left: 0; }
.fx2-row .fx2-panel:first-child { flex: 0 0 54%; }
.fx2-row.r2 .fx2-panel:first-child { flex-basis: 47%; }
.fx2-row.r3 .fx2-panel:first-child { flex-basis: 52%; }
.fx2-row .fx2-panel:last-child { flex: 1 1 auto; margin-left: calc(var(--gap) - var(--sl)); }

.fx2-panel { position: relative; display: block; height: 100%; text-decoration: none; }
.fx2-panel:hover .fx2-art { z-index: 3; }

/* o painel: paralelogramo no padrão dos botões do launcher — cantos chanfrados (sup. esq. e inf. dir.),
   contorno dourado fino e miolo esmeralda escuro. O painel 06 fica só com o contorno. */
.fx2-bg {
  --c: 14px;
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(226, 182, 92, .9), rgba(226, 182, 92, .45) 55%, rgba(226, 182, 92, .85));
  clip-path: polygon(evenodd,
    calc(var(--sl) + var(--c)) 0, 100% 0, calc(100% - var(--sl) + var(--c) * .3) calc(100% - var(--c)), calc(100% - var(--sl) - var(--c)) 100%, 0 100%, calc(var(--sl) - var(--c) * .3) var(--c), calc(var(--sl) + var(--c)) 0,
    calc(var(--sl) + var(--c) + .6px) 1.5px, calc(var(--sl) - var(--c) * .3 + 1.2px) calc(var(--c) + .6px), 1.8px calc(100% - 1.5px), calc(100% - var(--sl) - var(--c) - .6px) calc(100% - 1.5px), calc(100% - var(--sl) + var(--c) * .3 - 1.2px) calc(100% - var(--c) - .6px), calc(100% - 1.8px) 1.5px, calc(var(--sl) + var(--c) + .6px) 1.5px);
  transition: background .35s ease;
}
.fx2-panel::before {   /* miolo (fica no painel, fora do recorte do anel) */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 14, .82) 0%, rgba(4, 16, 14, .55) 30%, rgba(4, 16, 14, .08) 58%, rgba(4, 16, 14, 0) 70%),
    linear-gradient(0deg, rgba(4, 16, 14, .35), transparent 45%),
    var(--pbg, linear-gradient(180deg, #0f3a34, #051512)) center / cover no-repeat;
  clip-path: polygon(calc(var(--sl) + var(--c) + .6px) 1.5px, calc(100% - 1.8px) 1.5px, calc(100% - var(--sl) + var(--c) * .3 - 1.2px) calc(100% - var(--c) - .6px), calc(100% - var(--sl) - var(--c) - .6px) calc(100% - 1.5px), 1.8px calc(100% - 1.5px), calc(var(--sl) - var(--c) * .3 + 1.2px) calc(var(--c) + .6px));
}
.fx2-panel { --c: 14px; }
.fx2-panel.p6::before { display: none; }
.fx2-panel.p1 { --pbg: url('img/ascension/features/bg-p1.webp'); }
.fx2-panel.p2 { --pbg: url('img/ascension/features/bg-p2.webp'); }
.fx2-panel.p3 { --pbg: url('img/ascension/features/bg-p3.webp'); }
.fx2-panel.p4 { --pbg: url('img/ascension/features/bg-p4.webp'); }
.fx2-panel.p5 { --pbg: url('img/ascension/features/bg-p5.webp'); }
.fx2-panel:hover .fx2-bg { background: linear-gradient(180deg, #8ff4df, rgba(47, 224, 192, .55) 55%, #2fe0c0); }

/* a arte fica numa "janela" do tamanho do quadro: DENTRO da caixa ela é cortada pela base e pelas laterais
   inclinadas; ACIMA do topo fica livre (é o efeito de sair do quadro). */
.fx2-art {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: polygon(-200% -400%, 300% -400%, 300% 0, 100% 0, calc(100% - var(--sl)) calc(100% - 1.5px),
                     1.5px calc(100% - 1.5px), var(--sl) 0, -200% 0);
}
.fx2-art img {
  position: absolute; right: var(--ar, var(--sl)); bottom: var(--ad, 1.5px);
  width: auto; height: var(--ah, 134%); max-width: var(--aw, 46%);
  object-fit: contain; object-position: 100% 100%;
  transform: rotate(var(--rot, 0deg)); transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.fx2-panel:hover .fx2-art img { transform: translateY(-6px) rotate(var(--rot, 0deg)); }

/* posição de cada arte (--ar direita, --ad base, --ah altura, --aw largura máx., --rot giro) */
.fx2-panel.p1 { --ar: calc(var(--sl) * .35); --ad: -16%; --ah: 158%; --aw: 52%; }              /* Codex: desce, cortado pela base e pela lateral; asas por cima */
.fx2-panel.p2 { --ar: calc(var(--sl) + 26px); --ad: -24%; --ah: 150%; --aw: 46%; --rot: 9deg; } /* Titles: desce e gira no sentido horário */
.fx2-panel.p3 { --ar: calc(var(--sl) * .1); --ad: -6%; --ah: 160%; --aw: 53%; }               /* Montarias: mais à direita, maior, sai pelo topo */
.fx2-panel.p4 { --ar: calc(var(--sl) + 18px); --ad: -10%; --ah: 120%; --aw: 42%; }                          /* Talents: aprovado */
.fx2-panel.p5 { --ar: calc(var(--sl) * .3); --ad: -12%; --ah: 154%; --aw: 50%; }               /* Homunculus: mais à direita, maior, sai pelo topo */
.fx2-panel.p6 { --ar: calc(var(--sl) + 4px); --ad: -10%; --ah: 140%; --aw: 41%; }              /* Guaranteed */

/* rótulo: número / nome, linha curta e o botão */
.fx2-label {
  position: absolute; left: calc(var(--sl) * .8 + 16px); bottom: 20%; z-index: 4; max-width: 32%;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--l-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}
.fx2-label b { font-weight: 700; font-size: clamp(15px, 1.15vw, 19px); color: #fff; }
.fx2-label em { font-style: normal; font-weight: 700; font-size: clamp(17px, 1.3vw, 23px); color: var(--l-gold, #e2b65c); margin-top: 2px; }
.fx2-label small { margin-top: 6px; font-family: var(--e-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: rgba(238, 246, 242, .85); }
.fx2-more {
  margin-top: 12px; padding: 7px 22px 7px 16px;
  font-family: var(--l-cond, sans-serif); font-size: 15px; letter-spacing: .1em; color: #241703; text-shadow: none;
  background: linear-gradient(180deg, #f0cd7c, #e2b65c 55%, #c9973f);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .25s ease;
}
.fx2-panel:hover .fx2-more { background: linear-gradient(180deg, #8ff4df, #2fe0c0); color: #02201a; }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .fx2-inner { grid-template-columns: 1fr; padding: 0 24px; }
  .fx2-copy { max-width: 640px; }
  .fx2-map { width: 100%; height: 520px; bottom: auto; }
  .fx2-all { margin-top: 20px; }
}
@media (max-width: 680px) {
  .fx2 { --sl: 0px; --rh: 210px; }
  .fx2-row { flex-direction: column; height: auto; margin-left: 0 !important; }
  .fx2-row .fx2-panel { flex: none !important; height: var(--rh); margin: 0 0 var(--gap) !important; }
  .fx2-mosaic { padding-top: 40px; margin-right: 0; }
  .fx2-row .fx2-panel { --ar: 4%; --ad: 0px; --ah: 118%; --aw: 48%; --rot: 0deg; }
  .fx2-label { left: 18px; max-width: 50%; }
}
@media (prefers-reduced-motion: reduce) { .fx2-art img { transition: none; } }
