:root{font-family:ui-rounded,'Segoe UI',sans-serif;color:#385344;background:#f8f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{color:inherit;cursor:pointer;border:1px solid #e4e4d9;background:#fffdf8;border-radius:13px;min-height:42px;padding:8px 13px;touch-action:manipulation}button:hover{background:#edf1e6}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d5a77e;outline-offset:3px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}
header{height:76px;max-width:1080px;margin:auto;padding:12px 26px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:800;font-size:27px;letter-spacing:-1.5px;text-decoration:none;color:#385344}.brand span{font-size:10px;letter-spacing:1px;display:block;font-weight:400;margin-top:1px}nav{display:flex;align-items:center;gap:8px}nav button{font-size:12px}#cat-picker{padding:0;width:47px;height:47px;border-radius:50%;background:#f2e7d4}.cat-art{width:100%;height:100%;display:block}main{max-width:1028px;margin:auto;padding:0 24px}.level-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 0 16px}.level-heading h1{font-size:23px;letter-spacing:-.7px;margin:3px 0 0}#level-number,.section-label{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#8a997e}.badge{font-size:10px;background:#e9eddf;padding:7px 11px;border-radius:18px}.game{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(265px,1fr);gap:26px;align-items:start}.house-panel{background:#eeeee3;border:1px solid #e0e2d2;border-radius:24px;padding:20px 20px 12px}
#board{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr);aspect-ratio:1;border:6px solid #a3b49c;border-radius:9px;background:#e8e9da;box-shadow:0 5px 0 #cbd2bf;overflow:hidden}.salon{--room:#f0edcf}.mutfak{--room:#e0ece0}.yatak{--room:#f1e1d7}.koridor{--room:#eee7d9}.banyo{--room:#e0ebef}.cell{position:relative;padding:0;min-width:0;min-height:0;border:0;border-right:1px solid #88947730;border-bottom:1px solid #88947730;border-radius:0;background:var(--room)}.cell:hover{background:var(--room);box-shadow:inset 0 0 0 2px #8da67b}.cell.wall-left{border-left:3px solid #acbba0}.cell.wall-top{border-top:3px solid #acbba0}.coordinate{position:absolute;top:2px;left:3px;z-index:3;font-size:8px;color:#8a957f}.furniture{z-index:1;pointer-events:none;position:relative;margin:5% 8% 9%;filter:drop-shadow(0 3px 1px #6b705224)}.furniture svg{width:100%;height:100%;overflow:visible}.furniture-label{position:absolute;bottom:-2px;right:0;width:15px;height:15px;border-radius:50%;background:#fff9e9;color:#6d7b60;font:700 9px/15px 'Segoe UI',sans-serif;text-align:center;border:1px solid #d9dec9}.person,.pencil,.lock-cross{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center}.person{font-size:clamp(23px,3vw,35px);line-height:1;filter:drop-shadow(0 2px 0 #fff)}.person.cat{width:90%;height:90%;position:absolute;inset:5%}.person sup{position:absolute;right:-5px;top:-5px;font:700 10px/14px sans-serif;width:14px;height:14px;background:#668367;color:#fff;border-radius:50%}.locked:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 8px,#6e7c5e0b 8px 10px);pointer-events:none;z-index:2}.lock-cross{font-size:18px;color:#7c896965}.pencil{font-size:27px;color:#b78264}.door{position:absolute;z-index:4;pointer-events:none;background:var(--room)}.door.top{height:4px;width:30%;top:-3px;left:36%;border-right:1px solid #9aa48c}.door.left{width:4px;height:30%;left:-3px;top:36%;border-bottom:1px solid #9aa48c}
.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:9px;color:#808b72;margin:15px 0 11px}.legend span{display:flex;align-items:center;gap:4px}.legend i{width:8px;height:8px;background:var(--room);border:1px solid #b7c0aa;border-radius:2px}.tools{display:flex;justify-content:center;gap:8px}.tools button{font-size:11px;background:transparent;border-color:transparent;min-height:36px;padding:5px 10px}.tools button.active{background:#d8e2cc;border-color:#a2b68f}aside{padding:13px 0}.characters{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0 18px}.character{position:relative;background:#f1eee6;border-color:transparent;padding:8px 4px;min-width:0}.character.selected{background:#e8efde;border-color:#8ea77b;box-shadow:0 0 0 1px #8ea77b}.character>span{display:block;font-size:27px;height:35px;width:40px;margin:0 auto 4px}.character b{font-size:11px;font-weight:600}.character small{position:absolute;top:4px;right:6px;color:#779267;font-size:10px}.active-clue{padding:16px;background:#fffdf7;border:1px solid #e5dfcd;border-radius:16px;font-size:14px;line-height:1.6;min-height:100px;display:flex;align-items:center;gap:10px}.active-clue b{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#9b916e;display:block;margin-bottom:6px}.active-clue p{margin:0}.clue-art{width:65px;flex:none;display:block}.clue-art svg{width:100%;height:55px}details{margin-top:10px}summary{cursor:pointer;font-size:11px;list-style:none;display:flex;justify-content:space-between;padding:10px 1px;color:#7d8c72}.clue{font-size:12px;line-height:1.6;padding:8px;border-bottom:1px solid #e5e5d9}.clue span{color:#9ca48f;margin-right:8px}#status{font-size:12px;line-height:1.55;min-height:36px;margin:15px 0 5px;color:#6d8061}.auto-note{font-size:10px;color:#9aa58e}.bottom-note{padding:15px 0;font-size:10px;color:#929c85;display:flex;justify-content:space-between}
.primary{background:#47684f;border:0;color:#fffdf6;padding:13px 20px;width:100%;font-weight:600}.primary:hover{background:#38573f}dialog{position:relative;border:1px solid #dde2d3;border-radius:24px;padding:30px;background:#fffdf6;color:#385344;width:min(440px,94vw);max-height:92dvh;box-shadow:0 22px 80px #25412e33}dialog::backdrop{background:#233c3266;backdrop-filter:blur(5px)}dialog h2{font-size:25px;line-height:1.2;letter-spacing:-.8px;margin:12px 0}dialog p{font-size:13px;line-height:1.7;color:#7e8973}.close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:24px;padding:0;width:34px;min-height:34px}#cat-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.cat-option{padding:12px;background:#f5f0e6;border:2px solid transparent}.cat-option.chosen{border-color:#8aa475;background:#edf2e4}.cat-option .cat-art{width:100px;height:100px;margin:auto}.cat-option strong,.cat-option small{display:block}.cat-option small{font-size:10px;color:#9b9e89;margin:4px 0}#level-list{display:grid;gap:8px;margin-top:20px}#level-list button{text-align:left;font-size:13px}#success{text-align:center}#success-cat{width:150px;height:150px;margin:auto;animation:pop .55s ease-out}#success .primary{margin:14px 0 8px}#success>button:last-child{background:transparent;border:0;font-size:12px}label{display:block;font-size:12px;margin:16px 0}input{display:block;width:100%;padding:12px;border:1px solid #d5dccb;border-radius:10px;margin-top:6px;background:#fff}#account-dialog small{font-size:10px;line-height:1.5;color:#9b9e8c;display:block}.text-button{width:100%;background:transparent;border:0;font-size:12px;margin-top:8px}@keyframes pop{from{transform:scale(.6) rotate(-10deg)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
@media(max-width:700px){header{height:62px;padding:8px 16px}.brand{font-size:24px}.brand span{font-size:8px}nav{gap:5px}nav button{padding:7px 10px;font-size:11px}#cat-picker{width:40px;height:40px}main{padding:0 13px;max-width:480px}.level-heading{padding:5px 2px 10px}.level-heading h1{font-size:19px}#level-number{font-size:8px}.game{display:flex;flex-direction:column;gap:12px}.house-panel{padding:10px 10px 4px;border-radius:18px;width:100%}#board{border-width:5px}.legend{margin:10px 0 3px;gap:10px}.tools button{min-height:32px}aside{padding:0 2px;width:100%;display:flex;flex-direction:column}.section-label{font-size:9px}aside>.section-label{display:none}.characters{display:flex;gap:5px;margin:0 0 9px}.character{flex:1;padding:5px 2px;border-radius:12px;min-height:57px}.character>span{font-size:23px;height:27px;width:32px;margin-bottom:2px}.character b{font-size:10px}.active-clue{padding:10px 13px;min-height:67px;font-size:12px;border-radius:12px}.active-clue b{font-size:9px;margin-bottom:3px}.clue-art{width:45px}.clue-art svg{height:40px}details{margin-top:2px}summary{padding:8px 0}#status{font-size:11px;margin:4px 0;min-height:17px}.auto-note{display:none}.bottom-note{padding:9px 2px;font-size:9px}.person{font-size:clamp(22px,6vw,30px)}.furniture-label{width:12px;height:12px;font-size:8px;line-height:12px}.coordinate{font-size:7px}dialog{padding:26px 22px}}
@media(max-width:360px){main{padding:0 6px}.house-panel{padding:7px 6px 3px}.legend{font-size:8px}.character b{font-size:9px}}
#cat-list{grid-template-columns:repeat(2,minmax(0,1fr))}.cat-option{min-width:0}.cat-option .cat-art{width:min(100%,90px);height:90px}
/* Keep every logical cell square, independent of a spanning SVG's intrinsic size. */
#board{grid-template-columns:repeat(var(--n),minmax(0,1fr));grid-template-rows:repeat(var(--n),minmax(0,1fr))}.furniture{min-width:0;min-height:0}.furniture>svg{position:absolute;inset:0;display:block}

.salon{--room:#e9d99e}.mutfak{--room:#b8d8bd}.yatak{--room:#e8bdab}.koridor{--room:#d3c4df}.banyo{--room:#acd2df}
.room-label{align-self:end;justify-self:center;z-index:4;pointer-events:none;font-size:10px;font-weight:650;line-height:14px;padding:0 6px;background:var(--room);border-radius:5px 5px 0 0;letter-spacing:.2px;color:#435449;max-width:100%;white-space:nowrap}.tools{margin-top:10px}.furniture{margin:3% 8% 15%}.cell.wall-left{border-left-color:#94a68b}.cell.wall-top{border-top-color:#94a68b}
@media(max-width:700px){.room-label{font-size:8px;line-height:11px;padding:0 3px}.tools{margin-top:6px}.person{font-size:clamp(19px,5vw,27px)}}
/* Two swipeable worlds; the room itself always fits the viewport. */
html,body{height:100%;overflow:hidden}body>header{position:fixed;top:0;left:0;right:0;z-index:100;pointer-events:none}body>header>*{pointer-events:auto}.in-room>header{visibility:hidden}#worlds{display:flex;width:100%;height:100dvh;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;outline:none}#worlds::-webkit-scrollbar{display:none}#puzzle-world,#pet-view{flex:0 0 100%;width:100%;max-width:none;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;position:relative}#puzzle-world{overflow-y:auto;padding:80px max(24px,calc((100vw - 980px)/2)) 20px}#pet-view{overflow:hidden}#puzzle-view{width:100%}.swipe-note{font-size:11px;color:#8a947f;text-align:right;margin:3px 0 12px}#living-room{width:100%;height:100%;position:relative;overflow:hidden;isolation:isolate;background:#eeded2;touch-action:pan-x}.room-wall{position:absolute;inset:0 0 43%;background:repeating-linear-gradient(90deg,#eeded2 0 100px,#e9d6c7 100px 102px);border-bottom:12px solid #fff3e2}.room-floor{position:absolute;inset:57% 0 0;background:repeating-linear-gradient(0deg,transparent 0 70px,#baa27e30 71px 73px),repeating-linear-gradient(90deg,#dfc39b 0 190px,#d4b58f 191px 193px)}.room-window{position:absolute;left:19%;top:13%;width:clamp(100px,16vw,230px);height:28%;max-height:250px;border:12px solid #fff6e9;border-radius:100px 100px 10px 10px;background:linear-gradient(#96c9d7,#e5e9bb);box-shadow:0 8px 0 #bca18b33;display:grid;place-items:center}.room-window span{color:#edc25d;font-size:65px}.room-window:after{content:'';position:absolute;height:100%;left:50%;border-left:7px solid #fff6e9}.room-hud{position:absolute;z-index:95;top:max(20px,env(safe-area-inset-top));left:24px;color:#6e7261;pointer-events:none}.room-hud span,.room-hud small{display:block}.room-hud span{font-size:18px;font-weight:750}.room-hud small{font-size:11px;margin-top:8px}.scene-object{position:absolute;background:none!important;border:0!important;padding:0;min-height:0;transform:translate(-50%,-80%);filter:drop-shadow(0 6px 3px #6a533326);border-radius:0;touch-action:none}.scene-object svg{width:100%;height:100%;display:block}.scene-object:hover{filter:drop-shadow(0 6px 4px #6a53334d)}.scene-object:focus-visible{outline:3px dashed #628367;border-radius:15px}.scene-object>span:last-child{font-size:11px;font-weight:600;white-space:nowrap}#room-closet{width:clamp(100px,17vw,220px);height:clamp(150px,29vh,310px);left:80%;top:55%;z-index:45}#room-chest{left:13%;top:59%;z-index:51;width:90px;height:100px;display:flex;align-items:center;flex-direction:column;justify-content:center}.chest-art{font-size:65px;line-height:1.2}#chest-count{background:#fff3d8;border-radius:20px;padding:3px 10px;color:#8a6f4b}#room-bowl{left:20%;top:86%;width:clamp(70px,13vw,150px);height:100px;z-index:85}#room-ball{width:clamp(42px,6vw,75px);height:75px;z-index:89;transition:left .6s ease-out,top .6s ease-out}#room-ball.dragging,.placed-object.dragging{transition:none;z-index:99!important}.placed-object{width:clamp(62px,12vw,150px);height:clamp(62px,13vw,150px);transition:left .6s,top .6s}#room-pet{position:absolute;width:clamp(140px,19vw,250px);height:auto;aspect-ratio:120/155;transform:translate(-50%,-83%);border:0;background:none!important;padding:0;z-index:88;transition:left .85s ease-in-out,top .85s ease-in-out;touch-action:none;user-select:none}.living-cat{width:100%;height:100%;overflow:visible;display:block}.cat-tail{transform-origin:85px 126px;animation:tail-wave 2.5s ease-in-out infinite}.cat-head{transform-origin:60px 80px;animation:cat-look 5s ease-in-out infinite}#room-pet[data-action=walk] .living-cat{animation:cat-walk .2s ease-in-out infinite alternate}#room-pet[data-action=eat] .cat-head{animation:cat-eat .45s ease-in-out infinite}#room-pet[data-action=stroke] .cat-head{animation:cat-stroke .8s ease-in-out infinite}#room-pet[data-action=pounce] .living-cat{animation:cat-pounce .5s ease-in-out 3}#room-pet[data-action=sleep] .living-cat{transform:translateY(18px) scaleY(.82)}#pet-hearts{position:absolute;z-index:94;opacity:0;color:#c66f88;font-size:30px;pointer-events:none;transform:translateX(-50%)}#pet-hearts.float{animation:hearts 2s ease-out}#pet-mood{position:absolute;z-index:96;left:50%;bottom:65px;transform:translateX(-50%);padding:8px 15px;margin:0;max-width:85%;background:#fff9e4e8;border-radius:20px;pointer-events:none;font-size:13px;text-align:center}#pet-mood:empty{display:none}#room-tip{position:absolute;bottom:18px;left:0;right:0;margin:0;text-align:center;font-size:11px;color:#756e59;pointer-events:none;z-index:95}.placing .room-floor{background-color:#b8c89e;cursor:crosshair}.placing .room-floor:after{content:'Eşyanı yerleştir';position:absolute;inset:10px;text-align:center;border:2px dashed #769469;border-radius:15px;padding:15px;color:#657e58}#closet-dialog{width:min(540px,94vw)}#pet-wardrobe,#room-items{display:flex;flex-wrap:wrap;gap:8px}#pet-wardrobe h3,#room-items h3{width:100%;font-size:14px;margin:15px 0 4px}#pet-wardrobe button,#room-items button{width:calc(33.333% - 8px);font-size:11px;margin:0;padding:8px}#pet-wardrobe button span{display:block;font-size:32px;margin:5px}#room-items button svg{display:block;width:65px;height:65px;margin:auto}.pet-bounce{animation:none}.special-box{margin-top:10px}@keyframes tail-wave{50%{transform:rotate(13deg)}}@keyframes cat-look{45%,55%{transform:rotate(-4deg)}}@keyframes cat-walk{to{transform:translateY(-6px) rotate(2deg)}}@keyframes cat-eat{50%{transform:translateY(9px) rotate(9deg)}}@keyframes cat-stroke{50%{transform:rotate(8deg) translateY(-4px)}}@keyframes cat-pounce{50%{transform:translateY(-23px) rotate(-6deg)}}@keyframes hearts{15%{opacity:1}100%{opacity:0;transform:translate(-50%,-70px)}}@media(max-width:700px){#puzzle-world{padding:65px 13px 15px}.swipe-note{font-size:10px;margin-bottom:7px}.room-hud{left:18px}.room-hud span{font-size:16px}.room-window{left:12%;top:18%;width:110px;height:170px;border-width:8px}#room-closet{left:80%;width:110px;height:185px;top:55%}#room-chest{left:17%;top:59%;width:70px}.chest-art{font-size:55px}#room-pet{width:155px}#room-bowl{height:75px;width:85px;left:18%}.placed-object{width:80px;height:80px}#room-tip{font-size:10px;bottom:20px}#pet-mood{font-size:12px;width:max-content;max-width:88%}#pet-view{padding:0}}@media(max-height:550px){.room-window{height:25%;top:15%}#room-closet{height:130px;width:90px}#room-pet{width:120px}#room-chest{top:52%;height:70px}.chest-art{font-size:40px}#room-bowl{height:60px}.placed-object{height:65px;width:65px}}@media(prefers-reduced-motion:reduce){.living-cat,.cat-head,.cat-tail,#pet-hearts{animation:none!important}#room-pet,.scene-object{transition:none!important}}
.cat-eyes{transform-origin:60px 58px;animation:cat-blink 6s infinite}.cat-arms{transform-origin:60px 100px}#room-pet[data-action=pounce] .cat-arms{animation:paw-reach .5s ease-in-out 3}#room-pet[data-action=stroke]:after{content:'🖐🏻';position:absolute;left:63%;top:5%;font-size:50px;transform-origin:bottom;animation:hand-stroke 1s ease-in-out infinite;pointer-events:none}#room-pet[data-action=eat] .cat-head{animation:cat-eat .45s ease-in-out infinite;transform-origin:60px 95px}#room-chest .chest-art{width:90px;height:80px}#room-pet[data-action=eat] .living-cat{transform:scale(.85) rotate(-10deg)}@keyframes cat-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.1)}}@keyframes hand-stroke{50%{transform:translate(-20px,15px) rotate(-15deg)}}@keyframes paw-reach{50%{transform:rotate(-12deg) scaleY(1.15)}}@media(prefers-reduced-motion:reduce){.cat-eyes,.cat-arms,#room-pet:after{animation:none!important}}

.tools{flex-wrap:wrap}.tools #mark{background:#fff4d6;border:2px solid #bb923c;font-weight:750;color:#70551b}.tools #mark.active{background:#70551b;color:white}.tools #hint{border:1px solid #d1d8be;background:#f8faef}#pet-wardrobe [aria-pressed=true]{background:#d9e9cb;border-color:#789b65}.special-box{background:#b28a3e!important}.gift-icon{font-size:80px;text-align:center;animation:pop .5s}#gift-dialog{text-align:center}@media(max-width:700px){.tools{gap:3px}.tools button{padding:5px 7px}}
#paws-wallet{font-size:14px;margin-top:8px;color:#9b7441}#room-shop{left:51%;top:57%;width:70px;height:85px;z-index:50;display:flex;align-items:center;flex-direction:column}.shop-bag{font-size:52px!important;line-height:1.1}#room-shop>span:last-child{background:#fff2d8;padding:3px 10px;border-radius:20px}#shop-dialog{width:min(640px,95vw)}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-heading strong{color:#997144;font-size:19px}.shop-heading select{font:inherit;font-size:13px;padding:9px;border:1px solid #d9dec9;border-radius:10px;background:#fffdf5;color:inherit}#shop-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shop-item{display:flex;align-items:center;flex-direction:column;padding:10px 6px;background:#f3efdf;border-radius:15px;gap:7px;text-align:center}.shop-item svg{width:75px;height:75px}.shop-item .shop-icon{font-size:45px;height:75px;display:grid;place-items:center}.shop-item b{font-size:12px}.shop-item button{font-size:11px;width:100%;padding:8px 3px;background:#e4ecd9;border-color:#becdac}.shop-item small{font-size:10px;color:#8f846d}#shop-status{min-height:42px}#conversion-note{font-size:11px;color:#9a8b70}.milestone{padding:12px;border:1px solid #dedbca;border-radius:12px;margin-bottom:10px}.milestone.reached{background:#edf1de}.milestone b,.milestone span,.milestone small{display:block}.milestone b{font-size:14px}.milestone span{font-size:12px;margin:7px 0}.milestone small{font-size:10px;margin-top:4px}.milestone progress{width:100%;height:8px;accent-color:#7a9565}@media(max-width:700px){#shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}#room-shop{left:48%;top:55%;width:60px;height:75px}.shop-bag{font-size:43px!important}#chest-count{font-size:9px}}
/* The cat is a real 3D model; its canvas travels across the illustrated room. */
#room-pet{width:clamp(190px,23vw,310px);aspect-ratio:1.15;transform:translate(-50%,-84%)}#room-pet canvas{width:100%;height:100%;display:block;pointer-events:none}.room-window{padding:0;cursor:pointer;z-index:4}.room-window:after{pointer-events:none}.room-window:hover{filter:brightness(1.04)}.night .room-wall{background:repeating-linear-gradient(90deg,#69748c 0 100px,#647087 100px 102px);border-color:#a9afbe}.night .room-floor{filter:brightness(.62) saturate(.65)}.night .room-window{background:linear-gradient(#233851,#61718f);border-color:#b4bbce}.night .room-window:after{border-color:#b4bbce}.night .room-hud,.night #room-tip{color:#f1e9da}.night .scene-object{filter:brightness(.78)}.night #room-pet:before{content:'z z Z';position:absolute;right:15%;top:0;color:#f7e8c9;letter-spacing:5px;font-size:20px;animation:sleep-breath 3s infinite}.room-wall,.room-floor,.room-window{transition:background .6s,filter .6s}#room-laser{left:89%;top:88%;z-index:94;width:45px;display:grid;justify-items:center}#room-laser>span:first-child{display:block;width:19px;height:50px;border-radius:6px;background:linear-gradient(90deg,#657d79,#c3d6c6,#657d79);color:#d34369;font-size:30px;border-top:6px solid #e98094;transform:rotate(25deg)}#room-laser[aria-pressed=true]{filter:drop-shadow(0 0 7px #f6698b)}#laser-dot{position:absolute;width:12px;height:8px;background:#ff526c;border:2px solid #ffd9db;border-radius:50%;z-index:98;box-shadow:0 0 12px 5px #fc315b66;pointer-events:none}.laser-on{touch-action:none!important}.closet-door{transition:transform .35s;transform-box:fill-box}.left-door{transform-origin:left}.right-door{transform-origin:right}.opening .closet-door{transform:scaleX(.2)}#closet-dialog{background:#f5e5d3;border:9px solid #b9957c;border-radius:20px;box-shadow:0 20px 80px #3d2f3955;animation:closet-reveal .25s ease-out}#closet-dialog h3{border-bottom:4px solid #c7a587;padding-bottom:8px}#pet-wardrobe button,#room-items button{background:#fff8e9}#room-pet[data-action=sleep] .living-cat{transform:translateY(20px) scaleY(.65)}@keyframes closet-reveal{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes sleep-breath{50%{opacity:.3;transform:translateY(-7px)}}@media(max-width:700px){#room-pet{width:205px}#room-tip{font-size:9px}}@media(max-height:550px){#room-pet{width:165px}}@media(prefers-reduced-motion:reduce){#closet-dialog,.night #room-pet:before{animation:none}.closet-door,.room-wall,.room-floor,.room-window{transition:none}}
#room-ball{z-index:99}#room-bowl{z-index:98}#room-laser{z-index:100}
#room-shop .shop-bag{width:60px;height:62px}.room-window span{position:relative;z-index:1}
/* More floor, smaller furniture, and tactile care objects. */
.room-wall{bottom:65%;border-bottom-width:9px}.room-floor{top:35%}.room-window{left:17%;top:12%;width:clamp(92px,12vw,155px);height:19%;max-height:165px;border-width:7px}.room-window span{font-size:38px}.room-window:after{border-width:4px}.room-hud span{font-size:14px}.room-hud small{font-size:10px}#room-closet{left:82%;top:37%;width:clamp(85px,13vw,165px);height:clamp(120px,22vh,210px)}#room-chest{left:12%;top:40%;width:65px;height:75px}#room-shop{left:53%;top:37%;width:55px}#room-shop .shop-bag{width:43px;height:47px}#room-pet{transition:left .7s linear,top .7s linear}#room-pet[data-action=stroke]:after{content:none}#room-bowl{left:18%;top:86%;width:76px;height:65px}#room-water{left:38%;top:86%;width:76px;height:65px;z-index:98}#room-water span{font-size:10px}.fresh-water .water-surface{animation:water-ripple .7s infinite alternate}#room-food{left:9%;top:73%;z-index:103;width:40px;height:57px;border-radius:5px 5px 10px 10px;background:linear-gradient(90deg,#d5a079,#efd1a1,#d5a079)!important;border-top:6px solid #ba866c!important;border-bottom:4px solid #ba866c!important;display:grid;place-content:center;transition:transform .2s}#room-food span{font-size:22px}#room-food small{font-size:9px}#room-food.pouring{transform:translate(-50%,-80%) rotate(45deg)}.food-pieces{position:absolute;left:23%;top:19%;width:55%;height:20%;font-size:10px!important;line-height:7px;color:#986340;white-space:normal!important;overflow:hidden}#sleep-cushion{position:absolute;left:64%;top:70%;width:clamp(85px,13vw,155px);height:clamp(32px,6vw,55px);transform:translate(-50%,-65%);border-radius:50%;background:radial-gradient(ellipse at 50% 38%,#eedbd9 0 55%,#d0a9b3 58% 80%,#b78b9b 83%);box-shadow:0 8px 5px #75604622;z-index:60}#room-ball{width:65px;height:65px;transition:none;filter:none}#room-ball:after{content:'';position:absolute;left:22%;bottom:9%;width:58%;height:12%;border-radius:50%;background:#71523730;filter:blur(3px);z-index:-1}#room-ball canvas{width:100%;height:100%;display:block;pointer-events:none}.round-ball{display:block;width:38px;height:38px;margin:10px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffe6b6,#dc9d6b 60%,#9f674b);box-shadow:inset -4px -4px 8px #8c5f4b44;transform:rotate(var(--roll,0deg))}#room-laser{transition:none}.window-bird{position:absolute;left:26%;top:19%;font-size:22px;color:#688f8f;z-index:5;pointer-events:none;animation:bird-pass 17s infinite}.night .window-bird{display:none}#closet-dialog{background:repeating-linear-gradient(90deg,#c59a77 0 7px,#c29a7833 8px 9px),#bc906e;border:12px ridge #b48664;border-radius:14px;box-shadow:inset 0 0 35px #71503e66,0 25px 80px #34231e88;padding:24px}#closet-dialog h2,#closet-note{color:#fff5df;text-shadow:0 1px #765039}#pet-wardrobe,#room-items{background:#98705355;padding:12px 6px 8px;border-bottom:12px ridge #c29b74;box-shadow:inset 0 10px 14px #593c3933;margin-bottom:14px;gap:10px}#pet-wardrobe h3,#room-items h3{color:#fff0d1;border:0;margin:0;padding:0 4px 12px}#pet-wardrobe button{position:relative;border-radius:8px 8px 16px 16px;margin-top:18px;background:#f6e4c8;box-shadow:0 4px 7px #593c3933}#pet-wardrobe button:before{content:'⌁';position:absolute;top:-28px;left:calc(50% - 10px);font-size:28px;color:#e9ccb0}#pet-wardrobe{background:linear-gradient(#765443,#765443) 0 45px/100% 5px no-repeat,#98705355}#room-items button{background:#e6c5a0;box-shadow:0 4px 7px #593c3933}#pet-wardrobe p,#room-items p{color:#fff1d7;font-size:12px;padding:8px}@keyframes water-ripple{to{opacity:.65;transform:translateY(1px)}}@keyframes bird-pass{0%,60%,100%{opacity:0;transform:translateX(-20px)}65%,90%{opacity:1}95%{opacity:0;transform:translateX(25px)}}@media(max-width:700px){.room-window{left:17%;top:14%;width:90px;height:125px}#room-closet{left:82%;top:37%;width:80px;height:130px}#room-chest{left:13%;top:40%;width:58px}#room-pet{width:190px}.room-hud{top:18px}#room-tip{font-size:10px}#room-laser{top:85%}}@media(max-height:550px){.room-window{top:10%;height:90px}#room-closet{height:100px;top:40%}.room-hud small{display:none}}@media(prefers-reduced-motion:reduce){.window-bird,.fresh-water .water-surface{animation:none}}
.food-pieces{left:32%;top:49%;width:36%;height:16%;font-size:7px!important;line-height:5px;pointer-events:none}#room-laser[aria-pressed=true]{transform:translate(-50%,-100%) rotate(-20deg)}
#room-pet{width:clamp(175px,19vw,250px)}#room-ball{width:49px;height:49px}#room-water{width:64px;height:55px}#room-bowl{width:70px;height:60px}#room-closet{height:clamp(155px,25vh,240px);width:clamp(100px,15vw,180px);top:37%}#laser-dot.on-wall{height:12px;border-radius:50%;box-shadow:0 0 17px 6px #fc315b77}@media(max-width:700px){#room-pet{width:175px}#room-closet{height:155px;width:100px}}@media(max-height:550px){#room-pet{width:145px}#room-closet{height:125px;width:85px}}
#room-closet,#room-shop,#room-chest{z-index:96}
#room-sound{pointer-events:auto;font-size:10px;padding:4px 8px;position:absolute;left:0;top:85px;white-space:nowrap;background:#fff4dfbd;color:#53665b;min-height:24px}#room-laser[aria-pressed=true]{transform:translate(-50%,-50%) rotate(var(--laser-angle,-30deg))}#room-laser[aria-pressed=true]>span:first-child{transform:none}#room-laser[aria-pressed=true]>span:last-child{visibility:hidden}

/* Keep the selected clue visible before the house on narrow screens. */
.cell.hint-cell{box-shadow:inset 0 0 0 4px #47684f;background:#fff1a6}.cell:focus-visible{outline:3px solid #385344;outline-offset:-4px;z-index:5}
.chapter{border:1px solid #dedfce;border-radius:14px;padding:4px 12px}.chapter summary{font-size:14px;font-weight:700;min-height:44px;align-items:center}.chapter-levels{display:grid;gap:6px;padding-bottom:10px}.chapter-levels button{display:flex;align-items:center;gap:12px}.chapter-levels button>b{width:24px;text-align:center}.chapter-levels small{display:block;margin-top:4px;font-size:10px;color:#74846b}.chapter-levels [aria-current]{border-color:#668367;background:#edf2e4}
@media(max-width:700px){.game{display:grid;grid-template-columns:1fr;gap:8px}.game aside{display:contents}.characters{grid-row:1;margin:0}.active-clue{grid-row:2;min-height:54px;padding:7px 10px}.house-panel{grid-row:3}.game #status{grid-row:4}.game #clue-drawer{grid-row:5}.game .section-label{display:none}.tools{gap:2px}.tools button{min-height:38px}.level-heading{padding-top:0}.swipe-note{margin-bottom:6px}.character{min-height:48px}.character>span{height:23px;font-size:21px}.clue-art svg{height:32px}.bottom-note{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.closet-item{width:calc(33.333% - 8px)}#room-items .closet-item button{width:100%}#room-items [data-store]{font-size:10px;min-height:32px;margin-top:4px;background:#ead8bf}

@media(max-width:700px){.characters:has(>:nth-child(6)){display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.auto-note{display:block;font-size:9px}.family-link{color:#47684f}}

/* A turntable inside the wardrobe keeps fabric and fit readable. */
#closet-preview{height:235px;width:100%;max-width:350px;margin:0 auto;background:radial-gradient(ellipse at 50% 85%,#bf9a7130,transparent 65%);touch-action:none;cursor:grab;border-radius:18px}#closet-preview:active{cursor:grabbing}#closet-preview canvas,#closet-preview>svg{width:100%;height:100%;display:block}#closet-preview>svg{max-width:220px;margin:auto}.closet-preview-note{display:block;text-align:center;color:#80634f;font-size:11px;margin:-8px 0 10px}@media(max-width:600px){#closet-preview{height:195px}}@media(max-height:600px){#closet-preview{height:155px}}
