@media(max-width:600px)and (orientation:portrait){.app,body.has-roaming-companion:not(.coop-island-active) .app{padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(6px + env(safe-area-inset-bottom,0px));gap:8px}.app>.panel>.section-title{font-size:18px}}#tenseQuestionSlot{display:flex;align-items:center;justify-content:center;overflow:hidden}.tense-slot-body{position:relative;left:auto;top:auto;transform:none;max-height:100%;min-height:0}#tenseQuestionSlot:has(.tense-learn-card) .tense-slot-body{height:100%}#tenseQuestionSlot .tense-learn-card{display:flex;flex-direction:column;height:100%;max-height:100%}#tenseQuestionSlot .tl-card-body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}#tenseQuestionSlot .tl-card-footer{flex:none}#tenseQuestionSlot button,#tenseQuestionSlot input{min-height:44px!important}.tense-task-prompt{display:contents}.tense-quad-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-width:none!important}.tense-quad-form .tense-input-row{margin:0!important;gap:4px!important;min-width:0}.tense-input-row>span{width:60px!important;font-size:12px!important}.tense-input-row>input{min-width:0;min-height:44px;padding:4px!important;font-size:16px!important;letter-spacing:0!important}.tense-quad-form .tense-letter-bank{grid-column:1/-1;grid-row:3;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;margin:0!important;gap:4px!important;justify-content:flex-start!important;overscroll-behavior:contain}.tense-letter-bank>button{flex:0 0 44px;width:44px!important;height:44px!important}.tense-quad-form>div:last-child{grid-column:1/-1;grid-row:4;margin:0!important}@media(max-width:960px)and (max-height:500px)and (min-aspect-ratio:6/5)and (orientation:landscape),(max-height:499px)and (min-aspect-ratio:6/5)and (orientation:landscape){.app,body.has-roaming-companion:not(.coop-island-active) .app,body:not(.coop-island-active) .app:has(#gameArena.active #tenseQuestionSlot){display:flex;flex-direction:column;gap:2px;height:var(--app-viewport-height,100dvh);top:var(--app-viewport-top,0px);bottom:auto;padding:calc(2px + env(safe-area-inset-top,0px)) calc(6px + env(safe-area-inset-right,0px)) calc(2px + env(safe-area-inset-bottom,0px)) calc(6px + env(safe-area-inset-left,0px))}.app>.header,.app:has(#tenseQuestionSlot)>.header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;min-height:44px;padding:0}.header-logo,.app:has(#gameArena.active #tenseQuestionSlot) .header-logo{grid-column:1;grid-row:1;font:800 18px/1.1 system-ui;animation:none;white-space:nowrap}.header-sub,.app:has(#tenseQuestionSlot) .header-sub{display:none}.score-bar,.app:has(#tenseQuestionSlot) .score-bar{grid-column:2;grid-row:1;display:flex;justify-content:flex-end;flex-wrap:nowrap;gap:3px;width:auto;margin:0}.score-chip,.app:has(#tenseQuestionSlot) .score-chip{font-size:12px;padding:3px 5px;gap:3px;min-height:28px;border-radius:12px}.score-chip .icon,.score-chip .val,.app:has(#tenseQuestionSlot) .score-chip .icon,.app:has(#tenseQuestionSlot) .score-chip .val{font-size:14px}button.score-chip,.app:has(#tenseQuestionSlot) button.score-chip{min-width:44px;min-height:44px;padding:4px}button.score-chip .icon{font-size:20px}.score-chip.level-chip .level-badge,#soundToggleBtn>span:not(.icon),#autoSpeakToggleBtn>span:not(.icon){display:none}.app>.nav-tabs,.app:has(#tenseQuestionSlot)>.nav-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0}.nav-tabs .tab-btn,.app:has(#gameArena.active #tenseQuestionSlot) .tab-btn{min-height:44px;padding:4px 2px;font-size:0;border-radius:12px;transform:none;box-shadow:none}.tab-btn:before{display:none}.tab-btn:after{content:attr(data-mobile-label);font:700 14px/1.2 system-ui;white-space:nowrap}.app>.panel.active,#panel-game.active,.app:has(#tenseQuestionSlot)>#panel-game.active{min-height:0;gap:4px;overflow:hidden}.app>.panel>.section-title{font:800 18px/1.25 system-ui;margin:0}.app>.panel>.section-title>span{font-size:12px!important}#petCat{width:48px;height:48px;pointer-events:auto}#petCat .cat-art{width:48px;height:48px}#panel-game.active:not(:has(#gameArena.active)){display:flex!important}#panel-game:not(:has(#gameArena.active))>.section-title:after{content:"\5de6\53f3\6ed1\52a8\67e5\770b\66f4\591a";font:400 12px/1.3 system-ui;color:#c7ccdf;margin-left:auto}#gameModes{flex:1;display:grid;grid-auto-flow:column;grid-auto-columns:clamp(160px,26vw,210px);grid-template-columns:none;grid-template-rows:minmax(0,1fr);gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior:contain;padding:0 0 4px}.game-mode-card{min-width:0;min-height:0;padding:8px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;scroll-snap-align:start}.game-mode-card:hover{transform:none}.game-icon{font-size:30px;line-height:1;margin:0}.game-name{font-size:17px;line-height:1.2;margin:0}.game-desc{font-size:13px;line-height:1.3;margin:0;overflow-wrap:anywhere}#panel-learn.active{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(112px,.25fr);grid-template-rows:auto minmax(0,1fr);gap:4px 8px}#panel-learn>.section-title{grid-column:1/-1}#panel-learn .word-display-area{grid-column:1;grid-row:2;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(180px,.85fr);grid-template-rows:minmax(0,1fr) auto;gap:4px 6px;align-items:stretch}#mainWordCard{grid-column:1;grid-row:1/3;width:100%;min-width:0;min-height:0;padding:6px;display:flex;flex-direction:column;justify-content:center;border-radius:18px}#mainWordCard:hover{transform:none}#mainWordCard .word-image{position:absolute;top:4px;right:6px;font-size:22px;line-height:1;margin:0}#mainWordCard .word-text{font:800 clamp(28px,4.4vw,42px)/1.1 system-ui;letter-spacing:1px}#mainWordCard .word-meaning{font-size:16px;line-height:1.25;margin:4px 0 0;letter-spacing:0}#mainWordCard .phonics-breakdown{gap:3px;margin-top:4px}#mainWordCard .phoneme{min-width:44px;min-height:44px;padding:4px 6px;font-size:20px;line-height:1.5}.learn-audio-actions{grid-column:2;grid-row:1;align-self:center;display:flex!important;gap:4px!important;flex-wrap:nowrap!important}.learn-audio-actions .speak-btn{flex:1;min-width:0;min-height:44px;padding:6px 2px;font-size:14px;white-space:nowrap}.word-nav{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-self:end}.word-nav .nav-btn{min-height:44px;min-width:0;padding:4px;font-size:13px;white-space:nowrap}.word-counter{order:-1;grid-column:1/-1;font-size:13px;line-height:16px}#learnedBtn{grid-column:1/-1}.learn-word-list{grid-column:2;grid-row:2;min-height:0;overflow-y:auto;padding-right:2px}.learn-word-list>.section-title{font-size:12px;line-height:1.3;margin:0 0 4px!important;display:block}.learn-word-list .word-grid{grid-template-columns:minmax(0,1fr);gap:4px}.learn-word-list .word-chip{min-height:44px;padding:4px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 4px;align-items:center;border-radius:10px}.learn-word-list .chip-emoji{font-size:18px;margin:0;grid-row:1/3}.learn-word-list .chip-word{font-size:14px;line-height:1.2}.learn-word-list .chip-meaning{font-size:12px;line-height:1.2}#gameArena.active,#gameArena.active:has(#tenseQuestionSlot){padding:4px;border-radius:18px;gap:2px}.game-header,#gameArena:has(#tenseQuestionSlot) .game-header{display:grid;grid-template-columns:minmax(80px,1fr) minmax(60px,.8fr) auto auto;align-items:center;gap:6px;margin:0;padding:0;min-height:44px}#gameTitle,#gameArena:has(#tenseQuestionSlot) .game-title{font-size:14px;line-height:1.2;min-width:0}.game-progress{gap:4px;min-width:0}.progress-bar-wrap{width:auto;flex:1;min-width:16px;height:7px}#gameProgressText{font-size:12px;line-height:1.15;max-width:100%;white-space:normal}.game-score-live{font-size:14px;white-space:nowrap}#topGameBtns{justify-content:flex-end;gap:4px!important}#topGameBtns .nav-btn,#gameArena:has(#tenseQuestionSlot) #topGameBtns .nav-btn{min-height:44px;padding:6px 8px!important;font-size:13px!important;white-space:nowrap}#gameContent{min-height:0;min-width:0}.choice-btn{min-height:48px;min-width:0;padding:4px 6px;font:800 22px/1.15 system-ui;letter-spacing:0;overflow-wrap:anywhere;border-radius:12px}.choices-grid{gap:6px}.listen-game:not(.recognition-intro):not(.recognition-practice){height:100%;display:grid;grid-template-columns:minmax(140px,.7fr) minmax(0,1.7fr);grid-template-rows:minmax(0,1fr) auto;gap:4px 10px;align-items:center}.listen-game .question-area{grid-column:1;grid-row:1/3;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.question-area .big-listen-btn{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;font-size:38px;animation:none}.question-area .hint-text{font-size:14px;line-height:1.3;margin:0}.listen-game>.choices-grid{grid-column:2;grid-row:1}.listen-answer-reveal{min-height:20px;max-height:42px;margin:0;font-size:14px!important;line-height:1.25}.listen-game>.listen-answer-reveal{grid-column:2;grid-row:2}.listen-syllables{font-size:17px;letter-spacing:1px}#gameContent>.recognition-intro{height:100%;min-height:0;padding:0;display:flex;flex-direction:column;justify-content:center;gap:4px}.recognition-intro>div{margin:0!important}.recognition-core-word{font-size:min(var(--core-word-size),40px)!important;line-height:1.15!important;letter-spacing:1px;margin:0!important;overflow-wrap:anywhere}.recognition-core-meaning{font-size:20px!important;line-height:1.2}.recognition-repeat-progress,.recognition-auto-note{font-size:13px}#gameContent>.recognition-practice{height:100%;min-height:0;padding:0;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:4px 10px}.recognition-practice>div:first-child{grid-column:1;grid-row:1;font-size:13px;margin:0!important;gap:4px!important}.recognition-practice>.big-listen-btn{display:none}.recognition-practice>.recognition-core-word{grid-column:1;grid-row:2;align-self:center}.recognition-practice>div:nth-child(4){grid-column:1;grid-row:3;font-size:14px;margin:0!important}.recognition-practice>.choices-grid{grid-column:2;grid-row:1/4;margin:0;align-self:center}.recognition-practice>.listen-answer-reveal{grid-column:1/-1;grid-row:4}.spell-game{position:relative;height:100%;display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.7fr);grid-template-rows:auto minmax(0,1fr);gap:4px 10px;min-height:0}.spell-game .word-to-spell{position:absolute;top:0;left:0;width:28%;max-height:calc(100% - 58px);grid-column:1;grid-row:1;margin:0}.spell-game .spell-emoji{font-size:30px;line-height:1;margin:0;animation:none}.spell-game .spell-hint{font-size:14px;line-height:1.2}.spell-game #hintArea{min-height:0!important;max-height:74px;overflow-y:auto;overscroll-behavior:contain;margin-top:2px!important}.spell-game #hintArea .letter-slot{width:24px!important;min-width:24px!important;height:28px!important;font-size:20px!important}.spell-game #hintArea>div>div{padding:3px 5px!important;font-size:18px!important}.spell-game #hintArea>div{font-size:14px!important;line-height:1.2;letter-spacing:1px!important;padding:2px!important;margin:0!important;border-radius:8px!important}.word-to-spell:has(#hintArea:not(:empty)) .spell-emoji{display:none}.letter-slots{grid-column:2;grid-row:1;gap:4px;margin:0;flex-wrap:wrap}.letter-slot{width:36px;height:44px;font-size:24px;border-radius:8px}.letter-buttons{grid-column:2;grid-row:2;gap:4px;margin:0;align-content:center}.letter-btn{width:44px;height:44px;font-size:22px;border-radius:10px}.spell-game>div:nth-child(4){grid-column:1;grid-row:1/3;align-self:end;gap:4px!important;margin:0 0 14px!important;flex-wrap:nowrap!important}.spell-game .nav-btn{min-width:44px;min-height:44px;padding:4px;font-size:12px}#hintSteps{position:absolute;left:0;bottom:0;width:28%;font-size:12px!important;line-height:1.1;margin:0!important}.spell-game>div:last-child{display:none}#gameContent:has(#matchGrid){display:flex;flex-direction:column;gap:4px}#gameContent:has(#matchGrid)>div:first-child,#matchStatus{flex:none;font-size:14px;line-height:1.2;margin:0!important}#matchGrid{flex:1;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(44px,1fr));gap:6px!important}#matchGrid .word-chip{min-width:0;min-height:44px!important;padding:4px!important;font-size:20px!important;overflow-wrap:anywhere;line-height:1.2;border-radius:12px}#gameContent:has(.mobile-fill-question){display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);grid-template-rows:auto minmax(0,1fr);gap:4px 10px}.mobile-fill-info{grid-column:1/-1;padding:3px 6px!important;margin:0!important}.mobile-fill-question{grid-column:1;grid-row:2;margin:0!important;align-self:center}.mobile-fill-question>div:first-child{font-size:28px!important;margin:0!important}.mobile-fill-question .fill-core-word{font-size:min(var(--fill-word-size),34px)!important;letter-spacing:2px!important;line-height:1.2}.mobile-fill-question>div:nth-child(3){font-size:16px;margin-top:2px!important}.mobile-fill-question>div:last-child{font-size:13px!important;margin-top:2px!important}#gameContent:has(.mobile-fill-question)>.choices-grid{grid-column:2;grid-row:2;align-self:center}#gameArena:has(#tenseQuestionSlot) #gameContent{grid-template-columns:minmax(110px,.45fr) minmax(0,1.55fr);grid-template-rows:minmax(0,1fr);gap:8px}#gameArena:has(#tenseQuestionSlot) .boss-header{flex-wrap:wrap;gap:2px}#gameArena:has(#tenseQuestionSlot) .boss-name{font-size:12px}#tenseQuestionSlot{min-height:0;overflow:hidden}#tenseQuestionSlot .tense-slot-body{width:100%;max-height:100%;transform:none;padding:0}.tense-slot-body>div{margin-top:0!important;margin-bottom:4px!important}.tense-slot-body>div:first-child{font-size:12px}.tense-slot-body>div[style*="font-size:1."]{font-size:15px!important;line-height:1.2}.tense-slot-body>div[style*="max-width:480px"]{font-size:14px!important;padding:4px!important;line-height:1.2}.tense-slot-body>div>div[style*="border-radius:16px"]{padding:3px 8px!important}.tense-slot-body [style*="font-size:2"]{font-size:20px!important;line-height:1.1}.tense-answer-options{gap:4px!important;max-width:none!important}#tenseQuestionSlot .tense-slot-body:has(.tense-answer-options){display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr);align-items:center;gap:8px;height:100%}.tense-task-prompt{display:flex;flex-direction:column;justify-content:center;min-width:0;max-height:100%;gap:4px}.tense-task-prompt>div{margin:0!important;font-size:14px!important;line-height:1.2}.tense-task-prompt>div[style*="max-width:480px"]{padding:4px!important}.tense-task-prompt [style*="font-size:2"]{font-size:20px!important;line-height:1.1}.tense-task-prompt>div>div[style*="border-radius:16px"]{padding:3px 6px!important}#tenseQuestionSlot .tense-answer-options button{min-height:44px!important;padding:4px!important;font-size:20px!important;line-height:1.15}#tenseQuestionSlot .tl-next-btn,#tenseQuestionSlot .tl-btn-boost{min-height:44px;padding:4px;font-size:14px}#tenseQuestionSlot .tl-card-body{padding:4px 6px;overflow-y:auto}#tenseQuestionSlot .tl-card-footer{padding:4px 6px}#tenseQuestionSlot .tl-table{gap:4px;margin:0}#tenseQuestionSlot .tl-cell{padding:2px;gap:0}#tenseQuestionSlot .tl-cell-val{font-size:14px}#tenseQuestionSlot .tl-pattern{font-size:13px;line-height:1.25;margin:4px 0}#tenseQuestionSlot .tl-type-info{font-size:12px;margin:2px 0}#tenseQuestionSlot .tl-result{font-size:14px;line-height:1.2;margin:0 0 4px}#tenseQuestionSlot .tl-result-answer{font-size:16px}.tense-quad-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-width:none!important}.tense-quad-form .tense-input-row{margin:0!important;gap:4px!important;min-width:0}.tense-input-row>span{width:48px!important;font-size:11px!important}.tense-input-row>input{min-width:0;min-height:44px;padding:4px!important;font-size:16px!important;letter-spacing:0!important}.tense-quad-form .tense-letter-bank{grid-column:1;grid-row:3;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;margin:0!important;gap:4px!important;justify-content:flex-start!important;overscroll-behavior:contain}.tense-letter-bank>button{flex:0 0 44px;width:44px!important;height:44px!important}.tense-quad-form>div:last-child{grid-column:2;grid-row:3;display:grid!important;grid-template-columns:auto auto minmax(0,1fr);gap:4px!important;margin:0!important}.tense-quad-form>div:last-child>button{min-width:44px;padding:4px!important;font-size:13px!important}#quadHint{min-width:0;font-size:12px!important;max-height:44px;overflow:auto}#gameArena:has(.tense-quad-form) #gameContent{grid-template-columns:160px minmax(0,1fr)}#tenseQuestionSlot:has(.tense-quad-form){position:relative;overflow:visible}.tense-slot-body:has(.tense-quad-form){position:static;display:flex;align-items:center;height:100%}#tenseQuestionSlot .tense-quad-form{width:100%;margin:0!important}#tenseQuestionSlot .tense-quad-prompt{position:absolute;right:calc(100% + 8px);top:94px;width:160px;margin:0!important}#tenseQuestionSlot .tense-quad-prompt>div{padding:2px!important;border:0!important;background:none!important}#tenseQuestionSlot .tense-quad-prompt>div>div{font-size:14px!important;line-height:1.2}#tenseQuestionSlot .tense-quad-instruction{position:absolute;right:calc(100% + 8px);top:132px;width:160px;font-size:12px!important;line-height:1.2;margin:0!important}#gameContent:has(.tense-quad-form) .boss-arena{padding:4px;justify-content:flex-start}#gameContent:has(.tense-quad-form) .boss-face-wrap{margin:2px 0;height:28px}#gameContent:has(.tense-quad-form) .boss-emoji{font-size:28px;line-height:1}#gameContent:has(.tense-quad-form) .boss-dialog{font-size:11px;line-height:1.2;margin:2px 0;padding:2px}.reference-scene .ref-resources{--farm-resource-icon:24px;gap:4px;right:max(7%,calc(env(safe-area-inset-right,0px) + 64px));top:2%}.reference-scene .ref-resources>span,.reference-scene .ref-resources #refGoldTarget{padding:3px 5px;column-gap:4px}.reference-scene .ref-resources small{font-size:12px}.reference-scene .ref-resources b{font-size:16px}.reference-scene .ref-build{left:max(4%,env(safe-area-inset-left,0px));width:25%;padding:4px;top:calc(23% - env(safe-area-inset-bottom,0px))}.reference-scene .ref-orders{width:27%;padding:4px;top:14%}.reference-scene .ref-build h3,.reference-scene .ref-orders h3{font-size:16px;line-height:1.1;margin:0 0 2px}.reference-scene .ref-build #refBuildCost .build-cost-line,.reference-scene .ref-build #refBuildCost .build-shortage,.reference-scene #refBuildHint{font-size:12px;line-height:1.15}.reference-scene .ref-build #coopFeed{font-size:14px;line-height:1.15;padding:3px;min-height:44px;margin-top:3px}.reference-scene .ref-build #refBuildAction{font-size:14px;padding:3px;min-height:44px;margin-top:3px}.reference-scene .ref-orders strong,.reference-scene .ref-orders p,.reference-scene .ref-orders div{font-size:14px;line-height:1.15}.reference-scene .ref-orders #refDeliver,.reference-scene .ref-orders #refBonus{min-height:44px;font-size:14px;padding:3px}.reference-scene .ref-orders .ref-state-hint{font-size:12px}.reference-scene #refInventory{right:max(2%,env(safe-area-inset-right,0px));min-width:44px;min-height:44px;font-size:22px;padding:3px}.reference-scene #refInventory small,.reference-scene .ref-explore small{font-size:12px}.reference-scene .farm-actions button{min-height:44px;font-size:14px;padding:3px 6px}.reference-scene .coop-dock button{min-width:44px;min-height:44px}.reference-scene .coop-dock{left:max(2%,env(safe-area-inset-left,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 2px)}.reference-scene .coop-dock button{width:clamp(48px,14dvh,56px);height:clamp(48px,14dvh,56px);padding:0}.reference-scene .coop-dock img{width:100%;height:100%;object-fit:contain}.reference-scene .ref-explore{right:max(2%,env(safe-area-inset-right,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 2px);width:60px;min-height:44px;height:44px;font-size:20px;line-height:1;padding:2px}body.coop-island-active .app{padding:0;gap:0}}
