/* v1.0.1 — Mei's restored visual identity and action-specific artwork.
   All eight poses use 450x550 transparent canvases; never stretch independently. */
.scene-backdrop .world-plane .world-mei-rig {
  height: 56% !important;
  aspect-ratio: 450 / 550 !important;
  width: auto !important;
}
.world-mei-rig .actor-mei-art {
  object-fit: contain !important;
  object-position: bottom center !important;
  image-rendering: auto;
}
/* The lantern and flower are already painted in the new holding poses.
   The old hand-attached props must not display a second copy. */
.scene-backdrop .world-plane .world-mei-rig .hand-lantern,
.scene-backdrop .world-plane .world-mei-rig .hand-flower {
  display: none !important;
}
/* Animated poses have their own movement. Transforms are never used for resizing. */
.world[data-mei-frame="idle"] .actor-mei-art { animation: meiIdle 3.5s ease-in-out infinite alternate; }
.world[data-mei-frame="walk"] .actor-mei-art,
.world[data-mei-frame="run"] .actor-mei-art { animation: meiWalk .5s ease-in-out infinite alternate; }
.world[data-mei-frame="lantern"] .actor-mei-art,
.world[data-mei-frame="flower"] .actor-mei-art { animation: meiCarry 2.5s ease-in-out infinite alternate; }
.world[data-mei-frame="reach"] .actor-mei-art { animation: meiReach .9s ease-in-out 1; }
.world[data-mei-frame="cast"] .actor-mei-art { animation: meiCast 1.05s ease-in-out 1; }
.world[data-mei-frame="celebrate"] .actor-mei-art { animation: meiCelebrate .65s ease-in-out 2; }
/* During camera travel, keep held objects visibly attached to Mei. */
.world.world-just-traveled[data-mei-frame="lantern"] .world-mei-rig .actor-mei-art,
.world.world-just-traveled[data-mei-frame="flower"] .world-mei-rig .actor-mei-art {
  animation: meiWalk .5s ease-in-out infinite alternate !important;
}
/* A tiny glow accompanies the new lantern artwork without duplicating the item. */
.world[data-lantern-lit="true"] .world-mei-rig[data-mei-item="lantern"] .actor-mei-art {
  filter: drop-shadow(0 0 5px #ffdd83) drop-shadow(0 4px 3px #030b1d90);
}
/* Don't show legacy spell-pose bobbing across all frames. */
.world.spell-acting[data-action="carry-lantern"] .actor-mei-art,
.world.spell-acting[data-action="carry-flower"] .actor-mei-art,
.world.spell-acting[data-action="open"] .actor-mei-art,
.world.spell-acting[data-action="cast"] .actor-mei-art { animation: none !important; }
body.reduce-motion .world .world-mei-rig .actor-mei-art { animation:none!important; transition:none!important; }
@media(prefers-reduced-motion:reduce) {
  .world .world-mei-rig .actor-mei-art { animation:none!important; transition:none!important; }
}
@media(max-width:720px){.scene-backdrop .world-plane .world-mei-rig{height:54%!important}}
