/* One illustrated landscape, with real accessible controls over independent art. */
:root{--ink:#234d3c;--green:#34764d;--paper:#fffaf0;--action:#ee963f;--focus:#1a6a91}
body{background:var(--paper)}
.map-header{max-width:1500px;margin:auto;min-height:94px;padding:16px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.map-brand{display:flex;align-items:center;gap:12px;background:transparent;font-weight:850;font-size:29px;letter-spacing:1px;white-space:nowrap}
.map-age{display:flex;gap:2px;border:1px solid #dddac6;border-radius:26px;padding:4px;background:#fffdf4}
.map-age button{font-size:15px;min-width:86px;min-height:44px;padding:9px 16px;border-radius:22px;background:transparent;color:#6c7867}
.map-age button.selected{background:#579566;color:white;font-weight:650}
.map-parent{display:flex;align-items:center;gap:8px;border:1px solid #d9dcc9;border-radius:22px;min-height:46px;padding:10px 18px;background:#f6f4e5;font-size:14px;max-width:240px}
.map-parent span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exploration-main{max-width:1500px;margin:auto;padding:0 18px}
.exploration-main>.cloud-notice,.exploration-main>.storage-note{margin:0 12px 14px}
.exploration-map{position:relative;aspect-ratio:3/2;width:100%;background:#c5d9a9 url('./assets/map-landscape.webp') center/100% 100% no-repeat;border-radius:22px;isolation:isolate;overflow:hidden}
.map-heading{position:absolute;top:3%;left:25%;width:50%;text-align:center;z-index:1;pointer-events:none}
.map-heading h1{font-size:clamp(27px,3.1vw,48px);font-weight:850;letter-spacing:2px;text-shadow:0 2px #fffce8}
.map-heading p{font-size:clamp(12px,1.2vw,17px);letter-spacing:2px;color:#425f45;margin-top:9px;text-shadow:0 1px #fff}
.map-place{position:absolute;left:var(--x);top:var(--y);width:25%;transform:translate(-50%,-37%);z-index:2}
.destination-button{display:flex;flex-direction:column;align-items:center;width:100%;padding:0;background:transparent;transition:transform .16s ease}
.destination-button:hover{transform:translateY(-5px)}
.destination-button:focus-visible{outline:4px solid var(--focus);outline-offset:0;border-radius:24px;background:#fff9df55}
.destination-art{display:block;width:100%;aspect-ratio:1;background:url('./assets/map-destinations.webp') var(--sx) var(--sy)/300% 200% no-repeat;pointer-events:none}
.destination-sign{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:140px;max-width:94%;padding:9px 17px 8px;border:2px solid #e4c897;border-radius:8px 11px 9px 7px;background:#ffedbf;box-shadow:0 4px 0 #87684435;margin-top:-27px;color:#634525;transform:rotate(-1deg)}
.destination-sign strong{font-size:clamp(15px,1.5vw,24px);font-weight:800;line-height:1.25;letter-spacing:1px}
.destination-sign small{font-size:11px;color:#8c7450}
.continue-flag{position:absolute;right:0;top:6%;background:#f1943b;color:#fff;font-weight:750;font-size:clamp(12px,1.2vw,18px);padding:12px 25px 12px 15px;clip-path:polygon(0 0,100% 7%,88% 50%,100% 96%,0 100%);transform:rotate(-5deg);white-space:nowrap;min-height:44px}
.continue-flag:focus-visible{clip-path:none}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;color:#687b60;font-size:12px;gap:12px}
.map-toolbar button{display:flex;align-items:center;gap:8px;background:transparent;min-height:44px;font-size:13px}
.map-toolbar .ui-icon{width:18px;height:18px}
.map-navigation{position:sticky;bottom:0;z-index:15;display:flex;justify-content:center;gap:36px;max-width:590px;margin:2px auto 0;padding:9px 27px 7px;background:#fff9eefa;border:1px solid #dddcc8;border-bottom:0;border-radius:42px 42px 0 0;box-shadow:0 -3px 16px #31513b0b}
.map-navigation button{display:flex;align-items:center;gap:7px;flex-direction:column;padding:7px 12px 10px;min-height:59px;min-width:96px;background:transparent;color:#8c8978;font-size:13px;border-bottom:4px solid transparent}
.map-navigation button.selected{color:#2d6e42;border-color:#3a8050}
.map-navigation svg{width:29px;height:29px}
.area-courses{display:flex;flex-direction:column;margin:12px 0 22px}
.area-course{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid #e5e5d8;background:transparent;text-align:left;width:100%}
.area-course>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}
.area-course strong{font-size:17px}
.area-course small{font-size:12px;color:#78876b}
.course-leaf{width:37px;height:42px;display:grid;place-items:center;font-size:25px;color:#afc199;background:#edf2e2;border-radius:18px 3px 18px 3px}
.course-leaf.complete{background:#d8ead0;color:#4e855b}
.course-completion{display:flex;align-items:center;gap:6px;font-size:12px;color:#8a987f}
.course-completion svg{width:18px;height:18px}
.catalog-group h3{margin:22px 0 5px;font-size:15px;color:#7f925f}
.lesson-back{margin-bottom:10px}
/* Game pages deliberately use a quiet work area instead of the landscape. */
.site-header{height:76px;max-width:1250px;padding:0 25px}
.game-main{max-width:1160px;padding:8px 24px 35px}
.game-topline{font-size:16px}
.step-progress{margin:8px 0 17px}
.puzzle-panel{padding:26px 30px 24px;border:1px solid #e2e6d9;box-shadow:none;background:#fffef9}
.question-heading{margin-bottom:15px}
.question-heading h1{font-size:clamp(21px,2.2vw,29px);line-height:1.55;max-width:840px;margin:8px auto 10px}
.question-kicker{font-size:11px;letter-spacing:1px}
.read-button{padding:9px 13px;min-height:44px;font-size:12px}
.puzzle-feedback{margin-top:20px;padding:15px 18px}
.puzzle-feedback .feedback-mascot{width:48px;flex-shrink:0}
.puzzle-feedback .sprout-art{width:100%;height:65px;object-fit:contain}
.result-mascot .sprout-art{width:100%;height:100%;object-fit:contain}
.interaction-note{margin:12px 0;font-size:13px}
@media(max-width:700px){
 /* 320px and 390px keep the 44px touch floor from DESIGN.md.
    Three 84px age buttons, plus the group's border and padding, are about 260px and fit a 320px header (content width about 286px).
    Brand and parent sit on the first row; the continue flag stays on the place art; read-aloud stays one centered pill. */
 .map-header{padding:12px 17px;gap:10px;min-height:112px;flex-wrap:wrap}
 .map-brand{font-size:22px;gap:8px;letter-spacing:0;min-height:44px}
 .map-brand img{width:39px;height:39px}
 .map-parent{max-width:120px;padding:8px 11px;min-height:44px;font-size:11px}
 .map-parent .ui-icon{width:18px;height:18px}
 .map-age{order:3;justify-content:center;margin:0 auto;padding:2px}
 .map-age button{min-width:84px;min-height:44px;padding:7px 14px;font-size:13px}
 .exploration-main{padding:0 8px}
 .exploration-map{aspect-ratio:1/2;background-image:url('./assets/map-portrait.webp');border-radius:17px}
 .map-heading{top:2.2%;left:10%;width:80%}
 .map-heading h1{font-size:24px;letter-spacing:1px}
 .map-heading p{font-size:10px;letter-spacing:1px;margin-top:5px}
 .map-place{left:var(--mx);top:var(--my);width:44%;transform:translate(-50%,-41%)}
 .destination-art{width:93%}
 .destination-sign{min-width:96px;padding:6px 10px 5px;margin-top:-19px;border-width:1px;gap:3px}
 .destination-sign strong{font-size:15px;letter-spacing:0}
 .destination-sign small{font-size:9px}
 .continue-flag{font-size:11px;min-height:44px;padding:10px 18px 10px 10px;right:-7px;top:0}
 .map-toolbar{padding:6px 8px;gap:5px;align-items:center}
 .map-save-state{font-size:10px;max-width:65%;line-height:1.6}
 .map-toolbar button{font-size:11px;gap:4px;white-space:nowrap}
 .map-navigation{gap:14px;width:calc(100% - 20px);padding:5px 12px 2px;border-radius:30px 30px 0 0;margin-top:0}
 .map-navigation button{min-width:76px;min-height:57px;font-size:11px;padding:6px 9px 8px;gap:4px}
 .map-navigation svg{width:25px;height:25px}
 .site-header{height:62px;padding:0 15px}
 .game-main{padding:5px 12px 20px}
 .puzzle-panel{padding:21px 14px 18px;border-radius:19px}
 .question-heading{margin-bottom:13px}
 .question-heading h1{font-size:20px;line-height:1.5;margin:9px auto}
 .read-button{padding:7px 11px;min-height:44px;font-size:11px}
 .interaction-note{font-size:11px}
 .puzzle-feedback{padding:12px;margin-top:14px}
 .puzzle-feedback .feedback-mascot{width:37px}
 .puzzle-feedback .sprout-art{height:52px}
 .puzzle-actions{margin-top:16px}
}
@media(prefers-reduced-motion:reduce){.destination-button,.scale-pan,.balance-beam{transition:none}}
/* Keep the complete landscape reachable without the navigation covering a place. */
.map-navigation{position:relative;bottom:auto}
@media(min-width:701px){
 .map-header{min-height:82px;padding-top:12px;padding-bottom:12px}
 .exploration-map{height:clamp(470px,calc(100svh - 225px),800px);aspect-ratio:auto;background-size:cover}
 .map-place{width:23%;max-width:clamp(170px,calc((100svh - 225px)*.36),288px)}
 .map-heading{top:2%}.map-heading h1{font-size:clamp(26px,2.5vw,38px)}
 .map-heading p{margin-top:4px}
 .destination-sign strong{font-size:clamp(15px,1.35vw,21px)}
 .map-navigation{padding-top:3px;padding-bottom:0}
}
.map-brand,.map-age button,.map-parent,.continue-flag,.read-button{min-height:44px}
.program-goal-marker{position:absolute;right:3px;top:1px;font-size:23px;color:#94601f;background:#fff6d9;border-radius:5px;padding:0 2px;line-height:1.2}
/* Age selects a catalog; continuing a different-age lesson is an explicit action. */
.age-overview{background:#fffef8;border:1px solid #dfe4d2;border-radius:16px;padding:16px 20px;margin:0 10px 14px;color:#365b3e}
.age-intro{display:flex;align-items:center;justify-content:space-between;gap:14px}
.age-intro h2{font-size:21px;margin:0;line-height:1.6}
.age-intro h2 small{font-size:12px;font-weight:400;white-space:nowrap;margin-left:10px;color:#708166}
.age-intro p{font-size:13px;line-height:1.6;margin:3px 0 0;color:#65765b}
.age-intro>.text-button{flex-shrink:0;min-height:44px}
.age-levels{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12px}
.age-levels>span{color:#758267}
.age-levels button{display:flex;align-items:center;gap:8px;min-height:44px;background:#eff3e6;border:1px solid #dce6cf;border-radius:10px;padding:8px 13px;color:#3d6647}
.age-levels button span{font-size:11px;color:#78866d}
.age-levels>small{font-size:11px;color:#7a866f;margin-left:auto}
.age-next{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e6e8da;margin-top:12px;padding-top:12px}
.age-next strong{font-size:14px}
.age-next p{font-size:12px;line-height:1.7;margin:4px 0 0;color:#728168}
.age-next .primary-button{min-height:44px;font-size:13px;padding:10px 18px;flex-shrink:0}
.other-age-run{border-top:1px dashed #e0e4d4;margin-top:12px;font-size:12px;color:#79816b}
.other-age-run summary{padding:12px 0 2px;cursor:pointer;min-height:44px;line-height:1.8}
.other-age-run p{line-height:1.8;margin:6px 0}
@media(max-width:700px){
 .age-overview{margin:0 2px 10px;padding:12px;border-radius:13px}
 .age-intro{align-items:flex-start;gap:6px}
 .age-intro h2{font-size:19px}.age-intro h2 small{display:block;margin:0;font-size:11px}
 .age-intro p{font-size:12px}.age-intro>.text-button{font-size:11px;padding:8px 0}
 .age-levels{gap:6px;margin-top:8px}.age-levels>small{width:100%;margin-left:0}
 .age-levels button{padding:7px 10px;gap:5px}.age-levels>span{display:none}
 .age-next{gap:10px;margin-top:10px;padding-top:10px}.age-next strong{font-size:13px}
 .age-next .primary-button{padding:9px 12px;font-size:12px}
}
@media(min-width:701px){
 .age-overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);column-gap:26px;row-gap:8px;padding:14px 20px}
 .age-intro{grid-column:1;grid-row:1}.age-levels{grid-column:1;grid-row:2;margin-top:0}
 .age-next{grid-column:2;grid-row:1 / span 2;border-top:0;border-left:1px solid #e6e8da;margin:0;padding:8px 0 8px 22px}
 .other-age-run{grid-column:1 / -1;margin:0}.other-age-run summary{padding:8px 0 0}
 .exploration-map{height:clamp(470px,calc(100svh - 400px),800px)}
 .map-place{max-width:clamp(150px,calc((100svh - 400px)*.36),288px)}
}
