/* Fixed application shell; scroll only inside explicit content panels. */
html,body{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}body{margin:0}#app{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}.top{flex:0 0 58px;height:58px;position:relative}.top-inner{height:58px;padding:4px 18px}.brand img{height:42px;width:34px}.brand strong{font-size:24px}.brand span{font-size:8px}.top-right .sound{min-height:42px}.main{width:100%;max-width:1200px;min-height:0;flex:1;display:flex;flex-direction:column;padding:0 12px;overflow:hidden}.navigation{order:2;flex:0 0 56px;height:56px;margin:0;padding:4px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;border:0;background:#fffef8}.nav-item{padding:4px;font-size:12px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px}.nav-item svg{width:20px}.foot{display:none}.gb-workspace{order:1;flex:1;min-height:0;display:block;overflow:hidden}.gb-workspace>#goose-rail{display:none}#surface{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.gb-home-workspace #surface{overflow:hidden;position:relative}.gb-home{height:100%;margin:0}.gb-home .gb-garden{height:100%;min-height:0;max-height:none;aspect-ratio:auto;width:100%;border-radius:22px;background-size:100% 100%}.gb-home .gb-live-goose{width:240px;height:300px;left:44%;bottom:70px;z-index:4}.gb-home .gb-bubble{bottom:380px;top:auto;left:40%;font-size:12px;max-width:50%}.gb-home .gb-care-actions{bottom:12px;left:12px;right:12px;z-index:10;display:flex;justify-content:center;gap:6px}.gb-care-actions button{min-height:44px;padding:7px 12px;font-size:12px}.gb-home .gb-pets{position:absolute;inset:0;pointer-events:none;z-index:3}.gb-roamer{position:absolute!important;left:0;top:0;bottom:auto!important;right:auto!important;animation:none!important;filter:none!important;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}.gb-original-friend{position:relative;display:block;max-width:100%;max-height:100%;width:auto;height:100%;transform:translateY(var(--step,0px))}.gb-original-friend>img{width:100%!important;height:100%!important;max-width:100%;object-fit:contain;display:block;animation:none!important;position:relative}.gb-sample-wear{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.gb-garden-tools{top:85px;bottom:auto;right:12px;z-index:8}.gb-garden-tools .gb-stat-card:first-child{display:none}.gb-garden-tools .gb-shop-menu small{display:none!important}.gb-garden-tools .gb-rail{display:flex;flex-direction:column}.gb-garden-tools .gb-shop-menu button{min-height:50px}.gb-inline-panel{position:absolute;inset:7px;z-index:30;margin:0;padding:0;border-radius:20px;background:#fffdf2;box-shadow:0 0 0 100vmax #183a3650;overflow:hidden;display:flex;flex-direction:column}.gb-inline-panel[hidden]{display:none}.gb-panel-top{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #d9e3cf;min-height:52px;flex-shrink:0}.gb-panel-top b{font-size:16px}.gb-panel-top span{font-size:13px}.gb-panel-top button{width:44px;height:44px;border:0;border-radius:14px;background:#edf2df}.gb-panel-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px;display:flex;flex-direction:column;gap:8px}.gb-dress-friends{display:flex;gap:4px;overflow-x:auto;flex-shrink:0;padding-bottom:3px}.gb-dress-friends button{min-height:44px;min-width:53px;padding:5px;border:1px solid #c6d8bc;border-radius:12px;background:#f3f5e6}.gb-dress-friends button.selected,.gb-visit-grid .selected{background:#dbeab7;border-color:#548f70}.gb-dress-preview{flex:1;min-height:100px;max-height:300px;position:relative;display:flex;justify-content:center;align-items:center;background:#edf3dd;border-radius:20px;padding:8px}.gb-dress-preview>.gb-avatar{position:relative;width:180px;height:100%;max-height:270px;aspect-ratio:400/510;inset:auto}.gb-dress-preview>.gb-original-friend{height:100%;max-width:240px}.gb-dress-items{display:flex;gap:8px;flex-shrink:0}.gb-dress-items article{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.gb-dress-items button{border:1px solid #c5d7b8;border-radius:14px;background:#fffdf6;min-height:44px;padding:6px;font-size:12px}.gb-dress-items article>button:last-child{background:#2d7960;color:white}.gb-dress-items button:disabled{background:#dce5d3;color:#4a6252}.gb-dress-thumb{display:flex;flex-direction:column;align-items:center}.gb-dress-thumb>svg,.gb-dress-thumb>img{width:100%;height:70px;object-fit:contain}.gb-dress-thumb.selected{outline:2px solid #4d9475}.gb-dress-bottom{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-shrink:0}.gb-dress-bottom button{min-height:44px;border:0;background:#e9efda;border-radius:12px;padding:5px 12px}.gb-dress-bottom span{font-size:10px;color:#62775c}.gb-visit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex:1;min-height:0}.gb-visit-grid button{border:1px solid #cfdbc3;border-radius:18px;background:#f5f7e9;min-height:130px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px}.gb-visit-grid .gb-original-friend{height:100px;width:auto;max-width:100%}.gb-visit-grid small{font-size:10px}.gb-panel-body>p{margin:0;font-size:12px;text-align:center}.gb-legacy-panel{overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){.top,.top-inner{height:52px;flex-basis:52px}.top-inner{padding:3px 10px}.brand strong{font-size:21px}.brand img{height:38px}.top-right .sound{padding:7px}.top-right .sound span{display:none}.main{padding:0 5px}.navigation{height:55px;flex-basis:55px}.nav-item{font-size:11px;flex-direction:column;gap:1px;padding:2px}.gb-home .gb-live-goose{width:200px;height:265px;left:42%;bottom:65px}.gb-home .gb-bubble{bottom:330px;left:37%;min-width:0;max-width:58%;font-size:10px;padding:6px 9px}.gb-home .gb-garden-head{top:9px;left:9px;right:9px}.gb-garden-tools{top:76px;right:6px;width:68px}.gb-garden-tools .gb-stat-card{width:68px;min-height:46px}.gb-stat-card small{font-size:7px}.gb-stat-value{height:24px}.gb-stat-value strong{font-size:17px}.gb-garden-tools .gb-menu-picture{height:22px}.gb-garden-tools .gb-shop-menu button{min-height:45px}.gb-garden-tools .gb-shop-menu b{font-size:9px}.gb-home .gb-care-actions{bottom:8px;left:5px;right:5px}.gb-care-actions button{padding:5px 9px;font-size:11px}.gb-inline-panel{inset:3px}.gb-panel-top{padding:5px 8px;min-height:50px}.gb-panel-top b{font-size:14px}.gb-panel-body{padding:7px}.gb-dress-items{gap:4px}.gb-dress-items button{font-size:10px}.gb-dress-thumb>svg,.gb-dress-thumb>img{height:54px}.gb-dress-friends button{font-size:11px;min-width:48px}.gb-dress-preview{max-height:230px}.gb-visit-grid button{min-height:115px}.gb-visit-grid .gb-original-friend{height:85px}}
@media(max-height:650px){.gb-home .gb-live-goose{height:230px;width:180px;bottom:61px}.gb-home .gb-bubble{bottom:290px}.gb-dress-preview{min-height:95px;max-height:150px}.gb-visit-grid .gb-original-friend{height:65px}.gb-visit-grid button{min-height:105px}.gb-dress-thumb>svg,.gb-dress-thumb>img{height:40px}}
@media(prefers-reduced-motion:reduce){.gb-roamer,.gb-original-friend{animation:none;transition:none}}

.gb-dress-friends{scrollbar-width:none}.gb-dress-friends::-webkit-scrollbar{display:none}.gb-dress-bottom button{font-size:12px;white-space:nowrap}.gb-dress-bottom span{max-width:100px}.gb-dress-preview .gb-original-friend{height:100%;width:auto;max-width:100%}@media(max-height:650px){.gb-dress-preview{min-height:140px;max-height:190px}.gb-dress-bottom span{display:none}.gb-dress-bottom{justify-content:center}.gb-dress-items button{font-size:11px}.gb-dress-thumb>svg,.gb-dress-thumb>img{height:34px}}
