/* V8 review: isolated phone presentation; no desktop rule changes. */
.mobile-only{display:none}
body.mobile-game{height:100vh;height:100dvh;overflow:hidden;padding:0;background:#e9eddc;--question-height:210px}
.mobile-game .mobile-only:not([hidden]){display:block}
.mobile-game header{height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));gap:4px;max-width:none}
.mobile-game .mobile-exit{width:44px;height:44px;flex:none;display:grid;place-items:center;color:var(--ink);text-decoration:none;font-size:23px;background:#dce4d1;border-radius:12px;touch-action:manipulation}
.mobile-game .brand{font-size:0;padding:0;width:34px;min-width:34px;height:35px;max-width:none}.mobile-game .brand img{width:39px;left:-3px;top:3px}
.mobile-game .hud{gap:5px;flex:1;justify-content:flex-end}.mobile-game .hud>span:first-child{font-size:8px;letter-spacing:1px}.mobile-game .hud b{font-size:17px;letter-spacing:0}.mobile-game .hud #hearts{font-size:16px;letter-spacing:0}.mobile-game .hud button{width:44px;height:44px;min-width:44px;padding:0;box-shadow:none}
.mobile-game button,.mobile-game a{touch-action:manipulation}
.mobile-game main{position:relative;width:100%;max-width:none;height:calc(100% - 54px - env(safe-area-inset-top));margin:0;padding:0 max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:block}
.mobile-game .play-area{width:100%;height:calc(100% - var(--question-height) - 8px);min-height:0;display:flex;flex-direction:column;border-radius:17px;box-shadow:none}
.mobile-game:not(.run-active) .play-area{height:100%}
.mobile-game .flight-top{min-height:48px;padding:2px 10px;gap:7px;align-items:center;font-size:13px;letter-spacing:0}.mobile-game #stage{display:none}.mobile-game .mobile-answer{display:flex!important;align-items:center;justify-content:space-between;flex:1;gap:6px;min-width:0}.mobile-game #mobile-level{font-size:18px;line-height:1.1}.mobile-game #tap-toggle{font-size:12px;min-height:44px;padding:6px 9px;background:transparent;color:#f8edca;box-shadow:none}.mobile-game #timer{font-size:15px;min-width:29px;text-align:right}
.mobile-game #course{height:auto;min-height:0;flex:1;touch-action:pinch-zoom;user-select:none}.mobile-game #lanes{pointer-events:none}.mobile-game .lane{pointer-events:none;font-size:12px;padding-left:5px;line-height:1}.mobile-game .lane>span:first-child{padding:1px 3px;width:27px}.mobile-game .lane .off-label{font-size:10px;padding:1px 4px}.mobile-game .lane.opening:after{right:5%;font-size:8px;top:25%}.mobile-game .bird{width:72px;height:45px}.mobile-game #wall{width:40px}.mobile-game .timer-track{height:4px;flex:none}.mobile-game .controls,.mobile-game #touch-controls,.mobile-game>footer{display:none!important}
.mobile-game #tap-controls{position:absolute;z-index:8;right:6px;top:7px;gap:7px;padding:7px;border-radius:12px;background:#faf4dfed;box-shadow:0 4px 15px #193b3e33}.mobile-game #tap-controls:not([hidden]){display:flex}.mobile-game #tap-controls button{min-height:44px;min-width:44px;padding:8px 12px}.mobile-game #mobile-submit{background:var(--gold)}
.mobile-game #mobile-question{position:absolute;z-index:9;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));border:1px solid #a7bba0;border-radius:17px;background:#faf6e7;box-shadow:0 -3px 15px #173e3e12;overflow:hidden;touch-action:pan-y pinch-zoom}
.mobile-game #question-tab{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;border-radius:0;padding:7px 12px;background:#e2e9d5;box-shadow:none}.mobile-game #mobile-frequency{font-size:20px}.mobile-game #question-tab-label{font-size:13px}
.mobile-game #question-summary{padding:0 12px 9px}.mobile-game .mobile-prompt{font-size:14px;font-weight:800;margin:6px 0}.mobile-game .mobile-ear-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-game .mobile-ear{display:flex;flex-direction:column;gap:2px;min-width:0}.mobile-game .mobile-ear>span:first-child{font-size:11px;line-height:1.2}.mobile-game .mobile-ear strong{font-size:17px;line-height:1.2}.mobile-game .mobile-device{font-size:13px;line-height:1.3}.mobile-game .mobile-thresholds{font-size:14px;white-space:nowrap;line-height:1.4}.mobile-game .mobile-thresholds span{font-size:11px}.mobile-game .mobile-nbn{display:flex;justify-content:space-between;gap:5px;border-top:1px solid #d9dfcc;padding-top:5px;margin:5px 0 0;font-size:14px}.mobile-game .mobile-baseline{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:1.25;margin:5px 0 0}.mobile-game .mobile-baseline strong{font-size:13px;white-space:nowrap}
.mobile-game #mobile-question.expanded{max-height:66%;display:flex;flex-direction:column}.mobile-game #question-tab{flex:none}.mobile-game #question-details{overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;padding:0 14px 14px}.mobile-game #question-details[hidden]{display:none}.mobile-game .mission{padding:0;display:block}.mobile-game .assessment{margin-top:12px}.mobile-game .question-facts{gap:10px}.mobile-game .question-facts dt{min-width:0;font-size:16px}.mobile-game .question-facts dd{font-size:20px}.mobile-game .question-facts>.transducer-fact dd{font-size:20px}.mobile-game .question-facts>.transducer-fact dt{font-size:14px}.mobile-game .ear-levels .threshold-chip b{font-size:18px}.mobile-game h1{font-size:21px;margin:14px 0}.mobile-game #coach{margin:12px 0 0;padding:12px 0 0;font-size:14px}.mobile-game #coach p{font-size:14px}.mobile-game #coach small{display:none}.mobile-game .aid-section>button{min-height:44px;font-size:13px}.mobile-game #aid{margin-top:5px}.mobile-game .baseline-note>span{font-size:12px}
.mobile-game #menu{width:calc(100% - 20px);max-width:560px;max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:20px;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;scroll-padding:16px}.mobile-game #menu h2{font-size:29px;margin:5px 0 12px}.mobile-game #menu h2:focus{outline:none}.mobile-game #menu button{min-height:44px}.mobile-game #menu .menu-actions{margin-top:12px;gap:8px}.mobile-game #menu .menu-actions button{font-size:14px;padding:10px}.mobile-game #menu::backdrop{backdrop-filter:none;background:#173e3e75}
.mobile-game #menu[data-view=home]{margin:0 auto;top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:72%;text-align:center;background:#faf4dff5}.mobile-game #menu[data-view=home] .hero-bird{width:110px;margin:-3px auto 0}.mobile-game #menu[data-view=home] p{line-height:1.45;margin:8px 0}.mobile-game:not(.run-active) #bird{width:160px;height:98px;top:24%;left:50%}.mobile-game:not(.run-active) .flight-top{visibility:hidden}
.mobile-game #review-entry{display:flex;flex-direction:column}.mobile-game #review-entry>.assessment{order:4;margin-top:14px}.mobile-game #review-entry>.menu-tag{order:0}.mobile-game #review-entry>h3{order:0;margin:6px 0}.mobile-game #review-entry>.answer-comparison{order:1}.mobile-game #review-calculation{order:2;margin:7px 0}.mobile-game #review-entry>.note{order:3;margin:3px 0}.mobile-game .answer-comparison p{margin:5px 0;padding:10px}.mobile-game .review-swipe{display:none}
@media(max-height:500px) and (min-width:560px){.mobile-game{--question-width:300px}.mobile-game main{padding-right:calc(var(--question-width) + 16px + env(safe-area-inset-right))}.mobile-game .play-area{height:100%}.mobile-game #mobile-question{left:auto;width:var(--question-width);top:0;bottom:8px;max-height:100%;overflow:auto;overscroll-behavior:contain}.mobile-game #mobile-question.expanded{max-height:100%}.mobile-game #question-details{min-height:0}.mobile-game .mobile-ear>span:first-child{font-size:10px}.mobile-game .mobile-thresholds{font-size:13px}.mobile-game .mobile-thresholds span{font-size:10px}.mobile-game #menu[data-view=home]{top:50%;bottom:auto;transform:translateY(-50%);margin:0 12px 0 auto;width:350px;max-height:94%}.mobile-game #menu[data-view=home] .hero-bird{display:none}.mobile-game:not(.run-active) main{padding-right:8px}.mobile-game:not(.run-active) #bird{left:24%;top:45%}.mobile-game #gesture-cue{font-size:11px}.mobile-game #mobile-level{font-size:16px}}

.mobile-game button,.mobile-game a{-webkit-tap-highlight-color:transparent}.mobile-game #question-details .assessment>.question-frequency{display:none}.mobile-game .menu-exit{display:flex;min-height:44px;align-items:center;justify-content:center;color:var(--ink);font-size:13px;font-weight:700;margin-top:10px}.mobile-game #question-details #coach{margin:0 0 10px;border-top:0;border-bottom:1px solid #cbd2bd;padding:12px 0}.mobile-game #question-details #coach:empty{display:none}.mobile-game .mobile-baseline{font-size:12px}
@media(max-height:650px) and (max-width:559px){.mobile-game:not(.run-active) #bird{width:120px;height:74px;top:8%}.mobile-game #menu[data-view=home]{padding:16px}.mobile-game #menu[data-view=home] h2{font-size:26px}}

.mobile-game .mobile-ear>span:first-child{font-size:13px}.mobile-game #menu:not([data-view=home]) .menu-exit{justify-content:flex-end;margin:0 0 4px}.mobile-game .mobile-review-details{order:4;margin:10px 0}.mobile-game .mobile-review-details summary{min-height:44px;padding:12px;background:#e2e9d5;border-radius:10px;font-weight:750;cursor:pointer;touch-action:manipulation}.mobile-game #review-entry>h3{display:none}.mobile-game .mobile-review-details .assessment{margin-top:8px}

/* Public Toolkit integration: preserve desktop navigation; reuse its routes inside phone menus. */
.mobile-game> .toolkit-nav,.mobile-game #menu>.toolkit-nav{display:none}.mobile-game .mobile-toolkit-nav{border:0;padding:0;gap:16px}.mobile-game .mobile-toolkit-nav a{min-height:44px}
