.scene-actions .watch-button{width:auto;height:auto;min-width:100px;max-width:170px;min-height:48px;border:3px solid var(--border);border-radius:13px;background:var(--bg-2);color:var(--text-1);display:flex;flex-direction:column;gap:2px;padding:5px 9px;box-shadow:var(--shadow)}.scene-actions .watch-button small{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--text-2)}#knockout{position:absolute;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;background:var(--bg-1);color:var(--text-1);font-size:clamp(18px,4vw,32px);text-align:center;padding:30px;pointer-events:auto}#knockout[hidden]{display:none}@media(max-width:600px){.scene-actions .watch-button{min-width:86px;max-width:112px}.scene-actions .watch-button small{max-width:86px}}#night-hud{position:absolute;top:calc(env(safe-area-inset-top,0px) + 88px);left:16px;max-width:calc(100% - 32px);padding:8px 12px;border-radius:12px;background:var(--bg-2);color:var(--text-1);font-size:13px;pointer-events:none;z-index:5}#night-controls{position:absolute;right:16px;top:calc(env(safe-area-inset-top,0px) + 136px);display:flex;gap:8px;z-index:8;flex-wrap:wrap;max-width:calc(100% - 32px);justify-content:flex-end}#night-controls[hidden],#night-hud[hidden]{display:none}#night-controls button{min-height:44px;min-width:44px;background:var(--bg-2);color:var(--text-1);border:1px solid var(--text-3);border-radius:12px;padding:9px 12px;touch-action:manipulation}.sniper-scope .crosshair{width:38px;height:38px;border:1px solid var(--text-1);border-radius:50%}@media(max-height:500px){#night-hud{top:64px;font-size:11px;padding:5px 8px}#night-controls{top:104px}}.game-shell .scene-top{flex-wrap:wrap}#online-count{white-space:nowrap;flex-shrink:0}@media(max-width:760px){.game-shell .scene-top .day-tag{display:none}.game-shell .scene-top{max-width:calc(100% - 165px)}}.tutorial{position:absolute;top:max(74px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));z-index:4;width:min(400px,calc(100% - 32px));max-height:min(58dvh,calc(100dvh - 265px));display:flex;flex-direction:column;background:var(--bg-2);color:var(--text-1);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);pointer-events:auto}.tutorial header{display:flex;align-items:center;gap:10px;padding:5px 8px 5px 16px;flex:none;border-bottom:1px solid var(--border)}.tutorial header strong{font-size:13px;flex:1}.tutorial header span{font-size:11px;color:var(--text-2)}.tutorial header button{display:grid;place-items:center;min-width:44px;min-height:44px}.tutorial-content{overflow-y:auto;min-height:0;padding:10px 16px;overscroll-behavior:contain}.tutorial h2{font-size:17px;margin:0 0 8px}.tutorial p{font-size:13px;line-height:1.85;margin:9px 0}.tutorial small{display:block;color:var(--text-4);font-size:11px;line-height:1.7}.tutorial #tutorial-audio{color:var(--text-2)}.tutorial footer{display:flex;flex-wrap:wrap;gap:4px;padding:7px;flex:none;border-top:1px solid var(--border)}.tutorial footer button{min-height:44px;flex:1;padding:5px 8px;border-radius:8px;background:var(--bg-3);font-size:11px;white-space:normal;overflow-wrap:anywhere}.tutorial footer button[data-guide=start],.tutorial footer button[data-guide=next]{background:var(--bg-4);color:var(--text-3)}.tutorial button:disabled{opacity:.45}.tutorial-demo{display:flex;gap:40px;justify-content:center;padding:4px}.tutorial-demo>div{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--text-2)}.demo-stick{height:54px;width:44px;border:1px dashed var(--border);border-radius:25px;display:grid;place-items:center;background:var(--bg-3)}.demo-stick svg{width:24px;height:24px;color:var(--text-4);animation:guide-stroke 2.4s ease-in-out infinite;filter:drop-shadow(0 6px 2px var(--border))}.tutorial[data-step=walk] .demo-right svg,.tutorial[data-step=climb] .demo-right svg{animation-delay:-1.2s}.tutorial[data-step=reach] .demo-right svg{animation:none}.tutorial[data-step=wash] .demo-stick svg{animation:none;transform:translateY(-12px)}.tutorial[data-step=look] .demo-stick svg,.tutorial[data-step=side] .demo-stick svg{animation-name:guide-side}.tutorial[data-step=interact] .tutorial-demo,.tutorial[data-step=meow] .tutorial-demo,.tutorial[data-step=zoom] .tutorial-demo{display:none}.tutorial-target{outline:3px solid var(--text-4);outline-offset:5px}.learning .look-zone,.learning .gesture-hint,.learning .intro{visibility:hidden}#start-tutorial{font-size:12px;margin-top:8px;padding:8px 12px;min-height:44px;background:var(--bg-4);color:var(--text-3);border-radius:9px}@keyframes guide-stroke{0%,to{transform:translateY(10px)}35%,55%{transform:translateY(-14px)}75%{transform:translateY(-2px)}}@keyframes guide-side{0%,to{transform:translate(-10px)}50%{transform:translate(10px)}}@media(max-width:760px){.tutorial{top:68px;left:max(10px,env(safe-area-inset-left));width:min(400px,calc(100% - 20px));max-height:calc(100dvh - 275px)}.tutorial p{font-size:12px;line-height:1.8}}@media(max-height:600px)and (min-width:650px){.tutorial{top:62px;left:50%;transform:translate(-50%);max-height:calc(100dvh - 145px);width:min(420px,calc(100% - 260px))}.tutorial-demo{display:none}.tutorial-content{padding:8px 14px}.tutorial p{font-size:12px;margin:4px 0}.tutorial header{padding-top:0;padding-bottom:0}.tutorial h2{font-size:14px}}@media(prefers-reduced-motion:reduce){.demo-stick svg{animation:none;transform:translateY(-10px)}}.game-frame:has(.game-menu:not([hidden])) .tutorial,.game-frame:has(.task-menu:not([hidden])) .tutorial{visibility:hidden}:root[data-theme=light]{--text-1:#363d30;--text-2:#777c6c;--text-3:#fffdf6;--text-4:#69794c;--text-5:#ad825a;--text-6:#b87d6f;--bg-1:#f8f7f0;--bg-2:#fffef9;--bg-3:#eeeee3;--bg-4:#77875e;--bg-5:#e4e8d8;--bg-6:#e8d8bd;--border:#dcdfd0;--shadow:0 10px 40px #3d412918;--glass:#fffef9e8;--scrim:#28302366;--clear:#ffffff00}:root[data-theme=dark]{--text-1:#f1efdf;--text-2:#b9bcaa;--text-3:#fffdf6;--text-4:#c3d7a2;--text-5:#dbb78c;--text-6:#e8ac9d;--bg-1:#262c25;--bg-2:#323a2e;--bg-3:#3d4736;--bg-4:#718552;--bg-5:#46513a;--bg-6:#665440;--border:#53604a;--shadow:0 10px 40px #00000025;--glass:#323a2ef0;--scrim:#11170e99;--clear:#00000000}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0}body{font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;background:var(--bg-1);color:var(--text-1);overscroll-behavior:none;-webkit-user-select:none;user-select:none}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:var(--clear);min-width:44px;min-height:44px;touch-action:manipulation}button:focus-visible,select:focus-visible{outline:3px solid var(--text-4);outline-offset:4px}button:hover{filter:brightness(.96)}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.topbar{height:88px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:24px}.brand{display:flex;gap:13px;align-items:center}.brand-icon{width:45px;height:45px;border-radius:15px;background:var(--bg-4);color:var(--text-3);display:grid;place-items:center}.brand-icon svg{width:29px;height:29px}.brand-title{font-size:23px;font-weight:800;letter-spacing:3px}.brand-sub{font-size:10px;color:var(--text-2);margin-top:4px;letter-spacing:2px}.nav{display:flex;gap:28px;height:100%;align-items:center}.nav button{font-size:13px;position:relative;display:flex;gap:8px;align-items:center;color:var(--text-2)}.nav .active{color:var(--text-4);font-weight:700}.nav .active:after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:3px;border-radius:3px;background:var(--bg-4)}.tools{display:flex;align-items:center;gap:7px}.tools button{color:var(--text-2);display:grid;place-items:center}.tools .lang{font-size:11px;padding:0 10px;letter-spacing:1px}.separator{height:20px;width:1px;background:var(--border);margin:0 6px}.layout{height:calc(100dvh - 88px);display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:24px;padding:26px 30px 22px}.play-column{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}.scene-head{display:flex;align-items:center;justify-content:space-between;height:30px;font-size:12px;color:var(--text-2)}.location{display:flex;align-items:center;gap:8px;color:var(--text-1);font-weight:600}.dot{width:5px;height:5px;border-radius:50%;background:var(--bg-4);display:inline-block;margin:0 8px}.time{letter-spacing:1.2px;font-size:10px}.game-frame{position:relative;flex:1;min-height:300px;overflow:hidden;border-radius:20px;background:var(--bg-6);box-shadow:var(--shadow);isolation:isolate}canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;touch-action:none}.scene-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.scene-top{position:absolute;left:24px;top:21px;display:flex;gap:10px;align-items:center}.day-tag,.room-tag{border:1px solid var(--border);background:var(--glass);border-radius:8px;padding:7px 11px;font-size:10px;letter-spacing:1.5px;color:var(--text-2)}.day-tag{color:var(--text-4);font-weight:700}.scene-actions{position:absolute;right:17px;top:13px;display:flex;gap:5px;pointer-events:auto}.scene-actions button{width:38px;min-width:38px;background:var(--glass);border:1px solid var(--border);border-radius:50%;height:38px;min-height:38px;color:var(--text-2)}.scene-actions svg{width:17px;height:17px}.intro{position:absolute;left:28px;top:82px;max-width:325px;padding:21px 24px 17px;background:var(--glass);border:1px solid var(--border);border-radius:15px;pointer-events:auto;box-shadow:var(--shadow)}.eyebrow{font-size:9px;letter-spacing:2.2px;color:var(--text-4);font-weight:700}.intro h1{font-family:Georgia,Songti SC,serif;font-size:27px;font-weight:500;margin:13px 0 10px;letter-spacing:1px}.intro p{font-size:12px;line-height:1.9;color:var(--text-2);margin:0}.intro-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;border-top:1px solid var(--border);padding-top:9px;font-size:10px;color:var(--text-4);gap:8px}.intro-bottom button{font-size:10px;color:var(--text-4);padding:0}.crosshair{position:absolute;top:50%;left:50%;width:6px;height:6px;border:1px solid var(--text-3);border-radius:50%;box-shadow:0 0 0 3px var(--scrim);transform:translate(-50%,-50%)}.object-hint{position:absolute;top:53%;left:50%;transform:translate(-50%);background:var(--glass);border:1px solid var(--border);border-radius:9px;padding:7px 12px;font-size:11px;white-space:nowrap;color:var(--text-1)}.joystick-group{position:absolute;bottom:24px;display:flex;flex-direction:column;align-items:center;gap:9px;pointer-events:auto}.joystick-group.left{left:29px}.joystick-group.right{right:29px}.joystick{position:relative;width:112px;height:112px;border:1px solid var(--border);border-radius:50%;background:var(--glass);touch-action:none;box-shadow:var(--shadow);display:grid;place-items:center;cursor:grab}.joystick:active{cursor:grabbing}.joystick:before{content:"";position:absolute;top:13px;right:13px;bottom:13px;left:13px;border:1px dashed var(--border);border-radius:50%}.joystick:after{content:"";position:absolute;width:6px;height:6px;top:8px;border-top:1px solid var(--text-2);border-left:1px solid var(--text-2);transform:rotate(45deg)}.stick{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border);background:var(--bg-2);color:var(--text-4);box-shadow:var(--shadow);pointer-events:none}.stick svg{width:25px;height:25px}.joy-label{font-size:10px;letter-spacing:2px;color:var(--text-1);background:var(--glass);border-radius:5px;padding:4px 9px}.joy-label kbd{font-size:9px;letter-spacing:0;color:var(--text-2);margin-left:6px}.bottom-actions{position:absolute;bottom:26px;left:50%;transform:translate(-50%);display:flex;gap:9px;pointer-events:auto}.action-pill{display:flex;gap:7px;align-items:center;justify-content:center;padding:0 15px;border:1px solid var(--border);border-radius:24px;background:var(--glass);font-size:11px;white-space:nowrap;color:var(--text-1);height:42px}.action-pill svg{width:17px;height:17px}.action-pill.primary{background:var(--bg-4);color:var(--text-3);border-color:var(--bg-4)}.action-pill kbd{font-size:9px;opacity:.7}.toast{position:absolute;bottom:174px;left:50%;transform:translate(-50%);width:max-content;max-width:82%;padding:11px 18px;border:1px solid var(--border);border-radius:13px;background:var(--glass);font-size:12px;line-height:1.7;text-align:center;box-shadow:var(--shadow)}.below{display:flex;align-items:center;justify-content:space-between;color:var(--text-2);font-size:10px;gap:12px;min-height:23px}.below span{display:flex;align-items:center;gap:6px}.below svg{width:14px;height:14px}.sidebar{padding-top:43px;display:flex;flex-direction:column;gap:20px}.greeting{display:flex;gap:11px;align-items:center}.cat-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--bg-6);color:var(--text-5)}.cat-avatar svg{width:30px;height:30px}.greeting strong{font-size:13px;font-weight:600}.greeting p{font-size:10px;line-height:1.7;color:var(--text-2);margin:4px 0}.quest-card{padding:22px 18px;background:var(--bg-2);border:1px solid var(--border);border-radius:15px}.section-eyebrow{font-size:9px;letter-spacing:2px;color:var(--text-5)}.quest-title{display:flex;justify-content:space-between;align-items:center;margin:9px 0 17px}.quest-title h2{font-size:14px;font-weight:600;margin:0}.count{font-size:10px;color:var(--text-4);background:var(--bg-5);padding:4px 7px;border-radius:6px}.progress-track{height:4px;background:var(--bg-3);border-radius:4px;overflow:hidden;margin-bottom:15px}.progress-fill{height:100%;background:var(--bg-4);border-radius:4px;transition:width .3s}.quests{display:flex;flex-direction:column;gap:4px}.quest{display:flex;align-items:center;gap:10px;font-size:11px;min-height:36px;color:var(--text-2)}.check{width:16px;height:16px;flex:none;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center}.check svg{width:10px;height:10px}.quest.done{color:var(--text-4)}.quest.done .check{background:var(--bg-5);border-color:var(--text-4)}.quest-foot{font-family:Georgia,Songti SC,serif;font-size:11px;text-align:center;color:var(--text-2);margin:19px 0 0;padding-top:16px;border-top:1px dashed var(--border)}.control-note{padding:0 8px}.control-note h3{font-size:11px;display:flex;align-items:center;gap:7px;font-weight:600}.control-note h3 svg{width:16px;height:16px;color:var(--text-4)}.mini-controls{display:flex;gap:18px;margin-top:17px;align-items:center;justify-content:center}.key-cluster{display:grid;grid-template-columns:repeat(3,22px);gap:3px}.key-cluster kbd{font:9px system-ui;border:1px solid var(--border);background:var(--bg-2);border-radius:4px;height:22px;display:grid;place-items:center;color:var(--text-2)}.key-cluster kbd:first-child{grid-column:2}.key-cluster kbd:nth-child(2){grid-column:1}.plus{color:var(--text-5);font-size:15px}.control-note p{text-align:center;font-size:10px;line-height:1.9;color:var(--text-2)}.plant-note{margin-top:auto;text-align:center;color:var(--text-4);padding:14px}.plant-note svg{width:34px;height:34px;stroke-width:1}.plant-note p{color:var(--text-2);font-family:Georgia,Songti SC,serif;font-size:11px;letter-spacing:1px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--scrim);display:grid;place-items:center;padding:20px;z-index:10}.modal{background:var(--bg-2);border:1px solid var(--border);border-radius:20px;max-height:85dvh;width:min(530px,94vw);display:flex;flex-direction:column;box-shadow:var(--shadow)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--border);position:sticky;top:0}.modal-header h2{font-size:18px;font-weight:600;margin:0}.modal-body{padding:16px 24px;overflow-y:auto;min-height:0}.modal-body p{font-size:13px;line-height:1.9;color:var(--text-2)}.modal-body h3{font-size:12px;color:var(--text-4);margin-bottom:2px}.modal-footer{position:sticky;bottom:0;border-top:1px solid var(--border);padding:14px 24px;display:flex;justify-content:center}.modal-footer button{min-width:160px;border-radius:24px;background:var(--bg-4);color:var(--text-3);font-size:13px;padding:0 20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.setting-row button,.setting-row select{border:1px solid var(--border);border-radius:8px;padding:8px 12px;background:var(--bg-3);min-height:44px}.paused .scene-overlay{visibility:hidden}.paused:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--scrim);pointer-events:none}[hidden]{display:none!important}@media(min-width:1500px){.layout{padding:30px 44px;grid-template-columns:minmax(0,1fr) 280px;gap:30px}.sidebar{padding-top:43px}.quest-card{padding:28px 22px}.quest{min-height:43px;font-size:12px}.game-frame{border-radius:24px}}@media(max-width:1050px){.layout{grid-template-columns:minmax(0,1fr) 218px;gap:16px;padding:18px}.topbar{padding:0 23px;gap:12px}.nav{gap:10px}.quest-card{padding:18px 13px}.sidebar{gap:12px}.bottom-actions{gap:5px}.action-pill{padding:0 10px}.action-pill kbd{display:none}.joystick{width:96px;height:96px}.joystick-group.left{left:18px}.joystick-group.right{right:18px}.joystick-group{bottom:19px}.joy-label{font-size:9px}.joy-label kbd{display:none}.intro{max-width:292px}.brand-sub{letter-spacing:1px}.control-note{padding:0}}@media(max-width:760px){.topbar{height:68px;padding:0 max(16px,env(safe-area-inset-right));gap:8px}.brand-title{font-size:20px}.brand-icon{width:37px;height:37px;border-radius:12px}.brand-sub{font-size:8px}.nav{gap:0;margin-left:auto}.nav button{font-size:0;gap:0;padding:0 10px}.nav button svg{width:19px}.nav .active:after{left:10px;right:10px}.tools{gap:0}.tools .lang{font-size:9px;padding:0 4px}.tools .separator,.tools #sound-button{display:none}.layout{height:calc(100dvh - 68px);grid-template-columns:1fr;padding:12px 12px max(10px,env(safe-area-inset-bottom));gap:0}.sidebar{display:none}.play-column{gap:9px}.game-frame{border-radius:16px;min-height:0}.scene-head{height:24px;font-size:11px}.time{font-size:9px}.scene-top{left:15px;top:14px;gap:5px}.scene-actions{right:10px;top:7px}.day-tag,.room-tag{font-size:9px;padding:6px 8px}.intro{left:15px;top:66px;max-width:270px;padding:18px}.intro h1{font-size:25px}.intro p{font-size:11px}.intro-bottom{font-size:10px}.joystick{width:102px;height:102px}.joystick-group{bottom:19px}.joystick-group.left{left:16px}.joystick-group.right{right:16px}.stick{width:46px;height:46px}.bottom-actions{bottom:29px;flex-direction:column;gap:6px}.action-pill{font-size:10px;min-height:35px;height:35px;padding:0 10px}.action-pill svg{width:14px}.bottom-actions #meow{display:none}.toast{bottom:168px;font-size:11px;max-width:90%}.below{font-size:9px;justify-content:center}.below span:last-child{display:none}.object-hint{max-width:90%;white-space:normal;text-align:center}.tools button{min-width:36px}.brand{gap:8px}}@media(max-height:600px)and (min-width:650px){.topbar{height:58px}.layout{height:calc(100dvh - 58px);padding:10px 16px;grid-template-columns:1fr}.sidebar{display:none}.scene-head{height:20px}.below{display:none}.intro{top:55px;padding:12px 17px;max-width:280px}.intro h1{font-size:23px;margin:7px 0}.intro p{font-size:10px}.intro-bottom{margin-top:5px;padding-top:3px}.joystick{width:82px;height:82px}.joystick-group{bottom:12px}.stick{width:40px;height:40px}.bottom-actions{bottom:16px}.toast{bottom:120px}.scene-top{top:13px}.scene-actions{top:8px}.game-frame{min-height:0}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media(pointer:coarse){.scene-actions button{min-width:44px;min-height:44px;width:44px;height:44px}.tools button{min-width:44px}.bottom-actions .action-pill{min-height:44px;height:44px}.intro-bottom button{min-width:44px;min-height:44px}}select{font-size:16px}.look-zone{display:none;pointer-events:none}@media(pointer:coarse){.look-zone{position:absolute;display:flex;align-items:center;justify-content:center;gap:8px;top:max(64px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:44%;height:clamp(64px,20%,140px);border:1px dashed var(--border);border-radius:18px;color:var(--text-2);font-size:11px;pointer-events:none}.look-zone svg{width:18px;height:18px}}.layout{grid-template-rows:minmax(0,1fr)}.sidebar{min-height:0;overflow-y:auto;scrollbar-width:thin}.topbar{padding-top:env(safe-area-inset-top)}@media(max-width:760px){.brand-sub{display:none}.brand{gap:6px}.brand-icon{width:34px;height:34px}.nav #nav-play{display:none}.nav button{width:44px;min-width:44px;padding:0;justify-content:center}.topbar{gap:6px}.tools button{min-width:44px;width:44px}.tools .lang{font-size:8px;padding:0}.scene-actions{gap:2px}.sidebar{overflow:visible}}@media(max-width:380px){.brand-icon{display:none}.topbar{padding-left:12px;padding-right:12px}.brand-title{font-size:19px;letter-spacing:1px}}@media(max-height:600px)and (min-width:650px){.joystick-group{bottom:max(12px,env(safe-area-inset-bottom))}.scene-actions{right:max(12px,env(safe-area-inset-right))}}.intro{max-width:286px;padding:18px 20px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.intro h1{font-size:25px;margin:10px 0 8px}.intro p{line-height:1.8}.scene-actions button{min-width:44px;min-height:44px;width:44px;height:44px}.look-zone{transition:opacity .2s}.game-frame:has(.intro:not([hidden])) .look-zone{opacity:0}.action-pill{transition:transform .15s,filter .15s}.action-pill:active{transform:translateY(2px)}@media(max-width:760px){.intro{left:15px;right:15px;top:66px;max-width:none;padding:14px 17px}.intro h1{font-size:23px;margin:7px 0}.intro p{font-size:11px;line-height:1.7}.intro-bottom{margin-top:8px;padding-top:4px}.intro-bottom button{font-size:11px}.look-zone{height:72px;font-size:10px;background:var(--glass);opacity:.75}.joystick{width:92px;height:92px}.joystick-group.left{left:14px}.joystick-group.right{right:14px}.bottom-actions{bottom:32px}.action-pill{max-width:120px}}@media(max-height:600px)and (min-width:650px){.intro{left:20px;right:auto;top:60px;max-width:300px;padding:10px 16px}.intro .eyebrow,.intro p{display:none}.intro h1{font-size:21px;margin:0 0 4px}.intro-bottom{margin-top:3px;padding-top:0}}.game-shell{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100dvh;overflow:hidden}.game-shell .game-frame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:0;border-radius:0;box-shadow:none}.game-shell .scene-top{top:max(17px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));gap:6px;max-width:calc(100% - 175px)}.game-shell .scene-actions{top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));gap:6px}.game-shell .scene-actions button{box-shadow:var(--shadow)}.game-shell .intro{top:78px;left:24px;max-width:280px}.task-menu,.game-menu{position:absolute;right:max(14px,env(safe-area-inset-right));top:66px;width:min(274px,calc(100% - 28px));max-height:65dvh;border:1px solid var(--border);border-radius:14px;background:var(--bg-2);box-shadow:var(--shadow);pointer-events:auto;overflow:hidden;display:flex;flex-direction:column;z-index:2}.task-menu header,.game-menu header{flex:none;display:flex;align-items:center;gap:8px;padding:6px 8px 6px 16px;border-bottom:1px solid var(--border)}.task-menu header h2,.game-menu header strong{font-size:12px;margin:0;flex:1;font-weight:600}.task-menu header button,.game-menu header button{display:grid;place-items:center;color:var(--text-2)}.task-body{padding:15px;overflow-y:auto;min-height:0}.task-menu .quest{font-size:11px;min-height:35px}.task-menu .progress-track{margin-bottom:8px}.menu-grid{overflow-y:auto;min-height:0;padding:7px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.menu-grid button{display:flex;align-items:center;gap:8px;text-align:left;font-size:11px;padding:7px 10px;border-radius:8px;color:var(--text-1)}.menu-grid button:hover{background:var(--bg-3)}.menu-grid button svg{width:17px;height:17px}.gesture-hint{position:absolute;bottom:max(85px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);padding:6px 11px;border-radius:8px;background:var(--glass);font-size:10px;letter-spacing:1px;color:var(--text-2);white-space:nowrap;max-width:calc(100% - 260px);text-align:center;pointer-events:none}.joystick.charged{border:2px solid var(--text-4)}.joystick.charged .stick{background:var(--bg-5);border-color:var(--text-4)}.game-shell .joystick-group{bottom:max(25px,env(safe-area-inset-bottom))}.game-shell .bottom-actions{bottom:max(30px,env(safe-area-inset-bottom))}@media(max-width:760px){.game-shell .scene-top{left:max(12px,env(safe-area-inset-left));top:max(17px,env(safe-area-inset-top))}.game-shell #mood{display:none}.game-shell .day-tag,.game-shell .room-tag{font-size:9px;padding:6px 8px}.game-shell .scene-actions{right:max(10px,env(safe-area-inset-right));gap:3px}.game-shell .intro{top:75px;left:14px;right:14px;max-width:none}.gesture-hint{bottom:160px;max-width:calc(100% - 24px);font-size:9px;letter-spacing:0}.game-shell .bottom-actions{bottom:max(28px,env(safe-area-inset-bottom))}.game-shell .joystick-group{bottom:max(22px,env(safe-area-inset-bottom))}.task-menu,.game-menu{top:65px}.game-shell .look-zone{top:90px}}@media(max-height:600px)and (min-width:650px){.game-shell .intro{top:66px;max-width:300px}.gesture-hint{bottom:77px}.game-shell .scene-top{top:max(13px,env(safe-area-inset-top))}.game-shell .bottom-actions{bottom:max(18px,env(safe-area-inset-bottom))}.game-shell .joystick-group{bottom:max(12px,env(safe-area-inset-bottom))}.game-shell .look-zone{top:70px}}.paw-state{position:absolute;bottom:100%;margin-bottom:10px;max-width:140px;padding:7px 10px;border-radius:10px;background:var(--bg-4);color:var(--text-3);font-size:10px;line-height:1.5;text-align:center;pointer-events:none;box-shadow:var(--shadow)}.joystick.gripping{border:2px solid var(--text-4)}.joystick.gripping .stick{background:var(--bg-5);color:var(--text-4)}.game-frame.look-learned .look-zone{opacity:0}.game-frame:has(.joystick.charged) .gesture-hint,.game-frame:has(.joystick.gripping) .gesture-hint,.game-frame:has(.intro:not([hidden])) .gesture-hint{visibility:hidden}.action-pill.target-ready{outline:2px solid var(--text-3);outline-offset:3px}.game-shell #interact{width:140px;max-width:140px;white-space:normal;line-height:1.4;min-height:44px;height:auto;padding:8px 12px}.game-shell #interact span{min-width:0}.game-shell #interact kbd{flex:none}.game-shell .scene-overlay:has(.task-menu:not([hidden])) .look-zone,.game-shell .scene-overlay:has(.game-menu:not([hidden])) .look-zone{opacity:0}@media(max-width:760px){.game-shell #interact{width:116px;max-width:116px;padding:7px 9px;font-size:10px}.paw-state{max-width:106px;width:max-content;font-size:10px;padding:6px 8px}}@media(max-width:350px){.game-shell #interact{width:96px;max-width:96px}.game-shell .joystick-group.left{left:10px}.game-shell .joystick-group.right{right:10px}}.game-shell .bottom-actions #meow{display:flex}.game-shell .bottom-actions{gap:8px;align-items:stretch}.game-shell .action-pill{min-width:44px;min-height:44px;border-radius:14px}.game-shell .joystick-group.left{left:max(18px,env(safe-area-inset-left))}.game-shell .joystick-group.right{right:max(18px,env(safe-area-inset-right))}.game-shell .scene-top{flex-wrap:nowrap}.game-shell .scene-top>*{min-width:0}.game-shell .scene-top .day-tag{flex-shrink:0}.game-shell #location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-frame:has(.toast:not([hidden])) .gesture-hint{visibility:hidden}.game-shell .bottom-actions #claws{min-width:44px;min-height:44px}.game-shell .scene-overlay:has(.game-menu:not([hidden])) .crosshair,.game-shell .scene-overlay:has(.task-menu:not([hidden])) .crosshair{visibility:hidden}@media(max-width:760px)and (orientation:portrait){.game-shell .bottom-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:420px;bottom:calc(12px + env(safe-area-inset-bottom));gap:8px}.game-shell .bottom-actions .action-pill,.game-shell .bottom-actions #interact{width:100%;max-width:none;min-height:48px;height:auto;padding:8px 6px;font-size:11px;line-height:1.4;gap:5px;white-space:normal;text-align:center}.game-shell .bottom-actions #interact{grid-column:span 2;grid-row:1}.game-shell .bottom-actions #carry{grid-column:3;grid-row:1}.game-shell .bottom-actions:has(#drop-prop:not([hidden])) #interact{grid-column:1}.game-shell .bottom-actions:has(#drop-prop:not([hidden])) #carry{grid-column:2}.game-shell .bottom-actions #drop-prop{grid-column:3;grid-row:1}.game-shell .bottom-actions:has(#carry[hidden]) #interact{grid-column:span 2}.game-shell .bottom-actions #meow{grid-column:1;grid-row:2}.game-shell .bottom-actions #pounce{grid-column:2;grid-row:2}.game-shell .bottom-actions #claws{grid-column:3;grid-row:2}.game-shell .bottom-actions kbd{display:none}.game-shell .bottom-actions #interact>svg{display:block}.game-shell .joystick-group{bottom:calc(140px + env(safe-area-inset-bottom))}.game-shell .joystick-group.left{left:calc(14px + env(safe-area-inset-left))}.game-shell .joystick-group.right{right:calc(14px + env(safe-area-inset-right))}.game-shell .gesture-hint{bottom:calc(286px + env(safe-area-inset-bottom));max-width:calc(100% - 28px);white-space:normal;line-height:1.5}.game-shell .toast{bottom:calc(286px + env(safe-area-inset-bottom))}.game-shell .object-hint{top:46%;max-width:calc(100% - 32px);font-size:12px;line-height:1.5}}@media(orientation:landscape)and (max-width:1024px){.game-shell .bottom-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(440px,calc(100% - 240px - env(safe-area-inset-left) - env(safe-area-inset-right)));bottom:calc(12px + env(safe-area-inset-bottom));gap:6px}.game-shell .bottom-actions .action-pill,.game-shell .bottom-actions #interact{grid-column:auto;grid-row:auto;width:100%;max-width:none;min-width:44px;min-height:44px;height:auto;padding:6px;font-size:10px;white-space:normal;line-height:1.4;gap:4px}.game-shell .bottom-actions #interact{grid-column:span 2;grid-row:1}.game-shell .bottom-actions #carry,.game-shell .bottom-actions #drop-prop{grid-column:3;grid-row:1}.game-shell .bottom-actions:has(#drop-prop:not([hidden])) #interact{grid-column:1}.game-shell .bottom-actions:has(#drop-prop:not([hidden])) #carry{grid-column:2}.game-shell .bottom-actions:has(#carry[hidden]) #interact{grid-column:span 2}.game-shell .bottom-actions #meow{grid-column:1;grid-row:2}.game-shell .bottom-actions #pounce{grid-column:2;grid-row:2}.game-shell .bottom-actions #claws{grid-column:3;grid-row:2}.game-shell .bottom-actions #interact>svg{display:none}.game-shell .bottom-actions #meow,.game-shell .bottom-actions #pounce{flex-direction:row}.game-shell .bottom-actions kbd{display:none}.game-shell .gesture-hint{bottom:calc(122px + env(safe-area-inset-bottom));max-width:calc(100% - 260px);white-space:normal;line-height:1.5}.game-shell .toast{bottom:calc(122px + env(safe-area-inset-bottom))}}.modal{overflow:hidden}.modal-header,.modal-footer{flex:none;background:var(--bg-2);z-index:1}.modal-header h2{min-width:0;overflow-wrap:anywhere}.modal-header button{flex:none}.modal-body{overscroll-behavior:contain;overflow-wrap:anywhere}@media(max-width:760px){.modal-header,.modal-footer{padding:10px 16px}.modal-body{padding:12px 16px}}.game-shell .scene-top{max-width:calc(100% - 222px)}#location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}#nav-map{width:auto;min-width:54px;display:flex;gap:5px;align-items:center;justify-content:center;padding:0 10px;font-size:11px;color:var(--text-4);background:var(--bg-5)}.modal.atlas-modal{width:min(940px,94vw);max-width:940px;height:85dvh}.atlas-modal .modal-header,.atlas-modal .modal-footer{flex-shrink:0;background:var(--bg-2)}.atlas-modal .modal-body{overscroll-behavior:contain}.atlas-lead{margin:0 0 10px}.atlas-progress{display:flex;gap:8px;align-items:center;color:var(--text-4)!important;font-weight:600}.atlas-progress svg{width:18px;height:18px}.atlas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:8px}.atlas-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px;text-align:left;border:1px solid var(--border);border-radius:14px;background:var(--bg-2);color:var(--text-1);min-width:0;min-height:230px;transition:transform .15s,border-color .15s}.atlas-card:hover:not(:disabled){transform:translateY(-2px);border-color:var(--text-4)}.atlas-card.is-here{border-color:var(--text-4);background:var(--bg-5);opacity:1;cursor:default}.atlas-art{height:74px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:8px;background:var(--bg-3);color:var(--text-4)}.atlas-art:before,.atlas-art:after{content:"";position:absolute;bottom:-22px;width:160px;height:50px;border-radius:50%;background:var(--bg-5);transform:rotate(-8deg)}.atlas-art:before{left:-20px}.atlas-art:after{right:-60px;bottom:-28px;background:var(--bg-6)}.atlas-art>svg{width:36px;height:36px;z-index:1;stroke-width:1.2}.atlas-number{position:absolute;left:9px;top:8px;font:10px ui-monospace,monospace;color:var(--text-2)}.atlas-stamp{position:absolute;right:6px;top:6px;font-size:9px;padding:3px 5px;border-radius:4px;background:var(--bg-2);color:var(--text-4)}.atlas-card strong{font-size:15px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.atlas-description{font-size:11px;line-height:1.7;color:var(--text-2)}.atlas-route{display:flex;gap:4px;align-items:flex-start;font-size:10px;line-height:1.6;color:var(--text-2);margin-top:auto}.atlas-route svg{flex:none;width:13px;height:13px;margin-top:1px}.atlas-go{align-self:flex-start;font-size:11px;font-weight:600;color:var(--text-4);border-bottom:1px solid var(--border);padding-bottom:2px}@media(max-width:760px){.atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.atlas-modal .modal-body{padding:12px 16px}.atlas-card{padding:10px;gap:8px;min-height:220px}.atlas-art{height:62px}.atlas-route{font-size:9px}.atlas-card strong{font-size:13px}.modal.atlas-modal{width:94vw;max-width:94vw}.game-shell .scene-top{max-width:calc(100% - 205px)}.game-shell .scene-top .day-tag{display:none}.game-shell #location{max-width:135px;letter-spacing:0}}@media(max-height:500px){.atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.atlas-card{min-height:200px}.atlas-lead{font-size:11px!important}.atlas-modal .modal-header{padding-top:8px;padding-bottom:8px}}@media(prefers-reduced-motion:reduce){.atlas-card{transition:none}.atlas-card:hover:not(:disabled){transform:none}}@media(max-width:760px){#nav-map svg{display:none}#nav-map{padding:0 8px}}@media(max-width:760px){.game-shell .scene-top{max-width:calc(100% - 224px - env(safe-area-inset-left) - env(safe-area-inset-right))}.game-shell:has(#nav-map[hidden]) .scene-top{max-width:calc(100% - 170px - env(safe-area-inset-left) - env(safe-area-inset-right))}}
