.boot-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #12233d 0%, #070d19 58%, #04080f 100%);
  transition: opacity 420ms ease, visibility 0ms linear 420ms;
  opacity: 1;
  visibility: visible;
}

.boot-loader-overlay.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-loader-stage {
  position: relative;
  width: 210px;
  height: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.boot-loader-arena {
  position: relative;
  width: 170px;
  height: 156px;
  overflow: hidden;
}

.boot-loader-ball {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9dfd72 0%, #3ddd57 48%, #149f3f 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 0 18px rgba(72, 232, 102, 0.45);
  animation: bootBounce 980ms cubic-bezier(0.35, 0.05, 0.63, 1) infinite;
  transform-origin: center bottom;
}

/* Modo Copa: estilos da bola vêm de index.php (URL do SVG com cache-bust via static_asset). */

.boot-loader-ink {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 82px;
  height: 20px;
  margin-left: -41px;
  border-radius: 48% 52% 56% 44% / 65% 45% 55% 35%;
  background:
    radial-gradient(circle at 18% 46%, rgba(130, 255, 160, 0.72) 0%, rgba(130, 255, 160, 0) 38%),
    radial-gradient(circle at 78% 60%, rgba(90, 240, 125, 0.58) 0%, rgba(90, 240, 125, 0) 42%),
    linear-gradient(90deg, rgba(20, 122, 54, 0.96) 0%, rgba(54, 208, 98, 0.96) 52%, rgba(16, 102, 44, 0.94) 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.32));
  transform: scale(0.62, 0.45);
  transform-origin: center bottom;
  opacity: 0.15;
  animation: bootInkPulse 980ms ease-in-out infinite;
}

.boot-loader-shadow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 64px;
  height: 12px;
  margin-left: -32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(0.5px);
  animation: bootShadow 980ms ease-in-out infinite;
}

.boot-loader-text {
  margin-top: 24px;
  font-family: "Exo 2", "Inter", Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9f7ff;
  text-shadow: 0 0 14px rgba(125, 234, 255, 0.34);
}

.boot-loader-dots {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  width: 18px;
  margin-left: 2px;
}

.boot-loader-dot {
  opacity: 0.22;
  animation: bootDotBlink 1100ms linear infinite;
}

.boot-loader-dot:nth-child(2) {
  animation-delay: 170ms;
}

.boot-loader-dot:nth-child(3) {
  animation-delay: 340ms;
}

@keyframes bootBounce {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(8px) scale(0.96, 1.04);
  }
  35% {
    transform: translateY(88px) scale(1.08, 0.82);
  }
  41% {
    transform: translateY(88px) scale(1.12, 0.79);
  }
  52% {
    transform: translateY(58px) scale(0.96, 1.04);
  }
  68% {
    transform: translateY(14px) scale(1, 1);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes bootInkPulse {
  0%,
  29%,
  100% {
    transform: scale(0.62, 0.45);
    opacity: 0.16;
  }
  34% {
    transform: scale(1.08, 0.92);
    opacity: 0.95;
  }
  50% {
    transform: scale(0.85, 0.7);
    opacity: 0.58;
  }
}

@keyframes bootShadow {
  0%,
  100% {
    transform: scale(0.72, 1);
    opacity: 0.35;
  }
  35% {
    transform: scale(1.1, 1);
    opacity: 0.5;
  }
  70% {
    transform: scale(0.8, 1);
    opacity: 0.38;
  }
}

@keyframes bootDotBlink {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

/* Aviso: WebView do WhatsApp/Instagram/etc. — canvas WebGL pode ficar preto no iOS */
.helix-embedded-browser-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6500;
  padding: max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.helix-embedded-browser-hint__inner {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px 14px;
  border-radius: 14px 14px 0 0;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  color: #e8ecf4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.helix-embedded-browser-hint__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.helix-embedded-browser-hint__text {
  margin: 0 0 12px;
  opacity: 0.92;
}

.helix-embedded-browser-hint__btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #052e14;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.helix-embedded-browser-hint__btn:active {
  opacity: 0.9;
}
