/* Layered 2D motion: background stays still, character parts move independently. */
.living-avatar .avatar-idle{transform-origin:141px 329px;animation:traveler-sway 5.8s ease-in-out infinite}
.living-avatar .avatar-breath{transform-origin:141px 325px;animation:traveler-breathe 3.7s ease-in-out infinite}
.living-avatar .avatar-head,.living-avatar .avatar-head-back{transform-origin:141px 181px;animation:traveler-head 5.8s ease-in-out infinite}
.living-avatar .avatar-blink{transform-origin:141px 134px;animation:traveler-blink 5.2s linear infinite;animation-delay:var(--blink-delay,0s)}
.living-avatar .avatar-shadow{transform-origin:143px 317px;animation:traveler-shadow 3.7s ease-in-out infinite}
.avatar-greeting-sparks{opacity:0;transform-origin:141px 150px;pointer-events:none}
.big-avatar .living-avatar,.shop-avatar .living-avatar,.appearance-live .living-avatar{cursor:pointer}
.living-avatar.is-greeting .avatar-idle{animation:traveler-greet 1.1s ease-in-out both}
.living-avatar.is-greeting .avatar-head,.living-avatar.is-greeting .avatar-head-back{animation:traveler-nod 1.1s ease both}
.living-avatar.is-greeting .avatar-greeting-sparks{animation:traveler-spark 1.1s ease both}
.living-avatar.is-greeting .avatar-smile{transform-origin:142px 161px;animation:traveler-smile 1.1s ease both}
/* Small product thumbnails keep a calm silhouette; full previews carry all motion. */
.product-art .avatar-idle,.wardrobe-thumb .avatar-idle,[data-mini-avatar] .avatar-idle,.product-art .avatar-breath,.wardrobe-thumb .avatar-breath,[data-mini-avatar] .avatar-breath,.product-art .avatar-head,.wardrobe-thumb .avatar-head,[data-mini-avatar] .avatar-head,.product-art .avatar-head-back,.wardrobe-thumb .avatar-head-back,[data-mini-avatar] .avatar-head-back,.product-art .avatar-shadow,.wardrobe-thumb .avatar-shadow,[data-mini-avatar] .avatar-shadow{animation:none}
.avatar-motion-paused .living-avatar *{animation:none!important}
.avatar-motion-controls{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin:9px 0 15px}
.avatar-motion-controls button{border:1px solid #e5dcec;background:#fffaf5;color:#7b6089;border-radius:24px;padding:8px 12px;cursor:pointer;font:inherit;font-size:11px}
.avatar-motion-controls button:hover{background:#f3eafa}
.avatar-motion-controls button:focus-visible{outline:2px solid #8c70ce;outline-offset:3px}
.avatar-motion-note{font-size:11px;color:#8e8197;text-align:center}
@keyframes traveler-sway{0%,100%{transform:rotate(-.8deg)}50%{transform:rotate(.8deg)}}
@keyframes traveler-breathe{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-1px) scale(1.007,1.012)}}
@keyframes traveler-head{0%,100%{transform:rotate(1deg) translateY(0)}50%{transform:rotate(-1.2deg) translateY(-1.5px)}}
@keyframes traveler-blink{0%,37%,41%,76%,80%,100%{transform:scaleY(1)}39%,78%{transform:scaleY(.06)}}
@keyframes traveler-shadow{0%,100%{transform:scaleX(1);opacity:.12}50%{transform:scaleX(.95);opacity:.09}}
@keyframes traveler-greet{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-4px) rotate(-2deg)}55%{transform:translateY(-2px) rotate(2deg)}80%{transform:translateY(-1px) rotate(-1deg)}}
@keyframes traveler-nod{0%,100%{transform:rotate(0)}30%{transform:translateY(3px) rotate(5deg)}65%{transform:translateY(-2px) rotate(-3deg)}}
@keyframes traveler-spark{0%,100%{opacity:0;transform:scale(.7)}25%,65%{opacity:1;transform:scale(1.06)}80%{opacity:.6;transform:scale(1.1)}}
@keyframes traveler-smile{0%,100%{transform:scale(1)}35%,70%{transform:scale(1.12,1.12)}}
@media(prefers-reduced-motion:reduce){.living-avatar *{animation:none!important}.avatar-motion-controls [data-action="greet-avatar"]{display:none}}
.fitted-avatar .avatar-idle{transform-origin:140px 333px}.fitted-avatar .avatar-breath{transform-origin:140px 333px;animation:fitted-breathe 3.7s ease-in-out infinite}.fit-sample-card .living-avatar *{animation:none!important}@keyframes fitted-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.003,1.006)}}

.personalized-blink{animation:traveler-blink 5.2s linear infinite;animation-delay:var(--blink-delay,-.8s)}@media(prefers-reduced-motion:reduce){.personalized-blink{animation:none!important}}
