:root{--ink:#263e35;--muted:#667568;--paper:#faf9ef;--sage:#e5eadc;--red:#b95138;--red-dark:#91432e;--green:#426756;--line:rgba(53,81,64,.15);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--sage);font-size:16px;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{cursor:default}button,button:focus,input:focus{outline:none}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #b95138;outline-offset:4px}button{border:0}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.game-surface{position:fixed;inset:0;transition:opacity .5s;opacity:1}.game-surface canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}body[data-screen="intro"] .game-surface,body[data-screen="ending"] .game-surface{opacity:0;pointer-events:none}.title-art{position:fixed;inset:0;overflow:hidden;background:#dbe5cc;transition:opacity .6s}.title-art img{position:absolute;width:90%;height:100%;right:-12%;object-fit:cover;object-position:center}.title-wash{position:absolute;inset:0;background:linear-gradient(90deg,#edf0df 0%,#edf0df 12%,rgba(237,240,223,.95) 24%,rgba(237,240,223,.3) 44%,transparent 61%)}body:not([data-screen="intro"]) .title-art{opacity:0;pointer-events:none}.topbar{position:fixed;z-index:20;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:30px 42px;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;background:none;padding:0;text-align:left;letter-spacing:.18em;font-size:12px;line-height:1.5;font-weight:650}.brand b{font-size:9px;letter-spacing:.2em;font-weight:500}.brand-icon{width:42px;height:42px;background:var(--red);color:var(--paper);border-radius:50%;display:grid;place-items:center}.brand-icon svg{width:24px}.top-center{display:flex;align-items:center;gap:9px;font-size:13px;letter-spacing:.08em;position:absolute;left:50%;transform:translateX(-50%)}.top-center svg{width:19px;height:19px;color:#b27d3e}.top-actions{display:flex;gap:9px}.icon-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(250,249,239,.8);box-shadow:0 1px 2px #20322b08;transition:background .15s,transform .15s}.icon-button:hover{background:#fffdf3;transform:translateY(-1px)}.icon-button svg{width:20px;height:20px}.icon-button[aria-pressed="true"]{color:var(--red);background:#fffaeb}.intro-panel{position:absolute;left:9%;top:50%;transform:translateY(-43%);z-index:5;max-width:450px}.eyebrow{font-size:10px;letter-spacing:.21em;font-weight:650;line-height:1.6;color:var(--muted);margin:0 0 21px}.intro-panel .eyebrow{display:flex;align-items:center;gap:9px}.eyebrow>span:empty{width:22px;height:1px;background:var(--red)}h1,h2,p{margin-top:0}.intro-panel h1{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,serif;font-size:clamp(52px,5.3vw,80px);font-weight:650;line-height:1.28;letter-spacing:.08em;margin:0 0 23px}.title-dot{color:var(--red)}.intro-copy{font-size:20px;line-height:1.8;letter-spacing:.08em;margin:0 0 20px}.intro-description{font-size:14px;line-height:1.9;color:var(--muted);margin-bottom:26px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border-radius:8px;padding:13px 23px;letter-spacing:.06em;font-size:15px;font-weight:600;transition:transform .15s,background .15s;white-space:nowrap}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(0)}.button.primary{color:#fff8e8;background:var(--red);box-shadow:0 5px 0 #843c2920}.button.primary:hover{background:var(--red-dark)}.button.secondary{background:#e6ebe0;color:var(--ink)}.button.large{min-height:58px;min-width:278px;font-size:16px}.button svg{width:21px}.intro-secondary{display:flex;gap:22px;margin:23px 0}.text-button{background:none;display:inline-flex;gap:7px;align-items:center;padding:6px 0;font-size:13px;color:var(--green);border-bottom:1px solid transparent}.text-button:hover{border-bottom-color:var(--green)}.text-button svg{width:16px;height:16px}.save-note{font-size:11px;color:#758273;letter-spacing:.025em;line-height:1.8}.intro-caption{position:absolute;z-index:5;right:42px;bottom:32px;display:flex;gap:16px;align-items:center;font-size:10px;line-height:1.8;letter-spacing:.22em}.caption-line{width:50px;height:1px;background:#52684470}body:not([data-screen="intro"]) .intro-caption{display:none}
.play-hud{position:fixed;inset:0;pointer-events:none;z-index:10}.play-hud button,.play-hud input{pointer-events:auto}.mission-card{position:absolute;top:110px;left:32px;width:270px;border:1px solid #ffffff8a;border-radius:15px;background:#fbfaf1ed;padding:21px;box-shadow:0 8px 30px #253e3520;backdrop-filter:blur(12px)}.mission-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.mission-heading .eyebrow{font-size:9px;margin:0;letter-spacing:.13em}.stage-badge{font-size:10px;color:#8b6741;background:#efe8ce;padding:4px 7px;border-radius:4px}.mission-card h2{font-size:19px;letter-spacing:.03em;line-height:1.5;margin:12px 0 8px}.mission-description{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:17px}.mission-progress{display:flex;justify-content:space-between;font-size:12px;font-weight:600;margin-bottom:9px}#clock{font-variant-numeric:tabular-nums;letter-spacing:.1em;color:#6d7c6c}.progress-track{height:4px;border-radius:5px;background:#dde4d6;overflow:hidden;margin-bottom:14px}.progress-track div{height:100%;width:0;background:var(--red);transition:width .35s}.destinations{display:grid;gap:3px}.destination{width:100%;display:flex;align-items:center;gap:9px;text-align:left;background:none;padding:9px 4px;border-radius:6px;font-size:13px}.destination:hover{background:#e8ecdf}.destination .target-circle{width:19px;height:19px;border:1.5px solid var(--target-color,var(--red));color:var(--target-color,var(--red));border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:10px}.destination .target-circle svg{width:13px;height:13px}.destination.selected{background:#ebeedf}.destination.done{color:#95a18e}.destination.done .target-circle{background:#d8e0d0;border-color:#d8e0d0;color:#5f7960}.destination .distance{margin-left:auto;color:#8c9885;font-size:10px}.collection-status{border-top:1px solid var(--line);margin-top:11px;padding-top:13px;display:flex;gap:8px;align-items:center;font-size:12px;color:var(--green)}.collection-status svg{width:17px;height:17px;color:#a87b36}.route-button{margin-top:14px;width:100%;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;background:#e6ecdf;color:var(--green);font-size:12px}.route-button svg{width:16px;height:16px}.route-button[aria-pressed="false"]{background:#efeee4;color:#8a9080}.view-tools{position:absolute;bottom:104px;right:30px;display:flex;align-items:center;gap:9px;font-size:11px;color:#657c6a}.view-tools .icon-button{width:37px;height:37px}.flip{transform:scaleX(-1)}.rescue-button{margin-left:12px;background:#fbfaf1d9;padding:10px 12px;border-radius:20px;font-size:11px}.goal-banner{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);min-width:315px;display:flex;align-items:center;gap:12px;padding:13px 18px;background:#faf9f1f0;border:1px solid #fff9;border-radius:12px;box-shadow:0 6px 22px #23433214;backdrop-filter:blur(8px)}.goal-icon{width:36px;height:36px;background:#efe4cc;border-radius:50%;display:grid;place-items:center;color:var(--red)}.goal-icon svg{width:19px;height:19px}.goal-banner>div:nth-child(2){display:grid;gap:3px}.goal-banner span#goalLabel{font-size:10px;color:#7c8975;letter-spacing:.07em}.goal-banner strong{font-size:14px;letter-spacing:.03em}.arrival-progress{margin-left:auto;width:36px;height:36px;opacity:.3}.arrival-progress.ready{opacity:1}.arrival-progress svg{width:36px;height:36px;transform:rotate(-90deg)}.arrival-progress circle{stroke:#d2dbc9;stroke-width:3;fill:none}.arrival-progress #arrivalRing{stroke:var(--red);stroke-dasharray:100.53;stroke-dashoffset:100.53}.keyboard-guide{position:absolute;left:31px;bottom:24px;display:grid;gap:9px;font-size:10px;color:#59725e}.keyboard-guide>span{display:flex;align-items:center;gap:4px}kbd{font:500 9px system-ui;background:#f9f9efba;border:1px solid #8ba08b50;border-radius:3px;padding:3px 4px;min-width:19px;text-align:center}.touch-controls{position:absolute;bottom:calc(22px + var(--safe-bottom));left:26px;right:26px;display:none;align-items:flex-end;justify-content:space-between;pointer-events:none}.joystick-wrap{display:flex;flex-direction:column;align-items:center;gap:7px}.joystick{position:relative;width:122px;height:122px;background:#f6f7eb70;border:1px solid #ffffffad;border-radius:50%;box-shadow:inset 0 0 30px #4057400c,0 5px 20px #293e2f12;touch-action:none;pointer-events:auto;user-select:none}.joystick-axis{position:absolute;background:#6e886b20;border-radius:2px}.axis-x{height:1px;width:75px;left:23px;top:60px}.axis-y{width:1px;height:75px;top:23px;left:60px}.joystick-knob{position:absolute;width:54px;height:54px;border-radius:50%;left:33px;top:33px;background:#fafaf0;box-shadow:0 3px 8px #29433326;border:1px solid #ffffffc4;display:grid;place-items:center;pointer-events:none}.joystick-knob span{width:16px;height:16px;border:3px solid #a9b99b;border-radius:50%}.control-caption{font-size:10px;color:#61715a;letter-spacing:.05em}.brake-button{width:74px;height:74px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:50%;background:#f8efe4df;border:1px solid #fff7;box-shadow:0 4px 16px #33333312;touch-action:none;user-select:none;pointer-events:auto;margin-bottom:20px;color:var(--red)}.brake-button span{font-size:13px;letter-spacing:.06em;font-weight:700}.brake-button small{font-size:9px}.brake-button:active{background:#e9d5c7}.garage-panel{position:absolute;top:50%;left:8%;transform:translateY(-40%);z-index:6;width:290px}.garage-panel .eyebrow{font-size:10px}.garage-panel h1{font-family:"Yu Mincho",serif;font-size:37px;letter-spacing:.03em;margin-bottom:20px}.garage-panel>p:not(.eyebrow){font-size:14px;line-height:2;color:var(--muted)}.garage-details{display:grid;gap:7px;padding:20px 0;border-top:1px solid var(--line);margin-top:25px}.garage-details span{font-size:14px;font-weight:600}.garage-details b{font-weight:400;font-size:11px;color:var(--muted)}.range-label{display:flex;justify-content:space-between;font-size:12px;margin:20px 0 8px}input[type="range"]{width:100%;accent-color:var(--red);cursor:pointer;min-height:24px}.garage-panel .button{width:100%;margin-top:26px}
.toast{position:fixed;z-index:70;top:94px;left:50%;transform:translate(-50%,-15px);max-width:min(90vw,490px);padding:14px 21px;display:flex;align-items:center;gap:10px;background:#314f42;color:#fffbed;border-radius:10px;box-shadow:0 8px 25px #23362d25;font-size:13px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast svg{width:20px;height:20px;color:#e6bf71}.modal-layer{position:fixed;inset:0;z-index:60;background:#1e382c66;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:25px}.modal{position:relative;width:500px;max-width:100%;max-height:90dvh;overflow:auto;border-radius:20px;padding:40px;background:#faf9ef;box-shadow:0 20px 80px #122c2835;scrollbar-width:thin}.modal.wide{width:730px}.modal-close{position:absolute;right:15px;top:15px;width:33px;height:33px;background:#ecefdf}.modal .eyebrow{font-size:10px;margin-bottom:14px}.modal h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:29px;line-height:1.5;letter-spacing:.04em;margin-bottom:12px}.modal-lead{font-size:14px;line-height:1.9;color:var(--muted);margin-bottom:25px}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.modal-actions .button{flex:1}.help-steps{display:grid;gap:22px;margin:27px 0}.help-step{display:flex;gap:15px;align-items:flex-start}.step-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e8eddf;color:var(--green);flex-shrink:0}.help-step h3{font-size:15px;margin:0 0 6px}.help-step p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.small-note{font-size:11px;line-height:1.9;color:var(--muted)}.stage-list{display:grid;gap:10px;margin-top:25px}.stage-option{display:flex;gap:18px;align-items:center;text-align:left;width:100%;padding:16px 18px;border-radius:10px;background:#eef0e5;border:1px solid transparent;transition:background .15s}.stage-option:not(:disabled):hover{background:#e3e9d7;border-color:#d3ddc8}.stage-option:disabled{opacity:.5}.stage-number{font-family:Georgia,serif;font-size:29px;color:#a76c45;min-width:30px}.stage-info{flex:1}.stage-info h3{font-size:15px;margin:0 0 5px}.stage-info p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}.stage-status{font-size:10px;color:#9b7437;letter-spacing:.1em;text-align:center}.stage-status svg{width:17px;height:17px}.result-head{text-align:center}.result-stamp{width:68px;height:68px;display:grid;place-items:center;margin:0 auto 20px;border:2px solid #6d8a65;border-radius:50%;color:#64885d;transform:rotate(-10deg);box-shadow:0 0 0 5px #faf9ef,0 0 0 6px #79946f}.result-stamp svg{width:30px;height:30px}.result-head h2{font-size:29px}.result-stars{font-size:33px;color:#bf8b38;letter-spacing:.2em;margin:14px 0 21px}.result-stars .empty{color:#d9ddce}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:19px 0;margin:20px 0}.result-metrics>div{text-align:center;display:grid;gap:8px}.result-metrics>div+div{border-left:1px solid var(--line)}.result-metrics strong{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}.result-metrics span{font-size:10px;color:var(--muted)}.result-note{font-size:13px;line-height:1.9;color:var(--muted);text-align:center}.result-requirements{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:10px;color:#77866e}.result-requirements span.met{color:#997027}.ending-screen{position:fixed;inset:0;background:#e9eddd;z-index:25;display:flex;align-items:center;justify-content:center;overflow:auto}.ending-art{position:absolute;inset:0 0 0 40%;overflow:hidden}.ending-art img{height:100%;width:100%;object-fit:cover;opacity:.85}.ending-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#e9eddd,transparent 35%)}.ending-copy{position:relative;z-index:2;width:100%;padding:65px 9%;}.ending-copy .eyebrow{font-size:10px}.ending-copy h1{font-family:"Yu Mincho",serif;font-size:clamp(30px,3vw,44px);line-height:1.7;letter-spacing:.05em;margin:18px 0}.ending-copy>p:not(.eyebrow){font-size:14px;line-height:1.9;color:#596e58}.ending-copy .ending-thanks{font-weight:600;margin:18px 0}.ending-seal{display:flex;gap:10px;align-items:center;color:#977245;font-size:11px;line-height:1.6}.ending-seal svg{width:25px;height:25px}.ending-stats{display:flex;gap:22px;font-size:12px;color:#887746;margin:22px 0}.ending-copy .text-button{display:flex;margin-top:15px}.loading-indicator{position:fixed;bottom:18px;right:22px;background:#faf9efed;padding:10px 17px;border-radius:8px;font-size:12px;z-index:90}.modal-open .game-surface{pointer-events:none}.storage-warning{color:#9b5a39!important}.intro-panel,.garage-panel{animation:soft-in .6s ease both}@keyframes soft-in{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1500px){.title-art img{width:84%;right:-6%;object-fit:cover}.intro-panel{left:11%}}
@media(max-height:760px) and (min-width:761px){.topbar{padding:22px 32px}.intro-panel{transform:translateY(-42%)}.intro-panel h1{font-size:57px;margin-bottom:15px}.intro-panel .eyebrow{margin-bottom:15px}.intro-copy{font-size:17px;line-height:1.7;margin-bottom:15px}.intro-description{font-size:12px;line-height:1.7;margin-bottom:18px}.intro-secondary{margin:17px 0}.save-note{font-size:10px}.mission-card{top:88px;padding:16px;width:250px}.mission-card h2{font-size:17px}.mission-description{font-size:11px;margin-bottom:10px}.destination{padding:7px 3px}.garage-panel{transform:translateY(-37%)}.garage-panel>p:not(.eyebrow){font-size:12px}.garage-details{margin-top:15px;padding:12px 0}.range-label{margin-top:13px}.garage-panel .button{margin-top:15px}}
@media(pointer:coarse){.touch-controls{display:flex}.keyboard-guide{display:none}.goal-banner{bottom:calc(29px + var(--safe-bottom));min-width:270px}.view-tools{bottom:195px}}
@media(max-width:1000px) and (min-width:761px){.intro-panel{left:6%}.topbar{padding:24px 28px}.mission-card{left:20px;width:245px}.keyboard-guide{display:none}.goal-banner{left:60%}.garage-panel{left:5%;width:250px}}
@media(max-width:760px){
 .topbar{padding:19px 21px;padding-top:max(19px,env(safe-area-inset-top));height:83px}.brand{font-size:10px;gap:8px}.brand b{font-size:8px}.brand-icon{width:34px;height:34px}.brand-icon svg{width:20px}.top-actions{gap:6px}.icon-button{width:36px;height:36px}.icon-button svg{width:18px;height:18px}.top-center{display:none}.title-art img{width:100%;height:60%;top:7%;right:0;object-fit:cover;object-position:center 47%}.title-wash{background:linear-gradient(0deg,#edf0df 0%,#edf0df 29%,rgba(237,240,223,.85) 39%,transparent 54%,transparent 83%,#e7ecd9 100%)}.intro-panel{left:0;right:0;top:auto;bottom:calc(25px + var(--safe-bottom));transform:none;max-width:none;text-align:center;padding:0 24px}.intro-panel .eyebrow{font-size:8px;letter-spacing:.19em;justify-content:center;margin-bottom:12px}.intro-panel .eyebrow>span{display:none}.intro-panel h1{font-size:42px;line-height:1.2;letter-spacing:.08em;margin-bottom:16px}.intro-panel h1 br{display:none}.intro-copy{font-size:14px;line-height:1.75;margin-bottom:11px;letter-spacing:.06em}.intro-copy br{display:none}.intro-description{font-size:11px;line-height:1.8;margin-bottom:20px}.intro-description br{display:none}.button.large{min-height:52px;min-width:260px;font-size:15px}.intro-secondary{margin:17px 0 10px;gap:23px;justify-content:center}.text-button{font-size:11px}.save-note{font-size:9px;line-height:1.5;margin-bottom:0}.intro-caption{display:none}.mission-card{top:83px;left:15px;right:15px;width:auto;padding:13px 15px;border-radius:11px;background:#fbfaf1ef}.mission-heading .eyebrow{font-size:8px}.stage-badge{font-size:9px;padding:3px 6px}.mission-card h2{font-size:16px;margin:4px 0}.mission-description{font-size:10px;margin-bottom:8px;line-height:1.6}.mission-progress{font-size:10px;margin-bottom:5px}.progress-track{margin-bottom:8px;height:3px}.destinations{display:flex;gap:5px;flex-wrap:wrap}.destination{width:auto;max-width:100%;padding:4px 6px;font-size:10px;gap:5px;background:#f0f1e6}.destination .target-circle{width:15px;height:15px;font-size:8px}.destination .distance{display:none}.destination .target-circle svg{width:11px;height:11px}.route-button{position:absolute;right:15px;top:42px;width:auto;padding:5px 7px;font-size:9px;gap:4px;margin:0}.route-button svg{width:12px;height:12px}.collection-status{font-size:10px;margin-top:8px;padding-top:8px}.collection-status svg{width:14px;height:14px}.touch-controls{display:flex;left:23px;right:23px;bottom:calc(15px + var(--safe-bottom))}.joystick{width:112px;height:112px}.joystick-knob{width:50px;height:50px;left:30px;top:30px}.axis-x{top:55px;left:20px;width:70px}.axis-y{left:55px;top:20px;height:70px}.control-caption{font-size:9px}.brake-button{width:68px;height:68px;margin-bottom:21px}.brake-button span{font-size:12px}.brake-button small{font-size:8px}.keyboard-guide{display:none}.goal-banner{bottom:calc(157px + var(--safe-bottom));left:50%;min-width:0;width:max-content;max-width:calc(100% - 48px);padding:10px 13px;gap:9px;border-radius:9px}.goal-icon{width:30px;height:30px}.goal-icon svg{width:16px;height:16px}.goal-banner span#goalLabel{font-size:9px}.goal-banner strong{font-size:12px}.arrival-progress{width:29px;height:29px;margin-left:5px}.arrival-progress svg{width:29px;height:29px}.view-tools{bottom:calc(101px + var(--safe-bottom));right:22px;gap:5px;font-size:9px}.view-tools .icon-button{width:29px;height:29px}.view-tools .icon-button svg{width:16px;height:16px}.rescue-button{margin-left:2px;font-size:9px;padding:6px 8px}.garage-panel{left:24px;right:24px;top:auto;bottom:calc(22px + var(--safe-bottom));transform:none;width:auto;padding:20px;background:#faf9efef;border:1px solid #fff8;border-radius:14px;backdrop-filter:blur(8px)}.garage-panel .eyebrow{font-size:8px;margin-bottom:8px}.garage-panel h1{font-size:24px;margin-bottom:8px}.garage-panel>p:not(.eyebrow){font-size:11px;line-height:1.8;margin-bottom:12px}.garage-details{display:none}.range-label{font-size:11px;margin:10px 0 3px}.garage-panel .button{min-height:42px;margin-top:14px;font-size:12px}.toast{top:84px;padding:10px 14px;font-size:11px;width:max-content;max-width:92%}.toast svg{width:16px;height:16px}.modal-layer{padding:17px}.modal{padding:32px 24px;border-radius:16px;max-height:calc(100dvh - 42px)}.modal h2{font-size:25px}.modal-lead{font-size:12px;margin-bottom:17px}.help-steps{gap:18px;margin:22px 0}.help-step{gap:11px}.help-step h3{font-size:13px}.help-step p{font-size:11px}.step-icon{width:36px;height:36px}.step-icon svg{width:21px;height:21px}.modal-actions .button{font-size:13px;padding:12px 17px;min-height:46px}.stage-list{gap:8px;margin-top:18px}.stage-option{padding:13px 12px;gap:12px}.stage-number{font-size:25px;min-width:27px}.stage-info h3{font-size:13px}.stage-info p{font-size:10px}.stage-status{font-size:9px}.result-head h2{font-size:25px}.result-stars{font-size:29px}.result-metrics strong{font-size:19px}.result-note{font-size:12px}.result-requirements{gap:8px;font-size:9px}.ending-screen{align-items:flex-start}.ending-art{inset:0 0 auto;height:43%}.ending-art:after{background:linear-gradient(0deg,#e9eddd,transparent 45%)}.ending-art img{object-position:center 45%}.ending-copy{padding:0 26px 30px;margin-top:32vh;text-align:center}.ending-copy .eyebrow{font-size:8px;margin-bottom:13px}.ending-copy h1{font-size:29px;line-height:1.5;margin:15px 0}.ending-copy>p:not(.eyebrow){font-size:12px;line-height:1.9}.ending-seal{justify-content:center;font-size:10px}.ending-copy .ending-thanks{margin:13px 0}.ending-stats{justify-content:center;font-size:11px;margin:18px 0}.ending-copy .text-button{margin:13px auto 0}.ending-copy .button{font-size:13px;min-height:47px}.loading-indicator{font-size:10px;bottom:9px;right:12px}
}
@media(max-width:760px) and (max-height:740px){.title-art img{height:57%;top:5%}.intro-panel{bottom:calc(18px + var(--safe-bottom))}.intro-panel h1{font-size:36px;margin-bottom:12px}.intro-panel .eyebrow{margin-bottom:8px}.intro-copy{font-size:12px}.intro-description{font-size:10px;margin-bottom:15px}.intro-secondary{margin-top:13px}.mission-card{padding:10px 12px}.mission-description{display:none}.mission-card h2{font-size:14px;margin:3px 0 7px}.route-button{top:32px;right:12px}.goal-banner{bottom:143px}.touch-controls{bottom:10px}.joystick{width:100px;height:100px}.joystick-knob{left:24px;top:24px}.axis-x{top:49px;left:14px}.axis-y{left:49px;top:14px}.view-tools{bottom:91px}.garage-panel{padding:16px;bottom:17px}.garage-panel>p:not(.eyebrow){display:none}.garage-panel h1{font-size:22px}.range-label{margin-top:8px}.ending-copy{margin-top:28vh}.ending-copy h1{font-size:25px}.ending-copy>p:not(.eyebrow){font-size:11px}}
@media(max-width:950px) and (max-height:500px){.topbar{padding:12px 20px;height:57px}.intro-panel{left:5%;right:auto;bottom:20px;text-align:left;width:45%}.intro-panel .eyebrow{justify-content:flex-start;font-size:7px;margin-bottom:5px}.intro-panel h1{font-size:32px;margin-bottom:8px}.intro-copy{font-size:12px;margin-bottom:10px}.intro-description{display:none}.intro-secondary{justify-content:flex-start;margin-top:13px;gap:16px}.title-art img{height:100%;width:73%;right:-7%;top:0}.title-wash{background:linear-gradient(90deg,#edf0df 10%,#edf0df 20%,transparent 70%)}.save-note{font-size:8px}.button.large{min-width:230px;min-height:43px}.mission-card{top:65px;width:230px;right:auto;left:15px}.mission-card h2{font-size:13px}.mission-description{display:none}.mission-heading .eyebrow{font-size:7px}.route-button{top:30px}.goal-banner{left:58%;bottom:15px;max-width:260px}.touch-controls{left:20px;right:22px;bottom:10px}.joystick{width:88px;height:88px}.joystick-knob{left:18px;top:18px}.axis-x{top:43px;left:9px}.axis-y{left:43px;top:9px}.control-caption{display:none}.brake-button{width:59px;height:59px;margin-bottom:0}.view-tools{bottom:85px;right:20px}.garage-panel{left:4%;right:auto;width:240px;bottom:18px;padding:16px}.garage-panel h1{font-size:23px}.garage-panel .eyebrow{font-size:8px}.garage-panel>p:not(.eyebrow),.garage-details{display:none}.range-label{font-size:10px;margin-top:10px}.garage-panel .button{min-height:38px;font-size:12px;margin-top:14px}.ending-copy{margin:0;padding:35px 7%;text-align:left}.ending-copy h1{font-size:25px}.ending-copy>p:not(.eyebrow){font-size:11px}.ending-art{inset:0 0 0 40%;height:auto}.ending-art:after{background:linear-gradient(90deg,#e9eddd,transparent 45%)}.ending-copy .eyebrow{font-size:8px}.ending-copy>p br+br{display:none}.ending-copy .ending-thanks{margin:10px 0}.ending-stats{justify-content:flex-start;margin:10px 0;font-size:10px}.ending-copy .text-button{display:inline-flex;margin:0 0 0 12px}.ending-seal{justify-content:flex-start}.ending-copy .button{min-height:40px;font-size:11px}.ending-copy>p:not(.eyebrow){line-height:1.7;margin-bottom:10px}}
/* Keep gameplay labels legible, and touch targets generous. */
body[data-screen="ending"] .topbar{z-index:30}
.intro-secondary .text-button{font-size:14px;min-height:40px}
.mission-description{font-size:14px}.destination{font-size:14px;min-height:40px}
.route-button{font-size:14px;min-height:40px}.collection-status{font-size:14px}
.goal-banner strong{font-size:16px}.goal-banner span#goalLabel{font-size:12px}
.modal-lead{font-size:16px}.help-step p{font-size:14px}.help-step h3{font-size:16px}
.stage-info h3{font-size:16px}.stage-info p{font-size:13px}
.small-note,.save-note{font-size:12px}.result-note{font-size:14px}
.garage-panel>p:not(.eyebrow){font-size:16px}.range-label{font-size:14px}
.view-tools .icon-button{width:44px;height:44px}.view-tools .rescue-button{font-size:13px;min-height:40px}
@media(max-width:760px){
 .topbar .icon-button{width:40px;height:40px}.intro-description{font-size:13px;max-width:325px;margin-left:auto;margin-right:auto}.intro-description br{display:block}.intro-copy{font-size:15px}.save-note{font-size:10px}.intro-secondary{gap:19px;margin-top:12px}.intro-secondary .text-button{font-size:13px;min-height:38px}
 .mission-description{font-size:12px;max-width:220px}.mission-card h2{font-size:17px}.destination{font-size:12px;min-height:32px;padding:6px 8px}.route-button{font-size:11px;min-height:32px}.collection-status{font-size:12px;padding-top:7px;margin-top:7px}
 .goal-banner strong{font-size:14px}.goal-banner span#goalLabel{font-size:11px}.goal-banner{max-width:calc(100% - 30px);padding:10px 14px}.view-tools{bottom:calc(232px + var(--safe-bottom));gap:6px;right:18px}.view-tools .icon-button{width:40px;height:40px}.view-tools .rescue-button{font-size:12px;min-height:40px;padding:8px 10px;margin:0}.control-caption{font-size:11px}.brake-button span{font-size:14px}.brake-button small{font-size:10px}
 .modal-lead{font-size:14px}.help-step p{font-size:13px}.help-step h3{font-size:14px}.small-note{font-size:12px}.stage-info h3{font-size:14px}.stage-info p{font-size:12px}.stage-number{font-size:26px}.result-note{font-size:14px}.result-metrics span{font-size:12px}.result-requirements{font-size:11px}.modal-actions .button{font-size:14px}.garage-panel>p:not(.eyebrow){font-size:13px}.range-label{font-size:13px}.garage-panel .button{font-size:14px}.ending-copy>p:not(.eyebrow){font-size:14px}.ending-copy .button{font-size:14px}.ending-copy .text-button{font-size:14px}.ending-stats{font-size:12px;gap:13px}
}
@media(max-width:760px) and (max-height:740px){.intro-panel{bottom:16px}.intro-panel h1{font-size:34px;margin-bottom:9px}.intro-copy{font-size:14px;margin-bottom:7px}.intro-description{font-size:12px;line-height:1.6;margin-bottom:12px}.intro-secondary{margin:9px 0 6px}.save-note{font-size:9px}.view-tools{bottom:218px}.mission-card h2{font-size:15px}.destination{font-size:11px;min-height:29px}}
@media(max-width:950px) and (max-height:500px){.intro-panel h1{font-size:32px}.intro-copy{font-size:12px}.intro-secondary .text-button{font-size:12px;min-height:28px}.view-tools{bottom:85px}.mission-card h2{font-size:13px}.destination{font-size:11px;min-height:27px}.route-button{font-size:10px;min-height:27px}.goal-banner strong{font-size:13px}.goal-banner span#goalLabel{font-size:10px}.ending-copy>p:not(.eyebrow){font-size:11px}}
@media(max-width:760px){.intro-panel h1{font-size:clamp(29px,9.2vw,36px);white-space:nowrap}}
body[data-screen="stages"] .game-surface{opacity:0;pointer-events:none}
.stages-screen{position:fixed;inset:0;z-index:6;background:#e9eddf;overflow:auto;padding:125px max(6%,24px) 45px;scrollbar-width:thin}
.stages-masthead{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1300px;margin:0 auto 35px}.stages-masthead .eyebrow{margin-bottom:12px}.stages-masthead h1{font-family:"Yu Mincho",serif;font-size:40px;letter-spacing:.08em;margin:0 0 12px}.stages-masthead p:not(.eyebrow){font-size:14px;color:var(--muted);margin:0}.stages-summary{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.stages-summary>span{font-family:Georgia,serif;font-size:33px;letter-spacing:.04em}.stages-summary small{font-size:12px;color:var(--muted)}.stages-summary b{font-size:14px;color:#a67c37;font-weight:500;margin-top:8px}.stage-grid{max-width:1300px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.stage-card{position:relative;display:flex;flex-direction:column;padding:20px;text-align:left;min-height:230px;background:#fbfaf0;border:1px solid #fdfdf3;border-radius:13px;box-shadow:0 4px 12px #2f4b3310;transition:transform .2s,box-shadow .2s}.stage-card:not(:disabled):hover{transform:translateY(-4px);box-shadow:0 10px 24px #2f4b3320}.stage-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.stage-card-number{font-family:Georgia,serif;font-size:33px;color:#b36b45}.stage-card-mark{display:grid;place-items:center;width:38px;height:38px;background:#ecebd8;color:#8b9a70;border-radius:50%}.stage-card-mark svg{width:20px;height:20px}.stage-card-label{font-size:8px;letter-spacing:.12em;color:#969e85;margin-bottom:8px}.stage-card h2{font-size:16px;line-height:1.5;letter-spacing:.01em;margin:0 0 10px}.stage-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:18px;flex:1}.stage-card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d6ddca80;padding-top:14px;font-size:11px;color:#9d7741;gap:8px}.stage-card-bottom span:last-child{font-size:10px;color:#869276}.stage-card.locked{background:#e0e6d7;border-color:#d8dfce;box-shadow:none}.stage-card.locked .stage-card-number{color:#9ba68e}.stage-card.locked h2{color:#697962}.stage-card.locked .stage-card-mark{background:#d7dfcd;color:#95a189}.stage-card.locked .stage-card-bottom{color:#8d9980}.stage-card.cleared{border-color:#c3d0b4}.stage-card.cleared .stage-card-mark{color:#6b8954;background:#e3e9d5}.stages-footer{max-width:1300px;display:flex;align-items:center;gap:25px;margin:30px auto 0}.stages-footer p{font-size:12px;line-height:1.8;color:var(--muted);margin:0;flex:1}.stages-footer .button{font-size:14px}
@media(max-width:1150px){.stage-grid{grid-template-columns:repeat(3,1fr)}.stage-card{min-height:220px}.stages-screen{padding-top:110px}}
@media(max-width:760px){.stages-screen{padding:99px 20px 30px}.stages-masthead{margin-bottom:25px;gap:12px}.stages-masthead h1{font-size:29px;margin-bottom:10px}.stages-masthead .eyebrow{font-size:8px;margin-bottom:9px}.stages-masthead p:not(.eyebrow){font-size:12px;max-width:215px;line-height:1.8}.stages-summary>span{font-size:26px;white-space:nowrap}.stages-summary small{font-size:10px}.stages-summary b{font-size:12px}.stage-grid{grid-template-columns:repeat(2,1fr);gap:12px}.stage-card{padding:15px;min-height:218px;border-radius:10px}.stage-card-top{margin-bottom:12px}.stage-card-number{font-size:29px}.stage-card-mark{width:31px;height:31px}.stage-card-mark svg{width:17px;height:17px}.stage-card h2{font-size:14px;line-height:1.6}.stage-card-label{font-size:7px;letter-spacing:.06em}.stage-card p{font-size:11px;line-height:1.8;margin-bottom:13px}.stage-card-bottom{font-size:10px;padding-top:12px;flex-wrap:wrap;gap:5px}.stage-card-bottom span:last-child{font-size:9px}.stages-footer{flex-wrap:wrap;gap:17px;margin-top:25px}.stages-footer p{font-size:11px;min-width:150px}.stages-footer .button{font-size:13px;min-height:45px}.stages-footer #stagesEnding{width:100%}}
@media(max-width:950px) and (max-height:500px){.stages-screen{padding-top:75px}.stage-grid{grid-template-columns:repeat(3,1fr)}.stages-masthead h1{font-size:28px}.stages-masthead{margin-bottom:20px}}
@media(max-width:950px) and (max-height:500px){.intro-panel{top:auto;transform:none;bottom:18px}.intro-caption,.top-center,.keyboard-guide{display:none}.touch-controls{display:flex}.save-note{font-size:9px}.intro-panel .eyebrow{margin-bottom:8px}.intro-secondary{margin:10px 0 5px}.garage-panel{top:auto;transform:none}}

/* AppSeed navigation stays out of the driving controls. */
.appseed-return{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border:1px solid #9ba991;border-radius:22px;color:#365340;background:#faf9efdb;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap}
.appseed-return:hover{background:#fffdf3}.appseed-return:focus-visible,.support-link:focus-visible{outline:3px solid #b95138;outline-offset:4px}
body[data-screen="playing"] .appseed-return{display:none}.support-link{color:#365340;text-underline-offset:3px}
.no-script{position:fixed;inset:0;z-index:200;background:#edf0df;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;line-height:1.9;text-align:center}.no-script a{color:#365340}
@media(max-width:760px){.topbar{gap:8px}.appseed-return{min-height:40px;padding-inline:9px;font-size:12px}}
