/* ══ v11 · Microefeitos (gramática da Basis Theory, 10/11/2026) ════════════
 * Acréscimos sem mudar layout: pulso de luz nas divisórias e brilho que varre o
 * topo do plano no hover. Os parafusos do plano Ouro saíram na rodada 2 (cópia
 * literal da Basis, apontada pela banca). Desliga com ?fx=0 (html[data-fx="off"]).
 */

/* 1 · pulso que desce pela divisória quando a faixa entra na tela */
html.fx .v8-specs li,
html.fx .pm-col + .pm-col {
  position: relative;
}
html.fx .v8-specs li:not(:first-child)::after,
html.fx .pm-col + .pm-col:not([data-featured], [data-featured] + .pm-col)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(106, 166, 234, 0.95), transparent);
  opacity: 0;
  pointer-events: none;
}
html.fx .v8-specs.fx-run li::after,
html.fx .pm-grid.fx-run .pm-col:not([data-featured])::after {
  animation: fx-drop 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
html.fx .v8-specs.fx-run li:nth-child(3)::after,
html.fx .pm-grid.fx-run .pm-col:nth-child(3):not([data-featured])::after {
  animation-delay: 0.12s;
}
html.fx .v8-specs.fx-run li:nth-child(4)::after,
html.fx .pm-grid.fx-run .pm-col:nth-child(4):not([data-featured])::after {
  animation-delay: 0.24s;
}
@keyframes fx-drop {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--fx-drop, 90px));
  }
}
html.fx .pm-col + .pm-col:not([data-featured])::after {
  --fx-drop: 420px;
}

/* 2 · brilho que varre o topo do plano no hover (a luz corre pela aresta) */
html.fx .pm-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 242, 238, 0.85), transparent) no-repeat;
  background-size: 38% 100%;
  background-position: -60% 0;
  opacity: 0;
  pointer-events: none;
  transition:
    background-position 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s;
}
html.fx .pm-col:hover::before {
  opacity: 1;
  background-position: 160% 0;
}

/* dígitos em troca: sem seleção acidental */
.fx-decoding {
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  html.fx .pm-col::before {
    transition: none;
  }
  html.fx .v8-specs li::after,
  html.fx .pm-col::after {
    animation: none !important;
  }
}
