.cat-companion{z-index:80;position:relative}.roaming-cat{visibility:hidden;pointer-events:none;will-change:transform;--cat-facing:1;width:102px;height:86px;position:fixed;top:0;left:0}.roaming-cat[data-ready=true]{visibility:visible}.cat-pet{pointer-events:auto;cursor:grab;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;border-radius:40%;width:100%;height:100%;padding:0;display:block}.cat-pet:active{cursor:grabbing}.cat-pet:focus-visible{outline:2px dashed var(--accent);outline-offset:3px}.cat-art{pointer-events:none;filter:drop-shadow(0 2px 3px #0002);width:100%;height:100%;transform:scaleX(var(--cat-facing));display:block;overflow:visible}.cat-sprite{transform-origin:65px 95px;animation:2.6s ease-in-out infinite cat-breathe}.cat-tail{transform-origin:43px 73px;animation:1.8s ease-in-out infinite cat-tail}.cat-head{transform-origin:79px 67px;animation:6s ease-in-out infinite cat-curious}.cat-open-eyes{transform-origin:80px 44px;animation:4.6s infinite cat-blink}.cat-eye-left{transform-origin:66px 44px}.cat-eye-right{transform-origin:95px 44px}.cat-eye-lines>*,.cat-brows,.cat-puffed-cheeks,.cat-mouth>*{display:none}.cat-mouth .cat-mouth-neutral{display:block}.cat-brow-left{transform-origin:66px 33px}.cat-brow-right{transform-origin:95px 33px}.cat-cheek-left{transform-origin:58px 53px}.cat-cheek-right{transform-origin:103px 53px}.roaming-cat:not([data-expression=neutral]) .cat-mouth-neutral{display:none}.roaming-cat[data-expression=curious] .cat-brows,.roaming-cat[data-expression=pout] .cat-brows,.roaming-cat[data-expression=surprised] .cat-brows{display:block}.roaming-cat[data-expression=curious] .cat-brow-left{transform:translateY(-4px)rotate(-12deg)}.roaming-cat[data-expression=curious] .cat-eye-left{transform:translateY(-1px)scale(1.05,1.12)}.roaming-cat[data-expression=curious] .cat-eye-right{transform:scaleY(.8)}.roaming-cat[data-expression=curious] .cat-mouth-curious{display:block}.roaming-cat[data-mood=idle][data-expression=curious] .cat-head{animation:2.4s ease-in-out both cat-question-tilt}.roaming-cat[data-expression=pout] .cat-brow-left{transform:rotate(14deg)}.roaming-cat[data-expression=pout] .cat-brow-right{transform:rotate(-14deg)}.roaming-cat[data-expression=pout] .cat-eye-left,.roaming-cat[data-expression=pout] .cat-eye-right{transform:scaleY(.72)}.roaming-cat[data-expression=pout] .cat-puffed-cheeks,.roaming-cat[data-expression=pout] .cat-mouth-pout{display:block}.roaming-cat[data-expression=pout] .cat-puffed-cheeks{transform-origin:80px 58px;animation:2.3s ease-in-out both cat-cheek-puff}.roaming-cat[data-mood=idle][data-expression=pout] .cat-head{animation:none;transform:rotate(-6deg)}.roaming-cat[data-expression=wink] .cat-eye-right{display:none}.roaming-cat[data-expression=wink] .cat-wink-eye,.roaming-cat[data-expression=wink] .cat-mouth-smile,.roaming-cat[data-expression=wink] .cat-smile-tongue,.roaming-cat[data-expression=happy] .cat-happy-eyes,.roaming-cat[data-expression=happy] .cat-mouth-smile,.roaming-cat[data-expression=happy] .cat-smile-tongue{display:block}.roaming-cat[data-expression=wink] .cat-open-eyes{animation:none}.roaming-cat[data-expression=wink] .cat-cheeks,.roaming-cat[data-expression=happy] .cat-cheeks{opacity:1}.roaming-cat[data-expression=wink] .cat-cheek-right{transform:scale(1.2)}.roaming-cat[data-mood=idle][data-expression=wink] .cat-head{animation:1.5s ease-in-out both cat-wink-nod}.roaming-cat[data-expression=cheeky] .cat-cheeky-eyes,.roaming-cat[data-expression=cheeky] .cat-mouth-cheeky{display:block}.roaming-cat[data-expression=cheeky] .cat-cheeks{opacity:1}.roaming-cat[data-expression=happy] .cat-open-eyes,.roaming-cat[data-expression=cheeky] .cat-open-eyes,.roaming-cat[data-expression=sleepy] .cat-open-eyes{display:none}.roaming-cat[data-mood=idle][data-expression=cheeky] .cat-head{animation:2.2s ease-in-out both cat-cheeky-wiggle}.roaming-cat[data-expression=surprised] .cat-eye-left,.roaming-cat[data-expression=surprised] .cat-eye-right{transform:scale(1.15,1.18)}.roaming-cat[data-expression=surprised] .cat-brows{transform:translateY(-3px)}.roaming-cat[data-expression=surprised] .cat-mouth-surprised,.roaming-cat[data-expression=sleepy] .cat-sleepy-eyes,.roaming-cat[data-expression=sleepy] .cat-mouth-sleepy{display:block}.cat-ear-left{transform-origin:61px 30px;animation:7s ease-in-out infinite cat-ear-twitch}.cat-ear-right{transform-origin:101px 29px;animation:7s ease-in-out -3s infinite cat-ear-twitch}.cat-beans,.cat-yawn{opacity:0}.cat-paw-back{transform-origin:52px 81px}.cat-paw-front{transform-origin:82px 80px}.roaming-cat[data-mood=run] .cat-sprite{animation:.3s ease-in-out infinite cat-trot}.roaming-cat[data-mood=run] .cat-paw{animation:.3s ease-in-out infinite alternate cat-step}.roaming-cat[data-mood=run] .cat-paw-front{animation-delay:-.3s}.roaming-cat[data-mood=run] .cat-tail{animation-duration:.45s}.roaming-cat[data-mood=run] .cat-head{animation:none;transform:rotate(4deg)}.roaming-cat[data-mood=love] .cat-sprite{animation:.55s ease-in-out infinite alternate cat-nuzzle}.roaming-cat[data-mood=love] .cat-head{animation:none;transform:rotate(-8deg)}.roaming-cat[data-mood=sleep] .cat-head{animation:none;transform:rotate(9deg)translateY(3px)}.roaming-cat[data-mood=sleep] .cat-tail,.roaming-cat[data-mood=sleep] .cat-sprite,.roaming-cat[data-mood=sleep] .cat-ear{animation:none}.roaming-cat[data-mood=roll] .cat-sprite{transform-origin:65px 62px;animation:3.4s ease-in-out both cat-roll}.roaming-cat[data-mood=roll] .cat-head{animation:3.4s ease-in-out both cat-roll-head}.roaming-cat[data-mood=roll] .cat-paw{animation:.32s ease-in-out infinite alternate cat-air-paws}.roaming-cat[data-mood=roll] .cat-paw-front{animation-direction:alternate-reverse}.roaming-cat[data-mood=roll] .cat-beans{animation:3.4s ease-in-out both cat-show-beans}.roaming-cat[data-mood=roll] .cat-tail{animation-duration:.6s}.roaming-cat[data-mood=stretch] .cat-sprite{animation:3.6s ease-in-out both cat-stretch}.roaming-cat[data-mood=stretch] .cat-body{transform-origin:49px 78px;animation:3.6s ease-in-out both cat-stretch-body}.roaming-cat[data-mood=stretch] .cat-head{animation:3.6s ease-in-out both cat-stretch-head}.roaming-cat[data-mood=stretch] .cat-paw-front{animation:3.6s ease-in-out both cat-stretch-paw}.roaming-cat[data-mood=stretch] .cat-tail{animation:3.6s ease-in-out both cat-stretch-tail}.roaming-cat[data-mood=stretch] .cat-yawn{animation:3.6s ease-in-out both cat-yawn}.roaming-cat[data-mood=stretch] .cat-mouth{animation:3.6s ease-in-out both cat-yawn-mouth}.roaming-cat[data-mood=pounce] .cat-sprite{animation:2.1s ease-in-out both cat-pounce}.roaming-cat[data-mood=pounce] .cat-head{animation:none;transform:rotate(-5deg)}.roaming-cat[data-mood=pounce] .cat-tail{animation-duration:.3s}.roaming-cat[data-mood=pounce] .cat-paw-front{animation:2.1s ease-in-out both cat-reach}.roaming-cat[data-mood=pounce] .cat-shadow{transform-origin:66px 98px;animation:2.1s ease-in-out both cat-leap-shadow}.cat-bubble,.cat-snooze,.cat-hearts,.cat-sparkles,.cat-question,.cat-exclamation{opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute}.cat-bubble{color:#985d7a;white-space:nowrap;background:#fff7fb;border:1px solid #dfc9d5;border-radius:16px 16px 16px 4px;padding:4px 12px;font-size:13px;font-weight:600;bottom:calc(100% - 9px);left:50%;transform:translate(-50%);box-shadow:0 4px 12px #0001}.roaming-cat[data-mood=love] .cat-bubble{opacity:1}.cat-question,.cat-exclamation{color:#bd8acd;text-shadow:0 1px 2px #fff9;font-size:22px;font-weight:800;line-height:1;top:-9px;right:3px}.cat-exclamation{color:#d6a15f}.roaming-cat[data-expression=curious] .cat-question,.roaming-cat[data-expression=surprised] .cat-exclamation{opacity:1;animation:.45s ease-out both cat-reaction-mark}.cat-snooze{color:var(--accent);letter-spacing:4px;font-size:16px;font-weight:600;top:-5px;right:4px}.roaming-cat[data-mood=sleep] .cat-snooze{opacity:1}.cat-hearts{color:#ef9cb9;font-size:17px;inset:0}.cat-hearts i{font-style:normal;position:absolute;top:25%;left:25%}.cat-hearts i:nth-child(2){font-size:13px;animation-delay:.25s;top:35%;left:70%}.cat-hearts i:nth-child(3){font-size:10px;animation-delay:.5s;top:10%;left:50%}.roaming-cat[data-mood=love] .cat-hearts{opacity:1}.roaming-cat[data-mood=love] .cat-hearts i{animation:1.1s ease-out infinite cat-heart}.cat-sparkles{color:#e3b878;inset:0}.cat-sparkles i{font-size:20px;font-style:normal;position:absolute;top:12%;left:3%}.cat-sparkles i:nth-child(2){font-size:13px;top:30%;left:92%}.roaming-cat[data-mood=pounce] .cat-sparkles{animation:2.1s ease-out both cat-sparkle}.roaming-cat[data-overlap=true] .cat-pet{pointer-events:none;opacity:.45}.roaming-cat:focus-within .cat-pet{opacity:1}.cat-dock{left:max(12px, env(safe-area-inset-left));bottom:max(12px, env(safe-area-inset-bottom));border:1px solid var(--card-border);background:color-mix(in srgb, var(--background) 94%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:22px;align-items:center;display:flex;position:fixed;overflow:hidden;box-shadow:0 3px 14px #0001}.cat-dock button{min-height:36px;color:var(--text-light);font:inherit;cursor:pointer;background:0 0;border:0;padding:4px 9px;font-size:11px}.cat-dock button:hover{color:var(--text);background:var(--surface)}.cat-dock button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:20px}.cat-dock button>span{color:var(--accent);margin-right:3px;font-size:15px}.cat-dock .cat-dismiss{padding:4px 10px 4px 7px;font-size:17px}.cat-dock .cat-play{padding:4px 6px}.cat-dock .cat-play>span{margin:0;font-size:15px;transition:transform .2s;display:block}.cat-dock .cat-play:hover>span{transform:rotate(-18deg)scale(1.15)}.roaming-cat[data-background=true] *{animation-play-state:paused!important}@keyframes cat-trot{0%,to{transform:translateY(0)rotate(-2deg)}50%{transform:translateY(-4px)rotate(2deg)}}@keyframes cat-step{0%{transform:rotate(-16deg)}to{transform:rotate(18deg)}}@keyframes cat-tail{0%,to{transform:rotate(-7deg)}50%{transform:rotate(10deg)}}@keyframes cat-curious{0%,45%,to{transform:rotate(0)}55%,75%{transform:rotate(-8deg)}}@keyframes cat-breathe{0%,to{transform:scaleY(1)}50%{transform:scaleY(.975)}}@keyframes cat-blink{0%,39%,45%,49%,55%,to{transform:scaleY(1)}42%,52%{transform:scaleY(.06)}}@keyframes cat-question-tilt{0%,to{transform:rotate(0)}20%,78%{transform:rotate(-13deg)translateY(-1px)}}@keyframes cat-cheek-puff{0%,to{transform:scale(1)}20%,75%{transform:scale(1.1,1.18)}}@keyframes cat-wink-nod{0%,to{transform:rotate(0)}25%,65%{transform:rotate(8deg)translateY(1px)}}@keyframes cat-cheeky-wiggle{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-6deg)}40%,80%{transform:rotate(6deg)}}@keyframes cat-reaction-mark{0%{transform:translateY(4px)scale(.7)rotate(-12deg)}to{transform:translateY(0)scale(1)rotate(8deg)}}@keyframes cat-nuzzle{0%{transform:translateY(0)rotate(-3deg)}to{transform:translateY(-5px)rotate(3deg)}}@keyframes cat-heart{0%{opacity:0;transform:translateY(0)scale(.7)}25%{opacity:1}to{opacity:0;transform:translateY(-40px)scale(1.15)}}@keyframes cat-ear-twitch{0%,77%,89%,to{transform:rotate(0)}80%,86%{transform:rotate(-10deg)}83%{transform:rotate(6deg)}}@keyframes cat-roll{0%{transform:translate(0)rotate(0)}12%{transform:translateY(6px)rotate(-8deg)scale(1.04,.92)}28%{transform:translate(-12px,9px)rotate(-85deg)}44%{transform:translate(-5px,12px)rotate(-175deg)}53%{transform:translate(3px,12px)rotate(-195deg)}62%{transform:translate(-3px,12px)rotate(-170deg)}76%{transform:translate(7px,9px)rotate(-285deg)}89%{transform:translate(4px,1px)rotate(-360deg)}to{transform:translate(0)rotate(-360deg)}}@keyframes cat-roll-head{0%,to{transform:rotate(0)}25%,75%{transform:rotate(-12deg)}50%{transform:rotate(9deg)}}@keyframes cat-air-paws{0%{transform:rotate(-20deg)translateY(-2px)}to{transform:rotate(24deg)translateY(-5px)}}@keyframes cat-show-beans{0%,14%,92%,to{opacity:0}25%,80%{opacity:1}}@keyframes cat-stretch{0%,to{transform:translate(0)}30%,72%{transform:translate(-8px)}}@keyframes cat-stretch-body{0%,to{transform:scale(1)}32%,70%{transform:scale(1.19,.82)rotate(-5deg)}}@keyframes cat-stretch-head{0%,to{transform:translate(0)rotate(0)}32%,70%{transform:translate(14px,17px)rotate(16deg)}}@keyframes cat-stretch-paw{0%,to{transform:translate(0)rotate(0)}32%,70%{transform:translate(8px)rotate(-48deg)scaleY(1.35)}}@keyframes cat-stretch-tail{0%,to{transform:rotate(0)}30%,72%{transform:rotate(23deg)}}@keyframes cat-yawn{0%,22%,80%,to{opacity:0}32%,68%{opacity:1}}@keyframes cat-yawn-mouth{0%,22%,80%,to{opacity:1}32%,68%{opacity:0}}@keyframes cat-pounce{0%,to{transform:translate(0)}16%{transform:translateY(4px)scale(1.08,.83)rotate(-4deg)}23%{transform:translateY(4px)scale(1.08,.83)rotate(3deg)}30%{transform:translateY(4px)scale(1.08,.83)rotate(-3deg)}48%{transform:translate(10px,-29px)scale(.96,1.04)rotate(7deg)}66%{transform:translate(14px,2px)scale(1.1,.85)}80%{transform:translate(6px,-7px)scale(1)}}@keyframes cat-reach{0%,30%,85%,to{transform:rotate(0)}45%,60%{transform:rotate(-48deg)}}@keyframes cat-leap-shadow{0%,30%,70%,to{opacity:.15;transform:scaleX(1)}48%{opacity:.08;transform:translate(10px)scaleX(.65)}}@keyframes cat-sparkle{0%,30%,85%,to{opacity:0;transform:scale(.8)}48%,60%{opacity:1;transform:translateY(-10px)scale(1.1)}}@media (max-width:600px){.roaming-cat{width:82px;height:70px}.cat-dock button{min-height:34px}}@media (prefers-reduced-motion:reduce){.cat-companion *,.cat-companion :before,.cat-companion :after{transition:none!important;animation:none!important}}@media print{.cat-companion{display:none}}
