/* Phone layouts are an app shell, not a scaled desktop page. */
.mobile-check,.settings-mobile-back{display:none}
.map-rule-details>summary{display:none}.map-rule-details:not([open])>.map-rules{display:flex}
.sheet-handle{display:none}
@media(min-width:761px) and (max-width:1024px){
 :root{--tab-height:72px;--safe-bottom:env(safe-area-inset-bottom,0px)}
 body{padding-bottom:calc(var(--tab-height) + var(--safe-bottom))}body.playing{padding-bottom:0}
 .header{height:76px}.header .nav{display:none}.header-inner{gap:16px}.header-right{margin-left:auto}
 .mobile-nav{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(var(--tab-height) + var(--safe-bottom));padding:5px max(30px,calc((100vw - 720px)/2)) calc(5px + var(--safe-bottom));gap:12px;background:#fffef9;border-top:1px solid var(--line)}
 .mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:14px;font-size:12px;color:var(--muted)}
 .mobile-nav .icon{width:23px;height:23px}.mobile-nav .active{background:#eaf2db;color:#244d38}
 .footer{margin-bottom:0}.home-main .hero-game-top{gap:10px}.hero-game-tools{gap:4px}
 .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.course-redesign .course-cover{height:210px}
 .settings-page .settings-layout{gap:24px;grid-template-columns:170px minmax(0,1fr)}.settings-page .settings-panel{padding:24px}
 .progress-layout{grid-template-columns:minmax(0,1fr) 240px}.rankings-page .rank-table th,.rankings-page .rank-table td{padding-inline:16px}
}
@media(max-width:760px){
 :root{--tab-height:68px;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);--app-height:100dvh}
 html{scroll-padding-top:80px;scroll-padding-bottom:calc(var(--tab-height) + var(--safe-bottom) + 20px);-webkit-text-size-adjust:100%}
 body{padding-bottom:calc(var(--tab-height) + var(--safe-bottom));overflow-x:clip}
 body.playing{padding-bottom:0}
 #app{min-height:100dvh}#app>*{min-width:0}
 .container{padding-inline:18px;width:100%;max-width:100%}
 .header{height:calc(64px + var(--safe-top));padding-top:var(--safe-top);position:sticky;top:0;z-index:20;background:#f8f9f3f5}
 .header-inner{padding-inline:16px;gap:8px}.header .logo{font-size:21px;gap:7px;letter-spacing:-1px}
 .header .melon-mark{width:32px;height:32px}.header .nav,.header .language-btn{display:none}
 .header-right{gap:0;min-width:0}.header-right .header-login{font-size:13px;padding:10px 9px}.header-right .header-signup{padding:10px 12px;min-height:44px;font-size:13px}
 .mobile-nav{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(var(--tab-height) + var(--safe-bottom));padding:6px max(6px,env(safe-area-inset-right)) calc(6px + var(--safe-bottom)) max(6px,env(safe-area-inset-left));gap:3px;border-top:1px solid #dfe5d7;background:#fffef9;box-shadow:0 -4px 18px #244c3605}
 .mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;min-height:52px;font-size:10px;font-weight:550;color:#6d7863;line-height:1.2;padding:4px 0}
 .mobile-nav .icon{height:22px;width:22px;stroke-width:1.7}.mobile-nav a.active{background:#eaf2db;color:#244d38}.mobile-nav a:active{background:#eef3e6}
 .footer{padding:22px 0;margin-top:0}.footer .logo,.footer-inner>span{display:none}.footer-inner{display:block}.footer-links{margin:0;justify-content:center;gap:4px;flex-wrap:wrap}.footer-links a{padding:12px 10px;font-size:12px;min-height:44px}
 .page{padding-top:22px;padding-bottom:24px;min-height:0}.page h1,.settings-page .page-intro h1,.catalogue-heading h1{font-size:32px;letter-spacing:-1px;line-height:1.15}
 .page-intro{margin-bottom:22px}.lobby-back,.breadcrumb{min-height:44px;display:inline-flex;align-items:center;margin-bottom:12px;font-size:14px}
 .btn,.btn.small,.icon-btn,.select-trigger{min-height:44px}.icon-btn{width:44px;height:44px;flex-shrink:0}
 input:not([type=range]),textarea{font-size:16px!important}button,a{-webkit-user-drag:none}
 button:not(.guide-key):active,.game-card-start:active,.course-open:active{transform:scale(.98)}
 .home-main{padding-inline:18px}.home-main .play-hero{padding:16px 0 0;min-height:0;height:auto}
 .home-main .hero-game{min-width:0;min-height:0;height:auto}.home-main .hero-game-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
 .hero-mode{grid-column:1;gap:4px;min-width:0}.hero-mode>.icon{display:none}.hero-mode .select-trigger{font-size:14px;min-height:44px;max-width:150px;padding:8px 4px}.hero-mode .tag{font-size:11px;flex-shrink:0}
 .home-main .hero-live-stats{grid-column:1;grid-row:2;gap:16px;margin:0;font-size:11px}.home-main .hero-live-stats b{font-size:14px}
 .hero-game-top>.helper-picker{grid-column:2;grid-row:2;max-width:135px}.hero-game-top>.helper-picker .select-trigger{max-width:110px;font-size:12px;min-height:44px;overflow:hidden}.select-value{overflow:hidden;text-overflow:ellipsis}
 .home-main .hero-game-tools{grid-column:2;grid-row:1;gap:0;margin:0}.hero-game-tools .guide-toggle{display:none}.hero-game-tools .hero-voice{width:44px;height:44px;min-height:44px;padding:10px;border:0;background:none}.hero-game-tools .hero-voice>.icon{display:block;width:20px;height:20px}.hero-voice .voice-label,.hero-voice>span{display:none}.hero-game-tools .hero-voice[aria-checked=false]{opacity:.45}
 .hero-progress{margin-top:8px;gap:5px}.hero-progress>span{font-size:11px;white-space:nowrap}
 .home-main .hero-game-stage{position:relative;height:auto;min-height:340px;padding:32px 0 22px;display:flex;justify-content:center;gap:0}
 .home-main .hero-game-stage .helper-subtitle{margin:0 0 20px!important;font-size:19px;line-height:1.4}
 .home-main .hero-game-stage .target-text{font-size:30px;line-height:1.4;margin:0 0 24px!important;width:100%;overflow-wrap:anywhere}
 .typing-box{position:relative;min-width:0;width:100%;margin:0!important}.typing-box.word-entry{padding-right:0!important}
 .word-slots,.game-shell .word-slots{gap:10px 12px;font-size:27px;min-height:78px;padding:8px 0;max-width:100%}.word-slot{min-width:min(calc(var(--letters)*.54em + 6px),100%);max-width:100%;overflow-wrap:anywhere;white-space:normal}
 .typing-box:not(.word-entry) textarea{font-size:24px!important;min-height:88px;height:88px;padding:15px 18px;border-radius:18px;line-height:1.4}
 .typing-box .enter-icon{display:none}.hero-game-bottom{min-height:0}.game-instruction:empty{display:none}
 .mobile-check{display:flex;align-items:center;justify-content:center;align-self:flex-end;width:48px;height:44px;min-height:44px;border-radius:13px;background:#e7f0d9;color:#244d38;margin:12px 0 0;border:1px solid #d5e2c4}.mobile-check[hidden]{display:none}
 .keyboard-guide{display:none!important}.phone-guide .keyboard-guide:not([hidden]){display:block!important;max-width:100%;margin-top:20px!important}.phone-guide .guide-key{min-height:32px}
 .games-redesign{padding-top:24px}.games-redesign .section-head{margin-bottom:15px}.games-redesign .section-head h2{font-size:26px}
 .games-redesign .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.games-redesign .game-card{padding:6px;border-radius:20px;min-width:0;overflow:hidden}
 .games-redesign .game-visual{height:120px;border-radius:14px}.games-redesign .game-visual>div{scale:.65;flex-shrink:0}.games-redesign .game-card-content{padding:13px 7px 7px}.games-redesign .game-card h3{font-size:18px;letter-spacing:-.5px;line-height:1.2}.games-redesign .game-card p{display:none}.games-redesign .card-bottom{margin-top:9px;gap:3px}.game-level-badge{font-size:11px}.game-card-start{font-size:12px;gap:3px;padding:0 8px;min-height:44px}.game-card-start .icon{width:14px}
 .game-header{height:calc(60px + var(--safe-top));padding:var(--safe-top) 10px 0;gap:6px;position:sticky;top:0;z-index:20;background:#f8f9f3f5}
 .game-header>.logo{display:none}.game-header-title{position:static;transform:none;text-align:left;flex:1;min-width:0;font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-header-title small{font-size:11px;margin-top:3px}.game-tools{gap:0;margin:0}.game-tools .icon-btn{width:44px;height:44px}.game-tools .guide-toggle,.game-tools .word-voice-tool{display:none}
 .game-shell{max-width:none;width:100%;height:auto!important;min-height:calc(var(--app-height) - 60px - var(--safe-top));padding:12px 18px calc(12px + var(--safe-bottom));display:flex;flex-direction:column}
 .game-shell .game-topline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.game-shell .game-mode-label{grid-column:1;grid-row:1;gap:5px;min-width:0}.game-shell .game-mode-select .select-trigger{max-width:130px;font-size:13px;padding:6px 2px;min-height:44px}.game-mode-label .tag{font-size:10px;padding:4px 6px}.curriculum-mode{font-size:13px}
 .game-shell .game-stats{grid-column:2;grid-row:1;gap:8px;align-self:center;font-size:11px}.game-shell .game-stats span{font-size:10px!important;gap:1px!important}.game-shell .game-stats b{font-size:14px!important}.game-shell .game-stats span:last-child:not(.challenge-time){display:none}
 .game-shell .player-options{display:none!important;grid-column:1/-1;grid-row:2;display:flex;width:100%;justify-content:space-between;margin:0}.game-shell .helper-picker{flex:none;width:auto;max-width:230px}.game-shell .helper-picker .select-trigger{min-height:44px;max-width:205px;font-size:13px}.metrics-popover summary{min-height:44px;display:flex;align-items:center;font-size:13px}.metrics-popover>div{top:44px}
 .game-shell.mode-translate .player-options{display:flex!important}.lesson-progress{margin:3px 0 0;flex-shrink:0}.game-shell .game-stage,.game-shell:not(.reviewing).mode-copy .game-stage{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:270px;padding:26px 0 18px;gap:0;overflow:visible}
 .game-shell .game-stage .target-text,.story-play-space .target-text{font-size:30px!important;line-height:1.4;margin:0 0 24px!important;overflow-wrap:anywhere;max-width:100%}
 .game-shell .helper-subtitle{margin:0 0 20px!important;font-size:19px;line-height:1.5}.game-shell .translation-prompt{font-size:27px}
 .game-shell .game-actions,.game-shell:not(.reviewing).mode-copy .game-actions{height:auto;min-height:48px;padding:0;gap:8px;justify-content:space-around;flex-shrink:0;border-top:1px solid #e4e9dc}.game-actions button{min-height:48px;font-size:13px!important;padding:8px 4px}
 .game-shell.reviewing .game-stage{padding:20px 0}.learning-review{max-width:100%;padding:0!important}.phrase-review{padding:10px 0 12px!important;min-width:0!important;max-width:100%}.review-word strong{font-size:40px!important}.review-tokens{gap:16px;flex-wrap:wrap}.word-ipa{font-size:16px}.word-role{font-size:14px}.review-sentence{font-size:18px;line-height:1.5}.review-explanation{font-size:15px!important;line-height:1.5}.review-tools{gap:4px;grid-template-columns:1fr 1fr}.review-tools button{font-size:13px!important;min-height:44px}.review-next{width:100%;margin-top:18px}.review-next .btn{width:100%;min-height:52px;font-size:16px;border-radius:16px}.review-countdown{width:100%}
 .reading-prompt{font-size:29px;line-height:1.5;letter-spacing:-.5px}.reading-word{min-height:44px}.meaning-check{margin-top:22px}.meaning-check h2{font-size:16px;line-height:1.4}.meaning-options{gap:10px}.meaning-option{padding:15px 17px;min-height:56px;font-size:16px;border-radius:16px}.meaning-check p:empty{display:none}
 .listening-stage{max-width:100%;width:100%;margin:0 0 18px}.speech-player{max-width:100%;gap:12px;padding:15px;border-radius:20px}.speech-player .speech-play{width:56px;height:56px}.listen-stages{width:100%;gap:2px;padding:4px;border-radius:14px;margin-bottom:14px}.listen-stages button{padding:9px 6px;flex:1;min-height:44px;font-size:12px}.speaking-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.speaking-controls .btn{padding:13px 8px;font-size:14px;min-height:56px}.record-status{font-size:14px;line-height:1.5}.record-privacy{font-size:12px;margin-top:14px}.self-review .btn{min-height:48px}.lesson-video{border-radius:18px;margin:0;width:100%}.video-caption{font-size:18px;bottom:10px;left:10px;right:10px;padding:8px}.video-controls{gap:4px 12px;width:100%;justify-content:space-between;margin-top:8px}.video-controls button{font-size:13px;min-height:44px}.video-controls #video-time{font-size:12px}.video-play .icon{width:56px;height:56px;padding:17px}
 .story-game .game-stage{display:flex!important;gap:12px!important;padding:18px 0!important;justify-content:flex-start!important}.story-game .game-stage>.story-scene-v2{display:block;grid-template-columns:none;width:100%;height:auto!important;min-height:0!important;flex:none;margin:0!important;border-radius:20px}.story-scene-v2 .story-page-art{width:100%;height:auto!important;aspect-ratio:16/8;min-height:0!important}.story-game .story-scene-v2 figcaption{position:static;display:block;padding:14px;background:#fffaf0}.scene-page-label{font-size:11px!important}.scene-caption-heading>strong{font-size:16px!important;line-height:1.4}.scene-caption-heading>.icon-btn{width:44px;height:44px}.story-scene-v2 figcaption>p{font-size:14px;line-height:1.5}.story-play-space{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;padding:10px 0}.story-play-space .learning-review{width:100%}.story-game .learning-review .review-explanation{font-size:15px}.story-game .game-stage .helper-subtitle{margin:0 0 14px!important}
 .catalogue-heading{display:block;margin-bottom:20px}.catalogue-heading>span{margin-top:15px}.catalogue-heading p{font-size:15px;line-height:1.5}.catalogue-controls{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding-bottom:16px;margin-bottom:20px}.course-filters{flex-wrap:nowrap;overflow-x:auto;gap:3px;margin-inline:-18px;padding-inline:18px;scrollbar-width:none}.category-tab{white-space:nowrap;flex-shrink:0;font-size:13px;padding:10px 12px}.catalogue-controls .search-wrap{width:100%}.catalogue-grid{grid-template-columns:1fr;gap:20px}.course-redesign .course-cover{height:200px}.course-redesign .course-card-body{padding:20px}.course-redesign h3{font-size:25px}.course-redesign .course-card-body>p{min-height:0;font-size:15px}.course-open{min-height:60px}.course-card-tags{font-size:11px}
 .storybook-opening{display:flex;flex-direction:column;gap:22px;margin-top:0}.storybook-cover{width:100%;height:auto;aspect-ratio:16/11;min-height:0}.storybook-blurb h1{font-size:32px}.storybook-blurb p{font-size:16px;line-height:1.6}.book-start{width:100%;min-height:52px}.chapter-grid{grid-template-columns:1fr;gap:20px}.chapter-card{display:flex;flex-direction:column}.chapter-art{width:100%;height:auto;aspect-ratio:16/9}.chapter-copy{padding:20px}.chapter-copy h3{font-size:23px}.chapter-copy p{font-size:15px;line-height:1.6}.chapter-copy .btn{width:100%;min-height:50px}.chapter-copy summary{min-height:44px;display:flex;align-items:center}.chapter-mode-sequence span{font-size:13px}.book-chapters{margin-top:30px}.story-ending{grid-template-columns:1fr;gap:0;border-radius:20px}.ending-art{width:100%;height:auto;aspect-ratio:16/10}.story-ending-copy{padding:24px}.story-ending-copy h2{font-size:28px}.story-ending-actions{display:grid;gap:10px}.story-ending-actions .btn{width:100%;min-height:50px}
 .level-map-page{padding-bottom:205px}.map-heading{align-items:flex-start;margin-bottom:18px}.map-heading>div{gap:10px}.map-heading h1{font-size:26px}.map-heading>span{font-size:11px}.map-mode-icon{width:38px;height:38px}.map-top{margin-bottom:6px;gap:8px}.map-top .helper-picker{max-width:190px}.map-layout{gap:15px}.map-worlds{display:flex;width:100%}.map-world{order:0!important;padding:18px 8px 16px}.map-world-heading h2{font-size:18px}.map-world-heading>span{font-size:12px}.map-stop-title{font-size:11px}.map-level{width:48px;height:48px}.map-stars{font-size:13px}.map-trail{height:188px}.map-launch{position:fixed;z-index:25;inset:auto 12px calc(var(--tab-height) + var(--safe-bottom) + 10px);width:auto;display:grid;grid-template-columns:48px minmax(0,1fr) auto;column-gap:12px;border-radius:22px;padding:14px 16px;text-align:left;box-shadow:0 6px 25px #244c3615}.map-mascot{width:48px;height:48px;grid-column:1;grid-row:1/3;margin:0}.map-level-label{grid-column:2;grid-row:1;font-size:11px;margin:0}.map-launch h2{grid-column:2;grid-row:2;font-size:19px;margin:2px 0 0}.map-launch>p:not(.map-prerequisite),.map-back{display:none}.map-launch>.btn{grid-column:1/-1;margin-top:10px;min-height:48px;font-size:14px;border-radius:14px}.map-launch>.btn.text{display:none}.map-prerequisite{grid-column:1/-1!important;margin:10px 0 0!important;font-size:13px!important;padding:8px}.map-rule-details{grid-column:3;grid-row:1/3;align-self:center}.map-rule-details>summary{display:flex;align-items:center;font-size:11px;width:44px;min-height:44px;list-style:none;text-align:center;color:#68785b;cursor:pointer}.map-rule-details:not([open])>.map-rules{display:none}.map-rule-details[open]>.map-rules{display:flex;position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #dfe6d5;border-radius:18px;padding:18px;margin:0;box-shadow:0 5px 20px #244c3615;gap:12px}.map-rules li{font-size:14px}.map-result{align-items:center;padding:14px;margin-bottom:18px}.map-result .btn{min-height:44px}
 .rankings-controls{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:18px;padding-bottom:16px}.rankings-context{justify-content:space-between;gap:10px}.rankings-context .select-trigger{font-size:14px}.rank-periods{width:100%}.rank-periods button{flex:1;min-height:44px;font-size:13px}.podium{gap:8px;margin-bottom:18px}.podium-card{padding:15px 10px;border-radius:18px;min-width:0}.podium-avatar{width:38px;height:38px;border-radius:12px;margin-bottom:12px;font-size:18px}.podium-rank{top:12px;right:8px;width:23px;height:23px;font-size:12px}.podium-rank .icon{width:14px}.podium-card h2{font-size:14px;letter-spacing:-.3px;overflow-wrap:anywhere}.podium-card>p{font-size:10px}.podium-score{margin-top:12px;padding-top:10px;flex-direction:column;align-items:flex-start;gap:3px}.podium-score strong{font-size:22px}.podium-score strong small{font-size:13px}.podium-score>span{font-size:12px}.rank-table{font-size:13px}.rank-table th,.rank-table td{padding:13px 9px}.rank-n{width:30px;font-size:14px}.rank-player{gap:7px}.rank-avatar{width:30px;height:30px;border-radius:10px;font-size:14px}.rank-player small{font-size:10px}.rank-correct small{display:none}.rankings-bottom{display:flex;flex-direction:column;align-items:stretch;gap:12px}.rankings-bottom .btn{width:100%;min-height:50px}
 .settings-page .settings-layout{display:block}.settings-page .settings-nav{display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;margin:0;padding:4px 14px}.settings-page .settings-nav button{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 0!important;border-radius:0!important;font-size:16px!important;background:none!important;text-align:left;border-bottom:1px solid var(--line)}.settings-page .settings-nav button:last-child{border:0}.settings-page .settings-nav button:after{content:'›';margin-left:auto;font-size:25px;color:#829477}.settings-nav .icon{width:22px;height:22px}.settings-page .settings-panel{display:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.settings-detail .settings-page .settings-nav{display:none}.settings-detail .settings-panel{display:block}.settings-detail .settings-page .page-intro{display:none}.settings-mobile-back{display:none;min-height:44px;align-items:center;gap:6px;font-size:15px;margin-bottom:15px}.settings-detail .settings-mobile-back{display:flex}.settings-panel>h2{font-size:28px;margin-bottom:22px}.settings-form{max-width:none}.settings-row{padding-block:18px;gap:18px}.settings-row strong{font-size:15px}.settings-row p{font-size:13px;line-height:1.5}.switch{flex-shrink:0;min-width:44px}.range{height:44px;min-width:80px}.audio-channel{gap:5px}.audio-channel .range{width:100px}.settings-form .voice-choice{background:#fff;border-radius:18px;padding:18px}.voice-choice .btn{min-height:44px}.settings-actions .btn{width:100%;min-height:50px}.settings-form .reading-controls .select-trigger{min-height:44px;font-size:14px}.settings-form .reading-controls{gap:8px}
 .progress-layout{display:flex;flex-direction:column;gap:22px}.progress-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}.metric-card{padding:15px 12px;min-width:0}.metric-card .eyebrow{font-size:10px;letter-spacing:.2px;line-height:1.4;display:block;min-height:28px}.metric-card .metric-value{font-size:27px;margin-top:9px}.metric-card .subtext{display:none}.history-card{padding:20px 16px}.history-item{padding:16px 0;gap:9px}.history-item>div:nth-child(2){min-width:0;flex:1}.history-item strong{font-size:14px;display:block}.history-item small{font-size:11px;overflow-wrap:anywhere}.history-item .history-score{font-size:17px;flex-shrink:0}.history-item .mode-emblem{display:none}.history-item .icon-btn{width:44px;height:44px}.board-aside{width:100%;padding:22px}.page-title-row{align-items:start;gap:12px}.page-title-row>.btn{display:none}.progress-aside{width:100%}.result-redesign{padding-top:22px}.completion-panel{display:flex;flex-direction:column-reverse;padding:24px;gap:10px;border-radius:22px}.win-art{height:140px;width:100%}.win-orbit{width:135px;height:135px}.win-mascot{width:145px!important;height:145px!important}.completion-copy{width:100%}.completion-panel h2{font-size:31px}.win-metrics{margin:22px 0;gap:18px}.win-metrics>div{padding:0 18px 0 0;margin:0}.win-metrics strong{font-size:27px}.win-actions{display:grid;gap:10px;margin-top:18px}.win-actions .btn{width:100%;min-height:50px}.result-run-meta{gap:12px;font-size:13px;margin:22px 0}.result-redesign .review-row{gap:10px;padding:16px 0}.result-redesign .review-text{font-size:15px}.review-row .tag{font-size:10px!important;white-space:normal;text-align:center}.result-save-row{flex-direction:column;align-items:stretch;gap:14px}.result-save-row .btn{width:100%}.learning-review .review-advance{width:100%;min-height:52px;border-radius:16px}
 dialog[open]{position:fixed;inset:auto 0 0;margin:0!important;width:100%!important;max-width:100%!important;max-height:calc(var(--app-height) - 12px);border-radius:26px 26px 0 0!important;border:0;padding:0 0 var(--safe-bottom);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -10px 40px #18352124;animation:sheet-in 220ms cubic-bezier(.22,1,.36,1)}
 dialog::backdrop{background:#27382666;backdrop-filter:blur(3px)}.sheet-handle{display:block;position:relative;width:100%;height:36px;padding:0;touch-action:none;cursor:grab}.sheet-handle:after{content:'';display:block;width:36px;height:4px;background:#cdd6c4;border-radius:4px;margin:9px auto 0}.modal-close{width:44px;height:44px;top:20px;right:13px;background:#f0f3ea;z-index:2}.modal-content,.pause-panel,.membership-gate,.game-settings-content{padding:16px 22px 24px!important}.modal-content h2,.pause-panel h2,.game-settings-content>h2{font-size:27px}.modal-content p{font-size:15px}.game-settings-tabs{position:sticky;top:0;background:#fff;margin:20px 0 8px;padding:4px 0 10px;z-index:1}.game-settings-tabs button{min-height:44px;font-size:14px}.game-settings-footer{position:sticky;bottom:calc(-1 * var(--safe-bottom));background:#fff;padding:14px 0 calc(14px + var(--safe-bottom));border-top:1px solid var(--line);margin-top:10px}.game-settings-footer .btn{min-height:48px}.game-settings-body .settings-row{padding-block:16px;gap:12px}.game-settings-body .settings-row strong{font-size:15px}.game-settings-body .audio-channel .range{width:85px}.game-settings-body .voice-choice{padding:15px}.game-settings-body .reading-controls .select-trigger{min-height:44px;font-size:14px}.game-settings-body .setup-field{margin-block:20px}
 .auth-dialog .auth-side{display:none}.auth-dialog .modal-layout{display:block}.auth-dialog .auth-main{padding:17px 24px 26px}.auth-main h2{font-size:29px}.auth-main>p{font-size:15px}.auth-main .btn{min-height:50px;font-size:15px}.auth-form{margin-top:16px}.auth-preview{font-size:12px;line-height:1.5}.auth-switch{min-height:44px}.membership-page{padding-inline:0}.membership-heading{text-align:left;margin:10px 0 25px}.membership-heading h1{font-size:33px}.membership-heading p{font-size:16px}.membership-option{padding:20px;min-height:145px;border-radius:20px}.membership-option.selected{padding:19px}.membership-option>strong{font-size:34px}.membership-inclusions{font-size:13px;gap:14px}.membership-checkout{margin-bottom:0}.membership-checkout .btn{min-height:54px;border-radius:16px}.membership-gate>.btn{min-height:50px}.gate-price strong{font-size:32px}
 .select-open body{overflow:hidden}.select-menu{inset:auto 8px calc(8px + var(--safe-bottom))!important;left:8px!important;top:auto!important;width:calc(100% - 16px)!important;max-height:60dvh!important;border-radius:24px!important;padding:22px 10px 10px;animation:sheet-in 180ms cubic-bezier(.22,1,.36,1);box-shadow:0 0 0 100vmax #27382655,0 -5px 25px #244c3615}.select-menu:before{content:'';display:block;position:absolute;top:10px;left:calc(50% - 18px);height:4px;width:36px;background:#cbd5c3;border-radius:4px}.select-option{min-height:52px;font-size:16px;padding:13px 15px}.select-menu.keyboard-open{animation:none}.select-menu::backdrop{background:#27382655}
 #toast{bottom:calc(var(--tab-height) + var(--safe-bottom) + 14px);left:18px;right:18px;width:auto;max-width:none;transform:translateY(8px);font-size:14px;padding:13px 18px;border-radius:16px}.playing #toast{bottom:calc(var(--safe-bottom) + 14px)}#toast.visible{transform:translateY(0)}
 .phone-keyboard body{padding-bottom:0}.phone-keyboard .mobile-nav{display:none}.phone-keyboard .header{position:static}.phone-keyboard .home-main .hero-game-stage{min-height:200px;padding:20px 0 10px}.phone-keyboard .game-shell{min-height:calc(var(--app-height) - 60px);padding-top:8px;padding-bottom:8px}.phone-keyboard .game-shell .game-stage{min-height:150px;padding:15px 0 8px}.phone-keyboard .game-stage .target-text,.phone-keyboard .hero-game-stage .target-text{font-size:25px!important;margin-bottom:14px!important}.phone-keyboard .word-slots{min-height:62px;font-size:25px}.phone-keyboard .keyboard-guide,.phone-keyboard .hero-game-top>.helper-picker,.phone-keyboard .hero-live-stats{display:none!important}.phone-keyboard .story-game .story-page-art{aspect-ratio:3/1;max-height:110px}.phone-keyboard .story-scene figcaption{padding:8px 12px}.phone-keyboard .story-scene figcaption>p,.phone-keyboard .scene-steps,.phone-keyboard .scene-page-label{display:none}.phone-keyboard .story-game .game-stage{gap:8px!important}.phone-keyboard dialog[open]{max-height:calc(var(--app-height) - 8px);bottom:var(--keyboard-inset,0px)}.phone-keyboard .sheet-handle{height:20px}
 @keyframes sheet-in{from{transform:translateY(30px);opacity:.6}to{transform:translateY(0);opacity:1}}
}
@media(max-width:360px){.header .logo{font-size:18px}.header .melon-mark{width:29px;height:29px}.header-right .header-login{padding-inline:7px;font-size:12px}.header-right .header-signup{padding-inline:10px;font-size:12px}.container,.home-main{padding-inline:14px}.games-redesign .game-card h3{font-size:16px}.game-card-start{padding:0 5px}.hero-mode .select-trigger{font-size:13px;max-width:130px}.hero-mode .tag{font-size:10px}.game-shell{padding-inline:14px}.game-tools .icon-btn{width:40px}.game-header-title{font-size:12px}.game-shell .game-stats span:nth-child(2){display:none}.map-level{width:44px;height:44px;border-radius:15px}.map-stop-title{font-size:10px}.map-launch h2{font-size:17px}.rank-avatar{display:none}.rank-table th,.rank-table td{padding-inline:8px}.membership-inclusions{grid-template-columns:1fr}.game-settings-body .audio-channel .range{width:75px}}
@media(max-width:760px) and (orientation:landscape){.game-shell{min-height:0}.game-shell .game-stage{min-height:150px}.story-game .game-stage{display:grid!important;grid-template-columns:1fr 1fr;align-items:center;gap:18px!important}.story-game .story-scene-v2{grid-column:1;grid-row:1}.story-play-space{grid-column:2;grid-row:1}.story-page-art{aspect-ratio:16/9}.story-scene figcaption>p{font-size:12px}.game-shell .game-stage .target-text{font-size:25px!important}}
@media(prefers-reduced-motion:reduce){dialog[open],.select-menu{animation:none!important}}
.less-motion dialog[open],.less-motion .select-menu{animation:none!important}

/* A shared caption grid keeps desktop and phone story cards aligned. */
.story-game .story-scene-v2 figcaption{display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:12px;row-gap:6px;text-align:left;align-items:center}
.story-scene-v2 .scene-page-label{grid-column:1;grid-row:1;display:block;text-align:left;margin:0;line-height:1.4}
.story-scene-v2 .scene-caption-heading{display:contents}
.story-scene-v2 .scene-caption-heading>strong{grid-column:1;grid-row:2;margin:0;line-height:1.4;text-align:left}
.story-scene-v2 .scene-caption-heading>.icon-btn{grid-column:2;grid-row:1/3;align-self:center;justify-self:end;width:44px;height:44px;background:#fff;box-shadow:inset 0 0 0 1px #e4e8dc}
.story-scene-v2 figcaption>p{grid-column:1/-1;grid-row:3;margin:3px 0 0;text-align:left}
.story-scene-v2 .scene-steps{grid-column:1/-1;grid-row:4;margin-top:8px}

@media(max-width:760px){
 .switch,.switch[aria-checked=true]{width:46px;height:44px;background:transparent;border-radius:12px}
 .switch:before{content:'';position:absolute;left:0;top:9.5px;width:46px;height:25px;border-radius:25px;background:#dce3d4}
 .switch[aria-checked=true]:before{background:#6d914b}.switch:after{top:12.5px;left:3px}.switch[aria-checked=true]:after{left:24px}
 .phone-keyboard #toast{bottom:calc(var(--keyboard-inset,0px) + 12px)}
 .phone-keyboard .story-scene-v2 figcaption{display:grid;grid-template-columns:minmax(0,1fr) 44px;row-gap:0}.phone-keyboard .story-scene-v2 .scene-caption-heading>strong{grid-row:1}.phone-keyboard .story-scene-v2 .scene-caption-heading>.icon-btn{grid-row:1}
}

@media(min-width:761px) and (max-width:1024px){
 .phone-keyboard .mobile-nav{display:none}.phone-keyboard body{padding-bottom:0}.phone-keyboard .game-shell{height:auto!important;min-height:calc(var(--app-height) - 76px)}
 .phone-keyboard dialog[open]{max-height:calc(var(--app-height) - 20px);bottom:var(--keyboard-inset,0px);top:auto;margin:0 auto 10px}
}
@media(pointer:coarse) and (min-width:761px) and (max-width:1024px){input:not([type=range]),textarea{font-size:16px!important}.switch{touch-action:manipulation}.range{height:44px}}
