@font-face{font-family:Nunito;src:url('/assets/nunito-variable.ttf') format('truetype');font-weight:200 900;font-display:swap}
:root{--cream:#fbf6ed;--ink:#62556a;--muted:#807480;--purple:#a28caf;--purple-dark:#786286;--line:#eae1df;--rose:#e9bdc9;--green:#a7bfa0;--font:Nunito,ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif}
*{box-sizing:border-box}html{background:var(--cream);scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:var(--font);font-weight:600;-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:transparent}button:disabled{cursor:default;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9076a4;outline-offset:4px}button svg{width:24px;height:24px;display:block}button:active:not(:disabled){transform:scale(.96)}button{transition:background .15s,transform .15s}h1,h2,h3,p{margin:0}h1{font-size:31px;font-weight:900;letter-spacing:-1px;line-height:1.25}h2{font-size:17px;font-weight:850}small{font-size:12px}.hidden{display:none!important}.app-shell{max-width:520px;margin:auto;padding:0 24px;min-height:100svh}.topbar{display:flex;align-items:center;justify-content:space-between;padding-top:calc(17px + env(safe-area-inset-top));height:calc(83px + env(safe-area-inset-top))}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:24px;font-weight:900;letter-spacing:-1.2px}.brand img{width:36px;height:36px}.brand-dot{color:#bd9ec4;font-size:18px;margin-left:3px;vertical-align:top}.round-button{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:#fff8ef}.round-button svg{width:20px;height:20px}main{padding-bottom:100px}.scene-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 20px;gap:8px}.eyebrow{font-size:9px;font-weight:850;letter-spacing:2px;color:#a0909e;display:block;margin-bottom:7px}.name-sparkle{color:#c6ab7c;margin-left:8px;font-size:24px}.scene-heading p{font-size:12px;color:var(--muted);margin-top:6px}.wallet{display:flex;align-items:center;gap:7px;background:#f6eacb;padding:10px 14px;border:1px solid #ebdcba;border-radius:24px;flex-shrink:0;min-height:44px}.wallet svg{width:19px;height:19px;color:#b08b48;fill:#dfc17e}.wallet b{color:#9c7d48;font-size:17px}.habitat{position:relative;isolation:isolate;width:100%;aspect-ratio:600/530;border-radius:26px;overflow:hidden;box-shadow:0 5px 0 #e8ddd0,0 14px 25px -22px #a18973;border:5px solid #fff9f0;background:#f0e5d9}#room-art{position:absolute;inset:0;z-index:-1}#room-art>svg{width:100%;height:100%;display:block}.room-label{position:absolute;top:13px;left:12px;display:flex;align-items:center;gap:6px;background:#fff9eece;padding:7px 10px;border-radius:14px;font-size:10px;color:#79665f;backdrop-filter:blur(5px)}.live-dot{width:5px;height:5px;border-radius:50%;background:#98b394}.invite-chip{position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:5px;background:#fff8ecb8;padding:10px;border-radius:14px;font-size:10px;min-height:40px}.invite-chip svg{width:14px;height:14px}#pet-stage{position:absolute;width:61%;left:20%;bottom:7%;height:67%;display:flex;align-items:flex-end;justify-content:center}#pet-touch{height:100%;width:100%;padding:0;display:flex;align-items:flex-end;justify-content:center;transition:none;cursor:grab}#pet-touch:active{transform:none;cursor:grabbing}#pet-svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 4px #8268780c);transition:width 1s}#pet-svg.is-baby{width:85%}.speech{position:absolute;bottom:18%;left:50%;transform:translateX(-50%) translateY(8px);white-space:nowrap;font-size:11px;background:#fffaf3ef;padding:9px 14px;border-radius:16px;box-shadow:0 3px 12px #685b6012;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s}.speech.visible{opacity:1;transform:translateX(-50%) translateY(0)}.room-bottom{position:absolute;bottom:9px;left:15px;right:10px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8c786c}.room-bottom button{width:34px;height:30px;display:grid;place-items:center}.room-bottom svg{width:14px;height:14px}.wellbeing-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px;gap:5px}.wellbeing-heading h2{font-size:14px}.wellbeing-heading>span{font-size:10px;color:#968297}.needs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.need-head{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#80717f;margin-bottom:7px}.need-head b{font-size:9px;font-weight:700;color:#847784}.need-track{height:6px;background:#eee5de;border-radius:8px;overflow:hidden}.need-track i{display:block;height:100%;border-radius:8px;transition:width .7s;background:var(--bar)}.care-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:19px 0 21px}.care-actions button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;font-weight:800}.action-icon{width:100%;height:61px;display:grid;place-items:center;border-radius:20px;border:1px solid #ffffff88;box-shadow:0 3px 0 #d7c7c521}.action-icon svg{width:26px;height:26px;stroke-width:1.5}.peach{background:#f3dfc9;color:#b18a63}.blue{background:#dfeceb;color:#7d9d9b}.pink{background:#f1dee5;color:#b8889d}.lilac{background:#e8e1ef;color:#9d86af}.activity-banner{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:1px solid #ded6e7;background:#eee7f2;border-radius:20px;padding:14px 16px;min-height:76px}.activity-illustration{width:45px;height:45px;display:grid;place-items:center;transform:rotate(-13deg);color:#9e86ad;background:#e3d7ec;border-radius:15px}.activity-illustration svg{width:32px;height:32px}.activity-banner b{display:block;font-size:14px;color:#806b90}.activity-banner small{display:block;font-size:10px;color:#a28eae;margin-top:4px}.activity-banner>span:last-child{margin-left:auto;color:#a28bae}.activity-banner>span:last-child svg{width:18px}.growth-row{display:flex;align-items:center;gap:10px;margin:19px 0;color:#a2928d;font-size:10px}.growth-row>span:first-child svg{width:18px;height:18px;color:#9eae90}.growth-row>div{flex:1}.growth-row>span:last-child{font-size:10px;color:#ab9a9a}.growth-track{height:3px;background:#eae4d9;border-radius:5px;margin-top:6px}.growth-track i{height:100%;display:block;background:#b4c2a3;border-radius:5px;transition:width 1s}.footer-note{text-align:center;font-size:10px;color:#b7aaa5;padding:7px 0 0}.footer-note span{color:#c3ae97;margin-left:3px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 15px calc(10px + env(safe-area-inset-bottom));background:#fcf8f1f5;backdrop-filter:blur(16px);border-top:1px solid #e9e0dc;border-radius:24px 24px 0 0;box-shadow:0 -6px 24px #76607305}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:49px;color:#b1a3ae;font-size:10px;font-weight:750}.bottom-nav button svg{width:23px;height:23px}.bottom-nav button.active{color:#897098}.bottom-nav button.active>span:first-child{background:#eee4f0;border-radius:12px;padding:5px 14px;margin-top:-5px;margin-bottom:-5px}.connection{background:#f4e3c9;color:#876c45;border-radius:12px;padding:10px;font-size:12px;margin-top:14px}.visit-actions{margin-top:24px;text-align:center}.visit-actions p{font-size:12px;margin-bottom:14px;color:var(--muted)}
dialog{padding:10px 22px 28px;border:0;background:var(--cream);color:var(--ink);border-radius:28px 28px 0 0;width:min(100%,520px);max-width:520px;max-height:87svh;position:fixed;top:auto;bottom:0;margin:0 auto;overflow:auto;overscroll-behavior:contain;padding-bottom:calc(28px + env(safe-area-inset-bottom))}dialog::backdrop{background:#51415255;backdrop-filter:blur(4px)}.sheet-handle{height:4px;width:34px;background:#dacfce;border-radius:4px;margin:0 auto 13px}.sheet-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-10px;padding:6px 0 10px;background:var(--cream);z-index:2}.sheet-header h2{font-size:24px;font-weight:900;letter-spacing:-.6px}.sheet-header .round-button{width:40px;height:40px}.sheet-intro{font-size:13px;line-height:1.7;color:var(--muted);margin:2px 0 18px}.primary,.secondary{min-height:48px;padding:13px 19px;border-radius:16px;font-size:13px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:#a18aaf;color:white;box-shadow:0 3px 0 #8b7599}.secondary{background:#eee6ee;color:#8a7298}.primary svg,.secondary svg{width:18px;height:18px}.full{width:100%}.button-row{display:flex;gap:9px;margin-top:14px}.button-row>*{flex:1}.card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-card,.collection-card{padding:12px;background:#fffaf4;border:1px solid #e9e0dc;border-radius:20px;text-align:center;position:relative;overflow:hidden}.shop-card h3,.collection-card h3{font-size:14px}.shop-card p,.collection-card p{font-size:10px;color:var(--muted);line-height:1.5;margin:5px 0 10px}.shop-card .primary,.shop-card .secondary,.collection-card .primary,.collection-card .secondary{width:100%;font-size:11px;min-height:44px;padding:10px 4px;border-radius:12px}.mini-pet{height:110px;width:100%;overflow:visible}.shop-art{height:110px;display:grid;place-items:center}.shop-art>svg:not(.mini-pet){height:100%;width:100%;border-radius:12px}.selected-badge{position:absolute;top:9px;left:9px;font-size:9px;padding:4px 7px;border-radius:8px;background:#e6eada;color:#879373}.tabs{display:flex;gap:7px;margin-bottom:17px}.tabs button{flex:1;padding:12px 6px;background:#efe8e3;border-radius:13px;font-size:12px;min-height:44px}.tabs button.active{background:#a18aaf;color:#fff}.empty-state{text-align:center;padding:25px 10px}.empty-state>svg{height:70px;width:70px;color:#b6a0c1}.empty-state h3{margin:12px 0}.empty-state p{font-size:13px;color:var(--muted);line-height:1.7}.field{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:12px}input[type=text]{width:100%;min-height:50px;padding:12px 15px;border:1px solid #dbcedb;border-radius:14px;background:#fffaf5;color:var(--ink);font-size:16px}input[type=file]{max-width:100%;font-size:12px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-row small{display:block;color:var(--muted);line-height:1.5;margin-top:4px}.toggle{min-width:54px;min-height:34px;background:#e6dbdf;border-radius:22px;padding:4px;display:flex;justify-content:flex-start}.toggle i{height:26px;width:26px;background:#fffaf6;border-radius:50%;display:block;box-shadow:0 2px 3px #78617b22}.toggle.on{background:#b2c1a6;justify-content:flex-end}.qr-card{text-align:center;background:#fffaf5;border:1px solid var(--line);border-radius:24px;padding:22px;margin:15px 0}.qr-card svg{width:220px;max-width:100%;height:auto;background:white;border-radius:12px}.invite-code{display:block;font-size:24px;letter-spacing:4px;color:#897297;font-weight:900;margin:14px 0 8px}.qr-card p{font-size:11px;color:var(--muted)}.local-note{padding:12px;border-radius:14px;background:#ececde;font-size:11px;line-height:1.6;color:#8a9174}.friend-row{display:flex;gap:12px;align-items:center;padding:13px;background:#fffaf4;border:1px solid var(--line);border-radius:16px;margin:10px 0}.friend-avatar{width:45px;height:45px;border-radius:16px;background:#ebdfef;display:grid;place-items:center;color:#a48ab3}.friend-avatar svg{width:25px;height:25px}.friend-row>div:nth-child(2){flex:1}.friend-row b{font-size:13px}.friend-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.friend-row button{font-size:11px}.toast{position:fixed;z-index:100;bottom:calc(93px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100% - 36px);transform:translate(-50%,15px);padding:13px 19px;border-radius:18px;background:#766380;color:#fffaf5;box-shadow:0 7px 25px #60526825;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}.toast.visible{opacity:1;transform:translate(-50%,0)}.onboarding{position:fixed;inset:0;z-index:30;overflow:auto;display:grid;place-items:center;background:#fbf6edf7;padding:28px 20px}.welcome{max-width:430px;text-align:center}.welcome-logo{width:75px;height:75px;margin-bottom:12px}.welcome .eyebrow{margin-bottom:12px}.welcome h1{font-size:35px;margin-bottom:13px}.welcome>p{color:var(--muted);font-size:14px;line-height:1.8}.egg-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0}.egg-choice{background:#fffaf5;border:2px solid #e9dfe7;border-radius:24px;padding:4px 6px 15px}.egg-choice.active{border-color:#b19ac0;background:#eee4f1}.egg-choice svg{height:118px;width:100%}.egg-choice b{font-size:12px;display:block}.egg-choice small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.welcome .fine{font-size:11px;margin-top:17px}.particle{position:absolute;pointer-events:none;animation:float-up 1.8s ease-out forwards;font-size:23px;color:#c591a6;z-index:4}.particle svg{width:22px;height:22px;fill:#edc8d6}.game-area{position:relative;height:300px;background:#e7e5ef;border-radius:24px;overflow:hidden;margin:14px 0;touch-action:manipulation}.bubble{position:absolute;width:56px;height:56px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffffce,#cdb6e855 45%,#b39bc36e);border:2px solid #fff8;box-shadow:inset -4px -5px 8px #a187b322;display:grid;place-items:center;animation:bob 2s ease-in-out infinite alternate}.bubble::after{content:'';position:absolute;left:11px;top:8px;width:14px;height:7px;border-radius:50%;background:#fff9;transform:rotate(-30deg)}.game-progress{text-align:center;font-size:14px;color:#9982a9;margin:10px 0}.ball{position:absolute;width:65px;height:65px;border-radius:50%;background:linear-gradient(135deg,#eec7b1 50%,#f8e5c6 50%);border:3px solid #fff6;box-shadow:0 6px 0 #8d739314;transition:left .22s,top .22s}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:18px}.memory-card{height:70px;background:#c9b5d5;border-radius:16px;display:grid;place-items:center;color:#faf4ed;font-size:27px}.memory-card.flipped{background:#fff6ec;color:#b193b7}.memory-card.done{background:#d8e4cd;color:#8ba079}.activity-choice{display:flex;align-items:center;gap:15px;width:100%;padding:17px;background:#fffaf4;border:1px solid var(--line);border-radius:19px;margin:12px 0;text-align:left}.activity-choice>span:first-child{width:52px;height:52px;display:grid;place-items:center;border-radius:17px}.activity-choice b{font-size:15px;display:block}.activity-choice small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.activity-choice>span:last-child{margin-left:auto}.reward-note{background:#f3e8cf;border-radius:17px;padding:14px;font-size:11px;line-height:1.7;color:#a18a5d;margin-top:18px}.progress-ring{font-size:13px;color:#a089ab;text-align:center;margin-top:10px}.offline-panel{text-align:center;padding:25px}.offline-panel p{margin:15px 0;line-height:1.6;color:var(--muted)}
@keyframes float-up{0%{opacity:0;transform:translateY(0) scale(.6)}20%{opacity:1}100%{opacity:0;transform:translateY(-110px) rotate(15deg) scale(1.2)}}@keyframes bob{to{transform:translateY(-10px)}}
@media(min-width:760px){body{background:radial-gradient(ellipse at 15% 30%,#eee4ef66,transparent 45%),radial-gradient(ellipse at 85% 65%,#e4eadc88,transparent 40%),var(--cream)}.app-shell{padding:0 30px;max-width:550px}.topbar{padding-top:24px;height:88px}.scene-heading{margin-top:25px}.bottom-nav{max-width:550px}dialog{bottom:25px;border-radius:28px;max-height:85svh}.habitat{aspect-ratio:600/500}h1{font-size:34px}}
@media(max-width:370px){.app-shell{padding:0 16px}.brand{font-size:21px}h1{font-size:27px}.scene-heading{margin-top:15px}.care-actions{gap:7px}.action-icon{height:55px}.wellbeing-heading h2{font-size:13px}.wellbeing-heading>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.particle{display:none}}

@media(max-width:759px) and (max-height:850px){.topbar{height:calc(70px + env(safe-area-inset-top));padding-top:calc(12px + env(safe-area-inset-top))}.scene-heading{margin:18px 0 16px}.habitat{aspect-ratio:600/500}.wellbeing-heading{margin-top:22px}.care-actions{margin:16px 0 18px}.activity-banner{min-height:70px;padding:11px 14px}}
/* Touch targets remain generous even when the visible icon is small. */
.wallet,.invite-chip,.shop-card .primary,.shop-card .secondary,.collection-card .primary,.collection-card .secondary,.tabs button{min-height:48px}.room-bottom button{width:48px;height:48px}.sheet-header .round-button{width:48px;height:48px}.toggle{min-height:48px;min-width:64px;align-items:center;padding:8px}

.visitors-online{font-size:11px;margin-top:14px;color:#806a8d;text-align:center}
/* Moving the whole actor keeps the shadow and touch target with the Mochi. */
#pet-stage{will-change:transform}.rotation-note{display:flex;align-items:center;gap:8px;padding:11px 13px;margin:0 0 16px;border-radius:14px;background:#eee7f2;color:#806a8d;font-size:11px}.rotation-note svg{width:17px;height:17px}.game-hint{text-align:center;color:#806a8d;font-size:12px;line-height:1.5;min-height:36px;padding:0 5px}.game-area.melody-area,.game-area.sorting-area,.game-area.fishing-area{height:auto;min-height:320px;padding:17px 14px 14px}.melody-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:6px auto 12px;max-width:290px}.melody-pad{height:85px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:22px;border:2px solid #fff8;font-size:11px;font-weight:800;transition:transform .12s,box-shadow .12s,filter .12s}.melody-pad svg{width:27px;height:27px}.melody-pad:disabled{opacity:1}.melody-pad.lit{box-shadow:inset 0 0 0 4px #fff,0 0 0 3px #9272a5;filter:brightness(1.1);transform:scale(1.045)}.replay-melody{display:flex;margin:auto;font-size:11px;min-height:48px;padding:10px 17px}.treat-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:25px;width:155px;height:125px;margin:9px auto 20px;transition:opacity .3s,transform .3s;font-size:11px}.little-biscuit{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:#fff4dd;border:3px dashed #e0c9a6;box-shadow:0 3px 0 #c6a98730;transform:rotate(-8deg)}.little-biscuit svg{width:33px;height:33px}.treat-delivered{opacity:0;transform:translateY(25px) scale(.8)}.treat-bowls{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.treat-bowl{min-height:81px;padding:10px 5px;border-radius:14px 14px 30px 30px;display:flex;flex-direction:column;align-items:center;gap:8px;border:2px solid #ffffff88;font-size:11px;font-weight:800}.treat-bowl svg{width:25px;height:25px}.wiggle{animation:little-wiggle .3s ease-in-out}.star-lagoon{height:158px;border-radius:22px;margin:5px 0 14px;background:linear-gradient(#b6abc9,#dbd1e6);position:relative;overflow:hidden;border:2px solid #ffffff66}.star-lagoon:after{content:'';position:absolute;bottom:35px;left:9%;right:9%;height:1px;border-top:2px dashed #fff6}.lagoon-spark{position:absolute;color:#fff7cf;font-size:19px}.s1{top:13px;left:15%}.s2{top:32px;right:16%}.s3{top:15px;right:38%;font-size:12px}.catch-zone{position:absolute;top:44px;bottom:15px;width:22%;transform:translateX(-50%);display:flex;justify-content:center;padding-top:4px;border-radius:16px;background:#fff0ac44;border:1px solid #fff0b477;transition:opacity .25s}.catch-zone svg{width:35px;height:35px;color:#fff0b2;fill:#fff0b2}.star-net{position:absolute;bottom:8px;width:45px;height:45px;transform:translateX(-50%);z-index:1;display:grid;place-items:center}.star-net svg{width:37px;height:37px;color:#fff8f0;filter:drop-shadow(0 2px 1px #887095)}.catch-zone.caught{opacity:0}.fishing-controls{display:flex;gap:8px}.fishing-controls .secondary{min-width:48px;min-height:48px;padding:10px}.fishing-controls .primary{flex:1;font-size:12px}.game-smallprint{font-size:10px;text-align:center;margin:12px 0 0;color:#82738b;line-height:1.5}@keyframes little-wiggle{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}

.leave-visit{position:sticky;top:calc(8px + env(safe-area-inset-top));z-index:5;margin:8px 0 0;background:#e8dfef;border:1px solid #d7c7e0;box-shadow:0 3px 12px #78628618;min-height:48px}.leave-visit>span{font-size:20px}
