/* Boot loader (antes do React) — espelha BrandLoader.css */
#agv-boot {
  --agv-cream: #f3ebe0;
  --agv-cream-deep: #e8dcc9;
  --agv-sand: #c4a574;
  --agv-tan: #a67c52;
  --agv-chocolate: #4a3428;
  --agv-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 1rem;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(196, 165, 116, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 15%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(180deg, var(--agv-cream) 0%, var(--agv-cream-deep) 100%);
  font-family: Nunito, system-ui, sans-serif;
  transition: opacity 0.55s var(--agv-ease), visibility 0.55s var(--agv-ease);
}

#agv-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#agv-boot .mark {
  width: 5.5rem;
  height: 5.5rem;
}

#agv-boot svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

#agv-boot .arc {
  fill: none;
  stroke: var(--agv-tan);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: agv-draw 1.4s var(--agv-ease) infinite;
}

#agv-boot .peaks {
  fill: none;
  stroke: var(--agv-chocolate);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: agv-draw 1.4s var(--agv-ease) 0.15s infinite;
}

#agv-boot .dog {
  fill: var(--agv-sand);
  opacity: 0.35;
  transform-origin: 50% 70%;
  animation: agv-breathe 1.4s var(--agv-ease) infinite;
}

#agv-boot .dog-pup {
  fill: var(--agv-chocolate);
  opacity: 0.55;
  animation-delay: 0.12s;
}

#agv-boot .glow {
  fill: rgba(196, 165, 116, 0.22);
  animation: agv-pulse 1.4s var(--agv-ease) infinite;
}

#agv-boot .label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--agv-tan);
}

@keyframes agv-draw {
  0% {
    stroke-dashoffset: 120;
    opacity: 0.35;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -40;
    opacity: 0.35;
  }
}

@keyframes agv-breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 0.65;
  }
}

@keyframes agv-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  #agv-boot .arc,
  #agv-boot .peaks,
  #agv-boot .dog,
  #agv-boot .dog-pup,
  #agv-boot .glow {
    animation: none;
  }
  #agv-boot .arc,
  #agv-boot .peaks {
    stroke-dashoffset: 0;
  }
}
