:root{color-scheme:light;--paper:#eef2e5;--ink:#2c493b;--muted:#73816a;--green:#48694a;--line:#d5ddc9;--yellow:#f7c74e;--blue:#4986bc;--white:#fffef4;--display:"Arial Rounded MT Bold","PingFang SC","Microsoft YaHei",sans-serif;--body:"PingFang SC","Microsoft YaHei",sans-serif;font-family:var(--body);color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background-image:radial-gradient(#66774b0c 1px,transparent 1px);background-size:8px 8px}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,canvas:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.game-shell{max-width:1280px;margin:auto;padding:24px 42px 18px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.brand{display:flex;gap:13px;align-items:center}.brand img{width:54px;height:54px;filter:drop-shadow(0 3px 0 #c9ccac)}.eyebrow{font-size:11px;letter-spacing:3px;margin:0 0 5px;color:var(--muted);font-weight:600}h1{font-family:var(--display);font-size:31px;line-height:1.1;letter-spacing:1px;margin:0;font-weight:850}h1 span{display:inline-block;font-size:10px;font-family:ui-monospace,monospace;letter-spacing:2px;margin-left:14px;vertical-align:middle;color:#7c8a71;font-weight:500}.toolbar{display:flex;gap:9px}.tool-button{width:42px;height:42px;border:1px solid var(--line);background:#fafbf2;border-radius:13px;display:grid;place-items:center;color:var(--ink);box-shadow:0 3px 0 #dce1d0;font-size:23px;font-weight:700}.tool-button:disabled{opacity:.4}.tool-button:hover:not(:disabled){background:#fffef4;transform:translateY(-1px)}.tool-button[aria-pressed="false"]{color:#8f9b80}.battlefield{position:relative;isolation:isolate;width:100%;aspect-ratio:1100/630;overflow:hidden;background:#abc583;border:6px solid #fffef4;border-radius:23px;box-shadow:0 5px 0 #c3cdb3,0 13px 28px #40513210}canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-6px!important}.tank-mark{width:15px;height:10px;border-radius:3px;background:#718064;display:inline-block;position:relative}.tank-mark:before{content:"";position:absolute;width:7px;height:5px;left:4px;top:-3px;border-radius:2px;background:#718064}.tank-mark:after{content:"";position:absolute;width:7px;height:3px;right:-4px;top:1px;background:#718064}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:22px;z-index:3;background:#3e573951;backdrop-filter:blur(3px)}.overlay[data-phase="ready"]{align-items:flex-end;background:none;backdrop-filter:none;pointer-events:none;padding-bottom:22px}.briefing{max-width:400px;width:100%;text-align:center;border:1px solid #fff;background:#fffef4f5;border-radius:20px;padding:27px 28px 20px;box-shadow:0 7px 0 #47614222,0 16px 35px #263e3320;pointer-events:auto}.overlay[data-phase="ready"] .briefing{max-width:360px;padding:18px 24px 14px;border-radius:16px;box-shadow:0 4px 0 #47614222,0 10px 25px #263e3314}.little-label{font-size:10px;letter-spacing:2px;font-weight:700;color:#7b8e65}.briefing h2{font-family:var(--display);font-size:27px;letter-spacing:-.5px;margin:10px 0 11px;line-height:1.35}.overlay[data-phase="ready"] h2{font-size:23px;margin:6px 0}.briefing p{font-size:13px;color:#738066;line-height:1.9;margin:0 0 17px}.overlay[data-phase="ready"] p{font-size:12px;margin-bottom:12px;line-height:1.7}.primary-button{border:1px solid #e5b33b;background:var(--yellow);color:#405035;box-shadow:0 4px 0 #d9ab3d;width:100%;min-height:47px;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:13px;font-size:14px;font-weight:800}.primary-button:hover{background:#ffd462}.primary-button:active{box-shadow:0 1px 0 #d9ab3d;transform:translateY(3px)}.primary-button svg{width:18px}.overlay-note{display:block;font-size:10px;color:#9a9f89;margin-top:12px;line-height:1.6}.overlay[data-phase="ready"] .overlay-note{font-size:9px;margin-top:9px}.hit-flash{pointer-events:none;position:absolute;inset:0;z-index:2;box-shadow:inset 0 0 60px 20px #efb15b;opacity:0;transition:opacity .2s}.hit-flash.active{opacity:.65;transition:none}.controls{display:flex;justify-content:space-between;align-items:center;margin-top:23px;gap:20px;padding:0 6px}.movement-controls{display:flex;gap:17px;align-items:center}.dpad{display:grid;grid-template-columns:34px 34px 34px;grid-template-rows:30px 30px 30px;gap:3px}.dpad button{border:1px solid #cbd5bd;background:#fcfdf4;border-radius:7px;box-shadow:0 2px 0 #cbd5bd;color:#617454;font-size:21px;font-weight:500;line-height:1;touch-action:none}.dpad button[data-move="up"]{grid-column:2}.dpad button[data-move="left"]{grid-row:2}.dpad button[data-move="right"]{grid-row:2;grid-column:3}.dpad button[data-move="down"]{grid-row:3;grid-column:2}.dpad-dot{grid-row:2;grid-column:2;align-self:center;justify-self:center;color:#a0af8b;font-size:18px}.dpad button.is-held,.dpad button:active{background:#d6e3c1;box-shadow:none;transform:translateY(2px)}.movement-copy{display:flex;flex-direction:column;gap:8px}.movement-copy b{font-size:14px}.movement-copy>span{font-size:11px;color:#7d8b6e}.movement-copy small{font-size:10px;color:#929c83}kbd{font:500 10px ui-monospace,monospace;letter-spacing:2px}.action-controls{display:flex;gap:13px;align-items:center}.dash-button,.fire-button{border-radius:15px;display:flex;align-items:center;justify-content:center;gap:11px;height:68px;touch-action:none}.dash-button{background:#f9fbf1;border:1px solid #cbd5bd;box-shadow:0 4px 0 #cbd5bd;color:#617454;padding:0 19px}.dash-button>svg{width:26px;height:26px}.dash-button span,.fire-button>span:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.dash-button b{font-size:13px}.dash-button small{font-size:9px;letter-spacing:.5px;color:#93a080}.dash-button.cooling{opacity:.65}.fire-button{background:var(--yellow);border:1px solid #deb03e;box-shadow:0 5px 0 #d6aa3e;color:#46502e;padding:0 31px;min-width:190px}.fire-button b{font-size:20px;letter-spacing:2px}.fire-button small{font:500 10px var(--body);letter-spacing:1px;color:#8a7a3f}.fire-button small i{font-style:normal;margin:0 5px}.fire-button.is-held,.fire-button:active{box-shadow:0 1px 0 #d6aa3e;transform:translateY(4px);background:#ffda73}.dash-button.is-held{transform:translateY(3px);box-shadow:0 1px 0 #cbd5bd}.controls button:disabled{opacity:.5}.crosshair{width:27px;height:27px;border:2px solid currentColor;border-radius:50%;position:relative;display:inline-block}.crosshair:before,.crosshair:after{content:"";position:absolute;background:currentColor;left:50%;top:50%;transform:translate(-50%,-50%)}.crosshair:before{width:36px;height:2px}.crosshair:after{height:36px;width:2px}.footer{display:flex;justify-content:space-between;align-items:center;margin:19px 5px 0;color:#93a080;font-size:10px}.footer p{margin:0}.footer p>span{color:#a2b280;margin-right:7px}.footer>span{font-size:9px;letter-spacing:1px}.footer>span i{font-style:normal;display:inline-block;border:1px solid #cdd6bf;padding:3px 5px;border-radius:4px;margin-left:7px;font-family:ui-monospace,monospace}.help-dialog{border:1px solid #dde3cd;border-radius:23px;padding:34px;max-width:460px;width:calc(100% - 32px);color:var(--ink);background:var(--white);box-shadow:0 12px 55px #263e332a;max-height:calc(100dvh - 36px);overflow:auto}.help-dialog::backdrop{background:#304a3966;backdrop-filter:blur(4px)}.help-dialog h2{font-size:24px;margin:12px 0}.help-dialog p{font-size:13px;color:#7c886e;line-height:1.9}.help-dialog ol{padding-left:25px;margin:23px 0}.help-dialog li{padding-left:5px;margin:0 0 18px;font-size:14px}.help-dialog li::marker{font-weight:800;color:#94aa77}.help-dialog li b{display:block;margin-bottom:5px}.help-dialog li span{font-size:12px;line-height:1.8;color:#7b876d}.close-button{position:absolute;right:14px;top:12px;width:30px;height:30px;border:0;background:#edf1e2;color:#70835d;border-radius:9px;font-size:23px}.sr-only{position:fixed;top:0;left:0;margin:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.noscript{text-align:center;padding:20px}
.status-strip{display:flex;align-items:center;gap:20px;margin:0 6px 13px;min-height:54px}.kill-count{display:flex;align-items:center;gap:10px;min-width:155px}.medal-star{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e1e9cc;color:#819c55;font-size:28px}.kill-count>span:last-child{display:flex;align-items:baseline;gap:7px}.kill-count small{font-size:11px;color:#7b8b69;font-weight:600}.kill-count b{font:800 28px var(--display);color:#48694a}.kill-count em{font-size:10px;font-style:normal;color:#94a17d}.tank-health{width:240px;margin-left:auto}.tank-health>span{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.tank-health b{margin-left:auto;font:700 11px ui-monospace,monospace;color:#6b795a}.health-track{height:7px;background:#dfe6d0;border-radius:9px;overflow:hidden;margin-top:8px}.health-track>i{height:100%;width:100%;background:#718849;display:block;border-radius:9px;transition:width .12s linear}.player-health{display:flex;align-items:center;gap:10px;padding-left:20px;border-left:1px solid #d5ddc9;min-height:36px}.player-health>span{font-size:11px;font-weight:700;white-space:nowrap}.player-health b{font-size:31px;color:#668346;line-height:1}.restart-button{display:block;margin:14px auto 0;border:0;background:none;font-size:11px;color:#7e8b6d;text-decoration:underline;text-underline-offset:4px;padding:5px}.restart-button:hover{color:#48694a}
@media(min-width:621px){.game-shell{max-width:clamp(880px,calc((100dvh - 345px)*1.8 + 84px),1280px)}.battlefield{max-height:calc(100dvh - 350px);min-height:330px}.overlay[data-phase="ready"] .briefing{max-width:650px;display:grid;grid-template-columns:1.2fr 1fr;column-gap:24px;align-items:center;text-align:left;padding:18px 24px}.overlay[data-phase="ready"] .little-label{grid-column:1;font-size:9px}.overlay[data-phase="ready"] h2{grid-column:1;font-size:22px;margin:5px 0}.overlay[data-phase="ready"] p{grid-column:1;margin:0;font-size:11px}.overlay[data-phase="ready"] .primary-button{grid-column:2;grid-row:1/4;min-height:54px;font-size:13px}.overlay[data-phase="ready"] .overlay-note{grid-column:2;grid-row:4;margin-top:6px;font-size:8px;text-align:center}}
@media(min-width:1450px){.game-shell{padding-top:34px}.battlefield{aspect-ratio:1100/650;max-height:calc(100dvh - 350px)}}
@media(max-width:900px){.game-shell{padding:20px 24px 16px}.movement-copy{gap:6px}.movement-copy b{font-size:12px}.fire-button{min-width:170px;padding:0 24px}.dash-button{padding:0 14px}.controls{gap:10px}.overlay[data-phase="ready"]{padding-bottom:16px}.overlay[data-phase="ready"] .briefing{max-width:600px;padding:14px 20px 12px}.overlay[data-phase="ready"] .little-label{font-size:9px}.overlay[data-phase="ready"] h2{font-size:21px}.overlay[data-phase="ready"] p{font-size:11px}.overlay[data-phase="ready"] .primary-button{min-height:43px;font-size:13px}}
@media(max-width:620px){.game-shell{padding:17px 13px 14px}.topbar{margin-bottom:19px}.brand{gap:9px}.brand img{width:44px;height:44px}.eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:5px}h1{font-size:25px}h1 span{display:none}.toolbar{gap:6px}.tool-button{width:34px;height:35px;border-radius:10px;font-size:20px}.tool-button svg{width:18px}.battlefield{height:clamp(230px,calc(100dvh - 295px),520px);aspect-ratio:auto;border-width:4px;border-radius:17px;box-shadow:0 4px 0 #c3cdb3,0 9px 18px #4051320c}.overlay[data-phase="ready"]{padding:12px 12px 15px}.overlay[data-phase="ready"] .briefing{max-width:310px;background:#fffef4f5;padding:15px 17px 12px}.overlay[data-phase="ready"] h2{font-size:21px}.overlay[data-phase="ready"] p{font-size:11px}.overlay[data-phase="ready"] .overlay-note{font-size:8px}.controls{margin-top:19px;padding:0 1px;gap:8px;align-items:center}.movement-controls{gap:0}.dpad{grid-template-columns:36px 36px 36px;grid-template-rows:32px 32px 32px;gap:3px}.movement-copy{display:none}.action-controls{gap:8px}.dash-button{height:66px;width:57px;padding:7px 4px;flex-direction:column;gap:4px;border-radius:12px}.dash-button>svg{width:23px;height:23px}.dash-button span{gap:2px;align-items:center}.dash-button b{font-size:9px;letter-spacing:-.3px}.dash-button small{font-size:7px;letter-spacing:0}.fire-button{height:76px;min-width:120px;padding:0 14px;gap:8px;border-radius:14px}.fire-button b{font-size:15px;letter-spacing:1px}.fire-button small{font-size:8px;letter-spacing:0}.fire-button small i{margin:0 2px}.crosshair{width:20px;height:20px}.crosshair:before{width:27px}.crosshair:after{height:27px}.footer{margin-top:15px;font-size:9px}.footer>span{font-size:8px;letter-spacing:0}.footer>span i{display:none}.briefing{padding:24px 20px 18px}.briefing h2{font-size:24px}.briefing p{font-size:12px}.help-dialog{padding:29px 23px}.help-dialog h2{font-size:22px}}
@media(max-width:360px){.game-shell{padding-left:10px;padding-right:10px}.battlefield{height:clamp(230px,calc(100dvh - 295px),480px)}.dpad{grid-template-columns:32px 32px 32px;grid-template-rows:30px 30px 30px}.fire-button{min-width:108px;padding:0 11px}.action-controls{gap:7px}.dash-button{width:50px}.footer>span{display:none}}
@media(max-height:540px) and (min-width:621px){.game-shell{padding:12px 22px}.topbar{margin-bottom:12px}.brand img{width:39px;height:39px}.eyebrow{font-size:9px}h1{font-size:24px}.battlefield{aspect-ratio:2.6;min-height:180px;max-height:calc(100dvh - 225px)}.controls{margin-top:14px}.footer{margin-top:10px}.overlay[data-phase="ready"] .briefing{max-width:570px;padding:10px 15px}.overlay[data-phase="ready"] .little-label,.overlay[data-phase="ready"] .overlay-note{display:none}.overlay[data-phase="ready"] h2{font-size:19px}.overlay[data-phase="ready"] p{font-size:10px;margin-bottom:0}.overlay[data-phase="ready"] .primary-button{min-height:40px;font-size:12px;grid-row:1/3}.dpad{grid-template-rows:25px 25px 25px}.dash-button,.fire-button{height:56px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:620px){.status-strip{gap:10px;min-height:49px;margin:0 3px 12px}.kill-count{min-width:82px;gap:6px}.medal-star{display:none}.kill-count>span:last-child{gap:5px;flex-wrap:wrap;max-width:82px}.kill-count small{width:100%;font-size:9px}.kill-count b{font-size:23px;line-height:1}.kill-count em{font-size:9px}.tank-health{width:auto;flex:1;min-width:0}.tank-health>span{font-size:9px;gap:5px}.tank-mark{display:none}.tank-health b{font-size:9px}.health-track{height:6px;margin-top:7px}.player-health{padding-left:10px;gap:2px;flex-direction:column;min-height:36px}.player-health>span{font-size:9px}.player-health b{font-size:25px}.footer>span{display:none}}
@media(max-height:540px) and (min-width:621px){.status-strip{min-height:40px;margin-bottom:10px}.kill-count b{font-size:24px}.medal-star{width:34px;height:34px;font-size:24px}.footer{display:none}}
@media(max-width:620px) and (max-height:700px){.overlay[data-phase="paused"]{padding:12px}.overlay[data-phase="paused"] .briefing{padding:13px 16px 10px}.overlay[data-phase="paused"] .little-label{font-size:9px;letter-spacing:1px}.overlay[data-phase="paused"] h2{font-size:19px;margin:6px 0;line-height:1.35}.overlay[data-phase="paused"] p{font-size:11px;line-height:1.6;margin-bottom:10px}.overlay[data-phase="paused"] .primary-button{min-height:40px;font-size:12px}.overlay[data-phase="paused"] .restart-button{margin-top:7px;padding:3px;font-size:10px}.overlay[data-phase="paused"] .overlay-note{font-size:8px;margin-top:6px}}
@media(max-width:360px){.footer{margin-top:12px}}

/* Gallery navigation stays below the controls and never covers the battlefield. */
.game-shell .footer{display:flex;flex-wrap:wrap;gap:.6rem}
.game-shell .site-home-link{position:static;min-height:1.75rem;padding:.4rem .6rem;font-size:.7rem}
