/* Registry VFX theo role. Role chưa có cấu hình riêng dùng marker tím-vàng mặc định. */
.target-marker-float.marker-fallback {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #ffd866;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7041a4, #28163f 72%);
  color: #fff7c8;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(40,22,63,.9), 0 0 16px rgba(190,107,255,.9);
}
.target-marker-float.marker-fallback::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255,216,102,.62);
  border-radius: 50%;
  animation: roleVfxFallbackRing 1.2s ease-in-out infinite;
}
@keyframes roleVfxFallbackRing {
  50% { opacity: .35; transform: scale(1.14); }
}

#threeRoleVfxCanvas {
  position: fixed;
  inset: 0;
  z-index: 10025;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}
#threeRoleVfxCanvas.is-active { opacity: 1; }
.seat.is-dissolving-to-ash {
  pointer-events: none !important;
  will-change: filter, opacity, -webkit-mask-position, mask-position;
  -webkit-mask-image: linear-gradient(to top, transparent 0 32%, #000 48% 100%);
  mask-image: linear-gradient(to top, transparent 0 32%, #000 48% 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  animation: eliminatedSeatDissolve .58s steps(10, end) forwards;
}
@keyframes eliminatedSeatDissolve {
  0% {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
  }
  55% { filter: grayscale(.8) sepia(.45) brightness(1.35); }
  100% {
    filter: grayscale(1) sepia(.7) brightness(.45);
    opacity: .08;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .seat.is-dissolving-to-ash { animation-duration: .18s; }
}
