/* Garment-only atlases share the original sprite's cell and pivots. */
.chota-wardrobe-layer{display:none;position:absolute;inset:0;pointer-events:none;image-rendering:pixelated;background-repeat:no-repeat}
.has-chota-outfit>.chota-wardrobe-main{display:block}
.has-chota-outfit.is-idling>.chota-wardrobe-main{display:none}
.has-chota-outfit.is-idling :is(.chota-wardrobe-idle-body,.chota-wardrobe-idle-head,.chota-wardrobe-idle-paw){display:block;background-image:var(--chota-coat-base);background-size:600% 400%;background-position:0 0}
.chota-wardrobe-idle-body{-webkit-mask:url('icons/mascot/chota-v2/wardrobe/idle-body-mask.svg') 0 0/100% 100%;mask:url('icons/mascot/chota-v2/wardrobe/idle-body-mask.svg') 0 0/100% 100%}
.chota-wardrobe-idle-paw{clip-path:polygon(34.375% 64.0625%,50.78125% 64.0625%,50.78125% 82%,34.375% 82%)}
.has-chota-outfit.is-sleep-breathing>.chota-wardrobe-main{-webkit-mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%;mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%}
.has-chota-outfit.is-sleep-breathing .chota-wardrobe-sleep-chest{display:block;background-image:var(--chota-coat-base);background-size:600% 400%;background-position:80% 100%}
.has-chota-outfit.is-sleep-breathing .chota-sleep-chest{z-index:2}
/* Trousers sit on the original jeans, under the coat and the hands. */
.chota-wardrobe-pants{display:none;position:absolute;inset:0;pointer-events:none;image-rendering:pixelated;background-repeat:no-repeat}
.has-chota-pants>.chota-wardrobe-pants-main{display:block}
.has-chota-pants.is-idling>.chota-wardrobe-pants-main{display:none}
.has-chota-pants.is-idling :is(.chota-wardrobe-pants-idle-body,.chota-wardrobe-pants-idle-feet){display:block;background-image:var(--chota-pants-base);background-size:600% 400%;background-position:0 0}
/* The idle paw carries a few pixels of the original jeans; with trousers on, a clean paw lets them show. */
.has-chota-pants .chota-idle-paw{background-image:url("icons/mascot/chota-v2/wardrobe-bottomwear/idle-paw-v1.svg")}
/* The T-shirt covers the original tee: over the trousers, under the coat and the hands. */
.chota-wardrobe-shirt{display:none;position:absolute;inset:0;pointer-events:none;image-rendering:pixelated;background-repeat:no-repeat}
.has-chota-shirt>.chota-wardrobe-shirt-main{display:block}
.has-chota-shirt.is-idling>.chota-wardrobe-shirt-main{display:none}
.has-chota-shirt.is-idling :is(.chota-wardrobe-shirt-idle-body,.chota-wardrobe-shirt-idle-head){display:block;background-image:var(--chota-shirt-base);background-size:600% 400%;background-position:0 0}
.has-chota-shirt.is-sleep-breathing>.chota-wardrobe-shirt-main{-webkit-mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%;mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%}
.has-chota-shirt.is-sleep-breathing .chota-wardrobe-shirt-sleep-chest{display:block;background-image:var(--chota-shirt-base);background-size:600% 400%;background-position:80% 100%}
.has-chota-shirt.is-sleep-breathing .chota-sleep-chest{z-index:2}
/* The idle paw also carries a few pixels of the original tee; this paw has neither the tee nor the jeans. */
.has-chota-shirt .chota-idle-paw{background-image:url("icons/mascot/chota-v2/wardrobe-topwear/idle-paw-v1.svg")}
/* Footwear is independent from the neutral feet and stays registered to its atlas cell. */
.chota-wardrobe-shoes{display:none;position:absolute;inset:0;pointer-events:none;image-rendering:pixelated;background-repeat:no-repeat}
.has-chota-shoes>.chota-wardrobe-shoes-main{display:block}
.has-chota-shoes.is-idling>.chota-wardrobe-shoes-main{display:none}
.has-chota-shoes.is-idling :is(.chota-wardrobe-shoes-idle-body,.chota-wardrobe-shoes-idle-feet){display:block;background-image:var(--chota-shoes-base);background-size:600% 400%;background-position:0 0}
.has-chota-shoes.is-sleep-breathing>.chota-wardrobe-shoes-main{-webkit-mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%;mask:url('icons/mascot/chota-v2/wardrobe/sleep-static-mask.svg') 0 0/100% 100%}
.has-chota-shoes.is-sleep-breathing .chota-wardrobe-shoes-sleep-chest{display:block;background-image:var(--chota-shoes-base);background-size:600% 400%;background-position:80% 100%}
/* Enable only after the approved neutral atlases have decoded. The clean paw
   contains neither the old white T-shirt nor blue jeans. Ear/tail art stays original. */
html[data-chota-modular="true"] .tigreton-character{background-image:var(--chota-outfit-base)}
html[data-chota-modular="true"] .tigreton-character.is-speaking{background-image:var(--chota-outfit-talk)}
html[data-chota-modular="true"] .tigreton-character.is-directional{background-image:var(--chota-outfit-directional)}
html[data-chota-modular="true"] .tigreton-character.is-contextual{background-image:var(--chota-outfit-contextual)}
html[data-chota-modular="true"] .tigreton-character.is-room-pose{background-image:var(--chota-outfit-room)}
html[data-chota-modular="true"] .tigreton-character:is(.is-idling,.is-sleep-breathing){background-image:none}
html[data-chota-modular="true"] :is(.chota-idle-body,.chota-idle-feet,.chota-idle-head){background-image:none}
html[data-chota-modular="true"] :is(.chota-idle-body,.chota-idle-feet,.chota-idle-head)::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:var(--chota-outfit-base);background-size:600% 400%;background-position:0 0;background-repeat:no-repeat;image-rendering:pixelated;-webkit-mask:url('icons/mascot/chota-v2/neutral/idle-core-mask-v1.png') 0 0/100% 100%;mask:url('icons/mascot/chota-v2/neutral/idle-core-mask-v1.png') 0 0/100% 100%}
html[data-chota-modular="true"] :is(.chota-sleep-base,.chota-sleep-chest,.chota-sleep-head,.chota-sleep-tail,.chota-sleep-foreground){background-image:var(--chota-outfit-base)}
html[data-chota-modular="true"] .chota-idle-paw{background-image:url('icons/mascot/chota-v2/wardrobe-topwear/idle-paw-v1.svg')}
/* One final atlas per pose, shared with canvas and cameos. Retained layer nodes
   keep legacy APIs compatible but are never drawn twice over a composed sprite. */
html[data-chota-modular="true"] :is(.chota-wardrobe-layer,.chota-wardrobe-pants,.chota-wardrobe-shoes,.chota-wardrobe-shirt){display:none!important}
html[data-chota-modular="true"] .chd-chota{background-image:var(--chota-outfit-base)}
html[data-chota-modular="true"] .chd-chota.is-talking{background-image:var(--chota-outfit-talk)}
html[data-chota-modular="true"] .chd-wear{display:none}

/* Fitting, inventory and checkout select cells of one composed trial/equipped
   atlas, with the same geometry as the room and daily dilemma. */
.fitting-chota[data-chota-composed="true"] > :not(.fitting-chota-body){display:none!important}

/* Scenes drawn with scaleX(-1) use the pre-mirrored outfit, so printed marks
   (Carhartt patch, Supreme box) stay on the same hip and read the right way. */
html[data-chota-modular="true"] .tigreton-character.is-mirrored{--chota-outfit-base:var(--chota-flip-base);--chota-outfit-talk:var(--chota-flip-talk);--chota-outfit-directional:var(--chota-flip-directional);--chota-outfit-contextual:var(--chota-flip-contextual);--chota-outfit-room:var(--chota-flip-room);--chota-neutral-base:var(--chota-flip-base);--chota-neutral-talk:var(--chota-flip-talk);--chota-neutral-directional:var(--chota-flip-directional);--chota-neutral-contextual:var(--chota-flip-contextual);--chota-neutral-room:var(--chota-flip-room)}
html[data-chota-modular="true"] .chd-chota.is-facing-left{background-image:var(--chota-flip-base)}
html[data-chota-modular="true"] .chd-chota.is-facing-left.is-talking{background-image:var(--chota-flip-talk)}

/* While the saved outfit is restored on launch (at most 2.5 s), the Chota is
   hidden instead of showing the old baked clothes. */
html[data-chota-pending="true"] :is(.tigreton-character,.chd-chota,.calendar-chota-sprite>span,.col-chota-sprite,.pack-chota-sprite,.album-chota-sprite,.catalog-chota-sprite,.dup-chota-sprite,.inbox-chota-sprite,.profile-chota-sprite,.store-hall-chota){opacity:0}

/* Cloth follow-through: shirt and coat redrawn over the sprite and leaned from the
   neck; head, arms and paws drawn again on top. Hidden at rest and while idling. */
.chota-cloth,.chota-cloth-front{position:absolute;inset:0;display:none;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none}
.chota-cloth{transform-origin:50% 46%;will-change:transform}
.has-chota-cloth>.chota-cloth,.has-chota-cloth>.chota-cloth-front{display:block}
@media(prefers-reduced-motion:reduce){.chota-cloth,.chota-cloth-front{display:none!important}}
