/* Only loaded by fam/s1.html and fam/s2.html. No institution selectors escape these copies. */
@media(max-width:600px) and (orientation:portrait){
 html,body{height:100%;overflow:hidden!important;touch-action:pan-y}
 #s2rot,#rotateNotice,#rot,#rotate-notice{display:none!important}
 #stage-wrap,#wrap{position:fixed!important;inset:0!important;display:block!important;overflow:auto!important;overscroll-behavior:contain;visibility:visible!important}
 #stage{width:100%!important;height:auto!important;min-height:100dvh!important;transform:none!important;overflow:visible!important;--safe-x:0px;--safe-y:0px}
 .scene{position:relative!important;inset:auto!important;min-height:100dvh}.scene:not(.active){display:none!important}
 #play-scene-inner,.play-scene{position:relative!important;min-height:100dvh!important;height:auto!important;display:flex!important;flex-direction:column;align-items:stretch;gap:16px;padding:62px 20px 82px!important;box-sizing:border-box;overflow:visible!important}
 #play-bg-layer,#stage-bg{position:fixed!important;inset:0;background-position:center!important}
 .play-topleft{top:14px!important;left:16px!important;right:70px!important;max-width:none!important;font-size:12px!important}
 .play-who,.play-progress{font-size:12px!important;padding:6px 9px!important}
 .joanne{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;height:160px!important;width:180px!important;align-self:center;flex:none;transform:none!important;margin:0!important}
 .speech-bubble,.play-options,.play-input-wrap,.play-next,.cards-title,.cards-subtitle,.play-cards{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;transform:none!important;box-sizing:border-box;margin:0!important}
 .speech-bubble{padding:22px!important;border-radius:23px!important;box-shadow:0 8px 30px #19273830!important}
 .bubble-text,.bubble-text.small{font-size:19px!important;line-height:1.65!important}.bubble-name{font-size:12px}
 .play-options,.play-options.col-1{grid-template-columns:1fr!important;gap:11px!important}
 .opt{font-size:17px!important;min-height:55px;padding:15px 18px!important;border-radius:15px!important;box-shadow:0 5px 15px #27204025!important}
 .play-input{min-height:160px!important;padding:18px!important;font-size:18px!important;box-sizing:border-box}
 .play-submit{float:none!important;width:100%;min-height:50px;font-size:17px!important}
 .play-next{min-height:52px!important;font-size:18px!important;flex:none}
 .play-desk,.spark{display:none!important}
 .replay-btn{position:fixed!important;right:12px!important;top:12px!important;bottom:auto!important;left:auto!important;font-size:12px!important;padding:8px 10px!important;z-index:30}
 .corner-drawer{position:fixed!important;left:12px!important;bottom:12px!important;z-index:31}.skip-drawer{top:auto!important;bottom:12px!important;position:fixed!important;z-index:35}.skip-panel{max-width:calc(100vw - 80px)}
 .cards-title h2{font-size:23px!important;line-height:1.45!important}.cards-subtitle{font-size:14px!important;order:5}.cards-subtitle span{font-size:14px!important}
 .play-cards{padding:0!important;background:none!important;display:block!important}
 .cards-grid-4{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;width:100%!important;max-width:none!important;transform:none!important;--cardw:100%!important}
 .pick-card{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:2/3;min-width:0!important}
 .pick-card img{width:100%!important;height:100%!important;object-fit:contain!important}.card3d{width:100%!important;height:100%!important}
 .play-video-wrap{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#101b25!important}
 .play-video-wrap video{width:100%!important;height:auto!important;max-height:100dvh!important;object-fit:contain!important}.video-skip{bottom:80px!important;right:20px!important}
 #s2vid{position:fixed!important;inset:0!important;display:none;align-items:center!important;justify-content:center!important;background:#101b25!important}#s2vid.show{display:flex!important}#s2vid video{width:100%!important;height:auto!important;max-height:100dvh!important;object-fit:contain!important}
 /* Season 1 start/selection screens */
 .kid-start-card,.start-card,.char-select-card{max-width:calc(100vw - 32px)!important;width:auto!important;padding:24px!important;box-sizing:border-box}
 .char-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}.char-card{width:auto!important}
 .kidstart{position:absolute!important;inset:0!important;min-height:100dvh;padding:20px}.kidstart-top{padding:22px 18px!important}.kidstart-hi{font-size:30px!important}.kidstart-sub{font-size:17px!important}.kidstart-btnwrap{bottom:100px!important;padding:0 24px}.kidstart-btn{width:100%!important;padding:18px!important;font-size:23px!important}.kidstart-back{font-size:13px!important;top:16px!important;left:16px!important}
 .charsel{position:relative!important;min-height:calc(100dvh - 144px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:0!important}.charsel-title{font-size:27px!important;margin-bottom:26px!important}.charsel-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;width:100%!important}.charsel-card{width:100%!important;height:auto!important;padding:15px!important}.charsel-card img{width:100%!important;height:200px!important;object-fit:contain}.charsel-name{font-size:17px!important}
 /* Season 2: natural document flow, independent of the 1280px layout coordinates. */
 body.fam-s2 #stage{display:flex;flex-direction:column;gap:16px;padding:68px 20px 80px;box-sizing:border-box;background-attachment:fixed}
 .topbar{position:absolute!important;top:12px!important;left:12px!important;right:12px!important;width:auto!important;font-size:11px!important}
 .char{position:relative!important;inset:auto!important;align-self:center!important;width:150px!important;height:160px!important;object-fit:contain!important;transform:none!important;margin:0!important;flex:none}
 .char img,.char svg{width:100%!important;height:100%!important;object-fit:contain!important}
 .bubble,.choices,.subwrap,.mgrid,.mtray,.fillwrap,.tqwrap,.dsubj,.ex-wrap{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;transform:none!important;max-height:none!important;box-sizing:border-box;margin:0!important}
 .bubble{padding:22px!important;border-radius:23px!important;font-size:19px!important;line-height:1.6!important;box-shadow:0 8px 30px #19273830!important;overflow:visible!important}
 .bubble.fin{font-size:18px!important}.bubble .nm{font-size:12px!important}.bb-face{width:48px!important;height:48px!important}
 .choices{grid-template-columns:1fr!important;gap:11px!important}.choices .ch{min-height:54px!important;font-size:17px!important;padding:15px!important}
 .subwrap textarea,.subwrap input,.fillwrap input,.mchat input{font-size:18px!important;min-height:52px!important;width:100%;box-sizing:border-box}.subwrap textarea{min-height:160px!important}
 .subnext,.mdone{min-height:50px!important;font-size:16px!important;padding:13px 18px!important}
 .mgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;padding:0!important}
 .mchip{font-size:15px!important;min-height:66px!important;padding:12px!important;white-space:normal!important}.mchip img{max-height:88px!important;width:100%;object-fit:contain}.mtray{padding:15px!important;font-size:15px!important}
 .mslots{flex-wrap:wrap!important}.mpick{font-size:14px!important}.mchat{flex-wrap:wrap;gap:8px}.mchat>*{max-width:100%}
 .tqwrap{padding-top:0!important}.tqhead{display:none!important}.tqbox{padding:20px!important}.tqtitle{font-size:20px!important}.tqopts{grid-template-columns:1fr 1fr!important;gap:12px!important}.tqopt{font-size:16px!important;min-width:0!important}.tlab{font-size:16px!important}.tqart img{max-width:100%;max-height:110px!important}
 .start-overlay{position:relative!important;inset:auto!important;min-height:calc(100dvh - 150px);display:flex!important;flex-direction:column!important;justify-content:center!important;gap:24px!important;padding:0!important}.start-top,.start-bottom,.start-who{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;text-align:center!important;margin:0!important}.start-logo{width:100%!important}.start-logo img{max-width:100%!important;max-height:280px!important;object-fit:contain}.start-line{flex-wrap:wrap!important;white-space:normal!important;font-size:15px!important}.start-btn{width:100%!important;min-height:56px!important;font-size:20px!important}.start-back{top:-45px!important;left:0!important;font-size:12px!important}.sw-hi{font-size:23px!important}
 #topCtl{position:fixed!important;top:10px!important;right:10px!important;transform:none!important;z-index:60;gap:4px!important}#topCtl button{min-width:32px!important;width:32px!important;height:32px!important;font-size:13px!important;padding:6px!important;overflow:hidden;white-space:nowrap}#topCtl .tc-label,#topCtl .tc-vol,#bgmBtn{display:none}#topCtl button:first-child{font-size:0!important}#topCtl button:first-child::after{content:'↻';font-size:22px}#topCtl .tc-quit{font-size:0!important}#topCtl .tc-quit::after{content:'✕';font-size:18px}
 .fillsent{font-size:20px!important;padding:18px!important;white-space:normal!important}.fillchips{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.fchip{min-width:0!important;font-size:16px!important;min-height:58px!important;padding:12px!important}
 body.fam-s2 #stage:has(.gameFrame){padding:0!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}.gameFrame{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
 .nobg{position:absolute!important;inset:0;pointer-events:none;z-index:-1}
 body.fam-s2 #stage .bubble,body.fam-s2 #stage .choices,body.fam-s2 #stage .subwrap,body.fam-s2 #stage .mgrid,body.fam-s2 #stage .mtray,body.fam-s2 #stage .fillwrap,body.fam-s2 #stage .tqwrap,body.fam-s2 #stage .dsubj{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;transform:none!important;max-height:none!important;margin:0!important}
 body.fam-s2 #stage .bubble{font-size:19px!important;line-height:1.6!important;padding:22px!important}
 body.fam-s2 #stage .char{position:relative!important;inset:auto!important;width:150px!important;height:160px!important;transform:none!important}
 body.fam-s2 #stage .tqgrid{grid-template-columns:1fr 1fr!important;gap:12px!important}body.fam-s2 #stage .tqcard{min-width:0!important;padding:10px!important}body.fam-s2 #stage .tqq{font-size:19px!important;line-height:1.5!important}body.fam-s2 #stage .tq-char{display:none!important}
 body.fam-s2 #stage .mchip{left:auto!important;right:auto!important;min-width:0!important}
 body.fam-s2 #stage .mchip.pic{display:flex!important;flex-direction:column!important;gap:8px!important;padding:12px!important}
 body.fam-s2 #stage .mchip.pic .cico{width:80px!important;height:80px!important;max-width:100%!important}
 body.fam-s2 #stage .mchip.pic .clab{font-size:15px!important;text-align:center!important;padding:0!important}
 body.fam-s2 #stage .mgrid.dual,body.fam-s2 #stage .mgrid.one{grid-template-columns:1fr!important}
 .dopt{padding:12px!important;gap:10px!important}.dpk{gap:5px!important}.dp{min-width:57px!important;min-height:44px!important;padding:8px!important;font-size:14px!important}.dtx{font-size:16px!important;line-height:1.5!important}
 .crow,.tbot{flex-wrap:wrap!important;gap:8px!important}.crow input{min-width:0!important}.dchips{white-space:normal!important;flex-wrap:wrap!important}
 #wrap,#stage-wrap{overflow-x:hidden!important}
}
/* Phone scenes are composed as a conversation, with a portrait and a separate decision area. */
@media(max-width:600px) and (orientation:portrait){
 #play-scene-inner:has(.fmp-portrait),body.fam-s2 #stage:has(>.fmp-portrait){gap:14px;padding-top:52px!important}
 .fmp-portrait{position:relative;align-self:center;flex:none;width:280px;height:185px;overflow:hidden;margin:0 0 -26px;pointer-events:none;z-index:1;mask-image:linear-gradient(#000 88%,transparent)}
 .fmp-portrait .joanne,body.fam-s2 #stage .fmp-portrait .char{position:absolute!important;width:320px!important;height:360px!important;left:50%!important;top:-10px!important;inset-inline-start:50%!important;transform:translateX(-50%)!important;max-width:none!important;object-fit:contain!important;margin:0!important}
 .fmp-portrait .joanne>div{width:100%!important;height:100%!important}
 .fmp-portrait .joanne svg{width:100%!important;height:100%!important}
 .speech-bubble,body.fam-s2 #stage .bubble{z-index:2;border:1px solid #ffffffbd!important;box-shadow:0 6px 24px #24355016!important}
 #play-scene-inner:has(.fmp-carousel){padding:66px 0 40px!important;gap:12px}
 body.fam-s2 #stage:has(.fmp-carousel){padding:66px 0 40px!important;gap:12px}
 #stage:has(.fmp-carousel) .cards-title{padding:0 16px!important;text-align:center!important}
 #stage:has(.fmp-carousel) .cards-title h2{margin:0!important;font-size:23px!important;line-height:1.45!important}
 #stage:has(.fmp-carousel) .cards-subtitle{display:none!important}
 #stage:has(.fmp-carousel) .play-cards{pointer-events:auto!important;min-width:0!important;overflow:visible!important}
 #stage .cards-grid-4.fmp-carousel{--fmp-card-width:min(76vw,300px,44svh);display:flex!important;align-items:center!important;gap:18px!important;padding:18px calc((100% - var(--fmp-card-width))/2) 24px!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y!important;overscroll-behavior-x:contain;transform:none!important;perspective:none!important}
 .fmp-carousel::-webkit-scrollbar{display:none}
 #stage .fmp-carousel .pick-card{position:relative!important;flex:0 0 var(--fmp-card-width)!important;width:var(--fmp-card-width)!important;height:calc(var(--fmp-card-width)*1.5)!important;max-width:none!important;min-width:0!important;margin:0!important;scroll-snap-align:center;scroll-snap-stop:always;transform:scale(.94)!important;animation:none!important;opacity:.65!important;transition:transform .18s ease,opacity .18s ease!important;pointer-events:none!important;touch-action:auto!important;filter:none!important;box-shadow:0 8px 20px #25294226!important;border-radius:20px!important}
 #stage .fmp-carousel .pick-card *{pointer-events:none!important}
 #stage .fmp-carousel .pick-card.fmp-current{transform:scale(1)!important;opacity:1!important}
 #stage .fmp-carousel .pick-card.selected{transform:scale(1.03)!important;box-shadow:0 0 0 4px #27c991,0 12px 28px #25294228!important}
 #stage .fmp-carousel .pick-card .card3d{transform:none!important;animation:none!important;transition:none!important}
 #stage .fmp-carousel .pick-card .card-back{display:none!important}
 #stage .fmp-carousel .pick-card .card-front{transform:none!important;backface-visibility:visible!important}
 .fmp-card-controls{position:relative;z-index:5;padding:0 24px 12px;display:grid;gap:14px;max-width:440px;margin:auto;box-sizing:border-box}
 .fmp-card-hint{text-align:center;font-size:14px;color:#626579;font-weight:500;letter-spacing:-.2px}
 .fmp-card-pager{display:flex;align-items:center;justify-content:center;gap:30px}
 .fmp-card-pager button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #dedeea;border-radius:50%;background:#fffffff0;color:#454267;font-size:30px;line-height:1;box-shadow:0 3px 9px #24355008;cursor:pointer}
 .fmp-card-pager span{min-width:48px;text-align:center;font:600 15px/1.2 sans-serif;color:#454267;font-variant-numeric:tabular-nums}
 .fmp-card-pager button:disabled{opacity:.3;cursor:default}
 .fmp-card-confirm{width:100%;min-height:56px;border:0;border-radius:18px;background:linear-gradient(120deg,#24df88,#0ac976);color:#063c2a;font:800 18px/1.3 inherit;font-size:18px;font-weight:800;box-shadow:0 7px 20px #14c77d35;cursor:pointer;padding:15px}
 .fmp-card-confirm:disabled{opacity:.6}
 @media(prefers-reduced-motion:reduce){#stage .fmp-carousel .pick-card{transition:none!important}}
}
@media(max-width:600px) and (orientation:portrait){
 body.fam-s2 .fmp-portrait{height:205px;margin-bottom:-16px}
 body.fam-s2 #stage .fmp-portrait .char{width:300px!important;height:300px!important;top:-58px!important}
 #stage:has(.fmp-carousel) .cards-title h2{background:#fffffff0!important;color:#353252!important;text-shadow:none!important;border-radius:22px!important;padding:12px 10px!important;font-size:14px!important;font-weight:500!important;line-height:1.6!important;box-shadow:0 5px 22px #24355016!important}
 .fmp-card-controls{margin:0 20px;padding:16px;background:#ffffffbd;border:1px solid #ffffff55;border-radius:24px;gap:10px;box-shadow:0 8px 26px #24355014}
}
@media(max-width:600px) and (orientation:portrait){
 #stage .cards-grid-4.fmp-carousel{pointer-events:auto!important}
 body.fam-s2 .fmp-portrait{height:218px}
 body.fam-s2 #stage .fmp-portrait .char{top:-22px!important}
}
@media(max-width:600px) and (orientation:portrait){
 .fmp-card-browser{position:relative;width:100%;min-width:0}
 .fmp-card-arrows{position:absolute;inset:0;pointer-events:none;z-index:6}
 .fmp-card-arrows button{position:absolute;top:50%;margin-top:-55px;width:48px;height:110px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;font:300 42px/1 sans-serif;display:grid;place-items:center;pointer-events:auto;cursor:pointer;box-shadow:none;opacity:.6;text-shadow:0 0 5px #ffffff40;animation:fmp-arrow-glow 2.4s ease-in-out infinite}
 .fmp-card-arrows button:first-child{left:2px}.fmp-card-arrows button:last-child{right:2px;animation-delay:.2s}
 .fmp-card-arrows button:disabled{cursor:default;opacity:.35;animation:none}
 .fmp-card-arrows button:focus-visible{outline:1px solid #ffffff80;outline-offset:0}
 .fmp-card-pager{gap:20px}.fmp-card-dots{display:flex;align-items:center;gap:9px}.fmp-card-dots i{width:9px;height:9px;border-radius:50%;background:#d9dfdc}.fmp-card-dots i.seen{background:#18b779}.fmp-card-dots i.current{outline:2px solid #159965;outline-offset:3px}
 .fmp-card-hint{font-size:13px;line-height:1.5}.fmp-card-confirm:disabled{background:#e7ece9;color:#77837c;opacity:1;box-shadow:none}
 @keyframes fmp-arrow-glow{0%,100%{opacity:.38;text-shadow:0 0 3px #ffffff20}50%{opacity:.76;text-shadow:0 0 7px #ffffff60}}
 @media(prefers-reduced-motion:reduce){.fmp-card-arrows button{animation:none;opacity:.6;box-shadow:none}}
}
@media(max-width:600px) and (orientation:portrait){#stage .cards-grid-4.fmp-carousel{overflow-anchor:none}}

@media(max-width:600px) and (orientation:portrait){
 .fmp-card-pager span{font-size:13px;font-weight:500}.fmp-card-hint{font-size:12px;font-weight:400}.fmp-card-confirm{font-size:16px;font-weight:600;min-height:52px}
}

@media(max-width:600px) and (orientation:portrait){.fmp-card-arrows svg{width:24px;height:86px;overflow:visible;pointer-events:none}}

/* Family phone card composition: quiet scenery, consistent question height, one decision area. */
@media(max-width:600px) and (orientation:portrait){
 #play-scene-inner:has(.fmp-carousel),body.fam-s2 #stage:has(.fmp-carousel){isolation:isolate;gap:10px!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 #play-scene-inner:has(.fmp-carousel)::before,body.fam-s2 #stage:has(.fmp-carousel)::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(20,35,43,.14),rgba(24,41,44,.27) 55%,rgba(26,45,45,.20));backdrop-filter:blur(2px) saturate(.8);-webkit-backdrop-filter:blur(2px) saturate(.8)}
 #stage:has(.fmp-carousel) .cards-title{padding:0 20px!important}
 #stage:has(.fmp-carousel) .cards-title h2{display:flex!important;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:68px;box-sizing:border-box;background:rgba(255,255,255,.88)!important;border:1px solid #ffffff66!important;border-radius:18px!important;padding:11px 10px!important;box-shadow:0 3px 16px #172b3510!important;word-break:keep-all;overflow-wrap:anywhere}
 #stage .cards-grid-4.fmp-carousel{padding-top:16px!important;padding-bottom:20px!important}
 #stage .fmp-carousel .pick-card{background:transparent!important;border:0!important;box-shadow:none!important;opacity:.28!important;transform:scale(.90)!important}
 #stage .fmp-carousel .pick-card.fmp-current{opacity:1!important;transform:scale(1)!important}
 #stage .fmp-carousel .pick-card.fmp-current .card-front,#stage .fmp-carousel .pick-card.fmp-current .pick-card-anim{filter:drop-shadow(0 8px 12px #15293038)}
 .fmp-card-controls{border-radius:20px;padding:14px 16px 16px;gap:9px;background:#ffffffbd;border-color:#ffffff55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 7px 24px #162b3014}
 .fmp-card-pager{justify-content:space-between;gap:12px;padding:0 3px}.fmp-card-pager span{text-align:left;min-width:0;font-size:12px;color:#63746e}
 .fmp-card-dots{gap:8px}.fmp-card-dots i{width:7px;height:7px;background:#aebbb680}.fmp-card-dots i.current{outline-width:1px;outline-offset:3px}
 .fmp-card-hint{text-align:left;padding:0 3px;color:#53685e;font-size:12px;line-height:1.5;margin-bottom:2px}
 .fmp-card-confirm{border-radius:14px;min-height:52px;font-weight:650;box-shadow:0 4px 14px #12af6f20}
 .fmp-card-arrows button{opacity:.67;filter:drop-shadow(0 1px 2px #203a3535)}
}
@media(max-width:600px) and (orientation:portrait){
 #stage:has(.fmp-carousel) .cards-title h2{max-width:none!important}
 #stage .fmp-carousel .pick-card::before,#stage .fmp-carousel .pick-card::after{display:none!important}
 #stage .fmp-carousel .card3d{box-shadow:none!important;background:transparent!important}
 body.fam-s2 #stage:has(.fmp-carousel) .topbar{left:20px!important;top:12px!important;padding:0!important}
 body.fam-s2 #stage:has(.fmp-carousel) .tb-pct{display:none}
 body.fam-s2 #stage:has(.fmp-carousel) .tb-q{font-size:11px!important;font-weight:600;min-height:32px;box-sizing:border-box;display:flex;align-items:center;padding:6px 12px!important;box-shadow:none!important}
}

/* Artwork-specific mobile portraits. Desktop positions remain in the original renderer. */
@media(max-width:600px) and (orientation:portrait){
 .fmp-portrait,body.fam-s2 .fmp-portrait{width:min(326px,100%);height:var(--fmp-frame-height,228px);margin:0 0 -14px;mask-image:linear-gradient(#000 94%,transparent)}
 .fmp-portrait .joanne,body.fam-s2 #stage .fmp-portrait .char{width:var(--fmp-art-width,280px)!important;height:var(--fmp-art-height,260px)!important;top:var(--fmp-art-top,0px)!important}
 body.fam-s2 #stage.picwide.nine .bubble{left:auto!important;width:100%!important;padding:22px!important}
 body.fam-s2 #stage.picwide:not(.nine) .bubble .bb-face{left:20px;top:16px;bottom:auto;width:48px!important;height:48px!important;margin:0;object-fit:contain;filter:none}
 body.fam-s2 #stage.picwide:not(.nine) .bubble .nm{margin:0 0 18px 58px;min-height:28px;display:flex;align-items:center;box-sizing:border-box}
}

/* Answer feedback has its own overlay; do not use the tablet's stage-scale fonts here. */
@media(max-width:600px) and (orientation:portrait){
 body.fam-s2 #stage:has(>.lesson-ov)>:not(.lesson-ov){visibility:hidden}
 body.fam-s2 .lesson-ov{padding:calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));gap:14px;justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
 body.fam-s2 .lesson-ov::before,body.fam-s2 .lesson-ov::after{content:'';display:block;flex:1 0 0;width:1px}
 body.fam-s2 .lesson-ov::before{min-height:174px}
 body.fam-s2 .lesson-box{flex:none;width:100%;max-width:400px;padding:24px 22px;font-size:18px!important;line-height:1.65;border-radius:24px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;box-sizing:border-box;box-shadow:0 14px 40px #120d2633,0 0 0 1px #ffffff66}
 body.fam-s2 .lesson-box .lb-line,body.fam-s2 .lesson-box .lb-react{white-space:pre-line}
 body.fam-s2 .lesson-box .lb-react{font-size:17px;margin-bottom:12px}
 body.fam-s2 .lesson-box .lb-char{width:150px!important;height:auto;max-width:none;margin-bottom:-4px!important}
 body.fam-s2 .lesson-lc{flex:none;width:100%;max-width:400px;grid-template-columns:1fr!important;gap:10px}
 body.fam-s2 .lesson-lc .ch{width:100%;min-height:52px!important;padding:13px 18px;font-size:16px!important;border-radius:16px;box-sizing:border-box}
 body.fam-s2 .lesson-lc .ch span{line-height:1.5}
 body.fam-s2 .lesson-redo{flex:none;min-height:44px;margin-top:0;padding:10px 18px;font-size:13px}
}

/* Public sample entry and completion, in addition to the shared family phone frame. */
@media(max-width:600px) and (orientation:portrait){
 body.sample-mode #rotate-notice{display:none!important}
 body.sample-mode #play-bg-layer{animation:none!important;transform:none!important}
 body.sample-mode #scene-unlock{min-height:100dvh}
 body.sample-mode .intro-stage{position:relative;inset:auto;min-height:100dvh;padding:48px 20px 32px;box-sizing:border-box;gap:32px;overflow:hidden}
 body.sample-mode .intro-content{width:100%;max-width:400px}
 body.sample-mode .intro-logo{font-size:clamp(42px,13vw,62px);line-height:1.1;margin:20px 0 10px}
 body.sample-mode .intro-badge{font-size:11px;padding:9px 14px}
 body.sample-mode .intro-meaning{font-size:15px}
 body.sample-mode .intro-slogan{font-size:17px;line-height:1.6;margin-bottom:26px}
 body.sample-mode #sample-lang-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.sample-mode .sample-lang{min-height:54px;font-size:16px;padding:13px 8px}
 body.sample-mode #sample-lang-note{font-size:12px;padding:13px 8px;margin-top:18px}
 body.sample-mode .intro-hint{font-size:12px;margin-top:16px}
 body.sample-mode .intro-footer{position:relative;inset:auto;width:100%;gap:8px;flex-direction:column;text-align:center}
 body.sample-mode .intro-footer-logo{width:110px;height:auto;max-height:36px;object-fit:contain}
 body.sample-mode .intro-footer-copy{font-size:9px;line-height:1.5;white-space:normal}
 body.sample-mode .version-badge{display:none}
 body.sample-mode #sample-report-ov{position:fixed;inset:0;width:100%;height:100dvh;overflow:auto;padding:18px 14px 36px;box-sizing:border-box}
 body.sample-mode #sample-report-ov .srep{width:100%;max-width:100%;padding:0;box-sizing:border-box}
 body.sample-mode #sample-report-ov .srep-hero2{padding:24px 12px}
 body.sample-mode #sample-report-ov .srep-sub2{font-size:14px;line-height:1.7}
 body.sample-mode #sample-report-ov .dim-grid,body.sample-mode #sample-report-ov .rep-cards{grid-template-columns:1fr!important}
 body.sample-mode #sample-report-ov .radar-wrap{flex-direction:column}
 body.sample-mode #sample-report-ov .srep-cta .big{font-size:16px;white-space:normal}
 body.sample-mode #sample-report-ov .srep-foot{font-size:11px;line-height:1.6}
}

@media(max-width:600px) and (orientation:portrait){
 /* Touch pointers must not pause an entrance animation before a report link appears. */
 body.sample-mode #sample-report-ov .rep-card2{opacity:1;animation:none;transform:none}
}
