/* Boot loader + crawler prerender shells (linked from index.html — avoid inline styles). */

html,
body {
  margin: 0;
  background: #0f2017;
  color: #e8f2eb;
}

#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: radial-gradient(
    ellipse at 50% 42%,
    #163526 0%,
    #0f2017 62%,
    #0a1510 100%
  );
  font-family: Poppins, system-ui, sans-serif;
}

#boot-loader .gwl-boot-stage {
  position: relative;
  width: min(42vw, 11rem);
  height: min(42vw, 11rem);
  max-width: 176px;
  max-height: 176px;
}

#boot-loader .gwl-boot-glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(19, 236, 91, 0.16);
  animation: gwl-boot-glow 2.4s ease-in-out infinite;
}

#boot-loader .gwl-boot-orbit {
  position: absolute;
  inset: 0;
  overflow: visible;
  animation: gwl-boot-orbit 1.6s linear infinite;
  transform-origin: 50% 50%;
}

#boot-loader .gwl-boot-spark {
  position: absolute;
  border-radius: 9999px;
  background: #13ec5b;
  animation: gwl-boot-spark 2s ease-out infinite;
}

#boot-loader .gwl-boot-spark-a {
  left: 18%;
  bottom: 22%;
  width: 6px;
  height: 6px;
  animation-delay: 0s;
}

#boot-loader .gwl-boot-spark-b {
  left: 50%;
  bottom: 18%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: rgba(19, 236, 91, 0.85);
  animation-delay: 0.55s;
}

#boot-loader .gwl-boot-spark-c {
  right: 20%;
  bottom: 24%;
  width: 6px;
  height: 6px;
  animation-delay: 1.1s;
}

#boot-loader .gwl-boot-bob {
  position: absolute;
  inset: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  animation: gwl-boot-bob 2.2s ease-in-out infinite;
}

#boot-loader .gwl-boot-bob img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

#boot-loader-msg {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(232, 242, 235, 0.78);
  animation: gwl-boot-msg 0.45s ease-out;
}

/* Crawler-readable article inside #root before React mounts */
.seo-prerender {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #e8f2eb;
  background: #0f2017;
}

.seo-prerender a {
  color: #13ec5b;
}

@keyframes gwl-boot-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes gwl-boot-glow {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}
@keyframes gwl-boot-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes gwl-boot-spark {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-42px) scale(0.4);
    opacity: 0;
  }
}
@keyframes gwl-boot-msg {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #boot-loader .gwl-boot-orbit,
  #boot-loader .gwl-boot-glow,
  #boot-loader .gwl-boot-bob,
  #boot-loader .gwl-boot-spark,
  #boot-loader-msg {
    animation: none !important;
  }
}
