/* The same reader becomes a compact, touch-first shell on phones. */
.mobile-nav{display:none}
.lesson-heading{align-items:center}.lesson-heading>.page-navigation{margin:0 0 0 auto;flex:0 1 auto;gap:8px;font-size:13px}.lesson-heading>.page-navigation select{max-width:270px}.today{display:none}
button,input,select{touch-action:manipulation}
@media(max-width:1100px),(hover:none) and (pointer:coarse){
 html{scroll-padding-top:110px;scroll-padding-bottom:172px}
 body{background:#f3f7f4;-webkit-text-size-adjust:100%}
 body:has(dialog[open]){overflow:hidden}
 .app-header{position:sticky;top:0;min-height:0;padding:10px 16px 8px;gap:7px;z-index:25;background:#fffffff5;backdrop-filter:blur(16px);padding-top:max(10px,env(safe-area-inset-top))}
 .brand{font-size:16px;gap:9px}.brand-sub{display:none}.brand-icon{width:32px;height:32px}
 .header-tools{margin-left:auto}.other-tools summary{font-size:12px}.view-switch{padding:3px;width:auto;margin:0;gap:2px;background:#eef4f0}.view-switch a{flex:none;min-height:36px;padding:5px 9px;font-size:12px}.view-switch a:nth-child(n+3){display:none}.view-switch a span{display:none}
 .cloud-bar{display:none}.workspace{padding:14px 12px calc(180px + env(safe-area-inset-bottom));max-width:100%}
 .lesson-heading{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.lesson-heading>div:first-child{flex:1;min-width:0}.breadcrumb{font-size:11px;margin-bottom:2px}.lesson-heading h1{gap:4px;font-size:22px}.lesson-heading h1 .readable-label{font-size:23px}.heading-page{display:none}.lesson-desc{display:none}
 .lesson-heading>.page-navigation{align-self:end;margin:0;max-width:48%;font-size:0}.lesson-heading>.page-navigation select{max-width:100%;font-size:14px;min-height:44px;padding:7px 24px 7px 9px;border-radius:12px}
 .lesson-toolbar{background:white;border:1px solid #e0eae3;border-radius:14px;padding:10px 12px;margin-bottom:12px;gap:8px}.mode-caption{display:none}.toolbar-options{flex-wrap:wrap;gap:6px 12px;justify-content:space-between;align-items:center}.toolbar-options label{font-size:12px;gap:5px}.toolbar-options select{font-size:14px;min-height:36px;max-width:130px}.voice-control{flex:1}.role-control{display:flex;align-items:center;gap:5px}.role-control input{width:17px;height:17px;accent-color:var(--green)}.speed-control{display:none}
 .lesson-tools{display:none}.learning-grid{gap:12px}.book-scroll{padding:5px 4px 0}.book-caption{font-size:11px;padding:8px 10px}.reading-card-head{min-height:44px;padding:8px 12px}.reading-hint{font-size:11px}.reading-card{border-radius:16px}.text-reading{padding:16px}.sentence-words{font-size:25px;line-height:1.85}.dialogue .translation{font-size:15px}
 .mobile-nav{position:fixed;inset:auto 0 0;z-index:30;background:#fffffff7;backdrop-filter:blur(18px);border-top:1px solid #e0e9e3;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 6px calc(5px + env(safe-area-inset-bottom));min-height:62px;box-shadow:0 -4px 20px #2a554308}
 .mobile-nav button{min-height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;color:#637a70;border-radius:12px;padding:3px;position:relative}.mobile-nav button:first-child{color:var(--green);background:#edf6ef}.mobile-nav svg{width:22px;height:22px}.mobile-nav .nav-pet{font-size:24px;line-height:1}.mobile-nav button:active{background:#e7f1eb;transform:scale(.97)}
 .player{left:10px;right:10px;bottom:calc(72px + env(safe-area-inset-bottom));border:1px solid #dbe7df;border-radius:18px;min-height:64px;padding:8px;gap:4px;z-index:29;box-shadow:0 4px 18px #274c3912}.player .transport{gap:1px;min-width:0}.player .icon-button{width:38px;height:44px}.player .primary-play{min-height:44px;min-width:112px;padding:9px 12px;font-size:14px}.player .footer-speed select{height:44px;font-size:14px;min-width:62px}.toast,.extras-notice{bottom:calc(153px + env(safe-area-inset-bottom))}
 body.mobile-word .coach-card{left:0;right:0;bottom:0;max-height:calc(100dvh - 50px);border-radius:24px 24px 0 0;padding:18px 22px calc(22px + env(safe-area-inset-bottom));z-index:42}body.mobile-word .player{z-index:29}body.mobile-word .coach-card .close-coach{min-width:44px;min-height:44px}
 dialog.record-dialog,dialog.game-dialog,dialog.wordbank-dialog,dialog.settings-dialog,dialog.pet-dialog,dialog.pet-chat-dialog,dialog.phonics-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom);overflow:auto}
 dialog .record-header{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));min-height:68px;z-index:4}.record-header .eyebrow{display:none}.record-header h2{font-size:20px;line-height:1.4}.record-header .icon-button{height:44px;width:44px;background:#f0f5f2;border-radius:14px;flex-shrink:0}
 .game-dialog{background:#fbfaff}.game-dialog .record-header{background:#fff}.game-content{padding:14px 16px 0;min-height:calc(100dvh - 70px);display:flex;flex-direction:column}.game-stage-tabs{position:sticky;top:68px;padding:0 0 12px;background:#fbfaff;z-index:3;gap:6px;margin:0}.game-stage-tabs button{font-size:13px;min-height:44px;padding:7px 4px;border-radius:12px;line-height:1.5}.game-stage-tabs button.active{background:#7663ad;color:white;border-color:#7663ad}.game-stage-tabs button:disabled{opacity:.65}
 #game-question{flex:1;display:flex;flex-direction:column;min-height:0}.game-question-top{font-size:13px;color:#74688c;margin:10px 0}.game-prompt{font-size:clamp(23px,6vw,30px);line-height:1.4;margin:14px 0 20px;font-weight:700;color:#2b3e36}.game-listen{align-self:center;font-size:15px;min-height:48px;border-radius:14px;padding:10px 20px;margin:0 0 12px}
 .spelling-slots{display:flex;gap:5px;flex-wrap:nowrap;justify-content:center;margin:16px 0;min-width:0}.spelling-slots button{width:clamp(24px,8.7vw,43px);height:49px;flex:0 1 43px;min-width:0;font-size:25px;border-radius:10px}.spelling-slots button:disabled{opacity:1}.spelling-slots button:empty{background:white}
 .game-options{margin:14px 0;gap:10px}.game-options>button{min-height:52px;font-size:22px;border-radius:14px;padding:10px}.game-options.letter-options{display:grid;grid-template-columns:repeat(5, minmax(0,1fr));gap:9px;margin:14px auto;width:100%;max-width:360px}.game-options.letter-options>button{width:100%;height:54px;padding:6px;font-size:27px;background:white;border:1px solid #d4c8e7;box-shadow:0 3px 0 #d9cee9;color:#695598}.game-options.letter-options>button:active{transform:translateY(2px);box-shadow:none}.game-options.letter-options>button:disabled{opacity:1;color:#a99bbd;background:#f0edf5;border-style:dashed;box-shadow:none}.game-feedback{font-size:14px;color:#796b8b;line-height:1.7;margin:14px 0;min-height:48px}.game-feedback.correct{color:#287e63}.game-feedback.retry{color:#a97830}
 .game-answer-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding:12px 0 max(18px,env(safe-area-inset-bottom));background:#fbfaff;z-index:2}.game-answer-actions .game-primary{flex:1;min-height:50px;font-size:16px;border-radius:14px}.game-answer-actions .text-button{min-height:44px;font-size:14px;padding:9px 12px}.game-answer-actions #game-next{order:3}.game-primary{min-height:48px}
 .record-content{padding:20px 16px}.record-reference{font-size:29px;overflow-wrap:anywhere}.record-steps{font-size:13px}.record-buttons{flex-wrap:wrap}.record-main{min-height:48px}.record-bottom{padding:10px 16px max(12px,env(safe-area-inset-bottom))}.record-replay{grid-template-columns:1fr auto}.record-replay audio{min-width:0}.wordbank-content{padding:16px}.word-search input,input[type=text],input[type=password]{font-size:16px}.wordbank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-word{min-width:0}.bank-word-head h3{overflow-wrap:anywhere}.bank-ipa{overflow-wrap:anywhere}
 body.embedded .mobile-nav{display:none}body.embedded .player{bottom:8px}body.embedded .workspace{padding-bottom:90px}
}
@media(max-width:360px){.brand{font-size:14px}.view-switch a{padding-inline:6px}.header-tools{display:none}.game-content{padding-inline:12px}.game-stage-tabs button{font-size:12px}.spelling-slots{gap:3px}.spelling-slots button{font-size:22px}.player .icon-button{width:32px}}
@media(max-width:1100px),(hover:none) and (pointer:coarse){.header-tools{display:none}.view-switch{margin-left:auto}.app-header{flex-wrap:nowrap}.record-header button{touch-action:manipulation}}
.role-control{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}.role-control input{accent-color:var(--green)}

@media(max-width:360px){.app-header{padding-inline:12px}.brand{gap:6px;font-size:13px}.brand-icon{width:30px;height:30px}}

@media(max-width:1100px),(hover:none) and (pointer:coarse){
 .app-layout{display:block}.sidebar{display:none}.learning-grid{grid-template-columns:1fr}.coach-column{display:grid;grid-template-columns:1fr}
 body.mobile-word .close-coach{display:flex;margin-left:auto}body.mobile-word #coach-backdrop{display:block;position:fixed;inset:0;background:#173c2945;backdrop-filter:blur(2px);z-index:35}
 .header-tools{display:none}
}
@media(min-width:761px) and (max-width:1100px) and (orientation:portrait){
 .workspace{max-width:850px;margin:auto;padding-inline:24px}.coach-column{display:none}body.mobile-word .coach-column{display:block}body.mobile-word .coach-card{max-width:720px;margin:auto}
 .wordbank-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-content{max-width:760px;margin:auto;padding-inline:32px}.game-options.letter-options{max-width:440px}.game-options.letter-options>button{min-height:60px}.game-stage-tabs button{font-size:15px}.game-prompt{font-size:32px}
}
@media(min-width:761px) and (max-width:1100px) and (orientation:landscape),(min-width:761px) and (hover:none) and (pointer:coarse) and (orientation:landscape){
 .workspace{padding:18px 24px 175px}.learning-grid{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:18px}.coach-column{display:grid;position:sticky;top:86px;max-height:calc(100dvh - 255px);overflow:auto;overscroll-behavior:contain;border-radius:18px}.coach-card{padding:20px}.coach-card-head h2{font-size:16px}.coach-card-head .small-tag{display:none}.word-title h3{font-size:34px}.word-meaning{font-size:18px}.teach-block p{font-size:15px}.coach-tabs button{font-size:15px;min-height:44px}.coach-card button{min-height:44px}.usage-block .translation{font-size:15px}.practice-card{padding:18px}.practice-card button{min-height:44px}.lesson-heading h1 .readable-label{font-size:27px}.lesson-heading>.page-navigation{max-width:330px}.reading-card-head{font-size:14px}.reading-hint{font-size:13px}.game-content{max-width:780px;margin:auto;padding-inline:28px}.game-stage-tabs button{font-size:15px}.game-options.letter-options{max-width:450px}.game-options.letter-options>button{min-height:60px}.wordbank-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bank-word-head h3{font-size:24px}.bank-meaning{font-size:17px}.mobile-nav{padding-inline:max(20px,calc((100vw - 850px)/2))}.player{left:max(20px,calc((100vw - 850px)/2));right:max(20px,calc((100vw - 850px)/2))}
}
.install-entry{display:block;width:100%;text-align:left;padding:13px 16px;margin:0 0 18px;border:1px solid #d5e6dc;border-radius:14px;background:#edf6f0;color:#287e63;min-height:66px}.install-entry>span{display:block;font-size:16px;font-weight:650}.install-entry small{display:block;margin-top:3px;font-size:13px;color:#688373}.install-dialog{padding:0;border:1px solid #dfebe2;border-radius:22px;width:min(520px,calc(100vw - 24px));max-height:92dvh;color:var(--ink);background:white;overscroll-behavior:contain}.install-dialog::backdrop{background:#19392d88;backdrop-filter:blur(5px)}.install-content{padding:24px}.install-content>img{display:block;margin:0 auto 16px;border-radius:20px}.install-content h3{text-align:center;font-size:22px}.install-content p{font-size:15px;line-height:1.9;margin:10px 0;color:#657b6f}.install-content ol{padding-left:25px;font-size:16px;line-height:1.9}.install-content li{margin:15px 0;padding-left:4px}.install-content p.install-note{font-size:13px}.install-content>button{display:block;width:100%;min-height:48px;font-size:16px;background:#287e63;color:white;border-radius:13px;margin-top:20px}
@media(max-width:1100px),(hover:none) and (pointer:coarse){dialog.cloud-dialog,dialog.install-dialog{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:100dvh;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}.install-content{max-width:580px;margin:auto;padding-bottom:max(25px,env(safe-area-inset-bottom))}.standalone-app .app-header{padding-top:max(10px,env(safe-area-inset-top))}}
