/* One fixed game canvas. Lists in explicit dialogs remain independently scrollable. */
html,body{position:fixed;inset:0;overflow:hidden;overscroll-behavior:none;width:100%;height:100%;touch-action:none}
#app{height:100svh;height:100dvh;max-height:100dvh;background:#f6f7e9;max-width:1200px;margin:auto;border:1px solid #d4dfc4;box-shadow:0 0 40px #354b2520}
.top{background:#f6f7e9;border:0;box-shadow:none}.top-inner{max-width:none}.brand span{display:none}.main{padding:0 5px}.navigation{background:#f6f7e9;border-top:1px solid #d4dfc4}.nav-item.active{background:#dce9c6;border-radius:12px;color:#315c43}
#surface{overflow:hidden!important;position:relative;touch-action:none}.gb-panel-body,.gb-legacy-panel{touch-action:pan-y}.gb-dress-friends{touch-action:pan-x}button,a,input,select{touch-action:manipulation}
.gb-home .gb-garden{border-radius:16px;border:0;background-size:100% 125%;background-position:center top;box-shadow:none}
.gb-home .gb-live-goose{left:50%;transform:translateX(-50%);z-index:5}.gb-home .gb-name{left:50%;bottom:60px;transform:translateX(-50%);font-size:10px}.gb-home .gb-bubble{left:50%;top:85px;bottom:auto;transform:translateX(-50%);max-width:45%;font-size:11px}
.gb-home .gb-garden-head{top:8px;left:8px;right:auto;max-width:48%}.gb-garden-tools{top:6px;right:6px;width:112px}.gb-garden-tools .gb-rail{gap:5px}.gb-garden-tools .gb-stat-card{min-height:32px;width:112px;padding:3px}.gb-garden-tools .gb-stat-card small{display:none}.gb-garden-tools .gb-shop-menu{display:grid;grid-template-columns:1fr 1fr;gap:4px}.gb-garden-tools .gb-shop-menu button{min-width:0;min-height:44px;padding:3px;border-radius:12px;gap:1px}.gb-garden-tools .gb-menu-picture{height:23px;width:26px}.gb-garden-tools .gb-shop-menu b{font-size:9px}.gb-garden-tools .gb-stat-value{height:20px}.gb-home .gb-care-actions button{min-height:44px}
.gb-roamer[data-motion=walk] .gb-original-friend{animation:friend-step 7s ease-in-out infinite;animation-delay:inherit;transform-origin:50% 100%}.gb-roamer[data-motion=crawl] .gb-original-friend{animation:friend-crawl 9s ease-in-out infinite;animation-delay:inherit}.gb-roamer[data-motion=idle] .gb-original-friend{animation:friend-idle 8s ease-in-out infinite;animation-delay:inherit;transform-origin:50% 95%}
@keyframes friend-step{0%,30%,60%,100%{transform:translate(0,0) rotate(0)}10%{transform:translate(-3px,-1px) rotate(-1deg)}20%{transform:translate(-5px,0) rotate(1deg)}70%{transform:translate(3px,-1px) rotate(1deg)}80%{transform:translate(5px,0) rotate(-1deg)}}
@keyframes friend-crawl{0%,30%,100%{transform:translateX(0)}15%{transform:translate(4px,-.5px)}60%{transform:translate(-4px,.5px)}}
@keyframes friend-idle{0%,25%,65%,100%{transform:rotate(0deg) translateY(0)}40%{transform:rotate(1deg) translateY(-1px)}80%{transform:rotate(-1deg)}}
#surface[data-view=words],#surface[data-view=flash]{display:flex;flex-direction:column;gap:6px;padding:6px;box-sizing:border-box}
#surface[data-view=words]>.intro,#surface[data-view=flash]>.intro,.word-challenge,.word-shelf,.section-heading,.flash-tip{display:none!important}
#surface .categories{display:flex;gap:3px;margin:0;flex-shrink:0}.categories .category{flex:1;min-width:0;min-height:44px;padding:4px 1px;border-radius:10px}.categories .category b{font-size:11px}.categories .category span{font-size:9px}
#surface[data-view=words] .book{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;border-radius:16px}#surface[data-view=words] .book-inner{display:flex;flex:1;min-height:0}.picture-page{display:none!important}#surface .read-page{flex:1;min-height:0;padding:8px;display:flex;flex-direction:column;justify-content:center;gap:4px}.read-page .page-label{margin:0;font-size:10px}.word-and-art{flex:1;min-height:0;display:flex!important;flex-direction:column;justify-content:center;gap:3px;margin:0!important}.word-and-art .word-art{width:120px!important;max-width:45%!important;height:auto!important;max-height:none!important}.word-title{font-size:clamp(22px,6vw,36px);margin:0}.word-meaning{font-size:17px;margin:0!important}.word-controls,.word-replay{margin:0!important}.word-controls .btn,.word-replay .btn{min-height:44px;padding:6px 12px}.practice{margin:0;gap:3px}.practice>span{font-size:10px}.practice-dots button{width:38px;height:38px}.book-bottom{padding:3px 10px!important;min-height:0}.book-bottom .mini-tip{display:none}
.flash-book{flex:1;min-height:0;margin:0!important;display:flex;flex-direction:column;border-radius:16px}.flash-book-top,.flash-book-bottom{padding:6px!important;font-size:10px}.flash-card{flex:1;min-height:0!important;height:auto!important;padding:4px!important}.flash-reveal{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}.flash-picture-box{flex:1;min-height:0;height:auto!important}.flash-picture{width:100%;height:100%;max-height:30dvh;object-fit:contain}.flash-translation{font-size:22px;margin:3px}.flash-word{font-size:clamp(30px,9vw,70px)}.flash-controls,.flash-settings,.flash-extras{margin:0!important;flex-shrink:0;justify-content:center;gap:5px}.flash-controls button,.flash-extras button{min-height:44px;padding:5px 12px}.flash-settings button{padding:4px 10px;min-height:32px}.flash-book-bottom{min-height:25px}
.word-game-picker{height:100%;display:flex;flex-direction:column;padding:6px!important;box-sizing:border-box}.word-game-picker-heading{margin:0 0 6px!important}.word-game-picker-heading h1{font-size:20px;margin:4px}.word-game-picker-heading p,.word-game-picker-note,.word-game-number,.word-game-description{display:none!important}.word-game-cards.gb-game-cards{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}.word-game-card{min-height:0!important;display:flex!important;flex-direction:column;padding:0!important;overflow:hidden}.word-game-picture.gb-host-picture{flex:1;min-height:0!important;height:auto!important;max-height:none}.gb-host-art{height:100%!important;width:100%!important;object-fit:contain!important}.word-game-card-body{padding:4px!important;flex-shrink:0}.word-game-card-body strong{font-size:12px}.word-game-choice{font-size:9px}.gb-host-label{font-size:8px;padding:2px}.gb-game-cards .gb-host-pal{max-height:45px}.word-game-menu{min-height:40px}.bridge-heading{margin:3px 0}.bridge-heading h1{font-size:20px}.bridge-test-label,.gb-game-guide{display:none!important}
.gb-fit{transform-origin:top center;position:relative;margin:auto}.gb-fit .bridge-game,.gb-fit .blocks-game{margin:0;padding-top:3px}
@media(prefers-reduced-motion:reduce){.gb-roamer .gb-original-friend{animation:none!important}}
@media(max-height:650px){.gb-home .gb-bubble{top:80px;font-size:9px}.word-and-art .word-art{width:95px!important}.read-page{gap:1px!important}.practice>span{display:none}.flash-book-bottom{font-size:9px}.flash-picture{max-height:24dvh}.top,.top-inner{height:46px;flex-basis:46px}.navigation{height:52px;flex-basis:52px}.brand img{height:33px}.brand strong{font-size:19px}}
.gb-home .gb-garden{background-image:url('./assets/goose-garden-v71.webp');background-size:100% 100%}.gb-garden-tools .gb-shop-menu button{height:49px!important;min-height:49px!important}.gb-garden-tools .gb-shop-menu .gb-menu-picture{height:20px!important}.gb-home .gb-bubble{top:150px;min-width:0;width:max-content;max-width:65%;z-index:6}.gb-home .gb-name{display:none}

.categories .category{flex-direction:column;justify-content:center;gap:1px;overflow:hidden}.categories .category b{font-size:10px;letter-spacing:-.4px}.categories .category span{white-space:nowrap;font-size:9px}
/* Compact game HUDs retain native game controls and their original event handlers. */
#surface .word-game-card-body{flex:0 0 42px!important;padding:3px 5px!important;display:block!important}#surface .word-game-card-body strong{font-size:12px!important;line-height:1.2!important;display:block;margin:0!important}#surface .word-game-choice{font-size:9px!important;margin:2px 0 0!important;padding:2px!important;min-height:0!important}#surface .word-game-picture.gb-host-picture{flex:1 1 auto!important;height:calc(100% - 42px)!important;min-height:0!important}#surface .gb-host-label{display:none}#surface .gb-host-art{position:absolute!important;inset:0!important;object-fit:contain!important;transform:none!important;width:100%!important;height:100%!important}
.gb-fit .bridge-heading{margin:0!important;padding:2px!important;min-height:0!important}.gb-fit .bridge-heading h1{font-size:18px!important}.gb-fit .eyebrow{display:none}.gb-fit .word-game-menu{position:relative;min-height:38px;padding:4px 10px;margin:2px}.gb-fit .bridge-world{height:145px!important;min-height:0!important;margin:4px 0!important;overflow:hidden}.gb-fit .bridge-map-window{height:115px!important;min-height:0!important}.gb-fit .bridge-ready{padding:8px!important;display:block!important;margin:4px 0!important}.gb-fit .bridge-ready h2{font-size:16px}.gb-fit .bridge-ready p{display:none}.gb-fit .bridge-rules{margin:4px!important;font-size:10px}.gb-fit .bridge-ready-actions{gap:4px!important}.gb-fit .bridge-scopes{gap:3px;margin:4px 0!important}.gb-fit .bridge-scopes button{min-height:38px;padding:4px;font-size:11px}.gb-fit .bridge-start{min-height:44px;margin:4px 0}.gb-fit .bridge-question{padding:6px!important;margin:4px 0!important}.gb-fit .bridge-question-body{display:block!important;padding:0!important}.gb-fit .bridge-prompt{display:flex!important;align-items:center;justify-content:center;gap:10px;padding:0!important}.gb-fit .bridge-word-picture{width:65px!important;height:65px!important;min-height:0!important}.gb-fit .bridge-picture{width:60px!important}.gb-fit .bridge-prompt h2{font-size:13px!important}.gb-fit .bridge-korean{font-size:16px!important}.gb-fit .bridge-options{grid-template-columns:1fr 1fr!important;gap:5px;margin:4px 0}.gb-fit .bridge-option{min-height:44px!important;padding:6px!important;font-size:16px!important}.gb-fit .bridge-feedback{min-height:28px!important;padding:3px!important;font-size:11px!important}.gb-fit .bridge-question-actions{min-height:0!important;margin:2px!important;padding:0!important}.gb-fit .bridge-auto-actions>span{display:none}
.gb-fit .blocks-stage{padding:8px!important}.gb-fit .blocks-stage-top{height:55px!important;min-height:0!important}.gb-fit .blocks-stage-top img{max-height:55px}.gb-fit .blocks-status{margin:4px;font-size:12px}.gb-fit .blocks-board-frame{padding:6px!important}.gb-fit .blocks-board{gap:6px!important}.gb-fit .blocks-tile{min-height:48px!important;padding:5px!important;font-size:16px!important}.gb-fit .blocks-tip,.gb-fit .puppy-help,.gb-fit .croc-help{display:none}.gb-fit .blocks-setup{margin:3px!important;padding:3px!important}
.gb-fit .croc-chapters{margin:3px!important}.gb-fit .croc-playground{padding:7px!important}.gb-fit .croc-topic-row{padding:2px!important}.gb-fit .croc-scene{height:180px!important;min-height:0!important}.gb-fit .croc-word-heading{margin:4px!important}.gb-fit .croc-word-heading h3{font-size:13px}.gb-fit .croc-word-heading>span{display:none}.gb-fit .croc-word{min-height:44px!important;padding:5px!important}.gb-fit .croc-feedback{padding:4px!important;min-height:40px!important}
.gb-fit .puppy-topics{margin:3px!important;gap:4px}.gb-fit .puppy-topics button{min-height:38px;padding:4px!important}.gb-fit .puppy-chapters{margin:3px!important}.gb-fit .puppy-yard{height:175px!important;min-height:0!important}.gb-fit .puppy-playground{padding:6px!important}.gb-fit .puppy-feedback{min-height:40px!important;padding:4px!important}.gb-fit .detective-board{padding:8px!important}.gb-fit .detective-topic{margin:4px!important;padding:4px!important}.gb-fit .detective-topic h2{font-size:21px}.gb-fit .detective-topic p{font-size:12px}.gb-fit .detective-suspects{gap:5px!important}.gb-fit .detective-suspect{min-height:0!important;padding:5px!important}.gb-fit .detective-feedback{padding:5px!important;min-height:35px;font-size:11px}
.gb-fit .bridge-map:not(.sky-map){height:115px!important;min-width:680px!important}.gb-fit .bridge-map:not(.sky-map) .jungle-rails{height:100px!important;top:2px}.gb-fit .bridge-map:not(.sky-map) .bridge-log{top:58px!important;height:30px!important}.gb-fit .bridge-map:not(.sky-map) .bridge-log b{top:20px;font-size:8px}.gb-fit .bridge-map:not(.sky-map) .bridge-hama{bottom:45px!important;height:62px!important;width:54px!important}.gb-fit .bridge-map-window{touch-action:pan-x}.gb-fit .bridge-bank{top:2px;font-size:9px}
html,body,#surface{touch-action:manipulation}.gb-fit .bridge-scopes{display:flex!important;flex-wrap:wrap!important}.gb-fit .bridge-scopes button{flex:1 1 28%;font-size:10px!important;min-height:32px!important}.gb-fit .blocks-column{grid-template-rows:repeat(4,48px)!important;gap:5px!important}.gb-fit .blocks-column-heads{padding-bottom:5px!important;font-size:12px}.gb-fit .blocks-score{padding:0}.gb-fit .blocks-score strong{font-size:21px}.gb-fit .blocks-stage-top{grid-template-columns:1fr 65px 1fr!important;height:65px!important}.gb-fit .blocks-hama{height:60px!important}.gb-fit .bridge-rules{display:flex;flex-wrap:nowrap}.gb-fit .bridge-rules span{padding:3px;font-size:9px}
.gb-fit .puppy-yard{height:auto!important;min-height:0!important}.gb-fit .puppy-speech-row{height:40px!important}.gb-fit .puppy-hunger{top:2px;width:38%;display:flex;align-items:center;gap:3px}.gb-fit .puppy-hunger-track{height:32px;width:32px;flex-shrink:0}.gb-fit .puppy-hunger-head,.gb-fit .puppy-hunger-status{font-size:9px}.gb-fit .puppy-speech-anchor{top:10px!important;width:40%;right:4%}.gb-fit .puppy-reaction{font-size:16px}.gb-fit .puppy-scene{height:270px!important}.gb-fit .puppy-character,.gb-fit .puppy-mouth-layer{top:0;width:45%;right:4%}.gb-fit .puppy-topic{top:4px;padding:5px;left:4%}.gb-fit .puppy-topic>small{display:none}.gb-fit .puppy-topic strong{margin:2px}.gb-fit .puppy-treat-field{bottom:8px;height:112px}.gb-fit .puppy-treat{height:48px}.gb-fit .puppy-chapters li{padding:2px;flex-direction:row}.gb-fit .puppy-chapters small{display:none}.gb-fit .puppy-topics small{display:none}.gb-fit .puppy-feedback p{display:none}
.gb-fit .croc-scene{height:auto!important;min-height:0!important}.gb-fit .croc-stage{height:240px!important}.gb-fit .croc-character{max-height:240px!important}
.gb-fit .croc-guide-row,.gb-fit .croc-scene-note{display:none}.gb-fit .croc-stage{width:180px!important;height:180px!important;aspect-ratio:1}.gb-fit .croc-character{height:180px!important;max-height:180px!important}.gb-fit .croc-feedback{gap:4px!important}.gb-fit .croc-feedback p{display:none}.gb-fit .croc-feedback h3{font-size:12px}.gb-fit .croc-topic-row h2{font-size:21px}.gb-fit .croc-chapters li{padding:3px}.gb-fit .croc-chapters small{display:none}
.gb-fit .detective-portrait{height:80px!important}.gb-fit .detective-suspect strong,.gb-fit .detective-suspect-note{display:none}.gb-fit .detective-suspect-number{top:4px;left:4px;width:20px;height:20px}.gb-fit .detective-suspects{padding:3px 0!important}.gb-fit .detective-shadow-word{font-size:16px}.gb-fit .detective-board-top{padding:2px!important}.gb-fit .detective-topic>span{display:none}
.gb-fit .sky-world{height:200px!important}.gb-fit .sky-map{height:155px!important}.gb-fit .sky-map .sky-flight-position{--sky-flight-scale:.42;bottom:5px!important;transform:translate(-50%,calc(-.12 * var(--sky-rise,0px))) scale(.42)}.gb-fit .sky-world-message{display:none}.gb-fit .sky-goal-label{font-size:10px;top:4px;padding:3px}.gb-fit .sky-altimeter{top:12px;bottom:12px;left:12px}.gb-fit .sky-altitude-tick b{font-size:9px}.gb-fit .sky-ground{height:120px}.gb-fit .sky-ground img{width:100%;min-width:0}

#app > .top { --logo-height: clamp(48px, 6.5vw, 64px); height: calc(var(--logo-height) + 6px); flex: 0 0 calc(var(--logo-height) + 6px); }
#app > .top .top-inner { height: 100%; padding-block: 3px; box-sizing: border-box; }
.goose-world-logo { display: block; height: var(--logo-height); width: auto; aspect-ratio: 214 / 66; }
