/* Busted Games — Shared In-Game Loading Splash & Animated Mascot Score Badge */
#bg-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 51, 102, 0.22), transparent 55%),
    radial-gradient(circle at 50% 55%, rgba(255, 230, 0, 0.12), transparent 60%),
    #080910;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: all;
}
#bg-splash.bg-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bg-splash-mascot-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, #FFE600, #FF3366, #9EFF00, #00F0FF, #FFE600);
  box-shadow: 0 0 28px rgba(255, 51, 102, 0.45), 0 0 14px rgba(255, 230, 0, 0.35);
  animation: bg-float 2.2s ease-in-out infinite;
}
.bg-splash-mascot-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #080910;
}
.bg-splash-logo {
  height: 46px;
  width: auto;
  max-width: 78vw;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 51, 102, 0.4));
}
.bg-splash-tag {
  color: #C4CCDF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bg-splash-bar {
  width: 180px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 2px;
}
.bg-splash-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF3366, #FFE600, #9EFF00);
  border-radius: 999px;
  animation: bg-loadbar 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Animated Mascot Corner / Score-Screen Companion */
.bg-score-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(8, 9, 16, 0.9);
  border: 1.5px solid rgba(255, 230, 0, 0.65);
  box-shadow: 0 0 18px rgba(255, 51, 102, 0.35);
}
.bg-score-brand-mascot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #FF3366;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
  animation: bg-mascot-pop 1.8s ease-in-out infinite;
  object-fit: cover;
}
.bg-score-brand-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

/* Floating Animated Mascot on Score Screens when detected */
#bg-score-mascot-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  background: rgba(11, 13, 24, 0.94);
  border: 1.5px solid #FFE600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 51, 102, 0.4);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#bg-score-mascot-toast.bg-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes bg-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}
@keyframes bg-mascot-pop {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.08); }
}
@keyframes bg-loadbar {
  0% { width: 8%; }
  100% { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-splash-mascot-wrap,
  .bg-score-brand-mascot { animation: none; }
}
