:root{color-scheme:light;--bg:#ecefe5;--ink:#52634f;--muted:#7d8a77;--line:#65785825;--panel:#f3f3e8;--glass:#f6f6ebc9;--accent:#6c8561;--glow:#f3ebd1;--serif:"Songti SC","STSong",serif;--latin:"Didot","Bodoni 72","Baskerville",Georgia,serif}
*{box-sizing:border-box}body{margin:0;min-height:100svh;overflow-x:hidden;background:radial-gradient(ellipse at 50% 45%,var(--glow),transparent 64%),var(--bg);color:var(--ink);font-family:var(--serif);font-weight:300;transition:background 2s,color 2s}button{-webkit-tap-highlight-color:transparent;font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,[tabindex]:focus-visible{outline:1px solid var(--accent);outline-offset:7px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.bi{display:flex;flex-direction:column;gap:3px;font-weight:300;letter-spacing:1.5px}.bi>small{display:block;font-family:var(--latin);font-size:9px;letter-spacing:1.1px;line-height:1.45;opacity:.7}.bi>span{line-height:1.65}
header{height:70px;padding:18px 4%;display:flex;justify-content:flex-end;position:relative;z-index:4}.top-actions{display:flex;gap:12px;align-items:center}.top-actions button{width:42px;height:42px;border-radius:50%;font:27px var(--latin);opacity:.65;transition:opacity .3s,background .3s}.top-actions button:hover,.top-actions button[aria-pressed=true]{opacity:1;background:#80926b12}
main{position:relative}.world{height:calc(100svh - 160px);min-height:400px;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate}#island{width:min(98vw,calc((100svh - 155px)*1.52));height:100%;overflow:visible;display:block;position:relative;z-index:1;touch-action:manipulation}.map-scroll{display:contents}.sky-orb{position:absolute;right:19%;top:8%;width:56px;height:56px;border-radius:50%;background:#e9dcb3;opacity:.5;box-shadow:0 0 70px #ebd9ac45}
.bottom-ui{height:90px;display:flex;align-items:flex-start;justify-content:center;padding-top:4px;position:relative;z-index:4}.toolbar{display:flex;align-items:center;gap:6px;padding:7px;border-radius:24px;border:1px solid var(--line);background:var(--glass);box-shadow:0 8px 30px #566a4d06;backdrop-filter:blur(15px)}.toolbar button{position:relative;display:grid;place-items:center;width:52px;height:46px;border-radius:17px;transition:background .3s}.toolbar button[aria-pressed=true]{background:#83986a1c}.toolbar button:hover{background:#83986a25}.toolbar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}.toolbar i{width:1px;height:23px;background:var(--line);margin:0 4px}.toolbar .bi{position:absolute;bottom:calc(100% + 17px);left:50%;translate:-50% 4px;min-width:95px;padding:9px 12px;border-radius:13px;background:var(--glass);text-align:center;font-size:12px;pointer-events:none;opacity:0;transition:opacity .25s,translate .25s;box-shadow:0 3px 15px #34512a06}.toolbar button:focus-visible .bi{opacity:1;translate:-50% 0}.toolbar button:after{content:"";position:absolute;width:3px;height:3px;border-radius:50%;bottom:3px;background:currentColor;opacity:0}.toolbar.resting button[aria-pressed=true]:after{animation:quiet-pause 10s ease-out both}#connection{position:fixed;left:4%;bottom:26px;width:40px;height:40px;opacity:.38;z-index:5;transition:opacity .4s}#connection:hover,#connection:focus-visible{opacity:.85}#connection svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}.cloud-check,.cloud-off,.cloud-pulse{display:none}#connection[data-state=saved] .cloud-check{display:block}#connection[data-state=offline] .cloud-off{display:block}#connection[data-state=offline]{opacity:.7}#connection[data-state=pending] .cloud-pulse{display:block;animation:pending 1s infinite}
@media(hover:hover){.toolbar button:hover .bi{opacity:1;translate:-50% 0}}
.hotspot{cursor:pointer;outline:none}.hotspot:focus-visible{filter:drop-shadow(0 0 4px #faf4b5)}.hotspot:hover{filter:brightness(1.05)}#floating-island{transform-origin:500px 350px;animation:float 12s ease-in-out infinite}.distant-cloud{animation:cloud 28s ease-in-out infinite}.cloud-b{animation-delay:-15s}.bird{animation:cloud 18s ease-in-out infinite}.smoke{animation:smoke 6s ease-in-out infinite}.water-lines{stroke-dasharray:16 8;animation:flow 2s linear infinite}.pond-ripples{animation:ripple-light 4s ease-in-out infinite}.fish{animation:fish 13s ease-in-out infinite;transform-origin:320px 370px}.lily{animation:float 7s ease-in-out infinite}.windmill-blades{transform-box:fill-box;transform-origin:center;animation:spin 20s linear infinite}#swing-seat{transform-origin:24px -90px;animation:swing 5s ease-in-out infinite}.canopy{transform-origin:-20px -20px;animation:leaves 8s ease-in-out infinite}.chime{transform-origin:-24px -83px;animation:swing 4s ease-in-out infinite}.mushroom-dust{opacity:0;transition:opacity .5s}#mushroom-spot:hover .mushroom-dust{opacity:1;animation:smoke 3s infinite}.window-glow{opacity:0;transition:opacity 3s}.house.sleeping #sleeping-cat{opacity:1}.house.sleeping .smoke{animation-duration:4s}#creature{cursor:pointer;outline:none}#creature:focus-visible #cat-body{filter:drop-shadow(0 0 5px #f3e6b2)}#cat-body{transform-origin:0 0;animation:breathe 3s ease-in-out infinite}#cat-tail{transform-origin:16px -8px;animation:tail 3.5s ease-in-out infinite}.walking #cat-body{animation:walk .42s ease-in-out infinite}.walking .paw-a{animation:paw .42s ease-in-out infinite}.walking .paw-b{animation:paw .42s ease-in-out infinite reverse}.sleeping #cat-body{transform:scale(1.1,.7);animation:breathe 4s ease-in-out infinite}.sleeping #zzz{opacity:1;animation:smoke 4s ease-in-out infinite}.firefly{animation:firefly 5s ease-in-out infinite;opacity:0}.butterfly{animation:butterfly 8s ease-in-out infinite}.wing{transform-box:fill-box;transform-origin:center;animation:flutter .4s ease-in-out infinite}.ripple{transform-box:fill-box;transform-origin:center;animation:ripple 1.4s ease-out forwards}.heart{animation:heart 2s ease-out forwards}#stars{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 3s}.star{position:absolute;width:2px;height:2px;border-radius:50%;background:#ced9bc;box-shadow:0 0 8px #e2de9c;animation:twinkle 4s ease-in-out infinite}.night{--bg:#1c2e35;--ink:#ccd4b7;--muted:#93a590;--line:#b0bda528;--panel:#2b4144;--glass:#2d4346d6;--accent:#bec9a5;--glow:#354c49}.night #floating-island{filter:brightness(.79) saturate(.72)}.night .sky-orb{width:43px;height:43px;background:#ece4bc;box-shadow:0 0 70px #e2e4b22a;opacity:.85}.night .distant-cloud{opacity:.12}.night .window{fill:#f3d48b}.night .window-glow{opacity:1}.night .firefly{opacity:1}.night #stars{opacity:1}.night .butterfly{opacity:.2}.night .lantern-light{filter:drop-shadow(0 0 6px #f6d88a)}.night .toolbar button[aria-pressed=true]{background:#c5d4a515}.night .toolbar button:hover{background:#c5d4a522}.star-mode #stars{opacity:1}.star-mode .star{transform:scale(2)}@keyframes float{50%{transform:translateY(-5px)}}@keyframes cloud{50%{transform:translateX(24px)}}@keyframes smoke{0%,100%{opacity:.2;transform:translateY(0)}50%{opacity:.6;transform:translateY(-5px)}}@keyframes spin{to{rotate:360deg}}@keyframes flow{to{stroke-dashoffset:-48}}@keyframes ripple-light{50%{opacity:.35}}@keyframes fish{50%{transform:translate(12px,4px)}}@keyframes swing{50%{rotate:6deg}}@keyframes leaves{50%{rotate:1.5deg}}@keyframes breathe{50%{scale:1.02 .98}}@keyframes tail{50%{rotate:12deg}}@keyframes walk{50%{translate:0 -1.8px}}@keyframes paw{50%{translate:2px -3px}}@keyframes firefly{0%,100%{opacity:.2;translate:0 0}50%{opacity:.9;translate:7px -10px}}@keyframes butterfly{50%{translate:20px -12px}}@keyframes flutter{50%{scale:.4 1}}@keyframes ripple{to{scale:3;opacity:0}}@keyframes heart{to{translate:0 -50px;opacity:0}}@keyframes twinkle{50%{opacity:.3}}
/* A soft, lopsided kitten: gesture wrappers leave the walking coordinates intact. */
#cat-head{transform-origin:0 -21px;animation:look-around 13s ease-in-out infinite}#cat-tail{transform-origin:18px -10px}.walking #cat-head{animation:head-bob .5s ease-in-out infinite}.curious #cat-head{animation:head-tilt 2.2s ease-in-out}.happy #cat-body{animation:nuzzle .65s ease-in-out 3}.happy #cat-tail{animation:tail .4s ease-in-out infinite}.flop #cat-body{animation:flop 5s ease-in-out}.sleeping #cat-head{animation:none}.sleeping #cat-body{transform:scale(1.15,.66);animation:breathe 4s ease-in-out infinite}.pause-ring{transform-box:fill-box;transform-origin:center;animation:pause-ring 1.4s ease-out forwards}.rustle use{transform-box:fill-box;transform-origin:bottom center;animation:rustle 1.4s ease-in-out}
@keyframes look-around{0%,35%,65%,100%{rotate:0deg}40%,55%{rotate:-7deg}75%,85%{rotate:5deg}}@keyframes head-bob{50%{translate:0 1px;rotate:-3deg}}@keyframes head-tilt{0%,100%{rotate:0deg}25%,70%{rotate:-15deg}}@keyframes nuzzle{50%{translate:0 -4px;rotate:5deg;scale:1.05 .96}}@keyframes flop{0%,100%{rotate:0deg;scale:1}20%,80%{rotate:-16deg;scale:1.12 .76;translate:-3px 4px}}@keyframes pause-ring{50%{scale:1.8 .8}100%{scale:.3;opacity:0}}@keyframes rustle{25%{rotate:5deg}50%{rotate:-4deg}75%{rotate:2deg}}@keyframes quiet-pause{0%{opacity:.5}95%{opacity:.2}100%{opacity:0}}@keyframes pending{50%{opacity:.15}}
@media(max-width:700px){header{height:65px;padding:12px 5%}.top-actions{gap:7px}.world{height:calc(100svh - 175px);min-height:360px;overflow:hidden}.map-scroll{display:block;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}.map-scroll::-webkit-scrollbar{display:none}.world #island{width:160%;height:auto;position:relative;top:50%;transform:translateY(-50%);max-width:none;margin:0;touch-action:pan-x}.sky-orb{right:14%;top:13%;width:35px;height:35px}.night .sky-orb{width:30px;height:30px}.bottom-ui{height:110px;padding-top:8px}.toolbar{gap:2px;padding:6px;border-radius:22px}.toolbar button{width:48px;height:45px}.toolbar i{margin:0 2px}.toolbar .bi{min-width:78px;font-size:11px}.toolbar small{font-size:8px}#connection{left:calc(50% - 20px);bottom:2px;width:40px;height:35px}#connection svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.curious #cat-head{rotate:-13deg}.happy #cat-body{translate:0 -2px}.flop #cat-body{rotate:-12deg;scale:1.12 .76}}
