@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#183c32;background:#a8d8cd;font-synthesis:none;--ink:#183c32;--yellow:#ffc857;--cream:#fffdf2;--muted:#586b59}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid #ee922f;outline-offset:5px}button{color:inherit}button:disabled{cursor:default;opacity:.45}#app{position:relative;min-height:760px;height:100svh;overflow:hidden}#world,.vignette{position:absolute;inset:0}#world canvas{display:block;width:100%;height:100%}.vignette{pointer-events:none;background:linear-gradient(90deg,rgba(237,249,222,.94) 0%,rgba(236,248,222,.85) 25%,rgba(236,248,222,.28) 49%,transparent 67%)}.topbar{position:absolute;z-index:6;left:4.2%;right:4.2%;top:29px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;color:inherit;text-decoration:none;gap:21px}.brand-mark{font-size:35px;font-weight:800;letter-spacing:-3px}.brand-mark>span{color:#bd4d25;font-size:25px;vertical-align:super;margin-left:4px}.brand-divider{width:1px;height:26px;background:#183c3230}.brand-label,.pack-label{font-size:12px;letter-spacing:1.8px;font-weight:800}.top-actions{display:flex;align-items:center;gap:12px}.pack-label{margin-right:18px}.icon-button{width:43px;height:43px;border:1px solid #183c3228;background:#fffdf27a;border-radius:50%;font-size:21px;font-weight:700;position:relative;backdrop-filter:blur(10px)}.sound-off{position:absolute;left:15px;font-size:29px;top:4px}.screen{position:absolute;inset:0;padding:130px 6% 86px}.home-copy{position:relative;z-index:1;max-width:620px;padding-top:3vh}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800;display:flex;align-items:center;gap:10px}.tiny-line{display:inline-block;height:2px;width:28px;background:#46654a}h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(72px,8.3vw,130px);line-height:.86;letter-spacing:-1px;margin:29px 0 25px;font-weight:800}h1>span{color:#2e6347}.title-period{color:#d98c2b}.intro{font-size:22px;line-height:1.5;margin:0 0 31px;color:#3e5844}.primary{display:inline-flex;gap:24px;align-items:center;justify-content:center;background:var(--yellow);border:2px solid var(--ink);border-radius:14px;font-weight:800;padding:17px 27px;box-shadow:0 5px 0 var(--ink);font-size:18px;transition:transform .15s,box-shadow .15s}.primary:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--ink)}.primary:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}.start-button{min-width:213px}.primary span{font-size:27px;line-height:20px}.trip-facts{display:flex;gap:23px;font-size:15px;margin-top:30px;color:#486047}.trip-facts b{font-size:13px;font-weight:600;margin-left:3px}.scene-tag{position:absolute;right:5%;bottom:105px;background:#fffdf2ed;padding:19px 25px;border-radius:4px 18px 18px 18px;box-shadow:0 6px 20px #122c3112;display:flex;flex-direction:column;gap:5px;transform:rotate(-3deg)}.scene-tag:before{content:'';position:absolute;top:-7px;left:25px;width:54px;height:15px;background:#ffc857b0;transform:rotate(-4deg)}.tag-kicker{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#718269}.scene-tag strong{font-size:21px}.scene-tag>span:last-child{font-size:13px;color:#718269}.home-bottom{position:absolute;bottom:31px;left:4.2%;right:4.2%;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:500}.home-bottom>span:last-child{font-size:11px;letter-spacing:1.6px;font-weight:800}.key{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;background:#fffdf2b5;border:1px solid #183c3230;border-bottom:3px solid #183c3230;border-radius:5px;font-size:14px;margin:0 3px}.key.wide{font-size:10px;padding:0 6px}.dot-separator{margin:0 12px}.spark{font-size:23px;margin-left:12px;color:#ad522b}#toast{position:absolute;z-index:15;bottom:120px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;transition:.25s;background:var(--ink);color:white;border-radius:14px;padding:14px 22px;font-weight:700;text-align:center;pointer-events:none;max-width:90%;width:max-content}#toast.visible{opacity:1;transform:translateX(-50%)}#load-error{position:absolute;z-index:100;background:#fff;padding:25px;inset:40% 10% auto}.hidden,[hidden]{display:none!important}@media(max-width:700px){#app{min-height:700px}.topbar{top:17px;left:6%;right:6%}.pack-label,.brand-divider,.brand-label{display:none}.screen{padding:108px 7% 90px}.home-copy{padding-top:0}h1{font-size:81px}.eyebrow{font-size:9px;letter-spacing:1.3px}.intro{font-size:18px}.vignette{background:linear-gradient(90deg,#edf9deed, #edf9de8a 50%,transparent),linear-gradient(0deg,#c3dcc052,transparent 50%)}.home-bottom>span:last-child{display:none}.scene-tag{bottom:104px;right:5%;padding:13px 18px}.scene-tag strong{font-size:17px}.scene-tag>span:last-child{font-size:11px}.trip-facts{gap:13px}.trip-facts b{font-size:11px}.home-bottom{font-size:12px;justify-content:center}.primary{font-size:17px}.home-copy .intro{margin-bottom:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Garage and route selection */
#app{min-height:620px}.text-button{border:0;background:none;padding:10px 0;font-weight:700;font-size:14px;text-align:left}.setup-screen{background:#edf5e9e8;overflow-y:auto;padding-top:102px}.setup-steps{display:flex;align-items:center;gap:18px;font-size:11px;letter-spacing:1.7px;font-weight:800;color:#8a9a87;margin:23px 0 36px}.setup-steps .active{color:#244c37}.setup-steps i{height:1px;width:35px;background:#9faf983d}.setup-heading h2,.garage-panel h2{font-size:48px;line-height:1.08;letter-spacing:-1.8px;margin:13px 0 15px;font-weight:800}.setup-heading p,.garage-panel>p{color:#5c6d57;margin:0 0 26px;font-size:16px;line-height:1.6}.skill-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px;max-width:1100px}.skill-card{display:flex;flex-direction:column;align-items:flex-start;background:#fffdf4;border:2px solid #d2dccc;border-radius:19px;padding:23px;text-align:left;transition:.15s;min-height:238px;position:relative}.skill-card:hover{transform:translateY(-3px)}.skill-card.selected{border-color:var(--ink);background:#f9eabb;box-shadow:0 4px 0 var(--ink)}.card-top{display:flex;justify-content:space-between;align-items:center;width:100%}.grade-chip{font-size:11px;font-weight:800;letter-spacing:1.5px}.selection-tick{font-size:22px}.skill-symbol{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:40px;letter-spacing:-1px;background:#e9edda;border-radius:11px;padding:0 13px;margin:15px 0}.skill-card.selected .skill-symbol{background:#f5cc67}.skill-card strong{font-size:23px;margin:0 0 8px}.skill-description{font-size:15px;line-height:1.55;color:#617259}.recommended{font-size:9px;letter-spacing:1.4px;font-weight:800;margin-top:16px;color:#816428}.setup-footer{max-width:1100px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:29px}.setup-footer>span{font-size:14px;color:#65755c}.garage-screen{overflow-y:auto;padding-top:102px}.garage-screen .setup-steps{margin:18px 0 30px}.garage-panel{max-width:465px}.garage-panel h2{font-size:47px;margin-top:12px}.garage-panel fieldset{border:0;padding:0;margin:0 0 22px}.garage-panel legend{font-weight:750;font-size:14px;margin-bottom:12px}.swatches{display:flex;gap:12px}.swatch{width:40px;height:40px;background:var(--paint);border:3px solid #ffffff8a;border-radius:50%;box-shadow:0 0 0 1px #7c907344;color:white;font-weight:800}.swatch.selected{box-shadow:0 0 0 2px #264b35}.field-hint{display:block;font-size:12px;color:#526c4e;margin-top:10px}.segmented{display:flex;gap:7px}.segmented button{padding:10px 14px;border:1px solid #8097794d;background:#fffdf3b3;border-radius:9px;font-size:13px;font-weight:700}.segmented button.selected{background:#234b36;color:#fffdf3;border-color:#234b36}.garage-label{position:absolute;right:10%;bottom:14%;text-align:center;display:flex;flex-direction:column;gap:8px}.garage-label>span:first-child{font-size:10px;letter-spacing:2px;font-weight:800}.garage-label strong{font-size:31px;font-weight:800;letter-spacing:-1px}.garage-label>span:last-child{font-size:12px}.garage-panel .primary{margin-top:3px}.full-width{width:100%;text-align:center}.centered{justify-content:center;text-align:center}
/* On the road */
body[data-scene="drive"] .vignette,body[data-scene="pause"] .vignette,body[data-scene="quiz"] .vignette,body[data-scene="win"] .vignette,body[data-scene="over"] .vignette{background:linear-gradient(180deg,#eaf4e13a,transparent 25%,transparent 65%,#1a392534)}body[data-scene="drive"] .pack-label,body[data-scene="pause"] .pack-label,body[data-scene="quiz"] .pack-label,body[data-scene="win"] .pack-label,body[data-scene="over"] .pack-label{display:none}.drive-ui{position:absolute;inset:0;pointer-events:none}.drive-ui button{pointer-events:auto}.hud-top{position:absolute;top:100px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.hud-trip,.hud-lives,.hud-timer{background:#fffdf2ed;border:1px solid #ffffffa8;box-shadow:0 5px 15px #123b2620;border-radius:15px;padding:17px 20px}.hud-trip{min-width:200px}.hud-trip .eyebrow{font-size:10px;letter-spacing:1.5px}.hud-trip>strong{display:block;font-size:21px;margin:5px 0 12px;letter-spacing:-.5px}.round-dots{display:flex;gap:9px}.round-dots i{display:flex;align-items:center;justify-content:center;border:1px solid #183c3226;border-radius:50%;width:21px;height:21px;font-size:10px;font-weight:800;font-style:normal;color:#91a088}.round-dots i.current{background:#ffc857;border-color:#e9b237;color:#244b34}.round-dots i.done{background:#284c37;color:#fff}.hud-timer{width:184px;text-align:center}.hud-timer>span,.hud-lives>span{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#68795f}.hud-timer>strong{font-size:31px;display:block;letter-spacing:-1px;margin:3px 0}.timer-track{height:5px;background:#e2e6d7;border-radius:10px;overflow:hidden}.timer-track>div{height:100%;background:#d8a634;border-radius:10px;transition:width .1s linear}.hud-lives{position:relative;padding-right:68px;min-width:255px}.heart{font-size:29px;color:#c2624b;line-height:1.55;margin-right:3px}.heart.lost{color:#d3d9cb}.pause-button{position:absolute;right:15px;top:21px;background:#eef0e2;border:1px solid #d1d9c7;width:36px;height:42px;border-radius:9px;font-weight:900;font-size:20px}.hud-bottom{position:absolute;bottom:30px;left:4%;right:4%;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.cargo-ledger{padding:17px 19px 15px;background:#fffdf2ee;border-radius:16px;border:1px solid #fff}.cargo-ledger .eyebrow{font-size:10px;letter-spacing:1.7px;justify-content:space-between;margin-bottom:10px}.cargo-ledger .eyebrow b{letter-spacing:0}.cargo-slots{display:flex;gap:8px}.cargo-slot{border:1px dashed #a4b298;border-radius:8px;background:#eff1e3;width:56px;height:53px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a3b095;font-size:25px}.cargo-slot.filled{border:1px solid #bccb9d;background:#f8eac1;color:#365936}.cargo-slot small{font-size:8px;max-width:53px;overflow:hidden}.cargo-slot.filled>span{font-size:23px}.speed-display{color:#fffdf3;display:flex;flex-direction:column;align-items:center;text-shadow:0 2px 8px #193a3955;position:absolute;left:50%;transform:translateX(-50%);bottom:0}.speed-display strong{font-family:'Barlow Condensed',sans-serif;font-size:65px;line-height:1;font-weight:600}.speed-display>span{font-size:10px;letter-spacing:2px;font-weight:800}.drive-keys{color:#fffdf3;font-size:12px;text-shadow:0 2px 4px #183c3233;align-self:flex-end;margin-bottom:4px}.drive-keys .key{color:#264a35;text-shadow:none}.road-warning{position:absolute;top:245px;left:50%;transform:translateX(-50%);background:#fff4ce;border:2px solid #d69c2d;padding:12px 22px;border-radius:12px;font-size:15px;font-weight:800;opacity:0;transition:opacity .2s;text-align:center}.road-warning.visible{opacity:1}.touch-controls{position:absolute;bottom:24px;left:5%;right:5%;display:none;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}.touch-controls button{touch-action:none;user-select:none;-webkit-user-select:none;width:76px;height:64px;border:1px solid #ffffffb3;border-radius:15px;background:#fffdf2dc;font-size:32px;font-weight:800;box-shadow:0 4px 0 #183c325e}.touch-controls button[data-control="brake"]{font-size:13px;width:83px}.touch-controls button:active{background:#ffc857;transform:translateY(3px)}#crash-flash{position:absolute;inset:0;background:#d5503440;opacity:0;pointer-events:none;transition:opacity .25s}#crash-flash.flash{opacity:1}
/* Parked word stops */
.modal-shade{position:absolute;z-index:20;inset:0;background:#183c3266;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.modal{background:#fffdf2;width:620px;max-width:100%;max-height:calc(100svh - 48px);overflow-y:auto;border:1px solid #fff9e5;border-radius:25px;padding:33px 38px 27px;box-shadow:0 20px 80px #16342633}.modal h2{font-size:35px;letter-spacing:-1.2px;line-height:1.16;margin:14px 0 18px;font-weight:800}.modal>p{color:#617057;font-size:16px;line-height:1.6}.modal .text-button{padding:20px 8px 2px}.modal .eyebrow{font-size:10px;letter-spacing:1.8px}.instruction-list{display:flex;flex-direction:column;gap:15px;margin:25px 0}.instruction-list>div{display:flex;gap:16px}.instruction-list b{background:#f8e6b5;border-radius:11px;min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:13px}.instruction-list p{margin:0;display:flex;flex-direction:column;gap:5px}.instruction-list strong{font-size:16px}.instruction-list span{font-size:14px;line-height:1.55;color:#657459}.help-note{padding:13px 15px;background:#eaf0dc;border-radius:10px;font-size:14px!important;margin-bottom:25px}.order-header{display:flex;justify-content:space-between;align-items:center}.order-stamp{font-size:11px;letter-spacing:1.3px;font-weight:800;padding:7px 10px;border:1px dashed #a4ae84;border-radius:5px;background:#f1efd9}.parked{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#768066}.quiz-progress{display:flex;gap:12px;align-items:center;margin:23px 0 22px;font-size:12px;color:#89917b;font-weight:700}.quiz-progress i{height:1px;flex:1;background:#d9dfcc}.quiz-progress .current{color:#244a34}.quiz-progress .done{color:#819950}.order-clue{background:#edf0df;display:flex;align-items:center;gap:15px;padding:16px;border-radius:14px}.order-icon{font-size:37px}.order-clue p{font-size:17px;line-height:1.5;margin:0;flex:1;font-weight:650}.read-button{border:0;background:#fffdf2;padding:9px;border-radius:10px;font-size:20px;display:flex;flex-direction:column;align-items:center;gap:3px}.read-button span{font-size:10px}.quiz-instruction{font-size:14px!important;margin:23px 0 16px!important;color:#586a4e!important}.word-equation{display:flex;align-items:center;gap:12px;font-size:19px}.word-slot{border:2px dashed #9ba880;background:#f4f3e5;border-radius:10px;padding:12px;min-width:93px;min-height:51px;font-size:18px;font-weight:800}.word-slot.occupied{border:2px solid #a9bb8d;background:#e7edcf}.word-slot:disabled{opacity:1;color:var(--ink)}.compound-preview{font-size:16px;font-weight:750;overflow-wrap:anywhere;flex:1}.word-tray{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 15px}.word-crate{background:#f7d48b;border:2px solid #bb8e45;box-shadow:0 4px 0 #bd985a;border-radius:9px;font-size:21px;font-weight:750;min-width:115px;flex:1;padding:13px 18px;position:relative}.word-crate:hover{background:#ffe2a0;transform:translateY(-2px)}.word-crate.used{opacity:.3;box-shadow:none;transform:translateY(3px)}.feedback{font-size:14px!important;line-height:1.55!important;min-height:43px;margin:19px 0!important;color:#6b785d!important}.feedback.try-again{color:#985525!important;font-weight:600}.quiz-footer{text-align:center;font-size:11px;color:#8b917b;margin-top:20px}.meaning-choices{display:flex;flex-direction:column;gap:11px}.meaning-choices button{display:flex;align-items:center;gap:15px;background:#f7f7eb;border:2px solid #d5dcc7;border-radius:12px;padding:13px 16px;text-align:left;font-size:16px;line-height:1.4;font-weight:600}.meaning-choices button:hover{border-color:#8fa171;background:#edf1df}.meaning-choices button>span{font-size:12px;font-weight:800;border:1px solid #c6cfb7;border-radius:7px;padding:7px 9px;background:#fffdf2}.meaning-choices button.incorrect{border-color:#ddb691;background:#fff0db}.success-icon{font-size:76px;position:relative;text-align:center;margin:8px 0 22px}.success-icon>span{display:inline-flex;font-size:16px;background:#487545;border:3px solid #fffdf2;color:white;border-radius:50%;align-items:center;justify-content:center;width:30px;height:30px;position:relative;margin-left:-12px;top:3px}.success-icon~h2,.ending-symbol~h2{text-align:center}.success-icon~p,.ending-symbol~p{text-align:center}.success-equation{font-size:21px!important;margin-bottom:8px!important}.success-equation span{color:#a5ac8c;margin:0 4px}.loaded-progress{text-align:center;font-size:13px;font-weight:700;background:#ebefdc;padding:11px;border-radius:9px;margin:25px 0}.ending-symbol{text-align:center;font-size:76px;margin-bottom:23px}.ending-stats{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe1cc;border-radius:15px;margin:25px 0}.ending-stats>div{display:flex;flex-direction:column;align-items:center;padding:18px}.ending-stats>div+div{border-left:1px solid #dbe1cc}.ending-stats strong{font-size:43px;letter-spacing:-2px}.ending-stats small{font-size:19px;color:#93a07b;letter-spacing:-1px;margin-left:4px}.ending-stats span{font-size:10px;letter-spacing:1px;font-weight:800;margin-top:4px}.collected-words{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:26px}.collected-words span{background:#edf1df;padding:7px 10px;border-radius:7px;font-size:12px}.victory{background:radial-gradient(ellipse at top,#fff0bd 0%,#fffdf2 55%)}
@media(min-height:820px){.garage-screen .setup-steps{margin-bottom:40px}.garage-panel fieldset{margin-bottom:27px}.setup-heading{margin-top:40px}.skill-card{min-height:270px}.setup-footer{margin-top:38px}}
@media(max-height:780px) and (min-width:851px){.garage-screen{padding-top:93px}.garage-screen .setup-steps{margin:8px 0 20px}.garage-panel h2{font-size:37px;margin:8px 0 11px}.garage-panel>p{margin-bottom:16px}.garage-panel fieldset{margin-bottom:15px}.garage-panel legend{margin-bottom:8px}.garage-panel .primary{padding-top:13px;padding-bottom:13px}.garage-panel .field-hint{margin-top:7px}.setup-screen .setup-steps{margin:12px 0 25px}.setup-heading h2{font-size:40px}.skill-card{min-height:228px;padding:18px}.skill-symbol{margin:9px 0}.setup-footer{margin-top:24px}.home-copy{padding-top:0}.home-copy h1{margin-top:22px}.home-copy .intro{margin-bottom:23px}.home-copy .trip-facts{margin-top:26px}}
@media(max-width:850px){.pack-label{display:none}.garage-panel{max-width:390px}.garage-label{right:5%;bottom:10%}.garage-label strong{font-size:23px}.garage-label>span:first-child{font-size:8px}.garage-label>span:last-child{font-size:10px}.skill-grid{gap:12px}.skill-card{padding:17px}.skill-card strong{font-size:21px}.skill-description{font-size:14px}.hud-top{top:89px}.hud-trip{min-width:165px;padding:15px}.hud-trip>strong{font-size:17px}.hud-lives{min-width:219px;padding:15px 56px 13px 14px}.heart{font-size:24px}.hud-timer{width:142px;padding:14px}.hud-timer>span{font-size:8px}.drive-keys{display:none}.touch-controls{display:flex}.hud-bottom{bottom:109px}.speed-display{left:auto;right:0;transform:none}.cargo-ledger{padding:13px}.cargo-slot{width:46px;height:45px}.cargo-slot small{font-size:7px}.cargo-slots{gap:6px}#toast{bottom:235px}.garage-panel h2{font-size:39px}.road-warning{top:222px;min-width:270px}.garage-screen{padding-bottom:35px}}
@media(max-width:600px){#app{min-height:600px}.home-copy h1{font-size:78px}.home-copy .intro{font-size:17px}.home-copy .eyebrow{font-size:8px}.trip-facts{gap:9px}.trip-facts b{font-size:10px}.scene-tag{bottom:95px;right:7%;max-width:190px}.home-bottom{bottom:23px}.home-bottom .dot-separator{margin:0 5px}.setup-screen,.garage-screen{padding-top:87px;background:#eff6e7ec}.setup-screen{padding-bottom:35px}.setup-steps{gap:9px;font-size:8px;letter-spacing:.7px;margin:14px 0 26px}.setup-steps i{width:14px}.setup-heading h2,.garage-panel h2{font-size:35px}.setup-heading p{font-size:14px;margin-bottom:20px}.skill-grid{grid-template-columns:1fr;gap:12px}.skill-card{min-height:0;padding:14px 16px;display:grid;grid-template-columns:58px 1fr;column-gap:13px}.card-top{grid-column:1/-1;margin-bottom:7px}.skill-symbol{grid-column:1;grid-row:2/4;font-size:29px;padding:7px;margin:0;align-self:center;text-align:center}.skill-card strong{grid-column:2;font-size:20px;margin-bottom:4px}.skill-description{grid-column:2;font-size:13px;line-height:1.45}.recommended{grid-column:2;margin-top:7px;font-size:8px}.setup-footer{flex-direction:column;align-items:stretch;margin-top:24px}.setup-footer>span{font-size:12px;text-align:center}.garage-panel{max-width:100%;padding-top:6px}.garage-panel h2 br{display:none}.garage-panel>p{font-size:14px}.garage-label{display:none}.garage-screen .setup-steps{margin-bottom:20px}.swatches{gap:17px}.swatch{width:43px;height:43px}.segmented button{flex:1;padding:13px 10px;font-size:12px}.garage-panel fieldset{margin-bottom:26px}.garage-panel .primary{width:100%}.hud-top{top:77px;left:4%;right:4%;gap:8px;flex-wrap:wrap}.hud-trip{min-width:0;flex:1;padding:12px}.hud-trip>strong{font-size:16px;margin:4px 0 8px}.hud-trip .eyebrow{font-size:8px}.round-dots{gap:7px}.round-dots i{width:17px;height:17px;font-size:8px}.hud-lives{min-width:0;width:174px;padding:11px 42px 9px 12px}.hud-lives>span{font-size:8px;letter-spacing:1.2px}.heart{font-size:20px;margin-right:2px}.pause-button{width:27px;height:34px;right:9px;top:17px;font-size:15px}.hud-timer{order:3;width:119px;padding:8px 11px;margin-left:auto;margin-top:-20px}.hud-timer>span{font-size:7px;letter-spacing:1px}.hud-timer>strong{font-size:24px;margin:1px 0 5px}.timer-track{height:3px}.road-warning{top:238px;font-size:12px;padding:10px}.hud-bottom{bottom:106px}.speed-display strong{font-size:49px}.cargo-ledger{padding:10px}.cargo-ledger .eyebrow{font-size:8px;margin-bottom:8px}.cargo-slot{width:41px;height:43px}.cargo-slots{gap:4px}.cargo-slot.filled>span{font-size:20px}.cargo-slot small{font-size:6.5px}.touch-controls{bottom:23px}.touch-controls button{height:58px;width:73px}.modal-shade{padding:14px}.modal{padding:23px 22px 22px;border-radius:21px;max-height:calc(100svh - 28px)}.modal h2{font-size:29px;margin:15px 0}.modal .eyebrow{font-size:8px;letter-spacing:1.2px}.order-stamp{font-size:9px}.parked{font-size:8px;letter-spacing:.7px}.quiz-progress{font-size:10px;gap:8px;margin:18px 0}.order-clue{gap:10px;padding:12px}.order-clue p{font-size:15px}.order-icon{font-size:29px}.word-equation{gap:8px}.word-slot{min-width:65px;font-size:16px;padding:10px 8px}.compound-preview{font-size:13px}.word-tray{gap:9px;margin-top:20px}.word-crate{min-width:75px;font-size:18px;padding:11px 10px}.feedback{font-size:13px!important;margin:15px 0!important}.quiz-footer{font-size:10px;margin-top:17px}.meaning-choices button{font-size:14px;padding:11px;gap:10px}.success-equation{font-size:17px!important}.instruction-list span{font-size:13px}.instruction-list strong{font-size:14px}.instruction-list{gap:17px}.instruction-list>div{gap:11px}.instruction-list b{min-width:31px;height:31px;font-size:11px}.help-note{font-size:12px!important}.ending-symbol{font-size:60px}.ending-stats strong{font-size:36px}.ending-stats span{font-size:8px}.collected-words span{font-size:11px}.setup-screen .text-button,.garage-screen .text-button{font-size:12px}#toast{font-size:13px;bottom:224px;padding:12px 16px}}
@media(pointer:coarse){.touch-controls{display:flex}.hud-bottom{bottom:110px}.drive-keys{display:none}}
.mobile-truck-preview{display:none}@media(max-width:600px){.hud-top{display:grid;grid-template-columns:minmax(0,1fr) 174px}.hud-timer{grid-column:2;justify-self:end;margin-top:0}.hud-trip{grid-row:1/3;align-self:start}.mobile-truck-preview{display:block;width:100%;height:200px;overflow:hidden;border:1px solid #b4c4a0;border-radius:16px;margin:0 0 23px;background:#bdd7ac}.mobile-truck-preview canvas{display:block;width:100%;height:100%}}
h2[tabindex="-1"]:focus{outline:none}

/* Separate steering and pedals make simultaneous touch input possible. */
.touch-controls{gap:10px}.touch-controls .pedal-gap{flex:1}.touch-controls [data-control="throttle"]{font-size:16px;background:#ffc857;border-color:#274833}.touch-controls [data-control="brake"]{font-size:11px;width:72px}.touch-controls button:active{transform:translateY(3px);box-shadow:none;background:#e7d6a9}.road-warning{max-width:440px;width:max-content;pointer-events:none}.drive-keys{font-size:11px}
@media(max-width:600px){.touch-controls{left:4%;right:4%;gap:8px}.touch-controls button{width:57px;height:59px}.touch-controls [data-control="brake"]{width:62px}.road-warning{max-width:90%;width:auto;min-width:250px;top:230px}.home-bottom{font-size:10px}.home-bottom .key{min-width:20px;margin:0 1px}.home-bottom .dot-separator{margin:0 3px}}
/* Game-only screens */
:root{--yellow:#ffd042;--ink:#14364b}#app{min-height:560px}.game-utilities{position:absolute;z-index:8;right:20px;bottom:20px;display:flex;gap:9px}.game-utilities .icon-button{background:#fffef1eb}.game-start{display:flex;align-items:center;padding-top:40px;padding-bottom:80px}.game-start .home-copy{padding-top:0}.game-start h1{font-size:clamp(70px,9vw,122px)}.game-start .intro{font-size:18px}.game-start .start-button{font-size:22px;min-width:195px}body[data-scene="drive"] .game-utilities,body[data-scene="pause"] .game-utilities,body[data-scene="quiz"] .game-utilities,body[data-scene="win"] .game-utilities,body[data-scene="over"] .game-utilities{display:none}
.level-screen{background:#eff8f1ee;overflow-y:auto;padding:40px 6% 60px;text-align:center}.level-screen>.text-button{display:block}.level-screen h2,.custom-heading h2{font-size:clamp(32px,4vw,46px);letter-spacing:-1px;margin:20px 0 30px}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1020px;margin:0 auto 34px}.level-card{display:flex;align-items:flex-start;text-align:left;flex-direction:column;gap:16px;min-height:280px;border:2px solid #a9bdba;background:#fff;border-radius:22px;padding:27px;box-shadow:0 5px 0 #b0c5be}.level-stars{font-size:24px;letter-spacing:6px;color:#1b9e6d}.level-card:nth-child(2) .level-stars{color:#297fc5}.level-card:nth-child(3) .level-stars{color:#8a4ac9}.level-card strong{font-size:32px}.level-card>span:not(.level-stars){font-size:16px;line-height:1.5}.level-card.selected{border-color:#194a63;background:#e9f5ff;box-shadow:0 5px 0 #194a63}.level-card .level-check{margin-top:auto;font-weight:800}.setup-note{font-size:14px;color:#556e72;margin-top:24px}.custom-screen{padding:25px 5% 40px;background:#eaf4ecef;overflow-y:auto}.custom-heading{display:flex;align-items:center;gap:25px;max-width:1160px;margin:auto}.custom-heading h2{margin:16px 0;font-size:34px}.difficulty-tag{font-size:14px;font-weight:800;border-radius:20px;background:#163f57;color:white;padding:8px 15px;margin-left:auto}.custom-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:40px;max-width:1160px;margin:16px auto}.custom-options{min-width:0}.custom-options fieldset{padding:0;border:0;margin:0 0 21px}.custom-options legend{font-size:16px;font-weight:800;width:100%;margin-bottom:11px}.custom-options legend small{font-size:13px;font-weight:500;color:#4d6972;float:right}.custom-options .swatches{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px}.custom-options .swatch{width:100%;height:auto;aspect-ratio:1;max-width:40px;min-width:23px;border:2px solid #fff}.custom-options .segmented{gap:7px;flex-wrap:wrap}.custom-options .segmented button{font-size:14px;padding:10px 13px;flex:1 0 auto}.custom-options .segmented button.selected{background:#184f6e}.control-description{font-size:14px;line-height:1.5;margin:12px 0;color:#45606b}.custom-preview-panel{position:sticky;top:24px;align-self:start}.custom-preview{height:clamp(310px,48vh,470px);border:2px solid #b6cec7;border-radius:23px;overflow:hidden;background:#aad7bd;margin-bottom:20px}.custom-preview canvas{display:block;width:100%;height:100%}
/* The game HUD has no site header or fixed route name. */
.hud-top{top:20px;left:3%;right:3%;gap:14px}.hud-trip{min-width:170px;padding:15px 18px}.hud-trip>strong{font-size:24px;margin:0 0 5px}.hud-trip>strong small{font-size:17px;color:#778b90}.difficulty-label{font-size:14px;font-weight:700;color:#547487;display:block;margin:0 0 10px}.hud-lives{padding-right:67px;min-width:237px}.hud-lives>span,.hud-timer>span{font-size:12px;letter-spacing:1px}.hud-lives #drive-help{position:absolute;right:18px;top:68px;font-size:14px;width:29px;height:24px;background:#edf2e6;border:1px solid #bbc9ba;border-radius:7px}.hud-lives .pause-button{top:17px}.hud-timer{width:165px}.road-warning{top:166px;font-size:14px;max-width:90%;min-width:0;padding:10px 18px}.hud-bottom{left:3%;right:3%;bottom:25px}.cargo-ledger .eyebrow{font-size:12px;letter-spacing:1px}.cargo-slot small{font-size:9px}.drive-keys{max-width:290px;text-align:right;line-height:2;font-size:13px}.touch-controls{display:flex}.drive-ui:has(.touch-controls) .hud-bottom{bottom:106px}.drive-ui:has(.touch-controls) .drive-keys{display:none}.drive-ui:not(:has(.touch-controls)) .hud-bottom{bottom:25px}.drive-ui:not(:has(.touch-controls)) .drive-keys{display:block}.speed-display{left:50%;right:auto;transform:translateX(-50%)}.drive-ui:not(:has(.touch-controls)) .speed-display{bottom:115px}.pause-inline{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);display:flex;gap:16px;align-items:center;pointer-events:auto;background:#fffef3ed;padding:17px 22px;border-radius:18px;box-shadow:0 10px 30px #123b2630}.pause-inline>strong{font-size:22px}.pause-inline .primary{padding:10px 20px}.pause-inline .text-button{font-size:14px}
.impact-caption{position:absolute;top:37%;left:50%;transform:translate(-50%,-50%) rotate(-5deg);display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;animation:impact-pop .32s ease-out;z-index:3;filter:drop-shadow(0 6px 0 #173646)}.impact-caption strong{font-family:'Barlow Condensed',sans-serif;font-size:clamp(70px,10vw,118px);font-weight:900;color:#ffe23f;-webkit-text-stroke:2px #173646;line-height:1}.impact-caption span{border:2px solid #173646;background:#fff8e0;color:#173646;border-radius:10px;padding:9px 15px;font-size:16px;font-weight:800}.car-impact strong{color:#ff843c}.car-impact{transform:translate(-50%,-50%) rotate(4deg)}.fall-impact strong{color:#91e5fa}@keyframes impact-pop{from{opacity:0;scale:1.65}to{opacity:1;scale:1}}
/* Correct-answer GIFs sit directly above the next-round action. */
.correct-title{text-align:center;color:#168153;font-size:42px!important;margin-top:3px!important}.cargo-confirm,.success-equation,.delivery-count{text-align:center}.cargo-confirm{font-size:17px!important}.delivery-count{font-size:14px!important;margin:14px 0 20px!important}.celebration-media{position:relative;width:100%;height:190px;border-radius:16px;overflow:hidden;background:#e9f1f6;margin:18px 0 10px;display:flex;align-items:center;justify-content:center}.celebration-media img{max-width:100%;width:100%;height:100%;object-fit:contain;position:relative;z-index:1;opacity:0}.celebration-media.loaded img{opacity:1}.gif-loading{position:absolute;font-size:34px;letter-spacing:15px;color:#f0b923}.celebration-media.loaded .gif-loading{display:none}.order-stamp{font-size:12px}.quiz-instruction{font-size:16px!important}.quiz-footer{font-size:12px}.modal{border-radius:24px}.feedback{font-size:15px!important}
@media(max-width:850px){.custom-layout{gap:22px;grid-template-columns:minmax(280px,1fr) minmax(250px,.9fr)}.custom-options .swatches{grid-template-columns:repeat(6,1fr);max-width:320px;gap:10px}.custom-options .swatch{max-width:36px}.custom-preview{height:330px}.hud-trip{min-width:140px}.hud-lives{min-width:211px;padding-left:13px}.hud-lives .heart{font-size:25px}.hud-timer{width:132px}.hud-top{gap:10px}.drive-keys{font-size:12px;max-width:220px}.cargo-ledger{max-width:300px}.level-card{padding:20px;min-height:285px}.level-grid{gap:13px}}
@media(max-width:600px){.game-start{padding:40px 7% 80px}.game-start h1{font-size:76px}.game-start .intro{font-size:16px;max-width:230px}.level-screen{padding:22px 6% 50px}.level-screen h2{font-size:31px;margin:10px 0 22px}.level-grid{grid-template-columns:1fr;gap:13px;margin-bottom:24px}.level-card{display:grid;grid-template-columns:1fr auto;gap:8px;min-height:0;padding:17px 20px}.level-card strong{font-size:26px;grid-row:1;grid-column:1}.level-stars{grid-row:1;grid-column:2;font-size:21px;letter-spacing:3px}.level-card>span:not(.level-stars){font-size:14px;grid-column:1/-1}.level-check{display:none}.custom-screen{padding:15px 5% 35px}.custom-heading{gap:12px;flex-wrap:wrap}.custom-heading h2{font-size:29px;margin:10px 0}.custom-heading .text-button{font-size:13px}.difficulty-tag{font-size:12px;padding:7px 11px}.custom-layout{grid-template-columns:1fr;gap:15px;margin-top:6px}.custom-preview-panel{position:static;grid-row:1}.custom-preview{height:215px;margin-bottom:15px}.custom-options .swatches{grid-template-columns:repeat(12,minmax(0,1fr));max-width:none;gap:6px}.custom-options .swatch{min-width:0;width:100%}.custom-options .segmented button{font-size:13px;padding:10px 9px}.custom-options fieldset{margin-bottom:19px}.custom-options legend{font-size:15px}.game-utilities{right:14px;bottom:14px}.custom-screen .custom-preview-panel .primary{padding:12px 20px}.hud-top{top:15px;left:4%;right:4%;grid-template-columns:minmax(0,1fr) 174px}.hud-trip{min-width:0;padding:12px}.hud-trip>strong{font-size:22px}.hud-trip .difficulty-label{font-size:12px;margin-bottom:9px}.hud-lives{min-width:0;width:174px;padding:10px 45px 10px 11px}.hud-lives>span{font-size:11px}.hud-lives .heart{font-size:20px}.hud-lives #drive-help{display:none}.hud-lives .pause-button{right:9px;top:19px}.hud-timer{width:119px;margin-top:0}.hud-timer>span{font-size:9px}.road-warning{top:157px;font-size:13px}.cargo-ledger{padding:10px;max-width:265px}.cargo-ledger .eyebrow{font-size:11px}.cargo-slot{width:39px}.cargo-slot small{font-size:8px}.drive-ui:not(:has(.touch-controls)) .drive-keys{position:absolute;bottom:113px;right:0;max-width:180px;line-height:1.6}.drive-ui:not(:has(.touch-controls)) .speed-display{left:auto;right:0;transform:none;bottom:0}.drive-ui:has(.touch-controls) .speed-display{left:auto;right:0;transform:none}.hud-bottom{left:4%;right:4%}.celebration-media{height:155px}.correct-title{font-size:34px!important}.modal .success-equation{font-size:17px!important}.pause-inline{gap:12px;padding:15px}.pause-inline>strong{font-size:18px}.pause-inline .primary{font-size:15px;padding:9px 14px}.impact-caption span{font-size:14px;white-space:nowrap}.game-utilities:has(~#ui .custom-screen){display:none}}
@media(prefers-reduced-motion:reduce){.impact-caption{animation:none}}

/* Hold BACK to stop before reversing. */

/* ABZ Learning webpage shell */
html{scroll-behavior:smooth;background:#f4f5fb}.skip-link{position:fixed;left:16px;top:10px;z-index:1000;transform:translateY(-150%);background:#fff;color:#171947;padding:10px 15px;border-radius:10px;font-weight:800}.skip-link:focus{transform:none}.abz-site-header{position:relative;z-index:30;background:#171947;color:#fff;border-bottom:4px solid #35d5c8}.abz-site-nav{height:76px;max-width:1440px;margin:auto;padding:0 clamp(18px,4vw,58px);display:flex;align-items:center;gap:34px}.abz-site-nav a{color:inherit;text-decoration:none}.abz-site-brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.abz-site-brand strong{font-size:20px;letter-spacing:-.4px}.abz-lettermark{display:flex;align-items:flex-end}.abz-lettermark i{display:grid;place-items:center;width:28px;height:30px;border-radius:8px 8px 5px 5px;font-style:normal;font-size:16px;font-weight:900;color:#171947;background:#ffd83d;border:2px solid #171947;box-shadow:0 0 0 1px #fff}.abz-lettermark i:nth-child(2){background:#5be0d4;transform:rotate(-5deg)}.abz-lettermark i:nth-child(3){background:#ff728f;transform:rotate(4deg)}.abz-site-links{display:flex;gap:26px;margin-left:auto;font-size:14px;font-weight:700}.abz-site-links a{padding:10px 0;border-bottom:2px solid transparent}.abz-site-links a:hover{border-color:#5be0d4}.abz-all-games{display:inline-flex;align-items:center;gap:8px;background:#ffd83d;color:#171947!important;padding:11px 16px;border-radius:10px;font-weight:850;font-size:14px}.abz-game-page{max-width:1500px;margin:auto;padding:0 clamp(0px,2.5vw,34px) 46px}.abz-game-topper{min-height:66px;padding:12px 6px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#34365d;font-size:14px}.abz-game-topper>div:first-child{display:flex;gap:9px;align-items:center}.abz-game-topper a{color:#4f46a5}.abz-game-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.abz-game-tags span{padding:7px 11px;border-radius:999px;background:#e7e9ff;color:#30336c;font-size:12px;font-weight:800}.abz-game-frame{overflow:hidden;border-radius:24px;border:1px solid #ccd2e7;background:#a8d8cd;box-shadow:0 24px 70px #22255422,0 3px 0 #b5bddb}.abz-game-frame #app{height:clamp(620px,calc(100svh - 142px),900px);min-height:620px}.abz-game-about{margin:30px auto 0;max-width:1180px;display:grid;grid-template-columns:1.15fr 1.4fr auto;align-items:center;gap:32px;background:#fff;border:1px solid #dcdff0;border-radius:20px;padding:26px 30px;box-shadow:0 10px 35px #22255410}.abz-game-about h2{margin:4px 0 0;color:#171947;font-size:clamp(25px,3vw,38px);line-height:1.05;letter-spacing:-1px}.abz-about-kicker{font-size:11px;letter-spacing:1.6px;font-weight:900;color:#655ec7}.abz-game-about p{font-size:16px;line-height:1.65;color:#555a73;margin:0}.abz-game-about>a{color:#171947;font-size:14px;font-weight:850;text-decoration:none;background:#ffd83d;padding:13px 17px;border-radius:11px;white-space:nowrap}.abz-site-footer{min-height:115px;background:#171947;color:#fff;display:flex;align-items:center;gap:18px;padding:28px max(5vw,28px)}.abz-site-footer>span{color:#c9cae2;font-size:14px}.abz-site-footer nav{display:flex;gap:20px;margin-left:auto}.abz-site-footer a{color:#fff;text-decoration:none;font-size:14px}

/* Every correct word remains visible in the cargo manifest. */
.cargo-slots{display:grid;grid-template-columns:repeat(5,56px);gap:8px}.cargo-ledger{max-width:355px}.modal:has(.celebration-media){width:min(800px,96vw)}.celebration-media{height:320px}.celebration-media img{width:100%;height:100%;object-fit:contain}.collected-words{max-height:155px;overflow:auto}

@media(max-width:900px){.abz-site-links{display:none}.abz-game-about{grid-template-columns:1fr}.abz-game-about>a{justify-self:start}.abz-game-frame{border-radius:16px}.abz-game-page{padding-left:12px;padding-right:12px}}
@media(max-width:600px){.abz-site-nav{height:60px;padding:0 13px}.abz-site-brand strong{font-size:17px}.abz-lettermark i{width:23px;height:25px;font-size:13px}.abz-all-games{font-size:12px;padding:9px 11px;margin-left:auto}.abz-game-page{padding:0 0 28px}.abz-game-topper{min-height:52px;padding:8px 12px}.abz-game-topper>div:first-child{font-size:12px}.abz-game-tags span:not(:first-child){display:none}.abz-game-frame{border-radius:0;border-left:0;border-right:0}.abz-game-frame #app{height:calc(100svh - 112px);min-height:640px}.abz-game-about{margin:22px 12px 0;padding:22px;gap:16px}.abz-game-about p{font-size:15px}.abz-site-footer{align-items:flex-start;flex-direction:column;padding:26px 22px}.abz-site-footer nav{margin-left:0}.cargo-slots{grid-template-columns:repeat(5,39px);gap:4px}.cargo-ledger{max-width:235px}.celebration-media{height:240px}.modal:has(.celebration-media){padding-left:18px;padding-right:18px}}
.touch-controls [data-control="back"]{font-size:14px;width:78px}@media(max-width:600px){.touch-controls [data-control="back"]{width:65px;font-size:13px}}

.road-meter{margin-top:9px}.road-meter>span{display:block;font-size:12px;font-weight:750;line-height:1.35;color:#355845;letter-spacing:0}.route-track{margin-top:5px;height:5px;background:#d9e8d7}.route-track>div{background:#3b9170}.road-warning{top:202px}@media(max-width:600px){.hud-top{display:grid;grid-template-columns:minmax(0,1fr) 174px;align-items:start;gap:8px}.hud-trip{grid-column:1;grid-row:1/3}.hud-lives{grid-column:2;grid-row:1}.hud-timer{grid-column:2;grid-row:2;width:174px;margin:0}.hud-timer>strong{font-size:22px;line-height:1.15}.road-meter{margin-top:7px}.road-meter>span{font-size:11px}.road-warning{top:214px}}

body[data-scene="drive"] .game-utilities,body[data-scene="pause"] .game-utilities{display:flex;left:3%;right:auto;top:151px;bottom:auto}body[data-scene="drive"] .game-utilities #help,body[data-scene="pause"] .game-utilities #help{display:none}@media(max-width:600px){body[data-scene="drive"] .game-utilities,body[data-scene="pause"] .game-utilities{left:4%;top:132px}}

.delivery-scene{position:absolute;top:28px;left:50%;transform:translateX(-50%);text-align:center;background:#fffdf1ef;border:2px solid #426862;border-radius:20px;padding:14px 26px;pointer-events:none;box-shadow:0 5px 0 #244b3c33;width:max-content;max-width:90%}.delivery-scene h2{font-size:28px;margin:0 0 5px}.delivery-scene p{font-size:16px;margin:0;color:#355b4e}body[data-scene="delivery"] .vignette{background:none}body[data-scene="delivery"] .game-utilities{display:flex;left:20px;top:150px;right:auto;bottom:auto}body[data-scene="delivery"] #help{display:none}@media(max-width:600px){.delivery-scene{top:18px;padding:12px 18px}.delivery-scene h2{font-size:24px}.delivery-scene p{font-size:14px}}.modal:has(.driving-demo){width:760px}.driving-demo{position:relative;height:270px;border-radius:18px;overflow:hidden;border:2px solid #bad1cb;margin:15px 0 20px;background:#b8e4ef}.tutorial-canvas{position:absolute;inset:0}.tutorial-canvas canvas{display:block}.demo-instruction{position:absolute;top:12px;left:12px;right:12px;text-align:center;color:#183f4a;background:#fffdf2ed;padding:8px 12px;border-radius:12px;font-size:15px;font-weight:750}.demo-controls{position:absolute;bottom:13px;left:12px;right:12px;display:flex;justify-content:center;gap:6px}.demo-controls>span{padding:7px 9px;background:#fffdf0ed;border:2px solid #668786;border-radius:8px;font-size:10px;font-weight:800;box-shadow:0 3px 0 #476963}.demo-controls>span.active{background:#ffce42;border-color:#244e65;transform:translateY(2px);box-shadow:0 1px 0 #476963}.demo-replay{position:absolute;top:55px;right:12px;border:0;background:#fffdf2d9;border-radius:9px;font-size:12px;padding:6px 9px}.modal:has(.driving-demo) .instruction-list{gap:12px;margin:0 0 20px}.modal:has(.driving-demo) .instruction-list span{font-size:13px}.modal:has(.driving-demo) h2{margin:0 0 10px}.modal:has(.driving-demo) .instruction-list strong{font-size:14px}
/* The start scene is a moving journey, with the title kept readable. */
.game-start .home-copy{max-width:540px}.start-route-badge{display:inline-flex;gap:8px;align-items:center;background:#fffdf2df;border:1px solid #a9c6b5;border-radius:30px;padding:9px 15px;font-size:12px;font-weight:800;letter-spacing:1px}.start-route-badge i{width:8px;height:8px;border-radius:50%;background:#38a577;box-shadow:0 0 0 4px #38a57720}.home-copy h1{filter:drop-shadow(0 3px 0 #fffdf170)}.start-adventure{display:flex;gap:9px;margin-top:24px}.start-adventure span{font-size:12px;font-weight:700;border-radius:12px;padding:9px 12px;background:#fffdf2cc;border:1px solid #bed1bd}
@media(max-width:600px){.driving-demo{height:225px;margin:12px 0 16px}.demo-instruction{font-size:12px;top:8px;left:8px;right:8px}.demo-controls{gap:3px;left:5px;right:5px;bottom:9px}.demo-controls>span{padding:5px 4px;font-size:8px}.demo-replay{top:48px;font-size:10px}.modal:has(.driving-demo){padding:20px 16px}.modal:has(.driving-demo) .instruction-list{gap:10px}.modal:has(.driving-demo) .instruction-list b{min-width:26px;height:26px}.start-adventure{max-width:280px;flex-wrap:wrap}.start-adventure span{font-size:11px;padding:7px 9px}.game-start{align-items:flex-start;padding-top:70px}.game-start h1{font-size:70px}}

/* The road stays clear: rounds and large lives are the only top displays. */
.hud-top--simple{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.hud-top--simple .hud-lives{min-width:326px;width:auto;padding:15px 64px 17px 20px}.hud-top--simple .hud-lives>span{font-size:15px;letter-spacing:1px;color:#365b50}.hud-top--simple #hearts{display:flex;gap:5px;margin-top:7px}.hud-top--simple .heart{font-size:48px;line-height:1;width:42px;margin:0;color:#db615b;text-align:center;text-shadow:0 2px 0 #a6474320}.hud-top--simple .heart.lost{color:#d4dcd5;text-shadow:none}.hud-top--simple .pause-button{width:36px;height:38px;right:15px;top:15px}.hud-top--simple .hud-lives #drive-help{display:block;width:36px;height:29px;right:15px;top:auto;bottom:15px}.hud-top--simple .hud-trip{grid-row:auto;grid-column:auto}
@media(max-width:600px){.hud-top--simple{display:grid;grid-template-columns:minmax(72px,.7fr) minmax(205px,1.5fr);gap:8px}.hud-top--simple .hud-trip{min-width:0;padding:12px 9px;grid-row:1;grid-column:1}.hud-top--simple .hud-trip>strong{font-size:18px;white-space:nowrap}.hud-top--simple .hud-trip>strong small{font-size:13px}.hud-top--simple .difficulty-label{font-size:12px;margin:5px 0 9px}.hud-top--simple .round-dots{gap:3px}.hud-top--simple .round-dots i{width:12px;height:12px;font-size:7px}.hud-top--simple .hud-lives{grid-row:1;grid-column:2;min-width:0;width:100%;padding:13px 43px 15px 12px}.hud-top--simple .hud-lives>span{font-size:12px;letter-spacing:.7px}.hud-top--simple #hearts{gap:2px;margin-top:9px}.hud-top--simple .heart{font-size:34px;width:28px;line-height:1}.hud-top--simple .pause-button{width:28px;height:31px;right:8px;top:10px;font-size:16px}.hud-top--simple .hud-lives #drive-help{right:8px;bottom:10px;width:28px;height:26px}}
@media(max-width:380px){.hud-top--simple .hud-trip>strong{font-size:15px}.hud-top--simple .hud-trip>strong small{display:block;font-size:11px;margin-top:2px}.hud-top--simple .round-dots{gap:2px}.hud-top--simple .round-dots i{width:10px;height:10px}}
/* Picture clues share one layout and one question format across driving levels. */
.picture-instructions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.picture-instructions p{font-size:17px!important;line-height:1.45;margin:0!important}.picture-instructions .read-button{flex-shrink:0}.picture-equation{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);gap:12px;align-items:center}.picture-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 12px 12px;border:2px solid #d5e3e6;border-radius:18px;background:#f0f8fc}.picture-card.next-picture{border-color:#2681ab;background:#e9f6ff}.picture-card:nth-child(3){background:#fff5da}.picture-number{font-size:14px;font-weight:700;color:#486476}.word-picture{width:128px;height:128px;object-fit:contain}.picture-card .word-slot{width:100%;min-width:0;font-size:19px;padding:10px 8px;white-space:normal}.picture-card .word-slot:not(.occupied){font-size:16px;color:#567382}.picture-plus{font-size:34px;font-weight:800;text-align:center;color:#547487}.picture-result{text-align:center;font-size:17px;min-height:26px;margin:16px 0 8px;color:#486476}.picture-result strong{color:#14364b}.picture-word-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.picture-word-tray .word-crate{min-width:0;padding:12px 6px;font-size:21px}.picture-word-tray button:focus-visible,.picture-card button:focus-visible{outline:3px solid #2681ab;outline-offset:3px}
@media(max-width:600px){.picture-instructions p{font-size:16px!important}.picture-equation{gap:6px;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)}.picture-card{padding:12px 8px 8px;gap:8px}.word-picture{width:88px;height:88px}.picture-number{font-size:14px}.picture-plus{font-size:26px}.picture-card .word-slot{font-size:17px;padding:10px 4px}.picture-card .word-slot:not(.occupied){font-size:14px}.picture-word-tray{grid-template-columns:repeat(2,minmax(0,1fr))}.picture-word-tray .word-crate{font-size:20px}.picture-result{font-size:16px}.quiz-progress{font-size:12px}}
.modal:has(.picture-equation){padding:22px 28px 20px}.modal:has(.picture-equation) .quiz-progress{margin:12px 0}.modal:has(.picture-equation) h2{font-size:30px;margin:12px 0 10px}.modal:has(.picture-equation) .feedback{min-height:24px;margin:10px 0!important}.modal:has(.picture-equation) .primary{padding:13px 20px}.modal:has(.picture-equation) .quiz-footer{margin-top:12px}.picture-card{padding:10px 10px 8px;gap:8px}.word-picture{width:104px;height:104px}.picture-result{margin:12px 0 4px}.picture-credit{color:inherit;text-decoration:underline;white-space:nowrap}
@media(max-width:600px){.modal:has(.picture-equation){padding:18px}.modal:has(.picture-equation) h2{font-size:26px}.picture-card{padding:10px 6px 8px}.word-picture{width:80px;height:80px}.picture-instructions{gap:8px;margin-bottom:12px}.picture-number{font-size:14px}.picture-result{min-height:0}.picture-word-tray{gap:8px}.picture-word-tray .word-crate{padding:10px 6px}.modal:has(.picture-equation) .quiz-footer{font-size:12px}}

.police-status{position:absolute;top:150px;left:50%;transform:translateX(-50%);max-width:min(530px,90vw);width:max-content;padding:13px 24px;border:3px solid #c2e4ff;border-radius:17px;background:#152d4df2;box-shadow:-6px 0 0 #ec5577,6px 0 0 #5594f6,0 8px 22px #0f28434a;text-align:center;color:#fff;z-index:4}.police-status[hidden]{display:none}.police-status strong{display:block;font-size:25px;line-height:1.2;color:#ffe6a2}.police-status span{display:block;font-size:15px;font-weight:700;margin-top:7px;line-height:1.4}.police-status[data-state="jail"] strong{color:#fff}body[data-scene="arrest"] .vignette,body[data-scene="jail"] .vignette{background:linear-gradient(180deg,#eaf4e13a,transparent 25%,transparent 65%,#1a392534)}@media(max-width:600px){.police-status{top:147px;padding:10px 14px;max-width:88vw}.police-status strong{font-size:21px}.police-status span{font-size:13px}}

/* Roadside events remain visible without covering the player's escape route. */
#app::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .25s;background:radial-gradient(ellipse at center,transparent 34%,#ff174b80 100%)}
body[data-scene="drive"][data-police="chase"] #app::after,body[data-scene="arrest"] #app::after{opacity:1;animation:police-glow .9s ease-in-out infinite alternate}
body[data-scene="drive"][data-police="warning"] #app::after,body[data-scene="quiz"][data-police="cleared"] #app::after{opacity:1;background:radial-gradient(ellipse at center,transparent 25%,#26e88888 100%);animation:none}
@keyframes police-glow{from{opacity:.45}to{opacity:1}}
.police-status[data-state="chase"]{top:130px;min-width:320px;border:4px solid #ffd2dd;background:#66192deb;box-shadow:0 0 34px #ff42675c,0 8px 0 #391625;pointer-events:none}
.police-status[data-state="chase"] strong{font-size:36px;color:#fff;letter-spacing:2px}.police-clock{display:flex;align-items:center;justify-content:center;gap:16px;margin:5px 0}.police-clock b{font:900 84px/1 'Barlow Condensed',sans-serif;color:#ffdf63}.police-clock small{font-size:15px;font-weight:900;max-width:105px;text-align:left;line-height:1.3}.siren-lamps{display:flex;justify-content:space-between;position:absolute;left:-21px;right:-21px;top:16px}.siren-lamps i{width:32px;height:32px;border-radius:50%;background:#ff3952;box-shadow:0 0 23px #ff3952;animation:lamp-pulse .65s ease-in-out infinite alternate}.siren-lamps i+ i{background:#669aff;box-shadow:0 0 23px #4986ff;animation-delay:.65s}@keyframes lamp-pulse{from{opacity:.35}to{opacity:1}}
.police-status[data-state="warning"]{top:auto;bottom:180px;background:#124d38f2;border-color:#9dffd1;box-shadow:0 0 35px #63f3b844;pointer-events:auto;max-width:min(560px,90vw)}.police-status[data-state="warning"] strong{color:#bdffdb;font-size:32px}.police-status[data-state="warning"] .primary{margin-top:14px;padding:12px 26px}.police-status[data-state="warning"] .primary:disabled{opacity:.65;cursor:wait}
.theft-caption{position:absolute;top:145px;left:50%;transform:translateX(-50%);max-width:90%;width:500px;padding:16px 24px;border:3px solid #ffc450;border-radius:20px;background:#26324eef;color:#fff;text-align:center;pointer-events:none;box-shadow:0 6px 0 #14203a66}.theft-caption strong{display:block;font-size:29px;color:#ffdd88}.theft-caption span{display:block;font-size:16px;line-height:1.5;margin-top:7px}body[data-scene="theft"] .game-utilities{display:none}
@media(max-width:600px){.police-status[data-state="chase"]{top:147px;min-width:260px;padding:10px 18px}.police-status[data-state="chase"] strong{font-size:27px}.police-clock b{font-size:58px}.police-clock small{font-size:12px}.police-status[data-state="warning"]{bottom:170px;padding:12px 16px}.police-status[data-state="warning"] strong{font-size:25px}.theft-caption{top:147px;padding:12px 15px}.theft-caption strong{font-size:24px}.theft-caption span{font-size:13px}}
@media(prefers-reduced-motion:reduce){#app::after,.siren-lamps i{animation:none!important}.police-status[data-state="chase"]{box-shadow:0 0 15px #ff42675c}}

.hud-top,.hud-bottom,.touch-controls{z-index:3}.theft-caption{z-index:4}.pause-inline{z-index:5}body[data-scene="theft"] .vignette{background:linear-gradient(180deg,#eaf4e13a,transparent 25%,transparent 65%,#1a392534)}

body[data-scene="drive"][data-police="chase"] #app::after,body[data-scene="arrest"] #app::after{box-shadow:inset 0 0 90px 25px #ff184573}
@media(min-width:900px){.police-status[data-state="warning"]{left:3%;transform:none;bottom:195px;width:350px;max-width:31vw;padding:15px 20px}}
/* A compact tutorial keeps the animated controls and start action together. */
.modal-shade:has(.tutorial-modal){position:fixed;padding:16px;overflow:hidden}
.modal.tutorial-modal{width:680px;height:min(540px,calc(100svh - 32px));max-height:none;padding:22px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:14px;overflow:visible}
.modal.tutorial-modal h2{font-size:28px;line-height:1.1;margin:0}
.tutorial-modal .driving-demo{height:auto;min-height:0;margin:0}
.tutorial-modal .demo-instruction{font-size:17px;font-weight:800;color:#12392d;background:#fff9dc;border:2px solid #e4b64c;box-shadow:0 2px 6px #183c3214}
.tutorial-tips{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#faedc7;border-radius:12px}
.tutorial-tips strong{font-size:15px;font-weight:800;line-height:1.4;color:#12392d}
.tutorial-modal #close-help{padding:13px 20px;font-size:19px}
.start-pulse{animation:cargo-start-pulse 1.65s ease-in-out infinite}
@keyframes cargo-start-pulse{0%,100%{transform:scale(1);box-shadow:0 5px 0 var(--ink),0 0 0 0 #ffc85766}50%{transform:scale(1.025);box-shadow:0 5px 0 var(--ink),0 0 0 7px #ffc85700}}
.start-pulse:hover,.start-pulse:active{animation-play-state:paused}
@media(max-width:600px){.modal.tutorial-modal{padding:16px;gap:12px;height:min(500px,calc(100svh - 32px))}.tutorial-tips{display:grid;gap:4px}.tutorial-tips strong{font-size:14px}.tutorial-modal .demo-instruction{font-size:14px}}
@media(max-height:430px){.modal.tutorial-modal{padding:12px;gap:8px}.modal.tutorial-modal h2{font-size:22px}.tutorial-modal #close-help{padding:9px 16px}.tutorial-tips{display:flex;gap:4px 12px}.tutorial-tips strong{font-size:11px}.tutorial-modal .demo-instruction{font-size:11px;padding:5px}.tutorial-modal .demo-replay{top:42px}}
@media(prefers-reduced-motion:reduce){.start-pulse{animation:none}}
