:root{--ink:#07194e;--paper:#fff8e8;--gold:#dba54a;--gold-light:#ffe2a1;--serif:Georgia,'Times New Roman',serif;--round:'Avenir Next Rounded Pro','Arial Rounded MT Bold','Trebuchet MS',sans-serif;--frame:0 3px 12px #795d4326;--gate-size:min(32vw,43vh,460px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{color:var(--ink);font-family:var(--round);background:#c6cced;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font-family:var(--round);color:var(--ink);cursor:pointer;border:0;touch-action:manipulation}button:focus-visible{outline:4px solid #285db2;outline-offset:6px}button:disabled{cursor:default}button[hidden],[hidden]{display:none!important}svg{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}#c,.sky-backdrop{position:fixed;inset:0;width:100%;height:100%}#c{z-index:0}.sky-backdrop{z-index:-1;background:linear-gradient(#afbcef,#f3d6d8 65%,#c4c9ec)}.sky-only #c{display:none}.sky-only .sky-backdrop{z-index:0}header{position:fixed;top:max(16px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-start;z-index:5;pointer-events:none}.brand{display:flex;align-items:center;margin:0;font-family:var(--serif);font-size:clamp(24px,3.5vw,51px);line-height:.86;letter-spacing:-1.5px;text-shadow:0 2px 0 #fff8e8,0 0 18px #fff8e8}.brand svg{width:clamp(42px,5.4vw,80px);height:clamp(42px,5.4vw,80px);color:#b7801b;fill:#f5d589;stroke-width:1.2;margin-right:7px}.brand span{padding-top:5px}nav{display:flex;gap:12px;pointer-events:auto}.icon-button{width:clamp(56px,6.8vw,94px);height:clamp(56px,6.8vw,94px);display:grid;place-items:center;background:var(--paper);border:2px solid var(--gold);border-radius:29%;box-shadow:inset 0 0 0 4px #fff, inset 0 0 0 5px #e7c487,var(--frame)}.icon-button svg{width:52%;height:52%;stroke-width:2.5}.icon-button:hover{background:#fffdf4}.round{border-radius:50%}#pause-button svg{stroke-width:5}.overlay{position:fixed;inset:0;z-index:4;display:grid;place-items:center;padding:110px 28px 28px;background:#ede8f122}.welcome-content{display:flex;align-items:center;flex-direction:column;max-height:100%}.passport-art{width:min(760px,76vw,calc((100dvh - 250px)*1.34));filter:drop-shadow(0 15px 25px #37345233);margin-bottom:12px}.welcome-content p{font-size:20px;color:var(--ink);text-shadow:0 0 9px white;line-height:1.4;margin:18px 0 0}.primary,.secondary{font-size:clamp(24px,2.5vw,34px);font-weight:800;min-height:66px;padding:14px 35px;border-radius:18px;border:2px solid #bd8936;background:linear-gradient(#ffe9b2,#f3c66d);box-shadow:inset 0 0 0 3px #ffefc7,0 5px 0 #b5853c,0 8px 16px #29305022;display:flex;align-items:center;justify-content:center;gap:15px}.primary svg{width:26px;height:26px}.primary:active{transform:translateY(3px);box-shadow:inset 0 0 0 3px #ffefc7,0 2px 0 #b5853c}.secondary{font-size:24px;font-weight:700;background:var(--paper);box-shadow:var(--frame)}.small{font-size:25px;min-height:60px;padding:10px 28px}#flight{position:absolute;inset:0}.prompt-panel{position:absolute;top:8%;left:50%;transform:translateX(-50%);width:max-content;max-width:54%;min-height:128px;background:var(--paper);border:3px solid var(--gold);box-shadow:inset 0 0 0 6px #ffe7b7,inset 0 0 0 7px #dfb26a,var(--frame);border-radius:16px;display:flex;align-items:center;justify-content:center;gap:20px;padding:18px 25px;z-index:2}.prompt-panel h2{font-size:clamp(28px,4vw,59px);font-weight:900;line-height:1.12;margin:0;text-align:center;letter-spacing:-1px}.prompt-panel .icon-button{flex-shrink:0;width:clamp(60px,6.3vw,92px);height:clamp(60px,6.3vw,92px)}#context-picture{width:90px;height:90px;flex-shrink:0}.gates{position:absolute;top:25%;left:0;right:0;display:flex;justify-content:center;gap:5.5vw;z-index:2}.gate{position:relative;width:var(--gate-size);height:var(--gate-size);border-radius:50%;border:8px solid #ffd26a;background:radial-gradient(circle,transparent 61%,#fff6c8 63%,#e3aa38 65%,#fff1a8 67%,#ffe39d 69%,transparent 71%);box-shadow:0 0 0 2px #fff9d2,0 0 0 5px #efc664,0 0 24px 9px #fff0b88c,inset 0 0 15px 6px #ffdf7c;display:flex;align-items:center;justify-content:center;padding:9.5%;transition:transform .75s ease,opacity .6s ease,box-shadow .2s;isolation:isolate}.gate:hover:not(:disabled){box-shadow:0 0 0 3px #fff9d2,0 0 0 6px #efc664,0 0 40px 16px #fff2c4,inset 0 0 16px 8px #ffdf7c}.gate-inner{position:absolute;inset:14%;border-radius:50%;background:var(--paper);outline:2px dashed #dba23e;outline-offset:-9px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 12px 14px}.gate-label{font-size:clamp(26px,4.1vw,60px);line-height:1.05;font-weight:900;letter-spacing:-1px;margin:3px 0 0}.gate-star{position:absolute;top:-9%;left:39%;width:22%;height:22%;background-image:url('assets/airy-pictures.webp');background-size:500% 400%;background-position:100% 66.666%;filter:drop-shadow(0 0 4px #fff7be)}.gate-star.bottom{top:auto;bottom:-9%;width:17%;height:17%;left:41.5%}.picture{display:block;width:100%;height:100%;background-repeat:no-repeat}.gate .picture{width:75%;height:67%;max-height:67%;flex-shrink:0}.item-picture{background-image:url('assets/airy-pictures.webp');background-size:500% 400%}.family-picture{background-image:url('assets/family.webp');background-size:200% 200%}.single-picture{object-fit:contain;object-position:center;max-width:100%}.gate .single-picture{height:72%;width:82%}.count-picture{display:flex;justify-content:center;align-content:center;align-items:center;flex-wrap:wrap;gap:4%;padding:7%;height:65%!important;width:85%!important}.count-picture .picture{width:32%;height:36%;flex:none}.direction-picture{display:grid;place-items:center}.direction-picture svg{width:66%;height:66%;stroke-width:3;color:#4370bc}.direction-picture.stop svg{color:#c65442}.direction-picture.go svg{color:#4a9475}.gate.passed{transform:scale(1.85);opacity:0}.gate.faded{opacity:.18}.gate.retry{animation:wobble .45s ease}.gate.help{box-shadow:0 0 0 3px white,0 0 50px 20px #fff0b8,inset 0 0 15px 6px #ffdf7c}.rider{position:absolute;width:min(38vw,490px);left:50%;top:64%;transform:translateX(-50%);z-index:3;pointer-events:none;transition:left .85s ease,top .85s ease,scale .85s ease;filter:drop-shadow(0 14px 11px #46488125)}.rider img{width:100%;display:block;animation:bob 3.2s ease-in-out infinite}.rider.flying{top:40%;scale:.48}.progress-panel{position:absolute;left:max(28px,env(safe-area-inset-left));bottom:max(28px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:20px;padding:14px 22px;background:var(--paper);border:2px solid var(--gold);border-radius:35px;box-shadow:inset 0 0 0 4px #ffedca,var(--frame);font-size:25px}.progress-panel b{font-weight:800}#dots{display:flex;gap:8px}#dots i{width:23px;height:23px;border-radius:50%;border:2px solid #c5a176;background:#ede0c9}#dots i.done{background:#edb13e;border-color:#be8831}#dots i.current{box-shadow:0 0 0 3px #fff,0 0 0 4px #be8831}.bottom-message{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);text-align:center;min-width:280px;display:flex;align-items:center;flex-direction:column;z-index:4}#feedback{margin:0;font-weight:800;font-size:clamp(20px,2.1vw,31px);text-shadow:0 0 9px white,0 0 12px white;line-height:1.3}#next{margin-top:10px}.bottom-message:has(#next:not([hidden])){bottom:max(18px,env(safe-area-inset-bottom))}.paper-dialog{color:var(--ink);font-family:var(--round);background:var(--paper);border:3px solid var(--gold);border-radius:24px;box-shadow:inset 0 0 0 6px #ffedca,0 20px 60px #13244d44;padding:32px 35px;width:min(850px,92vw);max-height:86dvh;overflow:auto}.paper-dialog::backdrop{background:#253a5855;backdrop-filter:blur(5px)}.paper-dialog h2{font:700 40px/1.2 var(--serif);margin:0 60px 5px 0}.paper-dialog h3{font-size:25px;margin:27px 0 16px}.dialog-intro{font-size:20px;margin:8px 0 20px}.close{position:absolute;right:20px;top:20px;width:55px;height:55px}.chapter-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.chapter-button{background:transparent;border:2px solid #e4c489;border-radius:18px;padding:12px;min-height:134px;display:flex;flex-direction:column;align-items:center;position:relative}.chapter-button:hover{background:#ffedc6}.chapter-button .picture{width:65px;height:70px}.chapter-button b{font-size:20px;line-height:1.2;margin-top:6px}.stamp{position:absolute;right:6px;top:4px;font-size:21px;color:#458761}.collection{display:flex;gap:14px;flex-wrap:wrap}.word{width:92px;display:flex;align-items:center;flex-direction:column;font-size:17px;font-weight:700;text-align:center}.word .picture{width:65px;height:70px;margin-bottom:4px}.parent-note{font-size:14px;color:#67708a;line-height:1.4;margin:25px 0 0}.empty-words{font-size:18px;color:#67708a}.compact{width:min(480px,90vw);text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}.compact:not([open]){display:none}.compact h2{margin:0;font-size:38px}.compact .primary,.compact .secondary{width:100%;font-size:25px}.compact p{font-size:21px;line-height:1.4;margin:0}.rest-dragon{width:75%;margin:-10px 0}.text-button{font-size:19px;padding:12px;min-height:48px;background:none;text-decoration:underline;text-underline-offset:4px}.finish-star{width:110px;height:100px;background:url('assets/airy-pictures.webp') 100% 66.666% /500% 400%;display:block}.spark{position:absolute;width:10px;height:10px;background:#ffe098;border-radius:50%;box-shadow:0 0 8px #fff;animation:spark 1.2s ease-out forwards;z-index:6;pointer-events:none}#sparkles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
@keyframes bob{50%{transform:translateY(-12px) rotate(-1deg)}}@keyframes wobble{25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}@keyframes spark{to{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0}}
@media(max-width:1100px){header{left:18px;right:18px;top:14px}nav{gap:8px}.prompt-panel{min-height:99px;gap:14px;padding:17px 22px;top:12%;max-width:66%}.gates{top:30%}.progress-panel{font-size:19px;padding:12px 16px;gap:12px;bottom:20px;left:20px}#dots{gap:6px}#dots i{width:17px;height:17px}.bottom-message{bottom:22px;left:65%;min-width:240px}.rider{top:66%}.gate-inner{padding:15px 8px 12px}.gate-label{margin-top:0}}
@media(orientation:portrait){:root{--gate-size:min(41vw,30vh)}header{top:max(15px,env(safe-area-inset-top))}.brand{font-size:32px;letter-spacing:-1px}.brand svg{width:48px;height:48px}nav{gap:7px}.icon-button{width:58px;height:58px}.prompt-panel{top:17%;width:87%;max-width:none;min-height:113px;gap:12px;padding:20px}.prompt-panel h2{font-size:clamp(27px,4.7vw,42px)}.gates{top:36%;gap:7vw}.gate-label{font-size:clamp(25px,5.2vw,47px)}.gate{border-width:6px}.rider{width:62vw;top:64%}.progress-panel{bottom:max(85px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap}.bottom-message{bottom:max(25px,env(safe-area-inset-bottom));left:50%;width:90%}.bottom-message:has(#next:not([hidden])){bottom:14px}.progress-panel:has(+.bottom-message #next:not([hidden])){bottom:127px}.passport-art{width:min(94vw,calc((100dvh - 270px)*1.34))}.overlay{padding-top:105px}.welcome-content p{font-size:18px}.paper-dialog{padding:28px 22px}.paper-dialog h2{font-size:31px}.chapter-list{grid-template-columns:repeat(2,1fr)}#context-picture{width:65px;height:70px}.rider.flying{top:45%}}
@media(max-height:600px) and (orientation:landscape){:root{--gate-size:43vh}.brand{font-size:27px}.brand svg{width:43px;height:43px}.icon-button{width:52px;height:52px}.prompt-panel{top:8%;min-height:78px;padding:10px 18px;max-width:55%}.prompt-panel h2{font-size:29px}.prompt-panel .icon-button{width:50px;height:50px}.gates{top:31%;gap:12vw}.gate-label{font-size:30px}.rider{width:29vw;top:68%}.progress-panel{bottom:12px;left:12px;padding:8px 12px;font-size:16px}#dots i{width:13px;height:13px}.bottom-message{bottom:13px;left:65%}#feedback{font-size:19px}.small{min-height:46px;font-size:19px;padding:8px 20px}.bottom-message:has(#next:not([hidden])){bottom:8px}.passport-art{width:min(65vw,calc((100dvh - 195px)*1.34))}.overlay{padding-top:72px}.welcome-content p{font-size:16px;margin-top:12px}.primary{min-height:51px;font-size:23px;padding:11px 24px}#context-picture{width:55px;height:55px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition-duration:.01s!important}}.gentle *, .gentle *::before,.gentle *::after{animation:none!important;transition-duration:.01s!important}
.math-context{display:flex!important;align-items:center;gap:6px;width:165px!important}.math-context>.count-picture{width:70px;height:85px}.math-context b{font-size:25px}.word{background:transparent;padding:0}.speaking{box-shadow:0 0 0 3px #ffe6a5,0 0 15px #fff0ba}
.gate.faded{opacity:0;pointer-events:none}.passport-art{border-radius:10px}
body{touch-action:none}.gates{inset:0;display:block;pointer-events:none}.gate{position:absolute;transform:translate(-50%,-50%);padding:0;pointer-events:none;transition:opacity .35s ease;cursor:default}.gate.passed{transform:translate(-50%,-50%) scale(1.85);opacity:0}.gate-label{font-size:clamp(24px,4.1vw,60px)}.rider img{transform:rotate(var(--bank,0deg));animation:none}.gentle .rider img{transform:none}#steering-stick{position:absolute;width:90px;height:90px;transform:translate(-50%,-50%);border:2px solid #fff9da99;border-radius:50%;background:#fff8e826;z-index:7;pointer-events:none;display:grid;place-items:center}#steering-stick i{width:34px;height:34px;background:#ffe7a7aa;border:2px solid #fff;border-radius:50%}.rider.flying{top:62%;scale:1.05}
@media(orientation:portrait){.rider{width:48vw;top:60%}.rider.flying{top:55%;scale:.85}}
.gate-label{font-size:inherit}
.gate{border:5px solid #e8ba70;background:transparent;box-shadow:0 0 0 2px #fff6d7,0 0 0 5px #d3a75b80,0 0 26px 5px #ffda8d75,inset 0 0 0 2px #fff7d9}.gate-inner{background:#fff4dd;outline-color:#d4ad73}.number-gate .gate-star{display:none}.count-star svg{width:100%;height:100%;fill:#f5c463;stroke:#cf9b47;stroke-width:1.3}.gate-star{filter:drop-shadow(0 0 3px #fff6cc)}
/* Keep the longer Russian help beside the progress strip on landscape screens. */
@media(orientation:landscape){.bottom-message{left:76%;width:44%;min-width:0}#feedback{font-size:clamp(18px,1.55vw,24px)}.progress-panel{font-size:clamp(16px,1.5vw,23px);gap:14px}}

/* Dragging the sky steers the dragon without selecting page text. */
body{-webkit-user-select:none;user-select:none}#flight{touch-action:none}
/* Answer pictures float in the sky; only the outer gold gate stays visible. */
.gate-inner{background:transparent;outline:none}.gate-label{text-shadow:0 0 7px #fff8e8,0 0 12px #fff8e8,0 2px 1px #fff8e8}

/* Native category buttons sit on the blank lower page of the illustrated passport. */
.passport-scene{position:relative;width:min(900px,82vw,calc((100dvh - 270px)*1.34));flex-shrink:0;margin-bottom:16px;container-type:inline-size}
.passport-scene .passport-art{display:block;width:100%;margin:0}
.passport-picks{position:absolute;left:53%;right:6%;top:53%;bottom:12%;display:flex;flex-direction:column;gap:8px}
.passport-picks h2{font-family:var(--serif);font-weight:700;font-size:clamp(17px,2.6cqw,25px);line-height:1.1;margin:0;text-align:center}
.welcome-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));flex:1;gap:9px}
.passport-choice{display:flex;align-items:center;gap:4px;min-width:0;min-height:44px;padding:6px;background:linear-gradient(#fffdf5,#ffedc8);border:2px solid #cca35c;border-radius:14px;box-shadow:0 4px 0 #b18745,0 6px 9px #80603022;transition:transform .15s,box-shadow .15s,background .15s}
.passport-choice:hover{background:#fff1ca;transform:translateY(-2px);box-shadow:0 6px 0 #b18745,0 8px 12px #80603033}
.passport-choice:active{transform:translateY(3px);box-shadow:0 1px 0 #b18745}
.passport-choice .picture{width:clamp(26px,4cqw,44px);height:clamp(28px,4.7cqw,46px);flex-shrink:0}
.passport-choice b{font-size:clamp(13px,1.9cqw,19px);line-height:1.05;font-weight:800}
.choice-arrow{margin-left:auto;display:grid;place-items:center;width:12px;flex-shrink:0}.choice-arrow svg{width:100%;height:18px;stroke-width:3}
.more-adventures>svg{width:clamp(26px,4.5cqw,44px);height:clamp(28px,4.7cqw,46px);flex-shrink:0}
@media(orientation:portrait){.passport-scene{width:min(94vw,calc((100dvh - 290px)*1.34))}.passport-picks{gap:6px}.welcome-chapters{gap:7px}.passport-choice{padding:5px 7px;border-radius:12px}}
@media(max-width:600px){#welcome{overflow:auto;padding-top:100px}.welcome-content{max-height:none;width:100%}.passport-scene{width:min(94vw,460px);margin-bottom:20px}.passport-picks{position:relative;inset:auto;margin:10px 0 0;gap:12px}.passport-picks h2{font-size:24px}.welcome-chapters{grid-template-rows:repeat(3,64px);gap:12px}.passport-choice{padding:8px 15px;gap:10px}.passport-choice .picture,.more-adventures>svg{width:40px;height:44px}.passport-choice b{font-size:18px}.welcome-content p{text-align:center}}
@media(max-height:600px) and (orientation:landscape){.passport-scene{width:min(68vw,calc((100dvh - 170px)*1.34))}.passport-picks{gap:3px;top:51%;bottom:10%}.passport-picks h2{font-size:13px}.welcome-chapters{gap:4px}.passport-choice{min-height:28px;padding:2px 4px;border-width:1px;border-radius:8px}.passport-choice .picture,.more-adventures>svg{width:22px;height:22px}.passport-choice b{font-size:11px}.choice-arrow{width:9px}.passport-scene{margin-bottom:8px}}
.welcome-chapters{min-height:0}.passport-choice{overflow:hidden}
.passport-choice .count-picture{width:clamp(26px,4.5cqw,44px)!important;height:clamp(28px,4.7cqw,46px)!important;padding:0;gap:0;flex-shrink:0}
.passport-choice .count-star{width:43%;height:44%;flex:none}
@media(max-width:600px){.passport-choice .count-picture{width:40px!important;height:44px!important}}
@media(max-height:600px) and (orientation:landscape){.passport-choice .count-picture{width:22px!important;height:22px!important}}

/* Additional machines share one airy watercolor atlas with transparent gutters. */
.machine-picture{background-image:url('assets/machines-more.webp');background-size:200% 200%}
.activity-picture{background-image:url('assets/phrases.webp');background-size:400% 300%}
.prompt-copy{min-width:0;text-align:center}
#phrase-meaning{margin:9px 0 0;font-size:clamp(15px,1.7vw,22px);line-height:1.25;color:#64708e}
.phrase-panel h2{font-size:clamp(25px,3.5vw,46px)}
.phrase-word{width:160px}
.phrase-word span{overflow-wrap:anywhere}
.prompt-panel{z-index:5}
@media(orientation:portrait){.phrase-panel{max-width:91%;width:91%}.phrase-panel h2{font-size:clamp(25px,4.3vw,37px)}}

/* Familiar, labeled exits and restart stay visible while flying. */
nav .nav-label{width:clamp(76px,6.8vw,94px);min-width:0;padding:7px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:29%}
nav .nav-label svg{width:27px;height:27px;flex-shrink:0}nav .nav-label span{font-size:14px;font-weight:800;line-height:1.1}
#book-back{margin:0 0 18px;font-size:19px;min-height:48px;padding:10px 20px}
.word-collection{margin-top:20px}.word-collection summary,.pause-settings summary{font-size:20px;font-weight:800;cursor:pointer;min-height:48px;padding:12px 0}
.word-collection .collection{margin-top:12px}.pause-settings{width:100%;text-align:center}.pause-settings .secondary{margin-top:12px}
#pause-dialog .rest-dragon{width:42%;margin:-5px 0}#pause-dialog{gap:14px}
.chapter-button .count-picture,.word .count-picture{width:65px!important;height:70px!important;padding:0;gap:2px}
.chapter-button .count-star,.word .count-star{width:28%;height:30%;flex:none}
@media(orientation:portrait){nav .nav-label{min-width:76px;padding:5px 10px}.nav-label svg{width:24px;height:24px}}
@media(max-width:600px){header{flex-wrap:wrap;gap:8px;left:14px;right:14px}.brand{font-size:24px}.brand svg{width:35px;height:35px}nav{width:100%;justify-content:flex-end;gap:7px}nav .icon-button{width:48px;height:48px}nav .nav-label{width:auto;min-width:76px;padding:4px 8px}nav .nav-label svg{width:21px;height:21px}nav .nav-label span{font-size:13px}.prompt-panel{top:20%;padding:12px;min-height:88px}.overlay,#welcome{padding-top:145px}.paper-dialog h2{font-size:28px}.chapter-button{min-height:120px}.chapter-button b{font-size:18px}.paper-dialog{padding:24px 18px}.paper-dialog .close{width:44px;height:44px;right:15px;top:15px}}
/* Gates can leave the view without expanding the page, and small-screen sums stay readable. */
#flight{overflow:hidden}
@media(max-width:600px){.prompt-panel:has(.math-context:not([hidden])){flex-wrap:wrap}.math-context{width:100%!important;height:60px!important;justify-content:center}.math-context>.count-picture{width:70px!important;height:55px!important;padding:0;gap:2px}.prompt-panel:has(.math-context:not([hidden])) h2{white-space:nowrap}.math-context .count-star{width:27%;height:32%;flex:none}}

/* Keep category art and captions in matching centered slots. */
.chapter-button{min-height:140px;height:140px;padding:10px;justify-content:center;gap:6px}
.chapter-button>.picture{width:60px;height:64px;flex-shrink:0}
.chapter-button .count-star{width:29%;height:40%;flex:none}
.chapter-button b{margin:0;min-height:44px;font-size:18px;line-height:1.2;display:flex;align-items:center;justify-content:center;text-align:center}
#chapters .count-picture{width:60px!important;height:64px!important}
/* Give the learning prompt its own space below the top controls. */
@media(min-width:1101px) and (orientation:landscape){.prompt-panel{top:max(8%,128px)}}
@media(max-height:600px) and (orientation:landscape){.prompt-panel{top:max(8%,86px)}}
@media(max-width:600px){.progress-panel{flex-direction:column;gap:7px;padding:9px 14px;font-size:16px;max-width:calc(100vw - 28px)}#dots{gap:5px}#dots i{width:14px;height:14px}}

/* Show steering directly instead of leaving the illustrated dragon centered. */
.rider:not(.flying){transition:left .12s linear,top .12s linear,scale .12s linear}

.gate.aimed{border-color:#ffe0a0;box-shadow:0 0 0 2px #fff9e6,0 0 0 5px #eac574,0 0 34px 9px #ffe2a1a0,inset 0 0 0 2px #fff7d9}

/* Scale the artwork inside its centered holder so it stays aimed at the gate. */
.rider.flying{scale:1}
.rider img{transform:rotate(var(--bank,0deg)) scale(var(--dragon-scale,1))}
.gentle .rider img{transform:scale(var(--dragon-scale,1))}

@media(orientation:landscape){.rider{width:min(38vw,490px,44vh)}}
