*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#3e101a;color:#fff0d1;font:16px/1.5 'DM Sans',sans-serif;background-image:radial-gradient(ellipse at 50% 5%,#8a282a 0,transparent 70%)}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #ffdc74;outline-offset:4px}button:disabled{opacity:.6;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:'Barlow Condensed',Impact,sans-serif;font-weight:800}.app{max-width:1360px;margin:auto;padding:0 5%}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0;border-bottom:1px solid #d9745430}.brand{font-size:36px;line-height:.8;letter-spacing:-.02em;transform:skew(-6deg)}.brand span{color:#ffac50;margin-left:4px}.brand sup{font-size:20px;vertical-align:top;margin-left:7px;color:#ffcd6e}.edition{display:flex;flex-direction:column;align-items:center;letter-spacing:.13em;font-size:11px;color:#d99c86;gap:3px}.edition strong{font-weight:500;color:#f4d5b3}.header-actions{display:flex;align-items:center;gap:14px}.header-actions button{background:none;color:#f8d8b2;font-size:12px;font-weight:700;letter-spacing:.06em;padding:10px}#help{width:34px;height:34px;border:1px solid #c77b61;border-radius:50%;padding:0;font-size:18px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:35px 0 25px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:#e5a389;margin-bottom:9px}h1{font-size:46px;line-height:1;letter-spacing:.01em}.tag{font-size:11px;letter-spacing:.08em;display:flex;gap:10px;align-items:center;color:#e3b899}.star{color:#ffd277;font-size:26px}.stage{aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:14px;background:#35121b;border:1px solid #eea56255;box-shadow:0 20px 70px #17040d77}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.board{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 30%;filter:saturate(.9)}.menu{position:absolute;inset:0}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#22060ee8,#22060e85 42%,#22060e0a 78%),linear-gradient(0deg,#22060ea6,transparent 55%)}.menu-content{position:absolute;left:6%;top:50%;transform:translateY(-50%);max-width:530px}.menu-kicker{display:inline-block;background:#ffe0a9;color:#5c1920;padding:6px 11px;font-size:10px;font-weight:700;letter-spacing:.12em;margin-bottom:22px}.menu-content h2{font-size:clamp(50px,6.3vw,88px);line-height:.85;letter-spacing:-.01em;color:#ffeac2;text-shadow:4px 5px #4b1320}.menu-content>p{font-size:16px;margin-top:22px;color:#f1c8a8}.start-actions{display:flex;gap:16px;margin-top:28px;align-items:end}.primary{background:#ffc46b;color:#3f161b;padding:16px 26px;font-size:14px;font-weight:800;letter-spacing:.03em;border-radius:6px;box-shadow:0 4px 0 #a75e37;min-height:54px;transition:.15s}.primary:hover{background:#ffe0a0;transform:translateY(-1px)}.primary span{margin-left:20px}.difficulty{display:flex;flex-direction:column;gap:4px;font-size:9px;font-weight:700;letter-spacing:.13em;color:#e3b6a1}.difficulty select{background:#3b1722bb;border:1px solid #d49b6b70;padding:12px;border-radius:5px;letter-spacing:0;font-size:12px;min-height:50px}.menu-content .menu-controls{font-size:10px;letter-spacing:.06em;color:#d8aa97;margin-top:24px}.hud{position:absolute;top:0;left:0;right:0;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:linear-gradient(#22050ebb,transparent);pointer-events:none}.hud-level{display:flex;flex-direction:column;gap:4px}.hud-level span{font-size:10px;font-weight:700;letter-spacing:.12em;color:#f5ccab}.hud-level strong{font-size:14px;letter-spacing:.04em}.hud-right{display:flex;gap:23px;align-items:center;font-size:16px}.health{letter-spacing:3px;color:#ffd176;text-shadow:0 2px #5f1c24}.coin-score{font-size:15px;color:#ffdf91}#pause{pointer-events:auto;border:1px solid #ffc68977;background:#3b0e22aa;font-weight:700;width:35px;height:35px;border-radius:6px}.power-hud{position:absolute;left:24px;top:80px;width:150px;font-size:10px;letter-spacing:.08em;color:#ffe3a0;text-shadow:1px 1px #491520}.power-hud>div{height:5px;background:#4d1c2455;margin-top:5px;border-radius:5px;overflow:hidden}.power-hud i{display:block;height:100%;background:#ffcf68;width:100%}.boss-hud{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:300px;max-width:80%;padding:11px 14px;background:#280714ce;border-radius:8px;pointer-events:none}.boss-hud>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.04em}.boss-hud span{color:#eabca3;font-size:9px}.boss-bar{height:8px;margin-top:7px;border-radius:5px;background:#5a2a33;overflow:hidden}.boss-bar i{display:block;height:100%;width:100%;background:#ff5c6c;transition:width .15s}.overlay{position:absolute;inset:0;background:#290811bf;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}.overlay-card{text-align:center;max-width:470px}.overlay-card>span{font-size:10px;letter-spacing:.13em;color:#edb28d;font-weight:700}.overlay h2{font-size:clamp(50px,7vw,80px);line-height:1;margin:17px 0 13px}.overlay p{color:#e6bea0;margin-bottom:24px;font-size:15px}.overlay .primary{display:block;min-width:220px;margin:0 auto 16px}.secondary{background:#fff0d119;border:1px solid #ffe0a144;padding:11px 20px;border-radius:5px;font-size:12px}.text-button{display:block;margin:14px auto 0;background:none;font-size:11px;letter-spacing:.04em;color:#e1ab92;padding:8px}.game-message{position:absolute;left:50%;bottom:25px;transform:translateX(-50%);text-align:center;background:#280714d9;color:#ffe7bd;font-size:13px;max-width:85%;padding:9px 17px;border-radius:5px;opacity:0;transition:opacity .2s;pointer-events:none}.game-message.show{opacity:1}.touch-controls{display:none;justify-content:space-between;padding-top:15px;gap:20px;touch-action:none;user-select:none}.touch-controls>div{display:flex;gap:12px}.touch-controls button{background:#692531;border:1px solid #cd7b6650;border-bottom:3px solid #32101b;color:#ffe2ac;min-width:68px;min-height:55px;border-radius:8px;font-weight:700;touch-action:none}.touch-controls button:active,.touch-controls button.pressed{background:#b04e46}#jump{background:#ffbc67;color:#40151f;min-width:140px;border-bottom-color:#ad6440;font-size:13px}#jump span{margin-left:20px}.below-game{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:21px 0 29px;color:#d59a85;font-size:12px}.below-game p{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.below-game p>span{margin:0 5px}kbd{border:1px solid #b06e6355;background:#63202d;font:10px 'DM Sans',sans-serif;color:#ffe0b5;border-radius:4px;padding:3px 7px}#best{font-size:10px;letter-spacing:.07em;white-space:nowrap}.level-track{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #b56c5f44;border-radius:8px;overflow:hidden}.level-track>div{padding:19px 20px;background:#31101a55;border-right:1px solid #b56c5f44;position:relative}.level-track>div:last-child{border:0}.level-track span{font-size:10px;letter-spacing:.05em;color:#c88e7d}.level-track strong{display:block;font-size:12px;letter-spacing:.01em;margin-top:6px;color:#ddaa91}.level-track small{display:block;font-size:11px;color:#ad766a;margin-top:3px}.level-track .active{background:#8b38313b;box-shadow:inset 0 3px #ffbe6b}.level-track .active strong{color:#ffdda6}.level-track .complete span{color:#ffcb81}footer{display:flex;justify-content:space-between;gap:20px;padding:27px 0 30px;font-size:9px;letter-spacing:.06em;color:#ac7568}dialog{background:#491b27;color:#ffe6be;border:1px solid #d99c7470;border-radius:14px;padding:35px;max-width:720px;width:94%;max-height:90svh;overflow:auto}dialog::backdrop{background:#18050dbb;backdrop-filter:blur(5px)}dialog>h2{font-size:48px;line-height:1;margin-bottom:25px}#closeHelp{position:absolute;right:15px;top:15px;background:none;color:#efc8a7;font-size:20px;padding:8px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-bottom:30px}.help-grid span{color:#d18873;font-size:12px}.help-grid h3{font-size:24px;margin:7px 0}.help-grid p{font-size:14px;color:#e9bda4}.help-grid article{border-top:1px solid #b4776655;padding-top:16px}[hidden]{display:none!important}@media(pointer:coarse){.touch-controls{display:flex}.below-game p{display:none}.below-game{margin-top:17px;margin-bottom:20px;justify-content:flex-end}}@media(max-width:760px){.app{padding:0 4%}header{padding:20px 0;gap:14px}.brand{font-size:30px}.edition{display:none}.header-actions{gap:5px}.header-actions button{font-size:10px}.game-heading{padding:25px 0 18px}.game-heading h1{font-size:34px}.game-heading .eyebrow{font-size:9px}.tag{display:none}.stage{aspect-ratio:4/3;border-radius:9px}.menu-content{left:6%;right:5%;max-width:none}.menu-content h2{font-size:clamp(42px,10vw,68px)}.menu-kicker{font-size:8px;margin-bottom:12px;padding:4px 8px}.menu-content>p{font-size:12px;margin-top:13px}.start-actions{margin-top:17px;gap:12px}.primary{min-height:44px;font-size:12px;padding:12px 19px}.difficulty{font-size:8px}.difficulty select{font-size:10px;padding:9px;min-height:40px}.menu-content .menu-controls{font-size:8px;margin-top:15px}.board{object-position:63% center}.hud{padding:12px;gap:6px}.hud-level strong{font-size:10px}.hud-level span{font-size:8px}.hud-right{gap:9px;font-size:12px}.health{letter-spacing:0;font-size:12px}.coin-score{font-size:12px}#pause{width:29px;height:29px}.power-hud{left:12px;top:65px;width:115px;font-size:8px}.boss-hud{bottom:15px;width:260px}.game-message{font-size:10px;padding:7px 10px;bottom:15px;max-width:90%}.overlay{padding:15px}.overlay h2{font-size:48px;margin:12px 0}.overlay p{font-size:12px;margin-bottom:18px}.overlay .primary{min-width:180px;margin-bottom:12px}.overlay .secondary{font-size:10px;padding:9px 16px}.overlay .text-button{margin-top:7px;font-size:9px}.below-game{font-size:10px}.level-track{grid-template-columns:repeat(2,1fr)}.level-track>div{padding:13px 14px;border-bottom:1px solid #b56c5f44}.level-track>div:nth-child(2){border-right:0}.level-track>div:nth-child(3){border-bottom:0}.level-track strong{font-size:10px}.level-track small{font-size:10px}.level-track span{font-size:9px}footer{padding:20px 0;font-size:8px}footer span:last-child{display:none}.help-grid{grid-template-columns:1fr;gap:18px}dialog{padding:28px 22px}}@media(max-width:380px){.menu-content h2{font-size:40px}.menu-content>p{font-size:11px}.difficulty select{max-width:125px}.start-actions{gap:9px}.primary{padding:11px 14px}.menu-content .menu-controls{display:none}}@media(max-height:580px) and (orientation:landscape){.app{max-width:980px}header,.game-heading,.level-track,.below-game,footer{display:none}.stage{margin-top:10px;aspect-ratio:16/9;max-height:calc(100svh - 88px);width:auto;margin-left:auto;margin-right:auto}.touch-controls{padding-top:7px}.touch-controls button{min-height:48px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.stage.boss-fight .game-message{bottom:auto;top:110px;max-width:65%;font-size:12px}.music-copy{color:#e9bda4;margin:22px 0;font-size:16px}.file-pick{display:inline-block;position:relative;overflow:hidden;background:#ffc46b;color:#3f161b;border-radius:6px;padding:14px 22px;font-size:14px;font-weight:700;cursor:pointer}.file-pick input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.file-pick:focus-within{outline:3px solid #ffe0a0;outline-offset:4px}#trackName{font-size:14px;color:#efc9a7;margin:18px 0 26px;overflow-wrap:anywhere}.music-volume{display:flex;justify-content:space-between;font-size:14px}#musicVolume{width:100%;margin:16px 0 22px;accent-color:#ffcb79}.music-note{font-size:13px;color:#c99181;margin:20px 0 24px}#closeMusic{position:absolute;top:15px;right:15px;background:none;padding:8px;font-size:20px}#musicDialog{max-width:530px}#musicDialog>h2{margin-bottom:0}#musicDialog .primary{display:block;width:100%}@media(max-width:760px){.stage.boss-fight .game-message{top:82px;font-size:10px;max-width:78%}.header-actions{gap:0}.header-actions button{padding:8px}.brand{font-size:27px}.brand sup{font-size:16px;margin-left:4px}.music-copy{font-size:14px}.edition{display:none}}

.level-track{grid-template-columns:repeat(5,1fr)}@media(max-width:760px){.level-track{grid-template-columns:repeat(2,1fr)}.level-track>div:nth-child(3){border-bottom:1px solid #b56c5f44}.level-track>div:nth-child(4){border-right:0}.level-track>div:last-child{grid-column:1/-1;border:0}}

/* The game owns its touch surfaces; dialogs and the rest of the page remain native. */
.stage,.stage *,.touch-controls,.touch-controls *,.control-tools,.control-tools *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.stage img{-webkit-user-drag:none;pointer-events:none}
.touch-controls,.touch-controls *{touch-action:none}
button{touch-action:manipulation}
.route-hud{position:absolute;left:24px;right:24px;top:66px;pointer-events:none}
.route-hud>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;letter-spacing:.08em;color:#ffe0b1;text-shadow:0 1px 3px #210711}
.route-meter{height:3px;margin-top:5px;background:#fff0d12b;border-radius:5px;overflow:hidden}
.route-meter i{display:block;height:100%;width:0;background:#ffcc77;transition:width .15s linear}
.power-hud{top:103px;width:175px;font-size:12px;font-weight:700}
.power-hud>div{height:6px}
.control-tools{display:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0;color:#dda78c;font-size:12px}
#autoRun{background:#692531;border:1px solid #c7796655;border-radius:20px;padding:8px 14px;min-height:36px;font-size:12px;font-weight:700;white-space:nowrap}
#autoRun[aria-pressed=true]{background:#ffc46b;color:#47141d;border-color:#ffc46b}
.stage.boss-fight .game-message{top:auto;bottom:82px;max-width:85%;font-size:12px}
.boss-hud>div:first-child{font-size:12px}.boss-hud span{font-size:11px}
.special-hud{position:absolute;right:24px;top:101px;display:flex;align-items:center;gap:6px;pointer-events:none;padding:4px 8px;border-radius:10px;background:#290a21b0;border:1px solid #ffe0b12b}
.special-hud>span{font-size:12px;font-weight:700;color:#ffe3a6;margin-right:3px;white-space:nowrap}
.special-hud img{width:29px;height:34px;object-fit:contain;opacity:.35;filter:grayscale(.7)}
.special-hud img.collected{opacity:1;filter:drop-shadow(0 0 5px #fff1bc)}
.hide-tips .below-game p,.hide-tips .control-tools>span{display:none}
.hide-tips .below-game{justify-content:flex-end}
#controlHint{text-align:right;max-width:230px;line-height:1.35}
.menu-shop{display:flex;align-items:center;gap:12px;width:100%;max-width:410px;margin-top:18px;padding:7px 13px 7px 8px;background:#3a1224d9;border:1px solid #f9c57e66;border-radius:9px;text-align:left;color:#ffe8be;min-height:62px}
.menu-shop>img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 4px #160411)}
.menu-shop>span:nth-child(2){flex:1;min-width:0}.menu-shop small{display:block;font-size:8px;letter-spacing:.13em;color:#dcaa8d}.menu-shop strong{display:block;font-size:12px;white-space:nowrap}.menu-shop .shop-link{font-size:14px;font-weight:800;color:#ffd18a;text-align:right}.shop-link b{display:block;font-size:10px;letter-spacing:.04em;color:#e2b697}.menu-shop:hover{background:#632134;border-color:#ffcf84}
#shopDialog{max-width:960px;width:94%;padding:30px;background:radial-gradient(ellipse at 80% 0,#8b2c34,#421522 70%)}
.close-shop{position:absolute;right:13px;top:12px;width:40px;height:40px;background:none;font-size:22px}
.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:20px}.shop-heading h2{font-size:50px;line-height:1}
.shop-wallet{border:1px solid #efbd7370;border-radius:30px;background:#2b0a1acc;padding:9px 14px;font-size:13px;color:#ffd181;white-space:nowrap}
.shop-copy{font-size:14px;color:#e8b6a0;margin:12px 0 24px}
.skin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.skin-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#290c1bad;border:1px solid #b86b6866;border-radius:12px;padding:13px;overflow:hidden}
.skin-card.equipped{border-color:#ffcc81;box-shadow:inset 0 0 0 1px #ffcc81}.skin-art{height:150px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#d754443b,transparent 70%)}
.skin-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 4px #18050b80)}
.skin-tag{font-size:8px;letter-spacing:.12em;color:#d39b89;margin-top:8px}.skin-card h3{font-size:23px;line-height:1.1;margin:5px 0}.skin-card p{font-size:11px;line-height:1.45;color:#d5a894;min-height:34px}
.skin-note{font-size:9px;color:#ffcf83;margin:12px 0 8px;min-height:14px}.skin-card button{width:100%;min-height:46px;padding:8px 5px;border:1px solid #ffc37a75;background:#783037;color:#ffe1b1;border-radius:6px;font-size:10px;font-weight:800;line-height:1.3}.skin-card button:not(:disabled):hover{background:#a5443f}.skin-card button[aria-pressed=true]{background:#ffc46b;color:#40151b;opacity:1;cursor:default}
#shopStatus{font-size:13px;line-height:1.4;margin:20px 0 14px;color:#ffe2a8;min-height:36px}
.shop-footer{display:flex;align-items:center;gap:14px;border-top:1px solid #cf847444;padding-top:16px}.shop-footer>p{font-size:11px;line-height:1.5;color:#c99580;flex:1}.shop-footer .text-button{margin:0;font-size:10px;min-height:44px}.shop-footer .primary{font-size:12px;min-height:48px;padding:12px 20px}
@media(max-width:760px){#shopDialog{width:calc(100% - 20px);padding:26px 16px 18px}.shop-heading{flex-wrap:wrap;gap:12px;padding-right:25px}.shop-heading h2{font-size:40px}.shop-wallet{font-size:12px;padding:7px 12px}.shop-copy{font-size:12px;margin:12px 0 18px}.skin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.skin-card{padding:10px}.skin-art{height:118px}.skin-card h3{font-size:23px}.skin-card p{font-size:11px}.skin-card button{min-height:46px;font-size:10px}.shop-footer{gap:8px;flex-wrap:wrap}.shop-footer>p{flex-basis:100%;font-size:11px}.shop-footer .text-button{flex:1}.shop-footer .primary{flex:1}#shopStatus{font-size:12px}.menu-shop{max-width:none;margin-top:16px;min-height:62px}}
@media(max-height:520px) and (orientation:landscape){.menu-shop{margin-top:12px;min-height:50px;padding-top:2px;padding-bottom:2px}.menu-shop>img{width:40px;height:40px}.skin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.skin-art{height:110px}}
@media(max-width:760px),(pointer:coarse){
 html,body{overscroll-behavior:none}
 body{overflow:hidden;background:#3e101a}
 .app{height:var(--app-height,100svh);height:var(--app-height,100dvh);max-width:none;padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left));display:flex;flex-direction:column}
 header{flex:none;min-height:54px;padding:8px 3px;gap:8px;border:0}
 .brand{font-size:26px}.brand sup{font-size:15px}
 .header-actions{gap:2px}.header-actions button{font-size:11px;min-height:40px;padding:8px}#help{width:34px;height:34px;min-height:34px}
 main{flex:1;min-height:0;display:flex;flex-direction:column}
 body:not(.in-game) .touch-controls,body:not(.in-game) .control-tools{display:none}
 .edition,.game-heading,.level-track,.below-game,footer{display:none}
 .stage{flex:1;min-height:0;width:100%;height:auto;margin:0;max-height:none;aspect-ratio:auto;border-radius:12px;box-shadow:none}
 .control-tools{display:flex;flex:none;padding:8px 2px 0;min-height:42px}
 .control-tools span{font-size:12px}#autoRun{font-size:12px;min-height:32px;padding:6px 12px}
 .touch-controls{display:flex;flex:none;padding:8px 0 12px;gap:14px;align-items:stretch}
 .touch-controls>div{flex:1;gap:10px}
 .touch-controls button{flex:1;min-width:0;min-height:70px;border-radius:13px;font-size:24px;border-bottom-width:4px}
 #jump{flex:1;min-width:0;font-size:20px}#jump span{margin-left:16px}
 .hud{padding:14px 12px 0;align-items:flex-start;gap:8px}
 .hud-level span{font-size:10px}.hud-level strong{font-size:12px;max-width:185px;line-height:1.25}
 .hud-right{display:grid;grid-template-columns:auto 36px;column-gap:8px;row-gap:2px;align-items:center;justify-items:end}
 .health{grid-column:1;font-size:16px;line-height:1.2;white-space:nowrap}
 .coin-score{grid-column:1;font-size:13px;line-height:1.2}
 #pause{grid-column:2;grid-row:1/3;width:36px;height:38px;font-size:16px}
 .route-hud{left:12px;right:12px;top:69px}.route-hud>div:first-child{font-size:10px;letter-spacing:.04em}
 .power-hud{top:107px;left:12px;width:156px;font-size:12px}
 .special-hud{right:12px;top:102px;gap:3px;padding:3px 5px}.special-hud img{width:25px;height:31px}.special-hud>span{font-size:11px;margin-right:1px}
 .game-message{font-size:12px;line-height:1.4;bottom:18px;padding:8px 12px;width:max-content;max-width:90%}
 .stage.boss-fight .game-message{top:auto;bottom:80px;font-size:12px;max-width:90%}
 .boss-hud{bottom:14px;padding:10px 12px;width:290px;max-width:90%}
 .menu-content{left:8%;right:7%}.menu-content h2{font-size:clamp(50px,13vw,76px)}
 .menu-content>p{font-size:16px;line-height:1.5;margin-top:18px}.menu-kicker{font-size:10px;margin-bottom:20px}
 .start-actions{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:24px}.start-actions .primary{font-size:14px;min-height:54px;padding:14px 12px}
 .difficulty{font-size:10px}.difficulty select{font-size:12px;min-height:49px;padding:9px;max-width:139px}
 .menu-content .menu-controls{display:block;font-size:10px;line-height:1.4;margin-top:20px}
 .overlay h2{font-size:54px}.overlay p{font-size:15px}.overlay .primary{font-size:15px;min-height:50px}
 .overlay .secondary{font-size:13px;min-height:44px}.overlay .text-button{font-size:12px;min-height:40px}
 dialog{max-height:calc(var(--app-height,100dvh) - 24px)}
}
@media(max-height:520px) and (orientation:landscape){
 .app{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 header{display:none}.control-tools{min-height:31px;padding-top:4px}#autoRun{min-height:27px;padding:3px 12px}
 .touch-controls{padding-top:5px;padding-bottom:4px;gap:25px}.touch-controls>div{max-width:230px}.touch-controls button{min-height:48px}#jump{max-width:270px}
 .hud{padding-top:8px}.route-hud{top:55px}.power-hud{top:87px}.power-hud>div{height:3px}
 .special-hud{top:84px}
 .menu-content{left:6%;top:50%;right:auto}.menu-content h2{font-size:44px}.menu-kicker,.menu-content>p,.menu-content .menu-controls{display:none}.start-actions{margin-top:14px}
 .overlay h2{font-size:38px;margin:0 0 6px}.overlay-card>span{display:none}.overlay p{margin-bottom:8px;font-size:13px}
 .overlay .primary{display:inline-block;min-width:140px;min-height:40px;padding:9px 15px;margin:0 10px 0 0;font-size:12px}
 .overlay .secondary{min-height:40px;font-size:12px;padding:9px 15px}.overlay .text-button{min-height:30px;margin:6px auto 0;padding:3px}
 .game-message,.stage.boss-fight .game-message{font-size:11px;padding:5px 10px}.boss-hud{padding:6px 10px;bottom:10px}.stage.boss-fight .game-message{bottom:65px}
}

/* Independent thumb controls: STOMP directly above JUMP. */
.touch-controls>.action-controls{display:flex;flex-direction:column;gap:8px;min-width:140px}
.action-controls button{font-size:14px;min-height:50px}
#stomp{background:#ac3440;color:#fff0d1;border-bottom-color:#62212b;font-size:14px}
#stomp span{margin-left:16px}
@media(max-width:760px),(pointer:coarse){
 .touch-controls>.action-controls{flex:1;min-width:0}
 .touch-controls>div:not(.action-controls){align-items:stretch}
 .action-controls button,#jump,#stomp{min-height:48px;font-size:16px}
 .touch-controls button{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
}
@media(max-height:520px) and (orientation:landscape){
 .touch-controls>.action-controls{display:grid;grid-template-columns:1fr 1fr;max-width:290px;gap:8px}
 .action-controls button,#jump,#stomp{min-height:44px}
}

/* Wavestation directional controls: gold chevrons, red arcade keys. */
.touch-controls .move-control{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(145deg,#84313c,#4c1b29);border:1px solid #ebac7160;border-bottom:4px solid #29101c;box-shadow:inset 0 2px 0 #ffffff15;color:#ffcf78;min-width:64px;padding:8px}
.move-control svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.move-control span{font-size:11px;line-height:1.2;letter-spacing:.1em;pointer-events:none}
.touch-controls .move-control.pressed,.touch-controls .move-control:active{background:linear-gradient(145deg,#ad4b44,#793039);box-shadow:inset 0 3px 10px #18081255;color:#fff0be}
@media(max-height:520px) and (orientation:landscape){.move-control svg{width:23px;height:23px}.move-control span{font-size:10px}.touch-controls .move-control{flex-direction:row;gap:6px}}

.shop-section-title{font-size:25px;margin:28px 0 4px}.cos-help{font-size:14px;color:#e2b79d;margin-bottom:16px}.cosmetic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cosmetic-card{min-width:0;padding:14px;border:1px solid #bb77514a;border-radius:10px;background:#39131e;display:flex;flex-direction:column;gap:8px}.cosmetic-card.equipped{border-color:#ffd078;background:#54202c}.cosmetic-card h3{font-size:21px}.cosmetic-card p{font-size:14px;color:#d6aa95;line-height:1.4;flex:1}.cosmetic-art{height:100px;display:grid;place-items:center;background:#220d18;border-radius:7px;overflow:hidden}.cosmetic-art canvas{width:100%;max-width:180px}.cosmetic-art img{height:85px;max-width:100%;object-fit:contain}.cosmetic-card button{background:#ffc46b;color:#3e161e;border-radius:6px;font-size:13px;font-weight:800;min-height:44px;padding:10px 6px}.cosmetic-card .skin-note{font-size:12px}
@media(max-width:760px){.cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cosmetic-card{padding:10px}.cosmetic-card h3{font-size:20px}}
.below-game{flex-wrap:wrap;gap:12px}.leaderboard-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;background:#692632;border:1px solid #c08061;border-radius:8px;color:#ffe0a1;font-size:11px;font-weight:700;letter-spacing:.04em}.leaderboard-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#leaderboardDialog{width:min(540px,calc(100% - 24px));padding:28px 22px;color:#fff0d1;border:1px solid #b96c52;border-radius:14px;background:#3e1422;max-height:calc(100dvh - 28px);overflow:auto}#leaderboardDialog h2{font-size:36px;line-height:1.05;padding-right:22px}#leaderboardDialog::backdrop{background:#170812da}.lb-close{position:absolute;right:10px;top:10px;width:44px;height:44px;background:transparent;color:#ffdcad}.lb-toolbar{display:flex;align-items:center;gap:10px;margin:18px 0}.lb-toolbar label{font-size:11px;color:#dba28b}.lb-toolbar select{flex:1;min-width:0;min-height:44px;background:#652632;border:1px solid #b07760;border-radius:6px;padding:8px;color:#fff0d1}.lb-toolbar button{min-height:44px;padding:8px 10px;font-size:11px}.lb-explainer,.lb-note{font-size:12px;color:#dba996}.lb-mine{margin:14px 0;padding:12px;border:1px solid #ad7356;border-radius:6px;color:#ffdc89;font-size:12px;font-weight:700}.lb-table-wrap{max-height:300px;overflow:auto;border-radius:6px}.lb-table{width:100%;border-collapse:collapse;table-layout:fixed}.lb-table th,.lb-table td{text-align:left;padding:11px 9px;border-bottom:1px solid #89514755;font-size:13px;overflow-wrap:anywhere}.lb-table th{background:#59202d;font-size:10px;color:#dba28b;position:sticky;top:0}.lb-table th:first-child{width:65px}.lb-table th:last-child{width:100px}.lb-table th:last-child,.lb-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.lb-table tr:first-child td{color:#ffd275}.lb-table td:nth-child(2){font-weight:700}#leaderboardForm{margin-top:20px}#leaderboardForm label{display:block;font-size:10px;letter-spacing:.12em;margin-bottom:8px}.lb-name-row{display:flex;gap:8px}.lb-name-row input{min-width:0;flex:1;min-height:48px;padding:10px;font:inherit;font-size:16px;background:#240c18;border:1px solid #99654f;border-radius:6px;color:#fff0d1}.lb-name-row button{min-height:48px;font-size:12px;padding:10px 14px}.lb-note{margin-top:10px;font-size:11px}#leaderboardStatus{margin-top:14px;font-size:12px;min-height:24px;color:#ffd99b}#leaderboardEmpty{padding:18px;font-size:13px;text-align:center}#leaderboardName:focus-visible{outline:3px solid #ffdc74;outline-offset:2px}@media(max-width:480px){.leaderboard-button{flex-basis:100%}#leaderboardDialog{padding:24px 14px}#leaderboardDialog h2{font-size:30px}.lb-table th:last-child{width:85px}}

/* Keep leaderboard access inside the mobile game's visible surfaces. */
.menu-content>.leaderboard-button{width:100%;max-width:410px;margin-top:10px;min-height:44px;font-size:11px;border-color:#d29469;background:#6a2635}.menu-content{max-height:calc(100% - 24px);overflow-y:auto;padding-block:8px;scrollbar-width:thin}.menu-content .menu-controls{margin-top:14px}#leaderboardPause{display:block;margin:10px auto;min-height:44px}@media(max-width:760px){.menu-content>.leaderboard-button{max-width:none}}@media(max-height:520px) and (orientation:landscape){.menu-content>.leaderboard-button{margin-top:8px}.overlay #leaderboardPause{display:inline-block;margin:6px 5px;min-height:40px}}
#controlsDialog{width:min(470px,calc(100% - 24px));background:#3e1422;color:#fff0d1;border:1px solid #b96c52;border-radius:14px;padding:28px 22px;overflow:auto;max-height:calc(100dvh - 28px)}#controlsDialog::backdrop{background:#170812da}#controlsTitle{font-size:36px;line-height:1.1;margin-bottom:20px}.control-setting{display:block;margin:18px 0;font-size:14px}.control-setting>b{float:right;color:#ffd18a}.control-setting input[type=range]{display:block;width:100%;margin-top:12px;min-height:36px;accent-color:#ffc46b}.control-hand{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control-hand input{width:22px;height:22px;accent-color:#ffc46b}.control-hand small{width:100%;color:#dba996}.control-preview{display:flex;gap:var(--thumb-gap,14px);align-items:center;margin:20px 0}.control-preview span,.control-preview strong{display:grid;place-items:center;background:#692632;border:1px solid #ad7356;border-radius:8px;height:var(--control-height,70px);width:60px;font-size:30px}.control-preview strong{margin-left:auto;width:110px;font-size:14px;background:#ffc46b;color:#3e1422}.left-handed .control-preview strong{order:-1;margin-left:0;margin-right:auto}#controlsDialog>.primary{float:right}#controlsDialog>.secondary{min-height:48px;margin-top:8px;padding:10px;font-size:11px}#controlsOpen{display:block;min-height:44px;font-size:11px;margin-top:4px}.overlay-card{max-height:calc(100% - 20px);overflow-y:auto}#controlsPause{display:block;margin:10px auto;min-height:44px}.lb-toolbar{flex-wrap:wrap}.lb-toolbar select{flex:1;min-width:100px}.lb-toolbar #leaderboardRefresh{flex:0}.lb-explainer{line-height:1.6}@media(max-width:760px){.touch-controls{gap:var(--thumb-gap,14px)}.touch-controls button{min-height:var(--control-height,70px)}.left-handed .touch-controls>.action-controls{order:-1}.menu-content>.menu-controls{display:none}}@media(max-height:520px) and (orientation:landscape){.touch-controls button{min-height:min(var(--control-height,70px),52px)}.overlay #controlsPause{display:inline-block;margin:6px 5px;min-height:40px}.menu-content{left:5%;right:5%;max-width:650px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px;align-items:center}.menu-content h2{grid-row:1/3;font-size:40px}.menu-content .start-actions{margin-top:0}.menu-content .menu-shop{margin-top:8px}.menu-content>.leaderboard-button{grid-column:2}.menu-content>#controlsOpen{grid-column:1;grid-row:3;margin:0}.menu-content .menu-controls{display:none}}

/* Approved arcade title mark. */
.brand{display:block;transform:none;flex-shrink:0;line-height:0}.brand img{display:block;width:138px;height:auto;border-radius:6px}.menu-content .menu-logo{line-height:0;text-shadow:none}.menu-logo img{display:block;width:clamp(170px,24vw,330px);height:auto;border-radius:9px}.menu-kicker{margin-bottom:12px}.menu-content>p{margin-top:14px}
@media(max-width:600px){.brand img{width:100px}.menu-logo img{width:min(210px,60vw)}}
@media(max-height:500px) and (orientation:landscape){.brand img{width:80px}.menu-logo img{width:142px}.menu-kicker{margin-bottom:6px}}
