@font-face{font-family:Field;src:url('assets/field-regular.ttf')}@font-face{font-family:Field;src:url('assets/field-bold.ttf');font-weight:700}
:root{--ink:#111b1b;--paper:#f0f0df;--green:#c1d97b;--dim:#bbc3af;--line:#75847280;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--ink);color:var(--paper);font-family:Field,'Arial Narrow',sans-serif;overscroll-behavior:none;touch-action:none}button,a{-webkit-tap-highlight-color:transparent}button{font-family:inherit;cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:4px}button,a{color:inherit}button{border:0}button[hidden],[hidden]{display:none!important}#game,#shade,#fade{position:fixed;inset:0;width:100%;height:100%}#game{display:block}#shade{pointer-events:none;background:linear-gradient(90deg,#071312ee 0%,#081311aa 32%,#09100f16 64%,#08131025),linear-gradient(0deg,#07100ed9,transparent 35%)}
.brand{position:fixed;left:4.5vw;top:max(24px,env(safe-area-inset-top));z-index:6;display:flex;align-items:center;gap:12px;letter-spacing:1.5px;pointer-events:none}.brand strong{font-size:22px;letter-spacing:-.5px}.brand span{opacity:.4}.brand small{font-size:11px;letter-spacing:2px}
#utilities{position:fixed;right:3vw;top:max(20px,env(safe-area-inset-top));z-index:8;display:flex;gap:6px}#utilities button{background:#14221cd9;border:1px solid #b4c1a544;min-width:40px;height:36px;font-weight:700;font-size:12px;letter-spacing:1px}#utilities button:hover{background:#3d4f36}#fullscreen{font-size:24px!important}#pause{font-size:20px!important}
#menu{position:fixed;inset:0;z-index:4;padding:90px 8vw 60px;display:flex;align-items:center}.main-panel{width:min(490px,48vw)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:3px;color:var(--green);display:flex;gap:12px;align-items:center}.eyebrow i{height:2px;width:30px;background:var(--green)}h1{margin:22px 0 8px;line-height:.82;letter-spacing:-2px}.franchise{display:block;font-size:clamp(22px,2.8vw,37px);line-height:1.2;letter-spacing:1px;margin-bottom:7px}.warfare{font-size:clamp(58px,7.4vw,105px);font-weight:700}.warfare b{color:var(--green)}.genre{font-size:22px;font-weight:700;letter-spacing:11px;margin:23px 0}.intro{font-size:19px;line-height:1.4;color:#d2d8c9;margin:0 0 24px}.actions{display:flex;flex-direction:column;gap:9px;width:min(330px,100%)}.primary,.more{display:flex;justify-content:space-between;align-items:center;min-height:50px;width:100%;padding:0 22px;font-size:18px;font-weight:700;letter-spacing:2px;text-decoration:none}.primary{background:var(--green);border:1px solid #e1eab8;color:#18241c;transition:filter .15s}.primary:disabled{background:linear-gradient(90deg,#c1d97b var(--load,0%),#73864e var(--load,0%));color:#152015}.primary:hover{filter:brightness(1.12)}.more{background:#1b2c23e6;border:1px solid #95a48099}.more:hover{background:#3b5134}.secondary{display:flex;gap:22px;flex-wrap:wrap;margin-top:12px}.secondary button{background:none;padding:8px 0;color:var(--dim);font-weight:700;letter-spacing:1.4px;font-size:13px}.secondary button:hover{color:var(--green)}.menu-bottom{position:absolute;left:4.5vw;right:4.5vw;bottom:24px;border-top:1px solid #99ae882a;padding-top:14px;display:flex;justify-content:space-between;font-size:11px;letter-spacing:2px;color:#b3bbaa}.menu-bottom i{color:var(--green);padding:0 12px;font-style:normal}
.modal-panel{max-width:640px;width:100%;padding:30px;background:#0e1a15ee;border-left:3px solid var(--green)}h2{font-size:58px;line-height:.94;margin:18px 0 20px;letter-spacing:-.5px}.modal-panel p{font-size:19px;line-height:1.4;color:var(--dim);margin:0 0 20px}.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin:0 0 24px}.controls-grid div{display:flex;align-items:center;gap:12px;font-size:16px}.controls-grid b{min-width:58px;font-size:13px;color:var(--green);border:1px solid var(--line);padding:5px;text-align:center}.result-stats{display:flex;gap:30px;margin:20px 0}.result-stats span{font-size:12px;letter-spacing:1px;color:var(--dim)}.result-stats strong{display:block;font-size:29px;color:var(--paper);margin:5px 0}
#hud{position:fixed;inset:26px 4vw auto;z-index:3;pointer-events:none;display:flex;justify-content:space-between;gap:20px;text-shadow:0 2px 3px #000}.operator-status{width:240px}.hud-label{font-size:19px;font-weight:700;display:flex;justify-content:space-between}.hud-label span{font-size:14px;font-weight:400;align-self:center}.health-track{height:7px;background:#131a14;border:1px solid #a4b58980;margin:8px 0 12px}.health-track i{display:block;width:100%;height:100%;background:var(--green)}.resources{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1.3px;color:#bac6ae}.resources b{display:block;font-size:21px;color:var(--paper);letter-spacing:1px;margin-top:3px}.mission{text-align:center;position:absolute;left:50%;transform:translateX(-50%);top:0;min-width:270px}.mission small{font-size:11px;letter-spacing:2px;color:var(--green)}.mission strong{display:block;font-size:24px;letter-spacing:1px;margin:5px 0}.mission>span{font-size:12px;letter-spacing:1.1px;color:#d2d8c9}.score{text-align:right;margin-right:148px}.score small{font-size:10px;letter-spacing:3px;color:var(--green)}.score strong{display:block;font-size:28px;letter-spacing:2px}
#boss-hud{position:fixed;z-index:2;top:135px;left:50%;transform:translateX(-50%);width:min(320px,50vw);text-align:center;font-size:12px;letter-spacing:2px;color:#efd09d;text-shadow:0 2px 3px #000}#boss-hud>div{height:6px;background:#161b17;border:1px solid #ac887b80;margin-top:7px}#boss-bar{display:block;height:100%;background:#d98355;width:100%}#toast{position:fixed;z-index:3;top:24%;left:50%;transform:translateX(-50%);text-align:center;font-weight:700;letter-spacing:2px;font-size:22px;color:var(--green);text-shadow:0 2px 5px #000;pointer-events:none;white-space:nowrap;opacity:0;transition:opacity .2s}#toast.visible{opacity:1}#keyboard-hint{position:fixed;z-index:3;bottom:20px;left:50%;transform:translateX(-50%);display:none;gap:20px;color:#b7c4ac;font-size:12px;white-space:nowrap;letter-spacing:1px}#keyboard-hint b{border:1px solid #b7c4ac66;padding:4px;margin-right:5px;color:#e0e7d7}.playing #keyboard-hint{display:flex}.playing #shade{display:none}.playing .brand{display:none}.playing #menu{display:none}.playing #hud{display:flex}.playing #pause{display:block}body:not(.playing) #pause{display:none}#fade{z-index:12;background:#0b1310;pointer-events:none;opacity:0;transition:opacity .4s}#fade.active{opacity:1}
#touch{position:fixed;bottom:calc(18px + var(--safe));left:22px;right:22px;z-index:7;pointer-events:none;display:flex;align-items:flex-end;justify-content:space-between}#stick{height:112px;width:112px;background:#1b281c77;border:2px solid #dcebc566;border-radius:50%;position:relative;pointer-events:auto;touch-action:none}#stick-knob{position:absolute;left:33px;top:33px;width:42px;height:42px;border-radius:50%;background:#c1d97b88;border:1px solid #e7edceaa;pointer-events:none}.touch-actions{display:grid;grid-template-columns:repeat(3,64px);gap:9px;pointer-events:auto}.touch-actions button{height:62px;border-radius:50%;background:#20321ee6;border:1px solid #c1d97ba0;color:#f0f4df;font-size:12px;font-weight:700}.touch-actions .touch-small{height:42px;border-radius:7px;background:#152318e6;font-size:10px}.touch-actions button:active{background:#729646}body.touch-mode #keyboard-hint{display:none!important}
@media(min-width:1500px){.main-panel{width:550px}.warfare{font-size:115px}.intro{font-size:23px}.actions{width:350px}}
@media(max-width:800px){.brand{left:24px;top:22px}.brand strong{font-size:19px}.brand small{font-size:9px;letter-spacing:1px}#utilities{right:20px;top:18px}#utilities button{height:33px;min-width:33px;font-size:10px}#menu{padding:88px 7vw 54px}.main-panel{width:54vw}.eyebrow{font-size:10px;letter-spacing:1.5px}.warfare{font-size:64px}.franchise{font-size:24px}.genre{font-size:17px;letter-spacing:7px;margin:18px 0}.intro{font-size:17px}.primary,.more{min-height:46px;font-size:16px}.menu-bottom{font-size:9px;letter-spacing:1px}.score{display:none}.mission{top:105px}.operator-status{width:200px}.mission strong{font-size:20px}#boss-hud{top:192px}#hud{inset:22px 24px auto}#toast{top:34%;font-size:18px}}
@media(max-width:540px) and (orientation:portrait){#menu{align-items:flex-end;padding:80px 7vw 68px}.main-panel{width:100%}.eyebrow{font-size:10px}.warfare{font-size:clamp(55px,15vw,77px)}h1{margin-top:13px}.genre{margin:14px 0;font-size:17px}.intro{font-size:16px;margin-bottom:17px}.actions{width:100%;max-width:350px}.primary,.more{min-height:47px}.secondary{margin-top:7px}.menu-bottom{bottom:18px}.menu-bottom span:last-child{display:none}#shade{background:linear-gradient(0deg,#071312 8%,#071312e8 44%,#0713121a 83%)}.brand{left:7vw;top:22px}.brand small{max-width:86px;line-height:1.4;font-size:8px}#utilities{right:7vw}#utilities button{min-width:31px}.modal-panel{padding:22px;width:100%}h2{font-size:43px}.modal-panel p{font-size:16px}.controls-grid{gap:8px;grid-template-columns:1fr 1fr}.controls-grid div{font-size:13px;gap:7px}.controls-grid b{min-width:43px;font-size:11px}.mission{top:112px;width:100%;min-width:0}.operator-status{width:185px}.hud-label{font-size:18px}.resources b{font-size:18px}#hud{inset:24px 7vw auto}#boss-hud{top:202px;width:66vw}#toast{top:31%;font-size:17px}.touch-actions{grid-template-columns:repeat(3,54px);gap:7px}.touch-actions button{height:54px;font-size:10px}.touch-actions .touch-small{height:37px;font-size:9px}#stick{width:98px;height:98px}#stick-knob{left:26px;top:26px}#touch{left:18px;right:18px}}
@media(max-height:540px) and (orientation:landscape){.brand{left:4vw;top:12px}.brand strong{font-size:17px}.brand small{font-size:8px}#utilities{top:10px}#utilities button{height:30px}#menu{padding:57px 7vw 32px}.main-panel{width:47vw}.eyebrow{font-size:9px;letter-spacing:1.5px}h1{margin:11px 0 5px}.franchise{font-size:19px;margin-bottom:3px}.warfare{font-size:clamp(38px,9vh,58px)}.genre{font-size:13px;letter-spacing:6px;margin:11px 0}.intro{display:none}.actions{gap:6px;max-width:290px}.primary,.more{min-height:36px;font-size:14px;padding:0 16px}.secondary{margin-top:4px;gap:18px}.secondary button{font-size:11px;padding:6px 0}.menu-bottom{bottom:10px;padding-top:7px;font-size:8px}.modal-panel{max-width:600px;padding:17px 22px}h2{font-size:34px;margin:10px 0}.modal-panel p{font-size:14px;margin:0 0 10px}.controls-grid{gap:5px 22px;margin-bottom:12px}.controls-grid div{font-size:13px}.controls-grid b{padding:2px}.result-stats{margin:8px 0}.result-stats strong{font-size:22px}.mission{top:0;min-width:260px}.mission small{font-size:9px}.mission strong{font-size:19px;margin:2px 0}.mission>span{font-size:10px}.operator-status{width:172px}.hud-label{font-size:16px}.hud-label span{font-size:11px}.health-track{margin:5px 0 6px;height:5px}.resources{font-size:9px}.resources b{font-size:16px}#hud{inset:12px 4vw auto}#boss-hud{top:74px;font-size:10px}#toast{top:24%;font-size:17px}#touch{bottom:10px;left:20px;right:20px}#stick{width:82px;height:82px}#stick-knob{width:32px;height:32px;left:23px;top:23px}.touch-actions{grid-template-columns:repeat(3,48px);gap:6px}.touch-actions button{height:44px;font-size:9px}.touch-actions .touch-small{height:29px;font-size:8px}#keyboard-hint{bottom:11px;font-size:10px;gap:12px}}

@media(max-height:540px) and (orientation:landscape){body[data-screen="help"] .modal-panel{max-width:740px;padding:15px 22px}body[data-screen="help"] .controls-grid{grid-template-columns:repeat(4,1fr);gap:7px 12px}body[data-screen="help"] .controls-grid div{font-size:12px;gap:6px}body[data-screen="help"] .controls-grid b{min-width:40px;font-size:11px}body[data-screen="help"] .actions{flex-direction:row;max-width:none;width:100%;gap:10px}body[data-screen="help"] .actions>*{flex:1}body[data-screen="help"] .menu-bottom{display:none}body[data-screen="help"] h2{margin:7px 0 12px}body[data-screen="help"] .modal-panel p{line-height:1.25;margin-bottom:13px}}
@media(max-width:540px) and (max-height:750px) and (orientation:portrait){body[data-screen="help"] .modal-panel{padding:16px}body[data-screen="help"] h2{font-size:32px;margin:10px 0 16px}body[data-screen="help"] .controls-grid{margin-bottom:16px;gap:6px}body[data-screen="help"] .modal-panel p{font-size:14px;line-height:1.3;margin-bottom:16px}body[data-screen="help"] .primary,body[data-screen="help"] .more{min-height:42px}body[data-screen="help"] .menu-bottom{display:none}}
