/* Scoped full-screen room, the game's other pages retain their layout. */
body:has(#cats.active){overflow:hidden!important}body:has(#cats.active) #app>header,body:has(#cats.active) #app>.money,body:has(#cats.active) #app>nav{display:none!important}
#cats.homeStudio.active{display:block!important;position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;z-index:500;background:#10131c;color:#e5e8ee;font:500 13px/1.35 system-ui,sans-serif;--shelves:44%;--rail:clamp(110px,11vw,165px);--right:clamp(145px,14vw,205px)}
#cats.homeStudio *{box-sizing:border-box}#cats.homeStudio button{font:inherit;color:inherit;cursor:pointer;border:1px solid #8594b34d;background:linear-gradient(150deg,#111923f2,#050a13f5);border-radius:15px;box-shadow:inset 0 1px #ffffff0a;transition:background .2s,border-color .2s,box-shadow .2s;min-width:0;margin:0;letter-spacing:0}#cats.homeStudio button:disabled{opacity:.43;cursor:default}#cats.homeStudio button:focus-visible{outline:2px solid #ffe09a;outline-offset:3px}#cats.homeStudio button:hover:not(:disabled){border-color:#ddbb78}#cats.homeStudio button.on{border-color:#ffe2a0;box-shadow:0 0 18px #efb95445,inset 0 0 15px #ecc27818}
#cats .hs-world{position:absolute;inset:0 0 var(--shelves);overflow:hidden;background:#866449;isolation:isolate}#cats .hs-back{position:absolute;inset:10% 21% 26%;background:var(--hs-wall);box-shadow:inset 0 0 75px #26150b55;border-bottom:13px ridge #d5b695;border-top:9px ridge #c7a889}#cats .hs-side{position:absolute;inset:0;width:22%;background:linear-gradient(90deg,#0006,#0002),var(--hs-wall);clip-path:polygon(0 0,100% 10%,100% 74%,0 100%)}#cats .hs-right{left:auto;right:0;transform:scaleX(-1)}#cats .hs-ceiling{position:absolute;inset:0 0 90%;background:linear-gradient(#513623,#b89574);clip-path:polygon(0 0,100% 0,79% 100%,21% 100%);border-bottom:6px ridge #d3b290}#cats .hs-floor{position:absolute;inset:74% 0 0;background:radial-gradient(ellipse at 50% 0,#ffc98455,transparent 75%),var(--hs-floor);transform:perspective(600px) rotateX(24deg) scale(1.25);transform-origin:top;box-shadow:inset 0 20px 30px #27120366}#cats .hs-light{position:absolute;top:4%;width:7%;height:75%;background:radial-gradient(ellipse at 50% 25%,#ffe4ad70,transparent 68%);filter:blur(12px);transform:scaleX(2);pointer-events:none}#cats .hs-light:before{content:'';position:absolute;top:0;left:45%;width:13px;height:5px;background:#fff6dc;box-shadow:0 0 12px 4px #ffdba0;border-radius:50%}#cats .l1{left:29%}#cats .l2{right:29%}#cats .hs-night .hs-world{filter:brightness(.73)}#cats.hs-night .hs-world:after{content:'';position:absolute;inset:0;background:#17122d44;pointer-events:none;z-index:0}#cats.hs-night .hs-light{opacity:1;filter:blur(5px)}
#cats .hs-top{position:absolute!important;inset:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) auto max(14px,env(safe-area-inset-left));height:47px!important;display:flex!important;align-items:center;gap:12px;padding:0!important;background:none!important;z-index:120;max-width:none!important;width:auto!important}#cats .hs-top>button{width:46px;height:46px;border-radius:50%;font-size:32px}#cats .hs-top strong{display:flex;align-items:center;gap:10px;background:#070c16ee;padding:6px 17px;border:1px solid #8c9bb54d;border-radius:24px;font-size:20px;white-space:nowrap}#cats .hs-top strong button{width:25px;height:25px;border-radius:50%;font-size:16px}#cats .hs-resource{margin-left:auto;background:#050b15ee;border:1px solid #788ba24d;border-radius:30px;padding:10px 20px;white-space:nowrap;font-size:16px;font-weight:700}
#cats .hs-nav{position:absolute;left:max(14px,env(safe-area-inset-left));top:80px;bottom:calc(var(--shelves) + 48px);width:var(--rail);display:flex;flex-direction:column;gap:5px;z-index:121}#cats .hs-nav button{flex:1;display:flex;align-items:center;gap:12px;padding:5px 12px;text-align:left;font-size:11px;font-weight:750;min-height:0}#cats .hs-nav i{font-style:normal;font-size:29px;color:#bac9ea;line-height:1}#cats .hs-nav .on i{color:#f7cd79}#cats .hs-room{position:absolute;right:max(14px,env(safe-area-inset-right));top:80px;width:var(--right);padding:12px 10px;z-index:121;background:#080e19df;border:1px solid #788ba24d;border-radius:19px;display:grid;gap:7px;text-align:center}#cats .hs-room>b{font-size:12px;text-transform:uppercase;overflow-wrap:anywhere}#cats .hs-room button{padding:8px 5px;font-size:11px;font-weight:650;border-radius:12px}#cats .hs-comfort{font-size:9px;color:#a2afc6}#cats .hs-mini{height:84px;position:relative;overflow:hidden;border:1px solid #d1b78a;border-radius:12px;box-shadow:0 0 12px #ffcf7522}#cats .hs-mini span{position:absolute;inset:0 0 27%}#cats .hs-mini i{position:absolute;inset:73% 0 0}#cats .hs-mini img{height:67%;position:absolute;bottom:5%;left:40%;width:30%;object-fit:contain}
#cats .hs-scene{position:absolute;inset:12% calc(var(--right) + 35px) 1% calc(var(--rail) + 35px);z-index:3;touch-action:none}#cats .hs-object{position:absolute;border:0;background:none;box-shadow:none;transform:translate(-50%,-100%);padding:0;border-radius:6px;touch-action:none;animation:hs-appear .35s ease-out}#cats .hs-object.selected{outline:1px dashed #fff0ad;outline-offset:7px;filter:drop-shadow(0 0 8px #fbc66866)}#cats .hs-object.dragging{cursor:grabbing;animation:none}#cats .hs-art{position:absolute;inset:0;display:block;transform:scaleX(var(--flip,1));filter:drop-shadow(4px 9px 5px #1d0e0977)}#cats .hs-cat{position:absolute;width:22%;height:52%;transform:translate(-50%,-100%);touch-action:none;cursor:grab;filter:drop-shadow(0 10px 6px #20100677)}#cats .hs-cat img{width:100%;height:100%;object-fit:contain;object-position:center bottom;pointer-events:none;transform-origin:50% 100%;animation:hs-breathe 4.5s ease-in-out infinite}#cats .hs-cat.dragging img{animation-play-state:paused}
#cats .hs-rug{border-radius:50%;background:repeating-radial-gradient(ellipse,#c99d64 0 3%,#745239 4% 5%,#d5b987 6% 9%);border:4px double #e0c393;transform:scaleX(var(--flip,1)) rotate(-4deg);box-shadow:0 3px 2px #0006}#cats .hs-chair,#cats .hs-sofa{inset:12% 0 4%;background:linear-gradient(90deg,#2a4947,#547a72 40%,#304e4d);border:2px solid #bb9456;border-radius:25% 25% 12% 12%;box-shadow:inset 0 0 0 7px #0002}#cats .hs-sofa{background:linear-gradient(90deg,#41325c,#755c89,#4b3a64);border-radius:18% 18% 10% 10%}#cats .hs-chair:before,#cats .hs-sofa:before{content:'';position:absolute;inset:51% 6% 8%;background:linear-gradient(#739286,#345d53);border-radius:13%;border:1px solid #c5b38a;box-shadow:0 5px 0 #2a3835}#cats .hs-sofa:before{background:linear-gradient(#947fac,#514262)}#cats .hs-chair:after,#cats .hs-sofa:after{content:'';position:absolute;bottom:-8%;left:12%;width:76%;height:12%;border-left:8px solid #3d2d21;border-right:8px solid #3d2d21}#cats .hs-chair i,#cats .hs-sofa i{position:absolute;inset:9% 14% 45%;border-radius:20%;border:1px solid #ffffff22;box-shadow:inset 0 3px 12px #0003}#cats .hs-chair em,#cats .hs-sofa em,#cats .hs-chair u,#cats .hs-sofa u{position:absolute;left:-3%;top:42%;bottom:9%;width:15%;background:linear-gradient(90deg,#344e48,#779383,#3c5952);border-radius:35%;border:1px solid #baa073}#cats .hs-chair u,#cats .hs-sofa u{left:auto;right:-3%}#cats .hs-lamp:before{content:'';position:absolute;inset:30% 46% 8%;background:linear-gradient(90deg,#735432,#efd19a,#735432)}#cats .hs-lamp i{position:absolute;inset:0 0 58%;background:linear-gradient(90deg,#ac8860,#ffe4a7,#b99b70);clip-path:polygon(25% 0,75% 0,100% 100%,0 100%);filter:drop-shadow(0 0 12px #ffda89)}#cats .hs-lamp em{position:absolute;inset:92% 18% 0;background:#937347;border-radius:50%;box-shadow:0 2px 2px #271a0b}#cats .hs-plant i{position:absolute;inset:-17% -15% 20%;font:normal clamp(42px,8vw,130px)/1 Georgia;color:#4b7548;text-shadow:4px 3px #244c36;transform:rotate(-20deg)}#cats .hs-plant em{position:absolute;inset:66% 22% 0;background:linear-gradient(90deg,#9b6142,#ce9e71,#855338);clip-path:polygon(0 0,100% 0,83% 100%,17% 100%)}#cats .hs-table{border-radius:50%;height:42%;background:radial-gradient(ellipse,#bd8a55,#5d3524);border:3px solid #d9ae73;box-shadow:0 8px 0 #51301c}#cats .hs-table:after{content:'';position:absolute;top:100%;height:140%;left:18%;right:18%;border-left:8px solid #543526;border-right:8px solid #543526}#cats .hs-medal:before{content:'';position:absolute;inset:0 25% 30%;background:linear-gradient(90deg,#7a202b 0 30%,#eac879 30% 40%,#b34648 40% 60%,#eac879 60% 70%,#7a202b 70%);clip-path:polygon(0 0,100% 0,90% 100%,50% 80%,10% 100%)}#cats .hs-medal i{position:absolute;inset:25% 0 0;background:radial-gradient(circle at 35% 25%,#fff1b7,#c58e37 65%,#775125);border:4px double #efda9a;border-radius:50%;display:grid;place-items:center;color:#735020;font:normal clamp(14px,3vw,40px)/1 Georgia;box-shadow:0 2px 5px #0007}
#cats .hs-editbar{position:absolute;left:calc(var(--rail) + 35px);right:calc(var(--right) + 35px);bottom:calc(var(--shelves) + 8px);display:flex;align-items:center;gap:7px;z-index:122}#cats .hs-editbar button{width:35px;height:33px;font-size:20px}#cats .hs-hint{font-size:10px;text-shadow:0 2px 3px #000;margin:auto;color:#fff1d9}#cats .hs-selection{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--shelves) + 49px);z-index:123;display:flex;gap:5px;align-items:center;background:#070d19ee;border:1px solid #e4c38a88;padding:7px;border-radius:15px;white-space:nowrap;animation:hs-appear .2s ease-out}#cats .hs-selection[hidden]{display:none}#cats .hs-selection span{font-size:11px;padding:0 6px}#cats .hs-selection button{padding:7px 10px;font-size:12px}
#cats .hs-shelves{position:absolute;inset:auto 0 0;height:var(--shelves);display:flex;flex-direction:column;gap:2px;background:#050910;z-index:125;padding-bottom:env(safe-area-inset-bottom)}#cats .hs-shelf{flex:1;min-height:0;border:1px solid #677c9b66;background:linear-gradient(110deg,#0b111bf5,#040914fa);border-radius:18px;padding:10px 16px;display:flex;flex-direction:column;gap:8px;animation:hs-appear .25s ease-out}#cats .hs-shelf h3{margin:0 0 0 26px;font-size:11px;letter-spacing:1px;color:#e8eaf0}#cats .hs-shelf h3 span{color:#7a8ba9;letter-spacing:.5px}#cats .hs-rowwrap{display:flex;gap:12px;min-height:0;flex:1}#cats .hs-rowwrap>button{border:0;background:none;box-shadow:none;width:22px;font-size:32px;flex-shrink:0}#cats .hs-row{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;min-height:0;flex:1;scrollbar-width:none;scroll-snap-type:x proximity;padding:2px 2px 6px}#cats .hs-swatch{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 88px;min-width:0;min-height:0;padding:0;scroll-snap-align:start}#cats .hs-swatch>i{display:block;flex:1;width:100%;min-height:30px;border:1px solid #7687a16b;border-radius:12px;box-shadow:inset 0 0 14px #0005;position:relative;overflow:hidden;font-style:normal;font-size:40px}#cats .hs-swatch>span{font-size:9px;line-height:1.1;text-align:center;white-space:normal;color:#c6ccda}#cats .hs-swatch.on>i{border:2px solid #ffe0a0;box-shadow:0 0 13px #ffda7240}#cats .hs-swatch img{width:100%;height:100%;object-fit:contain}#cats .hs-inventory .hs-row{padding:6px 20px}#cats .hs-inventory .hs-swatch{flex-basis:140px}#cats .hs-item>i{width:100%;max-height:130px;margin-bottom:4px}#cats .hs-item .hs-art{inset:20% 20% 15%}#cats .hs-item small{font-size:10px;color:#c5a56d}#cats .hs-inventoryfoot{display:flex;align-items:center;gap:8px;padding:0 20px;font-size:11px;color:#aab4c6}#cats .hs-inventoryfoot span{margin-right:auto}#cats .hs-inventoryfoot button{padding:9px 12px;font-size:11px}#cats .hs-inventory p{margin:0 20px;color:#aab4c6;font-size:11px}
#cats .hs-dialog{max-width:min(480px,90vw);color:#d9e0ec;background:linear-gradient(140deg,#1a2031,#080e18);border:1px solid #c7a766;border-radius:24px;padding:26px;box-shadow:0 20px 100px #000b;font-size:14px}#cats .hs-dialog::backdrop{background:#030812aa;backdrop-filter:blur(5px)}#cats .hs-dialog[open]{animation:hs-appear .25s ease-out}#cats .hs-dialog h2{color:#ffe1a6;font-size:22px;margin:0 0 15px}#cats .hs-dialog p{line-height:1.6;color:#b9c3d6}#cats .hs-dialog button{padding:10px 15px;margin:5px}#cats .hs-dialog input{width:100%;padding:12px;background:#060c16;border:1px solid #7b8aa4;color:white;border-radius:10px}body:has(#cats.active) #toast{z-index:1000!important}
@keyframes hs-breathe{50%{transform:scale(1.012,1.024) rotate(.4deg)}}@keyframes hs-appear{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(max-height:550px) and (orientation:landscape){#cats.homeStudio.active{--rail:95px;--right:125px;--shelves:44%}#cats .hs-top{height:34px!important;top:max(5px,env(safe-area-inset-top));gap:8px}#cats .hs-top>button{width:33px;height:33px;font-size:26px}#cats .hs-top strong{font-size:14px;padding:4px 10px}#cats .hs-resource{font-size:12px;padding:7px 12px}#cats .hs-nav{top:48px;bottom:calc(var(--shelves) + 8px);gap:3px}#cats .hs-nav button{font-size:8px;padding:2px 8px;gap:6px;border-radius:10px}#cats .hs-nav i{font-size:21px}#cats .hs-room{top:48px;padding:7px;gap:4px}#cats .hs-room>b{font-size:9px}#cats .hs-mini{height:45px}#cats .hs-room button{font-size:8px;padding:4px}#cats .hs-comfort{font-size:7px}#cats .hs-shelf{padding:5px 9px;gap:4px;border-radius:12px}#cats .hs-shelf h3{font-size:8px}#cats .hs-swatch{flex-basis:60px;gap:3px}#cats .hs-swatch>span{font-size:7px}#cats .hs-swatch>i{border-radius:7px;min-height:15px}#cats .hs-row{gap:7px;padding-bottom:2px}#cats .hs-editbar button{width:25px;height:25px;font-size:16px}#cats .hs-hint{font-size:8px}#cats .hs-inventory .hs-swatch{flex-basis:100px}#cats .hs-item small{font-size:8px}#cats .hs-inventoryfoot{font-size:8px;padding:0 6px}#cats .hs-inventoryfoot button{font-size:8px;padding:5px}#cats .hs-selection{bottom:calc(var(--shelves) + 38px)}#cats .hs-selection span{font-size:9px}#cats .hs-selection button{padding:4px 7px;font-size:10px}}
@media(orientation:portrait){#cats.homeStudio.active{--rail:66px;--right:0px;--shelves:37%}#cats .hs-top{left:8px;right:8px;gap:5px;height:38px!important}#cats .hs-top>button{width:32px;height:32px;font-size:24px}#cats .hs-top strong{font-size:13px;gap:4px;padding:5px 8px}#cats .hs-top strong button{width:21px;height:21px;font-size:12px}#cats .hs-resource{font-size:9px;padding:7px;white-space:normal}#cats .hs-nav{left:8px;top:65px;bottom:calc(var(--shelves) + 85px)}#cats .hs-nav button{flex-direction:column;justify-content:center;gap:2px;padding:4px;font-size:7px;border-radius:12px}#cats .hs-nav i{font-size:24px}#cats .hs-room{top:auto;bottom:calc(var(--shelves) + 6px);left:8px;right:8px;width:auto;display:flex;flex-wrap:wrap;align-items:center;padding:6px;gap:5px;border-radius:13px}#cats .hs-room>b{font-size:9px;margin-right:auto}#cats .hs-mini{display:none}#cats .hs-room button{font-size:8px;padding:5px}#cats .hs-comfort{display:none}#cats .hs-scene{left:85px;right:12px;bottom:70px;top:15%}#cats .hs-cat{width:42%;height:42%}#cats .hs-editbar{left:85px;right:10px;bottom:calc(var(--shelves) + 74px)}#cats .hs-hint{font-size:8px;max-width:140px}#cats .hs-hint:after{content:' · Удобнее горизонтально'}#cats .hs-selection{max-width:95%;flex-wrap:wrap;justify-content:center;bottom:calc(var(--shelves) + 111px)}#cats .hs-selection span{width:100%;text-align:center}#cats .hs-shelf{padding:10px 7px}#cats .hs-shelf h3{font-size:9px;margin-left:10px}#cats .hs-swatch{flex-basis:74px}#cats .hs-rowwrap{gap:3px}#cats .hs-rowwrap>button{width:16px;font-size:25px}#cats .hs-inventoryfoot{flex-wrap:wrap;padding:0 5px;font-size:9px}#cats .hs-inventoryfoot span{width:100%}#cats .hs-inventoryfoot button{font-size:9px;padding:7px}#cats .hs-inventory .hs-swatch{flex-basis:105px}#cats .hs-back{left:10%;right:10%}#cats .hs-side{width:11%}}
@media(prefers-reduced-motion:reduce){#cats.homeStudio *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#cats .hs-back,#cats .hs-side{background-size:auto,480px 200px}#cats .hs-floor{background-size:100% 100%,480px 200px}#cats .hs-swatch>i{background-size:cover!important}#cats .hs-miniobjects{position:absolute;inset:10% 7% 3%;pointer-events:none}#cats .hs-miniobjects .hs-art{filter:none}#cats .hs-miniobjects .hs-medal i{font-size:5px;border-width:1px}#cats .hs-miniobjects .hs-plant i{font-size:20px}#cats .hs-room{max-height:calc(100% - var(--shelves) - 90px);overflow-y:auto;scrollbar-width:thin}#cats .hs-back{box-shadow:inset 0 0 90px #26150b77,inset 0 15px 24px #4a311c66}#cats .hs-left:after,#cats .hs-right:after{content:'';position:absolute;inset:73% 0 0;background:linear-gradient(#efcaa1,#ad8963);clip-path:polygon(0 83%,100% 0,100% 7%,0 91%)}#cats .hs-light{filter:blur(5px);width:10%;background:radial-gradient(ellipse at 50% 22%,#ffe4ad95,transparent 68%)}#cats .hs-light:before{top:0;box-shadow:0 0 10px 3px #ffdba0}#cats .hs-world:before{content:'';position:absolute;inset:8% 15% 0;pointer-events:none;z-index:2;background:radial-gradient(circle at 30% 27%,#ffeabb99 0 1px,transparent 2px),radial-gradient(circle at 68% 47%,#ffeabb66 0 1px,transparent 2px),radial-gradient(circle at 43% 60%,#ffeabb66 0 1px,transparent 2px);animation:hs-dust 8s ease-in-out infinite alternate}@keyframes hs-dust{to{translate:0 -14px;opacity:.3}}
@media(max-height:550px) and (orientation:landscape){#cats .hs-room{max-height:calc(100% - var(--shelves) - 54px)}#cats .hs-room button{padding:3px}#cats .hs-comfort{display:none}}
@media(orientation:portrait){#cats .hs-room{max-height:80px;overflow:auto}}

#cats .hs-mini [data-h="rename"]{position:absolute;right:3px;bottom:3px;border-radius:50%;width:25px;height:25px;padding:0;font-size:16px;z-index:3}#cats .hs-room button[data-h="random"],#cats .hs-room button[data-h="reset"]{min-height:48px}#cats .hs-room{scrollbar-width:none}
@media(max-height:550px) and (orientation:landscape){#cats .hs-room{gap:4px;padding:6px}#cats .hs-room button[data-h="random"],#cats .hs-room button[data-h="reset"]{min-height:28px}#cats .hs-mini{height:36px}#cats .hs-mini [data-h="rename"]{width:18px;height:18px;font-size:12px}}
@media(orientation:portrait){#cats .hs-room button[data-h="random"],#cats .hs-room button[data-h="reset"]{min-height:22px}}
/* Legacy room resource drawer must not sit over the new studio. */
html body:has(#cats.homeStudio.active) #app > section.money.economy4{display:none!important;visibility:hidden!important;pointer-events:none!important}
/* v516: isolate viewport from Safari's clipped portrait shell. */
html body:has(> #cats.homeStudio.active){margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-height:0!important;height:100dvh!important;overflow:hidden!important;transform:none!important;filter:none!important;perspective:none!important}
html body:has(> #cats.homeStudio.active)>#app{display:none!important}
html body>#cats.homeStudio.active{position:fixed!important;inset:auto!important;left:var(--hs-vx,0px)!important;top:var(--hs-vy,0px)!important;width:var(--hs-vw,100vw)!important;height:var(--hs-vh,100dvh)!important;max-height:none!important;max-width:none!important;border-radius:0!important;transform:none!important;contain:none!important;clip-path:none!important;--left-safe:max(12px,env(safe-area-inset-left,0px));--right-safe:max(12px,env(safe-area-inset-right,0px));--top-safe:max(8px,env(safe-area-inset-top,0px))}
#cats .hs-roomart{position:absolute;inset:0;background:url('assets/home/room-classic-v516.jpg') center/100% 100% no-repeat;pointer-events:none}
#cats .hs-world.hs-wall-classic>.hs-back,#cats .hs-world.hs-wall-classic>.hs-side,#cats .hs-world.hs-wall-classic>.hs-light{opacity:0}
#cats .hs-world>.hs-ceiling{display:none}
#cats .hs-world.hs-floor-classic>.hs-floor{opacity:0}
#cats .hs-back{inset:13% 20.2% 32.5%}
#cats .hs-side{width:20.2%;clip-path:polygon(0 0,100% 13%,100% 67.5%,0 85.5%);background-size:auto,480px 200px}
#cats .hs-left:after,#cats .hs-right:after{display:none}
#cats .hs-floor{inset:67.5% 0 0;transform:none;clip-path:polygon(20.2% 0,79.8% 0,100% 56%,100% 100%,0 100%,0 56%)}
#cats .hs-world{transition:filter .45s ease}
#cats.hs-night .hs-world{filter:brightness(.68) saturate(.9)}
#cats .hs-top{left:var(--left-safe)!important;right:var(--right-safe)!important;top:var(--top-safe)!important;gap:10px;overflow:visible!important}
#cats .hs-top>button,#cats .hs-top strong button,#cats .hs-editbar button{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;flex-shrink:0;align-self:center}
#cats .hs-top>button svg{width:23px;height:23px;display:block}
#cats .hs-top strong{line-height:1;gap:9px;min-height:46px;padding:5px 12px}
#cats .hs-homeicon{width:32px;height:32px;object-fit:contain;display:block}
#cats .hs-top strong button{font:700 17px/1 system-ui;transform:none!important}
#cats .hs-resource{display:flex;align-items:center;gap:12px;padding:8px 13px;font-size:14px;min-width:0}
#cats .hs-resource>span{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
#cats .hs-resource img{width:23px;height:23px;object-fit:contain;flex-shrink:0}
#cats .hs-resource b{font-variant-numeric:tabular-nums}
#cats .hs-nav{left:var(--left-safe);top:calc(var(--top-safe) + 65px)}
#cats .hs-nav i{display:grid;place-items:center;width:34px;flex-shrink:0}
#cats .hs-nav svg{width:30px;height:30px;display:block}
#cats .hs-room{right:var(--right-safe);top:calc(var(--top-safe) + 65px)}
#cats .hs-scene{left:calc(var(--left-safe) + var(--rail) + 20px);right:calc(var(--right-safe) + var(--right) + 20px)}
#cats .hs-editbar{left:calc(var(--left-safe) + var(--rail) + 20px);right:calc(var(--right-safe) + var(--right) + 20px)}
#cats .hs-object{min-height:0!important;min-width:0!important;max-height:none!important;box-sizing:border-box!important;flex-shrink:0;line-height:1;padding:0!important}
#cats .hs-medal i{inset:auto 0 0;height:auto;width:100%;aspect-ratio:1;border-radius:50%;box-sizing:border-box;font-size:clamp(12px,2.8vw,32px)}
#cats .hs-medal:before{inset:0 25% 28%}
#cats .hs-swatch[data-index="0"][data-kind="wall"]>i{background-size:400% auto!important;background-position:50% 35%!important}
#cats .hs-swatch[data-index="0"][data-kind="floor"]>i{background-size:280% auto!important;background-position:50% 95%!important}
#cats .hs-mini>span{background-size:100% 135%!important}
#cats .hs-mini>i{background-size:100% 400%!important;background-position:center bottom!important}
#cats .hs-item .hs-medal{width:48px;height:70px;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%)}
#cats .hs-inventory .hs-item>i{min-height:75px}
#cats .hs-cat{z-index:110!important}
#toast{z-index:2147483500!important}
@media(max-height:550px) and (orientation:landscape){
 html body>#cats.homeStudio.active{--rail:clamp(77px,11vw,100px);--right:clamp(102px,14vw,135px);--shelves:42%;--top-safe:max(5px,env(safe-area-inset-top,0px))}
 #cats .hs-top{height:34px!important;gap:7px}#cats .hs-top strong{min-height:32px;height:32px;font-size:13px;padding:3px 9px;gap:6px}#cats .hs-homeicon{width:25px;height:25px}#cats .hs-top strong button{width:20px;height:20px;font-size:13px}#cats .hs-top>button{width:31px;height:31px}#cats .hs-top>button svg{width:18px;height:18px}
 #cats .hs-resource{font-size:11px;gap:10px;padding:5px 9px}#cats .hs-resource img{width:19px;height:19px}
 #cats .hs-nav{top:calc(var(--top-safe) + 42px);bottom:calc(var(--shelves) + 7px)}#cats .hs-nav button{padding:2px 6px;font-size:8px;gap:6px}#cats .hs-nav svg{width:19px;height:19px}#cats .hs-nav i{width:22px}
 #cats .hs-room{top:calc(var(--top-safe) + 42px);max-height:calc(100% - var(--shelves) - var(--top-safe) - 48px);padding:5px;gap:4px}#cats .hs-mini{height:35px;min-height:26px}#cats .hs-room button[data-h="random"],#cats .hs-room button[data-h="reset"]{min-height:26px;font-size:8px}
 #cats .hs-scene{top:16%;bottom:4%}#cats .hs-cat{height:51%;width:24%}
 #cats .hs-shelves{padding-bottom:0}#cats .hs-hint{display:none}#cats .hs-editbar{justify-content:center;pointer-events:none;bottom:calc(var(--shelves) + 5px)}#cats .hs-editbar button{pointer-events:auto;width:25px;height:25px}
 #cats .hs-shelf{padding:5px 8px 4px;gap:3px}#cats .hs-swatch{flex-basis:62px}#cats .hs-swatch>span{font-size:7px;min-height:8px}#cats .hs-shelf h3{font-size:8px}
 #cats .hs-inventory .hs-item>i{min-height:38px}#cats .hs-item .hs-medal{width:26px;height:38px}#cats .hs-medal i{border-width:2px}
}
@media(orientation:portrait){
 html body>#cats.homeStudio.active{--rail:65px;--right:0px;--left-safe:max(8px,env(safe-area-inset-left,0px));--right-safe:max(8px,env(safe-area-inset-right,0px))}
 #cats .hs-top{gap:5px;height:36px!important}#cats .hs-top strong{min-height:32px;height:32px;padding:3px 6px;font-size:12px;gap:4px}#cats .hs-homeicon{width:22px;height:22px}#cats .hs-top>button{width:29px;height:29px}#cats .hs-top>button svg{width:18px;height:18px}#cats .hs-top strong button{width:18px;height:18px;font-size:12px}#cats .hs-resource{font-size:9px;gap:6px;padding:6px}#cats .hs-resource>span{gap:2px}#cats .hs-resource img{width:15px;height:15px}
 #cats .hs-nav{top:calc(var(--top-safe) + 52px);bottom:calc(var(--shelves) + 83px)}#cats .hs-nav svg{width:24px;height:24px}#cats .hs-nav i{width:27px}#cats .hs-room{top:auto;left:var(--left-safe);right:var(--right-safe);bottom:calc(var(--shelves) + 6px)}
 #cats .hs-scene{left:86px;right:10px;top:15%;bottom:72px}#cats .hs-editbar{left:86px;right:10px}#cats .hs-hint{display:none}#cats .hs-editbar{justify-content:center}#cats .hs-cat{width:45%;height:44%}
 #cats .hs-back{inset:13% 20.2% 32.5%}#cats .hs-side{width:20.2%}
 #cats .hs-medal i{font-size:15px;border-width:2px}#cats .hs-world .hs-light{display:none}
}
@media(max-width:365px) and (orientation:portrait){#cats .hs-top strong{font-size:10px;gap:2px}#cats .hs-homeicon{width:18px;height:18px}#cats .hs-resource{font-size:8px;gap:4px}#cats .hs-resource img{width:12px;height:12px}#cats .hs-top{gap:3px}}
@media(prefers-reduced-motion:reduce){#cats.homeStudio *{animation:none!important;transition:none!important}}
/* Header inherited a 92px minimum from the game's global header rules. */
#cats.homeStudio>.hs-top{min-height:0!important;align-items:center!important;align-content:center!important;flex-wrap:nowrap!important}
#cats .hs-swatch[data-index="0"][data-kind]>i{background-size:auto 450%!important;background-repeat:no-repeat!important}
