.world.cafe #npc.seated-cafe .figure{background:var(--cafe-sprite,url(xiaozi-cafe-sit.png)) center/100% 100% no-repeat!important;image-rendering:pixelated;animation:cafe-breathe 4s steps(2,end) infinite!important}
.world.cafe .cafe-cust7 .figure,.world.cafe .cafe-cust3 .figure,.world.cafe .cafe-clerk .figure{background:var(--cafe-sprite) center/100% 100% no-repeat!important;image-rendering:pixelated;animation:cafe-breathe 4s steps(2,end) infinite!important}
@keyframes cafe-breathe{0%,100%{transform:translateX(-50%)}50%{transform:translate(-50%,-1px)}}
/* Keep seated sprites anchored at their chair; small variations preserve contact. */
.world.cafe .cafe-cust1 .figure,.world.cafe .cafe-cust4 .figure,.world.cafe .cafe-cust8 .figure{animation:npc-sprite-2f 2.9s steps(2,end) infinite,seat-breathe 4.2s ease-in-out infinite!important}
.world.cafe .cafe-cust2 .figure,.world.cafe .cafe-cust5 .figure,.world.cafe .cafe-cust9 .figure{animation:npc-sprite-2f 2.2s steps(2,end) infinite,seat-breathe 3.4s ease-in-out infinite!important}
.world.cafe .cafe-cust6 .figure{animation:npc-sprite-2f 3.5s steps(2,end) infinite,seat-breathe 5s ease-in-out infinite!important}
@keyframes seat-breathe{0%,100%{transform:translateX(-50%) scaleY(1)}50%{transform:translateX(-50%) scaleY(.99)}}
.world.cafe .cafe-cust1 .figure,.world.cafe .cafe-cust2 .figure,.world.cafe .cafe-cust4 .figure,.world.cafe .cafe-cust5 .figure,.world.cafe .cafe-cust6 .figure,.world.cafe .cafe-cust8 .figure,.world.cafe .cafe-cust9 .figure{background:var(--seated-new) center/100% 100% no-repeat;animation:seat-breathe 3.4s ease-in-out infinite!important;transform-origin:50% 80%}
/* Idle movement is anchored at the seat so the character does not slide. */
.world.cafe .cafe-cust1 .figure{animation:guest-read 5.4s ease-in-out infinite!important}
.world.cafe .cafe-cust2 .figure{animation:guest-chat 4.8s ease-in-out infinite!important}
.world.cafe .cafe-cust4 .figure{animation:guest-read 4.3s ease-in-out -1s infinite!important}
.world.cafe .cafe-cust5 .figure{animation:guest-taste 5.1s ease-in-out -.7s infinite!important}
.world.cafe .cafe-cust6 .figure{animation:guest-chat 6.2s ease-in-out -2s infinite!important}
.world.cafe .cafe-cust8 .figure{animation:guest-taste 4.6s ease-in-out -1.4s infinite!important}
.world.cafe .cafe-cust9 .figure{animation:guest-read 6.1s ease-in-out -2.2s infinite!important}
@keyframes guest-read{0%,72%,100%{transform:translateX(-50%) rotate(0)}78%,86%{transform:translateX(-50%) rotate(1deg)}}
@keyframes guest-chat{0%,45%,100%{transform:translateX(-50%) rotate(0)}52%,60%{transform:translateX(-50%) rotate(-1deg)}67%,74%{transform:translateX(-50%) rotate(1deg)}}
@keyframes guest-taste{0%,65%,100%{transform:translateX(-50%) scaleY(1)}72%,82%{transform:translateX(-50%) scaleY(.985)}}
@media(prefers-reduced-motion:reduce){.world.cafe .is-sitting .figure{animation:none!important}}
/* Inward-facing seated figures share a fixed seat anchor in both frames. */
.world.cafe .cafe-cust1 .figure,.world.cafe .cafe-cust2 .figure,.world.cafe .cafe-cust4 .figure,.world.cafe .cafe-cust5 .figure,.world.cafe .cafe-cust6 .figure,.world.cafe .cafe-cust8 .figure,.world.cafe .cafe-cust9 .figure{background-image:var(--seated-frames)!important;background-size:200% 100%!important;animation:seated-action 4.8s steps(1,end) infinite!important;transform:translateX(-50%)!important}
.world.cafe .cafe-cust1 .figure{animation-duration:5.8s!important}.world.cafe .cafe-cust2 .figure{animation-duration:4.4s!important;animation-delay:-1.8s!important}.world.cafe .cafe-cust4 .figure{animation-duration:6.5s!important;animation-delay:-.7s!important}.world.cafe .cafe-cust5 .figure{animation-duration:4.9s!important;animation-delay:-2.3s!important}.world.cafe .cafe-cust6 .figure{animation-duration:5.1s!important;animation-delay:-3.1s!important}.world.cafe .cafe-cust8 .figure{animation-duration:3.7s!important;animation-delay:-1s!important}.world.cafe .cafe-cust9 .figure{animation-duration:4.7s!important;animation-delay:-2.8s!important}
@keyframes seated-action{0%,67%,100%{background-position:0% 0}68%,90%{background-position:100% 0}}
.world.cafe .cafe-cust7{left:93%!important;top:66.5%!important}
@media(prefers-reduced-motion:reduce){.world.cafe .is-sitting .figure{animation:none!important;background-position:0 0!important}}

.world.cafe .cafe-cust1{left:80.8%!important;top:58.7%!important}
.world.cafe .cafe-laptop{left:82.8%!important;top:47.2%!important;width:4.6%!important;aspect-ratio:1.3!important;background-image:url(cafe-laptop-v2.png)!important}
