#typing-reference,#typing-done,#typing-spacer,#typing-feedback,#typing-hint{display:none}#typing-dock{margin:8px 0}#typing-dock #form{margin:0}
@media(max-width:760px),(pointer:coarse){
 body.typing-focused main > :not(#typing-scene):not(.lesson),body.typing-focused .lesson > :not(#typing-dock){display:none!important}
 body.typing-focused .lesson{border:0;background:transparent;margin:0;padding:0}
 body.typing-focused #typing-scene{position:fixed;z-index:999;display:flex;flex-direction:column;gap:0;overflow:auto;overscroll-behavior:contain}
 body.typing-focused #typing-scene .field{flex:1 1 155px;min-height:100px;max-height:155px;margin:0}
 body.typing-focused #typing-scene .character{top:auto;bottom:30px}
 body.typing-focused #typing-scene .low-beam{top:auto;bottom:60px}
 body.typing-focused #typing-scene .meters{flex-shrink:0;font-size:15px;margin:8px 0}
 body.typing-focused #typing-scene .track{flex-shrink:0;margin:0;height:5px}
 body.typing-focused #typing-scene #scene-caption{flex-shrink:0}
 body.typing-focused #typing-feedback:not(:empty){display:block;font-size:16px;line-height:1.4;margin:6px 0 0}
 body.typing-focused.typing-result .lesson > #lesson-result{display:block!important;position:fixed;z-index:1000;padding:10px;background:#1B1524;border:1px solid #8E83A0;border-radius:12px;overflow:auto}
 body.typing-result #lesson-result #feedback{margin:0 0 8px;font-size:16px;line-height:1.4}
 body.typing-result #lesson-result #next{width:100%;margin:0;min-height:44px}
 body.typing-result #typing-scene .field{max-height:280px}
}
@media(max-width:760px),(pointer:coarse){
 body.typing-focused{padding-bottom:var(--typing-dock-space,180px)}
 body.typing-focused #typing-dock{position:fixed;z-index:1000;top:calc(100dvh - 170px);left:8px;width:calc(100% - 16px);padding:10px;background:#1B1524;border:1px solid #8E83A0;border-radius:12px;box-shadow:0 8px 35px #0009;margin:0;overflow:auto;overscroll-behavior:contain}
 body.typing-focused #typing-reference{display:block;margin:0 0 8px;color:#DDF59A;font-size:16px;line-height:1.45;max-height:min(92px,max(24px,calc(var(--typing-visible-height,350px) - 140px)));overflow:auto;overflow-wrap:anywhere;padding-right:2px}
 body.typing-focused #typing-done{display:block;min-height:44px;font-size:15px;padding:5px 10px;margin:0 0 8px auto;color:#FF8FB4}
 body.typing-focused #typing-spacer:not([hidden]){display:block}
 body.typing-focused #typing-dock input{font-size:16px;min-height:44px}body.typing-focused #typing-dock #cast{min-height:44px}
 body.typing-focused .field{position:relative!important;top:auto!important}body.keyboard-open header{display:block!important}
}
