:root{font-family:Arial,Helvetica,sans-serif;color:#18362c;background:#f5f4ee;font-synthesis:none;--ink:#18362c;--muted:#728078;--orange:#e78148;--line:#e3e6de}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d57a37;outline-offset:4px}button:disabled{cursor:default}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}.topbar{height:86px;background:#fffdf7;border-bottom:1px solid var(--line);padding:0 max(28px,calc((100vw - 1440px)/2));display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand>span{display:flex;flex-direction:column;font-size:10px;font-weight:800;letter-spacing:1.4px}.brand b{font-size:28px;letter-spacing:-1px;line-height:1.05}.brand-dot{color:var(--orange)}.header-caption{margin:auto;font-size:10px;letter-spacing:2px;color:#7b867b}.icon-button{border:1px solid #dce0d6;border-radius:50%;width:39px;height:39px;background:transparent;font-size:21px;color:var(--ink)}main{max-width:1440px;margin:auto;padding:38px 28px 0}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:29px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7a8778;margin:0 0 10px}h1{font-size:clamp(30px,3.1vw,46px);letter-spacing:-1.7px;line-height:1.1;margin:0;font-weight:700}h1 em{font-weight:400;font-family:Georgia,serif}h2{margin:0;font-size:22px;letter-spacing:-.6px}.save-state{font-size:11px;color:#7b867b;display:flex;gap:7px;align-items:center;padding-bottom:5px}i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7baf7d}.wallet{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:1px;margin-bottom:25px;border:1px solid #e4e7dd;border-radius:14px;background:#e4e7dd;overflow:hidden}.wallet>div{background:#fffefa;display:flex;gap:12px;align-items:center;padding:18px 22px;min-width:0}.stat-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:#e9eee4;color:#476942;font-size:21px;font-weight:700}.gold-icon{color:#c39234;background:#faf1d8}.fans-icon{color:#957265;background:#f2e9e0}.skill-icon{background:#e4eeec;color:#4e827b}.wallet small{display:block;font-size:9px;letter-spacing:1.8px;color:#829080;margin-bottom:4px}.wallet strong{font-size:22px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.rate{margin-left:auto;color:#788d69;font-size:11px;white-space:nowrap}.game-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);gap:24px;align-items:stretch}.practice{min-width:0;position:relative;border-radius:19px;background:#193b2e;overflow:hidden;box-shadow:0 9px 22px #1a322812;color:#faf9ee}.scene-heading{position:absolute;z-index:1;top:25px;left:28px;right:28px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.chapter{font-size:9px;letter-spacing:2px;color:#b4c0a5}.scene-heading h2{font-size:24px;margin-top:8px;color:#f5f1dd;font-family:Georgia,serif;font-weight:400}.live-label{border:1px solid #ffffff30;border-radius:20px;padding:7px 10px;font-size:8px;letter-spacing:1.2px;color:#cfdbc4}.live-label i{margin-right:5px;background:#adc77a}.practice canvas{display:block;width:100%;height:390px}.scene-bottom{position:absolute;left:28px;right:28px;top:348px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#cdd6b9;gap:15px;pointer-events:none}.scene-bottom>span:first-child{font-size:9px;letter-spacing:1.5px;color:#fff8e0;border:1px solid #ffffff36;border-radius:5px;padding:6px 9px}.scene-bottom>span:last-child{text-align:right}.training-controls{padding:20px 24px 17px;display:flex;gap:12px;align-items:center;background:#142e25;border-top:1px solid #ffffff10}.energy{flex:1;min-width:90px}.energy>div:first-child{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;gap:8px;margin-bottom:8px}.energy b{font-size:10px;letter-spacing:0;color:#bac9b2}.energy-track{height:6px;background:#ffffff17;border-radius:6px;overflow:hidden}.energy-track>div{height:100%;width:100%;background:#bed57e;border-radius:6px;transition:width .2s linear}.energy small{font-size:9px;color:#879f8d;display:block;margin-top:7px}.train-button{border:0;border-radius:9px;background:#e88850;color:#192f26;min-height:51px;padding:10px 16px;font-size:14px;display:flex;gap:8px;align-items:center;justify-content:center;font-weight:800;touch-action:none;user-select:none;-webkit-user-select:none}.train-button span{font-size:10px;letter-spacing:.5px}.train-button small{display:block;margin-top:5px;font-size:9px;font-weight:400;letter-spacing:0}.train-button.training{background:#f5b57a;box-shadow:0 0 20px #ed9c4f55}.shoot-button{border:1px solid #a5b69b48;background:transparent;color:#e6eddb;border-radius:9px;font-size:9px;letter-spacing:.6px;min-height:51px;padding:10px 12px;white-space:nowrap}.shoot-button span{font-size:18px;margin-left:9px}.shoot-button:disabled{opacity:.5}.practice-tip{display:flex;gap:10px;background:#142e25;padding:0 24px 17px;font-size:10px;color:#8da28e;line-height:1.5}.practice-tip>span{color:#d4c387}.development{background:#fffefa;border:1px solid var(--line);border-radius:17px;min-width:0;overflow:hidden;display:flex;flex-direction:column}.panel-heading{padding:25px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h2{font-size:24px}.panel-heading>span{font-size:10px;color:#8a9485;white-space:nowrap}.main-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 24px;gap:27px}.main-tabs button{border:0;background:transparent;color:#879181;padding:0 0 13px;font-size:12px}.main-tabs button[aria-selected=true]{color:var(--ink);border-bottom:2px solid var(--ink);font-weight:700}.category-tabs{display:flex;gap:5px;padding:18px 23px 12px}.category-tabs button{background:transparent;border:0;border-radius:7px;font-size:10px;color:#7b897b;padding:7px 10px}.category-tabs button.active{background:#eaf0e4;color:#345337;font-weight:700}.scroll-list{padding:0 23px;height:302px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d1d7c8 transparent}.upgrade-row{display:flex;gap:11px;align-items:center;padding:15px 0;border-bottom:1px solid #edf0e6}.item-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border:1px solid #e1e8d5;background:#eff1e7;border-radius:11px;font-size:24px;color:#5a6d43}.upgrade-info{min-width:0;flex:1}.upgrade-title{display:flex;align-items:center;gap:7px}.upgrade-title h3{font-size:11px;margin:0;font-weight:700;text-transform:capitalize}.upgrade-title span{font-size:9px;white-space:nowrap;background:#f0f1e9;color:#7d886e;padding:3px 5px;border-radius:4px}.upgrade-info p{font-size:9px;color:#8b9583;margin:6px 0;line-height:1.4}.mini-track{height:3px;background:#eef0e6;max-width:150px;border-radius:3px;overflow:hidden}.mini-track>span{display:block;height:100%;background:#9eae7a}.upgrade-action{border:1px solid #dce5d2;background:#edf2e8;min-width:80px;border-radius:7px;padding:8px 8px;color:#456039;text-align:center;font-size:11px;font-weight:700;flex-shrink:0}.upgrade-action small{display:block;font-size:8px;letter-spacing:1px;margin-top:4px;font-weight:400}.upgrade-action:disabled{color:#a0aa96;background:#f5f6f0;border-color:#e8ebdf}.upgrade-action.affordable{background:#233f2f;color:#edf4e1;border-color:#233f2f}.panel-foot{margin-top:auto;padding:16px 24px;border-top:1px solid var(--line);display:flex;gap:10px;font-size:10px;color:#88927e}.panel-foot>span:first-child{color:#9caf81}.panel-note{margin:17px 24px 7px;font-size:10px;color:#8b9583}.move-list{height:335px}.move-list .upgrade-title h3{font-size:10px}.move-list .item-icon{font-size:21px}#career-details{padding:20px 24px;max-height:370px;overflow:auto}.career-block{border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:14px}.career-block h3{margin:0 0 12px;font-size:15px}.career-block p{font-size:11px;color:#78846f;line-height:1.7}.career-block .mini-track{max-width:none;height:6px}.career-block button{margin-top:12px;width:100%}.journey{margin-top:30px}.journey-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px}.journey-heading h2{font-size:25px;font-family:Georgia,serif;font-weight:400}.journey-heading>span{font-size:11px;color:#939b8b}.city-route{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.city-card{border:1px solid var(--line);background:#efefe6;border-radius:11px;padding:17px 18px;display:flex;align-items:center;gap:13px;position:relative;overflow:hidden}.city-card.current{background:#e8eedc;border-color:#bdcbaa}.city-mini{width:49px;height:45px;flex-shrink:0;border-radius:7px;background:#dde5d0;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:8px}.city-mini i{border-radius:1px;width:8px;background:#7d9270;height:15px}.city-mini i:nth-child(2){height:27px;background:#647f5c}.city-mini i:nth-child(3){height:20px}.city-card:nth-child(3) .city-mini{background:#ddd7ca}.city-card:nth-child(4) .city-mini{background:#d6dfdf}.city-card h3{font-size:12px;margin:0 0 6px}.city-card p{font-size:9px;margin:0;color:#89917f}.city-card .city-number{margin-left:auto;font-size:10px;color:#93a17e}.city-card:not(.current){opacity:.68}footer{display:flex;align-items:center;justify-content:space-between;margin-top:32px;padding:23px 0 27px;border-top:1px solid var(--line);color:#8b9482;font-size:10px}footer>span:first-child{letter-spacing:.7px;font-size:9px}footer b{color:#5e7055}.footer-tag{border-left:1px solid #c5ccbb;margin-left:9px;padding-left:9px;font-size:8px}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:13px 22px;border-radius:10px;background:#183c2d;color:#f3f2df;font-size:12px;box-shadow:0 4px 24px #0003;z-index:10;max-width:90vw}dialog{border:1px solid #d5ddce;border-radius:20px;padding:27px;max-width:440px;width:calc(100% - 36px);color:var(--ink);background:#fffdf6;box-shadow:0 15px 80px #0004}dialog::backdrop{background:#10271eb3;backdrop-filter:blur(5px)}dialog p{font-size:13px;line-height:1.7;color:#7c8977}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-action{display:block;border:1px solid #d9e1d0;background:#f0f3e8;border-radius:8px;padding:13px 15px;margin:12px 0;font-size:12px;width:100%;text-align:left;cursor:pointer}.file-label input{display:none}.small-note{font-size:11px!important}#offline-reward{font-size:24px;margin:25px 0}#fatal-error{position:fixed;inset:20% 10% auto;background:#fff5e3;z-index:100;padding:28px;border:1px solid #e78148;border-radius:12px}
@media(min-width:1500px){.practice canvas{height:440px}.scene-bottom{top:398px}.scroll-list{height:352px}.move-list{height:385px}}
@media(max-width:1080px){main{padding:25px 20px 0}.game-layout{gap:17px;grid-template-columns:minmax(0,1.35fr) minmax(325px,1fr)}.training-controls{flex-wrap:wrap}.energy{flex-basis:100%;margin-bottom:3px}.train-button,.shoot-button{flex:1}.practice canvas{height:360px}.scene-bottom{top:316px}.scroll-list{height:340px}.move-list{height:373px}.wallet>div{padding:15px}.header-caption{font-size:9px;letter-spacing:1px}.rate{display:none}.panel-heading{padding:20px 20px 18px}.panel-heading .eyebrow{font-size:8px}.city-card{padding:13px 11px;gap:9px}.city-mini{width:37px}.city-card h3{font-size:10px}}
@media(max-width:760px){.topbar{height:72px;padding:0 20px}.header-caption{display:none}.topbar .icon-button{margin-left:auto}.page-heading{gap:10px}.save-state{font-size:9px;max-width:108px;line-height:1.6}h1{font-size:33px}.wallet{grid-template-columns:repeat(2,1fr);gap:1px}.wallet>div{padding:13px 15px}.wallet strong{font-size:20px}.wallet small{font-size:8px}.game-layout{grid-template-columns:1fr}.practice canvas{height:370px}.scene-bottom{top:325px}.training-controls{flex-wrap:nowrap;padding:18px}.energy{flex-basis:auto;min-width:90px;margin:0}.train-button{flex:0 0 auto;padding:10px}.shoot-button{flex:0 0 auto;padding:10px;font-size:8px}.shoot-button span{display:none}.train-button span{font-size:8px}.train-button small{font-size:8px}.development{min-height:490px}.scroll-list{height:285px}.move-list{height:318px}.city-route{grid-template-columns:repeat(2,1fr)}.journey-heading>span{display:none}footer{gap:15px;align-items:flex-start;line-height:1.7}footer>span:last-child{text-align:right;max-width:135px}.scene-heading{left:21px;right:21px}.scene-heading h2{font-size:22px}.scene-bottom{left:21px;right:21px}.scene-bottom>span:last-child{max-width:160px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Icon controls retain accessible names and native hover hints. */
.ui-icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex-shrink:0}.icon-button{display:inline-flex;align-items:center;justify-content:center}.icon-button .ui-icon{width:20px;height:20px}.stat-icon .ui-icon{width:23px;height:23px}.wallet small{display:none}.wallet strong{font-size:24px}.wallet>div{min-height:76px}.main-tabs{gap:12px}.main-tabs button{display:flex;align-items:center;justify-content:center;width:66px;min-height:47px;padding:7px 13px 12px}.main-tabs .ui-icon{width:24px;height:24px}.category-tabs{gap:9px}.category-tabs button{display:flex;align-items:center;justify-content:center;min-width:46px;min-height:36px;padding:7px 12px}.category-tabs .ui-icon{width:21px;height:21px}.control-icon{display:flex;justify-content:center;align-items:center;min-width:64px;width:64px;flex:0 0 64px;min-height:52px;padding:12px}.control-icon .ui-icon{display:block!important;width:27px;height:27px;margin:0!important}.energy>div:first-child>.ui-icon,.energy>div:first-child>[data-icon] .ui-icon{width:15px;height:15px}.item-icon .ui-icon{width:25px;height:25px}.upgrade-action .action-label{margin-top:5px}.upgrade-action .action-label .ui-icon{width:15px;height:15px}.dialog-action{display:flex;align-items:center;justify-content:center;min-height:48px}.dialog-action .ui-icon{width:24px;height:24px}#travel-button .ui-icon{width:23px;height:23px}
@media(max-width:760px){.control-icon{min-width:54px;width:54px;flex-basis:54px}.wallet strong{font-size:21px}}

/* Phaser renders game UI and receives canvas pointer input. */
.game-layout{grid-template-columns:1fr}
.wallet{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;border:0}
.phaser-game{align-self:start}
.phaser-game .court-surface{width:100%;height:auto;aspect-ratio:1100/1120;position:relative;overflow:hidden}
.phaser-game .court-surface>canvas{position:absolute;inset:0;display:block;touch-action:none}
.phaser-game .scene-heading{top:22px;right:15%}
.phaser-game .scene-bottom{position:relative;inset:auto;padding:10px 20px;background:#142e25;min-height:40px}
.phaser-game .practice-tip{padding-top:9px;margin-bottom:0}
.phaser-accessibility{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
[data-close] canvas[data-apk-icon="close"]{transform:rotate(45deg)}

/* Fit the play surface to the available viewport instead of the document. */
html,body{height:100%;overflow:hidden}
.topbar{height:52px;padding:0 16px;gap:12px}.brand{gap:8px}.brand img{width:32px;height:32px}.brand b{font-size:21px}.brand>span{font-size:8px}.header-caption{font-size:9px;margin-left:auto;margin-right:0}
main{max-width:none;height:calc(100dvh - 52px);padding:8px;display:flex;flex-direction:column;min-height:0}
.page-heading,.journey,main>footer,.practice-tip{display:none}
.game-layout{display:block;flex:1;min-height:0;height:100%;margin:0}
.phaser-game{height:100%;display:flex;flex-direction:column;border-radius:12px}
.phaser-game .court-surface{flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto}
.phaser-game .court-surface>canvas{position:absolute;top:0;left:0;right:auto;bottom:auto;touch-action:none}
.phaser-game .scene-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.phaser-game .scene-bottom{flex:0 0 30px;min-height:30px;padding:4px 14px;font-size:10px}.scene-bottom>span:first-child{font-size:8px;padding:4px 6px}.scene-bottom>span:last-child{max-width:none}
@media(max-width:520px){.topbar{height:44px;padding:0 10px}.brand b{font-size:18px}.brand img{width:28px;height:28px}.header-caption{display:none}main{height:calc(100dvh - 44px);padding:4px}.phaser-game .scene-bottom{flex-basis:28px;min-height:28px;font-size:9px}}


/* Extend original sky art into the FIT canvas margins. */
.phaser-game .court-surface{background:linear-gradient(#8bd1e1 0%,#cce5df 40%,#cfc4c0 70%,#cfc4c0 100%)}


/* Reference APK framing: the game owns the top and bottom chrome. */
.topbar,.phaser-game .scene-bottom{display:none}main{height:100dvh;padding:0;background:#38445f}.phaser-game{border-radius:0;border:0}.phaser-game .court-surface{background:#38445f}

/* Preserve the portrait game frame at every viewport size. */
.phaser-game{width:min(100%,calc(100dvh * 3 / 7));margin-inline:auto}
