*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}body{background:#d4c4e4;display:flex;justify-content:center;align-items:center;min-height:100dvh;overflow-x:hidden;overscroll-behavior:none}button{font:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;color:#fff}button:focus-visible{outline:4px solid #ffef66;outline-offset:2px}#stage{width:588px;height:1280px;position:relative;flex-shrink:0;overflow:hidden;isolation:isolate;box-shadow:0 0 80px #6b4d8e35;transform-origin:top left}#scene{position:absolute;inset:0;width:100%;height:100%}#controls{position:absolute;inset:0;pointer-events:none}#controls button{pointer-events:auto}button:active .tool-orb{transform:translateY(4px) scale(.94)}.level-label{position:absolute;top:77px;left:237px;width:115px;line-height:42px;height:43px;background:#002651b3;border-radius:23px;text-align:center;color:white;font-size:28px;font-weight:900;text-shadow:0 3px #000,2px 0 #111,-2px 0 #111;letter-spacing:1px}.round{background:radial-gradient(circle at 35% 25%,#b2efff,#23abde 65%,#287eaf);border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #b0a9b8,0 5px 0 #689db3,inset 0 0 0 3px #66cef3;display:grid;place-items:center}.settings{position:absolute;top:37px;left:19px;width:58px;height:58px;font-size:40px;line-height:1;text-shadow:0 2px 2px #126ca8;padding:0 0 5px;z-index:5}.extra{position:absolute;left:477px;top:741px;width:75px;height:101px;border:3px solid #f9f4ff;border-radius:22px;background:#bba0cf;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 1px 2px #e7d4f4}.extra span{font-size:30px;line-height:30px;font-weight:900}.extra strong{font-size:23px;line-height:28px;text-shadow:2px 2px #47414c,-1px -1px #47414c}.extra small{font-size:12px;color:#fff5aa;font-weight:bold}.extra[hidden]{display:none}.speed{position:absolute;top:858px;left:20px;width:85px;height:69px;display:flex;flex-direction:column;align-items:center;padding:0}.speed span{display:block;font-size:33px;line-height:35px;filter:drop-shadow(0 2px 0 #575172)}.speed strong{font-size:18px;font-weight:900;text-shadow:2px 2px #5d5e80,-1px -1px #5d5e80}.speed small{font-size:11px;background:#957cab;border-radius:7px;padding:0 7px;line-height:16px}.speed[data-active=true] span{filter:drop-shadow(0 0 5px #fff)}.speed[data-active=true] small{background:#63a737}.car-target{position:absolute;border-radius:15px;pointer-events:auto;display:block}.car-target:disabled{cursor:default;pointer-events:none}.car-target:hover:not(:disabled){background:#ffffff15;box-shadow:0 0 0 2px #fff6}.car-target.selected{box-shadow:0 0 0 4px #ffe867,0 0 24px #fff9;animation:pulse .8s alternate infinite}.car-target span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.toolbar{position:absolute;left:36px;right:33px;bottom:7px;height:107px;display:flex;justify-content:space-between;align-items:flex-end}.toolbar>button{width:118px;height:105px;padding:0;display:flex;align-items:center;flex-direction:column;gap:0}.tool-orb{display:block;position:relative;width:77px;height:77px;background:radial-gradient(circle at 35% 25%,#bcf7ff,#23b9e3 60%,#438fbf);border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 3px #929bb3,0 4px 0 #6c7b9c,inset 0 0 0 3px #81e2fb;transition:transform .12s}.tool-orb svg{width:100%;height:100%;padding:3px}.tool-orb i{font-style:normal;position:absolute;right:-13px;top:-7px;background:#c6200c;box-shadow:0 0 0 2px #6b767e;border:2px solid #ff9c72;border-radius:50%;width:29px;height:29px;color:white;font-size:24px;font-weight:900;line-height:24px;text-shadow:0 2px #8d251e}.tool-orb .dot{height:18px;width:18px;right:-7px;top:1px;background:#ff514b;border:2px solid white;box-shadow:none}.toolbar strong{font-size:23px;line-height:30px;font-weight:900;text-shadow:2px 2px 0 #45404e,-1px -1px 0 #45404e,1px -1px 0 #45404e,-1px 1px 0 #45404e}.toolbar button.active .tool-orb{box-shadow:0 0 0 4px #ffde37,0 0 25px white}#mode-note{position:absolute;top:647px;left:85px;right:85px;text-align:center;font-size:19px;font-weight:bold;color:#664780;border-radius:18px;background:#fff9;padding:10px;display:none;pointer-events:auto;cursor:pointer}#mode-note.show{display:block}#toast{position:fixed;left:50%;bottom:14%;transform:translate(-50%,12px);background:#47375ae8;padding:12px 20px;border-radius:16px;max-width:90vw;width:max-content;color:#fff;font-size:14px;z-index:50;text-align:center;opacity:0;pointer-events:none;transition:.18s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:360px;max-width:calc(100vw - 32px);background:linear-gradient(#fff8ff,#e9d8f8);border:4px solid #fff9;border-radius:28px;padding:28px 24px;color:#61467a;text-align:center;box-shadow:0 14px 65px #49305244}dialog::backdrop{background:#32244170;backdrop-filter:blur(3px)}dialog h2{font-size:24px;margin:8px 0 17px}dialog p{font-size:14px;line-height:1.85;margin:12px 0}dialog .close{position:absolute;right:12px;top:10px;color:#8d709d;width:32px;height:32px;font-size:30px;line-height:30px}.modal-button{display:block;width:100%;border:2px solid #fff9;padding:11px 14px;border-radius:15px;margin:10px 0;background:linear-gradient(#4bbee7,#2d96cd);box-shadow:0 3px #2d77a8;font-size:16px;font-weight:bold}.modal-button.purple{background:linear-gradient(#b89be4,#9772c8);box-shadow:0 3px #75549f}.modal-button.soft{background:#e2d0ed;box-shadow:0 2px #c4a7d9;color:#654979}.dialog-detail{font-size:12px;color:#91769f}.shop-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c9b2dc;padding:12px 0;font-size:15px}.shop-row b{color:#44924f}.win-star{font-size:65px;line-height:1.2}.progress-stat{font-size:13px!important;color:#9477a5}.instructions{text-align:left}.instructions p{margin:7px 0}@keyframes pulse{to{filter:brightness(1.2)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.home-header{position:absolute;left:28px;right:28px;top:36px;display:flex;align-items:center;gap:23px}.home-header .round{width:54px;height:54px;font-size:36px}.home-mini{font-size:34px;padding:0;line-height:32px;text-shadow:0 2px #347899}.home-mini small{display:block;font-size:15px;line-height:24px;font-weight:900}.coin-pill{margin-left:auto;border:2px solid #fff8;background:#007eb940;border-radius:30px;padding:8px 20px;color:white;font-size:23px}.home-title{position:absolute;top:124px;left:0;right:0;text-align:center;color:#fff}.home-title small{font-size:17px;letter-spacing:5px;color:#dcffff}.home-title h1{font-size:66px;letter-spacing:6px;line-height:1.1;margin:12px 0 5px;text-shadow:0 5px #137ca6,3px 0 #147fa8,-3px 0 #147fa8;font-weight:1000}.home-title p{margin:8px 0;font-size:20px;letter-spacing:8px;color:#fff4bb}.rank-badge{position:absolute;top:288px;left:174px;width:240px;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff3d7;border:3px solid #fff;border-radius:24px;padding:7px 12px;color:#9a5828;box-shadow:0 4px #039ba544}.rank-badge span{font-size:30px}.rank-badge b{font-size:21px}.picture-frame{position:absolute;left:77px;top:368px;width:434px;height:462px;border:11px solid #fbd473;border-radius:35px;background:#fff1db;box-shadow:0 7px #bd8739,0 14px 0 #734e3026,inset 0 0 0 4px #fff;display:flex;align-items:center;justify-content:center;padding:28px 20px 52px}.picture-frame canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.picture-frame>span{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#ac7d4a;font-size:19px;font-weight:bold;letter-spacing:2px}.home-actions{position:absolute;top:876px;left:38px;right:38px;display:flex;justify-content:space-between}.home-actions button{display:flex;flex-direction:column;align-items:center;font-weight:900;font-size:23px;color:#fff;text-shadow:1px 2px #396b66}.home-actions span{display:grid;place-items:center;background:linear-gradient(#a8ffff,#11ceb6);width:80px;height:77px;border:3px solid #fff6;border-radius:22px;box-shadow:0 5px #008d84,0 7px 0 #fff7;font-size:44px;margin-bottom:9px}.home-actions button:nth-child(3) span{background:linear-gradient(#c1ee85,#77c849);box-shadow:0 5px #4c9936,0 7px 0 #fff7}.home-actions button:nth-child(4) span{background:linear-gradient(#fff17d,#ffc719);box-shadow:0 5px #d39313,0 7px 0 #fff7}.start-game{position:absolute;top:1044px;left:145px;width:298px;height:105px;border-radius:33px;border:4px solid #fff1a0;background:linear-gradient(#ffdd3c,#ffb500);box-shadow:0 6px #bc7319,0 9px 0 #85502320;display:flex;flex-direction:column;justify-content:center;align-items:center}.start-game strong{font-size:37px;line-height:48px;text-shadow:2px 3px #96511c,-1px -1px #96511c;font-weight:1000}.start-game small{font-size:17px;background:#d7932060;border-radius:18px;padding:2px 17px}.home-caption{position:absolute;top:1170px;width:100%;text-align:center;color:#a58653;font-size:17px;margin:0}.home-help{position:absolute;top:1206px;width:100%;color:#998361;font-size:17px;text-decoration:underline;text-underline-offset:4px}.home-footer{position:absolute;bottom:13px;width:100%;text-align:center;color:#b39975;font-size:13px;letter-spacing:2px}#home{position:absolute;inset:0;overflow:hidden;background:linear-gradient(#00a2f1 0%,#21ccea 43%,#a5f7ef 62%,#fff0c9 69%,#fff3d8);isolation:isolate}#home[hidden]{display:none}.sun{position:absolute;width:120px;height:120px;right:-48px;top:190px;border-radius:50%;background:#ffefae;box-shadow:0 0 80px #ffffb980}.cloud{position:absolute;background:#ffffffad;border-radius:100px;width:190px;height:40px;top:330px;left:-70px;transform:rotate(-10deg)}.cloud:before,.cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;width:80px;height:75px;top:-40px;left:22px}.cloud:after{width:100px;height:100px;left:74px;top:-55px}.c2{top:445px;left:492px;transform:scale(1.5)}.ocean{position:absolute;top:638px;left:-100px;right:-100px;height:220px;background:linear-gradient(#46d1df,#3ddac2);border-radius:50% 50% 0 0}.shore{position:absolute;top:780px;left:-100px;width:800px;height:220px;background:#d9fff0;transform:rotate(-8deg);border-radius:50%}.sand{position:absolute;top:825px;left:-90px;width:800px;height:550px;background:radial-gradient(at 20% 20%,#fff7de,#fbe8b9);border-radius:50% 50% 0 0;transform:rotate(-5deg)}.island{position:absolute;top:598px;left:-50px;width:160px;height:100px;border-radius:50%;background:#47c399;box-shadow:0 12px #49cce0}.home-header,.home-title,.rank-badge,.picture-frame,.home-actions,.start-game,.home-caption,.home-help,.home-footer{z-index:2}#game-progress{position:absolute;top:678px;left:127px;width:326px;text-align:center;color:#887196;font-size:16px;font-weight:bold}#game-progress>div{height:6px;width:150px;margin:7px auto;border-radius:8px;background:#bda5d055;overflow:hidden}#game-progress i{display:block;background:#55bec1;height:100%;width:0;transition:width .3s}.hint{position:absolute;right:27px;top:875px;color:#897195;font-size:18px;font-weight:bold;background:#fff7;padding:8px 13px;border-radius:18px;pointer-events:auto}.level-label{left:201px;width:186px;font-size:27px}.lane-count{position:absolute;color:#9c85ac;font-size:12px;pointer-events:none}.sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:52vh;overflow:auto;padding:5px 3px 10px}.level-card{background:#fff9;border:2px solid #dfc9ec;border-radius:14px;min-height:108px;padding:8px 5px;color:#77598e;font-size:12px}.level-card b{display:block;font-size:15px;margin-bottom:4px}.level-card canvas{width:68px;height:65px;display:block;margin:0 auto 5px;image-rendering:pixelated}.level-card.locked{opacity:.55;background:#e0d3e9}.level-card .lock-icon{font-size:32px;display:block;margin:12px 0}.level-card.done{border-color:#70cabb}.level-card.current{box-shadow:0 0 0 2px #e9be49}.level-card small{display:block;color:#9c819e;font-size:11px}.toggle-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 15px;margin:10px 0;background:#edf5fa;border:1px solid #dae6ef;border-radius:17px;color:#548bb0;font-weight:bold;font-size:19px}.switch{display:flex;align-items:center;width:65px;height:34px;padding:3px;border-radius:25px;background:#9db7d0;box-shadow:inset 0 2px #637b9755}.switch:after{content:'';width:28px;height:28px;border-radius:50%;background:white;box-shadow:0 2px 3px #0002}.toggle-row[aria-pressed=true] .switch{background:#7ee500;justify-content:flex-end}.pause-actions{display:flex;gap:9px}.pause-actions button{flex:1;font-size:14px;padding:10px 5px}.modal-button.green{background:linear-gradient(#92ed23,#60cf04);box-shadow:0 3px #4b9a11}.modal-button.gold{background:linear-gradient(#ffdc42,#ffb900);box-shadow:0 3px #c7861b}.modal-button.cyan{background:linear-gradient(#39eadf,#0eb9bb);box-shadow:0 3px #138e91}.award-row{display:flex;align-items:center;text-align:left;gap:13px;padding:14px 5px;border-bottom:1px solid #e4d6ec}.award-row>span{font-size:35px}.award-row div{flex:1}.award-row b{display:block;font-size:15px}.award-row small{color:#9a85aa;font-size:12px}.award-row em{font-style:normal;font-size:12px;color:#39a491}.preview-art{width:180px;height:180px;image-rendering:pixelated;margin:0 auto;display:block}.result-stats{display:flex;justify-content:space-around;padding:12px 0;border-top:1px solid #e5d6ef;border-bottom:1px solid #e5d6ef}.result-stats strong{display:block;font-size:21px;color:#765192}.result-stats small{font-size:12px;color:#9a86a8}dialog{max-height:88dvh;overflow:auto;background:linear-gradient(#fff,#f0e7f9);border:4px solid #78bde4}dialog h2{color:#418fbf}body[data-screen=home] #controls{display:none}body[data-screen=home] #scene{visibility:hidden}.tutorial-highlight{box-shadow:0 0 0 5px #fff08a!important;background:#ffffff22;animation:pulse .7s alternate infinite}.hint-car{box-shadow:0 0 0 5px #fff08a!important;background:#fff4;animation:pulse .7s alternate infinite}

/* Dense-board layout and responsive dispatch feedback. */
.level-label{top:65px;pointer-events:none}.car-target:active:not(:disabled){background:#fff5;box-shadow:0 0 0 3px #ffe76e}.tap-blocked{animation:blocked .22s ease-out}#mode-note{top:861px;left:108px;right:98px;font-size:16px}.hint{z-index:2}@keyframes blocked{25%{margin-left:-5px}75%{margin-left:5px}100%{margin-left:0}}



.toolbar{justify-content:space-around}#helicopter-target{position:absolute;left:38px;top:55px;width:512px;height:610px;pointer-events:auto;touch-action:none;cursor:crosshair}#helicopter-target[hidden]{display:none}#helicopter-target:focus-visible{outline:2px dashed #ffef8c;outline-offset:2px}#mode-note{z-index:2}
