:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:#253b44;background:#f6f2e9;font-synthesis:none;--ink:#243b47;--gold:#f4bd78;--mint:#b7ddd2}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 2%,#eed6bd88,transparent 40%),#f6f2e9}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #5ec4bf;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.site-nav{max-width:1180px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:26px 18px 24px;font-size:13px}.brand{display:flex;gap:10px;align-items:center;font-weight:800;font-size:17px}.brand>span{background:#eab06f;border:2px solid #243b47;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;box-shadow:2px 2px #243b47}.brand small{font-size:11px;font-weight:500;color:#788285;margin-left:6px}main{max-width:1180px;padding:0 18px;margin:auto}.shell{border:1px solid #cbd0c7;border-radius:18px;overflow:hidden;background:#243b47;box-shadow:0 16px 45px #233b4420}.heading{min-height:66px;display:flex;align-items:center;justify-content:space-between;padding:12px 22px;color:#f6eddc;gap:10px}.heading>div{display:flex;align-items:center;gap:12px}.heading b{font-size:17px;letter-spacing:2px}.heading small{font-size:9px;letter-spacing:2px;color:#a5b9b9}.number{font:700 15px ui-monospace,monospace;border:1px solid #e5b17c;color:#f2c183;border-radius:5px;padding:5px}.heading nav{display:flex;gap:6px}.heading button,.hud button{color:#dfe7dc;background:#ffffff0c;border:1px solid #ffffff18;border-radius:7px;padding:8px 11px;font-size:12px}.heading button:hover{background:#ffffff20}.stage{position:relative;aspect-ratio:16/9;background:#4d5269;isolation:isolate;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}.screen{position:absolute;inset:0;z-index:3}.home{background:linear-gradient(90deg,#f8eddbfa 0%,#f7e6d4f5 38%,#f2d4b600 75%);display:flex;align-items:center;padding:4% 5.2%}.hero-copy{width:57%;max-width:520px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#8a6850;margin:0 0 11px}.hero-copy h1{font-size:clamp(30px,5.4vw,65px);line-height:1.02;margin:0;letter-spacing:4px;font-weight:900}.hero-copy h1 span{display:block;color:#a95b48;margin-top:10px}.hero-copy h1 i{font-style:normal;color:#d79d5b;font-size:.62em;margin-left:13px}.english{font-size:10px;font-weight:700;color:#907c6d;margin:17px 0}.intro{font-size:14px;line-height:1.8;color:#5d6663;margin:0 0 21px}.levels{display:flex;gap:7px;margin-bottom:14px}.level{border:1px solid #b8b7a9;background:#fff8e9bd;border-radius:8px;padding:9px 10px;text-align:left;min-width:85px;color:#58605a}.level b{display:block;font-size:12px}.level span{display:block;font-size:10px;color:#aa7152;letter-spacing:2px;margin-top:4px}.level.active{border:2px solid #35565a;background:#f9e1b8;padding:8px 9px}.primary,.secondary{border-radius:9px;min-height:44px;padding:12px 20px;font-weight:750;font-size:14px;display:block;width:100%;margin-top:10px}.primary{background:#29494f;color:#fff1d9;box-shadow:0 3px #142f35}.primary span{float:right;color:#edc089}.primary:hover{background:#365b5f}.hero-copy>.primary{max-width:310px}.secondary{border:1px solid #c0c9bf;background:#edf0e5;color:#355457;box-shadow:none}.text-button{background:none;color:#657772;font-size:12px;padding:13px;margin:auto;display:block}.small-note{font-size:10px;color:#887f70;margin:16px 0 0}.hero-badge{position:absolute;right:6%;top:12%;border-left:2px solid #f7dfba;padding-left:15px;color:#fff1d8;transform:rotate(2deg);text-shadow:0 1px 10px #3336}.hero-badge span{font:10px monospace;letter-spacing:2px}.hero-badge b{display:block;font-size:23px;line-height:1.5;letter-spacing:3px;margin-top:12px}.hero-badge i{font-style:normal;display:block;font-size:44px;color:#edc286}.hud{display:flex;gap:25px;align-items:center;background:#1b303c;color:#e9edda;padding:10px 22px;min-height:61px;font-size:12px}.health{width:180px;flex-shrink:0}.health>span{display:flex;justify-content:space-between;color:#bfd5cd;font-size:10px}.meter{height:7px;background:#43545b;border-radius:5px;margin-top:7px;overflow:hidden}.meter i{display:block;background:#a6d4b6;height:100%;width:100%;transition:width .15s}.mission{display:flex;flex:1;gap:7px;flex-direction:column}.mission span,.resources span{font-size:10px;color:#9fb7b5}.resources{display:flex;flex-direction:column;gap:5px;align-items:flex-end}.resources b{color:#e7bc80}.shade{display:grid;place-items:center;background:#152c3bc9;backdrop-filter:blur(5px);padding:16px;overflow:auto}.panel{background:#faf1e1;width:340px;max-width:100%;border:1px solid #f7dfba;border-radius:15px;padding:27px;text-align:center;box-shadow:0 12px 40px #12293650}.panel h2{font-size:28px;margin:4px 0 16px;letter-spacing:2px}.panel>p:not(.eyebrow){font-size:13px;line-height:1.8;color:#62706b;margin:10px 0 20px}.guide{width:720px;text-align:left}.guide h2{font-size:24px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 23px;margin:22px 0}.guide-grid b{font-size:13px;color:#356467}.guide-grid p{font-size:12px;line-height:1.7;color:#6b726b;margin:7px 0 0}.panel .help-bottom{font-size:11px!important;margin:15px 0!important}.guide .primary{max-width:250px;margin:10px auto 0;text-align:center}.stars{font-size:33px;color:#c99044;letter-spacing:8px}.result-stats{display:flex;gap:8px;justify-content:center;font-size:12px;margin:18px 0;color:#62716b}.result-stats span{background:#ede6d7;padding:10px;border-radius:7px}.weapon-bar{display:flex;gap:9px;padding:11px 18px;background:#263e48;color:#dfe6d8;align-items:center}.weapons{display:flex;gap:7px;flex:1}.weapon{display:flex;align-items:center;gap:10px;background:#354e58;color:#adc0be;padding:10px 13px;border:1px solid #557074;border-radius:8px;text-align:left;min-width:118px}.weapon.active{color:#f8e2b9;background:#4b5a58;border-color:#d5aa72}.weapon b{font-size:11px;display:block}.weapon span{font-size:10px;display:block;margin-top:3px}.weapon em{font:700 13px ui-monospace;font-style:normal;color:#c8b490}.weapon-bar>button{background:#3b555d;color:#d7e4da;border:1px solid #637a7b;border-radius:7px;padding:11px 12px;font-size:11px;min-height:44px}kbd{font:10px ui-monospace;border:1px solid #81938e;padding:1px 4px;border-radius:3px;margin-left:4px}.game-footer{display:flex;justify-content:space-between;padding:11px 20px;background:#eae6d9;color:#64736e;font-size:10px;gap:12px}.game-footer>span:last-child{font:9px ui-monospace;letter-spacing:1.5px;white-space:nowrap}.workshop{background:#fffaf0;border:1px solid #d6d8c9;border-radius:15px;padding:24px;margin-top:23px}.workshop header{display:flex;justify-content:space-between;align-items:center;gap:12px}.workshop .eyebrow{margin:0 0 6px;color:#87938a;font-size:9px}.workshop h2{font-size:19px;margin:0}.bank{font-size:11px;border:1px solid #e2c494;background:#f9e9cd;border-radius:20px;padding:9px 14px;color:#97724e}.bank b{font-size:18px;margin-left:8px}.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.upgrade{border:1px solid #d0d6c8;background:#f3f3e9;padding:15px;border-radius:10px;display:flex;align-items:center;gap:12px}.upgrade .symbol{font-size:26px;color:#76988b}.upgrade div{flex:1}.upgrade h3{font-size:13px;margin:0}.upgrade p{font-size:10px;color:#7e897f;margin:5px 0}.upgrade small{font-size:9px;color:#a07e4e;letter-spacing:2px}.upgrade button{border-radius:6px;background:#355359;color:#fff1d3;padding:9px 10px;font-size:11px;white-space:nowrap}.workshop>p{font-size:10px;color:#90968a;margin:14px 0 0}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:30px 5px}.features article{border-left:2px solid #cab491;padding-left:15px}.features b{font-size:13px}.features p{font-size:11px;line-height:1.8;color:#859087;margin:7px 0 0}footer{max-width:1180px;margin:0 auto;padding:10px 18px 30px;text-align:center;color:#969b8e;font-size:10px;line-height:2}footer a{text-decoration:underline;text-underline-offset:3px}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#203e48ed;color:#fff0d2;font-size:12px;padding:12px 20px;border-radius:9px;z-index:99;transition:.2s;max-width:90vw;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}.mobile-controls{position:absolute;inset:auto 15px 12px;display:none;justify-content:space-between;align-items:end;z-index:2;pointer-events:none}.mobile-controls button{pointer-events:auto;touch-action:none;user-select:none;border:1px solid #f1d5a886;background:#203d49a8;color:#fff0cf;font-size:13px;width:49px;height:49px;border-radius:50%;backdrop-filter:blur(2px)}.mobile-controls button:active,.mobile-controls button.pressed{background:#d09c62dc}.move-pad{display:flex;gap:12px}.action-pad{display:flex;gap:9px;align-items:end}.action-pad #mobile-skill,.action-pad #mobile-reload{font-size:10px;width:38px;height:38px}.mobile-controls .fire-button{width:60px;height:60px;background:#975c49c9}.shell:fullscreen{width:100%;height:100%;display:flex;flex-direction:column;border:0;border-radius:0;justify-content:center;background:#142b35}.shell:fullscreen .stage{flex:1;min-height:0;aspect-ratio:auto}.shell:fullscreen canvas{object-fit:contain}.shell:fullscreen .home{background:linear-gradient(90deg,#f8eddbfa,#f7e6d4f5 35%,#f2d4b600 80%)}
@media(pointer:coarse){.mobile-controls:not([hidden]){display:flex}.stage{user-select:none}.weapon-bar kbd{display:none}}
@media(max-width:800px){.heading small{display:none}.heading{padding:10px 14px;min-height:56px}.heading nav button{padding:7px 8px;font-size:10px}.heading>div{gap:8px}.heading b{font-size:14px}.hero-copy h1{font-size:45px}.intro{font-size:12px;margin-bottom:12px}.english{font-size:8px;margin:12px 0}.level{padding:7px;min-width:72px}.level.active{padding:6px}.level b{font-size:10px}.hero-copy>.primary{font-size:12px;min-height:40px;padding:10px 14px}.small-note{font-size:9px;margin-top:11px}.hero-badge b{font-size:18px}.upgrade-grid{gap:8px}.upgrade{padding:11px;gap:7px;flex-wrap:wrap}.upgrade .symbol{font-size:21px}.upgrade button{width:100%}.hud{padding:9px 13px;gap:13px}.health{width:130px}.weapon-bar{padding:9px;gap:6px}.weapon{padding:8px;min-width:90px;gap:7px}.weapon-bar>button{padding:9px 7px;font-size:10px}.features{gap:13px}.guide h2{font-size:19px}.guide{padding:20px}.guide-grid{gap:12px;margin:15px 0}.guide-grid p{font-size:11px}.panel{padding:22px}.panel h2{font-size:23px}}
@media(max-width:560px){.site-nav{padding:15px 12px;font-size:10px}.brand{font-size:14px;gap:8px}.brand small{display:none}main{padding:0 9px}.shell{border-radius:12px}.heading{padding:9px 10px}.heading b{font-size:12px;letter-spacing:1px}.number{padding:3px;font-size:12px}.heading nav{gap:3px}.heading nav button{padding:6px;font-size:9px}.stage{aspect-ratio:4/3}.stage canvas{object-fit:cover}.home{padding:5%}.hero-copy{width:73%;max-width:300px}.hero-copy h1{font-size:37px;letter-spacing:3px}.hero-copy h1 span{margin-top:6px}.eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:9px}.hero-copy .intro{font-size:10px;line-height:1.6;margin-bottom:12px}.english{font-size:7px;margin:10px 0}.levels{gap:4px;margin-bottom:9px}.level{min-width:62px;padding:6px 5px}.level.active{padding:5px 4px}.level b{font-size:9px}.level span{font-size:8px;letter-spacing:1px}.hero-copy>.primary{max-width:230px;min-height:36px;font-size:11px;padding:9px 11px}.small-note{font-size:8px;margin-top:10px}.hero-badge{right:4%;top:10%;padding-left:8px}.hero-badge b{font-size:13px;letter-spacing:1px}.hero-badge span{font-size:7px;letter-spacing:1px}.hero-badge i{font-size:32px}.hud{gap:9px;min-height:54px;padding:8px 10px}.health{width:95px}.health>span{font-size:8px}.mission b{font-size:10px}.mission span,.resources span{font-size:8px}.resources b{font-size:10px}.hud button{padding:6px}.weapon-bar{flex-wrap:wrap}.weapons{width:100%;flex:1 0 100%}.weapon{flex:1;padding:7px;min-width:0;justify-content:center}.weapon b{font-size:10px}.weapon span{font-size:9px}.weapon-bar>button{flex:1;padding:5px 8px;min-height:28px}.game-footer{padding:9px 10px;font-size:8px}.game-footer>span:last-child{font-size:7px;letter-spacing:0}.workshop{padding:16px;margin-top:15px}.workshop h2{font-size:15px}.bank{font-size:9px;padding:6px 9px;white-space:nowrap}.bank b{font-size:15px}.upgrade-grid{gap:6px;margin-top:14px}.upgrade{padding:9px;display:block}.upgrade .symbol{display:none}.upgrade h3{font-size:10px}.upgrade p{font-size:8px;min-height:22px}.upgrade small{font-size:8px}.upgrade button{padding:7px 3px;font-size:9px;margin-top:7px}.workshop>p{font-size:8px;line-height:1.7}.features{gap:12px;padding:22px 5px;grid-template-columns:1fr}.features b{font-size:12px}.features p{font-size:10px;margin-top:4px}.panel{padding:17px;width:300px}.panel h2{font-size:21px;margin-bottom:9px}.panel>p:not(.eyebrow){font-size:11px;margin:7px 0 11px}.panel .primary,.panel .secondary{min-height:35px;padding:9px 12px;font-size:12px}.guide{margin:12px 0}.guide h2{font-size:17px}.guide-grid{grid-template-columns:1fr;gap:10px}.guide-grid p{font-size:10px}.guide-grid b{font-size:11px}.shade{align-items:safe center;overflow:auto}.mobile-controls{inset:auto 10px 10px}.mobile-controls button{width:39px;height:39px;font-size:11px}.move-pad{gap:7px}.action-pad{gap:5px}.action-pad #mobile-skill,.action-pad #mobile-reload{width:32px;height:32px;font-size:9px}.mobile-controls .fire-button{width:49px;height:49px}.result-stats{font-size:10px;margin:12px 0}.result-stats span{padding:8px}.stars{font-size:27px}}
@media(max-height:550px) and (orientation:landscape){.site-nav,.features,.workshop,body>footer{display:none}.heading{min-height:40px;padding:6px 14px}.stage{max-height:calc(100dvh - 145px);aspect-ratio:16/9}.home{padding:2% 5%}.hero-copy{max-width:470px;width:60%}.hero-copy h1{font-size:32px;display:flex;gap:10px}.hero-copy h1 span{margin:0}.hero-copy .intro{font-size:10px;margin:8px 0}.english,.small-note,.hero-copy>.eyebrow{display:none}.levels{margin:7px 0}.hero-copy>.primary{min-height:32px;padding:7px 12px;margin:6px 0}.hero-badge b{font-size:16px}.level{padding:4px 8px}.level.active{padding:3px 7px}.hud{padding:6px 14px;min-height:45px}.weapon-bar{padding:5px 9px;flex-wrap:nowrap}.weapons{flex:1 1 auto;width:auto}.weapon{padding:5px 9px}.weapon-bar>button{min-height:30px}.game-footer{padding:5px 12px}.panel{padding:15px}.panel h2{font-size:20px;margin:4px 0 8px}.panel>p:not(.eyebrow){font-size:11px;margin:8px 0}.panel .primary,.panel .secondary{min-height:32px;padding:8px}.result-stats{margin:9px 0}.stars{font-size:24px}.guide{max-width:740px}.guide-grid{grid-template-columns:1fr 1fr;gap:8px 15px;margin:10px 0}.guide-grid p{font-size:10px;margin:4px 0}.guide h2{font-size:19px}.guide .help-bottom{font-size:9px!important;margin:8px 0!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep the whole arena and combat controls visible on ordinary laptop screens. */
.stage canvas{object-fit:contain}
@media(min-width:561px) and (min-height:551px){.shell:has(#home-screen[hidden]){max-width:min(100%,calc((100dvh - 350px)*1.7778));min-width:min(680px,100%);margin-inline:auto}.shell:has(#home-screen[hidden]) .heading{min-height:54px;padding:10px 14px}.shell:has(#home-screen[hidden]) .heading small{display:none}.shell:has(#home-screen[hidden]) .hud{padding:8px 13px;gap:12px}.shell:has(#home-screen[hidden]) .weapon-bar{padding:8px;gap:5px}.shell:has(#home-screen[hidden]) .weapon{min-width:100px;padding:7px}.shell:has(#home-screen[hidden]) .weapon-bar>button{padding:8px;font-size:10px}}
@media(max-width:560px){.stage:has(#home-screen:not([hidden])){min-height:390px}.mobile-controls:not([hidden]){display:flex}}
.shell:fullscreen{max-width:none!important;min-width:0!important;width:100%;height:100dvh;display:flex;flex-direction:column}.shell:fullscreen .stage{flex:1;min-height:0;aspect-ratio:auto}
@media(max-width:560px){.stage:has(#home-screen:not([hidden])){width:100%;height:390px;aspect-ratio:auto}}
