body[data-animation-view="image-puppet"] {
  background:
    radial-gradient(circle at 50% 20%, rgba(115, 225, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #06101d 0%, #102820 58%, #07100f 100%);
}

body[data-animation-view="image-puppet"] #caption-overlay,
body[data-animation-view="image-puppet"] .aura-diagnostics-overlay {
  display: none !important;
}

body[data-animation-view="image-puppet"] #app {
  opacity: 0;
}

.image-puppet {
  --source-frame: url("/aura-assets/moon-garden-feature-frame.png");
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 226, 150, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(7, 19, 28, 0.64), rgba(1, 8, 10, 0.9));
}

.image-puppet__frame {
  position: relative;
  width: min(1320px, calc(100vw - 56px));
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 170, 0.28);
  border-radius: 22px;
  background: #06100f;
  box-shadow:
    0 36px 94px rgba(0, 0, 0, 0.58),
    0 0 90px rgba(64, 255, 191, 0.12);
  isolation: isolate;
}

.image-puppet__base,
.image-puppet__cutout {
  position: absolute;
  inset: 0;
  background-image: var(--source-frame);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100% 100%;
}

.image-puppet__base {
  z-index: 1;
  filter: saturate(0.96) brightness(0.78);
  transform: scale(1.01);
}

.image-puppet__matte {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(8, 30, 36, 0.78), rgba(8, 30, 36, 0.4) 52%, transparent 72%);
  filter: blur(10px);
}

.image-puppet__matte--blue {
  left: 28%;
  top: 40%;
  width: 22%;
  height: 42%;
}

.image-puppet__matte--yellow {
  left: 53%;
  top: 33%;
  width: 22%;
  height: 47%;
}

.image-puppet__matte--cart {
  left: 46%;
  top: 62%;
  width: 17%;
  height: 18%;
}

.image-puppet__cutout {
  z-index: 5;
  will-change: transform;
  filter:
    saturate(1.2)
    brightness(1.1)
    drop-shadow(0 20px 22px rgba(0, 0, 0, 0.34));
}

.image-puppet__cutout--moon {
  z-index: 3;
  transform-origin: 58% 25%;
  animation: sourceMoonPulse 2.4s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 17% 20% at 58% 25%, black 0 58%, transparent 72%);
  mask-image: radial-gradient(ellipse 17% 20% at 58% 25%, black 0 58%, transparent 72%);
  filter: saturate(1.15) brightness(1.12) drop-shadow(0 0 30px rgba(115, 230, 255, 0.42));
}

.image-puppet__cutout--blue-body {
  transform-origin: 35% 70%;
  animation: sourceBlueBody 1.25s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 9% 18% at 35% 67%, black 0 57%, transparent 72%);
  mask-image: radial-gradient(ellipse 9% 18% at 35% 67%, black 0 57%, transparent 72%);
}

.image-puppet__cutout--blue-head {
  z-index: 6;
  transform-origin: 36.5% 54%;
  animation: sourceBlueHead 1.25s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 8% 10% at 36.5% 54%, black 0 56%, transparent 72%);
  mask-image: radial-gradient(ellipse 8% 10% at 36.5% 54%, black 0 56%, transparent 72%);
}

.image-puppet__cutout--blue-broom {
  z-index: 7;
  transform-origin: 42% 70%;
  animation: sourceBroomSweep 0.88s ease-in-out infinite;
  -webkit-mask-image:
    linear-gradient(118deg, transparent 0 39%, black 41% 45%, transparent 48% 100%),
    radial-gradient(ellipse 5% 5% at 42% 83%, black 0 52%, transparent 70%);
  mask-image:
    linear-gradient(118deg, transparent 0 39%, black 41% 45%, transparent 48% 100%),
    radial-gradient(ellipse 5% 5% at 42% 83%, black 0 52%, transparent 70%);
}

.image-puppet__cutout--cart {
  z-index: 5;
  transform-origin: 53% 72%;
  animation: sourceCartRoll 1.15s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 10% 8% at 52.5% 72%, black 0 60%, transparent 75%);
  mask-image: radial-gradient(ellipse 10% 8% at 52.5% 72%, black 0 60%, transparent 75%);
}

.image-puppet__cutout--yellow-body {
  transform-origin: 61% 67%;
  animation: sourceYellowBody 1.6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 9% 20% at 61% 64%, black 0 60%, transparent 74%);
  mask-image: radial-gradient(ellipse 9% 20% at 61% 64%, black 0 60%, transparent 74%);
}

.image-puppet__cutout--yellow-head {
  z-index: 6;
  transform-origin: 61% 45%;
  animation: sourceYellowHead 1.6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 8% 10% at 61% 45%, black 0 57%, transparent 72%);
  mask-image: radial-gradient(ellipse 8% 10% at 61% 45%, black 0 57%, transparent 72%);
}

.image-puppet__cutout--yellow-tool {
  z-index: 7;
  transform-origin: 57% 68%;
  animation: sourceYellowTool 1.15s ease-in-out infinite;
  -webkit-mask-image:
    linear-gradient(73deg, transparent 0 43%, black 45% 48%, transparent 51% 100%),
    radial-gradient(ellipse 8% 7% at 58% 67%, black 0 54%, transparent 72%);
  mask-image:
    linear-gradient(73deg, transparent 0 43%, black 45% 48%, transparent 51% 100%),
    radial-gradient(ellipse 8% 7% at 58% 67%, black 0 54%, transparent 72%);
}

.image-puppet__cutout--foreground {
  z-index: 9;
  transform-origin: 50% 91%;
  animation: sourceForegroundGlow 2s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 70%, rgba(0, 0, 0, 0.42) 78%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0 70%, rgba(0, 0, 0, 0.42) 78%, black 100%);
  filter: saturate(1.18) brightness(1.08) drop-shadow(0 -12px 24px rgba(115, 230, 255, 0.18));
}

.image-puppet__hud,
.image-puppet__caption {
  position: absolute;
  z-index: 12;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f8fff2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.image-puppet__hud {
  top: 24px;
  justify-content: space-between;
  font: 700 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-puppet__hud span,
.image-puppet__hud strong {
  padding: 8px 12px;
  border: 1px solid rgba(248, 255, 242, 0.18);
  border-radius: 999px;
  background: rgba(1, 10, 10, 0.58);
  backdrop-filter: blur(8px);
}

.image-puppet__caption {
  bottom: 42px;
  justify-content: center;
  text-align: center;
  font: 800 clamp(18px, 2.2vw, 30px) / 1.24 ui-rounded, "Trebuchet MS", system-ui, sans-serif;
}

.image-puppet__caption::before {
  content: "";
  position: absolute;
  inset: -14px auto auto 50%;
  width: min(880px, calc(100vw - 120px));
  height: calc(100% + 28px);
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(1, 10, 10, 0.1), rgba(1, 10, 10, 0.68));
  z-index: -1;
}

.image-puppet__timeline {
  position: absolute;
  z-index: 13;
  left: 28px;
  right: 28px;
  bottom: 20px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 255, 242, 0.16);
}

.image-puppet__timeline-fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffdd87, #65ffc6);
}

@keyframes sourceMoonPulse {
  0%, 100% { transform: scale(0.985); opacity: 0.52; }
  50% { transform: scale(1.035); opacity: 0.88; }
}

@keyframes sourceBlueBody {
  0%, 100% { transform: translate(-2px, 0) rotate(-1.2deg); }
  50% { transform: translate(7px, 8px) rotate(2.6deg); }
}

@keyframes sourceBlueHead {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(5px, 8px) rotate(4deg); }
}

@keyframes sourceBroomSweep {
  0%, 100% { transform: translate(-8px, 0) rotate(-5deg); }
  50% { transform: translate(15px, 9px) rotate(8deg); }
}

@keyframes sourceCartRoll {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-10px) rotate(-1.6deg); }
}

@keyframes sourceYellowBody {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  50% { transform: translate(-9px, 3px) rotate(-1.8deg); }
}

@keyframes sourceYellowHead {
  0%, 100% { transform: translate(0, 0) rotate(1.5deg); }
  50% { transform: translate(-7px, 4px) rotate(-3deg); }
}

@keyframes sourceYellowTool {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-13px, 9px) rotate(-5deg); }
}

@keyframes sourceForegroundGlow {
  from { opacity: 0.62; transform: scale(1); }
  to { opacity: 0.86; transform: scale(1.012); }
}
