/* Loaded before the app bundle so the first paint already carries the brand. */
.vygo-startup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1c352b 0%, #10271e 75%);
  color: #fffdf5;
  opacity: 1;
  transition: opacity 450ms ease, visibility 450ms;
}

.vygo-startup--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vygo-startup__content {
  display: grid;
  justify-items: center;
  gap: 30px;
  width: min(260px, 72vw);
}

.vygo-startup__logo {
  display: block;
  width: 100%;
  overflow: visible;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.vygo-startup__badge {
  fill: #185b45;
  animation: vygo-startup-badge 450ms ease both;
}

.vygo-startup__stroke {
  fill: transparent;
  stroke: currentColor;
  stroke-width: .7;
  stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: vygo-startup-draw 750ms cubic-bezier(.4, 0, .2, 1) var(--stroke-delay, 100ms) both;
}

.vygo-startup__symbol { color: #e8bf5b; }
.vygo-startup__letters { letter-spacing: 2px; }

.vygo-startup__track {
  width: 150px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 253 245 / 18%);
}

.vygo-startup__track span {
  display: block;
  width: 45%;
  height: 100%;
  background: currentColor;
  animation: vygo-startup-travel 1400ms ease-in-out infinite;
}

@keyframes vygo-startup-draw {
  0% { stroke-dashoffset: 160; fill: transparent; }
  65% { fill: transparent; }
  100% { stroke-dashoffset: 0; fill: currentColor; stroke-width: 0; }
}
@keyframes vygo-startup-badge { from { opacity: 0; } to { opacity: 1; } }
@keyframes vygo-startup-travel {
  from { transform: translateX(-110%); }
  to { transform: translateX(330%); }
}

@media (prefers-reduced-motion: reduce) {
  .vygo-startup { transition-duration: 100ms; }
  .vygo-startup__badge { animation: none; }
  .vygo-startup__stroke { animation: none; stroke-dashoffset: 0; stroke-width: 0; fill: currentColor; }
  .vygo-startup__track span { animation: none; width: 100%; opacity: .6; }
}
