@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');
:root{font-family:Barlow,Arial,sans-serif;color:#f3f0e6;background:#101615;font-synthesis:none;--accent:#efaf57;--line:#ffffff25;--muted:#adb8b0}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#18231fed;padding:12px 16px;transition:background .15s,border-color .15s}button:hover{border-color:var(--accent);background:#29382f}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f3c689;outline-offset:4px}button:disabled{opacity:.55;cursor:wait}button[hidden],[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}.shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#101815ef 0,transparent 39%,transparent 65%,#101815cf 100%),linear-gradient(0deg,#0c1312 0,transparent 31%)}header{height:100px;position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 4%;border-bottom:1px solid var(--line);z-index:2}.logo{display:flex;gap:14px;align-items:center;color:inherit;text-decoration:none;font-size:23px;letter-spacing:2px}.logo b{color:var(--accent);font-weight:500}.logo small{display:block;font-size:10px;letter-spacing:4px;margin-top:4px;color:var(--muted)}.brandmark{display:grid;place-items:center;background:var(--accent);color:#18211d;width:43px;height:45px;font-size:42px;font-weight:800;font-style:italic;font-family:'Barlow Condensed',sans-serif;clip-path:polygon(14% 0,100% 0,100% 78%,80% 100%,0 100%,0 15%)}nav{display:flex;gap:8px}nav button{font-size:12px;letter-spacing:1px;background:transparent;border:0}#garage{position:relative;min-height:calc(100svh - 100px);padding:38px 4% 0;display:grid;grid-template-columns:300px 1fr 245px;grid-template-rows:1fr auto auto;column-gap:30px;pointer-events:none}#garage section,#garage aside,#garage footer{pointer-events:auto}.tank-info{align-self:center;padding-bottom:24px}.eyebrow{font-size:12px;letter-spacing:2.2px;color:var(--accent);font-weight:600;margin:0 0 12px}.eyebrow span{float:right;color:var(--muted)}h1,h2,strong{font-family:'Barlow Condensed',Impact,sans-serif}h1{font-size:clamp(64px,7vw,105px);letter-spacing:1px;line-height:.98;margin:10px 0}h2{font-size:34px;line-height:1.05;font-weight:600;margin:12px 0 20px}.role{color:var(--accent);font-size:13px;letter-spacing:3px;margin:14px 0 22px}#tank-desc,.operations>p:not(.eyebrow){color:var(--muted);line-height:1.65;font-size:15px}#stats{margin:24px 0}.stat{display:grid;grid-template-columns:95px 1fr 36px;align-items:center;gap:12px;font-size:12px;letter-spacing:1px;margin:11px 0}.stat b{font-weight:400;text-align:right;color:var(--muted)}.stat-track{height:4px;background:#ffffff15}.stat-track i{display:block;height:100%;background:#b0c3ae}.power-label{border-top:1px solid var(--line);padding-top:15px;font-size:12px;letter-spacing:1px;color:var(--muted);display:flex;justify-content:space-between}.power-label b{font-size:14px;color:#d5e4d8;letter-spacing:0}.mode-picker{display:flex;margin-top:24px;gap:4px}.mode-picker button{flex:1;padding:12px 5px;font-size:12px;letter-spacing:.5px}.mode-picker button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#efaf5710}.muted{color:var(--muted);font-size:13px}.primary{display:block;width:100%;background:var(--accent);border:1px solid var(--accent);padding:17px;color:#16201a;font-weight:700;letter-spacing:1.5px;font-size:14px}.primary:hover{background:#ffc97b;color:#17231d}.secondary{display:flex;justify-content:space-between;gap:12px;width:100%;font-size:13px;letter-spacing:1px}.connection{font-size:12px;color:#a7b7ac;text-align:center;min-height:15px}.operations{align-self:center;padding-bottom:32px}.operations h2{font-size:38px}.brief{display:flex;align-items:center;gap:18px}.brief>span{font:24px 'Barlow Condensed';color:#adbbac80}.brief p{font-size:14px;line-height:1.5;color:#bdc7be}.record{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.record span{font-size:11px;letter-spacing:2px;color:var(--muted);display:block}.record strong{font-size:43px;font-weight:500;letter-spacing:3px}.operations button{margin-top:14px}.model-label{position:absolute;left:40%;top:61%;display:flex;flex-direction:column;gap:8px;color:#ccd5c5b3;font-size:11px;letter-spacing:2px;pointer-events:none}.model-label span:first-child{font-size:16px}.fleet{grid-column:1/-1;margin-top:12px}.fleet-heading{display:flex;justify-content:space-between;font-size:12px;letter-spacing:2px;margin-bottom:14px}.fleet-heading span+span{color:var(--muted);font-size:11px}#fleet{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}#fleet button{text-align:left;padding:16px 14px;border-top:2px solid #ffffff20;min-height:90px;background:linear-gradient(150deg,#24302ba6,#101a18e8);position:relative}#fleet button[aria-pressed=true]{border-color:var(--accent);background:#3b3524a8}#fleet button strong{font-size:23px;letter-spacing:1px;display:block}#fleet button small{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);margin-top:5px}#fleet button .num{float:right;color:#ffffff50;font-size:12px}footer{grid-column:1/-1;display:flex;justify-content:space-between;padding:22px 0;color:#94a199;font-size:10px;letter-spacing:.8px}kbd{font:10px Barlow;padding:3px 5px;border:1px solid #ffffff25;margin:0 4px 0 10px;color:#d1d7cf}kbd:first-child{margin-left:0}dialog{border:1px solid #5e6e60;background:#131e1af5;color:#f2f0e7;padding:34px;width:min(540px,calc(100vw - 28px));max-height:88svh;overflow:auto;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#030908ae;backdrop-filter:blur(8px)}dialog h2{font-size:40px}dialog p{line-height:1.6;color:#b4c1b7;font-size:16px}dialog .primary,dialog .secondary{margin-top:14px}dialog .close{float:right;background:none;border:0;font-size:26px;padding:0 5px}.result-grid{display:flex;gap:20px;justify-content:space-between;margin:28px 0}.result-grid span{font-size:12px;color:var(--muted)}.result-grid strong{font-size:40px;display:block;color:#f2f0e7}label{display:block;font-size:12px;letter-spacing:1px;margin:20px 0 9px}input{width:100%;padding:13px;border:1px solid #ffffff35;background:#ffffff08;color:white;font-size:16px}details{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}summary{cursor:pointer;color:#f0b962;font-size:16px}output{word-break:break-all;display:block;font-family:monospace;color:var(--accent);margin:16px 0}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:12px 6px;border-bottom:1px solid var(--line);text-align:left}th{font-size:11px;color:var(--accent);letter-spacing:1px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:90vw;padding:14px 24px;border:1px solid var(--accent);background:#17231bf0;z-index:10;display:none}#hud{position:fixed;inset:100px 0 0;pointer-events:none;padding:26px 4%}.hud-top{display:flex;justify-content:space-between}.hud-top h2{font-size:35px;margin:5px 0}.hud-top p:not(.eyebrow){font-size:14px;color:#d2dacc}.score{text-align:right}.score>span{font-size:12px;letter-spacing:2px}.score strong{display:block;font-size:54px;letter-spacing:2px}.score small{color:var(--accent)}.hud-bottom{position:absolute;bottom:35px;left:4%;right:4%;display:flex;align-items:flex-end;justify-content:space-between}.hud-bottom button{width:auto;pointer-events:auto}.health{width:280px}.health>div:first-child{display:flex;justify-content:space-between;font-size:13px}.bar{background:#ffffff25;height:8px;margin:12px 0}.bar i{display:block;width:100%;height:100%;background:#abd5a8;transition:width .15s}.health p{font-size:13px;margin:6px 0}.health p:last-child{color:var(--accent)}#wave-banner{position:absolute;left:50%;top:35%;transform:translateX(-50%);font:600 48px 'Barlow Condensed';color:#ffd392;text-align:center;text-shadow:0 2px 20px #000;letter-spacing:3px}#touch{display:none}body.playing .shade{background:linear-gradient(0deg,#101815b0,transparent 22%,transparent 80%,#101815b0)}body.playing header{height:75px}body.playing nav button:not(#sound):not(#fullscreen){display:none}body.playing #hud{top:75px}.upgrade-row{border:1px solid var(--line);padding:18px;margin-top:14px}.upgrade-row h3{margin:0}.upgrade-row p{font-size:14px;margin:8px 0}#profile-stats{color:var(--accent);line-height:1.6;font-size:15px}#history p{font-size:14px}.empty{padding:25px 0;color:var(--muted)}
@media(min-width:1600px){#garage{grid-template-columns:350px 1fr 290px}.tank-info{padding-bottom:60px}h1{font-size:115px}#tank-desc{font-size:17px}#fleet button{min-height:110px;padding:20px}.operations h2{font-size:44px}}
@media(max-width:1050px){#garage{grid-template-columns:270px 1fr;padding-top:25px}.operations{display:none}.model-label{left:58%;top:55%}footer>span+span{display:none}#fleet button{padding:12px 9px}#fleet button strong{font-size:20px}header{height:85px}#garage{min-height:calc(100svh - 85px)}}
@media(max-width:650px){header{height:76px;margin:0 5%}.logo{font-size:16px;gap:8px;letter-spacing:1px}.brandmark{width:30px;height:34px;font-size:31px}.logo small{font-size:8px;letter-spacing:2px}nav{gap:0}nav button{padding:10px 6px;font-size:10px}#fullscreen{display:none}#garage{padding:240px 5% 0;display:block;min-height:calc(100svh - 76px)}.tank-info{padding-bottom:0}h1{font-size:64px;margin-top:6px}.role{margin:10px 0}#tank-desc{font-size:15px;line-height:1.4;max-width:400px}#stats{display:flex;gap:14px;margin:17px 0}.stat{display:block;flex:1;margin:0}.stat b{display:none}.stat-track{margin-top:8px}.power-label{padding-top:12px}.mode-picker{margin-top:16px}.model-label{top:201px;left:5%;font-size:9px;gap:4px}.model-label span:first-child{font-size:12px}.shade{background:linear-gradient(0deg,#101815 0,#101815 35%,transparent 75%)}#fleet{grid-template-columns:repeat(3,1fr);gap:7px}.fleet{margin-top:25px}.fleet-heading{font-size:11px}.fleet-heading span+span{display:none}#fleet button{min-height:77px}footer{font-size:9px;padding:22px 0;line-height:2}kbd{font-size:9px;margin-left:3px;padding:2px}#hud{padding:20px 5%}.hud-top h2{font-size:28px}.hud-top .eyebrow{font-size:10px}.hud-top p{max-width:200px}.score strong{font-size:38px}.score>span{font-size:10px}.health{width:210px}.hud-bottom{bottom:180px;left:5%;right:5%}.hud-bottom button{font-size:11px;padding:8px}.health p{font-size:12px}#touch{position:absolute;bottom:30px;left:6%;right:6%;display:flex;align-items:center;justify-content:space-between;pointer-events:auto;touch-action:none}#joystick{height:110px;width:110px;border-radius:50%;border:1px solid #e0e8ca55;background:#ffffff15;display:grid;place-items:center;touch-action:none}#joystick i{width:42px;height:42px;border-radius:50%;background:#d3e0c966;pointer-events:none}#touch>div:last-child{display:flex;gap:12px;align-items:center}#touch button{border-radius:50%;width:70px;height:70px;padding:0;background:#1f342ac9;font-size:12px;touch-action:none}#touch #touch-fire{width:86px;height:86px;background:#d9983eb3;color:white;border-color:#ffc177}#wave-banner{font-size:32px;width:90%}dialog{padding:25px}dialog h2{font-size:33px}}
@media(pointer:coarse) and (min-width:651px){#touch{display:flex;position:absolute;bottom:25px;left:35%;right:15%;justify-content:space-between;pointer-events:auto;touch-action:none}#joystick{width:100px;height:100px;background:#ffffff25;border-radius:50%;display:grid;place-items:center}#joystick i{width:35px;height:35px;border-radius:50%;background:#fff7}#touch button{height:75px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.operations{grid-column:3}.mobile-workshop{display:none}
@media(max-width:1050px){.mobile-workshop{display:flex}}
@media(min-width:1051px) and (max-height:850px){header{height:75px}#garage{min-height:calc(100svh - 75px);padding-top:20px}h1{font-size:74px}.tank-info{padding-bottom:0}.role{margin:10px 0 13px}#tank-desc{font-size:14px;line-height:1.5}#stats{margin:16px 0}.stat{margin:9px 0}.power-label{padding-top:10px}.mode-picker{margin-top:13px}.primary{padding:14px}.operations{padding-bottom:0}.operations h2{font-size:32px}.operations>p:not(.eyebrow){font-size:14px;line-height:1.5}.brief p{margin:10px 0;font-size:13px}.record{padding-top:12px;margin-top:12px}.record strong{font-size:35px}.connection{margin:9px 0}.fleet{margin-top:15px}#fleet button{min-height:78px;padding:11px 12px}.fleet-heading{margin-bottom:10px}footer{padding:17px 0}.model-label{top:57%}}
@media(max-width:650px){.logo>span:last-child{white-space:nowrap;font-size:14px}.logo small{font-size:7px}nav button{font-size:9px;padding:10px 5px;white-space:nowrap}}
/* MK II: manual targeting and tactical controls. */
body.playing #world{cursor:crosshair}#hit-feedback{position:absolute;top:52%;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:1.4px;color:#ffdc8c;text-shadow:0 1px 5px #000;text-align:center;min-width:260px}.tactical-hud{position:absolute;right:4%;bottom:100px;width:250px;pointer-events:auto;background:#17221dd6;border-left:2px solid #d6b67b;padding:14px 16px}.ammo-heading{display:flex;align-items:center;justify-content:space-between;color:#e5d1a9}.ammo-heading>span{font:28px 'Barlow Condensed'}.ammo-heading b{font:34px 'Barlow Condensed';color:#f4f1e7}.ammo-picker{display:flex;gap:4px;margin-top:8px}.ammo-picker button{flex:1;font-size:11px;padding:9px 4px;white-space:nowrap}.ammo-picker button[aria-pressed=true]{border-color:#e8c88e;color:#f5d796}.reload-track{margin-top:13px;height:3px;background:#ffffff25}.reload-track i{height:100%;display:block;background:#e8c88e;width:100%}.tactical-hud p{font-size:11px;letter-spacing:1px;color:#e8d8b5;margin:8px 0}.tactical-hud small{font-size:10px;color:#acb7aa}.stick-wrap{display:flex;align-items:center;flex-direction:column;gap:9px}.stick-wrap>span{font-size:10px;letter-spacing:1px;color:#ded9c6}#aim-stick{height:110px;width:110px;border-radius:50%;border:1px solid #dfbc7b99;background:#c6a56820;display:grid;place-items:center;touch-action:none}#aim-stick i{width:40px;height:40px;border-radius:50%;background:#e1c29280;pointer-events:none}.touch-actions{display:flex;flex-direction:column;gap:7px!important}.touch-actions button{width:48px!important;height:36px!important;border-radius:5px!important;font-size:9px!important;line-height:1.15}#touch>.stick-wrap:last-child{display:flex;gap:9px;align-items:center}#touch .stick-wrap #joystick{border-color:#d6dec58c}#touch .touch-actions{align-items:center}
@media(max-width:650px){#touch{left:5%;right:5%;bottom:max(18px,env(safe-area-inset-bottom))}.tactical-hud{right:5%;bottom:177px;width:160px;padding:8px 10px}.tactical-hud .ammo-heading>span{font-size:21px}.tactical-hud .ammo-heading b{font-size:26px}.tactical-hud small{display:none}.ammo-picker{gap:2px}.ammo-picker button{font-size:9px;padding:7px 3px}.reload-track{margin-top:8px}.tactical-hud p{font-size:9px;margin-bottom:0}.hud-bottom{bottom:195px;right:auto;width:44%;display:block}.health{width:100%}.health>div:first-child{font-size:10px}.health p{font-size:10px;line-height:1.5}.hud-bottom>button{position:fixed;right:5%;top:188px}.hud-top h2{font-size:26px}.hud-top p:not(.eyebrow){font-size:11px;max-width:220px}.score strong{font-size:34px}#hit-feedback{top:44%;font-size:10px}.model-label{top:213px}#garage{padding-top:250px}.eyebrow{font-size:10px}#touch>div:last-child{gap:9px}.shade{background:linear-gradient(0deg,#101815 0,#101815f5 35%,transparent 75%)}}
@media(pointer:coarse) and (min-width:651px){#touch{left:5%;right:5%;bottom:18px}.hud-bottom{bottom:170px}.tactical-hud{bottom:170px}#touch #joystick,#aim-stick{width:100px;height:100px}.touch-actions{flex-direction:row;gap:10px!important}.touch-actions button{width:58px!important;height:44px!important}}
