@charset "UTF-8";
:root{--paper:#f7f5ed;--ink:#294b3f;--orange:#ed7850;--line:#e7e5d8;--sea:#cce6e1}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Trebuchet MS',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #df8a51;outline-offset:4px}a{text-decoration:none;color:inherit}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center}
.site-header{height:100px;max-width:1224px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-symbol{display:grid;place-items:center;color:var(--orange);width:42px;height:42px;transform:rotate(-4deg)}.brand-symbol svg{width:42px}.brand-type{font-weight:900;font-size:25px;letter-spacing:-1.2px;line-height:1}.brand-type small{font-weight:400;display:block;letter-spacing:.55px;font-size:10px;line-height:2.2;color:#7b887c}.header-actions{display:flex;align-items:center;gap:10px}.edition{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:700;letter-spacing:1.8px;padding-right:18px;color:#8d927e}.edition i{width:6px;height:6px;background:#95a676;border-radius:50%}.circle-button{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#efeee4}.circle-button:hover{background:#e5e5d7}
.game-layout{max-width:1176px;margin:34px auto 0;padding:0 40px;display:grid;grid-template-columns:242px minmax(0,1fr);gap:54px;align-items:start}.journey{padding-top:10px}.journey-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:700;color:#8b9282}.journey-heading>span:last-child{font-size:11px;color:#9b9e8c}h1{font-size:55px;letter-spacing:-3.6px;line-height:1.02;margin:24px 0 17px;font-weight:800}h1>span{color:var(--orange)}.journey-intro{font-size:12px;line-height:1.85;color:#8a9283;margin:0}.journey-progress{height:3px;background:#e7e7d9;border-radius:3px;margin:26px 0 24px;overflow:hidden}.journey-progress>span{display:block;width:0;height:100%;background:var(--orange);transition:width .3s}.level-list{display:flex;flex-direction:column;gap:5px}.level-item{display:flex;gap:12px;align-items:center;padding:11px 8px;text-align:left;border-radius:13px;background:transparent;transition:background .17s,transform .17s;width:100%}.level-item:hover{background:#eeeee2;transform:translateX(2px)}.level-item.active{background:#ecefdc}.level-number{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border:1px solid #dbdecd;border-radius:50%;font-size:10px;color:#9aa089;background:#f5f5eb}.active .level-number,.active.complete .level-number{background:var(--ink);color:#fff6e6;border-color:var(--ink)}.complete .level-number{background:#dce7c8;color:#5a7758;border-color:#dce7c8}.level-name{font-size:12px;flex:1;color:#84907e}.active .level-name{color:var(--ink);font-weight:700}.level-meta{display:flex;gap:2px}.level-meta svg{width:10px;height:10px;fill:#e8b75c}.level-dot{width:4px;height:4px;border-radius:50%;background:#d5d8c7;margin:0 4px}.active .level-dot{background:var(--orange)}.little-note{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.little-note>svg{width:60px;flex-shrink:0}.little-note p{font-size:10px;line-height:1.8;color:#9a9b86;margin:0}.little-note strong{font-weight:400;color:#7e8c74}
.play-area{min-width:0}.level-heading{display:flex;justify-content:space-between;align-items:center;min-height:85px;padding:0 5px 18px}.island-picker{display:flex;align-items:center;gap:7px;background:none;padding:0}.picker-arrow{display:none}.level-heading h2{font-size:26px;letter-spacing:-.9px;margin:8px 0 6px;line-height:1.15}.level-heading p{font-size:11px;color:#939988;margin:0}.best-pill{font-size:10px;white-space:nowrap;border:1px solid #e0e1cf;padding:8px 11px;border-radius:30px;color:#8a927d;margin-left:10px}.best-pill svg{width:12px;height:12px;fill:#dbaa57;vertical-align:-1px;margin-right:4px}.game-card{border-radius:24px;background:#fffdf7;box-shadow:0 4px 24px #294b3f05;border:1px solid #e3e3d5;overflow:hidden}.hud{height:76px;display:flex;align-items:center;justify-content:space-around;padding:0 18px}.hud-stat{display:flex;align-items:center;gap:10px}.hud-stat+.hud-stat{border-left:1px solid #eeecdf;padding-left:27px}.hud-icon{width:30px;height:30px}.hud-icon svg{width:23px;height:23px}.house-icon{color:#d59258}.wagon-icon{color:#80a08a}.step-icon{color:#a0a590}.hud-label{display:block;font-size:8px;letter-spacing:1.45px;font-weight:700;color:#9aa08d;margin-bottom:4px}.hud strong{font-size:20px;line-height:1;letter-spacing:-.6px}.hud small{font-size:14px;font-weight:400;letter-spacing:0;color:#b0b39f}.board-wrap{position:relative;width:100%;aspect-ratio:1.18;background:var(--sea);overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}.board-wrap canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px;cursor:grab}.board-wrap canvas:active{cursor:grabbing}.board-chip{position:absolute;left:18px;top:15px;background:#fffef4d9;border:1px solid #fff8;padding:7px 10px;display:flex;align-items:center;gap:6px;border-radius:25px;pointer-events:none;color:#6f8876;font-size:9px}.board-chip i{width:5px;height:5px;border-radius:50%;background:#8aa17a}.board-hint{position:absolute;top:13px;right:14px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#f9fff2b3;color:#6f8b78}.board-hint:hover{background:#fffef5}.board-hint .icon{width:17px;height:17px}.toast{position:absolute;bottom:17px;left:50%;transform:translate(-50%,9px);max-width:90%;padding:10px 16px;border-radius:12px;background:#294b3fed;color:#fffbed;font-size:11px;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;box-shadow:0 4px 12px #23413715}.toast.visible{opacity:1;transform:translate(-50%,0)}.instruction-row{display:flex;align-items:center;gap:10px;padding:16px 19px;min-height:61px}.instruction-marker{width:21px;height:21px;border:1px solid #e8c7a5;color:#c58b52;background:#fff4df;border-radius:50%;font-size:10px;display:grid;place-items:center;flex-shrink:0}.instruction-row p{font-size:11px;line-height:1.6;margin:0;color:#74846e;flex:1}.instruction-detail{font-size:9px;white-space:nowrap;color:#aaa995}
.controls{display:flex;align-items:center;gap:23px;margin:23px 5px 0}.drive-controls{display:grid;grid-template:repeat(3,31px)/repeat(3,35px);gap:3px;flex-shrink:0;touch-action:none}.direction{background:#e9ebdd;display:grid;place-items:center;border-radius:9px;padding:0;touch-action:none;user-select:none;color:#6e8168;font-size:19px;box-shadow:0 2px 0 #dfe3d0}.direction:hover{background:#dee4ce}.direction.pressed,.direction:active{background:#d0dcb9;transform:translateY(2px);box-shadow:none}.up{grid-column:2;grid-row:1}.left{grid-column:1;grid-row:2}.right{grid-column:3;grid-row:2}.down{grid-column:2;grid-row:3}.pad-center{grid-column:2;grid-row:2;place-self:center;width:5px;height:5px;background:#c6cdb5;border-radius:50%}.build-controls{flex:1;min-width:0}.build-button{height:55px;background:var(--orange);color:#fff9e9;display:flex;align-items:center;justify-content:center;gap:11px;border-radius:14px;width:100%;box-shadow:0 4px 0 #d8663f;font-size:17px;font-weight:700;letter-spacing:-.3px}@media(hover:hover){.build-button:hover{background:#ed6c41}}.build-button:active{transform:translateY(3px);box-shadow:0 1px 0 #d8663f}.build-button:disabled{background:#e4e6d8;color:#a9b09b;box-shadow:0 4px 0 #d9ddcc}.build-count{display:grid;place-items:center;min-width:24px;height:24px;border-radius:7px;background:#fff3;font-size:12px}.build-caption{display:block;font-size:9px;color:#a4a58e;text-align:center;margin-top:10px;min-height:12px;line-height:1.4}.utility-controls{display:flex;flex-direction:column;gap:9px;flex-shrink:0}.utility-button{display:flex;align-items:center;gap:8px;background:transparent;font-size:10px;padding:6px 2px;color:#89947e}.utility-button .icon{width:17px;height:17px}.utility-button:hover{color:var(--ink)}.utility-button:disabled{color:#b8beaa}.restart{color:#a3a68f}.keyboard-hint{text-align:center;font-size:9px;color:#a9ad97;margin:8px 0 0}.keyboard-hint>span{color:#89957f}.keyboard-hint i{font-style:normal;margin:0 8px;color:#c5c6b5}.mobile-hint{display:none}.site-footer{max-width:1144px;margin:33px auto 0;padding:20px 16px 24px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#b0af9a;letter-spacing:1.2px}.site-footer>span:last-child{letter-spacing:.2px;display:flex;align-items:center;gap:18px}.site-footer b{font-size:24px;font-weight:400;color:#c3c9af}
dialog{padding:0;border:1px solid #e7e2ce;border-radius:25px;background:var(--paper);color:var(--ink);max-width:min(520px,calc(100vw - 28px));width:100%;box-shadow:0 25px 120px #203d3540;max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#264b4055;backdrop-filter:blur(5px)}.dialog-inner{padding:36px;position:relative}.dialog-close{position:absolute;top:13px;right:16px;background:#e9ecdf;color:#85927c;width:29px;height:29px;border-radius:50%;font-size:20px;display:grid;place-items:center}.dialog-inner h2{font-size:32px;letter-spacing:-1.4px;margin:14px 0 12px}.dialog-lead{font-size:13px;line-height:1.8;color:#8b947e;margin:0 0 27px}.help-steps{display:grid;gap:20px}.help-steps>div{position:relative;padding-left:44px}.help-steps>div>span{position:absolute;left:0;top:0;width:29px;height:29px;display:grid;place-items:center;background:#ece6ce;color:#b99669;border-radius:9px;font-size:10px}.help-steps h3{font-size:14px;margin:0 0 6px}.help-steps p{font-size:12px;line-height:1.7;color:#8a947d;margin:0}.help-note{margin:25px 0 20px;font-size:11px;line-height:1.6;padding:13px 15px;background:#e9eedc;border-radius:12px;color:#82916f}.primary-button{display:flex;justify-content:center;gap:25px;align-items:center;background:var(--orange);color:#fff8e4;width:100%;min-height:49px;padding:13px 18px;border-radius:12px;font-size:13px;font-weight:700;box-shadow:0 3px 0 #d36b43}.primary-button:hover{background:#e96c43}.primary-button span{font-size:20px;line-height:1}.win-inner{text-align:center}.win-stars{display:flex;justify-content:center;gap:9px;margin:15px 0 23px}.win-stars svg{width:26px;height:26px;fill:#e5ba65}.win-stars .empty{fill:#dedfce}.postcard{margin:auto;max-width:280px;overflow:hidden;border:8px solid #fffcf3;border-bottom-width:24px;border-radius:3px;transform:rotate(-3deg);box-shadow:0 4px 15px #3e51421c;background:var(--sea)}.postcard svg{display:block;width:100%;height:auto}.win-caption{font-size:12px;margin:24px 0 8px;color:#79856f}.win-tip{font-size:11px;line-height:1.8;color:#9a9e86;margin:0 0 23px}.text-button{background:transparent;font-size:11px;color:#8a927b;padding:18px 8px 0}#mobileLevelList{margin-top:22px}#mobileLevelList .level-item{min-height:48px}#mobileLevelList .level-name{font-size:13px}
@media(min-width:1350px){.game-layout{max-width:1200px;gap:65px;grid-template-columns:254px minmax(0,1fr)}.board-wrap{aspect-ratio:1.25}.site-footer{margin-top:28px}}
@media(max-width:1000px){.game-layout{padding:0 28px;gap:30px;grid-template-columns:205px minmax(0,1fr)}.site-header{padding:0 28px;height:86px}h1{font-size:49px}.journey-intro{font-size:11px}.level-name{font-size:11px}.level-item{gap:9px;padding-left:4px}.hud{padding:0 10px}.hud-stat+.hud-stat{padding-left:15px}.hud-stat{gap:5px}.instruction-detail{display:none}.controls{gap:15px}.utility-label{display:none}.utility-button{padding:8px}.board-wrap{aspect-ratio:1.08}.site-footer{margin-right:28px;margin-left:28px}.site-footer>span:last-child{max-width:45%;text-align:right}}
@media(max-width:760px){.site-header{height:73px;padding:0 20px}.brand-type{font-size:22px}.brand-symbol,.brand-symbol svg{width:35px}.brand{gap:8px}.brand-type small{font-size:8px;letter-spacing:.2px}.header-actions{gap:7px}.edition{display:none}.circle-button{width:34px;height:34px}.circle-button .icon{width:19px;height:19px}.game-layout{display:block;margin:24px auto 0;padding:0 17px;max-width:590px}.journey{display:none}.level-heading{min-height:78px;padding:0 4px 17px}.level-heading h2{font-size:25px;margin:7px 0}.level-heading p{font-size:10px}.island-picker{font-size:8px}.picker-arrow{display:inline;font-size:15px}.best-pill{font-size:9px;padding:7px 9px}.game-card{border-radius:20px}.hud{height:66px;padding:0 10px}.hud-label{font-size:7px;letter-spacing:1.15px}.hud-icon{width:25px}.hud-icon svg{width:20px;height:20px}.hud strong{font-size:19px}.hud small{font-size:12px}.hud-stat+.hud-stat{padding-left:15px}.board-wrap{aspect-ratio:1}.board-chip{font-size:8px;top:12px;left:12px;padding:6px 9px}.board-hint{top:9px;right:10px;width:30px;height:30px}.instruction-row{padding:12px 13px;min-height:60px;gap:8px}.instruction-row p{font-size:10px}.instruction-marker{width:20px;height:20px;font-size:9px}.controls{margin:19px 1px 0;gap:19px}.drive-controls{grid-template:repeat(3,37px)/repeat(3,40px);gap:3px}.direction{border-radius:10px;font-size:22px}.build-button{height:56px;font-size:16px;gap:8px}.build-caption{font-size:8px;margin-top:11px}.utility-controls{gap:7px}.utility-button{width:37px;height:37px;border-radius:10px;background:#edeee3;padding:9px}.utility-button .icon{width:19px;height:19px}.keyboard-hint{display:none}.mobile-hint{display:block;font-size:9px;color:#a2aa92;text-align:center;line-height:1.6;margin:12px 4px 0}.site-footer{max-width:556px;margin:25px auto 0;padding:17px 20px 22px;border-top:0}.site-footer>span:first-child{font-size:7px;letter-spacing:.9px}.site-footer>span:last-child{font-size:8px;max-width:45%;gap:8px;line-height:1.6}.site-footer b{font-size:19px}.dialog-inner{padding:31px 25px}.dialog-inner h2{font-size:28px}.help-steps p{font-size:11px}}
@media(max-width:390px){.site-header{padding:0 15px}.game-layout{padding:0 11px;margin-top:20px}.brand-type{font-size:20px}.brand-type small{font-size:7px}.controls{gap:12px}.drive-controls{grid-template:repeat(3,34px)/repeat(3,36px)}.build-button{font-size:15px;gap:6px}.utility-button{width:34px;height:34px}.board-chip{font-size:7px}.hud-stat+.hud-stat{padding-left:10px}.hud-stat{gap:3px}.hud-icon{width:22px}.hud-label{font-size:6.5px}.best-pill{font-size:8px}.instruction-row p{font-size:9px}.site-footer>span:first-child{font-size:6px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep the complete play surface and controls within an ordinary laptop screen. */
@media(min-width:761px){.site-header{height:82px}.game-layout{margin-top:23px}.level-heading{min-height:77px}.hud{height:64px}.board-wrap{aspect-ratio:1.55;min-height:0}.instruction-row{padding:12px 18px;min-height:53px}.controls{margin-top:16px}.drive-controls{grid-template:repeat(3,27px)/repeat(3,33px)}.site-footer{margin-top:18px;padding-top:12px;padding-bottom:15px}.level-item{padding-top:9px;padding-bottom:9px}.journey-progress{margin:22px 0 18px}}
@media(max-width:760px){.site-header{height:64px}.game-layout{margin-top:18px}.level-heading{min-height:70px;padding-bottom:13px}.hud{height:58px}.board-wrap{min-height:0}.instruction-row{min-height:48px;padding:10px 12px}.controls{margin-top:14px;gap:12px}.drive-controls{grid-template:repeat(3,40px)/repeat(3,42px)}.mobile-hint{font-size:8px}.site-footer{margin-top:10px}}
@media(max-width:390px){.drive-controls{grid-template:repeat(3,38px)/repeat(3,38px)}.controls{gap:10px}.build-button{gap:6px}.site-footer>span:last-child{font-size:7px}}
@media(min-width:761px){.site-header{height:74px}.game-layout{margin-top:18px}.level-heading{min-height:70px}.hud{height:58px}.board-wrap{}.instruction-row{min-height:48px;padding-top:10px;padding-bottom:10px}.controls{margin-top:14px}.drive-controls{grid-template:repeat(3,25px)/repeat(3,33px)}.site-footer{display:none}}

/* Keep touch actions immediate and the medal target visible during play. */
button{touch-action:manipulation}
.move-progress{display:flex;align-items:center;gap:9px}
.star-goal{display:flex;flex-direction:column;gap:2px;align-items:center;min-width:37px;font-size:10px;line-height:1;color:#a48b51;font-variant-numeric:tabular-nums}
.target-stars{display:flex;gap:1px}
.target-stars svg{width:9px;height:9px;fill:#dfb261}
.target-stars svg.empty{fill:#c6cab7}.star-goal{flex-shrink:0;white-space:nowrap}
.lose-inner{text-align:center}.lose-symbol{width:100px;margin:25px auto 0}.lose-symbol svg{display:block;width:100%}
.lose-inner h2{margin-top:9px}.lose-reason{font-size:13px;line-height:1.8;color:#7d8a74;margin:16px 0 12px}.lose-note{font-size:11px;line-height:1.7;color:#9a9e86;margin:0 0 25px}
.lose-inner .primary-button{gap:10px}.lose-inner .primary-button .icon{width:19px;height:19px}
@media(max-width:760px){.move-progress{gap:6px}.star-goal{min-width:31px;font-size:9px}.target-stars svg{width:8px;height:8px}.lose-reason{font-size:12px}}
@media(any-pointer:coarse){.utility-button{min-width:44px;min-height:44px}.direction{min-width:40px;min-height:40px}.drive-controls{grid-template:repeat(3,40px)/repeat(3,40px)}}

/* Chapter pages keep twenty islands within the original compact selector. */
.chapter-tabs{display:flex;gap:5px;margin:0 0 11px;padding:4px;border:1px solid #e1e4d4;border-radius:13px;background:#eeeee3}
.chapter-tab{flex:1;min-height:33px;padding:7px 4px;border-radius:9px;background:transparent;color:#97a086;font-size:10px;letter-spacing:.7px;white-space:nowrap}
.chapter-tab.active{background:#fffdf4;color:var(--ink);box-shadow:0 2px 5px #294b3f0a;font-weight:700}
.chapter-heading{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8a9680;margin:0 4px 9px;min-height:15px}
.chapter-heading>span:last-child{font-size:9px;color:#a1a78f}
#mobileChapterTabs{margin-top:22px}#mobileChapterTabs .chapter-tab{min-height:40px;font-size:12px}
#mobileChapterTabs+.chapter-heading{font-size:11px;margin-top:13px;margin-bottom:11px}
#mobileLevelList{margin-top:0}
@media(any-pointer:coarse){.chapter-tab{min-height:40px}}

/* A labelled, touch-sized level picker with a consistent SVG chevron. */
.island-picker{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 10px;border:1px solid #d7ddca;border-radius:11px;background:#ecefdf;color:#405f4b;font-size:11px;letter-spacing:0;box-shadow:0 2px 0 #dce2ce}
.island-picker>.picker-title{font-weight:700}.island-picker .icon{width:16px;height:16px;flex-shrink:0}
.island-picker .picker-current{padding-left:8px;border-left:1px solid #d1d8c3;color:#809073;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.island-picker .picker-arrow{display:inline-flex;align-items:center;justify-content:center;line-height:1}.island-picker .picker-arrow .icon{width:14px;height:14px;transition:transform .15s}
.island-picker[aria-expanded="true"] .picker-arrow .icon{transform:rotate(180deg)}
.island-picker:active{transform:translateY(1px);box-shadow:0 1px 0 #dce2ce}
@media(hover:hover){.island-picker:hover{background:#e2e9d0;border-color:#bfcbb1}}
@media(min-width:761px){.level-heading{min-height:96px}.board-wrap{}}
@media(max-width:760px){.island-picker{min-height:40px;padding:8px 10px;font-size:11px}.level-heading{padding-bottom:15px}.level-heading>div:first-child{min-width:0}.best-pill{align-self:flex-end;margin-bottom:6px}.board-wrap{}}
@media(any-pointer:coarse){.island-picker{min-height:44px}}

/* Trial rules: a compact legend and the remaining construction budget. */
.chapter-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.chapter-tab{grid-column:span 2;min-width:0}.chapter-tab:nth-child(n+4){grid-column:span 3}
.level-rules{display:flex;align-items:center;gap:8px;min-height:35px;padding:5px 14px;border-top:1px solid #efeddf;background:#f3f5e9}
.rule-chip{font-size:10px;line-height:1.3;color:#8b794e;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.plot-rule{color:#638a6c}.plot-rule i{display:inline-block;width:12px;height:12px;border:1px dashed #6b9d7d;border-radius:3px;background:#c5dfca}
.rules-help{display:grid;place-items:center;margin-left:auto;padding:2px;background:transparent;color:#8a9d7f;min-width:23px;min-height:23px}.rules-help .icon{width:17px;height:17px}
.build-budget{display:block;text-align:center;font-size:11px;line-height:1.4;color:#66816b;font-weight:700;margin-top:8px;font-variant-numeric:tabular-nums}.build-budget.last{color:#c08645}.build-budget.spent{color:#c46d51}.build-budget:not([hidden])+.build-caption{margin-top:4px}
.level-rule-note{font-size:12px;line-height:1.75;padding:14px 16px;border:1px solid #d1dec8;background:#e9f0df;border-radius:13px;margin-top:23px;color:#64805f}
@media(min-width:761px){.has-rules .board-wrap{}}
@media(max-width:760px){.level-rules{gap:7px;padding:5px 11px;min-height:35px}.rule-chip{font-size:9px}.build-budget{font-size:9px;margin-top:9px}.has-rules .board-wrap{}.level-rule-note{font-size:11px}.rules-help{min-width:25px;min-height:25px}}

/* A six-stop journey, with permanent campaign gates and a separate free drive. */
.chapter-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.chapter-tab,.chapter-tab:nth-child(n+4){grid-column:auto;display:flex;justify-content:center;align-items:center;gap:4px}.chapter-tab .icon{width:11px;height:11px}.chapter-tab.locked{color:#a7ac99}
.chapter-gate{font-size:10px;line-height:1.65;padding:9px 11px;margin:0 0 10px;background:#edf0e2;border:1px solid #e0e5d3;border-radius:10px;color:#718365}.chapter-gate.locked{background:#f1ebdc;color:#9b845c;border-color:#e8dec9}
.level-item.locked .level-name{color:#a2aa96}.level-number .icon{width:13px;height:13px}.level-item.locked .level-number{background:#efeee5;border-color:#e1e2d4;color:#a4ad97}.practice-link{display:block;margin:11px 0 0;padding:9px 0;background:transparent;color:#819477;font-size:10px;text-decoration:underline;text-underline-offset:3px}
.session-banner{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:8px 11px;margin:0 3px 10px;border:1px solid #d7dfcc;background:#eaf0df;border-radius:10px;font-size:10px;color:#678066}.session-banner button{white-space:nowrap;background:#f7f9f0;padding:5px 8px;border-radius:7px;font-size:10px;color:#4f725b}.session-banner span:first-child{line-height:1.4}.mode-tabs{display:grid;grid-template-columns:1fr 1fr;background:#e9ecdf;border:1px solid #dce2cf;border-radius:11px;padding:4px;gap:4px;margin:21px 0 0}.mode-tabs button{background:transparent;border-radius:8px;font-size:12px;min-height:37px;padding:8px}.mode-tabs [aria-pressed="true"]{background:#fffdf4;color:#345943;box-shadow:0 2px 5px #294b3f0a;font-weight:700}
.secondary-button{display:flex;align-items:center;justify-content:center;min-height:43px;padding:11px 12px;border-radius:10px;border:1px solid #d6deca;background:#edf1e2;color:#5a795e;font-size:12px;font-weight:700}.secondary-button:hover{background:#e3ead5}.secondary-button:disabled{opacity:.55;cursor:default}.share-result{width:100%;margin-top:12px}.win-progress{font-size:11px;line-height:1.7;color:#5f805e;padding:11px 13px;background:#e7efdc;border-radius:10px;margin:0 0 18px}
.gate-inner{text-align:center}.gate-symbol{display:grid;place-items:center;width:68px;height:68px;border-radius:21px;background:#e8e6d3;color:#9b9873;margin:23px auto 15px}.gate-symbol .icon{width:33px;height:33px}.gate-note{font-size:11px;line-height:1.7;color:#919a83;margin:0 0 22px}.gate-inner .dialog-lead{margin-bottom:17px}.profile-progress{font-size:13px;color:#849475;margin:0 0 22px}.vehicle-list{display:grid;gap:10px}.vehicle-card{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:1px solid #dfe4d2;border-radius:14px;background:#f0f1e5;padding:13px}.vehicle-card>svg{width:65px;height:65px;flex-shrink:0}.vehicle-card>span{flex:1}.vehicle-card strong{display:block;font-size:14px;margin-bottom:6px}.vehicle-card small{display:block;font-size:11px;line-height:1.55;color:#8d9980;font-weight:400}.vehicle-card.selected{border-color:#98b18c;background:#e8efdb;box-shadow:0 0 0 1px #b2c4a0 inset}.vehicle-card> .icon{width:18px;height:18px}.vehicle-card.locked{opacity:.6}.vehicle-card b{color:#6b8f63;font-size:20px}.vehicle-note{font-size:11px;line-height:1.7;color:#88957a;margin:18px 2px 0}
.share-inner h2{margin-bottom:18px}.share-preview{display:block;width:min(100%,270px);height:auto;border-radius:10px;border:1px solid #e0e2d3;box-shadow:0 5px 17px #294b3f10;margin:0 auto 15px}.share-status{font-size:11px;line-height:1.65;color:#839175;min-height:36px}.share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.share-link-label{display:block;font-size:10px;color:#88977b;margin:18px 0 7px}.share-link{width:100%;border:1px solid #d9dfce;border-radius:8px;background:#fffdf4;color:#6a8264;padding:10px;font-size:11px;min-height:39px}.primary-button:disabled{opacity:.6;cursor:default}
#mobileChapterGate{font-size:11px;margin-bottom:13px}#mobileChapterTabs{margin-top:15px}
@media(min-width:761px){#levelList{max-height:calc(100dvh - 580px);min-height:165px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d3dcc4 transparent}.level-item{min-height:40px;padding-top:6px;padding-bottom:6px}.little-note{margin-top:13px;padding-top:14px}.has-session-banner .board-wrap{}}
@media(max-width:760px){.session-banner{font-size:9px;padding:7px 9px}.session-banner button{font-size:9px}.has-session-banner .board-wrap{}.vehicle-card{padding:10px;gap:10px}.vehicle-card strong{font-size:13px}.vehicle-card>svg{width:56px;height:56px}.vehicle-card small{font-size:10px}.share-preview{max-width:220px}.share-actions .secondary-button{font-size:10px}.edition{display:none}}
.level-lock{display:inline-flex;color:#a3ad96;margin-right:3px}.level-lock .icon{width:13px;height:13px}
@media(min-width:761px){.journey .little-note{display:none}}
@media(max-width:760px){.level-heading{position:relative}.level-heading>div:first-child{width:100%}.best-pill{position:absolute;right:4px;top:5px;margin:0;align-self:auto}.site-footer{display:none}}
.result-link{background:#e8efdb;color:#64805e;border:1px solid #d3dfc6;border-radius:8px;font-size:10px;padding:7px 10px;min-height:30px;white-space:nowrap;flex-shrink:0}.instruction-row:has(.result-link:not([hidden])) .instruction-detail{display:none}

/* A purchased stage includes its goal, short route and ghost demonstration. */
.board-hint{overflow:visible}.hint-badge{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#b49150;color:#fffbed;border:1px solid #f8f3df;font-size:9px;font-weight:700;line-height:1}
.hint-wallet{display:flex;align-items:center;gap:8px;color:#947741;background:#f0ead7;border:1px solid #e5d8b8;padding:11px 12px;border-radius:12px;font-size:12px}.hint-wallet .icon{width:18px;height:18px}.hint-wallet>span:last-child{margin-left:auto;font-size:9px;color:#a08f6b}.hint-free{padding:16px 1px 8px}.hint-free .eyebrow{font-size:8px;color:#a39b80}.hint-free p{font-size:13px;color:#77866c;line-height:1.75;margin:9px 0 0}.hint-status{font-size:12px;line-height:1.7;color:#819174;margin:12px 0 17px}.hint-pilot{font-size:11px;line-height:1.65;color:#6e865e;background:#e8efdc;border:1px solid #d8e3c8;border-radius:10px;padding:10px 12px;margin:10px 0}.hint-reward-rules{font-size:10px;line-height:1.8;color:#909b80;margin-top:19px;padding-top:15px;border-top:1px solid #e0e4d3}.hint-reward-rules b{color:#7a8d67;font-weight:700}.hint-recover{width:100%;margin-top:11px;font-size:11px;line-height:1.5}.hint-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:15px}.hint-choices button{border:1px solid #dedac3;background:#f0edde;border-radius:10px;padding:12px 7px;text-align:center}.hint-choices strong{display:block;font-size:11px;color:#87733d}.hint-choices small{display:block;font-size:9px;line-height:1.5;color:#a09576;margin-top:6px}.hint-choices button[aria-pressed="true"]{background:#e6d8b3;border-color:#c4ac70}
.hint-guide-controls{display:flex;gap:4px;flex-shrink:0}.hint-guide-controls button,.hint-continue{border:1px solid #d6c79e;background:#f2e8cb;color:#90743e;border-radius:7px;font-size:9px;min-height:30px;padding:6px 8px}.hint-guide-controls [aria-pressed="true"]{background:#dccc9e;border-color:#b99b55;color:#6e552a;font-weight:700}.hint-continue{flex-shrink:0;max-width:105px;line-height:1.3}.instruction-row:has(.hint-guide-controls:not([hidden])) .instruction-detail,.instruction-row:has(.hint-continue:not([hidden])) .instruction-detail{display:none}.build-button.hint-ready{box-shadow:0 4px 0 #b58a35,0 0 0 3px #e4c67d}.direction.hint-direction{outline:2px solid #bd984e;outline-offset:2px;background:#e8dcb8}.hint-profile{font-size:11px;line-height:1.7;color:#8d7c51;padding:10px 12px;border-radius:10px;background:#efead9;margin:0 0 15px}
@media(max-width:760px){.hint-inner .dialog-lead{font-size:11px}.hint-wallet{font-size:11px}.hint-wallet>span:last-child{font-size:8px}.hint-free p,.hint-status{font-size:11px}.hint-guide-controls{gap:3px}.hint-guide-controls button{font-size:8px;padding:6px;min-width:30px}.hint-continue{font-size:8px;padding:6px;max-width:83px}.hint-choices strong{font-size:10px}.hint-choices small{font-size:8px}.hint-profile{font-size:10px}.instruction-row:has(.hint-guide-controls:not([hidden])) p{font-size:9px}}
@media(any-pointer:coarse){.hint-guide-controls button,.hint-continue{min-height:35px}.board-hint{min-width:35px;min-height:35px}}


/* Match the play column to the board instead of flattening a wide canvas. */
@media(min-width:761px){
 .site-header{height:68px}.game-layout{--play-width:clamp(400px,calc((100dvh - 490px)*1.2),760px);max-width:calc(230px + var(--play-width) + 88px);grid-template-columns:230px minmax(0,var(--play-width));padding:0 24px;gap:40px;margin-top:18px;justify-content:center}
 .board-wrap{aspect-ratio:1.2;max-height:none;min-height:0}.level-heading{min-height:108px;padding-bottom:16px}.journey{padding-top:3px}h1{font-size:49px;margin:20px 0 16px}.journey-progress{margin:18px 0}
 #levelList{max-height:clamp(100px,calc(100dvh - 600px),330px);min-height:0}.controls{margin-bottom:18px}.keyboard-hint{margin-bottom:15px}
}
@media(min-width:761px) and (max-width:1000px){.game-layout{grid-template-columns:200px minmax(0,1fr);max-width:920px;gap:26px}.journey h1{font-size:44px}}
@media(max-width:760px){.board-wrap{aspect-ratio:1.05;max-height:none;min-height:0}.game-layout{margin-top:15px}.level-heading{padding-bottom:14px}}
/* All medal rows share the same vertical centre as the level title. */
.level-meta{display:inline-flex;align-items:center;justify-content:flex-end;align-self:center;gap:3px;min-width:36px;line-height:1;flex-shrink:0}
.level-meta svg{display:block;width:11px;height:11px;flex-shrink:0}.level-name{min-width:0;line-height:1.4}.best-pill{display:inline-flex;align-items:center;gap:4px;line-height:1.2}.best-pill svg{display:block;margin:0;flex-shrink:0}.hud-icon{display:inline-flex;align-items:center;justify-content:center}
.hud-moves>div{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:8px}.hud-moves .hud-label{grid-column:1;grid-row:1}.move-progress{display:contents}.move-progress>strong{grid-column:1;grid-row:2}.star-goal{grid-column:2;grid-row:1 / 3;align-self:center}.target-stars{align-items:center;justify-content:center;line-height:1}.target-stars svg{display:block}.win-stars{align-items:center}
/* Biomes remain visible in play and group the ten-level blocks in the menu. */
.level-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.level-biome{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 8px;border:1px solid color-mix(in srgb,var(--biome) 28%,#e6e6d8);background:color-mix(in srgb,var(--biome) 9%,#fffdf5);border-radius:8px;font-size:10px;line-height:1.2;color:#697e68;white-space:nowrap}.level-biome i{width:6px;height:6px;border-radius:50%;background:var(--biome);flex-shrink:0}.level-biome small{padding-left:5px;border-left:1px solid #d8deca;font-size:9px;color:#8b967e}
.chapter-tabs{display:flex;flex-direction:column;gap:5px;padding:5px;background:#eeeee3}.biome-stop{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:4px 5px;border-radius:9px;border-left:3px solid transparent;min-height:39px}.biome-stop.active{background:#fffdf4;border-left-color:var(--stop-color)}.biome-stop-name{font-size:10px;line-height:1.4;color:#8a977e;max-width:91px}.biome-stop.active .biome-stop-name{color:#526f52;font-weight:700}.biome-chapters{display:flex;align-items:center;gap:2px}.biome-chapters .chapter-tab{min-height:29px;min-width:33px;padding:5px 3px;font-size:8px;letter-spacing:0;gap:2px}.biome-chapters .chapter-tab.active{background:#e9eedb;box-shadow:none}.biome-chapters .chapter-tab .icon{width:9px;height:9px}.biome-chapters .chapter-tab.locked{min-width:39px}.practice-link:disabled{color:#a2aa97;text-decoration:none}.mode-tabs button:disabled{opacity:.5}
#mobileChapterTabs .biome-stop{min-height:46px;padding:5px 8px}#mobileChapterTabs .biome-stop-name{font-size:11px;max-width:none}#mobileChapterTabs .chapter-tab{font-size:10px;min-height:34px;min-width:43px}.chapter-tabs .chapter-tab:focus-visible{outline-offset:0}
@media(max-width:760px){.level-heading{position:relative}.level-heading>div:first-child{width:100%}.level-context{gap:7px;padding-right:0}.level-biome{font-size:9px;min-height:27px}.level-biome small{font-size:8px}.best-pill{position:static;margin:9px 0 0;align-self:flex-start}.level-heading{display:block}.level-heading h2{margin-top:9px}.hud-moves>div{column-gap:5px}.star-goal{min-width:28px}.level-name{line-height:1.45}.hint-guide-controls button{min-height:34px}}
@media(max-width:390px){.level-biome{font-size:8px;padding:5px 6px}.level-context{gap:6px}.island-picker{font-size:10px;gap:6px}.island-picker .picker-current{font-size:9px;padding-left:6px}#mobileChapterTabs .biome-stop-name{font-size:10px}#mobileChapterTabs .chapter-tab{min-width:40px;font-size:9px}.hud-moves>div{column-gap:4px}}

@media(min-width:761px) and (max-height:800px){.site-header{height:60px}.game-layout{margin-top:14px}.level-heading{min-height:96px;padding-bottom:12px}.hud{height:54px}.journey h1{font-size:42px;margin:15px 0 12px}.journey-intro{font-size:11px;line-height:1.65}.journey-progress{margin:16px 0}.biome-stop{min-height:34px}.keyboard-hint{display:none}.controls{margin-top:12px}.instruction-row{padding-top:9px;padding-bottom:9px}}

.level-heading{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0}.level-heading .level-context{width:100%}.level-caption-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.level-caption-row p{min-width:0;flex:1;line-height:1.5}.level-caption-row .best-pill{position:static;align-self:center;flex-shrink:0;margin:0;padding:5px 8px;font-size:9px}.level-heading h2{margin:8px 0 4px}
@media(min-width:761px) and (max-height:800px){.site-header{height:54px}.game-layout{margin-top:12px}.level-heading h2{font-size:24px}.level-heading{padding-bottom:10px}.instruction-row{min-height:45px}.controls{margin-bottom:12px}}
@media(max-width:760px){.level-caption-row .best-pill{font-size:8px;padding:5px 7px}.level-caption-row p{font-size:9px}}

.hud{padding:0 12px}.hud-stat{gap:7px}.hud-stat+.hud-stat{padding-left:14px}.hud-label{white-space:nowrap}

#levelList{overflow-x:hidden}.level-item:focus-visible{outline-offset:-3px}

/* Progress transfer and first-party analytics; scoped away from the game layout. */
.save-inner{max-width:650px}.local-save-status{color:var(--green,#294e42);font-weight:700}.save-explanation,.save-import-status,.analytics-settings p{font-size:14px;line-height:1.65}.save-actions{display:grid;gap:14px;margin:22px 0}.save-actions .primary-button{margin:0}.save-file-label{display:grid;gap:10px;font-size:14px;font-weight:700}.save-file-label input{max-width:100%;font:inherit;color:inherit}.save-import-status:empty{display:none}.analytics-settings{margin-top:28px;padding-top:20px;border-top:1px solid #dce0cf}.analytics-settings h3{margin:0 0 16px}.analytics-toggle{display:flex;gap:12px;align-items:center;font-weight:700}.analytics-toggle input{width:20px;height:20px;accent-color:#294e42;flex:none}.analytics-settings .player-label{font-size:11px;overflow-wrap:anywhere;color:#7b8778}.analytics-settings details{font-size:13px}.analytics-settings summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.save-warning{color:#ad4e31}.save-warning-banner{padding:14px 20px;background:#fff0d0;color:#794d25;text-align:center;font-size:14px}.save-warning-banner button{font:inherit;cursor:pointer;text-decoration:underline;background:none;border:0;color:inherit}.analytics-notice{max-width:1000px;margin:20px auto;padding:18px 22px;border:1px solid #dce0cf;border-radius:18px;background:#eef0e2;color:#4f6556;font-size:13px;line-height:1.6}.analytics-notice p{margin:0 0 12px}.analytics-notice div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.analytics-notice button{width:auto;margin:0;font-size:13px;padding:10px 14px}.save-inner .secondary-button{width:100%}.site-footer>[data-open-save]{padding:8px;margin:0;font-size:12px;letter-spacing:0;text-transform:none;white-space:nowrap}[hidden]{display:none!important}
@media(max-width:760px){.analytics-notice{margin:16px}.save-inner .dialog-lead{font-size:16px}.site-footer{flex-wrap:wrap;justify-content:center;gap:12px}.save-inner .primary-button{font-size:16px}}
