@keyframes media-rise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    filter: drop-shadow(0 0 0 rgba(61, 43, 255, 0));
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 24px rgba(61, 43, 255, 0.6));
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress-aura {
  from {
    transform: translateX(-55%);
  }

  to {
    transform: translateX(55%);
  }
}

/* Borda do portal: gradiente que percorre continuamente */
@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Linha de varredura sci-fi no video */
@keyframes scan-move {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateY(460%);
    opacity: 0;
  }
}

/* Reveal geral do portal */
.is-detecting .portal,
.is-detecting .stars {
  opacity: 0;
}

.is-detecting .portal *,
.is-detecting .progress__bar {
  animation-play-state: paused;
}

.is-ready .portal,
.is-ready .stars {
  opacity: 1;
  transition: opacity 500ms var(--ease-out-expo);
}

.is-ready .progress__bar {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .portal__scan {
    display: none;
  }
}
