:root{font-family:ui-rounded,"PingFang SC","Microsoft YaHei",sans-serif;color:#304a45;background:#eef6ec}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;-webkit-user-select:none;user-select:none}a{color:inherit;text-decoration:none}header{max-width:1250px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-weight:800;font-size:22px;white-space:nowrap}.brand span{font-size:14px;margin-left:12px;color:#6a8071;font-weight:500}nav{display:flex;gap:10px;align-items:center}nav button,nav a{border:1px solid #cddbd0;background:#ffffff90;border-radius:22px;padding:10px 14px;font-size:14px}main{padding:0 24px}.scene{position:relative;isolation:isolate;max-width:1200px;aspect-ratio:3/2;max-height:calc(100svh - 145px);margin:auto;overflow:hidden;border-radius:30px;background:#a4dce9 url('optimized/yard.webp') center/100% 100% no-repeat;box-shadow:0 7px 0 #c7dcc8}.object{position:absolute;z-index:3;display:block;background:transparent;border:0;padding:0;transition:left 1.2s ease,bottom 1.2s ease,filter .5s;outline-offset:0}.object img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;-webkit-user-drag:none}.object-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:20px;padding:5px 12px;background:#fffceddd;font-size:14px;opacity:0;transition:opacity .2s}.object:hover .object-label,.object:focus-visible .object-label,.hotspot:focus-visible .object-label{opacity:1}.sun{width:16%;height:23%;left:8%;top:3%;transform-origin:center}.cloud{width:25%;height:25%;left:60%;top:7%;transition:transform 1s}.butterfly{width:13%;height:18%;left:66%;top:43%;z-index:5}.cat{width:25%;height:33%;left:39%;bottom:9%;z-index:4}.cat img{transition:opacity .2s}.cat.sheltered{left:12%;bottom:21%;width:20%;filter:brightness(.9)}.cat.sheltered img{transform:scale(.78)}.bubble{position:absolute;top:2%;right:0;background:#fffcee;border-radius:25px 25px 25px 3px;padding:10px 18px;white-space:nowrap;font-weight:700;font-size:18px;opacity:0;transition:opacity .15s}.cat.talking .bubble{opacity:1}.hotspot{position:absolute;border:0;background:transparent;z-index:2;min-width:48px;min-height:48px}.house{left:10%;top:43%;width:22%;height:35%}.flowers{left:77%;top:67%;width:18%;height:20%}.tap-ring{position:absolute;width:46px;height:46px;left:50%;top:50%;transform:translate(-50%,-50%);border:2px solid #ffffffe6;border-radius:50%;background:#ffffff22;box-shadow:0 0 0 6px #ffffff22}.hotspot .object-label{opacity:1;font-size:13px;bottom:5%}.weather-shade{position:absolute;inset:0;background:#40688d;opacity:0;transition:opacity 1s;z-index:1;pointer-events:none}.raining .weather-shade{opacity:.2}.raining .sun{filter:brightness(.8);opacity:.7}.raining .cloud{transform:translateX(-15%)}#rainfall{position:absolute;inset:0;pointer-events:none;z-index:6;opacity:0;transition:opacity .6s}.raining #rainfall{opacity:.75}.drop{position:absolute;top:20%;color:#b9e8ff;font-size:24px;animation:fall .8s linear infinite}.scene-caption{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);max-width:94%;white-space:nowrap;background:#fffceee6;border-radius:25px;padding:11px 24px;font-size:16px;z-index:8;pointer-events:none}footer{max-width:1200px;margin:auto;padding:20px 6px;display:flex;justify-content:space-between;font-size:14px;color:#6f8270}.cat.jump img{animation:jump .8s}.cat.stretch img{animation:stretch 1.4s}.cat.roll img{animation:roll 1.2s}.butterfly.flying{animation:fly 2.6s ease-in-out}.sun.shine img{animation:shine 1.2s}.notes{position:absolute;inset:0;pointer-events:none;z-index:7}.note{position:absolute;font-size:32px;color:#fffce0;text-shadow:0 2px 3px #548348;animation:float 1.6s both}.paused *{animation-play-state:paused!important}button:focus-visible,a:focus-visible{outline:3px solid #355ea0}dialog{border:0;border-radius:30px;padding:36px;background:#fff9ec;color:#304a45;text-align:center;max-width:90vw}dialog::backdrop{background:#253e4199;backdrop-filter:blur(5px)}dialog h2{font-size:25px}dialog p{font-size:16px}.sleep-symbol{font-size:65px;color:#b8983d}dialog button{border:0;border-radius:24px;background:#ffd477;padding:14px 36px;margin-top:20px;font-weight:700}@keyframes jump{35%{transform:translateY(-22%) rotate(-8deg)}65%{transform:translateY(-5%) rotate(6deg)}}@keyframes stretch{40%,70%{transform:scale(1.13,.9)}}@keyframes roll{50%{transform:translateX(10%) rotate(170deg)}100%{transform:rotate(360deg)}}@keyframes fly{20%{transform:translate(-110%,-70%) rotate(-20deg)}45%{transform:translate(-230%,10%) rotate(15deg)}70%{transform:translate(-120%,45%) rotate(-10deg)}100%{transform:none}}@keyframes shine{50%{transform:rotate(25deg) scale(1.15);filter:brightness(1.15)}}@keyframes fall{from{transform:translate(0,0);opacity:0}20%{opacity:1}to{transform:translate(-25px,350px);opacity:0}}@keyframes float{from{opacity:0;transform:translateY(0) scale(.7)}25%{opacity:1}to{opacity:0;transform:translateY(-75px) scale(1.2)}}@media(max-width:650px) and (orientation:portrait){header{padding:18px 16px;flex-wrap:wrap}.brand{font-size:21px}nav{width:100%;justify-content:flex-end;gap:7px}nav button,nav a{font-size:13px;padding:8px 12px}main{padding:0 12px}.scene{aspect-ratio:3/4;max-height:none;border-radius:24px;background-size:145% 100%;background-position:35% center}.sun{left:3%;top:4%;width:25%;height:19%}.cloud{left:57%;top:12%;width:38%;height:22%}.cat{left:31%;bottom:11%;width:43%;height:32%}.cat.sheltered{left:2%;bottom:24%;width:32%}.butterfly{left:68%;top:44%;width:24%;height:16%}.house{left:1%;top:42%;width:30%;height:35%}.flowers{left:73%;top:69%;width:26%;height:18%}.scene-caption{font-size:14px;padding:10px 14px;bottom:3%}.bubble{font-size:16px;padding:8px 12px}footer{justify-content:center;font-size:13px}.desktop-hint{display:none}}@media(orientation:landscape) and (max-height:550px){header{padding:8px 18px}.brand{font-size:18px}nav button,nav a{padding:6px 12px}.scene{max-height:calc(100svh - 64px);border-radius:18px}footer{display:none}.scene-caption{padding:6px 18px;font-size:13px}.object-label{font-size:12px}.bubble{font-size:14px;padding:6px 10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}.raining #rainfall{opacity:.35}}
/* Keep the illustrated doorway aligned with its interaction and shelter. */
.scene{width:min(100%,calc((100svh - 145px)*1.5))}.sun{left:39%}.house{left:10%;top:35%;width:17%;height:23%}.cat.sheltered{left:9%;bottom:42%;width:16%;height:23%}
@media(max-width:650px) and (orientation:portrait){.scene{width:100%;background-size:100% 100%;background-position:center}.sun{left:35%;width:23%}.house{left:7%;top:34%;width:22%;height:25%}.cat.sheltered{left:4%;bottom:42%;width:27%;height:24%}}
@media(orientation:landscape) and (max-height:550px){.scene{width:min(100%,calc((100svh - 64px)*1.5))}}
/* Weather and cat motion share a single destination state. */
.cat{transition:left 1.8s ease-in-out,bottom 1.8s ease-in-out,width 1.8s,height 1.8s,filter .8s;--facing:1}.cat img{transform:scaleX(var(--facing));transition:none}.cat.face-left{--facing:-1}.cat[data-place="lawn"]{left:39%;bottom:9%;width:25%;height:33%;filter:none}.cat[data-place="home"]{left:9%;bottom:42%;width:16%;height:23%;filter:brightness(.9)}.cat[data-place="shade"]{left:79%;bottom:38%;width:18%;height:25%;filter:brightness(.83)}.cat.walking img{animation:walking-bob .32s ease-in-out infinite}.cat.look img{animation:look-up .65s}.hot .sun img{filter:brightness(1.18) saturate(1.3)}.hot .sun{transform:scale(1.17)}.warm .sun{transform:scale(1.07)}.sun{transition:transform .6s,filter .6s}.hot .weather-shade{background:#ffa52d;opacity:.13}.hot .cat .bubble{background:#fff6de}.raining .butterfly{left:16%;top:30%;filter:brightness(.92)}.hot .butterfly{left:80%;top:37%}.butterfly{transition:left 2s,top 2s}.scene[data-state="rain"] .flowers{filter:brightness(1.1)}
@keyframes walking-bob{50%{transform:translateY(-3%) scaleX(var(--facing))}}@keyframes look-up{45%{transform:translateY(-3%) rotate(-4deg)}}
@media(max-width:650px) and (orientation:portrait){.cat[data-place="lawn"]{left:31%;bottom:11%;width:43%;height:32%}.cat[data-place="home"]{left:4%;bottom:42%;width:27%;height:24%}.cat[data-place="shade"]{left:71%;bottom:36%;width:28%;height:25%}}
@media(prefers-reduced-motion:reduce){.cat{transition:none}.cat.walking img{animation:none}}
@media(max-width:650px){nav{flex-wrap:wrap;justify-content:flex-end}nav button,nav a{min-height:36px}}button:disabled{cursor:default;opacity:.6}

/* Approach the doorstep first, then cross the threshold. */
.cat{transition:left var(--walk-time,1800ms) ease-in-out,bottom var(--walk-time,1800ms) ease-in-out,width var(--walk-time,1800ms),height var(--walk-time,1800ms),filter .6s}
.cat[data-place="doorstep"]{left:9%;bottom:38%;width:18%;height:24%;filter:none}.cat[data-place="home"]{left:12.3%;bottom:44.8%;width:10%;height:15%;filter:brightness(.76)}
@media(max-width:650px) and (orientation:portrait){.scene{aspect-ratio:3/2!important}.cat[data-place="doorstep"]{left:9%;bottom:38%;width:18%;height:24%}.cat[data-place="home"]{left:12.3%;bottom:44.8%;width:10%;height:15%}}
@media(prefers-reduced-motion:reduce){.cat{transition:none}}
