*{box-sizing:border-box}html,body{height:100%;margin:0;background:#eeebde;color:#284b3e;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}body{overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:active{transform:translateY(1px)}button:focus-visible{outline:3px solid #dca563;outline-offset:3px}[hidden]{display:none!important}.icon{width:24px;height:24px;display:block;flex-shrink:0}.game{height:100dvh;position:relative;overflow:hidden;max-width:1920px;margin:auto}.stage{position:absolute;inset:0 360px 0 0;touch-action:none;background:#dbe0c7}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.topbar{position:absolute;top:0;left:0;right:0;height:76px;padding:env(safe-area-inset-top,0px) 25px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{background:#3b8069;color:#fff2d5;border-radius:14px;padding:10px;box-shadow:0 3px 0 #286550}.brand h1{font-size:20px;letter-spacing:1px;font-weight:800}.top-actions{display:flex;align-items:center;gap:9px}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #d4d9c6;background:#f8f6e9e8;border-radius:13px;padding:0}.icon-button.small{width:30px;height:30px;border:0;background:none}.icon-button.small .icon{width:19px;height:19px}.route-pill{display:flex;align-items:center;gap:9px;border:1px solid #d1d9c1;background:#f8f6e9ed;border-radius:30px;padding:10px 15px;font-size:12px;font-weight:700}.route-pill .icon{width:18px;height:18px}.route-pill small{font-size:10px;font-weight:500;color:#829375}.garage-gauges{position:absolute;left:24px;right:384px;bottom:25px;display:flex;justify-content:center;gap:8px;pointer-events:none}.garage-gauges>div{position:relative;display:flex;align-items:center;gap:7px;background:#fffaf0e8;border:1px solid #e6e4c9;border-radius:14px;padding:13px 12px;box-shadow:0 4px 0 #ccd2b74d;min-width:100px}.garage-gauges .icon{width:19px;height:19px;color:#7d9568}.garage-gauges strong{font-size:19px;line-height:1;font-variant-numeric:tabular-nums}.garage-gauges small{font-size:9px;color:#97a087}.garage-gauges .risk{color:#c57845}.garage-gauges i{position:absolute;bottom:4px;left:14px;height:2px;background:#d38d52;border-radius:5px;max-width:calc(100% - 28px)}.rack{position:absolute;right:20px;top:86px;bottom:22px;width:320px;display:flex;flex-direction:column;border:1px solid #e0dfcb;border-radius:22px;padding:16px;background:#fffcf1;overflow:hidden}.rack-heading{display:flex;align-items:center;height:27px;flex-shrink:0;gap:8px}.rack-heading h2{font-size:14px;margin:0}.rack-total{font-size:10px;color:#a3aa90;border:1px solid #e3e6d4;padding:2px 5px;border-radius:6px}.rack-heading button{margin-left:auto}.categories{display:flex;gap:4px;margin:12px 0;flex-shrink:0}.categories button{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:4px;border:0;border-radius:9px;padding:7px 0;background:none;color:#93a183;font-size:9px}.categories .icon{width:20px;height:20px}.categories button.active{background:#e5edde;color:#3e7d5e;box-shadow:inset 0 -2px #599377}.parts{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:thin;padding:1px 2px 3px}.part-card{position:relative;min-height:122px;border:1px solid #e5e4cf;border-radius:13px;background:#f7f7e9;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 5px 9px;touch-action:none}.part-card img{width:100%;height:74px;object-fit:contain;pointer-events:none}.part-card b{font-size:11px;pointer-events:none}.part-card small{margin-top:3px;font-size:9px;color:#9ba38a;pointer-events:none;font-variant-numeric:tabular-nums}.part-card.active{border-color:#71a389;background:#e8efdc}.part-card .installed{position:absolute;right:7px;top:7px;display:grid;place-items:center;background:#568b6c;color:#faf8e8;border-radius:50%;width:15px;height:15px}.installed .icon{width:10px;height:10px}.cargo-height{display:flex;align-items:center;gap:7px;margin-top:10px;flex-shrink:0}.cargo-height>.icon{width:19px;height:19px;color:#83966d;margin-right:auto}.cargo-height button{font-size:15px;width:42px;height:29px;border:1px solid #dce0cb;background:#f4f6e8;border-radius:8px;color:#8ca276}.cargo-height button.active{background:#dfeacf;border-color:#87a475;color:#477255}.part-inspector{height:43px;display:flex;align-items:center;gap:8px;flex-shrink:0;overflow:hidden;font-size:10px;color:#92a080}.part-inspector #part-name{white-space:nowrap;color:#5b7f5e;font-weight:650}.part-inspector #part-numbers{flex:1;white-space:nowrap;font-size:9px;overflow:hidden;text-overflow:ellipsis}.rack-bottom{padding-top:12px;border-top:1px solid #e8e7d5;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.delivery-target{display:flex;align-items:center;gap:4px;font-size:14px;color:#6d8b57}.delivery-target>.icon{width:21px;height:24px}.target-loss{display:flex;align-items:center;gap:2px;font-size:10px;color:#ad9370;margin-left:7px}.target-loss .icon{width:16px;height:19px}.launch-button{border:0;border-radius:13px;background:#42876d;box-shadow:0 4px 0 #2b6b53;padding:13px 21px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fffae7;font-size:14px;font-weight:750}.launch-button .icon{width:18px;height:18px}.launch-button:active{box-shadow:0 1px 0 #2b6b53;transform:translateY(3px)}.drive-hud{position:absolute;left:24px;top:90px;right:24px;max-width:410px;pointer-events:none}.stage-strip{display:flex;align-items:center;gap:6px;margin-bottom:11px;padding:8px 11px;background:#f7f4e5ee;border-radius:15px;max-width:360px}.stage-step{flex:1;display:flex;align-items:center;justify-content:center;height:31px;border-radius:8px;color:#a6b296;position:relative}.stage-step.active{background:#dae8c9;color:#517847}.stage-step.done{color:#6a8c58}.stage-step:after{content:"";position:absolute;width:calc(100% + 6px);height:2px;left:0;bottom:-8px;background:#d6deca}.stage-step:last-child:after{width:100%}.stage-step.active:after,.stage-step.done:after{background:#759a62}.stage-step .icon{width:20px;height:20px}.journey{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:10px;color:#697c56;max-width:360px}.journey b{margin-left:auto;font-size:11px}.journey-track{flex-basis:100%;height:3px;border-radius:5px;background:#b5c39e99}.journey-track i{display:block;height:100%;background:#6a9563;width:0;border-radius:5px}.speedometer{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap;max-width:155px;margin:17px 0 0;padding:10px 13px;border-radius:14px;background:#faf6e8ef;border:1px solid #d4dbc2}.speedometer strong{font-size:36px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums}.speedometer>span{font-size:9px;color:#7b9265}.energy-meter{flex-basis:100%;display:flex;align-items:center;gap:5px;margin-top:7px}.energy-meter>.icon{width:14px;height:14px;color:#6d945b}.energy-meter>div{height:5px;flex:1;background:#dce4cb;border-radius:5px;overflow:hidden}.energy-meter i{display:block;height:100%;width:100%;background:#75a569}.energy-meter b{font-size:9px;color:#7e9568;min-width:29px}.egg-hud{display:flex;gap:3px;position:absolute;left:175px;top:99px;background:#fcf6e7e8;padding:9px 10px;border-radius:12px}.egg-hud>.icon{width:18px;height:23px;color:#658c52;fill:#ecedce}.egg-hud>.broken{color:#ad8865;fill:#dcc7a2}.shock-meter{display:flex;gap:7px;align-items:center;width:124px;height:5px;margin:12px 0 0 8px;background:#b3bb9c88;border-radius:3px}.shock-meter>.icon{width:17px;height:17px;position:absolute;left:144px;color:#889b72}.shock-meter i{display:block;height:100%;width:0;background:#d5a05f;border-radius:3px}.drive-toolbar{position:absolute;bottom:105px;left:24px;right:24px;display:flex;align-items:center;justify-content:center;gap:14px;pointer-events:none}.drive-toolbar>*{pointer-events:auto}.speed-options{display:flex;align-items:center;gap:3px;border:1px solid #d1d9c0;background:#faf6e8ef;padding:5px;border-radius:17px;box-shadow:0 3px 0 #b1bf9966}.speed-options button{display:flex;align-items:center;gap:4px;border:0;background:none;border-radius:10px;padding:7px 10px;color:#819370}.speed-options .icon{width:19px;height:19px}.speed-options small{font-size:10px}.speed-options .active{background:#dceacb;color:#477a4d}.speed-options .assist{margin-left:4px;border-left:1px solid #d0dac0;border-radius:0 10px 10px 0;padding:7px 11px}.boost-button{position:relative;width:53px;height:49px;border-radius:15px;border:1px solid #b77843;background:#e6a05a;color:#fff4dd;display:grid;place-items:center;overflow:hidden;touch-action:none}.boost-button>.icon{width:25px;height:25px}.boost-button i{position:absolute;bottom:0;left:0;height:3px;background:#fff1ce;width:100%}.boost-button:disabled{opacity:.45}.drive-controls{position:absolute;left:24px;right:24px;bottom:27px;display:flex;align-items:center;justify-content:space-between;padding-bottom:env(safe-area-inset-bottom,0px);pointer-events:none}.drive-controls>div{display:flex;gap:12px;pointer-events:auto}.drive-controls button{display:grid;place-items:center;width:65px;height:61px;border:1px solid #c4ccb2;background:#fff9e9eb;border-radius:18px;box-shadow:0 4px 0 #a7b39480;touch-action:none}.drive-controls .icon{width:28px;height:28px}.drive-controls .gas{background:#d79350;border-color:#b47b45;color:#fff7df;box-shadow:0 4px 0 #ae7440}.drive-controls .held{background:#a9c494;box-shadow:none;transform:translateY(3px)}.drive-controls .gas.held{background:#be7b3c}.replay-tag{position:absolute;bottom:37px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:#386b54e8;color:#f8f3dd;border-radius:25px;padding:12px 20px;font-size:13px}.replay-tag .icon{width:15px;height:15px}.toast{position:absolute;top:90px;left:calc((100% - 360px)/2);transform:translateX(-50%);border-radius:25px;padding:10px 17px;background:#396650eb;color:#fff9e5;font-size:11px;white-space:nowrap;pointer-events:none;z-index:15}.loading{position:absolute;inset:0;z-index:30;background:#eeebde;display:grid;place-items:center}.loading>span{width:30px;height:30px;border:3px solid #d0d8bf;border-top-color:#4f8a6b;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#314f3c55;z-index:50;padding:20px}.result-card{width:340px;max-width:100%;padding:25px 24px 28px;border:1px solid #e8e6ce;border-radius:26px;background:#fffbed;box-shadow:0 16px 60px #32462a30;text-align:center}.result-symbol{width:66px;height:66px;background:#e6edda;color:#628859;display:grid;place-items:center;border-radius:50%;margin:0 auto 13px}.result-symbol>.icon{width:36px;height:36px}.result-card.failed .result-symbol{color:#b78851;background:#f3e4c7}.stars{display:flex;justify-content:center;gap:6px;color:#dba65d;height:24px}.stars .icon{width:23px;height:23px;fill:currentColor}.stars .empty{color:#e3dfc7}.result-card h2{font-size:24px;letter-spacing:2px;margin:13px 0 17px}.result-eggs{display:flex;justify-content:center;gap:7px}.result-eggs .icon{width:24px;height:30px;fill:#eef0d8;color:#68905e}.result-eggs .broken{fill:#e3d0ab;color:#ae8c69}.result-card p{font-size:12px;margin:17px 0;color:#9b8a68;min-height:17px}.result-numbers{display:flex;justify-content:center;gap:24px;font-size:12px;color:#7c9069;margin:19px 0 24px}.result-actions{display:flex;align-items:center;justify-content:center;gap:13px}.result-actions .launch-button{flex:1}.route-dialog,.help-card{background:#fffbee;border-radius:25px;padding:21px;width:460px;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-heading h2{font-size:18px;margin:0}.dialog-heading .icon-button{border:0;background:none}.route-cards{display:flex;flex-direction:column;gap:12px}.route-card{display:flex;align-items:center;gap:16px;background:#f1f3e4;border:1px solid #dbe2cb;border-radius:16px;padding:15px;text-align:left;width:100%;color:#577a50}.route-card.active{border-color:#84a070;background:#e8efd9}.route-card .route-mini{width:60px;height:85px;flex-shrink:0;border-radius:9px;background:#e0e8cf;padding:8px}.route-card-body{flex:1}.route-card-body>b{font-size:16px}.route-card-body>small{font-size:10px;display:block;margin-top:7px;color:#8c9f7c}.route-icons{display:flex;gap:6px;margin-top:10px}.route-icons .icon{width:16px;height:16px}.route-best{display:flex;flex-direction:column;gap:3px}.route-best .icon{width:14px;height:14px;fill:currentColor;color:#d7aa5f}.route-best .empty{color:#d1d8bd}.help-steps{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:13px 0 26px}.help-steps>div{display:flex;flex-direction:column;align-items:center;gap:14px}.help-steps .icon{width:35px;height:35px;color:#638c68}.help-steps b{font-size:11px}.help-steps>span{color:#b0ba9e}.help-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid #e4e6d0;padding:17px 0;font-size:10px;color:#859572}.help-controls .icon{width:18px;height:18px;margin-left:9px}.pause-card{background:#fffbee;border-radius:24px;padding:30px;display:flex;align-items:center;gap:20px;flex-direction:column}.pause-card>.icon{width:36px;height:36px}.drag-ghost{position:fixed;z-index:100;pointer-events:none;border-radius:15px;background:#38694fe8;padding:11px 20px;color:#fff5de;box-shadow:0 6px 15px #2c44304a;font-size:12px;transform:translate(-50%,-50%)}.driving .stage{right:0;bottom:0}.driving .toast{left:50%}.driving .topbar .route-pill{pointer-events:none}.driving .route-pill small{display:none}.driving .brand h1{font-size:16px}.driving .brand-mark{padding:8px}.driving .topbar{height:70px}
@media(max-width:900px){.stage{inset:0 0 282px}.topbar{height:61px;padding-right:13px;padding-left:13px}.brand h1{font-size:15px;letter-spacing:.5px}.brand-mark{padding:7px;border-radius:11px}.brand-mark .icon{width:21px;height:21px}.top-actions{gap:6px}.icon-button{width:34px;height:34px;border-radius:11px}.icon-button>.icon{width:19px;height:19px}.route-pill{font-size:10px;gap:5px;padding:8px 10px}.route-pill .icon{width:16px;height:16px}.route-pill small{display:none}.rack{width:auto;left:12px;right:12px;top:auto;bottom:12px;height:258px;padding:10px 12px;border-radius:19px;padding-bottom:max(11px,env(safe-area-inset-bottom,0px))}.rack-heading{height:19px}.rack-heading h2{font-size:11px}.rack-total{font-size:8px}.rack-heading .icon-button{height:20px;width:20px}.rack-heading .icon{width:16px;height:16px}.categories{margin:5px 0 7px;gap:3px}.categories button{flex-direction:row;justify-content:center;gap:4px;padding:7px 0;font-size:8px}.categories .icon{width:16px;height:16px}.parts{display:flex;overflow-x:auto;overflow-y:hidden;gap:8px;min-height:96px;touch-action:pan-x;padding:1px 0 4px;scrollbar-width:none}.part-card{width:99px;min-width:99px;min-height:100px;padding:3px 3px 5px;touch-action:pan-x}.part-card img{height:61px}.part-card b{font-size:10px}.part-card small{font-size:8px}.cargo-height{position:absolute;right:15px;bottom:66px;height:24px;margin:0;gap:4px}.cargo-height>.icon{display:none}.cargo-height button{width:27px;height:22px;font-size:12px}.part-inspector{height:25px;min-height:25px;font-size:9px;gap:7px}.rack.cargo-open .part-inspector{padding-right:98px}.part-inspector #part-numbers{font-size:8px}.part-inspector .icon-button{width:22px;height:22px}.part-inspector .icon{width:14px;height:14px}.rack-bottom{padding-top:7px}.launch-button{padding:10px 18px;font-size:12px;border-radius:11px}.launch-button .icon{width:16px;height:16px}.delivery-target{font-size:13px}.delivery-target .icon{width:19px;height:21px}.target-loss{font-size:9px}.garage-gauges{left:13px;right:13px;bottom:295px;gap:5px}.garage-gauges>div{gap:4px;min-width:0;padding:10px 7px;border-radius:11px;flex:1;justify-content:center}.garage-gauges .icon{width:15px;height:15px}.garage-gauges strong{font-size:14px}.garage-gauges small{font-size:7px}.garage-gauges i{left:8px;max-width:calc(100% - 16px)}.toast{top:70px;left:50%;font-size:10px;max-width:calc(100% - 30px);overflow:hidden;text-overflow:ellipsis}.driving .topbar{height:60px}.driving .brand h1{display:none}.driving .brand-mark{padding:6px}.drive-hud{left:15px;right:15px;top:73px;max-width:none}.stage-strip{max-width:none;margin-bottom:8px;padding:7px 8px;gap:4px}.stage-step{height:28px}.stage-step .icon{width:18px;height:18px}.journey{max-width:none;font-size:9px}.journey b{font-size:10px}.speedometer{max-width:128px;padding:9px 11px;margin-top:14px}.speedometer strong{font-size:31px}.speedometer>span{font-size:8px}.energy-meter{margin-top:6px}.energy-meter b{font-size:8px;min-width:26px}.egg-hud{left:auto;right:0;top:91px;gap:2px;padding:8px}.egg-hud>.icon{width:17px;height:21px}.shock-meter{width:102px;margin-top:10px}.shock-meter>.icon{left:125px;width:15px}.drive-toolbar{bottom:105px;left:14px;right:14px;gap:10px}.speed-options button{padding:7px 10px}.speed-options .icon{width:18px;height:18px}.speed-options small{font-size:9px}.speed-options .assist{padding:7px 10px}.drive-controls{left:15px;right:15px;bottom:28px}.drive-controls>div{gap:9px}.drive-controls button{width:55px;height:58px;border-radius:16px}.drive-controls .icon{width:25px;height:25px}.boost-button{width:46px;height:47px;border-radius:13px}.result-card{width:315px;padding:22px}.result-card h2{font-size:22px}.result-card .icon-button{width:38px;height:38px}.route-dialog{padding:17px}.route-card{padding:12px;gap:12px}.help-card{padding:20px}.help-controls{gap:4px;font-size:9px}.help-controls .icon{margin-left:4px}}
@media(max-height:660px) and (min-width:901px){.topbar{height:64px}.rack{top:73px;bottom:14px;padding:12px}.rack-heading{height:22px}.categories{margin:7px 0}.categories button{padding:5px}.part-card{min-height:108px}.part-card img{height:59px}.part-inspector{height:33px}.rack-bottom{padding-top:8px}.launch-button{padding:10px 18px}.garage-gauges{bottom:18px}.drive-hud{top:78px}.speedometer{margin-top:11px}.drive-toolbar{bottom:91px}.drive-controls{bottom:20px}.drive-controls button{height:54px}}
@media(max-width:900px) and (max-height:670px){.stage{bottom:256px}.rack{height:234px;bottom:8px}.garage-gauges{bottom:266px}.part-card{min-height:87px}.part-card img{height:48px}.parts{min-height:84px}.rack-heading{height:16px}.categories{margin:3px 0 5px}.drive-hud{top:66px}.drive-toolbar{bottom:91px}.drive-controls{bottom:22px}.drive-controls button{height:51px}.stage-strip{padding:4px 8px}.speedometer{margin-top:10px}.speedometer strong{font-size:26px}.egg-hud{top:80px}.brand h1{font-size:13px}.topbar{height:56px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.stage{right:280px;bottom:0}.rack{left:auto;width:263px;top:65px;bottom:10px;height:auto;right:10px}.garage-gauges{left:15px;right:293px;bottom:17px}.parts{min-height:64px}.part-card{width:95px;min-width:95px;min-height:81px}.part-card img{height:45px}.rack-heading{display:none}.categories{margin-top:0}.cargo-height{bottom:64px}.drive-hud{max-width:320px;top:62px}.stage-strip{padding:3px 7px}.speedometer{margin-top:8px;padding:6px 9px}.speedometer strong{font-size:25px}.egg-hud{top:80px;left:150px;right:auto}.drive-toolbar{bottom:20px;left:190px;right:190px}.drive-controls{bottom:15px}.drive-controls button{height:49px;width:51px}.driving .stage{right:0}.topbar .brand h1{font-size:15px}}

/* Assembly keeps the toy in focus; overlays dim without blur. */
.assembly-hint{font-size:10px;color:#708b63;flex:1;text-align:right;white-space:nowrap}.rack-heading button{margin-left:5px}.build-steps{display:flex;align-items:center;gap:5px}.build-step{width:31px;height:31px;display:grid;place-items:center;border:1px dashed #c8d3b9;border-radius:9px;color:#a1af91}.build-step .icon{width:17px;height:17px}.build-step.done{border-style:solid;background:#e3edd7;color:#527e53}.build-step.next{border-color:#73a184;color:#4c876c;box-shadow:0 0 0 2px #e5ecda}.launch-button:disabled{background:#a3b59a;box-shadow:0 3px 0 #879b7d;cursor:default}.categories button.next{box-shadow:inset 0 0 0 1px #7fa478}.game.tutorial .stage-strip{max-width:140px}.game.tutorial .shock-meter{display:none}.game.tutorial .drive-toolbar{display:none}.game.tutorial .drive-controls>div:first-child{visibility:hidden}.game.tutorial .drive-controls{justify-content:flex-end}.game.tutorial .egg-hud{display:none}.topbar .icon-button:disabled{opacity:.65}
@media(max-width:900px){.assembly-hint{font-size:8px}.build-steps{gap:3px}.build-step{width:24px;height:24px;border-radius:7px}.build-step .icon{width:14px;height:14px}.top-actions{gap:4px}.topbar .brand h1{font-size:13px}.topbar .route-pill{padding:7px 8px}.topbar .icon-button{width:31px;height:31px}.topbar .brand{gap:7px}}

/* The delivery contract stays small; detailed causes appear only after a run. */
.contract-time{font-size:10px;white-space:nowrap;color:#718564;margin-left:5px;font-variant-numeric:tabular-nums}
.mission-clock{padding:4px 8px;background:#f9f5e8eb;border-radius:8px;font-variant-numeric:tabular-nums;font-weight:750;color:#58784d}.mission-clock.urgent{color:#b36639;background:#f6dfbd}
.result-card .result-cause{font-size:11px;line-height:1.7;color:#8d7657;margin:11px 0 0}.result-card .result-comparison{font-size:11px;color:#63866a;margin:0 0 17px;padding:8px;background:#eaf0df;border-radius:9px}
@media(max-width:900px){.contract-time{font-size:9px;margin-left:3px}.delivery-target{gap:3px}.target-loss{margin-left:3px}.route-card-body>small{line-height:1.6;font-size:10px}.result-card{max-height:calc(100dvh - 30px);overflow-y:auto}}

/* Equipment comes from completed tasks; the starter rack has just three tabs. */
.campaign-step{font-size:9px;color:#9b966a;padding:2px 5px;border-left:1px solid #e0e2cf}.categories button{position:relative}.new-dot{position:absolute;right:6px;top:3px;width:5px;height:5px;border-radius:50%;background:#d9a05b}.new-tag{position:absolute;left:5px;top:5px;background:#e9c777;color:#755b28;font-size:7px;letter-spacing:.5px;padding:3px 4px;border-radius:5px;pointer-events:none}.route-card.locked{opacity:.57;cursor:default}.route-card.locked:active{transform:none}.route-locked{display:grid;place-items:center;width:60px;height:66px;flex-shrink:0;border-radius:10px;background:#e3e8d5;color:#8e9b7c}.route-card-body>b>em{font-style:normal;font-size:10px;margin-right:7px;border:1px solid #bac9a5;border-radius:5px;padding:2px 5px;vertical-align:middle}.game.no-steering-unlocked .drive-controls>div:first-child{visibility:hidden}
.reward-card{width:420px;max-width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;border-radius:25px;padding:25px;background:#fffbee;text-align:center;box-shadow:0 16px 50px #30413026}.reward-card h2{font-size:23px;margin:6px 0 8px}.reward-card>p{font-size:11px;color:#8c997b;margin:0 0 19px}.reward-card>.launch-button{width:100%;margin-top:22px;white-space:nowrap}.reward-crate{position:relative;width:100px;height:94px;margin:0 auto 8px}.crate-base{position:absolute;left:16px;right:16px;top:40px;bottom:5px;background:#d9b57c;border:3px solid #b69763;border-radius:4px 4px 13px 13px;box-shadow:inset 10px 0 #d0a86a,inset -10px 0 #e5c893}.crate-lid{position:absolute;left:11px;right:11px;top:28px;height:20px;background:#e3c68e;border:3px solid #b69763;border-radius:7px;transform-origin:10% 90%;z-index:2}.reward-crate>span{position:absolute;left:38px;top:54px;z-index:3;color:#8e7448}.reward-crate .icon{width:24px;height:24px}.reward-spark{position:absolute;width:8px;height:8px;background:#d9ae52;transform:rotate(45deg);opacity:0}.spark-a{left:6px;top:27px}.spark-b{right:0;top:15px}.spark-c{right:16px;top:49px}.opening .crate-lid{animation:crate-open .65s cubic-bezier(.2,.8,.3,1) both}.opening .reward-spark{animation:crate-spark .9s .25s both}.reward-items{display:grid;grid-template-columns:repeat(var(--columns,2),minmax(0,1fr));gap:10px}.reward-item{min-width:0;padding:9px 5px 12px;border:1px solid #dce2c9;border-radius:13px;background:#eef2df;display:flex;flex-direction:column;align-items:center;gap:5px}.reward-item img{width:100%;height:70px;object-fit:contain}.reward-item b{font-size:12px;white-space:nowrap}.reward-item small{font-size:10px;color:#8e9b79;white-space:nowrap}.opening .reward-item{animation:reward-arrive .5s calc(.2s + var(--delay)) cubic-bezier(.2,.9,.2,1.2) both}
@keyframes crate-open{0%{transform:translateY(0) rotate(0)}40%{transform:translateY(-5px) rotate(-4deg)}100%{transform:translate(-8px,-22px) rotate(-17deg)}}@keyframes crate-spark{0%{opacity:0;scale:.3}45%{opacity:1;scale:1.2}100%{opacity:.7;scale:.8}}@keyframes reward-arrive{from{opacity:0;transform:translateY(23px) scale(.75) rotate(-4deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(max-width:900px){.reward-card{width:350px;padding:21px}.reward-card h2{font-size:21px}.reward-item{padding:7px 3px 10px}.reward-item img{height:61px}.reward-item b{font-size:11px}.reward-item small{font-size:9px}.campaign-step{font-size:8px}.route-card-body>b{font-size:14px}.new-dot{right:8px;top:4px}}
@media(prefers-reduced-motion:reduce){.opening .crate-lid,.opening .reward-spark,.opening .reward-item{animation:none}.opening .crate-lid{transform:translate(-8px,-22px) rotate(-17deg)}.opening .reward-spark{opacity:.7}}

/* The physical workshop is the inventory. The dock only selects a shelf/item. */
.rack{top:auto;bottom:22px;height:auto;max-height:310px;padding:13px}.parts{display:flex;flex-wrap:wrap;gap:5px;overflow-y:auto;flex:none;max-height:72px;min-height:0}.part-card{min-height:0;min-width:0;padding:7px 10px;display:block;border-radius:8px;touch-action:manipulation}.part-card img,.part-card small,.part-card .installed{display:none}.part-card b{font-size:10px;font-weight:600}.part-card .new-tag{position:static;font-size:6px;margin-right:4px}.part-inspector{height:33px}.categories{margin:7px 0}.rack-bottom{margin-top:3px;padding-top:9px}.dragging-part #scene{cursor:grabbing}.cargo-height{position:static;margin:7px 0 0}.rack-heading h2{font-size:12px}
@media(max-width:900px){.game:not(.driving) .stage{inset:0 0 185px}.rack{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));top:auto;width:auto;height:auto;max-height:178px;padding:10px 12px;border-radius:19px}.rack-heading{height:20px}.categories{margin:3px 0 5px}.categories button{padding:5px 0;gap:0}.categories button span{display:none}.categories .icon{width:18px;height:18px}.parts{max-height:31px;min-height:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:0}.part-card{width:auto;min-width:fit-content;min-height:0;padding:5px 9px}.part-card b{font-size:9px}.part-inspector{height:23px;font-size:9px}.rack-bottom{padding-top:6px;margin-top:3px}.garage-gauges{bottom:195px}.cargo-height{position:absolute;bottom:46px;right:135px;gap:3px;margin:0}.cargo-height button{width:24px}.cargo-height>.icon{display:none}.assembly-hint{font-size:9px}.launch-button{padding:8px 16px}.game:not(.driving) .topbar{height:63px}.garage-gauges>div{padding:8px 6px}.garage-gauges strong{font-size:13px}}
@media(max-width:900px) and (max-height:670px){.game:not(.driving) .stage{bottom:175px}.rack{max-height:164px;bottom:6px;padding:7px 11px}.garage-gauges{bottom:181px}.part-inspector{height:20px}.categories{margin:2px 0}.rack-bottom{padding-top:5px}.topbar .brand h1{font-size:12px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.game:not(.driving) .stage{inset:0 270px 0 0}.rack{left:auto;right:10px;width:250px;bottom:12px;max-height:260px}.garage-gauges{left:12px;right:280px;bottom:12px}.categories button span{display:block}.parts{flex-wrap:wrap;max-height:65px}.cargo-height{position:static}}
