/* PNG-first mascot; crossfade to 3D when quiet.glb finishes loading */
.mascot-hybrid-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.mascot-hybrid-png {
  position: relative;
  z-index: 2;
  transition: opacity 0.8s ease;
}

.mascot-hybrid-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  --poster-color: transparent;
  background: transparent;
}

.mascot-hybrid-loaded .mascot-hybrid-png {
  opacity: 0;
  pointer-events: none;
}

.mascot-hybrid-loaded .mascot-hybrid-3d {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.hero-mascot-wrap .mascot-hybrid-stage {
  width: min(260px, 68vw);
  height: min(320px, 52vw);
}

.hero-mascot-wrap .mascot-hybrid-png,
.hero-mascot-wrap .mascot-hybrid-3d {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.home-mascot-stage .mascot-hybrid-stage {
  width: min(260px, 74vw);
  height: min(300px, 48vh);
}

.home-mascot-stage .mascot-hybrid-png,
.home-mascot-stage .mascot-hybrid-3d {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (prefers-reduced-motion: reduce) {
  .mascot-hybrid-png,
  .mascot-hybrid-3d {
    transition: none;
  }
}
