:root{font-family:ui-rounded,'PingFang SC','Microsoft YaHei',system-ui,sans-serif;font-size:16px;color:#fff6d1;background:#174835;font-synthesis:none;--brown:#543b28;--gold:#ffd56c;--cream:#fff4d5;--outline:#263f32}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;filter:grayscale(.6);opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid #b3f8ff;outline-offset:4px}.hidden{display:none!important}#game{position:relative;width:100%;height:100dvh;min-height:420px;overflow:hidden;isolation:isolate}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none;background:#428843 url('./assets/forest-arena.png') center/cover;image-rendering:pixelated}.vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 170px #133d4477;background:linear-gradient(#0c35276b,transparent 22%,transparent 73%,#0b352c99);z-index:1}#hud{position:absolute;left:30px;right:30px;top:max(22px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:flex-start;gap:20px;z-index:5;pointer-events:none}#hud>*{pointer-events:auto}.sprite{display:inline-block;width:64px;height:64px;background-image:url('./assets/adventure-sprite-atlas.png');background-size:400% 400%;background-position:calc(var(--col)*100%/3) calc(var(--row)*100%/3);background-repeat:no-repeat;image-rendering:pixelated;flex-shrink:0;vertical-align:middle}.hero-card{display:flex;align-items:center;gap:6px;padding:8px 14px 9px 6px;position:relative;min-width:275px;background:#143e35de;border:2px solid #bcdda455;border-radius:12px;box-shadow:0 4px 0 #13322777;text-align:left}.hero-avatar{width:60px;height:62px;margin-top:-10px;filter:drop-shadow(0 3px 0 #0005)}.hero-info{display:block;min-width:166px;max-width:190px}.hero-info>b{display:block;font-size:14px;text-shadow:0 2px #122e2a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 7px}.hp-track{height:16px;background:#612f3f;border:2px solid #122d2a;border-radius:5px;display:block;position:relative;overflow:hidden}.hp-track i{display:block;height:100%;width:100%;background:linear-gradient(#ff967d 0 20%,#ed5b59 20% 80%,#c63f44 80%);transition:width .2s}.hp-track strong{position:absolute;inset:0;text-align:center;line-height:12px;font-size:12px;color:#fff;text-shadow:1px 1px #7b3434;font-weight:700}.xp-track{height:5px;background:#142f2b;display:block;margin-top:4px;border-radius:4px;overflow:hidden}.xp-track i{height:100%;display:block;width:0;background:#71e9d7;transition:width .2s}#level{position:absolute;left:7px;bottom:-6px;border:2px solid #132e29;border-radius:5px;background:#f6c65f;color:#583d27;font-size:12px;font-weight:900;min-width:25px;text-align:center;padding:2px 4px}.stage-badge{border:0;background:#234d3b7a;border-radius:0 0 15px 15px;padding:10px 30px 12px;text-shadow:0 2px #1a493a;text-align:center;backdrop-filter:blur(3px)}.stage-badge small{display:block;font-size:12px;letter-spacing:2px;color:#ccdfb6}.stage-badge b{display:block;font-size:23px;margin:7px 0 3px;letter-spacing:2px}.stage-badge span{font-size:12px;color:#d0dda7;opacity:.9}.hud-right{display:flex;gap:10px;align-items:center}.gold-pill{display:flex;align-items:center;gap:3px;padding:3px 16px 3px 3px;height:49px;border:2px solid #eac063;border-radius:10px;background:linear-gradient(#59432f,#45352a);box-shadow:0 4px 0 #142d2877}.gold-pill .sprite{width:37px;height:37px}.gold-pill b{font-size:21px;color:#ffe39c;font-variant-numeric:tabular-nums;text-shadow:0 2px #513725}.round-button{height:43px;width:43px;background:#224f3fe8;border:2px solid #d9e3ab85;border-radius:9px;font-size:23px;font-weight:900;box-shadow:0 4px #143226;line-height:1}.round-button:active{transform:translateY(3px);box-shadow:0 1px #143226}.round-button.muted{opacity:.55}.objective{position:absolute;left:50%;top:130px;transform:translateX(-50%);background:#193f34d6;border:1px solid #dcdfb652;border-radius:10px;padding:10px 15px;display:flex;gap:12px;align-items:center;z-index:3;min-width:270px;box-shadow:0 3px 0 #13332b55;backdrop-filter:blur(5px)}.objective>span{font-size:24px;color:#f9d66e}.objective>div{flex:1}.objective b{display:block;font-size:14px;font-weight:600;white-space:nowrap}.objective>strong{font-size:14px;color:#fff1a5}.goal-track{height:4px;background:#b2c08038;border-radius:3px;margin-top:8px;overflow:hidden}.goal-track i{display:block;background:#ffe07b;height:100%;width:0;transition:width .2s}.boss-bar{position:absolute;top:192px;left:50%;transform:translateX(-50%);width:min(420px,80vw);z-index:3;text-align:center}.boss-bar b{font-size:16px;text-shadow:2px 2px #3c233b;display:block;margin-bottom:7px;color:#ffb8b0}.boss-bar>div{height:13px;border:2px solid #402d34;border-radius:6px;background:#572d3b;overflow:hidden;box-shadow:0 3px #263e3080}.boss-bar i{height:100%;display:block;background:linear-gradient(#ff9e95,#e85066);width:100%;transition:width .2s}.welcome{position:absolute;inset:19% 0 auto;text-align:center;z-index:3;pointer-events:none;filter:drop-shadow(0 8px 15px #18392433)}.chapter-chip{display:inline-block;font-size:13px;font-weight:700;letter-spacing:3px;background:#173d36b0;padding:8px 20px;border:1px solid #c4e4b163;border-radius:30px;color:#e7f6d5;text-shadow:0 2px #153c2e}.welcome h1{margin:12px 0 0;font-size:92px;font-weight:1000;line-height:1.35;letter-spacing:5px;transform:rotate(-3deg);position:relative;display:inline-flex;gap:7px;text-shadow:0 6px 0 #8b552b,4px 0 #553924,-4px 0 #553924,0 -4px #553924,4px 4px #553924,-4px -4px #553924,-4px 4px #553924,4px -4px #553924,0 11px 0 #163c33,0 15px 18px #17382b55;-webkit-text-stroke:1.5px #74451f}.welcome h1 span{color:#fff4c0}.welcome h1 em{color:#ffe16a;font-style:normal}.welcome h1 i{position:absolute;right:-48px;top:-5px;font-size:43px;color:#fff3af;-webkit-text-stroke:0;text-shadow:0 3px #af8335;transform:rotate(20deg)}.welcome>p{font-size:18px;font-weight:700;color:#fffbe1;text-shadow:1px 2px 2px #184a2f,0 0 10px #2f603655;margin:8px 0 31px;letter-spacing:2px}.play-button{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;border:3px solid #694223;border-radius:13px;background:linear-gradient(#ffec9d 0 8%,#ffcf57 8% 82%,#ebaa3b 82%);color:#5a3825;padding:17px 44px 18px;box-shadow:0 6px 0 #a97029,0 9px 0 #23443299,0 13px 25px #1e452655;font-size:29px;font-weight:900;letter-spacing:2px;position:relative;min-width:280px;transition:transform .15s;line-height:1.3}.play-button>span{font-size:24px;margin-right:3px}.play-button small{display:block;width:100%;font-size:12px;font-weight:900;letter-spacing:2.5px;opacity:.6;margin-top:-3px}.play-button:hover{filter:brightness(1.08);transform:translateY(-2px)}.play-button:active{transform:translateY(4px);box-shadow:0 2px 0 #a97029,0 5px #23443299}.welcome-hint{font-size:13px;color:#edf8dc;text-shadow:0 2px #1b5837;margin:23px auto 0;line-height:1.8}.welcome-hint>b{display:block;font-size:12px;font-weight:500;margin-top:4px;color:#d9edc0}.touch-hint{display:none}.game-dock{position:absolute;left:50%;bottom:42px;transform:translateX(-50%);display:flex;gap:17px;z-index:4;padding:11px 22px;border-radius:18px;background:#153e35b0;border:1px solid #b5d8994d;backdrop-filter:blur(5px)}.game-dock>button{border:0;background:none;min-width:72px;display:flex;flex-direction:column;align-items:center;position:relative;padding:0 4px 2px;transition:transform .15s}.game-dock>button:hover{transform:translateY(-5px)}.game-dock .sprite{height:57px;width:57px;filter:drop-shadow(0 4px 0 #18342c55)}.game-dock span{font-size:14px;letter-spacing:1px;font-weight:700;text-shadow:0 2px #0e3029;margin-top:4px}.daily-button>b{background:#ed6263;color:#fff4ce;width:21px;height:23px;line-height:20px;border:2px solid #6d3632;border-radius:6px;position:absolute;right:4px;top:-4px;font-size:14px}.world-label{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);z-index:2;color:#cce5c794;font-size:12px;letter-spacing:1.8px;white-space:nowrap}.world-label span{margin:0 10px;color:#f9d97b}.help-button{position:absolute;bottom:32px;right:30px;border:2px solid #d5e1b88a;border-radius:50%;width:37px;height:37px;background:#224d3ed6;font-size:22px;font-weight:900;z-index:4;box-shadow:0 3px #14392b}.controls{position:absolute;inset:0;pointer-events:none;z-index:4}.controls button,.controls #joystick{pointer-events:auto;user-select:none;-webkit-user-select:none;touch-action:none}.move-area{position:absolute;left:45px;bottom:42px}.keyboard-move{text-align:center;font-size:14px;text-shadow:0 2px #214e38}.keyboard-move>span,.keyboard-move>div>span{display:inline-block;width:35px;height:32px;line-height:28px;text-align:center;margin:2px;border:2px solid #cfe1af90;background:#194537aa;border-radius:6px;box-shadow:0 3px #13372977}.keyboard-move small{display:block;font-size:12px;letter-spacing:1px;margin-top:9px;color:#d6e9ca}#joystick{display:none;position:relative;width:132px;height:132px;border-radius:50%;border:2px solid #eaf9dca0;background:#23483766;box-shadow:inset 0 0 0 12px #b9d8a515,0 3px 0 #164a2944;touch-action:none}#joy-knob{position:absolute;left:calc(50% - 25px);top:calc(50% - 25px);width:50px;height:50px;border-radius:50%;background:#d8edb6ad;border:3px solid #f3f9dccc;box-shadow:0 4px #173e3680;pointer-events:none}.joy-arrow{position:absolute;color:#e9f7d899;font-size:12px;pointer-events:none}.joy-arrow.up{top:8px;left:calc(50% - 6px)}.joy-arrow.down{bottom:8px;left:calc(50% - 6px)}.joy-arrow.left{top:calc(50% - 8px);left:9px}.joy-arrow.right{top:calc(50% - 8px);right:9px}.action-area{position:absolute;right:43px;bottom:41px;display:flex;gap:20px;align-items:flex-end}.skills{display:grid;grid-template-columns:repeat(2,74px);gap:10px;padding-bottom:7px}.skill-control{width:74px;height:80px;border:2px solid #baf2e9;border-radius:14px;background:linear-gradient(#7fcdab,#438c73);box-shadow:0 5px #214f44;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;color:white;text-shadow:0 2px #285f51;overflow:visible}.skill-control i{font-size:35px;font-style:normal;line-height:1}.skill-control b{font-size:12px;font-weight:700;max-width:100%;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}.skill-control small{font-size:12px;font-weight:700;position:absolute;right:-5px;top:-7px;border:1px solid #47687e;border-radius:4px;padding:1px 5px;background:#fff0c4;color:#4d635c;text-shadow:none}.skill-control.freeze{background:linear-gradient(#a0dfff,#6798ce);box-shadow:0 5px #28567b;border-color:#d2f4ff;text-shadow:0 2px #4776ab}.skill-control.extra{background:linear-gradient(#d3b7ef,#8963af);box-shadow:0 5px #513b77}.cooldown{position:absolute;inset:0;display:grid;place-items:center;border-radius:11px;background:#203649b0;font-size:27px;font-weight:900;text-shadow:0 2px #26354e}.cooldown:empty{display:none}.attack-row{display:flex;gap:16px;align-items:flex-end}.attack-control{width:114px;height:114px;border:3px solid #fff1b2;border-radius:50%;background:linear-gradient(#ffdb71,#efad42);box-shadow:0 6px #9c612c,0 9px #183b2d66;position:relative;padding:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#6c442c;text-shadow:0 1px #ffeeb2}.attack-control .sprite{width:70px;height:70px;position:absolute;top:-4px;filter:drop-shadow(0 3px #93632577)}.attack-control b{font-size:19px;margin-top:45px;letter-spacing:2px}.attack-control small{font-size:12px;font-weight:900;margin-top:1px}.attack-control.pressed,.attack-control:active{transform:translateY(5px);box-shadow:0 1px #9c612c,0 4px #183b2d66;filter:brightness(1.13)}.dash-control{width:67px;height:70px;background:#789a60db;border:2px solid #dfedb7;border-radius:50%;box-shadow:0 4px #305637;color:#effadc;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;margin-bottom:3px;padding:0;text-shadow:0 2px #5c7748}.dash-control span{font-size:27px;line-height:1}.dash-control b{font-size:13px}.dash-control small{font-size:12px;transform:scale(.9);line-height:1.2}.dash-control i{position:absolute;inset:0;background:#20372cba;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:800;font-style:normal}.dash-control i:empty{display:none}.is-playing .game-dock{bottom:30px;padding:0;background:none;border:0;backdrop-filter:none}.is-playing .game-dock button:not([data-action="pack"]){display:none}.is-playing .game-dock button{min-width:55px;opacity:.86}.is-playing .game-dock .sprite{height:44px;width:44px}.is-playing .game-dock span{font-size:12px}.is-playing .help-button{display:none}.is-playing .world-label{display:none}.help-hint{position:absolute;bottom:197px;left:50%;transform:translateX(-50%);background:#194f32ae;color:#f0ffd2;border-radius:20px;padding:8px 17px;font-size:13px;z-index:3;white-space:nowrap;pointer-events:none}#banner{position:absolute;left:50%;top:29%;transform:translate(-50%,-10px);font-size:28px;font-weight:900;letter-spacing:2px;text-align:center;width:max-content;max-width:85%;color:#fff7b2;text-shadow:2px 3px #315632,-2px -2px #315632,2px -2px #315632,-2px 2px #315632,0 6px #1d412555;z-index:7;opacity:0;pointer-events:none;transition:.2s}#banner.show{opacity:1;transform:translate(-50%,0)}#combo{position:absolute;right:8%;top:30%;font-size:34px;font-weight:1000;font-style:italic;color:#ffe5a0;text-shadow:3px 3px #87552b,-2px -2px #3e582e,0 6px #28503277;z-index:3;pointer-events:none;transform:rotate(-8deg)}#load-status{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#173c36e8;color:#fff0bb;font-size:20px;letter-spacing:2px}#toast{position:fixed;left:50%;top:110px;transform:translate(-50%,-15px);opacity:0;pointer-events:none;background:#fff2c8;color:#725533;border:3px solid #785734;box-shadow:0 5px #392f2344;border-radius:12px;padding:13px 22px;font-size:15px;font-weight:600;z-index:99;max-width:calc(100% - 36px);width:max-content;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
dialog{border:4px solid #7f5a35;border-radius:20px;background:#fff5d9;color:#664a2e;box-shadow:0 7px 0 #b2874d,inset 0 0 0 3px #ffdf9d,0 20px 80px #05292166;width:min(590px,calc(100vw - 30px));max-height:calc(100dvh - 56px);padding:30px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b89c69 #f2e4bd}dialog.wide{width:min(980px,calc(100vw - 36px))}dialog::backdrop{background:#092f2b88;backdrop-filter:blur(5px)}.modal-heading h2{text-align:center;font-size:28px;font-weight:900;letter-spacing:2px;margin:7px 0 18px;color:#72512d;text-shadow:0 2px #fff}.close-button{border:2px solid #9d6d42;position:absolute;right:13px;top:11px;border-radius:8px;background:#cf9361;color:#fff5d8;box-shadow:0 3px #805531;width:34px;height:34px;font-size:27px;line-height:26px;z-index:2}.modal-subtitle{text-align:center;font-size:16px;color:#9b805c;line-height:1.8;margin:0 0 24px}.wood-button{background:linear-gradient(#dca665,#c48848);border:2px solid #987042;border-radius:9px;box-shadow:0 3px #976533;color:#fff5d7;font-size:15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 17px;text-shadow:0 1px #9f6e3e;min-height:44px;line-height:1.5}.wood-button:hover:not(:disabled){filter:brightness(1.07)}.wood-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #976533}.wood-button .sprite{width:24px;height:24px}.wood-button.equipped{background:#86a867;border-color:#597f42;box-shadow:0 3px #597f42}.play-button.compact{font-size:20px;min-width:0;letter-spacing:1px;padding:13px 25px;box-shadow:0 4px #a97029;border-width:2px}.modal-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.modal-actions .play-button{flex-basis:100%;margin-bottom:5px}.modal-actions .wood-button{flex:1;white-space:nowrap}.menu-wallet{display:flex;justify-content:center;align-items:center;gap:7px;font-size:14px;color:#a38960;margin:0 0 18px}.menu-wallet b{font-size:21px;color:#9a722e}.menu-wallet .sprite{width:29px;height:29px}.category-nav{display:flex;gap:7px;overflow:auto;padding:5px 2px 12px;margin:0 0 15px;scrollbar-width:thin}.category-nav button{border:2px solid #d9c293;background:#f3e7c5;border-radius:8px;padding:8px 16px;white-space:nowrap;font-size:14px;color:#947750;min-height:40px;font-weight:700}.category-nav button.selected{background:#bc8951;color:#fff6df;border-color:#8a643b;box-shadow:0 3px #936c3e}.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.shop-card{background:#fffdf0;border:2px solid #e6d1a5;border-radius:12px;padding:12px;display:flex;flex-direction:column;min-width:0;box-shadow:0 3px #e6d1a56b}.item-picture{height:100px;display:grid;place-items:center;background:radial-gradient(#fbe7ad,transparent 70%);position:relative}.item-picture .sprite{width:85px;height:85px;filter:drop-shadow(0 4px #ccba8233)}.item-picture .quantity{position:absolute;right:0;bottom:4px;font-size:12px;color:#a68752;background:#f9ebc7;padding:3px 7px;border-radius:5px}.rare{position:absolute;left:0;top:0;background:#ddb54f;color:#765729;border-radius:4px;padding:3px 5px;font-size:12px;font-weight:700}.legendary{border-color:#d9b758;box-shadow:0 3px #c4a15c66}.shop-card h3{font-size:16px;margin:9px 0 5px}.shop-card p{font-size:13px;color:#a28c6b;line-height:1.8;margin:0 0 14px;flex:1}.shop-card .wood-button{width:100%;font-size:14px;padding:7px;min-height:40px}.menu-note{font-size:12px;line-height:1.8;color:#ab9879;margin:22px 0 0;text-align:center}.notice{background:#f8e1b7;border:1px solid #dfc18c;padding:12px;border-radius:8px;font-size:14px;line-height:1.7;color:#a07b44}.unlock-banner{background:#f3e1b5;border:2px dashed #ccaa70;padding:17px;margin:0 0 20px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px}.unlock-banner h3{font-size:16px;margin:0}.locked-shop .wood-button{pointer-events:none;opacity:.45}.empty-menu{text-align:center;padding:25px 15px 35px}.empty-menu>.sprite{width:120px;height:120px}.empty-menu h3{font-size:19px;margin:15px 0 22px}.upgrade-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:10px 0 15px}.upgrade-card{background:linear-gradient(#fffdf0,#f9e6b5);border:3px solid #d6b068;border-radius:15px;box-shadow:0 6px #bb945b;text-align:center;padding:22px 12px;color:#79562e;transition:transform .2s}.upgrade-card:hover{transform:translateY(-7px);border-color:#a58c4c;background:#ffffed}.upgrade-card>.sprite{width:115px;height:115px;filter:drop-shadow(0 7px #d4b77233)}.upgrade-card h3{font-size:21px;margin:14px 0 8px}.upgrade-card p{font-size:14px;color:#a18255;line-height:1.7;min-height:45px}.upgrade-card>span{display:inline-block;background:#81a865;color:#fbffdb;border:2px solid #5b8146;border-radius:6px;padding:8px 23px;font-weight:800;font-size:15px;margin-top:7px}.victory-stars{display:flex;justify-content:center;gap:15px;font-size:58px;line-height:1.4;margin:0 0 15px}.victory-stars>span{color:#d8cdb2;text-shadow:0 4px #b3a085;transform:rotate(-10deg)}.victory-stars>span:nth-child(2){font-size:76px;margin-top:-16px;transform:rotate(5deg)}.victory-stars .earned{color:#ffce59;text-shadow:0 4px #c3933f,2px 0 #bb8b3e,-2px 0 #bb8b3e,0 -2px #bb8b3e;animation:pop .5s both}.chest-reward{display:flex;align-items:center;justify-content:center;gap:16px;background:#f9e7b8;border-radius:12px;padding:8px 15px;margin-bottom:20px}.chest-reward>.sprite{width:106px;height:106px}.chest-reward strong{display:block;font-size:21px}.chest-reward span{display:block;font-size:26px;font-weight:900;color:#bc8936;margin-top:6px}.lost-hero,.pause-art{text-align:center}.lost-hero>.sprite,.pause-art>.sprite{width:115px;height:115px;margin-bottom:15px}.map-trail{display:flex;flex-direction:column;gap:15px;padding:4px 0 15px}.map-stop{display:flex;align-items:center;gap:16px;border:2px solid #c6aa73;border-radius:12px;background:#fffbed;padding:15px;text-align:left;box-shadow:0 4px #d9c396;color:#765631}.map-number{width:46px;height:46px;border:2px solid #99b170;background:#b9ce8c;box-shadow:0 3px #789358;border-radius:50%;display:grid;place-items:center;font-size:23px;color:#587345;font-weight:900;flex-shrink:0}.map-stop>span:nth-child(2){flex:1}.map-stop b{display:block;font-size:17px}.map-stop small{display:block;font-size:13px;color:#aa9269;margin-top:5px}.map-stop em{color:#d9ad48;font-size:18px;font-weight:800;font-style:normal}.map-stop:disabled{opacity:.5}.profile-list{display:flex;flex-direction:column;gap:10px;margin:20px 0}.profile-choice{display:flex;align-items:center;gap:10px;border:2px solid #e1c896;border-radius:10px;background:#fffbed;padding:10px;text-align:left}.profile-choice>.sprite{width:50px;height:50px}.profile-choice>span{flex:1}.profile-choice b{font-size:16px}.profile-choice small{display:block;font-size:12px;color:#a48b64;margin-top:6px}.name-row{display:flex;gap:10px;margin-top:10px}#new-name{border:2px solid #d7bd8c;border-radius:8px;padding:10px;background:#fffcf1;width:100%;min-width:0;color:#785937}#new-player label{font-size:14px;font-weight:700}.rank-list{display:flex;flex-direction:column;margin:20px 0;gap:10px}.rank-list>div{display:flex;gap:15px;align-items:center;border-bottom:1px dashed #d6bd89;padding:10px 0}.rank-list>div>b{font-size:23px;color:#bd913f;width:30px}.rank-list>div>span{flex:1;font-size:16px;font-weight:700}.rank-list small{display:block;font-size:12px;color:#a78e63;margin-top:4px}.rank-list>div>strong{font-size:17px;color:#aa8031}.rank-list .sprite{width:27px;height:27px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.help-grid section{background:#fffbed;border:1px solid #e8d7ad;border-radius:12px;padding:20px}.help-grid .sprite{width:70px;height:70px}.help-grid h3{font-size:19px;margin:13px 0 9px}.help-grid p{font-size:15px;color:#9c825c;line-height:1.9;margin:0}details{font-size:14px;line-height:1.9;margin-top:22px;color:#a18b66}summary{cursor:pointer;font-weight:700;color:#8e7148;font-size:14px}details p{margin:10px 0}.arcade-center{text-align:center}.wheel-box{width:280px;height:280px;position:relative;margin:25px auto 32px;filter:drop-shadow(0 6px #b5a071)}.prize-wheel{height:100%;width:100%;border-radius:50%;border:8px solid #977240;position:relative;background:conic-gradient(#ffe3a0 0 45deg,#a7c88e 45deg 90deg,#ffe3a0 90deg 135deg,#a7c88e 135deg 180deg,#ffe3a0 180deg 225deg,#a7c88e 225deg 270deg,#ffe3a0 270deg 315deg,#a7c88e 315deg);transform:rotate(var(--end))}.prize-wheel>span{position:absolute;inset:0;transform:rotate(var(--a));display:flex;justify-content:center;padding-top:20px;font-size:16px;font-weight:800;color:#795c35}.wheel-pointer{position:absolute;z-index:2;top:-14px;left:calc(50% - 12px);width:24px;height:39px;background:#835635;clip-path:polygon(0 0,100% 0,50% 100%)}.wheel-hub{position:absolute;inset:calc(50% - 30px);border:4px solid #fff1c7;border-radius:50%;background:#bc8e4e;color:#fff0aa;font-size:30px;display:grid;place-items:center;box-shadow:0 3px #7c5d3855}.spinning{animation:spin 1.6s cubic-bezier(.1,.6,.1,1) both}.draw-result{min-height:34px;font-size:16px;color:#a2844d;font-weight:700}.prize-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;max-width:550px;margin:28px auto}.prize-grid>span{background:#f3e5bc;border:2px solid #dfc992;border-radius:8px;padding:16px 4px;font-size:15px}.prize-grid>span.hit{background:#acd58a;border-color:#7fa565;color:#54773d;box-shadow:0 0 0 3px #d5e8b2}.number-picks{display:flex;justify-content:center;gap:9px;margin:65px auto}.number-picks b{border:2px solid #d5b875;border-radius:8px;background:#fff0bf;font-size:32px;padding:12px 17px;box-shadow:0 4px #c9ab71}.scratch-panel{width:min(100%,350px);aspect-ratio:600/280;position:relative;margin:38px auto;background:#feeabc;border:3px solid #d5b574;border-radius:12px;overflow:hidden;box-shadow:0 5px #bca276}.scratch-panel>b{position:absolute;inset:0;display:grid;place-items:center;font-size:28px;color:#b18a3e}.scratch-panel canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#modal.locked .modal-heading h2{color:#ad863a;text-shadow:0 2px #fff5c4}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(calc(1800deg + var(--end)))}}@keyframes pop{from{transform:scale(.3) rotate(-20deg)}to{transform:scale(1) rotate(-5deg)}}
@media(min-width:1600px){.welcome{top:21%}.welcome h1{font-size:112px}.welcome>p{margin:13px 0 38px}.game-dock{bottom:55px;padding:14px 28px;gap:28px}.game-dock .sprite{width:65px;height:65px}.game-dock span{font-size:16px}.action-area{right:60px;bottom:55px}.move-area{left:65px;bottom:55px}}
@media(max-width:1100px){#hud{left:20px;right:20px;gap:10px}.hero-card{min-width:233px;padding-right:10px}.hero-info{min-width:140px;max-width:140px}.hero-avatar{width:53px;height:55px}.stage-badge{padding:10px 17px}.stage-badge b{font-size:20px;letter-spacing:1px}.stage-badge small{letter-spacing:0}.gold-pill{padding-right:10px}.gold-pill b{font-size:18px}.hud-right{gap:7px}.welcome h1{font-size:78px}.welcome{top:21%}.welcome>p{font-size:16px}.game-dock{gap:13px;bottom:34px;padding:9px 16px}.game-dock>button{min-width:66px}.game-dock .sprite{width:52px;height:52px}.game-dock span{font-size:13px}.action-area{gap:13px;right:26px;bottom:32px}.attack-row{gap:10px}.skills{grid-template-columns:repeat(2,67px);gap:8px}.skill-control{width:67px;height:73px}.attack-control{width:100px;height:100px}.attack-control .sprite{width:60px;height:60px}.attack-control b{font-size:18px;margin-top:37px}.move-area{left:30px;bottom:34px}.help-hint{bottom:174px;font-size:12px}.shop-grid{grid-template-columns:repeat(3,1fr)}.objective{top:122px}}
@media(pointer:coarse){#joystick{display:block}.keyboard-move{display:none}.touch-hint{display:inline}.desktop-hint{display:none}.skill-control small,.dash-control small,.attack-control small{display:none}.attack-control b{margin-top:47px}.attack-control .sprite{top:1px}.dash-control{height:64px;width:64px}.skill-control{height:70px}.skill-control b{font-size:12px}.attack-control{width:105px;height:105px}}
@media(max-width:760px){#game{min-height:350px}#hud{left:13px;right:13px;top:max(12px,env(safe-area-inset-top));gap:7px;align-items:flex-start;flex-wrap:wrap}.hero-card{min-width:0;width:209px;padding:6px 10px 7px 2px;border-radius:10px;gap:2px}.hero-avatar{width:47px;height:49px;margin-top:-5px}.hero-info{min-width:140px;max-width:140px}.hero-info>b{font-size:12px;margin-bottom:5px;max-width:138px}.hp-track{height:14px}.hp-track strong{font-size:12px;line-height:10px;transform:scale(.9)}.xp-track{height:4px;margin-top:4px}#level{font-size:12px;left:4px;padding:1px 3px;min-width:22px;bottom:-6px}.hud-right{gap:5px;margin-left:auto;max-width:calc(100% - 220px);flex-wrap:wrap;justify-content:flex-end}.gold-pill{height:34px;border-radius:7px;padding:1px 8px 1px 1px;gap:1px;flex-shrink:0}.gold-pill .sprite{width:28px;height:28px}.gold-pill b{font-size:15px}.round-button{width:30px;height:29px;border-radius:6px;font-size:18px;box-shadow:0 3px #123827}.stage-badge{order:3;position:absolute;top:76px;left:50%;transform:translateX(-50%);width:max-content;padding:6px 15px 9px;border-radius:10px;background:#174839a6}.stage-badge small{font-size:12px;letter-spacing:1px}.stage-badge b{font-size:16px;letter-spacing:1px;margin:3px 0 0}.stage-badge span{display:none}.welcome{top:27%}.chapter-chip{font-size:12px;letter-spacing:1px;padding:6px 13px}.welcome h1{font-size:55px;letter-spacing:2px;gap:4px;margin-top:13px;-webkit-text-stroke:1px #774b28;text-shadow:0 4px #a16b30,3px 0 #62452b,-3px 0 #62452b,0 -3px #62452b,3px 3px #62452b,-3px -3px #62452b,-3px 3px #62452b,3px -3px #62452b,0 8px #274632,0 12px 18px #284e2944}.welcome h1 i{font-size:29px;right:-22px;top:-8px}.welcome>p{font-size:14px;letter-spacing:1px;margin:13px 0 25px}.play-button{font-size:24px;padding:13px 28px 14px;min-width:245px;border-width:3px;border-radius:12px}.play-button>span{font-size:19px}.play-button small{font-size:12px;letter-spacing:2px}.welcome-hint{font-size:12px;margin-top:20px}.welcome-hint>b{font-size:12px}.game-dock{bottom:max(38px,calc(env(safe-area-inset-bottom) + 20px));gap:3px;padding:8px 7px;border-radius:13px;width:calc(100% - 30px);justify-content:space-around}.game-dock>button{min-width:0;padding:0 4px}.game-dock .sprite{width:46px;height:46px}.game-dock span{font-size:12px;letter-spacing:0}.daily-button>b{width:18px;height:20px;font-size:12px;line-height:16px;right:0}.world-label{bottom:max(12px,env(safe-area-inset-bottom));font-size:12px;letter-spacing:.5px}.world-label span{margin:0 5px}.help-button{bottom:150px;right:17px;width:31px;height:31px;font-size:19px}.is-playing .stage-badge{display:none}.objective{top:91px;left:50%;min-width:245px;padding:8px 12px;gap:8px;border-radius:9px}.objective>span{font-size:20px}.objective b{font-size:12px;white-space:normal}.objective>strong{font-size:12px}.goal-track{height:3px;margin-top:5px}.boss-bar{top:153px;width:75vw}.boss-bar b{font-size:14px}.boss-bar>div{height:11px}.move-area{left:18px;bottom:max(34px,calc(env(safe-area-inset-bottom) + 20px))}#joystick{width:113px;height:113px}#joy-knob{width:44px;height:44px;top:calc(50% - 22px);left:calc(50% - 22px)}.action-area{right:17px;bottom:max(35px,calc(env(safe-area-inset-bottom) + 20px));flex-direction:column;gap:12px;align-items:flex-end}.skills{display:flex;gap:8px;padding:0}.skill-control{width:59px;height:61px;border-radius:12px}.skill-control i{font-size:28px}.skill-control b{font-size:12px;font-weight:700;letter-spacing:-.5px}.skill-control small{display:none}.cooldown{font-size:23px;border-radius:10px}.skill-control.extra{width:48px}.skill-control.extra b{font-size:12px;max-width:44px}.attack-row{gap:13px;align-items:flex-end}.attack-control{width:88px;height:88px}.attack-control .sprite{width:56px;height:56px;top:0}.attack-control b{font-size:17px;margin-top:42px}.attack-control small{display:none}.dash-control{height:54px;width:54px;margin-bottom:3px}.dash-control span{font-size:23px}.dash-control b{font-size:12px}.dash-control small{display:none}.is-playing .game-dock{bottom:max(28px,calc(env(safe-area-inset-bottom) + 16px));width:auto;padding:0;left:47%}.is-playing .game-dock .sprite{width:35px;height:35px}.is-playing .game-dock button{min-width:35px}.is-playing .game-dock span{font-size:12px}.help-hint{bottom:220px;width:83%;text-align:center;white-space:normal;font-size:12px;line-height:1.7;padding:8px 12px}.keyboard-move>span,.keyboard-move>div>span{width:25px;height:26px;line-height:22px;font-size:12px}.keyboard-move small{font-size:12px;max-width:95px}#banner{top:28%;font-size:22px;max-width:88%;line-height:1.5;letter-spacing:1px}#combo{font-size:25px;right:25px;top:28%}#toast{top:160px;font-size:14px;padding:10px 15px;line-height:1.7}dialog{padding:24px 18px;border-radius:16px;border-width:3px;width:calc(100vw - 22px);max-height:calc(100dvh - 30px)}dialog.wide{width:calc(100vw - 22px)}.modal-heading h2{font-size:24px;margin:10px 25px 17px;letter-spacing:1px}.modal-subtitle{font-size:14px;margin-bottom:17px}.close-button{width:29px;height:29px;line-height:22px;font-size:23px;right:10px;top:10px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-card{padding:10px;border-radius:10px}.item-picture{height:83px}.item-picture .sprite{width:74px;height:74px}.shop-card h3{font-size:14px;margin-top:7px}.shop-card p{font-size:12px;line-height:1.8;min-height:44px;margin-bottom:11px}.shop-card .wood-button{font-size:13px;min-height:39px}.wood-button{font-size:14px;padding:9px 14px}.category-nav{gap:6px;margin-bottom:10px;padding-bottom:10px}.category-nav button{font-size:13px;padding:7px 12px;min-height:38px}.menu-wallet{font-size:13px;margin-bottom:13px}.menu-wallet b{font-size:19px}.menu-wallet .sprite{width:25px;height:25px}.unlock-banner{flex-wrap:wrap;padding:15px;gap:10px}.unlock-banner h3{font-size:15px}.unlock-banner .wood-button{width:100%}.upgrade-cards{grid-template-columns:1fr;gap:12px;padding:6px 2px 13px}.upgrade-card{display:grid;grid-template-columns:70px 1fr;gap:0 12px;padding:12px;text-align:left;border-width:2px;border-radius:12px;position:relative}.upgrade-card>.sprite{width:70px;height:70px;grid-row:1/4}.upgrade-card h3{font-size:18px;margin:4px 0}.upgrade-card p{font-size:13px;min-height:0;margin:3px 0;line-height:1.5}.upgrade-card>span{font-size:12px;padding:3px 12px;margin-top:5px;justify-self:start;border-width:1px}.victory-stars{font-size:47px;gap:9px}.victory-stars>span:nth-child(2){font-size:64px;margin-top:-13px}.chest-reward{gap:9px}.chest-reward>.sprite{width:90px;height:90px}.chest-reward strong{font-size:18px}.chest-reward span{font-size:23px}.modal-actions{gap:10px}.modal-actions .wood-button{font-size:13px;padding:9px 10px}.play-button.compact{font-size:19px;padding:12px 20px}.map-stop{padding:13px;gap:12px}.map-number{width:39px;height:39px;font-size:20px}.map-stop b{font-size:16px}.map-stop small{font-size:12px;line-height:1.7}.map-stop em{font-size:15px}.help-grid{grid-template-columns:1fr;gap:13px}.help-grid section{padding:16px}.help-grid .sprite{width:52px;height:52px;float:left;margin-right:14px}.help-grid h3{font-size:17px;margin:2px 0 8px}.help-grid p{font-size:14px;clear:both;padding-top:8px}.wheel-box{width:250px;height:250px;margin:21px auto 29px}.prize-wheel>span{font-size:14px;padding-top:16px}.draw-result{font-size:14px;line-height:1.8}.prize-grid{gap:7px}.prize-grid>span{font-size:13px;padding:13px 3px}.number-picks{gap:6px;margin:40px auto}.number-picks b{padding:9px 12px;font-size:26px}.name-row .wood-button{padding:8px 10px;white-space:nowrap}#new-name{font-size:14px;padding:9px}.profile-choice b{font-size:14px}.rank-list>div>span{font-size:14px}.rank-list>div>strong{font-size:15px}.rank-list .sprite{width:22px;height:22px}}
@media(max-width:370px){.hero-card{width:188px}.hero-info{min-width:124px;max-width:124px}.hero-avatar{width:44px}.hud-right{max-width:calc(100% - 198px)}.welcome h1{font-size:47px}.welcome h1 i{right:-20px;font-size:24px}.welcome>p{font-size:13px}.action-area{right:12px}.move-area{left:12px}#joystick{width:101px;height:101px}.skills{gap:6px}.skill-control{width:54px}.attack-control{width:82px;height:82px}.attack-control b{font-size:16px}.dash-control{width:49px;height:49px}.attack-row{gap:9px}.game-dock .sprite{width:41px;height:41px}.number-picks b{padding:9px;font-size:25px}}
@media(max-height:560px) and (min-width:650px){#hud{top:10px;left:14px;right:14px}.hero-card{transform:scale(.85);transform-origin:top left}.stage-badge{padding:4px 15px}.stage-badge small{display:none}.stage-badge b{font-size:16px}.stage-badge span{display:none}.hud-right{transform:scale(.85);transform-origin:top right}.welcome{top:18%}.chapter-chip{font-size:12px;padding:4px 14px}.welcome h1{font-size:51px;margin:7px 0}.welcome h1 i{font-size:27px;right:-25px}.welcome>p{font-size:13px;margin:5px 0 16px}.welcome .play-button{font-size:21px;min-width:230px;padding:10px 25px}.welcome .play-button small{display:none}.welcome-hint{margin-top:13px;font-size:12px}.welcome-hint>b{display:none}.game-dock{bottom:18px;gap:10px;padding:4px 12px}.game-dock .sprite{width:37px;height:37px}.game-dock>button{min-width:58px}.game-dock span{font-size:12px}.world-label{display:none}.help-button{bottom:20px}.objective{top:70px;padding:6px 12px;min-width:240px}.objective b{font-size:12px}.objective>span{font-size:18px}.objective>strong{font-size:12px}.boss-bar{top:118px;width:320px}.boss-bar b{font-size:12px}.move-area{left:25px;bottom:24px}#joystick{width:106px;height:106px}.action-area{bottom:23px;right:25px;flex-direction:row;gap:12px}.skills{grid-template-columns:repeat(2,57px);gap:6px;display:grid}.skill-control{width:57px;height:57px}.skill-control i{font-size:27px}.skill-control b{font-size:12px}.attack-control{width:85px;height:85px}.attack-control .sprite{width:55px;height:55px}.attack-control b{margin-top:43px;font-size:17px}.attack-control small,.dash-control small,.skill-control small{display:none}.dash-control{width:51px;height:51px}.attack-row{gap:10px}.help-hint{bottom:150px;font-size:12px}.is-playing .game-dock{bottom:24px}.is-playing .game-dock .sprite{height:33px;width:33px}.is-playing .game-dock span{font-size:12px}#banner{top:34%;font-size:23px}#combo{top:34%;font-size:28px}.upgrade-cards{grid-template-columns:repeat(3,1fr);gap:12px}.upgrade-card{display:block;padding:13px;text-align:center}.upgrade-card>.sprite{height:68px;width:68px}.upgrade-card h3{font-size:16px;margin:5px 0}.upgrade-card p{font-size:12px;min-height:32px;margin:5px 0}.upgrade-card>span{font-size:12px;padding:4px 10px}.modal-heading h2{font-size:23px;margin:3px 0 9px}.modal-subtitle{font-size:14px;margin-bottom:10px}dialog{padding:22px;max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Notebook characters and a readable, in-game instruction booklet. */
.manuscript-sprite{display:inline-block;flex-shrink:0;vertical-align:middle;width:100px;height:100px;background-image:var(--monster-atlas);background-size:300% 300%;background-position:calc(var(--col)*50%) calc(var(--row)*50%);background-repeat:no-repeat}.item-picture .manuscript-sprite{width:90px;height:90px}.guide-entry{pointer-events:auto;margin:12px auto 0;display:block;padding:9px 18px;min-height:44px;border:1px solid #eee1a0;border-radius:8px;background:#193e36e6;color:#fff7d1;font-size:16px;font-weight:700;text-shadow:none}.help-button{width:auto;min-width:58px;border-radius:10px;padding:0 10px;font-size:16px}.energy-text{display:block;font-size:12px;color:#c3f5ff;margin-top:3px}.guide-content{line-height:1.85;color:#654a31}.guide-content h3{font-size:19px;margin:0 0 8px;color:#533b28}.guide-content p{font-size:16px;margin:0 0 12px}.guide-content small{font-size:14px;display:block;color:#715b42;line-height:1.7}.guide-lead{padding:0 0 14px;border-bottom:2px dashed #bf9c69}.guide-steps{list-style:none;padding:0;display:grid;gap:16px;margin:20px 0}.guide-steps li{display:flex;gap:15px;align-items:flex-start;background:#fffdf2;border:1px solid #d7c396;border-radius:10px;padding:18px}.guide-steps li>span{width:31px;height:31px;flex-shrink:0;border-radius:50%;background:#2d6054;color:white;text-align:center;line-height:31px;font-weight:800}.guide-steps li>div{flex:1}.guide-steps li>.sprite{width:68px;height:68px}.guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:22px 0}.guide-callout{background:#efe6c8;border-left:4px solid #376756;padding:17px 20px;border-radius:5px;margin:18px 0}.guide-content kbd{display:inline-block;background:#fffaf0;border:1px solid #bea279;border-bottom-width:3px;padding:0 6px;border-radius:4px;color:#58402c;font:700 14px/1.6 system-ui}.guide-tabs{border-bottom:2px solid #ceb989;position:sticky;top:-30px;background:#fff5d9;z-index:1;padding-top:14px}.skill-loadout{margin:20px 0}.skill-loadout>div{display:flex;align-items:center;gap:14px;background:#fffaf0;border:1px solid #d6c399;padding:14px;margin-top:8px;border-radius:8px}.skill-loadout kbd{padding:5px 10px}.skill-loadout small{margin-top:3px}.bestiary{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bestiary article{display:flex;align-items:center;gap:14px;padding:16px;background:#fffdf2;border:1px solid #cdbc98;border-radius:10px}.bestiary .manuscript-sprite{width:105px;height:125px}.bestiary h3{margin:5px 0 9px}.bestiary p{font-size:14px;margin:0 0 6px}.paper-tag{font-size:12px;background:#e9eddb;color:#4c634a;border-radius:4px;padding:3px 6px}.stat-label{font-size:12px;display:inline-block;line-height:1.4;background:#e9e0c5;color:#644e32;border-radius:4px;padding:2px 4px;margin:3px 2px 3px 0}.stat-label.live{background:#deeddc;color:#315947}.shop-card p{font-size:14px;color:#715c40}.shop-card .wood-button{min-height:44px;white-space:normal}.notice .wood-button{margin:8px 0 0 10px;color:#fff}.menu-note{font-size:14px;color:#715d43}.modal-subtitle{color:#715d43}.help-hint{max-width:calc(100% - 24px);white-space:normal;text-align:center;font-size:14px;background:#153e36ed;border:1px solid #dbe9b896;line-height:1.55;padding:9px 14px}.welcome-hint,.welcome-hint>b{font-size:14px}.skill-control b{font-size:14px}.guide-content details{margin:18px 0}.guide-content summary{font-size:16px;font-weight:700;cursor:pointer}
@media(max-width:700px){.guide-columns,.bestiary{grid-template-columns:1fr}.guide-steps li{padding:13px;gap:10px}.guide-steps li>.sprite{display:none}.guide-content h3{font-size:18px}.guide-tabs{top:-20px}.guide-entry{font-size:14px;padding:7px 12px;margin-top:9px}.welcome-hint>b{max-width:280px;margin:3px auto;font-size:13px}.bestiary .manuscript-sprite{width:96px;height:110px}.energy-text{font-size:12px}.guide-callout{padding:14px}.shop-grid{gap:10px}.notice .wood-button{margin-left:0}.hero-info>b{margin-bottom:4px}}
@media(max-height:650px) and (min-width:700px){.welcome{inset:16% 0 auto}.welcome h1{font-size:54px}.welcome>p{margin:3px 0 12px;font-size:16px}.welcome .play-button{padding:8px 30px;font-size:23px}.welcome-hint{margin-top:12px}.guide-entry{display:inline-block;margin-top:6px}.game-dock{bottom:28px}.game-dock .sprite{height:42px;width:42px}.game-dock span{margin-top:0}}
@media(max-width:760px) and (max-height:700px){.welcome{top:145px}.chapter-chip{display:none}.welcome h1{font-size:44px;margin-top:5px}.welcome>p{font-size:13px;margin:7px 0 15px}.welcome .play-button{padding:10px 24px;font-size:23px}.welcome-hint{margin-top:12px;line-height:1.5}.welcome-hint>b{font-size:12px}.guide-entry{margin-top:8px;min-height:40px}.help-button{bottom:133px}}
@media(max-width:370px){.guide-tabs button{font-size:14px}.bestiary article{padding:12px;gap:8px}.bestiary .manuscript-sprite{width:75px}.guide-content p{font-size:16px}.shop-grid{grid-template-columns:1fr}.shop-card{display:grid;grid-template-columns:85px 1fr;gap:4px 10px}.shop-card .item-picture{grid-row:1/4}.shop-card h3{font-size:16px}.shop-card p{margin-bottom:8px}.shop-card .wood-button{grid-column:2}}
.mode-picks{display:flex;align-items:stretch;justify-content:center;gap:14px;margin:0 auto;max-width:600px;padding:0 18px}.mode-picks .play-button{min-width:0;flex:1;max-width:320px}.endless-entry{pointer-events:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px 22px;border:3px solid #bedcf1;border-radius:13px;background:linear-gradient(#405b88,#293c65);box-shadow:0 6px #1b2945;color:#fff7de;min-width:164px;text-shadow:0 2px #192d46}.endless-entry b{font-size:23px}.endless-entry small{font-size:14px;color:#daedff}.endless-entry:hover{filter:brightness(1.15)}.endless-map{background:#e3e9ef;border:2px solid #69869c;border-radius:12px;padding:18px;margin:0 0 22px}.endless-map>b{font-size:23px;color:#34506c}.endless-map p{font-size:16px;line-height:1.7}.endless-mark{text-align:center;font-size:85px;color:#436a87;line-height:1.1;margin:0 0 12px}
@media(max-width:760px){.mode-picks{gap:9px;padding:0 20px}.mode-picks .play-button{font-size:20px;padding:12px 8px;letter-spacing:0}.mode-picks .play-button small{font-size:12px;letter-spacing:0}.mode-picks .play-button>span{display:none}.endless-entry{padding:12px 10px;min-width:128px}.endless-entry b{font-size:18px}.endless-entry small{font-size:12px}.endless-map{padding:14px}}
@media(max-height:560px) and (min-width:650px){.mode-picks{max-width:520px}.endless-entry{padding:6px 14px}.endless-entry b{font-size:19px}.endless-entry small{font-size:12px}.welcome .guide-entry{min-height:34px;padding:4px 12px}.welcome-hint{margin-top:10px}}
/* Each inventory item gets its own named artwork, shared with the backpack. */
.item-icon{display:inline-block;width:90px;height:90px;flex-shrink:0;vertical-align:middle;background-color:#fffdf0;background-image:var(--icon-sheet);background-size:600% 600%;background-position:var(--icon-x) var(--icon-y);background-repeat:no-repeat;border-radius:8px}.item-picture{background:#fffdf0;min-height:106px}.item-picture .item-icon{width:106px;height:106px}.skill-control .item-icon{width:34px;height:34px;border-radius:5px;line-height:1}.shop-card h3{overflow-wrap:anywhere}.item-picture .rare,.item-picture .quantity{z-index:1}
@media(max-width:760px){.item-picture{min-height:88px}.item-picture .item-icon{width:88px;height:88px}.skill-control .item-icon{width:29px;height:29px}}
@media(max-width:370px){.item-picture .item-icon{width:80px;height:80px}}
.round-button.pause-label{width:auto;min-width:58px;padding:0 9px;font-size:14px}.skill-page{display:block;width:100%;margin:0 0 6px;border:1px solid #dff3c6aa;border-radius:9px;background:#153e35dd;color:#fff4ce;font-size:12px;font-weight:800;padding:5px 7px;box-shadow:0 3px #102e27}.resume-entry{pointer-events:auto;border:2px solid #d7efbd;border-radius:12px;background:#275c46e8;color:#fff6d1;padding:11px 19px;box-shadow:0 4px #173d31;display:flex;flex-direction:column;gap:2px;align-items:center}.resume-entry b{font-size:17px}.resume-entry small{font-size:11px;color:#d9edc8}.daily-missions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.daily-missions section{background:#fff8dc;color:#59442f;border:2px solid #bb8f54;border-radius:12px;padding:15px;text-align:center}.daily-missions h3,.daily-missions p{margin:4px 0 10px}@media(max-width:620px){.daily-missions{grid-template-columns:1fr}.round-button.pause-label{min-width:52px;padding:0 6px;font-size:12px}.skill-page{font-size:10px;padding:3px 5px;margin-bottom:4px}}
