:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#253c52;background:#edf3f5;font-synthesis:none;--orange:#e96946;--ink:#253c52}
.below-left{display:flex;align-items:center;gap:24px}.shop-open{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #cbdbe2;border-radius:10px;color:#385e74;background:#f7fafb;font-size:12px;white-space:nowrap}.shop-open:hover{border-color:#d6956b;background:#fff8ef}.shop-open:disabled{opacity:.5;cursor:wait}.shop-open>span:first-child{color:#bd8845}.shop-open-tag{font-size:9px;color:#458477;background:#e0efea;border-radius:4px;padding:3px 5px}.shop-dialog{width:min(700px,93%);max-height:93%;overflow:auto;padding:24px 26px 22px;text-align:left}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-eyebrow{font-size:9px;letter-spacing:2px;color:#7a949e}.shop-heading h2{font-size:23px;margin:7px 0 8px;letter-spacing:.5px}.free-badge{border:1px solid #bbd9cd;background:#e4f1e9;border-radius:16px;padding:6px 10px;color:#367963;font-size:10px;white-space:nowrap}.shop-intro{font-size:11px!important;line-height:1.6;margin:0 0 16px!important;color:#77909d}.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.character-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:10px 7px 12px;border:1px solid #d6e3e8;border-radius:14px;background:#edf4f5;color:#2f5368;transition:border-color .15s,background .15s}.character-card:hover{border-color:#d9ab7e;background:#fff7eb}.character-card[aria-pressed=true]{border:2px solid #d47b4b;padding:9px 6px 11px;background:#fff4e5}.character-card:disabled{cursor:wait;opacity:.65}.character-card img{display:block;width:112px;height:112px;max-width:100%;object-fit:contain}.character-card strong{font-size:13px}.character-description{font-size:9px;color:#7b929d;line-height:1.4}.character-state{font-size:10px;font-weight:600;color:#618b83;background:#e0eeea;border-radius:6px;padding:5px 8px;margin-top:3px}.character-card[aria-pressed=true] .character-state{color:#ad623e;background:#f6dfc5}.shop-status{font-size:11px;color:#486d80;text-align:center;margin:15px 0 7px;min-height:17px}.shop-status.error{color:#b0493b}.shop-storage{font-size:10px!important;color:#8198a2;margin:0 0 14px!important;text-align:center;line-height:1.5}.shop-dialog .primary-button{padding:11px 20px;font-size:13px}
@media(max-width:1200px){.below-left{gap:14px}.below-left .controls-guide{gap:12px}.below-left .controls-guide>span:last-child{display:none}}
@media(max-width:950px){.below-left .controls-guide{display:none}.shop-dialog{padding:18px 22px}.shop-heading h2{font-size:21px}.character-card img{width:92px;height:92px}.character-description{font-size:8px}.shop-intro{margin-bottom:12px!important}.shop-status{margin-top:11px}}
@media(max-width:600px){.below{align-items:center}.below-left{gap:0}.shop-open{font-size:11px;padding:9px 10px;gap:5px}.shop-open-tag{font-size:8px}.record-button>span{border-left:0;padding:0;flex-basis:100%;margin:0}.shop-dialog{padding:18px 17px 16px;width:93%}.shop-heading h2{font-size:18px;margin:6px 0 8px}.shop-eyebrow{font-size:7px;letter-spacing:1.4px}.free-badge{font-size:9px;padding:5px 7px}.shop-intro{font-size:10px!important;margin-bottom:12px!important}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.character-card{padding:5px 5px 7px;gap:3px;border-radius:11px}.character-card[aria-pressed=true]{padding:4px 4px 6px}.character-card img{width:82px;height:82px}.character-card strong{font-size:12px}.character-description{font-size:8px}.character-state{font-size:9px;padding:4px 7px;margin-top:1px}.shop-status{font-size:10px;margin:10px 0 5px}.shop-storage{font-size:9px!important;margin-bottom:10px!important}.shop-dialog .primary-button{font-size:12px;padding:10px 16px}}
#guide-layer,#records-layer,#shop-layer{z-index:10}
#game:focus{outline:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #276da1;outline-offset:5px}[hidden]{display:none!important}
.page{max-width:1440px;margin:auto;padding:0 56px}.topbar{height:110px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center;color:var(--ink);text-decoration:none;font-size:25px;font-weight:800;letter-spacing:2px}.brand-mark{background:var(--orange);border-radius:12px;display:grid;place-items:center;width:42px;height:42px;color:white;font-size:32px;font-style:italic;padding-right:5px}.brand-sub{margin-left:15px;font-size:12px;font-weight:400;letter-spacing:2px;color:#728492;border-left:1px solid #becbd2;padding-left:16px}.header-note{font-size:13px;letter-spacing:2px;color:#7b8c98}.tag{display:flex;align-items:center;gap:8px;font-size:12px;color:#617a87}.tag i{width:6px;height:6px;border-radius:50%;background:#7caaa4}
.stage{position:relative;aspect-ratio:1280/660;overflow:hidden;border-radius:22px;background:#cde4f1;isolation:isolate;box-shadow:0 15px 55px #496e8412}#game{position:absolute;inset:0}#game canvas{display:block!important;width:100%!important;height:100%!important}
.hud{position:absolute;top:28px;left:34px;right:28px;display:flex;justify-content:space-between;align-items:flex-start;z-index:2;pointer-events:none}.stats{display:flex;align-items:center;gap:23px}.stat-label{font-size:11px;display:block;color:#668193;margin-bottom:5px;letter-spacing:1px}.stats strong{font-size:27px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums}.stats strong span:not(.star-icon){font-size:12px;font-weight:400}.stats .stars-stat strong #coins{font-size:24px;font-weight:650}.star-icon{color:#d99a35;font-size:23px}.stat-divider{height:29px;width:1px;background:#7e9fb141}.tools{display:flex;gap:10px;pointer-events:auto}.icon-button{background:#ffffff66;border:1px solid #ffffff8c;color:#426479;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-size:19px;position:relative}.icon-button:disabled{opacity:.4;cursor:default}.sound-slash{position:absolute;width:17px;height:1px;transform:rotate(-45deg);background:#426479}
.menu{position:absolute;left:7%;top:23%;z-index:3}.intro-label{font-size:12px;letter-spacing:2px;display:flex;align-items:center;gap:10px;color:#548093}.intro-label span{width:22px;height:2px;background:var(--orange)}h1{font-size:clamp(33px,4.35vw,64px);font-weight:800;line-height:1.3;letter-spacing:3px;margin:19px 0 14px}p{font-size:14px;line-height:1.9;color:#426b80;margin:0 0 24px}
.primary-button{min-width:173px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:0;background:var(--orange);color:white;border-radius:12px;padding:15px 23px;font-size:15px;font-weight:600;box-shadow:0 7px 18px #dc66422b;transition:background .15s,transform .15s}.primary-button:hover{background:#d65736;transform:translateY(-2px)}.start-hint{display:block;font-size:10px;color:#668598;margin-top:12px;margin-left:23px;letter-spacing:1px}
.world-caption{position:absolute;right:21%;bottom:12%;display:flex;align-items:center;gap:10px;font-size:10px;color:#cfdeeb;letter-spacing:2px}.world-caption span{color:white;font-weight:600}.world-caption i{width:20px;height:1px;background:#a8c1da}.run-hint{position:absolute;bottom:29%;left:50%;transform:translateX(-50%);font-size:13px;color:#52778c;background:#ffffffb0;border:1px solid #ffffffcc;border-radius:30px;padding:10px 20px;white-space:nowrap}.toast{position:absolute;left:50%;top:23%;transform:translateX(-50%);font-size:16px;font-weight:600;color:#b96534;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap}.toast.visible{opacity:1}.shield{position:absolute;top:30px;left:50%;transform:translateX(-50%);background:#fff6d9b8;color:#9e7024;border:1px solid #f8e4a7;padding:8px 15px;border-radius:20px;font-size:12px}
.modal-layer{position:absolute;inset:0;display:grid;place-items:center;background:#203a575c;backdrop-filter:blur(7px);z-index:8}.dialog{text-align:center;background:#f9fcfdeb;border:1px solid white;border-radius:22px;padding:27px 43px 23px;min-width:345px;box-shadow:0 20px 60px #203a5726}.dialog-symbol{font-size:31px;color:var(--orange);display:block;line-height:1}.dialog h2{font-size:25px;letter-spacing:1px;margin:15px 0 10px}.dialog p{font-size:12px;margin-bottom:20px}.dialog .primary-button{width:100%;justify-content:center}.text-button{display:block;border:0;background:transparent;color:#748b98;font-size:12px;margin:13px auto 0;padding:5px 15px}.result-stats{display:flex;justify-content:center;gap:50px;margin:20px 0 23px}.result-stats strong{display:block;font-size:35px;font-weight:650}.result-stats span{display:block;font-size:10px;color:#7e929f;margin-top:5px}.record-label{display:block;color:#bd8230;font-size:11px;margin-top:9px}
.touch-controls{position:absolute;bottom:18px;left:18px;right:18px;display:none;justify-content:space-between;z-index:4;pointer-events:none}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;width:66px;height:66px;border-radius:50%;border:1px solid #ffffff99;background:#ffffff50;color:#fff;font-size:10px;box-shadow:0 2px 10px #172e4b22}.touch-controls button span{display:block;font-size:23px;line-height:1.1}
.below{display:flex;justify-content:space-between;align-items:center;padding:23px 4px;border-bottom:1px solid #d8e2e7}.controls-guide{display:flex;gap:24px;align-items:center;font-size:11px;color:#758693}kbd{font:10px "Segoe UI","Microsoft YaHei",sans-serif;border:1px solid #c9d4db;box-shadow:0 2px 0 #dce4e9;border-radius:5px;padding:4px 6px;margin-right:4px;color:#637988;background:#f6f9fa}.best{font-size:11px;color:#7d8e99}.best strong{font-size:18px;color:#3a556b;margin-left:10px;font-weight:650}footer{display:flex;justify-content:space-between;color:#94a3ad;font-size:11px;padding:22px 4px 30px;letter-spacing:.4px}.footer-star{color:#c79e52;margin-left:6px}
@media(min-width:1450px){h1{font-size:64px}}
@media(max-width:950px){.page{padding:0 24px}.topbar{height:85px}.header-note{display:none}.stage{aspect-ratio:1.65}.menu{top:24%;left:6%}h1{font-size:41px;margin:12px 0}.intro p{font-size:12px;margin-bottom:16px}.intro-label{font-size:10px}.hud{top:20px;left:24px;right:20px}.primary-button{font-size:13px;padding:12px 18px;min-width:150px}.controls-guide{gap:13px;font-size:10px}.touch-controls{display:flex}.world-caption{display:none}.run-hint{bottom:28%;font-size:10px}}
@media(max-width:600px){.page{padding:0 12px}.topbar{height:74px}.brand{font-size:22px;gap:9px}.brand-mark{width:35px;height:35px;font-size:28px;border-radius:10px}.brand-sub{font-size:10px;padding-left:10px;margin-left:10px}.tag{font-size:10px}.stage{aspect-ratio:0.72;border-radius:17px;max-height:740px}.hud{top:20px;left:20px;right:17px}.stats{gap:14px}.stat-label{font-size:9px}.stats strong{font-size:24px}.icon-button{width:34px;height:34px}.menu{top:23%;left:9%}h1{font-size:44px;line-height:1.25}.intro p{font-size:12px;line-height:1.8;margin-bottom:21px}.intro-label{font-size:10px}.primary-button{padding:14px 20px;min-width:163px;font-size:14px}.start-hint{display:none}.controls-guide{gap:7px}.controls-guide span{display:none}.controls-guide:before{content:'左手滑铲 · 右手跳跃 · 连点二段跳';font-size:10px}.below{padding:18px 1px}.best{font-size:10px}.best strong{font-size:16px;margin-left:5px}footer{font-size:9px;padding:17px 0;gap:15px}footer span:last-child{max-width:155px;text-align:right;line-height:1.6}.dialog{min-width:0;width:88%;padding:27px 22px}.dialog h2{font-size:22px}.run-hint{font-size:10px;bottom:30%;padding:9px 12px}.shield{top:90px;font-size:10px}.toast{top:23%;font-size:14px}.touch-controls{bottom:24px;left:24px;right:24px}.touch-controls button{width:70px;height:70px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.obstacle-hint{position:absolute;top:19%;left:50%;transform:translateX(-50%);max-width:80%;padding:9px 16px;border:1px solid #ffffffa3;border-radius:20px;color:#365e73;background:#f6fbfbbd;font-size:12px;white-space:nowrap;pointer-events:none}
.guide-dialog{width:min(590px,90%);padding:22px 30px;max-height:91%;overflow:auto}.guide-dialog h2{margin:0 0 8px;font-size:22px}.guide-dialog>p{margin-bottom:16px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;text-align:left}.guide-card{display:flex;align-items:center;gap:11px;background:#e8f0f3;padding:10px;border-radius:10px}.guide-card strong{display:block;font-size:12px;margin-bottom:4px}.guide-card div>span{display:block;font-size:10px;color:#5d7d8d;line-height:1.5}.guide-symbol{display:grid;place-items:center;flex:0 0 35px;height:37px;border-radius:8px;background:#f9e5d1;color:#ae6a48;font-size:28px;line-height:1}.guide-symbol.drone,.guide-symbol.beam{background:#d6e7ed;color:#3e687b}.guide-symbol.steam{background:#e3eee8;color:#659e91}.guide-symbol.spikes{font-size:23px}.guide-dialog .primary-button{font-size:13px;padding:12px 20px}
@media(max-width:600px){.tools{gap:6px}.icon-button{width:32px;height:32px}.obstacle-hint{font-size:10px;top:21%;max-width:94%;padding:8px 10px}.guide-dialog{padding:19px 18px}.guide-dialog h2{font-size:19px}.guide-dialog>p{font-size:10px;line-height:1.6}.guide-grid{gap:7px;grid-template-columns:1fr}.guide-card{padding:7px 10px;gap:12px}.guide-card strong{margin-bottom:2px;font-size:11px}.guide-symbol{height:28px;flex-basis:30px;font-size:22px}.guide-card div>span{font-size:9px}.guide-dialog .primary-button{padding:10px 16px}}
@media(max-width:600px){.guide-dialog{padding:16px 18px}.guide-dialog>p{margin-bottom:10px}.guide-grid{gap:5px}.guide-card{padding:6px 10px}}
.stats strong.score-number{font-size:32px;letter-spacing:.4px}.run-details{display:flex;gap:18px;margin-top:6px;font-size:11px;color:#5b7f92}.run-details b{font-weight:600;font-variant-numeric:tabular-nums}.run-details .star-icon{font-size:11px;color:#a36d22}.menu.intro{top:18%}.intro h1{margin:14px 0 12px}.intro p{margin-bottom:18px}.target-setting{display:flex;align-items:center;gap:13px;font-size:11px;color:#52788c;margin-bottom:17px}.target-setting select{font:inherit;font-size:12px;color:#335c72;border:1px solid #ffffffa8;border-radius:9px;background:#f7fbfcc9;padding:9px 25px 9px 11px;cursor:pointer}.target-setting select:focus-visible{outline:3px solid #276da1;outline-offset:3px}
.goal-panel{position:absolute;top:112px;left:34px;width:235px;pointer-events:none;z-index:2}.goal-caption{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#52788c;margin-bottom:8px}.goal-caption strong{font-weight:600;font-variant-numeric:tabular-nums}.goal-track{height:5px;border-radius:8px;overflow:hidden;background:#789bad38}.goal-track>span{display:block;background:#e47752;height:100%;border-radius:8px;transition:width .15s linear}.goal-panel.achieved .goal-caption,.goal-result.achieved{color:#26786b}.goal-panel.achieved .goal-track>span{background:#438c80}.obstacle-hint{top:28%}.toast{top:20%;background:#fff7e8ed;padding:9px 14px;border-radius:12px;z-index:3}
.record-button{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#647e8e;font-size:11px;padding:3px 0 3px 10px}.record-button>strong{font-size:21px;color:#344f65;font-weight:650;font-variant-numeric:tabular-nums}.record-button>span{font-size:10px;border-left:1px solid #cbd9e0;margin-left:8px;padding-left:15px}.record-button b{font-weight:600}.record-button i{font-size:16px;font-style:normal;margin-left:7px;color:#b06e40}.record-button:hover{color:#b45d39}.records-dialog{max-width:440px;max-height:91%;overflow:auto}.records-dialog>.intro-label{display:block;font-size:9px;color:#7b969d}.record-hero{margin:22px 0 16px}.record-hero strong{display:block;font-size:53px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums}.record-hero>span{display:block;font-size:11px;color:#72909e;margin-top:8px}.records-dialog #record-details{font-size:11px;max-width:280px;margin:0 auto 17px;line-height:1.8}.record-distance{font-size:12px;color:#5d7c8c;padding:13px;background:#e7eff2;border-radius:10px}.record-distance strong{font-size:20px;margin:0 6px;color:#3b5c70}.records-dialog .storage-note{font-size:10px;line-height:1.7;margin:17px auto;color:#7c929f;max-width:275px}
.score-dialog{width:min(440px,90%);max-height:94%;overflow:auto;padding:22px 32px 18px}.score-dialog h2{font-size:23px;margin:8px 0 14px}.score-dialog .record-label{margin:0 0 7px}.result-score strong{font-size:49px;font-weight:750;line-height:1.1;display:block;font-variant-numeric:tabular-nums}.result-score>span{font-size:10px;color:#75909e;display:block;margin-top:6px}.goal-result{display:inline-block;margin:15px 0 10px;padding:7px 13px;border-radius:15px;background:#e7eff2;font-size:11px;color:#678596}.score-dialog #end-reason{font-size:11px;margin:0 auto;max-width:300px;line-height:1.7}.score-dialog .result-stats{gap:0;justify-content:space-between;margin:18px 0 12px;padding-top:14px;border-top:1px solid #dbe5e9}.score-dialog .result-stats>div{flex:1}.score-dialog .result-stats strong{font-size:23px}.score-dialog .result-stats span{font-size:9px;white-space:nowrap}.score-dialog .result-best{font-size:11px;margin:0 0 17px;color:#75909e}.result-best strong{color:#36596d;font-weight:600}.score-dialog .text-button{margin-top:8px}
@media(max-width:950px){.menu.intro{top:17%}.goal-panel{top:105px;left:24px;width:210px}.intro p{margin-bottom:12px}.target-setting{margin-bottom:13px}.target-setting select{padding:7px 22px 7px 9px}.intro h1{font-size:40px}.score-dialog{padding-top:15px;padding-bottom:12px}.score-dialog h2{font-size:21px;margin-bottom:10px}.result-score strong{font-size:42px}.score-dialog .result-stats{margin:11px 0 9px;padding-top:10px}.goal-result{margin:11px 0 8px}.score-dialog .result-best{margin-bottom:12px}}
@media(max-width:600px){.stats strong.score-number{font-size:29px}.run-details{gap:15px;font-size:10px;margin-top:5px}.run-details .star-icon{font-size:10px}.menu.intro{top:18%;left:9%}.intro h1{font-size:40px;line-height:1.23;margin:13px 0}.intro p{font-size:11px;margin-bottom:14px}.intro-label{letter-spacing:1px}.target-setting{font-size:10px;gap:11px;margin-bottom:15px}.target-setting select{font-size:11px;padding-top:8px;padding-bottom:8px}.goal-panel{top:111px;left:20px;right:20px;width:auto}.goal-caption{font-size:10px;margin-bottom:7px}.obstacle-hint{top:32%}.toast{top:39%;font-size:12px}.shield{top:73px;left:auto;right:18px;transform:none;font-size:9px;padding:6px 10px}.below{gap:10px;align-items:flex-start}.controls-guide:before{content:'左滑铲 · 右跳跃';font-size:10px;white-space:nowrap}.controls-guide{padding-top:6px}.record-button{font-size:10px;gap:6px;padding-left:0;flex-wrap:wrap;justify-content:flex-end;max-width:205px}.record-button>strong{font-size:19px}.record-button>span{font-size:9px;padding-left:9px;margin-left:3px}.record-button i{margin-left:4px}footer{font-size:9px;line-height:1.6;gap:18px}footer>span:first-child{max-width:195px}footer>span:last-child{max-width:125px}.score-dialog{padding:19px 21px 14px}.score-dialog h2{font-size:20px;margin:5px 0 12px}.score-dialog .result-stats span{font-size:8px}.score-dialog .result-stats strong{font-size:22px}.score-dialog .primary-button{padding:12px 17px}.score-dialog .record-label{font-size:10px}.records-dialog{padding:22px}.records-dialog h2{font-size:21px}.record-hero strong{font-size:45px}.record-hero{margin:17px 0}.records-dialog #record-details{font-size:10px}}
/* Keep shop sizing after the shared dialog and mobile rules. */
@media(max-width:600px){.shop-dialog{width:95%;padding:14px;max-height:94%}.shop-heading{gap:8px}.shop-heading h2{font-size:17px;line-height:1.4;margin:4px 0 6px;text-align:left;letter-spacing:0}.shop-eyebrow{font-size:7px}.shop-intro{font-size:9px!important;line-height:1.5;margin-bottom:9px!important;text-align:left}.character-card img{width:68px;height:68px}.character-card{gap:3px;padding:5px 4px 6px}.character-card[aria-pressed=true]{padding:4px 3px 5px}.character-card strong{font-size:11px}.character-state{font-size:9px;line-height:1.3;padding:3px 7px}.shop-status{font-size:9px;margin:9px 0 4px;min-height:14px}.shop-storage{font-size:8px!important;margin-bottom:9px!important;line-height:1.5}.shop-dialog .primary-button{font-size:12px;padding:9px 16px}.record-button>span{border:0;padding:0;margin:0;flex-basis:100%}}
