/* A real 6×5 frame atlas inside the existing image box. Original src is the fallback. */
html img.dragon-image-v334.dragon-live-v380{
 object-fit:none!important;object-position:10000px 10000px!important;
 background-image:var(--dragon-atlas);background-repeat:no-repeat;
 background-size:600% 500%;background-position:0 0;image-rendering:pixelated;
 animation:none!important;transform:none!important;transition:none!important;
}
/* Important layer stops legacy full-body scaling, leaving the authored poses intact. */
@layer dragon-frames-v380{
 html img.dragon-image-v334.dragon-live-v380{animation:none!important;transform:none!important;transition:none!important}
}
.dragon-demo-v380{margin-top:12px;padding:12px;border:1px solid var(--hlp-border,#d5e2e8);border-radius:14px;background:var(--hlp-surface,#fff)}
.dragon-demo-v380 p{margin:0 0 10px;font-size:13px;line-height:1.5}
.dragon-demo-v380 .row{flex-wrap:wrap;gap:6px}
.dragon-demo-v380 button{min-height:44px}
.gallery-time-v332:has(.dragon-live-v380) .timer-pet-v297{width:104px!important;height:104px!important;flex-shrink:0}
.gallery-time-v332:has(.dragon-live-v380) .dragon-image-v334{width:104px!important;height:104px!important;max-width:none!important}
@media(max-width:480px){.gallery-time-v332:has(.dragon-live-v380) .timer-pet-v297,.gallery-time-v332:has(.dragon-live-v380) .dragon-image-v334{width:80px!important;height:80px!important}}
/* Feeding uses the chewing frames; remove the former whole-box hop. */
.ember-dragon-v352.fed:has(.dragon-live-v380){animation:none!important}
html[data-motion-level=off] img.dragon-live-v380{background-position:0 0!important}
@media(prefers-reduced-motion:reduce){html img.dragon-live-v380{background-position:0 0!important}}

/* Existing hats, glasses and scarves follow authored head movement. */
.ember-acc-v352{left:calc((var(--x) + var(--dragon-dx,0))*100%);top:calc((var(--y) + var(--dragon-dy,0))*100%)}
