/* SCE Mini Badge — injected into pages that don't load /globals.css */
#sce-mini-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  z-index: 99999;
  pointer-events: none;
}

#sce-mini-badge .sce-mini-globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 252, 240, 0.95) 0%, rgba(212, 175, 55, 0.45) 14%, transparent 38%),
    radial-gradient(circle at 50% 58%, #5a4a12 0%, #1a1508 52%, #030201 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 0 26px rgba(212, 175, 55, 0.18),
    inset 0 -12px 24px rgba(0, 0, 0, 0.55);
}

/* Soft flash around the globe */
#sce-mini-badge .sce-mini-globe::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 62%);
  opacity: 0;
  animation: sceMiniFlash 6.5s infinite;
  pointer-events: none;
}

@keyframes sceMiniFlash {
  0%,
  68%,
  100% {
    opacity: 0;
    filter: blur(0px);
  }
  69% {
    opacity: 1;
    filter: blur(0.2px);
  }
  72% {
    opacity: 0;
  }
}

/* Wordmark inside globe (stable; not rotated) */
#sce-mini-badge .sce-mini-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter Tight", system-ui, sans-serif !important;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  font-size: 12px;
  color: #080808;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(212, 175, 55, 0.95),
    0 0 14px rgba(212, 175, 55, 0.55),
    0 0 24px rgba(255, 215, 0, 0.28),
    0 1px 0 rgba(255, 248, 220, 0.22);
  pointer-events: none;
}

/* Thunder bolts */
#sce-mini-badge .sce-mini-bolt {
  position: absolute;
  width: 7px;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 1) 0%, rgba(255, 165, 0, 0.95) 100%);
  border-radius: 2px;
  clip-path: polygon(50% 0%, 85% 28%, 60% 28%, 100% 100%, 0% 72%, 40% 72%, 15% 40%);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

#sce-mini-badge .sce-mini-bolt.b1 {
  left: 9px;
  top: 7px;
  animation: sceMiniBolt 6.5s infinite;
}

#sce-mini-badge .sce-mini-bolt.b2 {
  left: 16px;
  top: 3px;
  height: 12px;
  animation: sceMiniBolt 6.5s infinite;
  animation-delay: 1.2s;
}

@keyframes sceMiniBolt {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.88) rotate(10deg);
  }
  69% {
    opacity: 0.95;
    transform: translateY(-1px) scale(1) rotate(10deg);
  }
  72% {
    opacity: 0;
    transform: translateY(0) scale(0.92) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #sce-mini-badge .sce-mini-globe::after,
  #sce-mini-badge .sce-mini-bolt {
    animation: none !important;
    opacity: 1;
  }
}

