/*
 * Abertura do OPO Transfer: avião 3D e rasto dourado (ver inc/intro.php e assets/js/intro.js).
 * As regras mínimas para não piscar estão no <head> (inc/intro.php).
 */

.opo-intro {
  --oi-navy: #06152b;
  --oi-navy-2: #0b2547;
  --oi-gold: #d6a11c;
  --oi-gold-light: #ffd66e;

  overflow: hidden;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

/* Céu: azul-marinho com profundidade */
.opo-intro-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 38%, var(--oi-navy-2) 0%, var(--oi-navy) 55%, #030b18 100%);
}

.opo-intro-glow {
  position: absolute;
  top: 40%;
  left: 54%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, rgba(255, 214, 140, .16) 0%, rgba(214, 161, 28, .05) 35%, transparent 65%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
}

.opo-intro-horizon {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 110, .55) 50%, transparent);
  box-shadow: 0 0 24px 2px rgba(214, 161, 28, .35);
  transform: scaleX(0);
  opacity: .8;
}

.opo-intro-stars {
  position: absolute;
  inset: 0;
}

.opo-intro-star {
  top: 40%;
  left: 54%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: #fff;
  border-radius: 50%;
  will-change: transform, opacity;
}

.opo-intro-star.is-gold {
  background: var(--oi-gold-light);
  box-shadow: 0 0 6px rgba(255, 214, 110, .9);
}

/* Rasto do avião */
.opo-intro-trail {
  overflow: visible;
  pointer-events: none;
}

.opo-intro-trail path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.opo-intro-path-glow {
  stroke: url(#opo-intro-gold);
  stroke-width: 10;
  opacity: .18;
}

.opo-intro-path-core {
  stroke: url(#opo-intro-gold);
  stroke-width: 3.5;
}

.opo-intro-path-shine {
  stroke: #fff8e1;
  stroke-width: 1;
  opacity: .7;
}

.opo-intro-path-guide {
  stroke: none;
}

/* Avião */
.opo-intro-plane {
  perspective: 600px;
  will-change: transform;
  pointer-events: none;
}

.opo-intro-plane-3d {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 8px rgba(255, 214, 110, .45)) drop-shadow(0 22px 22px rgba(0, 0, 0, .4));
}

.opo-intro-nav-red { fill: #ff4d4d; }
.opo-intro-nav-green { fill: #3dff8a; }
.opo-intro-nav-white { fill: #ffffff; }

.opo-intro-nav {
  animation: oi-blink 1.1s steps(1) infinite;
}

.opo-intro-nav-white {
  animation-duration: .7s;
}

@keyframes oi-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: .15; }
}
