@font-face{font-family:CatBody;src:url('../../fonts/body.woff')}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#08353c;color:#142c31;font-family:CatBody,'Trebuchet MS',sans-serif;touch-action:manipulation;-webkit-user-select:none;user-select:none}button,select,input{font:inherit}button,a,select{touch-action:manipulation}button{color:inherit;cursor:pointer;border:2px solid #152b2b;background:#fff0cc;border-radius:12px;font-weight:900;padding:9px 17px;box-shadow:0 3px 0 #102a2b;transition:background .15s,transform .15s}button:hover{background:#ffe082}button:active{transform:translateY(2px);box-shadow:0 1px 0 #102a2b}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ef6d72;outline-offset:3px}button:disabled{opacity:.45;cursor:default}button.primary{background:#ffd054}button[aria-pressed=true]{background:#ffd054}button[hidden],[hidden]{display:none!important}#workspace{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#devbar{height:32px;flex:none;background:#102e35;color:#cee0d8;display:flex;align-items:center;gap:14px;padding:0 14px;font:11px system-ui;z-index:40}#devbar a{color:#cee0d8;text-decoration:none}#devbar>span{margin-right:auto;letter-spacing:.12em;font-weight:800}#devbar label{display:flex;align-items:center;gap:7px}#devbar select{font:11px system-ui;background:#193f48;color:#fff2d0;border:1px solid #527078;border-radius:4px;padding:3px}#devbar button{font:11px system-ui;color:#e5efeb;background:#20454e;border:1px solid #5b757c;border-radius:4px;padding:3px 9px;box-shadow:none}kbd{font:10px monospace;opacity:.6;margin-left:5px}#viewport{flex:1;position:relative;width:100%;min-height:0;overflow:hidden;isolation:isolate;background:#ffd887}#workspace.device-preview #viewport{flex:none;position:absolute;top:50%;left:50%;width:var(--device-w);height:var(--device-h);transform:translate(-50%,-50%) scale(var(--device-scale));transform-origin:center;border:5px solid #172d33;border-radius:22px;box-shadow:0 0 0 2px #65818b,0 30px 80px #0008}#title-screen{position:absolute;inset:0;background:url('assets/title-landscape.webp') center/cover no-repeat;overflow:hidden}.title-glow{position:absolute;left:5%;top:2%;width:49%;height:88%;background:radial-gradient(ellipse,#fff6ca94,transparent 72%);pointer-events:none}.title-content{position:absolute;left:8%;top:9%;width:44%;height:84%;display:flex;flex-direction:column;align-items:center}.love-line{font-size:clamp(25px,5.3cqh,62px);font-weight:900;letter-spacing:.04em;transform:rotate(-4deg);line-height:1.1;color:#174453;text-shadow:2px 3px 0 #fff4d2}.love-line span{color:#ef687d}.love-line i{display:inline-block;font-style:normal;color:#ef6581;padding-left:.17em;animation:heart 2.2s ease-in-out infinite}.title-content h1{display:flex;margin:1.1cqh 0 0;line-height:1;font-size:clamp(65px,17cqh,170px);font-weight:1000;letter-spacing:-.085em;-webkit-text-stroke:clamp(2px,.5cqh,5px) #163137;paint-order:stroke fill;text-shadow:4px 7px 0 #f26b85,6px 10px 0 #163137;transform:rotate(-5deg)}.title-content h1 span{display:inline-block;color:#ffe450;animation:title-enter .65s cubic-bezier(.17,.8,.4,1.3) both,bob 2.1s ease-in-out infinite;animation-delay:calc(.2s + var(--i)*.1s),calc(1s + var(--i)*-.22s)}.title-content h1 span:nth-child(2){color:#ffcf42}.title-content h1 span:nth-child(3){color:#fff16e}.tagline{font-weight:900;font-size:clamp(8px,1.5cqh,15px);letter-spacing:.2em;margin:2.5cqh 0 3cqh;color:#23515a}.title-menu{display:grid;width:78%;gap:1.5cqh}.title-menu button{background:#fff1cfeb;font-size:clamp(13px,2.8cqh,26px);font-weight:900;letter-spacing:.05em;padding:1cqh 1.5vw;text-align:left;border:3px solid #183b40;box-shadow:0 4px 0 #183b40;border-radius:12px;display:flex;justify-content:space-between;align-items:center}.title-menu button:first-child{background:#ffd24e}.title-menu button span{font-size:.8em}.title-copyright{margin-top:auto;padding-top:2cqh;font-size:clamp(8px,1.2cqh,12px);font-weight:800;letter-spacing:.05em}.title-hearts span{position:absolute;color:#f7778b;font-size:5cqh;text-shadow:2px 2px 0 #173139;animation:heart 3s infinite}.title-hearts span:nth-child(1){left:4%;top:20%;transform:rotate(-20deg)}.title-hearts span:nth-child(2){left:49%;top:18%;animation-delay:-1s}.title-hearts span:nth-child(3){left:51%;top:68%;animation-delay:-2s}.title-hearts span:nth-child(4){left:5%;top:80%;animation-delay:-.7s}#game-screen{position:absolute;inset:0;display:flex;flex-direction:column}#playfield{position:relative;flex:1;min-height:0;overflow:hidden;background:#95c6ce}#scene{width:100%;height:100%;display:block;touch-action:none;outline:none}#scene-heading{position:absolute;top:12px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}#scene-heading h2{font-size:clamp(13px,2.5cqh,25px);line-height:1.1;text-transform:uppercase;margin:0;padding:9px 25px;background:#fff1ce;border:3px solid #163137;border-radius:40px;box-shadow:0 2px 0 #16313733;letter-spacing:.015em}.portrait{display:flex;align-items:center;background:#fff1ce;border:3px solid #163137;border-radius:40px;min-width:132px;height:49px;padding-right:13px;gap:9px;font-size:17px}.portrait span{display:block;width:52px;height:57px;margin-left:-3px;border:3px solid #163137;border-radius:50%;background:#fff0cd;overflow:hidden}.portrait b{white-space:nowrap}.scene-controls{display:flex;gap:8px;pointer-events:auto}.scene-controls button{height:42px;width:44px;border-radius:50%;font-size:18px;padding:0}#objective{position:absolute;top:65px;right:16px;max-width:70%;background:#fff1d7ed;border:2px solid #163137;border-radius:20px;padding:6px 15px;margin:0;font-size:clamp(11px,1.8cqh,17px);font-weight:800;pointer-events:none}#inventory-bar{display:flex;align-items:center;justify-content:center;gap:clamp(8px,3vw,50px);height:clamp(72px,17cqh,132px);background:#07545c;border-top:4px solid #122c32;padding:8px clamp(8px,4vw,65px);position:relative;z-index:8;flex:none}#verbs{display:grid;gap:4px;width:clamp(90px,13vw,170px);flex:none}#verbs button{padding:3px 9px;border-radius:10px;font-size:clamp(11px,1.8cqh,18px);line-height:1.1;min-height:21px}#inventory{display:flex;justify-content:center;align-items:center;padding:8px 12px;gap:8px;background:#fff0cd;border:3px solid #173137;border-radius:22px;max-width:72%;min-width:0}.item-slot{padding:0;position:relative;width:clamp(42px,7.5cqh,82px);height:clamp(42px,7.5cqh,82px);border:2px solid #a89871;box-shadow:none;background:#fff2d2;border-radius:12px;flex:none}.item-slot canvas{width:100%;height:100%}.item-slot[aria-pressed=true]{background:#ffe081;border:3px solid #eba309;box-shadow:0 0 0 2px #ffcd5b}.item-slot.empty{opacity:.5}.item-name{position:absolute;bottom:105%;left:50%;transform:translateX(-50%);background:#fff2d1;padding:4px 10px;border:2px solid #163137;border-radius:8px;white-space:nowrap;font-size:12px;display:none}.item-slot:hover .item-name,.item-slot:focus-visible .item-name{display:block}#map-button{border-radius:50%;padding:10px;width:clamp(48px,9cqh,96px);height:clamp(48px,9cqh,96px);flex:none}#map-button svg{width:100%;height:100%}#inventory-page{padding:6px 10px;font-size:22px}#tooltip{position:absolute;z-index:20;pointer-events:none;background:#fff2d3;border:2px solid #183336;border-radius:13px;padding:6px 13px;font-size:14px;font-weight:900;max-width:280px;transform:translate(-50%,-125%);box-shadow:0 3px 0 #142d3333}#speech{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:min(660px,82%);background:#fff3dced;border:3px solid #18363b;box-shadow:0 5px 0 #18363b44;border-radius:20px;padding:15px 42px 15px 21px;font-size:clamp(12px,2.2cqh,19px);line-height:1.4;font-weight:700;z-index:25}#speech-close{position:absolute;top:4px;right:8px;background:none;border:0;padding:0;width:28px;height:28px;box-shadow:none;font-size:22px}#next-level{position:absolute;bottom:20px;right:20px;background:#ffd34f;border-width:3px;z-index:26;animation:next-pulse 1.9s infinite}#recenter{position:absolute;bottom:10px;left:12px;padding:2px 9px;opacity:.8;box-shadow:none}#hotspot-buttons{position:absolute;inset:0;pointer-events:none}#hotspot-buttons button{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff4d2;background:#ffd358d9;padding:2px 7px;min-width:28px;min-height:28px;border-radius:20px;pointer-events:auto;font:900 13px system-ui;box-shadow:0 0 0 2px #15424b}#hotspot-buttons:not(.show) button{opacity:0}#hotspot-buttons:not(.show) button:focus-visible{opacity:1}dialog{width:min(500px,90%);max-height:88%;border:3px solid #183a40;border-radius:24px;padding:30px;background:#fff0ce;color:#17383e;box-shadow:0 15px 0 #082e3b55,0 30px 100px #0005;overflow-y:auto}dialog::backdrop{background:#062a3d96;backdrop-filter:blur(5px)}dialog h2{font-size:32px;margin:4px 0 20px;line-height:1.1}dialog>button:not(.dialog-close){display:block;width:100%;margin-top:10px}.dialog-close{position:absolute;right:15px;top:13px;border:0;box-shadow:none;background:transparent;padding:2px 10px;font-size:23px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.14em;color:#b7733e;margin:0 0 9px}.fine{font-size:11px;color:#627068;text-align:center;margin-bottom:0}.help{font-size:13px;line-height:1.5;color:#496468}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0;font-weight:800;font-size:14px}.setting input{accent-color:#d66d5b}.setting input[type=range]{width:130px}#map-dialog{width:min(1000px,94%)}#map-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.map-card{padding:0;overflow:hidden;text-align:left;background:#fff6e1;border:2px solid #234850}.map-card img{display:block;width:100%;aspect-ratio:1.9;object-fit:cover}.map-card strong{display:block;padding:8px;font-size:13px}.map-card small{font-size:10px;color:#396569;padding:0 8px 9px;display:block}.map-card:disabled img{filter:grayscale(1);opacity:.4}.ending-cat{font-size:80px;color:#ee7483;text-align:center;animation:heart 2s infinite}#ending-score{text-align:center;font-weight:900}#loading{position:absolute;inset:0;z-index:50;background:#ffedb5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:#1e4950}#loading progress{width:min(280px,60%);accent-color:#d5756d;height:9px}#load-status{font-size:12px}.loading-paw{font-size:45px;animation:heart 1s infinite}#orientation-note{display:none;position:absolute;inset:0;background:#fff0cf;z-index:80;text-align:center;padding:15cqh 9vw;color:#16424b}#orientation-note>span{font-size:90px;color:#d97677}#orientation-note h2{font-size:28px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:200;background:#183b43;color:#fff1ce;border:2px solid #e4ba62;border-radius:13px;padding:12px 22px;max-width:90%;font:14px system-ui}#cursor{position:fixed;top:0;left:0;z-index:500;width:38px;height:38px;background:url('paw.svg') center/contain no-repeat;pointer-events:none;display:none;transform:translate(-9px,-5px)}@media(pointer:fine){body.custom-cursor,body.custom-cursor *{cursor:none!important}body.custom-cursor #cursor{display:block}body.custom-cursor input,body.custom-cursor textarea{cursor:text!important}}body.reduced-motion *,body.reduced-motion *::before{animation:none!important;transition:none!important}@media(pointer:coarse){#devbar{display:none}.desktop-help{display:none}#orientation-note{display:none}#inventory-bar{gap:12px;padding:7px 14px;height:72px}#inventory{padding:5px 8px;gap:5px;border-radius:16px}.item-slot{width:46px;height:46px}#verbs{width:85px;gap:3px}#verbs button{font-size:11px;min-height:18px}#map-button{width:48px;height:48px;padding:6px}#scene-heading{top:8px;left:10px;right:10px}#scene-heading h2{font-size:14px;padding:7px 15px}.portrait{height:36px;font-size:12px;min-width:94px;gap:5px;padding-right:9px}.portrait span{width:39px;height:42px}.scene-controls button{height:34px;width:35px;font-size:15px}#objective{top:50px;right:10px;font-size:11px;padding:4px 10px}#tooltip{font-size:11px}#speech{bottom:14px;padding:10px 33px 10px 14px;font-size:12px}#next-level{font-size:12px;bottom:12px;right:12px}.title-content{top:6%;height:90%}.title-menu{gap:1.5cqh}.title-menu button{padding:.8cqh 1.5vw}.tagline{margin:2cqh 0 2.5cqh}dialog{padding:20px;max-height:94%}dialog h2{font-size:24px}.setting{margin:10px 0}#map-levels{gap:8px}.map-card strong{font-size:11px}#map-dialog h2{margin-bottom:12px}}@media(pointer:coarse) and (orientation:portrait){#orientation-note{display:block}}@media(max-height:500px){#scene-heading h2{font-size:13px;padding:6px 14px}#objective{top:48px;font-size:11px}.title-copyright{font-size:7px}.title-menu button{border-width:2px;border-radius:8px}.title-content h1{font-size:17cqh}.portrait{height:35px;font-size:12px;min-width:95px}.portrait span{width:39px;height:41px}.scene-controls button{height:33px;width:34px}#inventory-bar{height:70px;padding-top:5px;padding-bottom:5px}#inventory{padding:4px 8px;gap:6px}.item-slot{width:44px;height:44px}#verbs{width:80px;gap:3px}#verbs button{font-size:11px;min-height:17px}#map-button{width:47px;height:47px;padding:6px}}@keyframes title-enter{from{transform:translateX(55vw) rotate(35deg) scale(.2);opacity:0}to{transform:translateX(0) rotate(0) scale(1);opacity:1}}@keyframes bob{0%,100%{translate:0 0;rotate:-2deg}50%{translate:0 -1.4cqh;rotate:2deg}}@keyframes heart{50%{scale:1.1;translate:0 -5px}}@keyframes next-pulse{50%{box-shadow:0 3px 0 #102a2b,0 0 0 6px #ffe27755}}

#viewport{container-type:size}#workspace{position:relative}

.title-copyright{background:#fff0cb99;padding:4px 9px;border-radius:8px}#title-screen{background-position:center bottom}
#viewport[data-preview=iphone] #inventory-bar{height:70px;padding:5px 14px;gap:12px}#viewport[data-preview=iphone] #verbs{display:flex;width:auto;gap:5px}#viewport[data-preview=iphone] #verbs button{font-size:11px;min-height:44px;padding:5px 9px}#viewport[data-preview=iphone] #inventory{padding:5px 8px;gap:5px}#viewport[data-preview=iphone] .item-slot{width:44px;height:44px}#viewport[data-preview=iphone] #map-button{width:48px;height:48px;padding:6px}
@media(pointer:coarse) and (orientation:landscape){#verbs{display:flex;width:auto;gap:5px}#verbs button{font-size:11px;min-height:44px;padding:5px 9px}#inventory-bar{gap:12px}}

#viewport[data-preview=iphone] .title-menu button{min-height:44px}@media(pointer:coarse){.title-menu button{min-height:44px}}

/* Dialogue and hidden object hints must not cover the walkable canvas. */
#speech,#toast{pointer-events:none}#speech-close{pointer-events:auto}
#hotspot-buttons:not(.show) button{pointer-events:none}
#hotspot-buttons:not(.show) button:focus-visible{pointer-events:auto}

/* The art and its hit regions share one proportionally fitted stage. */
#playfield{background:#173f46}
#title-screen{background:#173f46}
#title-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;container-type:size;background:url('assets/title-landscape.webp') center/contain no-repeat}
#scene-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;width:100%;height:100%}
#scene-heading h2{position:absolute;left:50%;transform:translateX(-50%);max-width:58%;text-align:center}
#speech,#objective{position:absolute;top:66px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:min(560px,76%);margin:0;border:2px solid #163137;border-radius:20px;background:#fff1d7f5;padding:6px 14px;font-size:clamp(11px,1.7cqh,15px);font-weight:800;line-height:1.25;box-shadow:0 2px 0 #16313733;pointer-events:none;text-align:center}
#speech{padding-right:32px;z-index:25}#speech-close{top:1px;right:3px;width:25px;height:25px;font-size:20px;pointer-events:auto}
.scene-controls{margin-left:auto}
@media(max-height:500px),(pointer:coarse){#speech,#objective{top:48px;font-size:11px;padding-top:5px;padding-bottom:5px;max-width:min(560px,76%)}}
#viewport[data-preview=iphone] #speech,#viewport[data-preview=iphone] #objective{top:48px;font-size:11px;padding-top:5px;padding-bottom:5px}
/* Original hand lettering is raster art; the four CATS letters move separately. */
.title-content{left:5%;top:4%;width:46%;height:92%;gap:0}
.love-wordmark{display:block;object-fit:contain;max-width:94%;height:min(27cqh,190px);flex:none}
.cats-logo{position:relative;width:min(100%,54.5cqh,392px);height:min(25cqh,180px);flex:none;margin:-1cqh 0 2cqh}
.logo-burst{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.cats-logo h1{position:absolute;inset:13% 13% 15%;display:flex;align-items:center;justify-content:center;gap:2%;font-size:inherit;margin:0;line-height:1;letter-spacing:0;-webkit-text-stroke:0;text-shadow:none;transform:none}
.cats-logo h1 img{display:block;object-fit:contain;width:23%;height:100%;animation:title-enter .65s cubic-bezier(.17,.8,.4,1.3) both,bob 2.1s ease-in-out infinite;animation-delay:calc(.2s + var(--i)*.1s),calc(1s + var(--i)*-.22s)}
.title-menu{width:80%;gap:1.4cqh}.title-menu button{min-height:44px}.title-copyright{margin-top:auto}
#viewport[data-preview=iphone] .love-wordmark{height:23cqh}
#viewport[data-preview=iphone] .cats-logo{width:min(100%,47.96cqh);height:22cqh;margin-bottom:2cqh}
@media(max-height:500px),(pointer:coarse){.love-wordmark{height:23cqh}.cats-logo{width:min(100%,47.96cqh);height:22cqh;margin-bottom:2cqh}.title-content{top:3%;height:94%}.title-menu{gap:1.3cqh}.title-menu button{min-height:44px}}
/* A native bitmap cursor also renders above modal dialogs and their backdrop. */
@media(pointer:fine){html,body,body *,dialog::backdrop{cursor:url('assets/paw-cursor-v2-40.png') 20 7,auto!important}body input,body textarea{cursor:text!important}}
#inventory-bar[data-mode=conversation]>:not(#conversation){display:none!important}
#conversation{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-width:0}
#conversation button{min-height:44px;max-width:28%;font-size:clamp(11px,1.65cqh,16px);line-height:1.2;padding:7px 12px}
#conversation .locker-dial{display:flex;align-items:center;gap:7px;min-width:110px;text-transform:capitalize}
.locker-dial canvas{width:34px;height:34px;object-fit:contain}.locker-dial span{white-space:nowrap}
#viewport[data-preview=iphone] #conversation{gap:6px}#viewport[data-preview=iphone] #conversation button{font-size:11px;padding:5px 9px}
@media(pointer:coarse),(max-height:500px){#conversation{gap:6px}#conversation button{font-size:11px;padding:5px 9px}}
#conversation .world-choice{display:flex;align-items:center;justify-content:center;gap:7px}.world-choice canvas{width:30px;height:30px;flex:none}.world-choice span{max-width:150px}
