@media(max-width:600px)and (orientation:portrait){html,body{height:100%;overscroll-behavior:none}body{min-height:0;overflow:hidden;font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif}body:not(.coop-island-active) .app,body.has-roaming-companion:not(.coop-island-active) .app{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(6px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;overflow:hidden}#petCat{display:none!important}.stars-bg,.cloud{opacity:.25}.app>.header{flex:none;order:1;padding:0}.header-logo{font:800 24px/1.25 system-ui;animation:none;filter:none}.header-sub{font-size:10px;line-height:1.3;letter-spacing:1.5px;margin-top:2px}.score-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:6px 0 0}.score-chip{min-width:0;min-height:32px;justify-content:center;gap:4px;padding:4px;font-size:12px;line-height:1.2;border-width:1px;border-radius:10px;backdrop-filter:none}.score-chip .icon,.score-chip .val{font-size:15px}.score-chip.level-chip>.icon{display:none}.level-chip .level-badge{font-size:11px;padding:4px;white-space:nowrap}.app>.nav-tabs{order:3;flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:5px 0 0;border-top:1px solid #ffffff20}.nav-tabs .tab-btn{min-width:0;min-height:44px;padding:6px 2px;border-radius:12px;letter-spacing:0;font-size:0;transform:none;box-shadow:none}.nav-tabs .tab-btn:before{display:none}.nav-tabs .tab-btn:after{content:attr(data-mobile-label);font:700 13px/1.25 system-ui;white-space:nowrap}.nav-tabs .tab-btn.active{outline:2px solid #fff3b0;outline-offset:-3px}.app>.panel.active{order:2;flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;animation:none}.section-title{font:800 18px/1.3 system-ui;margin:0 0 8px;gap:6px}#panel-game:has(#gameArena.active)>.section-title{display:none}#panel-game.active:not(:has(#gameArena.active)){display:flex!important;flex-direction:column}#panel-game.active:not(:has(#gameArena.active)) #gameModes{flex:1}body:has(#panel-game.active #gameArena.active) .app>.header{display:none}#gameModes{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(96px,1fr);gap:8px;margin:0;min-height:0}.game-mode-card{padding:10px 8px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0}.game-mode-card:hover{transform:none}.game-icon{font-size:28px;line-height:1;margin:0}.game-name{font:800 16px/1.3 system-ui;margin:0}.game-desc{font-size:12px;line-height:1.4;color:#c7ccdf;max-width:100%;overflow-wrap:break-word}#gameArena.active,#gameArena.active:has(#tenseQuestionSlot),#gameArena.active.settlement-view{display:flex;flex-direction:column;height:100%;max-height:none;min-height:0;padding:10px;border-radius:18px;animation:none;overflow:hidden}.game-header{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;margin:0 0 10px;align-items:center}#gameTitle{grid-column:1;grid-row:1;font:800 17px/1.25 system-ui;overflow-wrap:anywhere}.game-score-live{grid-column:2;grid-row:1;font-size:15px;white-space:nowrap}.game-progress{grid-column:1/-1;grid-row:2;gap:8px;min-width:0;font-size:12px}.progress-bar-wrap{width:auto;flex:1;min-width:30px;height:8px}#gameProgressText{font-size:12px;line-height:1.3;white-space:normal;max-width:68%}#topGameBtns{grid-column:1/-1;grid-row:3;justify-content:flex-end}#topGameBtns .nav-btn{min-height:44px;padding:8px 14px!important;font-size:14px!important;line-height:1.2}#gameContent{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}#gameContent>.listen-game{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:4px 0;gap:8px}.listen-game .question-area{margin:0 0 12px}.listen-game .big-listen-btn{font-size:42px;min-width:52px;min-height:52px;align-self:center;animation:none}.listen-game .hint-text{font-size:14px;margin:6px 0}.choices-grid{gap:8px;min-width:0}.choice-btn{min-width:0;min-height:60px;padding:12px 7px;font:800 22px/1.35 system-ui;letter-spacing:0;overflow-wrap:anywhere;border-radius:14px;border-width:2px}.choice-meaning{font-size:13px;line-height:1.4}.listen-answer-reveal{min-height:32px;margin:4px 0;font-size:14px}#gameContent:has(>.mobile-fill-question){display:flex;flex-direction:column;justify-content:center}.mobile-fill-info{margin-bottom:10px!important;padding:6px 8px!important}.mobile-fill-question{margin-bottom:12px!important}.mobile-fill-question>div:first-child{font-size:44px!important;margin-bottom:6px!important}.mobile-fill-question>div:nth-child(2){font-size:clamp(24px,6vw,34px)!important;letter-spacing:3px!important;overflow-wrap:anywhere}.mobile-fill-question>div:nth-child(3){font-size:16px!important;color:#e3e7f3!important}#gameContent:has(>.mobile-fill-question) .choice-btn{font-size:24px!important;letter-spacing:2px!important}#matchGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}#matchGrid .word-chip{min-height:64px!important;padding:8px!important;font-size:18px!important;overflow-wrap:anywhere}#matchGrid .word-chip[data-type=meaning]{font-size:22px!important}.spell-game{min-height:100%;display:flex;flex-direction:column;justify-content:center;gap:8px}.spell-game .word-to-spell{margin:0}.spell-game .spell-emoji{font-size:48px;line-height:1.15;margin:0 0 4px;animation:none}.spell-game .spell-hint{font-size:16px;line-height:1.4;color:#e3e7f3}#hintArea{min-height:24px!important;margin-top:4px!important;font-size:13px;line-height:1.4}#hintArea .letter-slot{width:30px;height:34px;min-height:34px;font-size:20px;border-width:2px}#hintArea .letter-slots{gap:4px;margin:4px 0}.letter-slots{gap:5px;margin:4px 0;min-width:0}.letter-slot{width:38px;height:44px;font-size:24px;border-width:2px;border-radius:9px}.letter-buttons{gap:6px;max-width:100%;margin:2px 0}.letter-btn{width:44px;height:44px;font-size:23px;border-radius:10px;touch-action:manipulation}.spell-game .nav-btn{min-height:44px;padding:8px 12px;font-size:14px}#hintSteps{font-size:12px!important;color:#c7ccdf!important}.spell-game>div:last-child{display:none}.fill-level-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:10px 0!important;padding:0!important}.level-card{min-width:0;min-height:104px!important;padding:8px 5px!important;border-width:2px!important;border-radius:12px!important;overflow-wrap:break-word}.level-card>div{font-size:13px!important;line-height:1.35!important;margin:2px 0!important;letter-spacing:0!important}.level-card>div[style*="font-size:2.5rem"]{font-size:25px!important;line-height:1!important;margin:0 0 4px!important}.level-card>div[style*="font-weight:bold"]{font-size:14px!important}.level-card>div[style*="position:absolute"]{inset:5px 4px auto auto!important;width:22px;height:22px;border-radius:6px!important;background:#10182fd9!important;font-size:15px!important;pointer-events:none}.mobile-fill-select{padding:0!important}.mobile-fill-select>div:first-child{display:none}.mobile-fill-select>div:nth-child(2){font-size:20px!important}.mobile-fill-select>div:nth-child(4){margin:8px 0!important;gap:6px!important}.mobile-fill-select>div:nth-child(5){padding:0!important}.mobile-fill-select>div:nth-last-child(2){margin-top:8px!important;padding:8px!important;font-size:12px!important}.mobile-fill-select>div:last-child{margin-top:8px!important}.mobile-fill-select>div:last-child button{min-height:44px;padding:8px 16px!important;font-size:14px!important}.mobile-tense-select{padding:0!important;max-width:none!important}.mobile-tense-select>div:first-child>div:first-child{display:none}.mobile-tense-select>div:first-child>div:nth-child(2){font-size:20px!important}.mobile-tense-select>div:first-child>div:last-child{font-size:12px!important;color:#c7ccdf!important}.mobile-tense-select>div:nth-child(2){gap:12px!important;margin:8px 0!important}#tensePages{min-width:0}#tensePages>div{min-width:0;padding:0 2px!important}#tensePages>div>div[style*="display:grid"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}#tensePages .level-card{min-height:100px!important}#tenseArrowLeft,#tenseArrowRight{width:28px!important;min-height:44px;padding:0!important;touch-action:manipulation}#tensePageDots{margin-top:7px!important;min-height:14px}.mobile-tense-select>div:last-child{margin-top:8px!important;gap:8px!important}.mobile-tense-select>div:last-child button{min-height:44px;padding:8px 12px!important;font-size:13px!important;color:#d9d4f1!important}#gameArena:has(#tenseQuestionSlot) #gameContent{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;overflow:hidden}.boss-arena{padding:10px;margin:0;border-radius:16px;box-shadow:0 0 15px #bf5fff18}.boss-header{margin:0 0 6px;gap:6px}.boss-name{font-size:16px}.boss-hp-container{height:9px}.boss-face-wrap{padding:4px;line-height:1}.boss-emoji{font-size:44px;animation:none}.boss-dialog{font-size:12px;line-height:1.4;margin-top:4px;padding:6px 8px}#tenseQuestionSlot{overflow:auto;overscroll-behavior:contain}#tenseQuestionSlot .tense-slot-body{position:relative;inset:auto;transform:none;width:100%;margin:0;min-height:100%;display:flex;flex-direction:column;justify-content:center}#tenseQuestionSlot .tense-slot-body>div{margin-bottom:8px!important}#tenseQuestionSlot .tense-slot-body button{min-height:44px!important;font-size:16px!important;touch-action:manipulation}#tenseQuestionSlot .tl-next-btn,#tenseQuestionSlot .tl-btn-boost{font-size:14px!important}#tenseQuestionSlot .tl-pattern{font-size:13px;line-height:1.5}.chn-match-columns{gap:18px}.chn-match-card{min-height:44px;padding:8px 5px;font-size:14px}.word-display-area{gap:10px;margin:0 0 10px}.big-word-card{min-width:0;width:100%;padding:14px 10px;border-radius:20px}.word-image{font-size:40px;margin:0;animation:none}.word-text{font-size:36px;letter-spacing:2px;overflow-wrap:anywhere}.word-meaning{font-size:18px;margin-top:8px;letter-spacing:0}.phonics-breakdown{margin-top:8px;gap:5px}.phoneme{font-size:21px;padding:7px 9px;min-width:36px}.speak-btn{min-height:44px;padding:9px 20px;font-size:16px}.word-nav{gap:6px}.word-nav .nav-btn{min-height:44px;padding:8px 10px;font-size:13px}.word-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.word-chip{padding:10px 5px}.word-chip .chip-word{font-size:14px;overflow-wrap:anywhere}.word-chip .chip-meaning{font-size:12px}.booklist-grid{grid-template-columns:1fr}.booklist-card{padding:14px}.modal-box,.island-dialog-card{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px}.modal-actions{flex-wrap:wrap}.modal-btn,.island-dialog button{min-height:44px;touch-action:manipulation}.reference-scene{--phone-logo:80px;--phone-resources:46px;--phone-cards:238px;--phone-dock:58px;--phone-notice:26px;--phone-top: calc(6px + env(safe-area-inset-top,0px)) ;--phone-bottom: calc(6px + env(safe-area-inset-bottom,0px)) ;gap:5px;padding-left:8px;padding-right:8px}.reference-scene .ref-logo{width:calc(100% - 122px);max-width:190px;height:100%;overflow:hidden}.reference-scene .ref-logo img{position:absolute;left:0;top:50%;width:100%;height:auto;object-fit:contain;transform:translateY(-50%)}.reference-scene #refInventory,.reference-scene .ref-explore{width:50px;height:58px;font-size:25px;padding:4px;overflow:hidden;border-radius:14px}.reference-scene #refInventory small,.reference-scene .ref-explore small{font-size:11px;white-space:nowrap}.reference-scene .ref-resources small{font-size:11px}.reference-scene .ref-resources b{font-size:20px}.reference-scene:before{border-radius:16px;background-position:54% 50%}.reference-scene .coop-grounds{position:relative;inset:auto;grid-column:1/-1;grid-row:3;align-self:stretch;height:100%;width:100%}.reference-scene .coop-building,.reference-scene .coop-building.upgraded{left:35%;top:3%;width:42%;height:58%}.reference-scene #coopLabel{top:8%;font-size:12px;padding:4px;transform:rotate(3deg);line-height:1.3}.reference-scene .coop-cat-lane{width:auto;height:min(34cqw,calc(100% - 48px));aspect-ratio:1.08;margin:0 0 42px 5%;align-self:end}.reference-scene #islandCat{left:50%!important;bottom:0;width:100%;height:100%;transform:translate(-50%)}.reference-scene .ref-cat{background-size:290% auto;animation:none}.reference-scene #coopBubble{font-size:11px;line-height:1.4;min-width:0;max-width:130px;padding:4px 6px;bottom:100%;left:50%;translate:-50% 0}.reference-scene .ref-truck{width:auto;height:min(28cqw,calc(100% - 26px));aspect-ratio:1.5;align-self:end;margin:0 1% 22px 0}.reference-scene .ref-basket{width:44px;height:44px;align-self:center;justify-self:center;margin:0;transform:translate(24px,10px);z-index:3}.reference-scene .farm-chicken{width:28%;height:auto;aspect-ratio:1.5}.reference-scene .farm-actions{margin:0 0 6px 6px;justify-self:start}.reference-scene .farm-actions button{min-height:44px;font-size:12px;padding:6px 10px}.reference-scene .farm-actions button:disabled{display:none}.reference-scene .ref-board{padding:7px;border-width:3px;border-radius:13px;gap:3px}.reference-scene .ref-board h3{font-size:15px;margin:0;line-height:1.25}.reference-scene .ref-board p,.reference-scene .ref-board div{font-size:12px;line-height:1.35;margin:0}.reference-scene #refBuildCost{min-height:38px}.reference-scene #refBuildCost .build-cost-line{font-size:12px;line-height:1.35;margin:0}.reference-scene #refBuildCost .build-shortage{font-size:11px;line-height:1.35;margin:2px 0 0}.reference-scene .ref-build #coopFeed{min-height:58px;padding:5px;font-size:13px;line-height:1.35}.reference-scene .ref-build #coopFeed small,.reference-scene .ref-build #coopFeed span{font-size:11px;line-height:1.35}.reference-scene #coopFeed .feed-detail,.reference-scene #coopFeed span,.reference-scene #coopFeed progress{display:none}.reference-scene #coopFeed .feed-compact{display:block!important}.reference-scene #coopFeed:after{content:"\70b9\6b64\5b66\4e60\6dfb\7cae";display:block;font-size:11px;line-height:1.35;color:#74552b}.reference-scene .ref-board button{min-height:44px;font-size:15px;padding:6px 4px;margin:0;line-height:1.3}.reference-scene .ref-board button.ref-link{min-height:36px;font-size:12px;padding:4px}.reference-scene #refBonus{min-height:44px;font-size:13px}.reference-scene .ref-orders{border-top-width:8px}.reference-scene .ref-orders strong{font-size:15px;line-height:1.35}.reference-scene .order-needed br{display:none}.reference-scene #refEggCount{font-size:12px;margin-top:2px}.reference-scene #refOrderReward{font-size:15px;line-height:1.4}.reference-scene .ref-state-hint{font-size:11px;line-height:1.35}.reference-scene .coop-dock button{width:66px;height:66px;min-height:44px}.reference-scene #coopNotice{font-size:11px;line-height:13px;padding:0 8px;display:flex;align-items:center;justify-content:center;text-align:center}.reference-scene.quest-active .ref-truck,.reference-scene.quest-active .ref-basket,.reference-scene.quest-active .coop-grounds{visibility:hidden}.reference-scene .farm-quest:not([hidden]){position:relative;inset:auto;grid-column:1/-1;grid-row:3/7;align-self:stretch;margin:0;max-height:none;min-height:0;display:flex;flex-direction:column;padding:14px;border-radius:18px;overflow:auto}.reference-scene .farm-quest header{flex:none;font-size:14px;gap:8px;align-items:center}.reference-scene .farm-quest header button{min-width:44px;min-height:44px;font-size:24px;padding:4px}.reference-scene .farm-quest-content{flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px;min-height:0}.reference-scene .farm-quest-content .coop-quiz-word{font-size:36px;line-height:1.2;padding:4px;overflow-wrap:anywhere}.reference-scene .farm-quest-content>.island-primary{align-self:center;min-height:44px;font-size:16px;margin:0;padding:10px 20px}.reference-scene .farm-quest-content p{font-size:14px;line-height:1.5;margin:0}.reference-scene .farm-answer-crates{display:grid;grid-template-columns:1fr;gap:8px;margin:0}.reference-scene .farm-answer-crates .island-primary{width:100%;min-height:48px;font-size:18px;margin:0;white-space:normal}.reference-scene #coopQuizFeedback{font-size:14px;line-height:1.4;min-height:24px}.reference-scene .farm-quest-content input{max-width:100%;min-height:44px;font-size:18px}}@media(max-width:600px)and (orientation:portrait)and (max-height:620px){.header-logo{font-size:21px}.header-sub{display:none}.score-chip{min-height:28px}#gameModes{grid-auto-rows:minmax(86px,1fr)}.game-mode-card{padding:7px}.game-desc{font-size:11px}.game-header{margin-bottom:6px;gap:5px}.spell-game{gap:5px}.spell-game .spell-emoji{font-size:36px}.boss-emoji{font-size:32px}.boss-dialog{padding:4px 6px;font-size:11px}#tensePages .level-card{min-height:88px!important;padding:6px 4px!important}.reference-scene{--phone-logo:58px;--phone-resources:42px;--phone-cards:228px;--phone-dock:52px;--phone-notice:22px;gap:4px}.reference-scene .ref-logo{max-width:144px}.reference-scene .ref-build #coopFeed{min-height:48px;padding:3px}.reference-scene .ref-build #coopFeed span{display:none}.reference-scene .ref-board button.ref-link:not(#refBonus){min-height:30px}.reference-scene .ref-board{gap:2px;padding:6px}.reference-scene .coop-dock button{width:58px;height:58px}.reference-scene .farm-quest-content{gap:7px}.reference-scene .farm-quest-content .coop-quiz-word{font-size:30px}}@media(max-width:600px)and (orientation:portrait)and (max-height:700px){.reference-scene #coopBubble{display:none}}
