/* Cuerpo separado del sillón: la respiración nunca deforma los muebles. */
#santa-home{--seat-size:230px;--seat-left:0px;--seat-bottom:-1px}
#santa-home .santa-chair{visibility:visible}
#santa-home #santa-seat-actor{background-image:url('assets/santa-atomx-idle-atlas.png');background-size:300% 200%;background-position:0 0;visibility:hidden;animation:none;transform-origin:47% 80%;will-change:auto}
#santa-host[data-state="sleeping"] #santa-seat-actor{visibility:visible;animation:santa-living-breath 3.9s ease-in-out infinite}
#santa-host:is([data-state="waking"],[data-state="bubble-pop"],[data-state="grumpy"],[data-state="sip-lift"],[data-state="sipping"],[data-state="sip-lower"],[data-state="dozing"]) #santa-seat-actor{visibility:visible}
#santa-home #santa-seat-actor[data-pose="sleep"]{background-position:0 0}
#santa-home #santa-seat-actor[data-pose="grumpy"]{background-position:50% 0}
#santa-home #santa-seat-actor[data-pose="lift"]{background-position:100% 0}
#santa-home #santa-seat-actor[data-pose="sip"]{background-position:0 100%}
#santa-home #santa-seat-actor[data-pose="doze"]{background-position:50% 100%}
#santa-host[data-state="waking"] #santa-seat-actor{animation:santa-wake .55s ease-in-out both}
#santa-host[data-state="grumpy"] #santa-seat-actor{animation:santa-little-huff .65s ease-out both}
#santa-host[data-state="sip-lift"] #santa-seat-actor{animation:santa-reach-cup .45s ease-out both}
#santa-host[data-state="sipping"] #santa-seat-actor{animation:santa-enjoy-sip 1.1s ease-in-out both}
#santa-host[data-state="sip-lower"] #santa-seat-actor{animation:santa-lower-cup .5s ease-in-out both}
#santa-host[data-state="dozing"] #santa-seat-actor{animation:santa-nod-off .65s ease-in-out both}
#santa-host:is([data-state="sip-lift"],[data-state="sipping"],[data-state="sip-lower"]) .santa-chair{background-image:url('assets/santa-atomx-idle-atlas.png');background-position:100% 100%}
.santa-nose,.santa-cup{position:absolute;padding:0;border:0;background:transparent;z-index:4;touch-action:manipulation;min-width:44px;min-height:44px;cursor:pointer}
.santa-nose{width:50px;height:54px;left:calc(var(--seat-left) + var(--seat-size)*.425 - 25px);bottom:calc(var(--seat-bottom) + var(--seat-size)*.72 - 13px);transform-origin:50% 80%;animation:santa-nose-breath 3.9s ease-in-out infinite}
.santa-snot-bubble{display:block;position:absolute;width:32px;height:39px;bottom:13px;left:10px;border-radius:54% 51% 49% 48%;transform-origin:40% 98%;background:radial-gradient(ellipse at 30% 23%,#ffffffc9 0 5%,#e7faf833 15%,#b4dfde5c 58%,#81c3c56e 90%);border:1px solid #d8f2eda8;box-shadow:inset -3px -2px 5px #769b9f55,inset 3px 3px 3px #fff9,0 2px 4px #3e58522b;backdrop-filter:blur(.4px);animation:santa-bubble-breathe 3.9s ease-in-out infinite}
.santa-snot-bubble:before{content:'';position:absolute;top:6px;left:7px;width:7px;height:13px;border-radius:50%;border-left:3px solid #ffffffb0;transform:rotate(25deg)}
.santa-snot-bubble:after{content:'';position:absolute;bottom:-4px;left:11px;width:8px;height:7px;background:#badcda80;border-radius:0 0 70% 70%}
.santa-nose:hover .santa-snot-bubble{filter:brightness(1.15);box-shadow:inset -3px -2px 5px #769b9f55,inset 3px 3px 3px #fff9,0 0 12px #d6ececa6}
.santa-pop-spark{position:absolute;bottom:30px;left:27px;width:4px;height:4px;border-radius:50%;opacity:0;color:#b9d3d0;box-shadow:-16px -13px 0 currentColor,15px -17px 0 currentColor,-21px 3px 0 currentColor,20px 4px 0 currentColor,3px -26px 0 currentColor,0 18px 0 currentColor}
.santa-cup{width:48px;height:49px;left:calc(var(--seat-left) + var(--seat-size)*.837 - 24px);bottom:calc(var(--seat-bottom) + var(--seat-size)*.425 - 24px)}
.cup-touch-glow{position:absolute;inset:3px;border-radius:50%;opacity:0;box-shadow:0 0 13px 5px #d6b87e80;background:#efd7a515;transition:opacity .2s}
.santa-cup:hover .cup-touch-glow,.santa-cup:focus-visible .cup-touch-glow{opacity:1}
.santa-nose:focus-visible,.santa-cup:focus-visible{outline:2px solid #8d6035;outline-offset:3px;border-radius:50%}
#santa-host:not([data-state="sleeping"]) .santa-nose,#santa-host:not([data-state="sleeping"]) .santa-cup{pointer-events:none;cursor:default}
#santa-host:not([data-state="sleeping"]):not([data-state="bubble-pop"]) .santa-nose{visibility:hidden}
#santa-host:not([data-state="sleeping"]) .santa-nose{animation:none}
#santa-host:not([data-state="sleeping"]) .santa-snot-bubble{animation:none;opacity:0}
#santa-host[data-state="bubble-pop"] .santa-snot-bubble{animation:santa-bubble-pop .22s ease-out both}
#santa-host[data-state="bubble-pop"] .santa-pop-spark{animation:santa-bubble-drops .22s ease-out both}
#santa-host:not([data-state="sleeping"]) .santa-cup{visibility:hidden}
@keyframes santa-living-breath{0%,100%{transform:translateY(0) scale(1,1) rotate(-.2deg)}47%{transform:translateY(-2.3px) scale(1.034,1.025) rotate(.35deg)}65%{transform:translateY(-1px) scale(1.018,1.013) rotate(.1deg)}}
@keyframes santa-nose-breath{0%,100%{transform:translate(0,0)}47%{transform:translate(-.6px,-4px)}65%{transform:translate(-.3px,-2px)}}
@keyframes santa-bubble-breathe{0%,100%{transform:scale(.65,.75) rotate(-7deg);opacity:.78}47%{transform:scale(1.13,1.14) rotate(3deg);opacity:1}65%{transform:scale(.94,.97);opacity:.94}}
@keyframes santa-bubble-pop{0%{opacity:1;transform:scale(1)}55%{opacity:.75;transform:scale(1.45,1.22)}100%{opacity:0;transform:scale(1.7,.75)}}
@keyframes santa-bubble-drops{0%{opacity:0;transform:scale(.3)}30%{opacity:.8}100%{opacity:0;transform:scale(1.6)}}
@keyframes santa-little-huff{0%{transform:translateY(0)}23%{transform:translateY(-4px) rotate(-2deg)}47%{transform:translateY(-2px) rotate(1.5deg)}70%{transform:rotate(-.7deg)}100%{transform:none}}
@keyframes santa-reach-cup{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(-2px) rotate(-.5deg)}}
@keyframes santa-enjoy-sip{0%,100%{transform:translateY(-2px) rotate(-.5deg)}40%{transform:translateY(-3px) rotate(-2deg)}75%{transform:translateY(-2px) rotate(-1deg)}}
@keyframes santa-lower-cup{0%{transform:translateY(-2px) rotate(-.5deg)}100%{transform:none}}
@keyframes santa-nod-off{0%{transform:rotate(-.7deg) translateY(-2px)}60%{transform:rotate(.8deg) translateY(1px)}100%{transform:none}}
@media(max-width:1000px){#santa-home{--seat-size:205px}}
@media(max-width:700px){#santa-home{--seat-size:165px;--seat-left:-10px;--seat-bottom:1px}.santa-nose{width:44px;height:47px;left:calc(var(--seat-left) + var(--seat-size)*.425 - 22px)}.santa-snot-bubble{width:25px;height:31px;left:10px}.santa-snot-bubble:before{top:5px;left:6px;width:5px;height:9px;border-left-width:2px}.santa-cup{width:44px;height:44px;left:calc(var(--seat-left) + var(--seat-size)*.837 - 22px)}}
@media(prefers-reduced-motion:reduce){#santa-host #santa-seat-actor,.santa-nose,.santa-snot-bubble,.santa-pop-spark{animation:none!important;transform:none!important}.santa-snot-bubble{opacity:.88}#santa-host[data-state="bubble-pop"] .santa-snot-bubble{opacity:0}.cup-touch-glow{transition:none}}
