/* OUVIR FX ENGINE — estilos exclusivos do motor.
   Só atua em elementos marcados com data-ofx ou classes .ofx-*; não altera o layout existente. */

.ofx-marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ofx-marquee > .ofx-marquee-track {
  display: flex;
  width: max-content;
  animation: ofx-marquee-scroll 26s linear infinite;
}
.ofx-marquee > .ofx-marquee-track > .ofx-marquee-copy {
  flex: none;
  padding-right: 2rem;
}
@keyframes ofx-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ofx-marquee:hover > .ofx-marquee-track { animation-play-state: paused; }

.ofx-tilting { transition: none !important; }

.ofx-scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}
.ofx-scroll-progress-bar {
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #0891b2, #20d9ff, #96f7b3);
  box-shadow: 0 0 12px rgba(32, 217, 255, .55);
}

html[data-ofx-transition] body { transition: opacity 160ms ease; }
html.ofx-leaving body { opacity: 0; }

.ofx-confetti { will-change: transform, opacity; }

/* Camada musical dedicada no player; não substitui o canvas existente. */
.ofx-player-notes,
.ofx-player-notes.ofx-canvas-host {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: .55;
}

.ofx-cosmetic-off [data-ofx-tier="cosmetic"] {
  animation: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ofx-marquee > .ofx-marquee-track,
  .ofx-marquee > .ofx-marquee-clone { animation: none !important; }
  html.ofx-leaving body { transition: none !important; }
}
