/* ===================== SABIE — STYLES (sprites PNG) ===================== */

.sabie {
  display: inline-block;
  position: relative;
  pointer-events: none;
  will-change: transform;
}
.sabie-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}

/* Tailles — basées sur le ratio ~3:4 des sprites */
.sabie.size-xs { width: 56px;  height: 76px;  }
.sabie.size-sm { width: 88px;  height: 118px; }
.sabie.size-md { width: 130px; height: 174px; }
.sabie.size-lg { width: 180px; height: 240px; }
.sabie.size-xl { width: 240px; height: 320px; }

/* Positionnement */
.sabie.fixed-tr  { position: fixed; top: 68px; right: 8px; z-index: 5; }
.sabie.center    { display: block; margin: 0 auto; }

/* Aura mauve derrière le sprite */
.sabie::before {
  content: '';
  position: absolute;
  inset: -15% -15% -10% -15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(139, 92, 246, 0.25) 35%, transparent 65%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

/* Scintilles autour de Sabie */
.sabie-sparkle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fcd34d 0%, #f59e0b 60%, transparent 100%);
  pointer-events: none;
  opacity: 0.85;
  filter: blur(0.5px);
}
.sabie-sparkle.violet { background: radial-gradient(circle, #c084fc 0%, #9333ea 60%, transparent 100%); }

/* Fallback CSS animation (avant JS) */
@keyframes sabieFallbackFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.sabie:not(.js-ready) .sabie-img {
  animation: sabieFallbackFloat 3s ease-in-out infinite;
}

/* Bulle */
.sabie-bubble {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 8px 12px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  max-width: 220px;
}
