@font-face{font-family:Jua;src:url('./assets/Jua-subset.woff?v=10.2') format('woff');font-display:swap}
@font-face{font-family:ShopJapanese;src:url('./assets/Darumadrop-ja-v10.woff?v=10.2') format('woff');font-display:swap}
@font-face{font-family:ShopSimplified;src:url('./assets/Noto-zh-CN.woff?v=10.2') format('woff');font-display:swap}
@font-face{font-family:ShopTraditional;src:url('./assets/Noto-zh-TW.woff?v=10.2') format('woff');font-display:swap}
.mission-status{display:flex;gap:20px;padding:9px 16px;background:#f4dfb5f5;border:2px solid #ac8754;border-radius:6px 6px 14px 14px;box-shadow:0 3px 0 #76533355;color:#715137;text-align:center}
.mission-status[hidden],.chances[hidden]{display:none!important}.mission-status>div>span{display:block;font-size:9px;font-weight:800;margin-bottom:4px}.mission-status strong{display:block;font:400 23px/1.2 Jua;white-space:nowrap}.mission-status #mission-clock{font-size:20px}.mission-status .urgent{color:#b4442f}.stage-mission{display:block;font:400 12px/1.55 Jua;letter-spacing:0;color:#7b6343;margin-top:6px}.stage-button:has(.stage-mission){aspect-ratio:auto;border-radius:18px;min-height:122px;padding:10px 3px}.result-details{flex-wrap:wrap}
@media(max-height:550px) and (orientation:landscape){.mission-status{padding:5px 10px;gap:14px}.mission-status strong{font-size:20px}.mission-status #mission-clock{font-size:18px}.stage-button:has(.stage-mission){min-height:100px}.stage-mission{font-size:10px}}
@media(max-width:600px) and (orientation:portrait){.mission-status{padding:7px 10px;gap:13px}.mission-status strong{font-size:21px}.mission-status #mission-clock{font-size:16px}.mission-status>div>span{font-size:8px}.stage-button:has(.stage-mission){min-height:120px}.stage-mission{font-size:10px}}
:root{font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#493a28;background:#30291f;font-synthesis:none;--cream:#fff1d2;--brown:#715137;--orange:#c7753b;--green:#5d7050}
.dialog-paper{scrollbar-width:thin;scrollbar-color:#a7804d #e9d0a0}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}a{color:inherit;text-decoration:none}button:disabled{opacity:.58;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #e3b84f;outline-offset:5px}button[hidden]{display:none!important}.game-shell{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:340px;overflow:hidden;touch-action:none;user-select:none;background:radial-gradient(ellipse at center,#76634a,#2e281f 90%)}canvas{position:absolute;inset:0;width:100%;height:100%;outline:none;touch-action:none}.game-tools{position:absolute;top:max(22px,env(safe-area-inset-top));left:2.5%;right:2.5%;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:7}.game-tools>div{display:flex;gap:10px}.game-tools>*{pointer-events:auto}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:3px solid #735235;border-radius:14px;background:#f2dab1;box-shadow:inset 0 2px 0 #fff1d7,0 4px 0 #4e392c;font-size:30px;color:#6b4b31;transition:transform .12s}.icon-button:hover{transform:translateY(-2px);background:#ffe9c5}.icon-button:active{transform:translateY(3px);box-shadow:inset 0 2px 0 #fff1d7,0 1px 0 #4e392c}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button.home{padding-bottom:3px}.title-screen{position:absolute;inset:0;pointer-events:none}.logo{position:absolute;top:13.5%;left:58%;transform:translateX(-50%);text-align:center;white-space:nowrap;filter:drop-shadow(0 3px 0 #fff0d255);pointer-events:none}.logo-caption{font-size:12px;font-weight:800;letter-spacing:.24em;color:#897047}.logo h1{font-family:Jua,sans-serif;font-size:clamp(64px,7vw,110px);line-height:1.04;letter-spacing:-.05em;font-weight:400;color:#70442d;margin:10px 0 0;text-shadow:3px 3px 0 #f9dfac,-2px -2px 0 #f9dfac,2px -2px 0 #f9dfac,-2px 2px 0 #f9dfac,0 7px 0 #9a693548}.logo h1 small{display:block;font-size:.47em;letter-spacing:.02em;line-height:1.15;color:#596447}.logo h1 b{font-weight:400;display:inline-block;transform:rotate(10deg);margin-left:3px;color:#ba6638}.logo p{font-family:Jua;font-size:23px;color:#a66439;margin:14px 0 0;transform:rotate(-3deg)}.menu-actions{position:absolute;left:50%;bottom:7.4%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:20px;pointer-events:auto;white-space:nowrap}.wood-button{position:relative;border:4px solid #6e4930;border-radius:16px;background:linear-gradient(0deg,#e6c28c,#f8deb2 45%,#ecca98);box-shadow:inset 0 2px 0 #fff0d4,inset 0 -3px 0 #bb8956,0 6px 0 #503827,0 9px 12px #33271e44;min-width:245px;min-height:68px;padding:11px 22px;font-family:Jua;font-size:26px;text-align:center;letter-spacing:-.025em;transition:transform .1s,filter .1s;display:flex;align-items:center;justify-content:center;gap:12px}.wood-button:before,.wood-button:after{content:'';position:absolute;top:50%;width:5px;height:5px;border-radius:50%;background:#96704b;box-shadow:0 1px 0 #ffecc8}.wood-button:before{left:7px}.wood-button:after{right:7px}.wood-button:hover{filter:brightness(1.07);transform:translateY(-2px)}.wood-button:active{transform:translateY(4px);box-shadow:inset 0 2px 0 #fff0d4,0 2px 0 #503827}.wood-button.primary{background:linear-gradient(0deg,#b76532,#d88a4d 55%,#d59761);color:#fff0d2;box-shadow:inset 0 2px 0 #eeb888,inset 0 -3px 0 #9c4e28,0 6px 0 #503827,0 9px 12px #33271e44}.wood-button.primary:before,.wood-button.primary:after{background:#8f4e2a;box-shadow:0 1px 0 #e7ad79}.wood-button small{font-family:'Malgun Gothic',sans-serif;font-size:10px;font-weight:800;display:block;line-height:1.5;letter-spacing:0;color:#87643c}.wood-button#ranked{display:block;line-height:1.1}.wood-button#ranked small{margin-top:4px}.help-token{position:absolute;bottom:8.7%;right:3%;width:44px;height:44px;border:3px solid #715136;border-radius:50%;background:#e6cc9d;box-shadow:0 3px 0 #473729;pointer-events:auto;font-family:Jua;font-size:25px}.save-badge{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:2.5%;font-size:10px;font-weight:700;color:#f0d5a5;text-shadow:0 2px 2px #33251e}.save-badge:before{content:'';width:5px;height:5px;background:#bfcc86;display:inline-block;border-radius:50%;margin-right:6px}.ranking-token{position:absolute;bottom:15px;left:2.7%;font-size:11px;font-weight:800;color:#efd4a4;border-bottom:1px solid #d5b77d55;padding:3px 0}.hud{position:absolute;top:26px;left:8.2%;right:15%;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.score-plaque{min-width:155px;color:#fff0d2;background:#795637;border:3px solid #bc9457;border-radius:6px 6px 18px 18px;box-shadow:0 3px 0 #543b28, inset 0 1px 0 #e4bd85;padding:9px 16px}.score-plaque>span{font-size:10px;letter-spacing:.05em;font-weight:800;color:#e9cc9c}.score-plaque strong{display:block;font-family:Jua;font-weight:400;font-size:35px;line-height:1.2}.score-plaque small{font-size:16px;margin-left:3px;font-weight:400}.wind-ribbon{position:absolute;left:50%;transform:translateX(-45%);min-width:175px;display:flex;align-items:center;justify-content:center;gap:12px;background:#f4dfb5;border:2px solid #a38755;border-radius:5px 5px 16px 16px;padding:8px 16px;box-shadow:0 4px 0 #7e643c3d;color:#6e6747}.wind-ribbon>div{display:flex;flex-direction:column;gap:3px}.wind-ribbon div>span{font-size:9px;font-weight:800;letter-spacing:.08em}.wind-ribbon strong{font-family:Jua;font-weight:400;font-size:18px;white-space:nowrap}.wind-icon{font-size:30px;color:#71805a;display:block;transition:transform .5s}.chances{margin-top:3px;text-align:center;color:#7b593e}.chances>span{display:block;font-size:9px;font-weight:800;letter-spacing:.06em}.chances strong{font-size:24px;letter-spacing:3px;white-space:nowrap;color:#ac5b42;display:block;margin-top:5px;text-shadow:0 2px 0 #fff1d1}.chances .spent{color:#a28a6655;text-shadow:none}.power-controls{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);width:min(460px,50vw);text-align:center}.gauge-heading{display:flex;align-items:center;justify-content:space-between;color:#efd2a2;font-size:10px;font-weight:800;margin:0 10px 8px;text-shadow:0 1px 0 #4f3826}.gauge-heading strong{font-family:Jua;font-weight:400;font-size:20px;color:#ffebc9}.power-gauge{display:block;width:100%;padding:8px 9px;background:linear-gradient(#78533a,#573e2c);border:3px solid #ba9257;border-radius:14px;box-shadow:inset 0 2px 0 #a27a4f,0 4px 0 #332a20,0 7px 16px #2e251e66;touch-action:none}.power-track{display:block;position:relative;height:24px;overflow:hidden;background:#392f24;border-radius:6px;box-shadow:inset 0 2px 5px #231b17}.power-track>#power-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#a2b46a,#dbbd61 55%,#dd8050);box-shadow:inset 0 3px 0 #fff2bd66,inset 0 -3px 0 #91794480}.gauge-ticks{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 2px),#382f2677 calc(10% - 2px),#382f2677 10%)}#power-needle{position:absolute;left:0;top:0;height:100%;width:3px;background:#fff3cc;box-shadow:0 0 6px #fff5c4}.power-controls p{font-size:10px;font-weight:700;color:#ddc39a;margin:12px 0 0;text-shadow:0 1px 0 #33271d}.callout{position:absolute;left:50%;top:22%;transform:translateX(-50%) rotate(-2deg);font-family:Jua;font-size:37px;color:#735335;text-shadow:2px 2px 0 #fff3d4,-1px -1px 0 #fff3d4;opacity:0;pointer-events:none;transition:opacity .13s;white-space:nowrap}.callout.visible{opacity:1}.is-menu .play-only,.game-shell:not(.is-menu) .menu-only{display:none}.game-shell:not(.is-menu) .title-screen{display:none}.is-menu .portrait-note{display:none}.toast{position:absolute;bottom:24%;left:50%;transform:translateX(-50%) translateY(8px);background:#544a32ec;color:#fff0cd;padding:12px 20px;border:1px solid #c8ad70;border-radius:9px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.portrait-note{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
dialog{padding:0;border:0;background:none;width:530px;max-width:93vw;max-height:91dvh;overflow:visible;color:#5e4932}dialog::backdrop{background:#2e2a20ad;backdrop-filter:blur(4px)}.dialog-paper{position:relative;padding:34px 31px 26px;background:radial-gradient(ellipse at top,#fff3d7,#ecd5a6);border:7px solid #7b5739;border-radius:20px;box-shadow:inset 0 0 0 2px #cfaa72,0 7px 0 #4d3929,0 22px 65px #211d1888;max-height:88dvh;overflow:auto}.dialog-close{position:absolute;right:11px;top:10px;border:2px solid #98724b;background:#e5c68e;border-radius:9px;width:31px;height:31px;font-size:24px;line-height:1;box-shadow:0 2px 0 #9a744b}.dialog-kicker{font-size:10px;letter-spacing:.12em;color:#9c7b4d;font-weight:800;margin:0 0 8px}.dialog-paper h2{font-family:Jua;font-weight:400;font-size:34px;line-height:1.2;margin:0 0 15px;color:#6c4e30}.dialog-paper p{font-size:12px;line-height:1.85;color:#87724e}.dialog-paper .wood-button{width:100%;min-width:0;min-height:53px;font-size:22px;margin-top:15px;border-width:3px}.dialog-paper .wood-button small{font-size:11px}.dialog-paper .small-action{padding:7px 5px;border-bottom:1px solid #a58c6060;font-size:12px;font-weight:800}.modal-foot{font-size:10px!important;text-align:center;margin:15px 0 0}.modal-foot a{text-decoration:underline;text-underline-offset:3px}.result-content{text-align:center}.result-number{font-family:Jua;font-size:79px;color:#b76436;line-height:1.1;margin:12px 0}.result-number small{font-size:21px;margin-left:7px;color:#80643f}.result-stars{font-size:42px;color:#ca923a;letter-spacing:13px;line-height:1.3;text-shadow:0 2px 0 #fff3cf}.result-portrait{width:64px;height:64px;object-fit:contain;margin:0 auto 10px;display:block}.result-details{border-block:1px dashed #b89a655e;padding:13px 0;display:flex;justify-content:center;gap:25px;font-size:11px;color:#8e784f}.result-details strong{font-family:Jua;font-weight:400;font-size:18px;margin-left:5px}.stage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px 13px;margin:23px 0 12px}.stage-button{border:3px solid #87603c;border-radius:50%;aspect-ratio:1;background:radial-gradient(ellipse at 40% 25%,#f9dd9e,#dbb577);box-shadow:inset 0 2px 0 #fff0c7,0 5px 0 #745136;position:relative;font-family:Jua;font-size:32px;line-height:1;padding:7px 0 11px;transition:transform .12s}.stage-button:hover{transform:translateY(-2px)}.stage-button>small{font-family:sans-serif;display:block;font-size:12px;color:#aa762d;letter-spacing:1px;margin-top:4px}.stage-button.locked{background:#d5c29e;color:#a28a62;box-shadow:0 4px 0 #9c8460;border-color:#b29b75;opacity:.7;cursor:default}.stage-button.current{box-shadow:inset 0 0 0 3px #ffeb9b,0 5px 0 #745136}.stage-note{font-size:11px!important;margin:0!important}.help-step{display:flex;gap:13px;align-items:flex-start;margin:17px 0}.help-step>span{flex:0 0 29px;height:29px;border:2px solid #9b7a49;border-radius:50%;display:grid;place-items:center;font-family:Jua;font-size:19px;background:#e8d29d}.help-step strong{font-family:Jua;font-weight:400;font-size:20px;color:#70633e}.help-step p{font-size:11px;margin:5px 0 0}.help-controls{background:#e1cba268;border:1px dashed #b4955c;padding:12px;font-size:10px;line-height:1.9;border-radius:6px;color:#8c7148}.rank-note{background:#e1cf9d87;padding:12px 14px;border:1px solid #c6aa70;border-radius:7px;font-size:11px;margin-bottom:15px}.ranking-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.ranking-table th{font-size:10px;color:#957a4e;font-weight:800;border-bottom:1px solid #bda270;padding:10px 7px}.ranking-table td{padding:12px 7px;border-bottom:1px solid #c4ab7759}.ranking-table td:first-child{font-family:Jua;font-size:19px;color:#ab6c37}.ranking-table td:last-child{font-family:Jua;font-size:21px;text-align:right;color:#77623e}.ranking-table tr.mine{background:#d8cc9f77}.ranking-table td:nth-child(2){overflow-wrap:anywhere}.empty-rank{text-align:center;padding:20px 0}.settings-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px dashed #b89d6655;padding:14px 0;font-size:12px}.toggle{border:2px solid #a07e4c;border-radius:8px;background:#dfc591;min-width:64px;min-height:33px;font-size:11px;font-weight:800}.new-best{display:inline-block;font-family:Jua;font-size:17px;color:#a76f33;border-bottom:1px solid #c9a760;padding:2px 7px;margin-bottom:5px}
@media(min-width:1700px){.logo{top:16%}.menu-actions{gap:30px}.wood-button{min-width:310px;min-height:78px;font-size:30px}.hud{top:35px}.power-controls{width:520px}.power-track{height:28px}}
@media(max-height:560px) and (orientation:landscape){.game-tools{top:12px}.icon-button{width:34px;height:34px;border-width:2px;border-radius:10px}.game-tools>div{gap:7px}.icon-button svg{width:16px;height:16px}.logo{top:10%;left:59%}.logo h1{font-size:63px}.logo-caption{font-size:9px}.logo p{font-size:17px;margin-top:7px}.menu-actions{bottom:6.5%;gap:13px}.wood-button{min-width:190px;min-height:48px;border-width:3px;font-size:21px;padding:7px 17px}.wood-button small{font-size:9px}.help-token{width:33px;height:33px;font-size:20px;bottom:8%;border-width:2px}.ranking-token,.save-badge{font-size:8px;bottom:6px}.hud{top:14px;left:8%;right:18%}.score-plaque{padding:6px 10px;min-width:115px;border-width:2px}.score-plaque>span{font-size:8px}.score-plaque strong{font-size:26px}.score-plaque small{font-size:12px}.wind-ribbon{min-width:140px;padding:5px 10px;gap:8px}.wind-ribbon strong{font-size:15px}.wind-icon{font-size:22px}.chances strong{font-size:18px}.power-controls{bottom:5%;width:340px}.gauge-heading{margin-bottom:4px}.gauge-heading strong{font-size:15px}.gauge-heading>span{font-size:8px}.power-gauge{padding:5px 7px;border-width:2px;border-radius:10px}.power-track{height:18px}.power-controls p{font-size:8px;margin-top:6px}.callout{font-size:27px;top:21%}.dialog-paper{padding:26px 23px 19px;max-height:88dvh}.result-portrait{display:none}.result-number{font-size:54px;margin:6px 0}.dialog-paper h2{font-size:28px;margin-bottom:10px}.result-stars{font-size:30px}.dialog-paper .wood-button{min-height:43px;font-size:19px;margin-top:10px}.stage-grid{grid-template-columns:repeat(6,1fr);gap:12px}.stage-button{font-size:25px}.stage-button>small{font-size:9px}.result-details{padding:9px 0}}
@media(max-width:700px) and (orientation:portrait){.logo{top:15%;left:50%}.logo h1{font-size:63px}.logo-caption{font-size:10px}.logo p{font-size:20px}.menu-actions{bottom:13%;width:90%;flex-wrap:wrap;gap:14px}.wood-button{min-width:0;flex:1 1 42%;font-size:21px;padding:10px 15px;min-height:61px}.menu-actions #continue{flex:0 1 65%;min-height:51px;font-size:19px}.wood-button small{font-size:9px}.help-token{bottom:5%;right:5%;width:37px;height:37px;font-size:23px}.game-tools{top:max(18px,env(safe-area-inset-top));left:5%;right:5%}.game-tools>div{gap:7px}.icon-button{width:37px;height:37px;border-width:2px;border-radius:12px}.icon-button svg{width:16px;height:16px}.hud{top:92px;left:5%;right:5%;flex-wrap:wrap}.score-plaque{min-width:130px;padding:8px 12px}.score-plaque strong{font-size:30px}.score-plaque small{font-size:13px}.score-plaque>span{font-size:9px}.chances{margin-top:7px}.chances strong{font-size:20px;letter-spacing:2px}.wind-ribbon{top:105px;left:50%;transform:translateX(-50%);min-width:145px;padding:6px 12px;gap:10px}.wind-ribbon strong{font-size:16px}.wind-icon{font-size:24px}.power-controls{bottom:15%;width:86%}.power-controls p{font-size:10px;line-height:1.6;max-width:290px;margin:14px auto 0}.gauge-heading strong{font-size:19px}.power-track{height:29px}.callout{top:32%;font-size:27px}.save-badge{bottom:15px;right:5%;font-size:9px}.ranking-token{left:5%;bottom:18px;font-size:10px}.portrait-note{display:block;position:absolute;left:50%;transform:translateX(-50%);bottom:7%;color:#ceb68c;font-size:10px;white-space:nowrap}.dialog-paper{padding:32px 21px 23px;border-width:6px;border-radius:17px}.dialog-paper h2{font-size:29px}.stage-grid{gap:15px 10px}.stage-button{font-size:28px}.stage-button small{font-size:10px}.dialog-paper .wood-button{font-size:21px}.result-number{font-size:67px}.result-stars{font-size:35px}.result-details{gap:17px}.dialog-paper p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.stage-lock{width:22px;height:24px;display:block;margin:2px auto;fill:none;stroke:#a58b60;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.practice-title{position:absolute;top:25px;left:8.2%;width:280px;padding:12px 16px;color:#715137;background:#f5dfb7f5;border:2px solid #ae8a54;border-radius:7px 7px 14px 14px;box-shadow:inset 0 2px 0 #fff0d5,0 4px 0 #7753354d;pointer-events:none;text-shadow:0 1px 0 #fff0cd9c}
.practice-title h1{font:400 27px/1.1 Jua;margin:0 0 7px;letter-spacing:-.03em}
.practice-title p{font:400 16px/1.4 Jua;margin:0;color:#777147}
.practice-title>span{display:block;margin-top:5px;font-size:10px;color:#987b4f;font-weight:700}
.practice-actions{position:absolute;right:3.5%;bottom:5.5%;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:225px;pointer-events:auto}
.practice-actions .wood-button{grid-column:1/-1;min-width:0;min-height:53px;padding:8px 12px;width:100%;font-size:24px}
.practice-ranked,.practice-continue{min-height:36px;border:2px solid #8b6540;border-radius:9px;background:linear-gradient(#ecd1a0,#d9b27a);box-shadow:inset 0 1px 0 #fff0d0,0 3px 0 #62452e;text-align:center;font:400 17px/1.15 Jua;padding:5px 8px}
.practice-ranked{grid-column:1/-1}
.practice-ranked small{display:inline-block;margin-left:7px;font:700 9px/1.2 'Malgun Gothic',sans-serif;color:#8a6b44}
.practice-continue{font-size:14px;color:#735538}
.practice-actions:has(.practice-continue:not([hidden])) .practice-ranked{grid-column:auto;font-size:16px}
.practice-actions:has(.practice-continue:not([hidden])) .practice-ranked small{display:block;margin:2px 0 0}
.stage-select{position:absolute;left:135px;bottom:15px;font-size:11px;font-weight:800;color:#efd4a4;padding:3px 0;border-bottom:1px solid #d5b77d55;pointer-events:auto}
.is-menu .help-token{top:max(22px,env(safe-area-inset-top));right:calc(2.5% + 218px);bottom:auto;border-radius:14px}
.is-menu .power-controls{width:min(440px,43vw)}
@media(max-height:560px) and (orientation:landscape){
  .practice-title{top:14px;width:235px;padding:9px 12px}.practice-title h1{font-size:24px;margin-bottom:3px}.practice-title p{font-size:12px}.practice-title>span{font-size:9px;margin-top:3px}
  .practice-actions{right:3%;bottom:4.5%;width:180px;gap:5px}.practice-actions .wood-button{min-height:40px;font-size:20px;padding:5px 12px}.practice-ranked,.practice-continue{min-height:27px;padding:3px 5px;font-size:14px}.practice-continue{font-size:12px}.practice-ranked small{font-size:8px}.practice-actions:has(.practice-continue:not([hidden])) .practice-ranked{font-size:13px}.practice-actions:has(.practice-continue:not([hidden])) .practice-ranked small{display:none}
  .is-menu .power-controls{width:310px}.is-menu .help-token{top:12px;right:calc(2.5% + 163px);border-radius:10px}.stage-select{bottom:6px;left:110px;font-size:8px}
}
@media(max-width:700px) and (orientation:portrait){
  .practice-title{top:94px;left:5%;width:280px;padding:11px 15px}.practice-title h1{font-size:27px}.practice-title p{font-size:14px}.practice-title>span{font-size:10px}
  .practice-actions{left:5%;right:5%;bottom:7%;width:auto;grid-template-columns:1.25fr 1fr;gap:12px}.practice-actions .wood-button{grid-column:auto;min-height:56px;font-size:24px}.practice-ranked{grid-column:auto!important;min-height:56px;font-size:18px}.practice-ranked small{display:block;margin:4px 0 0}.practice-continue{grid-column:1/-1;min-height:28px;font-size:14px}
  .is-menu .power-controls{width:86%;bottom:22%}.is-menu .help-token{top:max(18px,env(safe-area-inset-top));right:calc(5% + 177px);width:37px;height:37px;border-radius:12px}.stage-select{left:130px;bottom:18px;font-size:10px}.is-menu .portrait-note{display:block;bottom:17%}
}
@media(min-width:701px) and (max-width:1000px) and (orientation:portrait){
  .practice-title{width:210px;padding:12px}.practice-title h1{font-size:23px}.practice-title p{font-size:13px}.practice-title>span{font-size:9px}
  .wind-ribbon{min-width:150px;padding:8px 10px}.is-menu .wind-ribbon{left:60%}.mission-status{position:absolute;right:0;top:80px}
  .is-menu .power-controls{left:26%;width:43%}
}

.growth-button{font:400 14px/1.05 Jua}.gauge-heading{justify-content:center}.skill-wallet{display:flex;align-items:center;gap:10px;padding:12px 15px;border:2px solid #c49a5c;border-radius:12px;background:#e4c898;margin:10px 0 8px;font:400 19px Jua;color:#6e4b2e}.skill-wallet strong{margin-left:auto;font-size:30px;font-weight:400}.skill-wallet small{font-size:15px;margin-left:4px}.button-coin{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:3px double #8f713d;background:#d5ae62;font-size:22px;color:#7a5b2f}.skill-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid #bc985655}.skill-row>div{flex:1;min-width:0}.skill-row h3{font:400 23px Jua;margin:0;color:#67472d}.skill-row h3 small{font:400 12px Jua;margin-left:5px;color:#a17c45}.skill-row p{font-size:11px;line-height:1.4;margin:4px 0 7px}.skill-effect{display:block;font:400 17px Jua;color:#687043}.skill-next{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:#987340}.skill-next.complete{color:#69804e}.skill-upgrade{width:86px;min-height:60px;border:3px solid #8c633c;border-radius:12px;background:linear-gradient(#c68144,#ae6135);box-shadow:inset 0 2px 0 #e8ab71,0 3px 0 #69472c;color:#fff0cd;font:400 20px Jua;padding:8px 4px}.skill-upgrade small{display:block;font:400 13px Jua;margin-top:5px}.skill-upgrade:disabled{cursor:default;opacity:.55;filter:saturate(.5)}.skill-note{font-size:11px!important;line-height:1.65!important;margin:16px 0 0}.skill-list+.skill-note+.modal-foot{font-size:9px;margin-top:8px}
@media(max-height:560px){.skill-wallet{padding:6px 12px;margin:6px 0}.skill-wallet strong{font-size:25px}.skill-row{padding:9px 0}.skill-row h3{font-size:20px}.skill-row p{margin:2px 0 4px;font-size:10px}.skill-upgrade{min-height:52px}.skill-note{margin-top:10px}.skill-effect{font-size:15px}}

.dialog-paper:has(.skill-list){padding:22px 27px 16px}.skill-wallet{padding:9px 13px}.skill-row{padding:8px 0}.skill-note{font-size:10px!important;line-height:1.5!important;margin-top:12px}.dialog-paper::-webkit-scrollbar{width:7px}.dialog-paper::-webkit-scrollbar-thumb{background:#a17a45;border:2px solid #ecd5a6;border-radius:8px}.dialog-paper::-webkit-scrollbar-track{background:#ecd5a6}.dialog-paper::-webkit-scrollbar-button{display:none}

.growth-button{font-size:17px;line-height:1}@media(min-width:701px){.game-shell:not(.is-menu) .chances{margin-right:130px}}@media(min-width:701px) and (max-width:1000px) and (orientation:portrait){.is-menu .wind-ribbon{top:72px}}

.growth-button{font-size:15px;padding:0;white-space:nowrap}@media(max-height:560px){.growth-button{font-size:14px}}

:root{--game-font:Jua,'Malgun Gothic',sans-serif}
.game-shell,dialog{font-family:var(--game-font)}
.game-shell button,.game-shell h1,.game-shell strong,.game-shell .callout,.dialog-paper h2,.dialog-paper h3,.dialog-paper strong,.dialog-paper button,.dialog-paper .result-number,.dialog-paper .skill-wallet,.dialog-paper .skill-effect,.dialog-paper .skill-row h3 small,.dialog-paper .skill-upgrade small,.dialog-paper .help-step>span{font-family:var(--game-font)}
.practice-title p{font-family:var(--game-font)}
.language-select{max-width:180px;min-height:37px;padding:5px 27px 5px 11px;border:2px solid #a07e4c;border-radius:8px;background:#e6ce9d;color:#6c4c30;font:400 15px var(--game-font)}
.language-select:focus-visible{outline:3px solid #9b703d;outline-offset:3px}
.is-demo .practice-title p{color:#8e613b}
html:not([lang=ko]) .practice-title{width:310px}
html:not([lang=ko]) .practice-title p{font-size:14px}
html:not([lang=ko]) .control-hint{line-height:1.5}
html[lang=en] .practice-title h1{font-size:29px;letter-spacing:-.02em}
html[lang=en] .practice-title p{font-size:13px}
html[lang=en] .skill-row h3{font-size:20px}
html[lang=en] .skill-upgrade{font-size:17px;width:92px}
html[lang=en] .skill-upgrade small{font-size:11px}
html[lang=en] .growth-button{font-size:14px}

html[lang=en] .dialog-kicker{letter-spacing:.04em}
html[lang=en] .stage-mission{font-size:10px}
html[lang=en] .chances>span{font-size:8px}
@media(max-height:560px) and (orientation:landscape){html:not([lang=ko]) .practice-title{width:265px}html[lang=en] .practice-title h1{font-size:25px}html[lang=en] .practice-title p{font-size:11px}}
@media(max-width:700px) and (orientation:portrait){html:not([lang=ko]) .practice-title{width:min(310px,90%)}.power-controls p{max-width:95%}}

.goal-progress{height:12px;overflow:hidden;border:2px solid #cba365;border-radius:6px;background:#3d2e21;box-shadow:inset 0 2px 2px #221b1680;margin:6px 0 8px}
.goal-progress[hidden],.mission-timer[hidden]{display:none!important}
.goal-progress>span{display:block;height:100%;width:0;background:linear-gradient(#e3d28a,#b2b773);border-radius:3px;box-shadow:inset 0 2px 0 #fff3bf66;transition:width .18s ease-out}
.is-campaign .hud{right:8.2%}
.is-campaign .score-plaque{width:280px;max-width:29vw;padding:10px 15px 12px;border-radius:7px 7px 15px 15px}
.is-campaign .score-plaque>strong{font-size:37px;line-height:1.1;margin-top:4px}
.is-campaign .score-plaque>strong>small{font-size:18px}
.is-campaign .mission-status{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0;background:none;border:0;box-shadow:none;color:#e8d1a7;font-size:10px;white-space:nowrap}
.is-campaign .stock-readout{font-size:9px;color:#d5b98b}
.is-campaign .stock-readout b{font-weight:400;font-size:14px;color:#ffebc0;margin-left:3px}
.mission-timer{position:absolute;left:50%;top:-6px;transform:translateX(-50%);min-width:174px;padding:9px 18px 11px;border:3px solid #9c7447;border-radius:8px 8px 24px 24px;background:linear-gradient(#fff0c8,#ecd3a0);box-shadow:inset 0 2px 0 #fff6de,0 5px 0 #79563466;text-align:center;color:#705133;pointer-events:none}
.mission-timer>span{display:block;font-size:11px;font-weight:700;letter-spacing:.05em}
.mission-timer>strong{display:block;font:400 48px/1.1 var(--game-font);font-variant-numeric:tabular-nums;margin-top:2px}
.mission-timer.urgent{border-color:#a74d34;background:linear-gradient(#fff0cf,#edbc8f)}
.mission-timer.urgent>strong{color:#c12f27;text-shadow:0 2px 0 #ffe3b8;animation:countdown-pulse .8s ease-in-out infinite;transform-origin:50% 55%}
@keyframes countdown-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.17)}}
.is-paused .mission-timer>strong{animation-play-state:paused}
.reduced-motion .mission-timer>strong{animation:none}
.is-campaign .wind-ribbon{left:calc(50% + 190px);min-width:135px;padding:8px 12px;transform:translateX(-50%)}
.grade-legend{margin:7px 0 0!important;font-size:12px!important;color:#98703b!important;letter-spacing:.07em}
.stage-button{position:relative}
.stage-grade{position:absolute;right:-6px;top:-8px;min-width:29px;padding:5px 4px;border:2px solid #9e783f;border-radius:8px;background:#e5cc8b;color:#68462d;font:400 17px var(--game-font);transform:rotate(8deg);box-shadow:0 2px 0 #85603d}
.stage-grade[data-grade="S+"]{background:#f2da85;border-color:#af822e;color:#95601b}
.stage-rating-rule{display:block;font:400 9px/1.5 var(--game-font);margin:5px 4px 0;color:#946b3c;white-space:normal;min-height:27px}
.stage-button:has(.stage-mission){min-height:153px}
.result-grade{display:inline-grid;grid-template-columns:auto auto;column-gap:15px;align-items:center;margin:0 auto 6px;padding:8px 20px;border:2px solid #b28a49;border-radius:15px;background:#dfc58a66;transform:rotate(-2deg)}
.result-grade>span{grid-column:1/-1;font-size:10px;color:#927143;text-align:left}
.result-grade>strong{font:400 62px/.95 var(--game-font);color:#98612a;text-shadow:0 2px 0 #fff2bd}
.result-grade[data-grade="S+"]{background:#ead18d88;border-color:#b48a38}
.result-grade .result-stars{font-size:25px;letter-spacing:3px;color:#bc8532}
.result-grade~.result-number{font-size:52px;margin:5px 0 9px}
.result-menu{display:block;margin:13px auto 0}
.dialog-paper:has(.result-grade) .result-portrait{display:none}
.result-rating-note{font-size:10px!important;line-height:1.5!important;margin:0 0 8px!important}
@media(max-height:560px) and (orientation:landscape){.mission-timer{top:-4px;min-width:136px;padding:6px 13px 8px;border-width:2px;border-radius:7px 7px 18px 18px}.mission-timer>span{font-size:9px}.mission-timer>strong{font-size:36px}.is-campaign .score-plaque{width:220px;max-width:30vw;padding:7px 10px}.is-campaign .score-plaque>strong{font-size:28px}.is-campaign .score-plaque>strong>small{font-size:13px}.goal-progress{height:9px;margin:5px 0}.is-campaign .mission-status{font-size:8px;gap:5px}.is-campaign .stock-readout{font-size:8px}.is-campaign .stock-readout b{font-size:11px}.is-campaign .wind-ribbon{left:calc(50% + 147px);min-width:112px;padding:5px 9px}.stage-button:has(.stage-mission){min-height:128px}.stage-rating-rule{font-size:8px}.result-grade>strong{font-size:48px}.result-grade{padding:6px 15px}.result-grade~.result-number{font-size:42px}.result-grade .result-stars{font-size:21px}}
@media(max-width:700px) and (orientation:portrait){.is-campaign .hud{top:92px;left:5%;right:5%}.is-campaign .score-plaque{width:51%;max-width:none;padding:10px 12px}.is-campaign .score-plaque>strong{font-size:31px}.is-campaign .score-plaque>strong>small{font-size:13px}.is-campaign .mission-status{font-size:8px;gap:4px}.is-campaign .stock-readout{font-size:8px}.is-campaign .stock-readout b{font-size:11px}.is-campaign .mission-timer{left:77%;top:0;min-width:0;width:43%;padding:9px 10px}.mission-timer>strong{font-size:39px}.mission-timer>span{font-size:10px}.is-campaign .wind-ribbon{left:77%;top:102px;min-width:0;width:43%;padding:6px 9px}.stage-button:has(.stage-mission){min-height:157px}.stage-rating-rule{font-size:8px}}
html[lang=en] .is-campaign .mission-status{font-size:9px;gap:5px}
html[lang=en] .is-campaign .stock-readout{font-size:8px}
@media(prefers-reduced-motion:reduce){.mission-timer>strong{animation:none!important}}

.stage-mission>span{display:block;white-space:nowrap;font-size:11px;line-height:1.6}
@media(max-height:560px){.stage-mission>span{font-size:10px}}
@media(max-width:700px) and (orientation:portrait){.is-campaign .mission-timer{left:50%;top:0;width:45%}.is-campaign .score-plaque{margin-top:108px;width:62%}.is-campaign .wind-ribbon{left:83%;top:117px;width:31%}.is-campaign .wind-ribbon strong{font-size:14px}.is-campaign .wind-ribbon .wind-icon{font-size:19px}.is-campaign .mission-status{font-size:8px;gap:3px}}

@font-face{font-family:ShopJapaneseFallback;src:url('./assets/RoundedMplus-ja-v10.woff?v=10.2') format('woff');font-display:swap}

/* Illustrated menu props share the same generated atlas and physical button skin. */
.art-icon{display:block;flex:none;width:100%;height:100%;background-image:url('./assets/ui-icons-v10.webp');background-size:300% 300%;background-repeat:no-repeat;pointer-events:none}
.art-upgrade{background-position:0 0}.art-map{background-position:50% 0}.art-ranking{background-position:100% 0}.art-back{background-position:0 50%}.art-settings{background-position:50% 50%}.art-sound{background-position:100% 50%}.art-fullscreen{background-position:0 100%}.art-pause{background-position:50% 100%}.art-auto{background-position:100% 100%}
.game-tools .icon-button{width:60px;height:60px;border:0;padding:0;background:none;box-shadow:none;border-radius:50%;filter:drop-shadow(0 4px 2px #4a2d2577);position:relative}
.game-tools .icon-button:hover{transform:translateY(-3px);filter:drop-shadow(0 6px 3px #4a2d2577) brightness(1.08)}
.game-tools .icon-button:active{transform:translateY(1px)}
.icon-button.muted:after{content:'';position:absolute;width:36px;height:4px;border:1px solid #f8dca5;border-radius:3px;background:#a13e2c;top:28px;left:12px;transform:rotate(-44deg)}
.game-shell.is-menu .practice-title{left:9%;top:28px;width:390px;padding:17px 18px;border-width:3px;border-radius:13px 13px 20px 20px}
.game-shell.is-menu .practice-title h1{font-size:49px;line-height:1.05;margin-bottom:9px;letter-spacing:-.04em}
.game-shell.is-menu .practice-title p{font-size:19px;line-height:1.35}
.game-shell.is-menu .practice-title>span{font-size:16px;line-height:1.3;margin-top:8px}
.game-shell .wind-ribbon div>span{font-size:14px;letter-spacing:0}.game-shell .wind-ribbon strong{font-size:23px}.wind-ribbon{min-width:175px}
.game-shell .practice-actions{width:330px;right:3.5%;bottom:4%;gap:10px}
.game-shell .practice-actions .wood-button.primary{grid-column:1/-1;min-height:110px;font-size:41px;padding:15px 20px 9px}
#campaign>span{position:relative;top:3px}
.wood-button.primary,.growth-action{border:0!important;background:transparent url('./assets/ui-start-v10.webp') center/100% 100% no-repeat!important;box-shadow:none!important;filter:drop-shadow(0 5px 2px #40271988);color:#fff1cf;text-shadow:0 3px 0 #83411b}
.wood-button.primary:hover{filter:drop-shadow(0 7px 3px #40271988) brightness(1.08);transform:translateY(-3px)}
.wood-button.primary:active{transform:translateY(2px);filter:drop-shadow(0 2px 1px #40271988)}
.growth-action{grid-column:1/-1;position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 94px;align-items:center;gap:6px;min-width:0;width:100%;max-width:100%;min-height:83px;padding:11px 32px 4px 12px;text-align:left;cursor:pointer;font-family:var(--game-font)}
.growth-action>.art-icon{width:64px;height:64px}.growth-copy{display:block;flex:1;min-width:0}.growth-copy strong{display:block;font-size:26px;font-weight:400;line-height:1.1}
.growth-wallet{--wallet-number-size:22px;--wallet-icon-size:32px;display:flex;align-items:center;justify-content:flex-end;gap:3px;width:94px;min-width:0;margin:0}.growth-wallet img{flex:0 0 var(--wallet-icon-size);width:var(--wallet-icon-size);height:var(--wallet-icon-size);object-fit:contain}.growth-wallet b{display:block;flex:0 1 auto;min-width:0;max-width:calc(100% - var(--wallet-icon-size) - 3px);white-space:nowrap;text-align:right;font-weight:400;font-size:var(--wallet-number-size);font-variant-numeric:tabular-nums;line-height:1.1}
.growth-action.upgrade-ready{animation:upgrade-glow 1.6s ease-in-out infinite}.growth-action.upgrade-ready:after{content:'✦';position:absolute;right:8px;top:-8px;font-size:31px;color:#fff3ad;text-shadow:0 0 12px #ffe6a6;animation:upgrade-sparkle 1.1s ease-in-out infinite}
@keyframes upgrade-glow{0%,100%{filter:drop-shadow(0 5px 2px #40271988) drop-shadow(0 0 4px #ffde6b66)}50%{filter:drop-shadow(0 5px 2px #40271988) drop-shadow(0 0 12px #ffdd73cc) brightness(1.14)}}
@keyframes upgrade-sparkle{0%,100%{transform:scale(.75) rotate(-14deg);opacity:.55}50%{transform:scale(1.2) rotate(12deg);opacity:1}}
.game-tools .upgrade-ready{filter:drop-shadow(0 0 8px #ffe48a)}
.game-shell .practice-actions .practice-ranked{grid-column:1/-1!important;display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;border:3px solid #a17845;border-radius:15px;background:linear-gradient(#f4e0b5,#d7b57b);font-size:24px;box-shadow:inset 0 2px 0 #fff0ce,0 4px 0 #6c4b2d}
.game-shell .practice-actions .practice-ranked small{display:inline-block!important;font:400 16px/1.2 var(--game-font)!important;margin:0!important;color:#84603c}
.practice-continue{grid-column:1/-1;font-size:21px;min-height:43px}
.game-shell .game-token{position:absolute;top:auto;bottom:10px;width:78px;height:92px;padding:0;border:0;box-shadow:none;background:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;text-align:center;pointer-events:auto;filter:drop-shadow(0 3px 1px #38271988)}
.game-token>.art-icon{width:66px;height:66px}.game-token .token-label{font:400 17px/1.1 var(--game-font);color:#ffebc4;text-shadow:0 2px 0 #412a1b;white-space:nowrap}.game-token:hover{transform:translateY(-3px)}
.game-shell #auto{left:2.5%}.game-shell #stages{left:calc(2.5% + 87px)}.game-shell #ranking{left:calc(2.5% + 174px)}
.auto-button kbd{position:absolute;left:0;top:4px;display:grid;place-items:center;width:25px;height:26px;border:2px solid #9e7139;border-radius:7px;background:#fff0bb;color:#76502c;font:400 18px var(--game-font);box-shadow:0 2px 0 #785335}
.auto-button.active>.art-icon{filter:drop-shadow(0 0 8px #ffe38b) brightness(1.13)}.auto-button.active .token-label{color:#fff4a9}
.game-shell.is-menu .help-token{width:58px;height:58px;top:24px;right:calc(2.5% + 222px);bottom:auto;font-size:31px;border:3px solid #a17a44;border-radius:50%;background:#f2d9a3 url('./assets/ui-start-v10.webp') center/310% 125%;color:#fff0c7;box-shadow:0 4px 0 #6c4a2f;text-shadow:0 2px 0 #7c4d25}
.game-shell .power-controls,.game-shell.is-menu .power-controls{bottom:13%;width:min(460px,40vw)}
.game-shell .gauge-heading strong{font-size:28px}.power-controls p{font-size:15px;line-height:1.4}.power-track{height:27px}
.hat-picker{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);display:flex;justify-content:center;gap:7px;z-index:3}
.hat-picker button{position:relative;width:59px;height:62px;border:2px solid #bb925e;border-radius:12px;background:linear-gradient(#f2d9a8,#d9b77b);box-shadow:0 3px 0 #6c4a2f;padding:3px 4px 18px;transition:transform .1s,filter .1s}
.hat-picker img{width:100%;height:38px;object-fit:contain;pointer-events:none}.hat-count{position:absolute;bottom:1px;left:0;right:0;text-align:center;font:400 17px/1 var(--game-font);color:#725031}
.hat-picker button.selected{border-color:#fff0b2;box-shadow:inset 0 0 0 2px #c78b36,0 0 10px #ffe2a877,0 3px 0 #6c4a2f;transform:translateY(-4px)}.hat-picker button:disabled{filter:saturate(.35);opacity:.45;cursor:default}
.served-tally{display:block!important;font:400 17px/1.2 var(--game-font)!important;margin:5px 0 0;color:#eddbb7!important;letter-spacing:0!important}
.is-campaign .score-plaque{width:320px;max-width:31vw;padding:12px 18px 14px}.score-plaque>span#mode-label{font-size:15px;letter-spacing:0}.is-campaign .score-plaque>strong{font-size:43px}
.star-progress-wrapper{position:relative;margin:34px 0 31px;height:13px}.star-progress-wrapper[hidden]{display:none!important}.goal-progress{height:13px;margin:0}.goal-progress>span{background:linear-gradient(#ffe29a,#cfa34c)}
#star-thresholds{position:absolute;inset:0;pointer-events:none}#star-thresholds>span{position:absolute;top:-25px;transform:translateX(-50%);color:#bb9b65;text-align:center;white-space:nowrap}#star-thresholds b{display:block;font:400 16px/1.2 var(--game-font);text-shadow:0 1px 0 #402d20}#star-thresholds small{position:absolute;left:50%;top:42px;transform:translateX(-50%);font:400 13px/1 var(--game-font);color:#ebd5ad}#star-thresholds>span:after{content:'';position:absolute;top:24px;left:50%;height:13px;border-left:2px solid #f7e4af77}#star-thresholds .earned b{color:#ffe19a;filter:drop-shadow(0 0 4px #ffdf9b)}
.is-campaign .mission-status{font-size:13px;gap:8px}.is-campaign .stock-readout{font-size:12px}.is-campaign .stock-readout b{font-size:17px}#goal-label{white-space:normal;line-height:1.35}
.mission-timer>span{font-size:16px}.mission-timer>strong{font-size:52px}
.save-badge{font-size:14px;bottom:9px}.toast{font-size:18px;line-height:1.4;max-width:80%;bottom:29%}
dialog{width:600px}.dialog-paper h2{font-size:37px;padding-right:45px}.dialog-paper p,.dialog-paper .modal-foot{font-size:16px!important;line-height:1.6}.dialog-kicker{font-size:15px!important;letter-spacing:0}
.dialog-close{width:49px;height:49px;border:0;background:none;box-shadow:none;right:9px;top:10px;padding:0}.dialog-paper .settings-row{font-size:19px;gap:15px;padding:18px 0}.settings-row .toggle{min-height:45px;min-width:91px;font-size:18px}.language-select{font-size:19px;min-height:47px;max-width:225px}
.dialog-paper .wood-button{min-height:65px;font-size:27px}.dialog-paper .wood-button.primary{min-height:83px;padding:16px 20px 8px}.dialog-paper .small-action{font-size:17px}.help-step strong{font-size:25px}.help-step p{font-size:16px!important}.help-controls{font-size:16px;line-height:1.75}.help-step>span{width:35px;height:35px;flex-basis:35px;font-size:23px}
.ranking-table{font-size:19px}.ranking-table th{font-size:16px}.ranking-table td{padding:15px 8px}.ranking-table td:first-child{font-size:25px}.ranking-table td:last-child{font-size:29px}.rank-note{font-size:17px}
dialog:has(.skill-list){width:660px}.dialog-paper:has(.skill-list){padding:30px 30px 23px}.skill-wallet{font-size:24px;padding:11px 15px}.skill-wallet strong{font-size:35px}.skill-wallet small{font-size:19px}.button-coin{width:45px;height:45px;object-fit:contain;border:0;border-radius:0;background:none;padding:0}.skill-row{gap:18px;padding:14px 0}.skill-row h3{font-size:29px}.skill-row h3 small{font-size:17px}.dialog-paper .skill-row p{font-size:16px!important;margin:6px 0}.skill-effect{font-size:23px}.skill-next{font-size:17px}.skill-upgrade{width:110px;min-height:85px;font-size:27px}.skill-upgrade small{font-size:17px}.dialog-paper .skill-note{font-size:16px!important}.dialog-paper .modal-foot{font-size:14px!important}
dialog:has(.stage-grid){width:740px}.stage-note{font-size:18px!important}.stage-grid{gap:18px 15px}.stage-button:has(.stage-mission){min-height:192px;font-size:36px}.stage-button>small{font-size:18px}.stage-mission>span{font-size:15px;line-height:1.5}.stage-star-targets{display:block;margin-top:8px;color:#8c6336}.stage-star-targets>span{display:block;font:400 15px/1.5 var(--game-font);white-space:nowrap}.stage-button.locked{opacity:.72}.stage-lock{width:27px;height:31px}
.result-grade{display:block;padding:12px 25px;transform:rotate(-2deg)}.result-grade>strong{display:block;font-size:58px;letter-spacing:6px;line-height:1.2}.result-grade>strong i{font-style:normal;color:#b69b69}.result-grade>span{font-size:17px;text-align:center;display:block}.result-grade~.result-number{font-size:57px}.result-details{font-size:16px;gap:18px}.result-details strong{font-size:23px}.result-served{margin:0 0 12px!important}.dialog-paper .result-rating-note{font-size:15px!important}
html[lang=en] .skill-row h3{font-size:25px}html[lang=en] .skill-upgrade{font-size:22px;width:112px}html[lang=en] .skill-upgrade small{font-size:15px}html[lang=en] .is-campaign .mission-status{font-size:12px}html[lang=en] .is-campaign .stock-readout{font-size:11px}
@media(max-height:560px) and (orientation:landscape){
 .game-tools .icon-button{width:44px;height:44px}.game-tools>div{gap:9px}.game-shell.is-menu .help-token{width:42px;height:42px;top:13px;right:calc(2.5% + 160px);font-size:25px}.game-shell.is-menu .practice-title{left:9%;top:13px;width:285px;padding:9px 13px}.game-shell.is-menu .practice-title h1{font-size:35px;margin-bottom:5px}.game-shell.is-menu .practice-title p{font-size:15px}.game-shell.is-menu .practice-title>span{font-size:13px;margin-top:4px}.game-shell .wind-ribbon div>span{font-size:12px}.game-shell .wind-ribbon strong{font-size:18px}
 .game-shell .practice-actions{width:233px;bottom:4%;gap:5px}.game-shell .practice-actions .wood-button.primary{min-height:77px;font-size:30px}.growth-action{grid-template-columns:36px minmax(0,1fr) 74px;min-height:64px;padding:9px 20px 3px 9px;gap:3px}.growth-action>.art-icon{width:36px;height:36px}.growth-copy strong{font-size:20px}.growth-wallet{--wallet-number-size:18px;--wallet-icon-size:25px;width:74px}.game-shell .practice-actions .practice-ranked{min-height:42px;font-size:19px}.game-shell .practice-actions .practice-ranked small{font-size:13px!important}.practice-continue{min-height:32px;font-size:17px}
 .game-shell .game-token{width:53px;height:59px;bottom:3px;gap:0}.game-token>.art-icon{width:42px;height:42px}.game-token .token-label{font-size:14px}.game-shell #stages{left:calc(2.5% + 59px)}.game-shell #ranking{left:calc(2.5% + 118px)}.auto-button kbd{font-size:14px;width:19px;height:20px;top:1px;left:-3px}
 .game-shell .power-controls,.game-shell.is-menu .power-controls{bottom:17%;width:300px}.game-shell .gauge-heading strong{font-size:21px}.power-track{height:20px}.power-controls p{font-size:12px;margin-top:7px}.hat-picker{bottom:5px;gap:4px}.hat-picker button{width:43px;height:44px;padding:1px 2px 13px;border-radius:9px}.hat-picker img{height:26px}.hat-count{font-size:13px}.save-badge{font-size:12px;bottom:4px}.is-campaign .score-plaque{width:245px;max-width:31vw;padding:8px 12px}.is-campaign .score-plaque>strong{font-size:31px}.served-tally{font-size:13px!important}.score-plaque>span#mode-label{font-size:12px}.star-progress-wrapper{margin-top:28px;margin-bottom:24px;height:10px}.goal-progress{height:10px}#star-thresholds b{font-size:13px}#star-thresholds small{font-size:11px;top:37px}#star-thresholds>span{top:-22px}#star-thresholds>span:after{top:22px;height:10px}.is-campaign .mission-status{font-size:10px}.is-campaign .stock-readout{font-size:9px}.is-campaign .stock-readout b{font-size:13px}.mission-timer>span{font-size:12px}.mission-timer>strong{font-size:37px}.toast{font-size:15px}.dialog-paper h2{font-size:30px}.dialog-paper p,.help-controls{font-size:14px!important}.stage-button:has(.stage-mission){min-height:165px}.stage-star-targets>span,.stage-mission>span{font-size:13px}
}
@media(max-width:700px) and (orientation:portrait){
 .game-tools .icon-button{width:43px;height:43px}.game-tools>div{gap:7px}.game-shell.is-menu .help-token{width:42px;height:42px;right:calc(5% + 151px);top:19px;font-size:26px}.game-shell.is-menu .practice-title{top:86px;left:5%;width:90%;padding:12px 16px}.game-shell.is-menu .practice-title h1{font-size:40px}.game-shell.is-menu .practice-title p{font-size:17px}.game-shell.is-menu .practice-title>span{font-size:15px}.is-menu .hud{top:230px}.is-menu .wind-ribbon{top:0;left:50%;min-width:145px;padding:7px 12px}.game-shell .practice-actions{width:42%;right:5%;left:auto;bottom:14%;gap:7px;display:flex;flex-direction:column}.game-shell .practice-actions .wood-button.primary{min-height:71px;font-size:28px;flex:none}.growth-action{grid-template-columns:36px minmax(0,1fr);min-height:59px;width:100%;padding:7px 9px 3px;gap:4px}.growth-action>.art-icon{width:36px;height:36px}.growth-copy strong{font-size:18px}.growth-wallet{display:none}.game-shell .practice-actions .practice-ranked{width:100%;min-height:44px;font-size:18px}.game-shell .practice-actions .practice-ranked small{display:none!important}.practice-continue{width:100%;min-height:34px;font-size:16px}
 .game-shell .game-token{bottom:12px;width:60px;height:72px}.game-token>.art-icon{width:50px;height:50px}.game-token .token-label{font-size:15px}.game-shell #auto{left:4%}.game-shell #stages{left:calc(4% + 66px)}.game-shell #ranking{left:calc(4% + 132px)}.game-shell .power-controls,.game-shell.is-menu .power-controls{bottom:25%;width:86%;left:50%}.game-shell.is-menu .power-controls{bottom:38%;left:26%;width:43%}.game-shell .gauge-heading strong{font-size:18px}.power-controls p{font-size:13px;line-height:1.4}.game-shell.is-menu .power-controls p{display:none}.hat-picker{bottom:94px;width:92%;gap:4px}.hat-picker button{width:50px;height:52px}.hat-picker img{height:30px}.hat-count{font-size:15px}.is-menu .portrait-note{bottom:9%;font-size:13px}.save-badge{font-size:12px;bottom:15px;right:4%;max-width:32%;text-align:right}.is-campaign .score-plaque{margin-top:111px;width:65%;max-width:none;padding:9px 14px}.is-campaign .score-plaque>strong{font-size:33px}.served-tally{font-size:14px!important}.score-plaque>span#mode-label{font-size:13px}.star-progress-wrapper{margin-top:28px;margin-bottom:25px}#star-thresholds b{font-size:13px}#star-thresholds small{font-size:11px;top:40px}.is-campaign .mission-status{font-size:11px}.is-campaign .stock-readout{font-size:10px}.is-campaign .stock-readout b{font-size:13px}.is-campaign .wind-ribbon{left:84%;width:29%}.game-shell .wind-ribbon strong{font-size:19px}.game-shell .wind-ribbon div>span{font-size:13px}.dialog-paper h2{font-size:31px}.dialog-paper .wood-button{font-size:24px}.dialog-paper .settings-row{font-size:17px}.language-select{font-size:17px;max-width:170px}.skill-row{gap:10px}.skill-row h3{font-size:24px}.skill-effect{font-size:20px}.skill-next{font-size:15px}.skill-upgrade{width:90px;font-size:22px;min-height:75px}.stage-grid{grid-template-columns:repeat(3,1fr);gap:15px 11px}.stage-button:has(.stage-mission){min-height:177px}.stage-star-targets>span,.stage-mission>span{font-size:12px}.stage-button>small{font-size:15px}
}
.reduced-motion .upgrade-ready,.reduced-motion .upgrade-ready:after{animation:none}
@media(prefers-reduced-motion:reduce){.upgrade-ready,.upgrade-ready:after{animation:none!important}}
@media(min-width:701px) and (min-height:561px){
 .is-campaign .score-plaque{width:340px}.is-campaign .mission-status{font-size:15px}.is-campaign .stock-readout{font-size:14px}.is-campaign .stock-readout b{font-size:20px}#star-thresholds small{font-size:15px}
 .dialog-paper:has(.result-content){padding:24px 26px 18px}.result-content .dialog-kicker{margin:0 0 7px}.result-content h2{font-size:33px;margin:0 0 12px;padding:0}.result-content .result-grade{padding:7px 20px}.result-content .result-grade>strong{font-size:50px;line-height:1.1}.result-content .result-grade>span{font-size:15px}.result-content .result-number{font-size:51px;margin:5px 0 8px}.result-content .result-details{padding:10px 0;gap:13px}.result-content .result-details strong{font-size:21px}.result-content .wood-button{display:inline-flex;vertical-align:top;width:calc(50% - 8px);min-height:71px;margin:12px 2px 0;padding:10px 12px;font-size:23px}.result-content .result-menu{display:flex;align-items:center;justify-content:center;gap:7px;margin:12px auto 0;border:0;min-height:35px}.result-content .result-menu:before{content:'';width:31px;height:31px;background:url('./assets/ui-icons-v10.webp') 0% 50%/300% 300%}.dialog-paper .result-content .modal-foot{margin:5px 0 0;font-size:13px!important}
}
.star-progress-wrapper{margin-right:20px}
@media(max-height:560px) and (orientation:landscape){.game-shell.is-menu .wind-ribbon{left:calc(50% + 86px);min-width:135px;transform:translateX(-50%);padding:5px 8px}}
@media(max-width:700px) and (orientation:portrait){.game-shell .practice-actions{bottom:20%}.game-shell.is-menu .callout{top:35.5%;font-size:20px}}

@media (max-width: 820px) and (orientation: portrait) {
  .game-shell { --shop-start: calc(208px + env(safe-area-inset-top)); --shop-end: calc(152px + env(safe-area-inset-bottom)); }
  .game-shell.is-menu { --shop-start: calc(154px + env(safe-area-inset-top)); --shop-end: calc(244px + env(safe-area-inset-bottom)); }
  .game-shell.is-menu:has(#continue:not([hidden])) { --shop-end: calc(285px + env(safe-area-inset-bottom)); }
  #stage { inset: var(--shop-start) 0 auto; height: max(1px,calc(100% - var(--shop-start) - var(--shop-end))); }
  .game-shell .game-tools { top: calc(5px + env(safe-area-inset-top)); left: 8px; right: 8px; }
  .game-shell .game-tools .icon-button { width: 42px; height: 44px; }
  .game-shell.is-menu .help-token { top: calc(6px + env(safe-area-inset-top)); right: 155px; }
  .game-shell.is-menu .practice-title {
    top: calc(54px + env(safe-area-inset-top)); left: 8px; width: calc(100% - 16px); padding: 6px 10px;
  }
  .game-shell.is-menu .practice-title h1 { font-size: clamp(28px,8vw,38px); line-height: 1.12; }
  .game-shell.is-menu .practice-title p { font-size: 14px; }
  .game-shell.is-menu .practice-title > span { font-size: 12px; }
  .game-shell.is-menu .hud { inset: calc(var(--shop-start) + 3px) 8px auto; }
  .game-shell.is-menu .wind-ribbon {
    inset: 0 0 auto auto; transform: none; min-width: 0; width: auto; gap: 3px; padding: 3px 6px;
  }
  .game-shell .wind-ribbon strong { font-size: 15px; }
  .game-shell .wind-ribbon div > span { font-size: 10px; }
  .game-shell:not(.is-menu) .hud {
    top: calc(54px + env(safe-area-inset-top)); left: 8px; right: 8px;
    display: grid; grid-template-columns: minmax(0,1fr) minmax(105px,auto); grid-template-rows: auto auto; gap: 5px;
  }
  .game-shell:not(.is-menu) .score-plaque {
    grid-area: 1 / 1 / 3 / 2; min-width: 0; width: auto; max-width: none; padding: 5px 8px; margin: 0;
  }
  .game-shell:not(.is-menu) .score-plaque > strong { font-size: 27px; }
  .game-shell .score-plaque .star-progress-wrapper { margin-top: 24px; margin-bottom: 22px; }
  .game-shell:not(.is-menu) .wind-ribbon, .game-shell:not(.is-menu) .mission-timer {
    position: static; transform: none; width: auto; min-width: 0; padding: 4px 6px;
  }
  .game-shell:not(.is-menu) .mission-timer, .game-shell:not(.is-menu) .chances { grid-area: 1 / 2; }
  .game-shell:not(.is-menu) .wind-ribbon { grid-area: 2 / 2; gap: 3px; }
  .mission-timer > strong { font-size: 30px; }
  .game-shell .chances { margin: 0; padding: 4px; color: #fae6ba; }
  .game-shell .callout { top: calc(var(--shop-start) + 16px); width: min(95%,360px); white-space: normal; text-align: center; font-size: 22px; }
  .game-shell.is-menu .callout { top: calc(var(--shop-start) + 34px); }

  .game-shell .practice-actions {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px;
    inset: auto 8px calc(194px + env(safe-area-inset-bottom)); width: auto;
  }
  .game-shell .practice-actions :is(.growth-action,.wood-button.primary,.practice-ranked,.practice-continue) {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-width: 0; min-height: 44px; padding: 4px;
    font-size: 16px; line-height: 1.15; white-space: normal; text-align: center;
  }
  .game-shell .practice-actions :is(.growth-action,.wood-button.primary,.practice-ranked) { grid-column: auto !important; }
  .game-shell .practice-actions .practice-continue { grid-column: 1 / -1; min-height: 37px; }
  .growth-action > .art-icon { width: 25px; height: 25px; flex-shrink: 0; }
  .growth-copy strong { font-size: 15px; }
  .game-shell .game-token { bottom: calc(3px + env(safe-area-inset-bottom)); width: 46px; height: 48px; }
  .game-shell .game-token > .art-icon { width: 31px; height: 31px; }
  .game-shell .game-token .token-label { font-size: 13px; }
  .game-shell #auto { left: 8px; }
  .game-shell #stages { left: 60px; }
  .game-shell #ranking { left: 112px; }
  .game-shell .portrait-note, .game-shell .game-token kbd { display: none; }
  .game-shell .save-badge { bottom: calc(7px + env(safe-area-inset-bottom)); }
  .game-shell:not(.is-menu) .save-badge { bottom: calc(var(--shop-end) + 3px); font-size: 10px; }
  .game-shell .power-controls, .game-shell.is-menu .power-controls { left: 50%; width: 92%; }
  .game-shell .power-controls { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .game-shell.is-menu .power-controls { bottom: calc(104px + env(safe-area-inset-bottom)); }
  .game-shell.is-menu .power-controls p { display: block; }
  .game-shell .power-controls p { margin: 3px 0 0; font-size: 11px; }
  .game-shell .gauge-heading { margin-bottom: 1px; }
  .game-shell .gauge-heading strong { font-size: 16px; }
  .game-shell .power-gauge { min-height: 44px; }
  .game-shell .hat-picker { bottom: calc(6px + env(safe-area-inset-bottom)); gap: 4px; width: 92%; }
  .game-shell.is-menu .hat-picker { bottom: calc(55px + env(safe-area-inset-bottom)); }
  .game-shell .hat-picker button { width: min(15%,49px); min-width: 0; height: 45px; }
  .game-shell .hat-picker img { height: 25px; }
  .dialog-paper { padding: 38px 13px 16px; }
  .dialog-paper .dialog-close { min-width: 44px; min-height: 44px; }
  .stage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-height: 560px) and (orientation: landscape) and (pointer: coarse) {
  .game-shell.is-menu .practice-actions { bottom: calc(52px + env(safe-area-inset-bottom)); }
  .game-shell.is-menu .power-controls { left: calc((100% - 238px)/2); width: min(290px,calc(100% - 253px)); }
  .game-shell .power-gauge { min-height: 44px; }
  .game-shell .hat-picker { bottom: max(5px,env(safe-area-inset-bottom)); }
  .game-shell.is-campaign .wind-ribbon { inset: 53px 0 auto auto; transform: none; }
}
@media (max-width: 640px) and (orientation: landscape) and (pointer: coarse) {
  .game-shell.is-menu .practice-title { width: min(240px,42vw); }
  .game-shell.is-menu .practice-title h1 { font-size: clamp(22px,5vw,30px); }
  .game-shell.is-menu .wind-ribbon { left: calc(50% + 92px); width: 100px; min-width: 0; padding: 3px; gap: 3px; }
  .game-shell.is-menu .wind-ribbon strong { font-size: 14px; }
  .game-shell.is-menu .callout { top: 116px; left: 27%; width: 46%; font-size: 17px; text-align: center; white-space: normal; }
  .game-shell.is-menu .hat-picker { left: auto; right: 6px; transform: none; }
  .game-shell.is-menu .save-badge { left: calc(2.5% + 176px); right: auto; max-width: 91px; font-size: 10px; }
}
