/* One unmodified user-supplied background, three characters, and page UI. */
.scene { --room-brightness: 1; }
/* x/y shift each entire character; scale and opacity are independent.
   Every pose shares the same character transform. */
.actor-sora { --anchor-x: 21; --height: 73.7; --bottom: 12; --x: 0; --y: 0; --scale: 1; --opacity: 1; }
.actor-yuki { --anchor-x: 50; --height: 69; --bottom: 12; --x: 0; --y: 0; --scale: 1; --opacity: 1; }
.actor-chloe { --anchor-x: 79; --height: 65.5; --bottom: 12; --x: 0; --y: 0; --scale: 1; --opacity: 1; }

/* Match horizontal proportions between standing front poses and leaning back-wave poses
   while keeping scaleY = 1 so character height NEVER jumps or dips when changing poses. */
.actor-sora .pose-start {
  transform: translate3d(-50%, 0, 0) scale(1.05, 1);
}
.actor-sora .pose-wave {
  transform: translate3d(-50%, 0, 0) scale(0.91, 1);
}
.actor-yuki .pose-start {
  transform: translate3d(-50%, 0, 0) scale(1.02, 1);
}
.actor-yuki .pose-wave {
  transform: translate3d(-50%, 0, 0) scale(0.93, 1);
}
.actor-chloe .pose-start {
  transform: translate3d(-50%, 0, 0) scale(1.04, 1);
}

/* The supplied bent cutout's feet sit left of its image center. Keep only
   this pose's contact shadow aligned to its real feet at every viewport. */
@media (max-width: 759px) {
  .actor-chloe .pose-wave {
    transform: translate3d(-50%, 0, 0) scale(0.89, 1);
  }
  .stage[data-selected="chloe"][data-pose="wave"] .actor-chloe {
    --shadow-nudge-x: calc(-0.03763 * min(calc(var(--height) / 73.7 * (100cqh - 196px)), calc(var(--height) / 73.7 * 138cqw)));
  }
}
@media (min-width: 760px) {
  .actor-chloe .pose-wave {
    transform: translate3d(calc(-50% + 4px), 0, 0) scale(0.89, 1);
  }
  .stage[data-selected="chloe"][data-pose="wave"] .actor-chloe {
    --shadow-nudge-x: calc(4px - .03763 * min(calc(var(--height) / 73.7 * 93cqh), calc(var(--height) / 73.7 * 110cqw)));
  }
}
