/* home-hero3d.css — the live 3D Home hero (home-hero3d.js / home-hero3d-scene.js).
 * Framing contract: the canvas is 1.16 x the figure's height tall and 1.0 x wide, with its bottom edge 0.07 x the figure's
 * height below her feet (the hero's own origin), so the scene can place her feet and the top of her head at fixed fractions of
 * it. The canvas fades in over the hero's still when its first frame is drawn; the still is then hidden (not removed: it is
 * the fallback, and the hero's own readiness checks still see it). */
#screen-lobby .home-hero .home-party .home-hero-piece > canvas.home-hero3d {
  position: absolute;
  z-index: 1;
  left: calc(var(--home-fig) * -0.5);
  bottom: calc(var(--home-fig) * -0.07);
  width: var(--home-fig);
  height: calc(var(--home-fig) * 1.16);
  max-width: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
#screen-lobby .home-hero .home-party .home-hero-piece[data-home-live="on"] > canvas.home-hero3d { opacity: 1; }
#screen-lobby .home-hero .home-party .home-hero-piece[data-home-live="on"] > img { opacity: 0; transition: opacity .5s ease; }
/* The ground spot and the hero's drop shadow: the 3D figure casts its own, so the flat drop shadow is dropped. */
#screen-lobby .home-hero .home-party .lobby-character.home-hero-piece[data-home-live="on"] { filter: none; }
@media (prefers-reduced-motion: reduce) {
  #screen-lobby .home-hero .home-party .home-hero-piece > canvas.home-hero3d,
  #screen-lobby .home-hero .home-party .home-hero-piece[data-home-live="on"] > img { transition: none; }
}
