*{box-sizing:border-box}:root{font-family:ui-rounded,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#744a25;background:#e8ecd9;font-synthesis:none;-webkit-tap-highlight-color:transparent}body{margin:0;min-width:280px;display:grid;place-items:center;min-height:100svh;background:radial-gradient(ellipse at 25% 15%,#fff8e9 0,transparent 55%),#e8ecd9}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #8c6333;outline-offset:5px}#app{position:relative;isolation:isolate;width:100%;max-width:480px;height:100svh;height:100dvh;overflow:hidden;user-select:none;-webkit-user-select:none;background:#b7d983;box-shadow:0 0 100px #61714724}#game,#game canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.topbar{position:absolute;inset:0 0 auto;height:170px;pointer-events:none;padding-top:env(safe-area-inset-top)}.topbar button{pointer-events:auto}.parent-button{position:absolute;left:16px;top:calc(12px + env(safe-area-inset-top));height:44px;padding:0 7px;background:transparent;font-size:12px;font-weight:600;letter-spacing:1px;color:#557566}.sound-button{position:absolute;right:15px;top:calc(16px + env(safe-area-inset-top));display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(140deg,#fffae4,#ffe2a4);box-shadow:inset 0 2px 2px #fff9,0 3px #c59f5b40,0 5px 12px #42644713;color:#936025}.sound-button svg{width:27px;height:27px}[hidden]{display:none!important}.name-plaque{position:absolute;top:calc(63px + env(safe-area-inset-top));left:50%;transform:translate(-50%) rotate(-1deg);margin:0;width:265px;height:57px;display:grid;place-items:center;border-radius:19px;background:repeating-linear-gradient(0deg,transparent 0 8px,#b5782a09 9px 10px),linear-gradient(110deg,#ffe2a6,#f6c77f);color:#86521e;box-shadow:inset 0 3px #fff5,inset 0 -4px #b67b2320,0 4px 10px #65784c19;font-size:27px;font-weight:850;letter-spacing:2px;text-shadow:0 1px #ffefc2}.name-plaque:before,.name-plaque:after{content:"";position:absolute;bottom:49px;width:6px;height:150px;background:repeating-linear-gradient(30deg,#d9ab64 0 4px,#f4cb85 5px 8px);border-radius:5px;z-index:-1}.name-plaque:before{left:34px}.name-plaque:after{right:34px}#pet-target{position:absolute;left:20%;width:64%;top:35%;height:37%;background:transparent;border-radius:45%;touch-action:none;cursor:pointer}.hint{position:absolute;left:50%;transform:translate(-50%);bottom:calc(21% + env(safe-area-inset-bottom));padding:8px 18px;border-radius:24px;background:#fff9e8d9;box-shadow:0 3px 12px #5d6d3610;color:#7e693d;font-weight:600;font-size:14px;white-space:nowrap;pointer-events:none;transition:opacity .35s}.hint.faded{opacity:0}.activities{position:absolute;bottom:calc(7.5% + env(safe-area-inset-bottom));left:5%;right:5%;display:grid;grid-template-columns:1fr 1fr;gap:14px}.activity{position:relative;display:flex;align-items:center;justify-content:center;gap:3px;min-height:86px;padding:9px 9px 11px;border-radius:30px;background:linear-gradient(150deg,#fff7df,#ffe4b4);box-shadow:inset 0 3px #fff8,0 5px #b6884333,0 9px 18px #54643814;transition:transform .12s}.activity:active{transform:translateY(2px)}.activity img{height:61px;width:64px;object-fit:contain;pointer-events:none}.activity#find img{transform:rotate(15deg);width:57px}.activity span{font-size:23px;font-weight:800;white-space:nowrap;line-height:1.1}.activity small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;color:#a18a60;margin-top:8px}.together{position:absolute;bottom:calc(1.9% + env(safe-area-inset-bottom));width:100%;text-align:center;font-size:10px;letter-spacing:2px;color:#69784b;margin:0;pointer-events:none}#toast{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);background:#fff8e9f5;box-shadow:0 6px 30px #6f7b3633;border-radius:24px;padding:17px 22px;text-align:center;width:80%;font-size:15px;pointer-events:none}#loading{position:absolute;z-index:10;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff6e4;color:#8d6937;gap:12px}.loading-paw img{width:74px;height:74px;animation:hello 1.5s ease-in-out infinite}#loading p{font-size:15px;letter-spacing:2px}progress{width:145px;height:6px;border:0;border-radius:8px;overflow:hidden;background:#eee0c5}progress::-webkit-progress-bar{background:#eee0c5}progress::-webkit-progress-value{background:#d5b16d;border-radius:8px}#retry,.back-to-puppy{padding:15px 25px;border-radius:24px;background:#f4d697;font-weight:700}dialog{border:0;border-radius:30px;padding:34px 28px 27px;max-width:min(360px,90vw);background:#fff9ed;color:#735d3e;box-shadow:0 20px 70px #23351e33}dialog::backdrop{background:#35452e66;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}dialog p{font-size:15px;line-height:1.85}dialog h2{margin:10px 0 20px;font-size:25px;color:#775025}.eyebrow{font-size:11px!important;letter-spacing:3px;color:#9b9d75}.close-dialog{position:absolute;right:10px;top:10px;background:transparent;width:44px;height:44px;font-size:27px;font-weight:300}.preview-note{background:#eeeddf;padding:13px 15px;border-radius:15px;font-size:12px;line-height:1.8;margin:20px 0}.back-to-puppy{display:block;width:100%;font-size:16px}@keyframes hello{0%,to{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}@media(min-width:600px){#app{max-height:960px;border-radius:30px;margin:16px 0;height:calc(100dvh - 32px);border:6px solid #fff7e7;box-shadow:0 18px 70px #62724930}}@media(max-height:700px){.name-plaque{top:calc(45px + env(safe-area-inset-top));height:48px;font-size:24px;width:238px}.name-plaque:before,.name-plaque:after{bottom:42px}.sound-button{width:44px;height:44px;top:calc(8px + env(safe-area-inset-top))}.activity{min-height:72px;border-radius:25px}.activity img{height:49px;width:53px}.activity span{font-size:21px}.hint{font-size:12px;padding:6px 14px}.together{font-size:9px}.parent-button{top:calc(7px + env(safe-area-inset-top))}}@media(prefers-reduced-motion:reduce){.loading-paw img{animation:none}}:root{overscroll-behavior:none}body{overflow:hidden;min-width:0}#app{overscroll-behavior:none;touch-action:none}#app .topbar{z-index:5}#app .parent-button{border-radius:22px;padding:0 11px;background:#fff6deeb;color:#765028;box-shadow:0 2px 5px #614a2420}#app .activities{z-index:6;bottom:calc(max(12px,3.7%) + env(safe-area-inset-bottom));left:3.3%;right:3.3%;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}#app .activity{flex-direction:column;min-height:83px;border-radius:21px;padding:7px 3px 9px;gap:3px}#app .activity img{width:min(100%,58px);height:44px;object-fit:contain}#app .activity span{font-size:clamp(12px,3.65vw,16px)}#app .activity[aria-pressed=true]{box-shadow:inset 0 0 0 3px #c38343,0 5px #b6884333;background:#fff4cd}#app .hint{z-index:4;bottom:calc(max(110px,17%) + env(safe-area-inset-bottom));max-width:94%;font-size:clamp(11px,3.3vw,14px);white-space:normal;width:max-content;text-align:center}#pet-target{z-index:2}#scene-props{position:absolute;z-index:3;inset:0;pointer-events:none}.spot{position:absolute;transform:translate(-50%,-50%);width:30%;height:13%;min-width:64px;min-height:64px;padding:0;background:transparent;border-radius:36%;pointer-events:auto}.spot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #4e64285c)}.spot.kennel{width:28%;height:15%}.spot.kennel:after{content:"";display:block;margin:auto;width:76%;height:70%;border-radius:48% 48% 28% 28%;box-shadow:inset 0 0 0 2px #fff7d780}.spot.sofa{width:35%}.spot.miss img,.spot.kennel.miss:after{animation:wiggle .5s ease-in-out}.spot.chest.miss img{animation:bump .5s ease}.spot.bush.miss img{animation:rustle .55s ease-in-out}.spot.kennel.miss:after{animation:glow .55s ease}.spot.suspect{animation:cue 1.6s ease-in-out infinite}.spot .peek{position:absolute;left:60%;top:42%;width:34px;height:39px;transform:rotate(19deg);z-index:-1}.spot.suspect .peek{z-index:1}#drag-ghost{position:absolute;z-index:12;pointer-events:none;object-fit:contain;width:68px;height:68px;transform:translate(-50%,-67%);filter:drop-shadow(0 6px 6px #49391645)}#invite{z-index:7;position:absolute;right:12px;top:calc(132px + env(safe-area-inset-top));background:#fff6e8;border-radius:22px;padding:4px 10px;min-height:43px;box-shadow:0 3px 10px #73654030;font-size:13px;font-weight:700}#invite img{width:28px;vertical-align:middle}#app[data-mode=sleep] .name-plaque{background:linear-gradient(120deg,#e4d8f7,#baaadc);color:#49365d;text-shadow:0 1px #fff5}#app[data-mode=sleep] .activity{background:linear-gradient(125deg,#fff4de,#ddd0f0)}#app[data-mode=sleep] .hint{color:#483956}#app #controls[data-layout=two]{grid-template-columns:repeat(2,minmax(0,1fr));left:12%;right:12%}#app #controls[data-layout=three]{grid-template-columns:repeat(3,minmax(0,1fr))}#controls .stage-dots{display:flex;gap:3px}.stage-dots i{width:6px;height:6px;border-radius:50%;background:#ddc6a5}.stage-dots i.filled{background:#8e6f47}#controls .inactive{opacity:.66}#app dialog{max-height:85dvh;overflow:auto;touch-action:pan-y}#app dialog p{margin:12px 0}#task-dialog{text-align:center}.task-art{width:80px;height:80px;object-fit:contain}#install-note{font-size:12px;color:#685d4e}@keyframes wiggle{25%{transform:rotate(-9deg)}65%{transform:rotate(8deg)}}@keyframes bump{40%{transform:translateY(-13%) rotate(-4deg)}}@keyframes rustle{25%,75%{transform:translate(-5%)}50%{transform:translate(5%)}}@keyframes glow{50%{background:#fff4ba57}}@keyframes cue{50%{filter:drop-shadow(0 0 7px #fff9be)}}@media(max-height:700px){#app .activity{min-height:68px;padding:5px 2px 7px}#app .activity img{height:35px}#app .hint{bottom:calc(max(92px,16%) + env(safe-area-inset-bottom))}#invite{top:calc(100px + env(safe-area-inset-top))}}@media(prefers-reduced-motion:reduce){.spot.suspect{animation:none;filter:drop-shadow(0 0 7px #fff9be)}}
