:root{--navy:#071b2d;--navy-2:#0c2940;--ink:#112739;--paper:#f4f0e7;--white:#fffdf8;--teal:#00c2a8;--teal-dark:#008c82;--yellow:#ffd447;--coral:#ff6b55;--sky:#8bd8e7;--muted:#637482;--line:rgba(7,27,45,.13);--shadow:0 24px 70px rgba(4,24,39,.16)}
.visual-mode-badge{display:none;margin-left:9px;padding:4px 8px;border-radius:99px;background:#0b2d40;color:#ffd447;font-size:8px;font-weight:900;letter-spacing:.08em;vertical-align:middle}.visual-mode-badge.show{display:inline-flex}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:Manrope,system-ui,sans-serif}button{font:inherit;color:inherit}button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}.app-shell{min-height:100vh;overflow:hidden}.topbar{height:82px;padding:0 clamp(24px,5vw,78px);display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;position:relative;z-index:50;border-bottom:1px solid rgba(255,255,255,.1)}.brand{display:flex;align-items:center;gap:12px;background:none;border:0;color:white;text-align:left;cursor:pointer}.brand strong{display:block;font:700 16px/1 Space Grotesk;letter-spacing:.06em}.brand small{display:block;color:var(--yellow);font-size:8px;letter-spacing:.24em;margin-top:5px}.brand-mark{width:35px;height:35px;border:2px solid var(--teal);border-radius:50%;display:grid;place-items:center;position:relative}.brand-mark:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:var(--yellow);top:5px}.brand-mark i{position:absolute;width:3px;background:var(--teal);bottom:7px;border-radius:2px}.brand-mark i:nth-child(1){height:8px;left:9px}.brand-mark i:nth-child(2){height:15px}.brand-mark i:nth-child(3){height:11px;right:9px}.topbar nav{display:flex;gap:6px}.topbar nav button{border:0;background:transparent;color:#bed0da;padding:12px 16px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:700}.topbar nav button:hover,.topbar nav button.active{color:white;background:rgba(255,255,255,.08)}.icon-button,.pause-button{width:38px;height:38px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:white;border-radius:50%;cursor:pointer}.screen{display:none;min-height:calc(100vh - 82px)}.screen.active{display:block}.home-screen{position:relative;background:var(--navy);color:white;min-height:calc(100vh - 82px);overflow:hidden}.hero-copy{position:relative;z-index:5;width:53%;padding:clamp(55px,7vh,90px) 0 130px clamp(30px,7vw,110px)}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--teal);font-size:10px;font-weight:800;letter-spacing:.2em}.eyebrow>span{display:inline-block;width:26px;height:2px;background:currentColor}.hero-copy h1{font:700 clamp(48px,6.4vw,92px)/.94 Space Grotesk;margin:22px 0 26px;letter-spacing:-.055em}.hero-copy h1 em{font-style:normal;color:var(--yellow)}.hero-copy>p{max-width:600px;color:#bed0da;font-size:clamp(15px,1.45vw,19px);line-height:1.7}.hero-actions{display:flex;gap:12px;margin:34px 0 46px}.primary-button,.secondary-button{min-height:52px;border-radius:9px;padding:0 24px;font-weight:800;font-size:13px;cursor:pointer}.primary-button{border:0;background:var(--yellow);color:var(--navy);box-shadow:0 8px 25px rgba(255,212,71,.18)}.primary-button:hover{filter:brightness(1.05);transform:translateY(-1px)}.primary-button b{font-size:19px;margin-left:16px}.secondary-button{border:1px solid rgba(255,255,255,.25);background:transparent;color:inherit}.hero-stats{display:flex;gap:45px}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font:700 24px Space Grotesk;color:white}.hero-stats span{color:#7e98a8;font-size:10px;text-transform:uppercase;letter-spacing:.09em;margin-top:4px}.hero-world{position:absolute;inset:0 0 0 48%;overflow:hidden;background:linear-gradient(#66ccd9 0 58%,#147389 58% 66%,#0b3c55 66%)}.sun{position:absolute;width:150px;height:150px;border-radius:50%;background:#ffda58;right:13%;top:10%;box-shadow:0 0 0 22px rgba(255,218,88,.12)}.cloud{position:absolute;width:130px;height:24px;background:rgba(255,255,255,.55);border-radius:20px}.cloud:before,.cloud:after{content:"";position:absolute;background:inherit;border-radius:50%}.cloud:before{width:46px;height:46px;left:22px;bottom:0}.cloud:after{width:68px;height:68px;right:19px;bottom:0}.cloud-a{top:18%;left:5%;transform:scale(.7)}.cloud-b{top:8%;right:39%;transform:scale(.38);opacity:.5}.skyline{position:absolute;left:0;right:0;bottom:34%;height:29%;opacity:.28;background:linear-gradient(90deg,transparent 3%,#113e55 3% 10%,transparent 10% 12%,#113e55 12% 20%,transparent 20% 24%,#113e55 24% 31%,transparent 31% 37%,#113e55 37% 44%,transparent 44% 48%,#113e55 48% 56%,transparent 56% 62%,#113e55 62% 73%,transparent 73% 77%,#113e55 77% 89%,transparent 89%)}.bridge{position:absolute;left:-5%;right:-5%;bottom:33%;height:11px;background:#e7b67d;transform:rotate(-1deg)}.bridge:before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;background:repeating-linear-gradient(90deg,transparent 0 55px,#e7b67d 55px 60px)}.bridge i{position:absolute;width:85px;height:85px;border:8px solid #e7b67d;border-bottom:0;border-radius:50% 50% 0 0;top:3px}.bridge i:nth-child(1){left:3%}.bridge i:nth-child(2){left:30%}.bridge i:nth-child(3){left:58%}.bridge i:nth-child(4){left:84%}.water{position:absolute;bottom:25%;height:11%;left:0;right:0;background:repeating-linear-gradient(175deg,rgba(255,255,255,.19) 0 3px,transparent 3px 17px)}.hero-road{position:absolute;bottom:0;left:0;right:0;height:28%;background:#183342;border-top:14px solid #ddc797}.hero-road:after{content:"";position:absolute;top:13px;left:0;right:0;border-top:3px solid rgba(255,255,255,.8)}.road-lines{position:absolute;left:0;right:0;top:58%;border-top:5px dashed rgba(255,255,255,.56)}.hero-car{position:absolute;width:190px;height:68px;right:8%;top:25%;background:var(--coral);border-radius:25px 45px 12px 12px;z-index:2;box-shadow:inset 0 -10px rgba(0,0,0,.13)}.hero-car:before{content:"";position:absolute;left:42px;top:-39px;width:100px;height:45px;background:#173c51;border:8px solid var(--coral);border-bottom:0;border-radius:38px 48px 0 0}.hero-car i{position:absolute;bottom:-17px;width:36px;height:36px;border-radius:50%;background:#071b2d;border:7px solid #b7d6da}.hero-car i:first-child{left:24px}.hero-car i:last-child{right:24px}.guide-character{position:absolute;bottom:21%;left:14%;width:90px;height:184px;z-index:4}.guide-character .face{position:absolute;width:57px;height:62px;background:#9b563e;border-radius:45% 45% 42% 42%;left:16px;top:17px}.guide-character .hair{position:absolute;width:65px;height:44px;background:#172838;border-radius:50% 50% 30% 30%;left:12px;top:5px;z-index:2}.guide-character .body{position:absolute;width:76px;height:86px;border-radius:30px 30px 12px 12px;background:var(--yellow);top:68px;left:7px}.guide-character .body:after{content:"R";display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--navy);color:var(--yellow);font-weight:900;margin:20px auto}.guide-character .arm{position:absolute;width:19px;height:85px;background:#9b563e;border-radius:20px;right:-1px;top:73px;transform:rotate(-25deg)}.guide-character .legs{position:absolute;left:18px;top:145px;width:53px;height:45px;border-left:16px solid #19354c;border-right:16px solid #19354c}.sign-bubble{position:absolute;left:4%;bottom:50%;padding:14px 18px;background:white;color:var(--navy);font:600 13px/1.5 Space Grotesk;border-radius:10px;box-shadow:var(--shadow)}.sign-bubble:after{content:"";position:absolute;bottom:-9px;right:18px;border:10px solid transparent;border-top-color:white;border-bottom:0}.chapter-strip{height:83px;position:absolute;left:0;right:0;bottom:0;z-index:8;background:rgba(4,23,37,.86);backdrop-filter:blur(12px);display:flex;align-items:center;padding:0 clamp(30px,7vw,110px);gap:22px;border-top:1px solid rgba(255,255,255,.1)}.chapter-strip span{font-size:9px;color:var(--teal);letter-spacing:.15em}.chapter-strip strong{font:700 13px Space Grotesk}.chapter-strip small{color:#7693a3;margin-left:auto;font-size:10px}
.game-screen{background:#e8e2d6;padding:24px clamp(16px,4vw,60px) 42px}.game-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 auto 17px;max-width:1500px}.chapter-tag{font-size:9px;color:var(--teal-dark);font-weight:800;letter-spacing:.13em}.game-heading h2{font:700 27px Space Grotesk;margin:4px 0 0}.mission-goal{text-align:right}.mission-goal small{display:block;color:#7b898f;font-size:8px;letter-spacing:.14em}.mission-goal strong{font-size:12px}.game-hud{height:56px;background:var(--navy);color:white;border-radius:12px 12px 0 0;display:flex;align-items:center;padding:0 18px;max-width:1500px;margin:auto}.hud-life,.hud-fragments{display:grid;grid-template-columns:25px 35px;grid-template-rows:17px 12px;align-items:center}.hud-life>span,.hud-fragments>span{grid-row:1/3;color:var(--teal);font-size:19px}.hud-fragments>span{color:var(--yellow)}.hud-life strong,.hud-fragments strong{font:700 15px Space Grotesk}.hud-life small,.hud-fragments small,.hud-progress small{font-size:7px;letter-spacing:.1em;color:#7f9aaa}.hud-progress{display:flex;align-items:center;gap:12px;flex:1;justify-content:center}.hud-progress>div{width:32%;height:5px;background:#244358;border-radius:5px;overflow:hidden}.hud-progress i{display:block;height:100%;width:0;background:var(--teal);transition:width .2s}.hud-progress span{font-size:10px;color:#9fb2bf}.pause-button{margin-left:20px;width:31px;height:31px}.game-frame{position:relative;max-width:1500px;margin:auto;aspect-ratio:16/8.25;background:#8ddae6;overflow:hidden;border-radius:0 0 12px 12px;box-shadow:var(--shadow)}#game-canvas{width:100%;height:100%;display:block;image-rendering:auto}.game-overlay{position:absolute;inset:0;background:rgba(4,23,37,.62);backdrop-filter:blur(5px);display:grid;place-items:center;z-index:10}.game-overlay.hidden{display:none}.mission-card{background:var(--white);width:min(520px,87%);border-radius:16px;padding:34px 40px 30px;color:var(--navy);position:relative;text-align:center;box-shadow:var(--shadow)}.mission-number{position:absolute;right:20px;top:10px;font:700 70px Space Grotesk;color:#e9e5dc}.mission-card p{color:var(--teal-dark);font-size:11px;font-weight:800;position:relative}.mission-card h3{font:700 28px/1.15 Space Grotesk;margin:11px auto 25px;max-width:350px;position:relative}.control-list{display:flex;justify-content:center;gap:18px;margin-bottom:26px;color:#6c7d86;font-size:9px;font-weight:800}.control-list span{display:flex;align-items:center;gap:5px}.control-list kbd,.focus-hint kbd{background:#e8e5de;border:1px solid #cbc5b9;border-bottom-width:3px;border-radius:5px;padding:4px 7px;font:700 9px Manrope}.mission-card .primary-button{width:100%}.feedback-card{position:absolute;left:50%;top:24px;transform:translate(-50%,-140%);opacity:0;width:min(600px,90%);padding:14px 20px;background:rgba(255,253,248,.96);border-radius:12px;color:var(--navy);display:flex;gap:14px;align-items:center;box-shadow:0 12px 38px rgba(3,24,38,.23);z-index:8;transition:.35s ease}.feedback-card.show{transform:translate(-50%,0);opacity:1}.feedback-card.bad .feedback-icon{background:var(--coral)}.feedback-icon{width:39px;height:39px;flex:0 0 39px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:white;font-weight:900}.feedback-card small{display:block;color:var(--teal-dark);font-size:8px;font-weight:900;letter-spacing:.12em}.feedback-card.bad small{color:#c74a39}.feedback-card strong{display:block;font:700 14px Space Grotesk;margin:2px 0}.feedback-card p{font-size:10px;margin:0;color:#647681}.focus-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:rgba(7,27,45,.82);padding:8px 13px;border-radius:9px;color:white;display:none;align-items:center;gap:8px;font-size:8px;font-weight:800;letter-spacing:.1em}.focus-hint.show{display:flex}.mobile-controls{display:none;max-width:1500px;margin:12px auto 0;justify-content:space-between}.mobile-controls button{width:58px;height:50px;border:0;border-radius:12px;background:var(--navy);color:white;font-size:23px;touch-action:none}.mobile-controls .observe-control{margin-left:auto;background:var(--teal-dark)}
.content-screen{padding:55px clamp(24px,7vw,110px) 80px;background:var(--paper)}.content-header{display:flex;justify-content:space-between;align-items:flex-end;max-width:1300px;margin:0 auto 38px}.content-header h2{font:700 clamp(34px,4.5vw,60px)/1 Space Grotesk;letter-spacing:-.04em;margin:12px 0}.content-header p{color:var(--muted);margin:0;max-width:640px}.quiz-meter{display:flex;align-items:baseline;color:#819098}.quiz-meter strong{font:700 58px Space Grotesk;color:var(--navy)}.quiz-meter span{font-size:20px}.quiz-layout{max-width:1300px;margin:auto;display:grid;grid-template-columns:270px 1fr;gap:24px}.quiz-aside{background:var(--navy);color:white;padding:30px;border-radius:15px}.topic-label{color:var(--yellow);font-size:8px;letter-spacing:.17em;font-weight:800}.quiz-aside h3{font:700 20px Space Grotesk;margin:8px 0 24px}.quiz-dots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quiz-dots i{height:7px;border-radius:7px;background:#284358}.quiz-dots i.current{background:var(--yellow)}.quiz-dots i.correct{background:var(--teal)}.quiz-dots i.wrong{background:var(--coral)}.adaptive-note{margin-top:35px;padding-top:24px;border-top:1px solid #29445a;display:flex;gap:12px}.adaptive-note>span{color:var(--yellow)}.adaptive-note p{font-size:10px;line-height:1.6;color:#8fa6b4;margin:0}.adaptive-note strong{display:block;color:white;font-size:11px}.question-card{background:white;border-radius:15px;padding:clamp(25px,4vw,50px);box-shadow:0 14px 50px rgba(33,48,56,.08)}.question-context{font-size:8px;color:var(--teal-dark);font-weight:900;letter-spacing:.15em}.question-card>h3{font:600 clamp(20px,2.2vw,30px)/1.35 Space Grotesk;max-width:850px;margin:12px 0 28px}.answer-list{display:grid;gap:10px}.answer{display:flex;gap:14px;align-items:center;width:100%;text-align:left;padding:14px 17px;border:1px solid #d8dedf;border-radius:10px;background:white;cursor:pointer;font-size:13px}.answer:hover{border-color:var(--teal)}.answer.selected{border:2px solid var(--teal);background:#ecfaf7}.answer.correct{border-color:var(--teal);background:#e5f8f3}.answer.wrong{border-color:var(--coral);background:#fff0ed}.answer-letter{width:28px;height:28px;flex:0 0 28px;border-radius:7px;background:#edf0ee;display:grid;place-items:center;font-weight:800;font-size:10px}.answer.selected .answer-letter{background:var(--teal);color:white}.answer-explanation{display:none;margin:18px 0;padding:15px 18px;border-left:4px solid var(--teal);background:#eff8f5;font-size:12px;line-height:1.6}.answer-explanation.show{display:block}.question-card>.primary-button{margin-top:22px;float:right}.question-card>.primary-button:disabled{opacity:.45;cursor:not-allowed}.text-button{border:0;background:transparent;text-decoration:underline;cursor:pointer;color:#6f7e87;font-size:11px}.progress-grid{max-width:1300px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.progress-grid article{border-radius:15px;background:white;padding:25px;box-shadow:0 10px 35px rgba(33,48,56,.07)}.progress-grid .dark-card{background:var(--navy);color:white;grid-row:span 2}.mastery-card>small,.metric-card small,.topics-card small,.history-card>small{font-size:8px;letter-spacing:.15em;font-weight:800;color:#78909f}.mastery-ring{--value:0;position:relative;width:180px;height:180px;border-radius:50%;margin:26px auto;display:grid;place-items:center;background:conic-gradient(var(--teal) calc(var(--value)*1%),#203c50 0)}.mastery-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:var(--navy)}.mastery-ring strong,.mastery-ring span{position:absolute;z-index:1}.mastery-ring strong{font:700 41px Space Grotesk}.mastery-ring span{font-size:7px;letter-spacing:.14em;color:#89a0af;transform:translateY(31px)}.mastery-card>p{color:#89a0af;font-size:11px;line-height:1.65;text-align:center}.metric-card{display:flex;align-items:center;gap:17px}.metric-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:var(--navy);font-size:21px}.metric-icon.teal{background:#d5f7ef}.metric-icon.yellow{background:#fff3c2}.metric-card strong{display:block;font:700 28px Space Grotesk;margin-top:4px}.metric-card p{font-size:9px;color:#829098;margin:0}.topics-card{grid-column:span 2;grid-row:span 2}.card-title{display:flex;justify-content:space-between}.card-title h3,.history-card h3{font:700 20px Space Grotesk;margin:5px 0}.card-title>span{font-size:8px;color:#94a0a4}.topic-bars{display:grid;gap:17px;margin-top:25px}.topic-row{display:grid;grid-template-columns:135px 1fr 38px;align-items:center;gap:12px;font-size:10px;font-weight:700}.topic-row>div{height:7px;background:#e9ece9;border-radius:8px;overflow:hidden}.topic-row i{display:block;height:100%;background:var(--teal);border-radius:8px}.topic-row b{text-align:right}.recommend-card{background:var(--yellow)!important;box-shadow:none!important}.recommend-card>span{font-size:8px;font-weight:900;letter-spacing:.14em}.recommend-card h3{font:700 22px/1.2 Space Grotesk;margin:15px 0 9px}.recommend-card p{font-size:10px;line-height:1.6}.recommend-card button{border:0;border-bottom:1px solid;background:none;padding:5px 0;font-size:10px;font-weight:900;cursor:pointer}.history-card{grid-column:span 2}.history-list{display:flex;gap:10px;overflow:auto;margin-top:18px}.history-item{min-width:150px;padding:12px;background:#f1f2ee;border-radius:9px;font-size:9px}.history-item strong{display:block;font-size:10px;margin-bottom:3px}.empty-history{color:#8b989d;font-size:11px}.modal{position:fixed;inset:0;background:rgba(4,23,37,.72);z-index:100;display:none;place-items:center;backdrop-filter:blur(6px)}.modal.show{display:grid}.modal-card{width:min(460px,90%);padding:38px;background:var(--white);border-radius:16px;text-align:center;box-shadow:var(--shadow)}.modal-card h2{font:700 29px Space Grotesk;margin:15px 0 25px}.modal-card button{display:block;width:100%;margin-top:10px}.modal-card .secondary-button{color:var(--navy);border-color:#ccd1cf}.toast{position:fixed;right:25px;bottom:25px;z-index:200;background:var(--navy);color:white;padding:13px 18px;border-radius:10px;font-size:11px;box-shadow:var(--shadow);transform:translateY(100px);opacity:0;transition:.3s}.toast.show{transform:none;opacity:1}
@media(max-width:900px){.topbar{padding:0 18px;height:69px}.topbar nav{display:none}.screen{min-height:calc(100vh - 69px)}.hero-copy{width:100%;padding:52px 24px 390px}.hero-copy h1{font-size:52px}.hero-world{inset:auto 0 83px 0;height:330px}.hero-stats{gap:25px}.chapter-strip{padding:0 24px}.chapter-strip small{display:none}.game-screen{padding:16px 10px}.mission-goal{display:none}.game-heading h2{font-size:20px}.game-frame{aspect-ratio:16/10}.mobile-controls{display:flex;gap:8px}.hud-progress small{display:none}.hud-progress>div{width:55%}.quiz-layout{grid-template-columns:1fr}.quiz-aside{padding:20px}.adaptive-note{display:none}.content-header{align-items:flex-start}.quiz-meter{display:none}.progress-grid{grid-template-columns:1fr 1fr}.progress-grid .mastery-card{grid-row:span 1}.topics-card{grid-column:1/-1}.history-card{grid-column:1/-1}.content-screen{padding:38px 18px}.guide-character{transform:scale(.8);transform-origin:bottom}.sign-bubble{left:22%;bottom:57%}}
@media(max-width:560px){.hero-copy h1{font-size:43px}.hero-copy>p{font-size:14px}.hero-actions{flex-direction:column}.hero-stats strong{font-size:20px}.chapter-strip{gap:10px}.chapter-strip strong{font-size:11px}.game-hud{padding:0 10px}.hud-life,.hud-fragments{grid-template-columns:20px 30px}.hud-life small,.hud-fragments small{display:none}.hud-progress{gap:5px}.mission-card{padding:27px 22px}.control-list{gap:8px;flex-wrap:wrap}.progress-grid{grid-template-columns:1fr}.topics-card,.history-card{grid-column:1}.metric-card{min-height:110px}.content-header h2{font-size:36px}.answer{font-size:12px}.question-card{padding:24px 18px}.topic-row{grid-template-columns:105px 1fr 32px}.hero-world{height:315px}.hero-car{transform:scale(.7);transform-origin:right bottom}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media(max-width:900px){body{padding-bottom:66px}.topbar nav{display:flex;position:fixed;left:50%;bottom:8px;transform:translateX(-50%);width:min(520px,calc(100% - 20px));justify-content:space-around;background:rgba(7,27,45,.96);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:5px;box-shadow:0 10px 35px rgba(0,0,0,.25);backdrop-filter:blur(12px);z-index:90}.topbar nav button{flex:1;padding:10px 6px;font-size:10px}}
.hero-copy>p{max-width:510px}
@media(max-width:560px){.mission-card{padding:14px 16px}.mission-card .mission-number{font-size:48px}.mission-card p{margin:2px 0}.mission-card h3{font-size:20px;margin:6px auto 12px}.mission-card .control-list{margin-bottom:10px;font-size:7px}.mission-card .control-list kbd{padding:2px 4px;font-size:7px}.mission-card .primary-button{min-height:40px}}
.hud-speed{display:flex;align-items:baseline;gap:3px;margin:0 18px}.hud-speed strong{font:700 16px Space Grotesk;color:var(--yellow)}.hud-speed small{font-size:7px;color:#7f9aaa;letter-spacing:.08em}
@media(max-width:560px){.hud-speed{margin:0 7px}.hud-speed small{display:none}}
@media(max-width:560px){.mobile-controls{gap:6px}.mobile-controls button{width:52px}}
@media(max-width:900px){.game-frame{aspect-ratio:4/3}}
.mission-card .tutorial-controls{gap:12px;margin-bottom:22px}.mission-card .tutorial-controls span{gap:6px;padding:7px 10px;border-radius:9px;background:#f1efe9;color:#425963;text-transform:uppercase;letter-spacing:.06em}.mission-card .tutorial-controls kbd{min-width:27px;padding:4px 7px;color:#0b2d40;background:#fff;border-color:#d6d0c4;font-size:12px}

/* A jornada ocupa exatamente a janela: sem rolagem e sem cortar o canvas. */
body:has(#journey.active){height:100dvh;min-height:0;overflow:hidden;padding-bottom:0}
body:has(#journey.active) .app-shell{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body:has(#journey.active) .topbar{height:clamp(52px,7vh,68px);flex:0 0 clamp(52px,7vh,68px);padding-inline:clamp(14px,3vw,48px)}
body:has(#journey.active) .brand-mark,body:has(#journey.active) .brand-mark svg{width:35px;height:35px}
body:has(#journey.active) main{flex:1;min-height:0;overflow:hidden}
body:has(#journey.active) .game-screen{height:100%;min-height:0;padding:7px clamp(8px,2vw,28px) 8px;overflow:hidden;grid-template-rows:auto 46px minmax(0,1fr) auto;align-content:stretch}
body:has(#journey.active) .game-screen.active{display:grid}
body:has(#journey.active) .game-heading{width:100%;max-width:none;min-height:30px;margin:0 auto 5px;align-items:center}
body:has(#journey.active) .game-heading h2{font-size:clamp(17px,2.2vh,23px);margin-top:1px}
body:has(#journey.active) .game-hud{width:100%;max-width:none;height:46px;min-height:46px;border-radius:10px 10px 0 0}
body:has(#journey.active) .game-frame{align-self:stretch;justify-self:center;width:auto;max-width:100%;height:100%;min-height:0;aspect-ratio:16/9;border-radius:0 0 10px 10px}
body:has(#journey.active) .mobile-controls{flex:0 0 auto;width:100%;max-width:none;margin:6px auto 0}

@media(max-width:900px){
  body:has(#journey.active) .topbar nav{display:none}
  body:has(#journey.active) .game-screen{grid-template-rows:auto 42px minmax(0,1fr) 44px;padding:5px 7px 6px}
  body:has(#journey.active) .game-heading{min-height:25px;margin-bottom:3px}
  body:has(#journey.active) .game-heading h2{font-size:17px}
  body:has(#journey.active) .game-hud{height:42px;min-height:42px;padding-inline:8px}
  body:has(#journey.active) .game-frame{aspect-ratio:16/9}
  body:has(#journey.active) .mobile-controls{height:40px;margin-top:4px;align-items:stretch}
  body:has(#journey.active) .mobile-controls button{width:clamp(46px,11vw,58px);height:40px;font-size:18px;border-radius:9px}
}

@media(max-height:650px){
  body:has(#journey.active) .topbar{height:48px;flex-basis:48px}
  body:has(#journey.active) .brand small,body:has(#journey.active) .mission-goal{display:none}
  body:has(#journey.active) .game-heading{min-height:22px}
  body:has(#journey.active) .chapter-tag{font-size:7px}
  body:has(#journey.active) .game-heading h2{font-size:15px}
  body:has(#journey.active) .game-screen{grid-template-rows:auto 39px minmax(0,1fr) auto;padding-top:4px}
  body:has(#journey.active) .game-hud{height:39px;min-height:39px}
}

/* Paradas pedagógicas entre as fases */
.mission-card.checkpoint-card{width:min(650px,92%);max-height:92%;overflow:auto;padding:30px 36px;text-align:left}.checkpoint-card>p,.checkpoint-card>h3{text-align:center}.checkpoint-context{display:flex;align-items:center;gap:9px;margin:0 0 17px;padding:11px 14px;border-radius:9px;background:#edf8f5;color:#315b61;font-size:10px;font-weight:700}.checkpoint-context:before{content:'↺';display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:var(--teal);color:white;font-size:14px}.checkpoint-answers{display:grid;gap:8px}.checkpoint-answer{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:11px;width:100%;padding:11px 13px;border:1px solid #d7dfde;border-radius:10px;background:#fff;text-align:left;cursor:pointer;font-size:11px;line-height:1.45}.checkpoint-answer:hover{border-color:var(--teal);background:#f3fcfa}.checkpoint-answer b{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#e9eeeb;font:800 10px Space Grotesk}.checkpoint-answer.correct{border-color:var(--teal);background:#e7f9f4}.checkpoint-answer.correct b{background:var(--teal);color:white}.checkpoint-answer.wrong{border-color:var(--coral);background:#fff0ed}.checkpoint-answer.wrong b{background:var(--coral);color:white}.checkpoint-answer:disabled{cursor:default;color:inherit}.checkpoint-feedback{display:none;margin:15px 0 0;padding:13px 15px;border-left:4px solid var(--teal);border-radius:0 8px 8px 0;background:#eef8f5;font-size:10px;line-height:1.55;color:#526b72}.checkpoint-feedback.show{display:block}.checkpoint-feedback.bad{border-left-color:var(--coral);background:#fff1ee}.checkpoint-feedback strong{display:block;margin-bottom:3px;color:var(--navy);font:800 12px Space Grotesk}.checkpoint-next{display:none!important;margin-top:16px;width:100%}.checkpoint-next.show{display:block!important}.checkpoint-source{display:block;margin-top:8px;color:#76878d;font-size:8px;text-align:center}
@media(max-width:560px){.mission-card.checkpoint-card{padding:21px 18px}.checkpoint-card h3{font-size:20px;margin-bottom:16px}.checkpoint-answer{padding:8px 9px;font-size:9px}.checkpoint-context{font-size:8px}}
.mobile-controls .horn-control{background:var(--yellow);color:var(--navy);font-size:13px;font-weight:900}.trip-summary{margin:0 0 16px;padding:11px 13px;border-radius:10px;background:#eef4ef;text-align:left}.trip-summary small{display:block;color:var(--teal-dark);font-size:7px;font-weight:900;letter-spacing:.12em;margin-bottom:6px}.trip-summary div{display:flex;flex-wrap:wrap;gap:6px}.trip-summary span{font-size:8px;color:#61737c;padding:5px 8px;border-radius:7px;background:#fff}.trip-summary span.good{color:#087d70}.trip-summary span.bad{color:#c74a39}.control-list{flex-wrap:wrap}
.route-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:3px 0 10px}.route-picker button{border:1px solid #d5ddd8;background:#fff;color:var(--navy);border-radius:9px;padding:9px 7px;cursor:pointer;text-align:left}.route-picker button:hover,.route-picker button.selected{border-color:var(--teal);background:#e5f8f3;box-shadow:inset 0 0 0 1px var(--teal)}.route-picker b,.route-picker small{display:block}.route-picker b{font:700 10px Space Grotesk}.route-picker small{font-size:7px;color:#708087;margin-top:3px}.drive-grades{display:grid!important;grid-template-columns:repeat(3,1fr);gap:7px!important}.drive-grade{display:grid!important;place-items:center;background:#fff!important;padding:9px 4px!important}.drive-grade b{font:800 18px Space Grotesk}.drive-grade small{font-size:6px!important;margin:2px 0 0!important;color:#728087!important}.route-badge{position:absolute;right:20px;bottom:20px;padding:7px 10px;border-radius:8px;background:rgba(7,27,45,.86);color:#fff;font:700 8px Manrope;letter-spacing:.08em}
@media(max-width:560px){.route-picker{gap:4px}.route-picker button{padding:7px 5px}.route-picker b{font-size:8px}.route-picker small{font-size:6px}.route-badge{right:7px;bottom:54px;font-size:6px}}
.brand-mark{width:43px;height:43px;border:0;border-radius:0;color:var(--teal)}.brand-mark:after{display:none}.brand-mark svg{width:43px;height:43px;overflow:visible;filter:drop-shadow(0 3px 8px rgba(0,194,168,.2))}.wolf-head{fill:var(--teal);stroke:#bff7ee;stroke-width:1.5;stroke-linejoin:round}.wolf-mask{fill:var(--navy)}.wolf-muzzle{fill:#fffdf8}.brand-mark circle{fill:var(--yellow)}.brand strong{font-size:15px;letter-spacing:.075em}.brand small{font-size:7px;letter-spacing:.31em;color:var(--yellow)}
.dev-overlay{display:none;position:absolute;left:18px;top:90px;z-index:7;width:220px;padding:12px 14px;border:1px solid rgba(0,194,168,.6);border-radius:10px;background:rgba(4,15,24,.93);color:#d8fff8;font:700 9px/1.45 monospace;box-shadow:0 12px 35px rgba(0,0,0,.3)}.dev-overlay.show{display:grid;gap:2px}.dev-overlay b{color:var(--yellow);font-size:10px;letter-spacing:.1em;margin-bottom:3px}.dev-overlay span{display:block}.dev-overlay small{color:#72cdbc;font-size:8px;margin-top:4px}
.test-track-button{border-color:rgba(0,194,168,.5);color:#baf6eb}.test-readout{position:absolute;right:18px;bottom:18px;z-index:6;display:none;grid-template-columns:repeat(3,auto);gap:14px;padding:10px 14px;border-radius:10px;background:rgba(7,27,45,.9);color:#fff;font:700 9px Manrope}.test-readout.show{display:grid}.test-readout span{display:grid;gap:2px}.test-readout b{color:var(--yellow);font:800 15px Space Grotesk}.test-readout small{font-size:6px;color:#8fa8b5;letter-spacing:.1em}.telemetry-timeline{margin-top:10px!important;display:grid!important;gap:4px!important}.telemetry-timeline span{display:grid!important;grid-template-columns:40px 1fr;gap:7px}.telemetry-timeline time{color:var(--teal-dark);font-weight:900}
@media(max-width:900px){.hero-actions{flex-wrap:wrap}.test-track-button{width:100%}}
.phase-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 8px}.phase-picker button{border:0;border-radius:8px;padding:8px 4px;background:#e5e2da;color:#718087;font-size:7px;font-weight:900;letter-spacing:.035em;cursor:pointer}.phase-picker button.selected{background:var(--navy);color:var(--yellow)}
.hud-time{display:flex;align-items:baseline;gap:6px;margin:0 12px}.hud-time small{font-size:7px;color:#7f9aaa;letter-spacing:.1em}.hud-time strong{font:700 14px Space Grotesk;color:#fff}
@media(max-width:560px){.hud-time{margin:0 4px}.hud-time small{display:none}.hud-time strong{font-size:11px}}
.result-stars{font:700 34px Space Grotesk;color:var(--yellow);letter-spacing:6px;margin-bottom:5px;text-shadow:0 3px 0 rgba(7,27,45,.12)}
.mission-card>.secondary-button{width:100%;margin-top:8px;border-color:#c8d0ce;color:var(--navy);min-height:42px}
.live-objectives{position:absolute;left:16px;top:16px;z-index:5;display:grid;gap:4px;padding:10px 13px;background:rgba(7,27,45,.82);color:#a8bdc9;border-radius:10px;backdrop-filter:blur(7px);font-size:8px}.live-objectives small{color:var(--yellow);font-size:7px;letter-spacing:.13em;font-weight:900}.live-objectives span.done{color:#69e2c8}.live-objectives span.failed{color:#ff8a78}.result-objectives{display:flex;justify-content:center;gap:12px;margin:-12px 0 16px;font-size:9px;color:#667982}.result-objectives b{color:var(--teal-dark)}

/* Linha de base limpa de condução: somente oculta apresentação; sistemas e dados permanecem preservados. */
.clean-driving-baseline .topbar nav,
.clean-driving-baseline .hero-actions .secondary-button,
.clean-driving-baseline .hero-stats,
.clean-driving-baseline .guide-character,
.clean-driving-baseline .sign-bubble,
.clean-driving-baseline .chapter-tag,
.clean-driving-baseline #visual-mode-badge,
.clean-driving-baseline .hud-life,
.clean-driving-baseline .hud-progress,
.clean-driving-baseline .hud-time,
.clean-driving-baseline .hud-fragments,
.clean-driving-baseline .mission-card>.mission-number,
.clean-driving-baseline .mission-card:not(.checkpoint-card)>.mission-context,
.clean-driving-baseline .mission-card:not(.checkpoint-card)>.route-brief,
.clean-driving-baseline .mission-card:not(.checkpoint-card)>.ctb-brief,
.clean-driving-baseline .live-objectives,
.clean-driving-baseline .mobile-controls{display:none!important}
.clean-driving-baseline .hero-actions{margin-bottom:0}
.clean-driving-baseline .game-hud{justify-content:flex-end;gap:18px}
.clean-driving-baseline .hud-speed{margin-left:auto}
.audio-controls{display:flex;align-items:center;gap:7px}.audio-controls .icon-button{font-size:12px}.audio-controls button:not(.active){opacity:.58}.music-test-button{min-height:34px;padding:0 11px;border:1px solid rgba(255,212,71,.5);border-radius:18px;background:rgba(255,212,71,.09);color:#fff;font-size:8px;font-weight:800;letter-spacing:.08em;cursor:pointer}.music-test-button.active{background:var(--yellow);color:var(--navy);opacity:1}.music-test-button[hidden]{display:none}
.autodrive-experience .tutorial-controls,.autodrive-experience .mobile-controls{display:none!important}
@media(max-width:560px){.live-objectives{left:7px;top:7px;padding:6px 8px;font-size:6px;gap:2px}.live-objectives small{font-size:5px}.result-objectives{gap:7px;font-size:7px}.mission-card>.secondary-button{min-height:34px;margin-top:5px;font-size:10px}}
.game-frame{background:#83b66b;aspect-ratio:16/8.7}.route-brief{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;text-align:left;background:#eef4ef;border:1px solid #d9e4dc;border-radius:10px;padding:13px 16px;margin:-8px 0 20px}.route-brief b{grid-row:1/3;color:var(--teal-dark);font:700 24px Space Grotesk}.route-brief span{font-size:11px;font-weight:800}.route-brief small{font-size:9px;color:#718087}.live-objectives{background:rgba(7,27,45,.88)}
.oldtown-daylight-preview .game-frame{background:linear-gradient(#8fd3df 0%,#dff2e9 100%)}
.art-workshop .topbar nav,
.art-workshop .chapter-tag,
.art-workshop #visual-mode-badge,
.art-workshop .mission-goal,
.art-workshop .hud-life,
.art-workshop .hud-progress,
.art-workshop .hud-time,
.art-workshop .hud-fragments,
.art-workshop .live-objectives,
.art-workshop .feedback-card,
.art-workshop .mission-card>.mission-number,
.art-workshop .mission-card>.mission-context,
.art-workshop .mission-card>.route-brief,
.art-workshop .mission-card>.ctb-brief{display:none!important}
.art-workshop .game-hud{justify-content:flex-end}
.art-workshop .hud-speed{margin-left:auto}
.art-workshop .mission-card .control-list{margin-bottom:20px}
.ctb-brief{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;margin:-10px 0 16px;padding:9px 12px;border-left:4px solid var(--yellow);border-radius:0 8px 8px 0;background:#fff8df;text-align:left}.ctb-brief b{font:800 8px Space Grotesk;color:#7c5c00;letter-spacing:.08em}.ctb-brief span{font-size:8px;line-height:1.45;color:#596a70}
@media(max-width:560px){.route-brief{padding:9px 11px;margin-bottom:12px}.route-brief b{font-size:18px}.route-brief span{font-size:9px}.route-brief small{font-size:7px}}
@media(max-width:560px){.ctb-brief{margin:-5px 0 9px;padding:7px 9px}.ctb-brief span{font-size:7px}}
@media(max-width:900px){.game-frame{aspect-ratio:4/3}}
