@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');
.star-counter{white-space:nowrap}
:root{font-family:Nunito,ui-rounded,system-ui,sans-serif;color:#244439;background:#a5d4d5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #eaa73a;outline-offset:3px}button:active{transform:translateY(2px)}[hidden]{display:none!important}#world{width:100%;height:100vh;height:100svh;overflow:hidden;position:relative}#worldCanvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#344d3630,transparent 23%,transparent 76%,#253a2940)}.top{position:absolute;left:28px;right:28px;top:max(20px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}.top>*{pointer-events:auto}.brand{display:flex;gap:9px;align-items:center;color:#204336;text-decoration:none;filter:drop-shadow(0 2px 0 #fff9)}.brand-icon{font-size:35px;font-weight:900;width:48px;height:48px;display:grid;place-items:center;background:#f7d779;border:2px solid #284739;border-radius:15px;rotate:-7deg;box-shadow:0 4px 0 #a6904e}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:900}.brand b{display:block;font-size:28px;line-height:1}.brand b span{color:#b86841}.top-actions{display:flex;align-items:center;gap:9px}.pill,.icon-button,.star-counter{background:#fffdf0ed;border:1px solid #fff9;box-shadow:0 3px 0 #24443926;border-radius:15px;color:#294b3b;padding:11px 16px;font-weight:900}.pill span{background:#e6e8d7;border-radius:7px;padding:1px 6px;margin-left:5px}.icon-button{width:44px;height:44px;padding:0;font-size:22px}.star-counter{color:#947222}.star-counter b{font-size:17px}.companion{position:absolute;top:93px;left:28px;background:#fffdf2eb;border:1px solid #fff;border-radius:20px;padding:8px 12px 8px 3px;display:flex;gap:6px;align-items:center;box-shadow:0 5px 18px #24443914}.companion img{width:65px;height:65px;object-fit:contain}.companion small,.mission small,.care-card small{display:block;font-size:9px;letter-spacing:1.4px;font-weight:900;color:#77846d}.companion strong{display:block;font-size:19px;line-height:1.2}.needs{display:flex;gap:8px;margin-top:5px}.needs span{display:flex;align-items:center;gap:3px;font-size:12px}.needs meter{width:33px;height:8px;border:0;background:#dfe4d0;border-radius:4px;overflow:hidden}.needs meter::-webkit-meter-bar{background:#dfe4d0;border:0}.needs meter::-webkit-meter-optimum-value{background:#73a95c}.needs meter::-moz-meter-bar{background:#73a95c}#petButton{background:#f6e0d9;color:#b86468;border:0;border-radius:12px;font-size:23px;width:36px;height:39px;margin-left:8px}.mission{position:absolute;top:94px;right:28px;padding:11px 14px;display:flex;gap:10px;background:#fff9dfec;border-radius:16px;align-items:center;max-width:245px}.mission>span{font-size:28px;color:#d59b24}.mission b{font-size:12px;display:block}.mission small{font-size:8px}.places{position:absolute;top:194px;left:28px;display:grid;gap:9px}.places button{border:1px solid #fff9;background:#fffdf1e8;border-radius:16px;display:flex;align-items:center;gap:12px;padding:11px 16px;text-align:left;color:#3e5644;box-shadow:0 3px 0 #26492f20;min-width:192px}.places button span{font-size:26px}.places button b{display:block;font-size:13px}.places button small{font-size:10px;color:#839078}.places button[aria-pressed=true]{background:#255f4a;color:#fff}.places button[aria-pressed=true] small{color:#bde2c4}.bottom-controls{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:28px;right:28px;display:flex;align-items:end;justify-content:space-between;pointer-events:none}.bottom-controls>*{pointer-events:auto}.joystick-wrap{text-align:center}.joystick{width:122px;height:122px;border-radius:50%;border:2px solid #ffffff91;background:#fffae02b;position:relative;touch-action:none;box-shadow:inset 0 0 20px #ffffff21}.cross{position:absolute;inset:0;display:grid;place-items:center;color:#fff8;font-size:80px;pointer-events:none}.stick{position:absolute;width:49px;height:49px;left:calc(50% - 24.5px);top:calc(50% - 24.5px);background:#fff9e6ed;border:2px solid #fff;border-radius:50%;box-shadow:0 5px 0 #314c3f25;pointer-events:none}.direction{position:absolute;width:33px;height:30px;background:none;color:#fff;border:0;font-size:19px;padding:0}.direction.up{top:0;left:43px}.direction.down{bottom:0;left:43px}.direction.left{left:0;top:45px}.direction.right{right:0;top:45px}.control-caption{display:block;font-size:8px;letter-spacing:1.7px;color:white;text-shadow:0 1px 2px #234533;margin-top:9px;font-weight:900}.right-controls{display:flex;gap:12px;align-items:end}.jump-button{width:83px;height:83px;border:2px solid #fff8;border-radius:50%;background:#f7d67de8;color:#665424;font-size:38px;font-weight:900;box-shadow:0 5px 0 #5b612740}.jump-button small{display:block;font-size:9px;letter-spacing:1px;line-height:1;margin-top:-5px}.camera-button{border:1px solid #fff8;background:#fffce5d9;border-radius:50%;width:40px;height:40px;color:#496a57;font-size:27px}.social-controls{display:flex;gap:8px;padding-bottom:10px}.social-controls button{border:1px solid #fff8;border-radius:14px;background:#fffdece8;color:#335f47;font-weight:800;font-size:12px;padding:12px 17px}.social-controls .talk-button{background:#285d47;color:#fff}.status{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);background:#254737dc;color:#fff8de;border:1px solid #ffffff2e;padding:8px 15px;font-size:11px;border-radius:12px;pointer-events:none;max-width:40%;text-align:center;margin:0;display:none}.care-card{position:absolute;bottom:104px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;background:#fffcedf5;border:2px solid white;border-radius:20px;padding:13px 16px;box-shadow:0 8px 30px #22483428;min-width:340px}.care-card b{font-size:13px;display:block;margin-top:4px}.care-card button{white-space:nowrap;background:#e9bd63;color:#4f4626;font-weight:900;padding:13px;border:0;border-radius:12px;box-shadow:0 3px 0 #b98e3d}.speech-bubble{position:absolute;background:#fffdf2;border-radius:16px;padding:11px 15px;box-shadow:0 7px 22px #18382825;max-width:245px;font-size:13px;pointer-events:none;transform:translate(-50%,-100%);z-index:4;border:2px solid white}.speech-bubble:after{content:'';position:absolute;bottom:-9px;left:45%;border:10px solid transparent;border-bottom:0;border-top-color:#fffdf2}.speech-bubble b{display:block;color:#488061;margin-bottom:3px;font-size:10px;text-transform:uppercase;letter-spacing:1px}.loading{position:absolute;inset:0;display:grid;place-items:center;background:#28473757;backdrop-filter:blur(4px);z-index:10;padding:20px}.welcome{text-align:center;border:1px solid #fff;background:#fcf8eaf7;border-radius:32px;padding:32px 38px;max-width:370px;box-shadow:0 20px 90px #143b3240}.welcome-tag{font-size:9px;letter-spacing:2px;color:#8a886a;font-weight:900}.welcome-logo{position:relative;background:#eed17a;color:#2c5a43;border-radius:25px;width:84px;height:84px;margin:22px auto 18px;display:grid;place-items:center;font-size:60px;font-weight:900;rotate:-7deg;border:2px solid #bba75f;box-shadow:0 7px 0 #cfb568}.welcome-logo span{position:absolute;right:-12px;top:-8px;font-size:31px;color:#bc7546}.welcome h1{font-size:42px;line-height:1.03;letter-spacing:-1.8px;margin:21px 0 15px;color:#285940}.welcome p{font-size:14px;line-height:1.6;color:#6c7b66;margin:0 0 20px}.welcome button{display:block;background:#2b644d;color:white;border:0;border-radius:15px;padding:15px 25px;font-weight:900;font-size:16px;width:100%;box-shadow:0 4px 0 #1d4535}.welcome button:disabled{background:#96a890;cursor:wait}.welcome>small{display:block;margin-top:16px;color:#929783;font-size:10px}.welcome a{display:block;padding:13px;color:#285940;font-weight:800}dialog{border:0;border-radius:26px;background:#fffbed;color:#294f3d;padding:25px;width:min(530px,calc(100% - 26px));box-shadow:0 25px 90px #17302d50;max-height:85svh;overflow:auto}dialog::backdrop{background:#173c355c;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.dialog-heading small{font-size:8px;font-weight:900;letter-spacing:1.6px;color:#899178}.dialog-heading h2{font-size:25px;margin:4px 0 20px}.dialog-heading button{align-self:start;border:0;background:#e9eddf;border-radius:50%;width:35px;height:35px;font-size:25px;color:#385d47}.friend-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.friend-choices button{padding:10px 6px;border:2px solid #e5e7d4;background:#f9f7e8;border-radius:16px;color:#345a43}.friend-choices button[aria-pressed=true]{background:#e1edd6;border-color:#588668}.friend-choices img{width:100%;height:100px;object-fit:contain}.friend-choices b{display:block}.friend-choices small{display:block;font-size:9px;margin-top:3px;color:#819071}dialog>p{font-size:12px;color:#86927a;text-align:center}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.help-grid p{font-size:13px;line-height:1.6;margin:0}.help-grid b{display:block;font-size:15px;margin-bottom:5px}.classic-link{display:block;margin-top:22px;color:#53775e;font-size:12px;text-align:center}
@media(max-width:680px){.top{left:14px;right:14px;top:max(12px,env(safe-area-inset-top));gap:6px}.brand-icon{width:36px;height:36px;font-size:27px;border-radius:12px}.brand small{font-size:6px;letter-spacing:1.2px}.brand b{font-size:21px}.top-actions{gap:5px}.pill{font-size:11px;padding:9px 10px}.pill span{display:none}.icon-button{width:32px;height:34px;font-size:18px;border-radius:11px}.star-counter{font-size:13px;padding:7px 9px;border-radius:11px}.star-counter b{font-size:13px}.companion{left:14px;top:69px;padding:4px 9px 4px 0;border-radius:17px;gap:1px}.companion img{width:48px;height:48px}.companion small{font-size:7px;letter-spacing:.7px}.companion strong{font-size:16px}.needs{gap:4px;margin-top:3px}.needs meter{width:25px;height:6px}.needs span{font-size:10px}#petButton{width:28px;height:32px;font-size:21px;margin-left:5px}.mission{right:14px;top:76px;padding:7px 8px;max-width:129px;gap:5px;border-radius:12px}.mission>span{font-size:20px}.mission small{display:none}.mission b{font-size:9px;line-height:1.3}.places{top:137px;left:14px;right:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.places button{min-width:0;padding:7px 3px;border-radius:13px;display:block;text-align:center;box-shadow:0 2px 0 #26492f20}.places button span{font-size:19px;line-height:1.2;display:block}.places button b{font-size:8px;margin-top:3px}.places button small{display:none}.bottom-controls{left:16px;right:16px;bottom:max(20px,env(safe-area-inset-bottom));align-items:center}.joystick{width:104px;height:104px}.direction.up,.direction.down{left:34px}.direction.left,.direction.right{top:35px}.stick{width:44px;height:44px;left:calc(50% - 22px);top:calc(50% - 22px)}.cross{font-size:65px}.control-caption{font-size:6px;letter-spacing:1px}.jump-button{width:67px;height:67px;font-size:31px}.right-controls{flex-direction:column;gap:8px;align-items:center}.camera-button{width:31px;height:31px;font-size:22px}.social-controls{flex-direction:column;align-items:center;gap:6px;padding:0;max-width:125px}.social-controls button{font-size:10px;padding:9px 13px}.care-card{bottom:155px;width:calc(100% - 30px);min-width:0;padding:11px 13px;gap:10px;justify-content:space-between;border-radius:16px}.care-card small{font-size:8px}.care-card b{font-size:11px}.care-card button{font-size:11px;padding:12px 9px;white-space:normal;max-width:130px}.speech-bubble{max-width:200px;font-size:11px;padding:9px 12px}.welcome{padding:27px;max-width:330px}.welcome h1{font-size:38px}.friend-choices img{height:72px}.help-grid{grid-template-columns:1fr;gap:12px}}
@media(max-height:530px) and (min-width:600px){.companion{top:72px;scale:.85;transform-origin:left top}.places{top:150px;gap:4px}.places button{padding:5px 9px;min-width:160px}.places button span{font-size:18px}.places button small{display:none}.mission{top:72px}.bottom-controls{bottom:12px}.joystick{width:94px;height:94px}.direction.up,.direction.down{left:29px}.direction.left,.direction.right{top:30px}.control-caption{display:none}.jump-button{width:63px;height:63px}.care-card{bottom:79px;min-width:290px;padding:9px 13px}.welcome{padding:15px 27px;max-width:390px}.welcome-logo{display:none}.welcome h1{font-size:30px;margin:12px 0}.welcome h1 br{display:none}.welcome p{margin-bottom:12px}.welcome>small{margin-top:9px}.social-controls{padding-bottom:0}.mission{max-width:200px}}
@media(max-width:370px){.mission{display:none}.top{left:12px;right:12px}.top-actions{gap:4px}.brand{gap:5px}.brand b{font-size:18px}.brand small{font-size:5px}.pill{padding:9px 7px;white-space:nowrap}.star-counter{padding:8px 6px}.icon-button{width:28px}.brand-icon{width:31px;height:33px;font-size:24px}}

.name-label{display:block;text-align:left;font-size:13px;font-weight:900;margin:2px 0 7px}.player-name{width:100%;border:2px solid #ccd8bc;background:#fffef6;border-radius:12px;padding:12px 13px;font:inherit;font-size:16px;color:#285940;outline-offset:3px}.welcome .name-note{margin:6px 0 15px;font-size:10px}.welcome{max-height:calc(100svh - 24px);overflow:auto}.welcome-logo{margin:13px auto 12px}.welcome h1{margin:15px 0 10px}.welcome p{margin-bottom:13px}.change-name{display:block;margin:20px auto 0;background:#e4edda;color:#285940;border:0;border-radius:12px;padding:10px 16px;font:inherit;font-weight:800}#greetingName{display:block;color:#285940;margin-bottom:5px}#replayVoice{pointer-events:auto;display:block;background:#285d47;color:white;border:0;border-radius:9px;padding:8px 12px;margin-top:8px;font:inherit;font-weight:800}@media(max-height:650px){.welcome-logo{display:none}.welcome{padding:22px}.welcome h1{font-size:30px}.welcome p{font-size:12px;line-height:1.4}.welcome>small{margin-top:9px}}

.care-actions{display:flex;gap:8px;flex-wrap:wrap}.care-actions button{min-height:44px}#injectionButton{background:#dcefe8;color:#285c4a;font-size:12px}.care-card:has(#injectionButton:not([hidden])){max-width:540px}.care-card button:disabled{opacity:.65;cursor:wait}@media(max-width:700px){.care-actions{flex-direction:column;gap:5px}.care-card:has(#injectionButton:not([hidden])){bottom:145px}.care-actions button{padding:9px 12px}}
