#taxiRouteMount{margin:18px 0 24px}.route-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.route-heading h2{font-size:clamp(24px,3vw,34px);margin:5px 0 10px}.route-heading p{color:#617465;margin:0 0 12px}.route-heading button{flex-shrink:0}.route-score{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.route-score span{padding:8px 13px;background:#fff9de;border:1px solid #ead796;border-radius:20px;font-size:13px;color:#68542e}
.route-neighbourhoods{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.route-neighbourhoods span{padding:6px 10px;border-radius:14px;font-size:11px}.region-0{--stop-colour:#588c66;--stop-light:#e2f1dd}.region-1{--stop-colour:#5484a3;--stop-light:#dfeef9}.region-2{--stop-colour:#ba7953;--stop-light:#ffe5cf}.region-3{--stop-colour:#8567ad;--stop-light:#eee1fa}.region-4{--stop-colour:#a17b2d;--stop-light:#fff0ba}.route-neighbourhoods span{background:var(--stop-light);color:var(--stop-colour)}
.route-map{height:min(70vh,650px);min-height:380px;overflow-y:auto;border:1px solid #d8e3d0;border-radius:25px;background:#f2f7e9;position:relative;overscroll-behavior:contain;scrollbar-color:#a4bba3 #eef3e9}
.route-road{background:linear-gradient(0deg,#f2f7e9 0%,#f2f7e9 20%,#eef6fb 20%,#eef6fb 40%,#fff2e7 40%,#fff2e7 60%,#f5effa 60%,#f5effa 80%,#fff6d9 80%);position:relative;max-width:900px;margin:auto;overflow:hidden}.route-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.route-line path{fill:none;stroke:#becdb5;stroke-width:6;vector-effect:non-scaling-stroke;stroke-dasharray:8 8}
.route-stops{list-style:none;margin:0;padding:0;display:flex;flex-direction:column-reverse;height:100%}.route-stop{height:120px;flex:0 0 120px;position:relative}.route-stop>button{position:absolute;left:var(--stop-x);top:28px;transform:translateX(-50%);width:180px;max-width:48%;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;border-radius:14px;white-space:normal;color:#38513e;padding:4px}
.route-stop-number{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#fffefa;border:3px solid var(--stop-colour);color:var(--stop-colour);font-size:19px;font-weight:800;box-shadow:0 3px 0 #d9dfd1}.route-stop strong{font-size:13px;line-height:1.2;background:var(--stop-light);border-radius:8px;padding:3px 7px;max-width:100%}.route-stop small{font-size:10px;background:#fffcf1b3;border-radius:5px;padding:1px 4px}.route-stop.is-done .route-stop-number{background:var(--stop-colour);color:white}.route-stop.is-skipped .route-stop-number{background:#e8eddf;border-style:dashed}.route-stop button:disabled{opacity:.55;cursor:default}.route-stop.is-current .route-stop-number{box-shadow:0 0 0 6px #f6db7a66}.route-taxi{position:absolute;transform:translateX(-50%);width:86px;pointer-events:none;z-index:2}.route-cab{width:80px;height:55px;display:block}.route-taxi+.route-stops{pointer-events:auto}
.route-placement,.route-reviews,.route-exam-guide{padding:17px;border:1px solid #dce3d6;border-radius:17px;background:#fffefa;margin-top:16px}.route-placement summary,.route-reviews summary,.route-exam-guide summary{font-weight:700;cursor:pointer}.route-placement p,.route-reviews p{font-size:13px;color:#617465}.route-placement button,.route-reviews button{margin:4px 7px 4px 0;font-size:12px}.route-storage{font-size:11px;color:#738372;margin:15px 0}
.route-lesson,.route-boss,.route-finished{background:#fffefa;border:1px solid #d7e3d2;border-radius:25px;padding:28px}.route-lesson-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.route-lesson-heading h2{font-size:25px;margin:4px 0 16px}.route-lesson-heading button{font-size:12px}.route-lesson>progress{width:100%;height:6px}.route-task-count,.route-question-type{font-size:12px;color:#75836d}.route-lesson h3{font-size:22px;line-height:1.6}.route-passage{padding:16px;background:#f7f1e7;border-radius:16px;margin-bottom:12px}.route-passage summary{font-weight:650}.route-passage p{font-size:16px;line-height:1.8;margin-bottom:0}.route-word-shelf{margin:14px 0;padding:14px;background:#eef3e9;border-radius:15px}.route-word-shelf>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:12px}.route-word-shelf>div>details{background:#fffefa;border:1px solid #dbe3d4;padding:11px;border-radius:12px}.route-word-shelf p{font-size:12px}.route-language-help{background:#eaf2f8;border:1px solid #cedfe9;border-radius:15px;padding:15px;margin:10px 0}.route-language-help p,.route-language-help li{font-size:14px}.route-feedback{padding:18px;border-radius:16px;margin:15px 0}.route-feedback.is-correct{background:#e6f2e6}.route-feedback.is-wrong{background:#fff0de}.route-feedback h3{font-size:19px;margin:0 0 8px}.route-feedback p{font-size:14px;margin:7px 0}.route-feedback a{font-size:12px}.route-earned{width:90px;margin:0 auto 10px}.route-finished{text-align:center}.route-finished h2{font-size:28px}.route-finish-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.route-garage{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px;border:1px solid #dedfca;border-radius:20px;background:#fff8d9}.route-garage h2{font-size:22px;margin:0 0 7px}.route-garage p{margin:0 0 5px}.route-garage small{font-size:12px;color:#687765}#taxiRouteGarage{order:4}#taxiJourneyMount{display:none}.route-return{margin:0 0 15px}
@media(max-width:760px){.route-heading,.route-garage{display:block}.route-heading button,.route-garage button{margin-top:10px}.route-map{height:65vh;min-height:380px}.route-stop>button{width:140px}.route-stop strong{font-size:12px}.route-lesson,.route-boss,.route-finished{padding:18px}.route-lesson-heading{display:block}.route-lesson-heading button{margin:0 0 12px}.route-lesson h3{font-size:19px}.route-finish-actions{flex-direction:column}.route-neighbourhoods{gap:5px}.route-neighbourhoods span{font-size:10px}.route-garage h2{font-size:21px}.route-lesson .taxi-choice{font-size:15px}.route-passage p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.route-map{scroll-behavior:auto}}
.route-boss-sections{list-style:none;padding:0;text-align:left;display:grid;gap:8px;margin:15px 0}.route-boss-sections li{padding:12px 15px;background:#f1f5eb;border-radius:12px;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:13px}.route-boss-sections li button{font-size:12px}
.route-choices{min-width:0}.route-choices .taxi-choice{position:relative;min-width:0}.route-choices input[type=radio]{position:absolute;width:1px!important;min-width:0!important;max-width:1px!important;height:1px;opacity:0;clip-path:inset(50%)}.route-choices .taxi-choice:has(input:focus-visible){outline:3px solid #658974;outline-offset:2px}
.route-map{scroll-margin-block-end:18px}@media(max-width:760px){.route-map{scroll-margin-block-end:calc(90px + env(safe-area-inset-bottom))}}
/* The route follows a broad road across each neighbourhood before climbing. */
.route-road{max-width:none;width:100%;isolation:isolate}
.route-stops{display:block;position:absolute;inset:0;height:100%;z-index:2}
.route-stop{position:absolute;top:var(--stop-y);left:0;right:0;height:0}
.route-stop>button{top:-23px;width:180px;max-width:calc(90% / var(--route-columns));gap:5px;padding:0 2px}
.route-stop strong{background:var(--stop-light);border:1px solid color-mix(in srgb,var(--stop-colour) 20%,transparent);padding:4px 7px;box-shadow:0 2px 0 #dfe5d455}
.route-line{z-index:1;overflow:visible}
.route-line path{stroke-dasharray:none;stroke-linecap:round;stroke-linejoin:round}
.route-line .route-road-edge{stroke:#cbd1c3;stroke-width:48px}
.route-line .route-road-surface{stroke:#89958f;stroke-width:40px}
.route-line .route-road-markings{stroke:#fff8df;stroke-width:2px;stroke-dasharray:10 12;stroke-linecap:butt}
.route-scenery{position:absolute;inset:0;pointer-events:none;z-index:0}
.route-landmark{position:absolute;width:46px;height:46px;transform:translate(-50%,-50%);opacity:.9}
.route-taxi{z-index:3}
@media(max-width:760px){.route-stop>button{width:145px;max-width:44%}.route-line .route-road-edge{stroke-width:36px}.route-line .route-road-surface{stroke-width:30px}.route-landmark{width:36px;height:36px}.route-stop strong{font-size:11px;padding:3px 5px}}
.route-stop-sign{display:flex;align-items:center;justify-content:center;gap:6px}
.route-topic-graphic{width:35px;height:35px;padding:4px;border:1px solid color-mix(in srgb,var(--stop-colour) 25%,transparent);border-radius:12px;background:var(--stop-light);color:var(--stop-colour);box-sizing:border-box}
@media(max-width:760px){.route-stop-sign{gap:4px}.route-topic-graphic{width:30px;height:30px;padding:3px}}
/* Topic pictograms become the destination signs; numbers belong to their labels. */
.route-stop-number{position:relative;width:48px;height:48px;flex:none}
.route-stop-number .route-topic-graphic{width:34px;height:34px;padding:2px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
.route-stop-status{position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fffefa;border:1px solid var(--stop-colour);color:var(--stop-colour);font-size:12px;font-weight:800}
.route-stop>button{top:-24px}.route-stop strong{font-size:12px}
.route-landmark{transform:translate(-50%,-50%) rotate(var(--scenery-tilt,0deg))}
.route-landmark-pond{width:64px;height:43px}.route-landmark-building{width:48px;height:48px}
@media(max-width:760px){.route-stop-number{width:46px;height:46px}.route-stop strong{font-size:11px}.route-landmark-pond{width:46px;height:32px}.route-landmark-building{width:40px;height:40px}}
/* Lessons stay compact even when the answer and feedback are visible. */
#taxiRouteMount .route-lesson{padding:18px}
#taxiRouteMount .route-lesson-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
#taxiRouteMount .route-lesson-heading>div{min-width:0;flex:1}
#taxiRouteMount .route-lesson-heading .eyebrow{font-size:10px;margin:0 0 3px;letter-spacing:.08em}
#taxiRouteMount .route-lesson-heading h2{font-size:22px;line-height:1.2;margin:0}
#taxiRouteMount .route-lesson-heading [data-route-map]{margin:0;padding:7px 10px;min-height:36px;flex:none;font-size:12px;border-radius:10px}
#taxiRouteMount .route-lesson>progress{display:block;height:4px;margin:0}
#taxiRouteMount .route-task-count{font-size:11px;margin:5px 0 9px}
#taxiRouteMount .route-word-shelf{margin:8px 0 10px;padding:8px 10px;border-radius:10px}
#taxiRouteMount .route-word-shelf>summary{font-size:13px;line-height:1.3;min-height:24px;align-content:center}
#taxiRouteMount .route-question-type{font-size:11px;line-height:1.3;margin:8px 0 3px}
#taxiRouteMount .route-question-type:empty{display:none}
#taxiRouteMount .route-lesson .taxi-quiz-template-prompt{font-size:20px;line-height:1.35;margin:4px 0}
#taxiRouteMount .route-lesson [data-route-help]{min-height:32px;padding:5px 0;margin:0;font-size:12px}
#taxiRouteMount .route-choices{display:grid;gap:6px;margin:5px 0 0;padding:0;border:0}
#taxiRouteMount .route-choices .taxi-choice{display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:44px;font-size:15px;line-height:1.35;border-radius:12px}
#taxiRouteMount .route-choices .taxi-choice-letter{display:grid;place-items:center;flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;font-size:13px;border-radius:8px}
#taxiRouteMount .route-answer-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:9px;margin-top:10px}
#taxiRouteMount .route-feedback{padding:10px 12px;margin:0;border-radius:12px}
#taxiRouteMount .route-feedback h3{font-size:14px;line-height:1.3;margin:0 0 3px}
#taxiRouteMount .route-feedback p{font-size:13px;line-height:1.4;margin:3px 0}
#taxiRouteMount .route-feedback a{font-size:11px}
#taxiRouteMount [data-route-next]{padding:9px 12px;min-height:40px;white-space:nowrap;font-size:13px;border-radius:11px;box-shadow:none}
@media(max-width:760px){#taxiRouteMount .route-lesson{padding:14px}#taxiRouteMount .route-lesson-heading h2{font-size:19px}#taxiRouteMount .route-lesson .taxi-quiz-template-prompt{font-size:19px}}
/* Pack answers by their actual text width, preserving their letter order. */
#taxiRouteMount .route-choices{display:flex;flex-wrap:wrap;gap:6px}
#taxiRouteMount .route-choices .taxi-choice{flex:1 1 auto;width:max-content;max-width:100%;min-width:0;box-sizing:border-box}
#taxiRouteMount .route-choices .taxi-choice>span:last-child{min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
.route-taxi{width:80px;will-change:transform}
.route-taxi .route-cab{transform-origin:50% 85%}
.route-cab-light{filter:drop-shadow(0 0 2px #ffdc6c80)}
@media(prefers-reduced-motion:reduce){.route-taxi{will-change:auto}}
#taxiRouteMount .route-answer-result.has-word-examples{grid-template-columns:1fr}
#taxiRouteMount .has-word-examples .route-feedback h3{font-size:13px;line-height:1.4}
#taxiRouteMount .route-correct-answer{font-size:12px;font-weight:400}
#taxiRouteMount .route-word-phrases{list-style:none;margin:7px 0;padding:0;display:grid;gap:4px}
#taxiRouteMount .route-word-phrases li{font-size:13px;line-height:1.45}
#taxiRouteMount .route-word-phrases [lang=fi]{font-weight:600}
#taxiRouteMount .route-feedback-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
#taxiRouteMount .route-feedback-actions [data-route-next]{margin-left:auto}
#taxiRouteMount .route-review-note{display:block;margin-top:7px;font-size:11px;color:#796c53}
#taxiRouteMount .route-feedback-actions .route-review-note{margin:0}
/* Reuse the quiz navigation and stage, keeping short route tasks compact. */
#taxiRouteMount .route-lesson-heading{justify-content:space-between;flex-wrap:wrap}
#taxiRouteMount .route-lesson-heading h2{flex:1;min-width:140px}
#taxiRouteMount .route-lesson-heading .route-map-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto;color:var(--muted);font-size:11px}
#taxiRouteMount .route-quiz-frame .taxi-quiz-template-meta{margin:0 0 6px;font-size:11px}
#taxiRouteMount .route-quiz-frame .taxi-quiz-template-prompt{text-align:center;font-family:inherit;font-size:24px;line-height:1.4;margin:14px 0 22px}
#taxiRouteMount .route-phrase-hint{margin:0 0 10px auto;max-width:420px;padding:9px 12px;border-radius:12px;background:#fff4e4;color:#625a48;font-size:13px}
#taxiRouteMount .route-phrase-hint p{margin:3px 0;font-size:13px}
#taxiRouteMount .route-phrase-hint small{font-size:11px;color:var(--muted)}
#taxiRouteMount .route-celebration-layer{position:absolute;inset:0;display:grid;place-items:center;padding:8px;background:#fffefa85;border-radius:18px;z-index:5;pointer-events:none}
#taxiRouteMount .route-celebration{position:relative;pointer-events:auto;box-sizing:border-box;width:min(100%,400px);padding:18px 20px;background:#eaf4ec;border:1px solid #bfd8c5;box-shadow:0 8px 24px #2546381a;text-align:center}
#taxiRouteMount .route-celebration h3{font-size:22px;margin:0 0 8px}
#taxiRouteMount .route-celebration-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}
#taxiRouteMount .route-celebration-actions button{font-size:12px;min-height:44px}
#taxiRouteMount .route-result-reopen{display:block;margin:8px auto 0;font-size:12px}
#taxiRouteMount .route-confetti{position:absolute;inset:0;overflow:hidden;border-radius:18px;pointer-events:none}
#taxiRouteMount .route-confetti i{position:absolute;top:-12px;left:var(--x);width:7px;height:11px;border-radius:2px;background:var(--colour);opacity:0;animation:route-confetti-fall 1s var(--delay) ease-out forwards}
@keyframes route-confetti-fall{0%{opacity:0;transform:translate(0,-10px) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--drift),300px) rotate(320deg)}}
@media(max-width:760px){#taxiRouteMount .route-quiz-frame .taxi-quiz-template-prompt{font-size:22px}#taxiRouteMount .route-celebration{padding:14px}#taxiRouteMount .route-celebration h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){#taxiRouteMount .route-confetti{display:none}}
/* A quiet three-chapter landscape, with numbered destinations and one current label. */
.route-treasure-map .route-road{background:#e9efdf}
.route-terrain{position:absolute;inset:0;width:100%;height:100%}
.route-world-object{position:absolute;transform:translate(-50%,-50%);opacity:.94}
.route-world-label{position:absolute;font-size:10px;letter-spacing:.2em;font-weight:650;color:#7d9185}
.route-treasure-map .route-line .route-road-edge{stroke:#c8cbbb;stroke-width:42px}
.route-treasure-map .route-line .route-road-surface{stroke:#929c8d;stroke-width:34px}
.route-treasure-map .route-line .route-road-markings{stroke:#f9f5e3;stroke-width:2px;stroke-dasharray:8 13}
.route-treasure-map .region-1{--stop-colour:#9c8064;--stop-light:#f0e5d4}
.route-treasure-map .region-2{--stop-colour:#587f87;--stop-light:#e2eeeb}
.route-treasure-map .route-stop>button{top:-24px;width:140px;max-width:45%;padding:0;gap:7px}
.route-treasure-map .route-stop-number{width:48px;height:48px;font-size:18px;border:2px solid #8ea18c;background:#faf8ed;color:#567260;box-shadow:0 4px 0 #899983,0 5px 10px #43564714}
.route-treasure-map .route-stop button:disabled{opacity:1}
.route-treasure-map .route-stop button:disabled .route-stop-number{background:#e7ece0;border-color:#b7c2ad;color:#8a9783;box-shadow:0 4px 0 #b8c3ac}
.route-treasure-map .route-stop.is-done .route-stop-number{background:#65886a;color:#fff;border-color:#65886a;box-shadow:0 4px 0 #496e55}
.route-treasure-map .route-stop.is-current .route-stop-number{box-shadow:0 4px 0 #899983,0 0 0 7px #e8ce8766}
.route-treasure-map .route-stop.is-skipped .route-stop-number{border-style:dashed}
.route-treasure-map .route-stop strong{max-width:150px;padding:5px 9px;font-size:11px;background:#faf8ed;border-color:#d4ddca;box-shadow:none;font-weight:650}
.route-checkpoint-mark{position:absolute;left:calc(50% + 22px);top:0;color:#b99a57;font-size:17px}
.route-bridge{position:absolute;width:92px;height:56px;z-index:2;pointer-events:none}
@media(max-width:760px){.route-treasure-map .route-line .route-road-edge{stroke-width:34px}.route-treasure-map .route-line .route-road-surface{stroke-width:27px}.route-treasure-map .route-stop-number{width:44px;height:44px;font-size:17px}.route-treasure-map .route-stop>button{top:-22px}.route-bridge{width:78px;height:46px}}
/* The journey is a walking-width trail; destinations carry the visual weight. */
.route-treasure-map .route-line .route-road-edge{stroke:#d6cfb7;stroke-width:20px}
.route-treasure-map .route-line .route-road-surface{stroke:#e5d6b3;stroke-width:15px}
.route-treasure-map .route-road-markings{display:none}
.route-treasure-map .route-stop-number{width:52px;height:52px;font-size:19px}
.route-treasure-map .route-stop>button{top:-26px}
.route-treasure-map .route-bridge{width:76px;height:40px}
@media(max-width:760px){.route-treasure-map .route-line .route-road-edge{stroke-width:17px}.route-treasure-map .route-line .route-road-surface{stroke-width:12px}.route-treasure-map .route-stop-number{width:48px;height:48px;font-size:18px}.route-treasure-map .route-stop>button{top:-24px}.route-treasure-map .route-bridge{width:65px;height:34px}}
.route-treasure-map .route-stop:nth-child(5n+1){--node-fill:#dceadd;--node-edge:#7f9e84;--node-ink:#466951}
.route-treasure-map .route-stop:nth-child(5n+2){--node-fill:#dce9f2;--node-edge:#86a4bc;--node-ink:#486c89}
.route-treasure-map .route-stop:nth-child(5n+3){--node-fill:#f2e1d3;--node-edge:#bc9b7b;--node-ink:#8a6143}
.route-treasure-map .route-stop:nth-child(5n+4){--node-fill:#e7dff0;--node-edge:#a594bd;--node-ink:#76608e}
.route-treasure-map .route-stop:nth-child(5n){--node-fill:#f2e8c8;--node-edge:#b8a46e;--node-ink:#857039}
.route-treasure-map .route-stop .route-stop-number,.route-treasure-map .route-stop button:disabled .route-stop-number{background:var(--node-fill);border-color:var(--node-edge);color:var(--node-ink);box-shadow:0 4px 0 var(--node-edge)}
.route-treasure-map .route-stop button:disabled .route-stop-number{filter:saturate(.6);color:color-mix(in srgb,var(--node-ink) 80%,white)}
.route-treasure-map .route-stop.is-done .route-stop-number{background:var(--node-edge);border-color:var(--node-ink);color:#fff;box-shadow:0 4px 0 var(--node-ink)}
.route-treasure-map .route-stop.is-current .route-stop-number{box-shadow:0 4px 0 var(--node-edge),0 0 0 7px #e8ce8780}

.route-treasure-map{overflow:auto;touch-action:pan-x pan-y;cursor:grab}.route-treasure-map.is-panning{cursor:grabbing;user-select:none}.route-treasure-map .route-road{max-width:none;flex:none}.route-treasure-map.is-panning button{cursor:grabbing}

/* An illustrated Finland landscape, with familiar pictogram destinations. */
.route-treasure-map .route-road{background:#dce6df}
.route-finland-landscape{position:absolute;left:0;display:block;max-width:none;object-fit:fill;pointer-events:none;user-select:none}
.route-treasure-map .route-line .route-road-edge{stroke:#6d6558;stroke-opacity:.6;stroke-width:19px}
.route-treasure-map .route-line .route-road-surface{stroke:#f5e6be;stroke-opacity:.94;stroke-width:13px}
.route-treasure-map .route-stop-number{width:62px;height:62px;border-width:3px;box-shadow:0 4px 0 var(--node-edge),0 0 0 4px #fffaf199,0 5px 16px #132e3540}
.route-treasure-map .route-stop-number .route-topic-graphic{width:36px;height:36px;background:none;border:0;color:inherit;padding:2px}
.route-treasure-map .route-stop>button{top:-31px;width:180px;max-width:none;gap:6px}
.route-treasure-map .route-stop strong{background:#0b2236ef;border:1px solid #4e91ac65;color:#cff3ff;font-size:13px;padding:5px 10px;box-shadow:0 2px 6px #1c303124}
.route-treasure-map .route-stop small{max-width:175px;white-space:normal;background:#fffaf2ed;color:#425d65;font-size:10px;padding:3px 7px}
.route-city-number{position:absolute;left:-7px;top:-6px;width:22px;height:22px;display:grid;place-items:center;background:#fffaf2;border:1px solid var(--node-edge);border-radius:50%;color:var(--node-ink);font-size:11px;font-weight:750}
.route-treasure-map .route-stop.is-current .route-stop-number{box-shadow:0 4px 0 var(--node-edge),0 0 0 8px #f6d66aa6,0 5px 18px #132e3540}
.route-checkpoint-mark{left:calc(50% + 30px)}

.route-finland-landscape{mask-image:linear-gradient(to bottom,transparent,#000 50px,#000 calc(100% - 40px),transparent)}

/* Short stop exercises float over the illustrated map and size to their content. */
#taxiRouteMount .route-exercise-overlay{box-sizing:border-box;width:min(940px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #d7e3d2;border-radius:24px;background:#fffefa;color:var(--text);box-shadow:0 18px 65px #153c3d45;overflow:auto;overscroll-behavior:contain}
#taxiRouteMount .route-exercise-overlay::backdrop{background:#193b3438}
#taxiRouteMount .route-exercise-overlay .route-lesson,#taxiRouteMount .route-exercise-overlay .route-finished,#taxiRouteMount .route-exercise-overlay .route-boss{border:0;margin:0;padding:22px}
#taxiRouteMount .route-lesson-heading{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;gap:10px;margin:0 0 18px}
#taxiRouteMount .route-lesson-heading h2{grid-column:2;text-align:center;min-width:0;font-size:24px;line-height:1.3}
#taxiRouteMount .route-lesson-heading .route-map-controls{grid-column:3;justify-content:flex-end}
#taxiRouteMount .route-quiz-frame .taxi-quiz-template-prompt{margin:22px 0 26px}
#taxiRouteMount .route-exercise-overlay .route-celebration-layer{position:relative;inset:auto;padding:0;margin-top:14px;background:none}
#taxiRouteMount .route-exercise-overlay .route-celebration{margin:0;width:100%;box-shadow:none}
@media(max-width:600px){#taxiRouteMount .route-exercise-overlay{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:18px}#taxiRouteMount .route-exercise-overlay .route-lesson{padding:16px}#taxiRouteMount .route-lesson-heading{grid-template-columns:48px minmax(0,1fr) 48px;gap:5px}#taxiRouteMount .route-lesson-heading h2{font-size:19px}#taxiRouteMount .route-lesson-heading [data-route-map]{padding:5px;min-width:44px}}

/* Give the map the introduction's space and keep the destination clear of its edges. */
#taxiRouteMount .route-map-shell{position:relative}
#taxiRouteMount .route-map-resume{position:absolute;right:16px;top:14px;z-index:4;min-height:44px;padding:9px 14px;font-size:13px;box-shadow:0 3px 14px #193b3430}
#taxiRouteMount .route-overlay-close{position:absolute;right:14px;top:14px;z-index:6;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;margin:0;border-radius:50%;font-size:27px;line-height:1;box-shadow:none}
#taxiRouteMount .route-lesson-heading{grid-template-columns:44px minmax(0,1fr) 44px}
@media(max-width:600px){#taxiRouteMount .route-map-resume{right:8px;top:10px}#taxiRouteMount .route-overlay-close{right:8px;top:8px}}

#taxiView .route-map{min-height:0}

/* Corner navigation and a single compact heading free up the short word overlays. */
#taxiRouteMount .route-exercise-overlay .route-lesson{padding:14px}
#taxiRouteMount .route-lesson-heading{grid-template-columns:76px minmax(0,1fr) 76px;align-items:start;gap:10px;margin:0 0 10px}
#taxiRouteMount .route-lesson-heading .route-corner-back{grid-column:1}
#taxiRouteMount .route-lesson-heading .route-corner-next{grid-column:3}
#taxiRouteMount .route-lesson-heading button{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:7px 6px;font-size:12px;border-radius:11px;box-shadow:none}
#taxiRouteMount .route-lesson-heading h2{grid-column:2;margin:5px 0 0;font-size:21px}
#taxiRouteMount .route-lesson-heading h2:focus{outline:none}
#taxiRouteMount .route-word-instruction{display:block;font-size:16px;font-weight:500;line-height:1.3}
#taxiRouteMount .route-lesson-tools{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px}
#taxiRouteMount .route-lesson-tools button{min-height:44px;min-width:80px;margin:0;padding:7px 12px;font-size:12px;border-radius:11px;box-shadow:none}
@media(max-width:600px){#taxiRouteMount .route-lesson-heading{grid-template-columns:64px minmax(0,1fr) 64px;gap:6px}#taxiRouteMount .route-word-instruction{font-size:13px}#taxiRouteMount .route-lesson-heading h2{font-size:17px}#taxiRouteMount .route-lesson-heading button{font-size:11px}}
#taxiRouteMount .route-lesson .route-lesson-tools [data-route-help]{min-height:44px;min-width:80px;padding:7px 12px}
@media(max-width:600px){}
@media(max-width:600px){}

/* Compact route answer feedback and a gentle cue to continue. */
#taxiRouteMount .route-exercise-overlay .taxi-choice{position:relative}
#taxiRouteMount .route-exercise-overlay .taxi-choice:has(.route-answer-marker){padding-right:30px}
#taxiRouteMount .route-answer-marker{position:absolute;top:4px;right:7px;font-size:18px;font-weight:750;line-height:1;color:#65dfb0;pointer-events:none}
#taxiRouteMount .route-answer-marker.is-wrong{color:#ff8491}
#taxiRouteMount .route-answer-example{margin:8px 0 0;padding:0;background:none;border:0;color:#cbe3ec;font-size:13px;line-height:1.5;text-align:center}
#taxiRouteMount .route-exercise-overlay:has(.route-answer-marker) [data-route-next]:not(:disabled){animation:route-next-pulse 1.6s ease-in-out infinite}
@keyframes route-next-pulse{0%,100%{box-shadow:0 0 0 0 #79d6ec00}50%{box-shadow:0 0 0 3px #79d6ec80}}
@media(prefers-reduced-motion:reduce){#taxiRouteMount .route-exercise-overlay:has(.route-answer-marker) [data-route-next]:not(:disabled){animation:none;box-shadow:0 0 0 2px #79d6ec80}}

/* Celebrate completed stops with the onward control in the familiar corner. */
#taxiRouteMount .route-finished{position:relative;overflow:hidden}
#taxiRouteMount .route-finished h2:focus{outline:none}
#taxiRouteMount .route-finished .route-finish-drive{position:absolute;top:14px;right:14px;z-index:2;padding:6px 9px;min-height:44px;border-radius:22px}
#taxiRouteMount .route-finish-drive>span{display:flex;align-items:center;gap:5px}
#taxiRouteMount .route-finish-drive .route-cab{width:36px;height:24px}
#taxiRouteMount .route-finish-drive>span>span{font-size:26px;line-height:1}
#taxiRouteMount .route-finished .route-earned{margin-top:30px}
#taxiRouteMount .route-finished .route-finish-score{font-size:28px;font-weight:700;color:#9de9f4}
#taxiRouteMount .route-finish-score small{display:block;margin-top:6px;font-size:13px;font-weight:400;color:#bad9e7}
#taxiRouteMount .route-finished .route-confetti{z-index:1}

#taxiRouteMount .route-exercise-overlay:has(.route-word-finished){width:min(400px,calc(100vw - 20px));background:#092235;color:#e2f2fa;border-color:#54859e78}
#taxiRouteMount .route-exercise-overlay .route-word-finished{padding:12px;background:#092235}
#taxiRouteMount .route-word-finished h2{margin:0 70px 10px 0;font-size:22px;text-align:center}
#taxiRouteMount .route-word-finished .route-earned{width:65px;margin:8px auto}
#taxiRouteMount .route-word-finished .route-finish-score{font-size:28px;margin:8px 0}
#taxiRouteMount .route-word-finished .route-finish-actions{margin:8px 0 0}
#taxiRouteMount .route-word-finished .route-earned{width:45px;margin:4px auto}
#taxiRouteMount .route-word-finished .route-finish-score{margin:4px 0}
#taxiRouteMount .route-word-finished h2{margin-bottom:6px}

#taxiRouteMount .route-exercise-overlay:has(.route-reading-short){width:min(760px,calc(100vw - 20px))}
#taxiRouteMount .route-reading-short .route-word-prompt{font-size:24px;line-height:1.4;overflow-wrap:anywhere}
#taxiRouteMount .route-reading-short .route-passage{margin:0 0 8px;padding:12px;background:#102b40;color:#d8eaf4;border-radius:11px}
#taxiRouteMount .route-reading-short .route-passage p{margin:0;font-size:16px;line-height:1.7}
#taxiRouteMount .route-reading-short .route-choices{width:100%}
#taxiRouteMount .route-reading-short .route-answer-example.is-reserved{visibility:hidden}

#taxiRouteMount .route-treasure-map .route-road-markings{display:block;stroke:#fff;stroke-width:1;stroke-opacity:.85;stroke-dasharray:7 9;fill:none}

#taxiRouteMount .route-situation-hint{margin-top:12px;color:var(--taxi-accent,#79d6ec);font-size:14px;line-height:1.5}

/* Owner layout editing moves stops without launching exercises or panning. */
.route-map.is-editing-stops [data-route-stop]{touch-action:none;cursor:grab!important;user-select:none;-webkit-user-select:none}
.route-map.is-editing-stops .is-moving-stop [data-route-stop]{cursor:grabbing!important}
.route-map.is-editing-stops [data-route-stop]:focus-visible{outline:2px solid #79d6ec;outline-offset:4px}
