@font-face{font-family:TankGeo;src:url('/assets/fonts/NotoSansGeorgian.ttf') format('truetype');font-weight:100 900;font-stretch:62.5% 100%;font-display:swap}
@font-face{font-family:Arcade;src:url('/assets/fonts/PressStart2P.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#101820;--panel:#18242d;--edge:#34434c;--ink:#eee9dc;--muted:#9aaeb7;--gold:#eac078;--cyan:#8dd0dc;--brick:#b5784e}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.7 TankGeo,sans-serif}button,input,select{font:inherit}button,summary,select{cursor:pointer}button:disabled{cursor:not-allowed}button,input,select,a{-webkit-tap-highlight-color:transparent}
*{scrollbar-width:thin;scrollbar-color:#4a606d #14212a}.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}
h1,h2,h3,p{margin:0 0 14px}h1,h2,h3{font-weight:750;line-height:1.4}h1{font-size:32px;letter-spacing:-.7px}h2{font-size:20px}h3{font-size:15px}p{color:var(--muted)}a{color:var(--gold)}canvas{image-rendering:pixelated}img{max-width:100%}
button,.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid #4a5b65;border-bottom:3px solid #293943;border-radius:3px;background:#263640;color:#e6e8df;font-weight:650;font-size:12px;line-height:1.5;text-align:center;text-decoration:none;transition:background .12s,border-color .12s,transform .08s}
button:hover:not(:disabled){background:#33464f;border-color:#758992}button:active:not(:disabled){transform:translateY(1px)}button.selected{background:#34413f;border-color:#ab8c58;color:#ffe0a0}button:disabled{opacity:.46}
button.gold,.btn.gold{background:#dfb572;border-color:#f1ce93;border-bottom-color:#ac8050;color:#201d17}button.gold:hover:not(:disabled){background:#f0ca8b;border-color:#ffe1ae}button.brick{background:#995e40;color:#fff0d2;border-color:#c58b61;border-bottom-color:#70432e}button.brick:hover:not(:disabled){background:#ae7250}button.danger{background:#392a2b;border-color:#815252;color:#e8b0a6}button.small{font-size:11px;min-height:35px;padding:7px 12px}.linklike{min-height:0;border:0;background:none;color:var(--gold);padding:4px}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}input,select{min-height:44px;max-width:100%;min-width:0;padding:10px 12px;color:var(--ink);background:#111d25;border:1px solid #4a5d68;border-radius:3px}input::placeholder{color:#798e99}input[type=checkbox]{accent-color:var(--gold);width:18px;height:18px;min-height:0;margin:0}input[type=range]{padding:0;accent-color:var(--gold)}label{display:grid;gap:8px;font-size:12px;color:var(--muted)}
.shell{display:grid;grid-template-columns:204px minmax(0,1fr);min-height:100dvh}.shell>div{min-width:0}.sidebar{position:sticky;top:0;height:100dvh;padding:25px 16px;display:flex;flex-direction:column;background:#142029;border-right:1px solid #2c3d46}.brand{font-size:0}.game-logo{display:block;width:100%;max-width:210px;height:auto;object-fit:contain;image-rendering:pixelated}.brand small{display:block;text-align:center;margin-top:5px;color:#967e5d;font:6px/2 Arcade,monospace;letter-spacing:.4px}
.nav{display:grid;gap:5px;margin-top:35px}.nav button{justify-content:flex-start;min-height:47px;padding:11px 12px;gap:12px;border:1px solid transparent;background:transparent;color:#a8b8be;text-align:left;border-radius:2px;font-size:12px}.nav button b{width:21px;flex-shrink:0;color:#677e8a;font:8px Arcade,monospace;font-weight:400}.nav button:hover:not(:disabled){background:#1f303a;border-color:transparent;color:var(--ink)}.nav button.selected{background:#26363c;border-color:transparent;box-shadow:inset 3px 0 var(--gold);color:#f4d69f}.nav button.selected b{color:#cfac70}
.side-bottom{margin-top:auto;padding-top:22px;color:#80949e;font-size:10px;line-height:1.9}.online-dot{display:inline-block;width:6px;height:6px;margin-right:7px;background:#78ba99}.divider{height:1px;margin:22px 0;background:#31414a}.topbar{min-height:75px;padding:16px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #2b3b44}.profile-line,.wallet{display:flex;align-items:center;gap:12px}.profile-line strong{font-size:12px}.level{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid #62563f;background:#302b23;color:#e8c993;font-size:10px;font-weight:700;white-space:nowrap}.currency{display:flex;align-items:center;gap:8px;padding:5px 0 5px 18px;color:#e9c884;font:10px/1.8 Arcade,TankGeo,sans-serif}.currency.parts{color:#a9c5d2}.wallet{gap:22px}
.content{max-width:1510px;margin:auto;padding:34px 36px 50px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.pagehead h1{margin-bottom:8px}.pagehead p{margin:0;font-size:12px}.pagehead>button{flex-shrink:0}.eyebrow,.small-label{display:block;color:var(--gold);font:8px/1.9 Arcade,TankGeo,sans-serif;letter-spacing:1px;margin-bottom:10px}.small-label{color:#92b3bd;font-size:8px}.muted,.hint{color:var(--muted)}.hint{font-size:11px}.row,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.actions{gap:10px}.between{justify-content:space-between}
.panel,.item,.brick-panel,.team-card,.reward{position:relative;background:var(--panel);border:1px solid var(--edge);border-radius:3px}.panel,.brick-panel{padding:25px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.cards>*{min-width:0}.cards p{font-size:12px}.home-cards{margin-top:22px}.home-cards .panel{display:flex;flex-direction:column}.home-cards h2{font-size:17px;margin:8px 0 12px!important}.home-cards p{flex:1}.home-cards button{margin-top:12px;width:100%;font-size:11px}
/* Restrained, larger brick accents on key surfaces. */
.hero,.brick-panel,.result-hero,.stage-intro{position:relative;overflow:hidden}.hero::before,.brick-panel::before,.result-hero::before,.stage-intro::before{content:'';position:absolute;top:0;left:0;right:0;height:9px;background:linear-gradient(#efbe864d 0 2px,transparent 2px),repeating-linear-gradient(90deg,#ae734c 0 43px,#593f30 43px 46px);border-bottom:2px solid #6b4934;pointer-events:none}.brick-panel{padding-top:30px}
.hero{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:18px;min-height:375px;padding:38px;border:1px solid #465047;border-radius:3px;background:linear-gradient(90deg,#15232cfa,#15232ce8 47%,#15232c66),url('/assets/arena.png') center/cover}.hero h1{font-size:clamp(30px,3.8vw,48px);line-height:1.28;color:#f4e7ca;margin:15px 0 20px;letter-spacing:-1.1px}.hero p{max-width:430px;font-size:13px}.hero .actions{margin-top:22px}.hero .actions button{font-size:12px}.hero .hint{font-size:10px!important;margin-bottom:0}
/* CSS boxes and source rectangles preserve artwork proportions at any viewport. */
canvas[data-icon],.stage-tank,#hud-weapon,#special-icon,[id^=skill-icon-]{aspect-ratio:1;object-fit:contain;flex-shrink:0;display:block;height:auto}.hero-tank{width:min(100%,300px);max-width:100%;height:auto!important;justify-self:center;align-self:center}
.mission{display:grid;grid-template-columns:1fr 1.2fr;gap:22px;margin-bottom:28px}.difficulty{display:flex;flex-wrap:wrap;gap:8px}.difficulty button{font-size:11px;padding-inline:13px}.mission p{font-size:12px}.stats-list{display:grid;gap:3px}.stat-line{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #2e3e48;font-size:12px}.stat-line b{color:#e2d4b9;font-weight:650}
.loadout-strip{display:flex;align-items:center;gap:16px;padding:14px 18px;background:#17232b;border:1px solid #35434a;border-radius:3px;margin-bottom:26px}.loadout-strip canvas{width:64px}.loadout-strip>div{min-width:0;flex:1}.loadout-strip .small-label{font-family:TankGeo,sans-serif;letter-spacing:.3px;font-size:10px;margin-bottom:3px}.loadout-strip strong{font-size:13px}.loadout-strip strong span{color:var(--muted);font-weight:500}.loadout-strip p{margin:3px 0 0;font-size:10px}.loadout-strip>button{flex-shrink:0}
.region{margin-top:27px}.region-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}.region-head h2{margin:0;font-size:16px}.region-dot{width:8px;height:8px;background:var(--region);flex-shrink:0}.levels{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.level-card{display:flex;flex-direction:column;gap:5px;min-height:109px;padding:14px 8px;background:#192832;border:1px solid #3b4f59}.level-card strong{font:18px/1.6 Arcade,monospace}.level-card small{font-size:9px;font-weight:500;color:#a4b6bc}.level-card .stars{min-height:17px;font-size:11px;color:#d9bb7e}.level-card.done{border-color:#577561}.level-card:disabled{opacity:.4}
.tabs{display:flex;flex-wrap:wrap;gap:7px}.shop-tabs{border-bottom:1px solid #3b4951;margin-bottom:25px;gap:24px}.shop-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#a0b4bf;padding:13px 2px 15px;min-height:48px;font-size:13px}.shop-tabs button:hover:not(:disabled){background:transparent;border-bottom-color:#7b8785;color:var(--ink)}.shop-tabs button.selected{background:transparent;color:#f0cd92;border-bottom-color:var(--gold)}.shop-tabs button span{font:8px/1 Arcade,monospace;color:#8da0a8;margin-left:5px}
.shop-toolbar,.shop-filters{display:flex;justify-content:space-between;align-items:center;gap:18px}.shop-toolbar{margin-bottom:18px}.shop-toolbar h2{font-size:19px;margin-bottom:5px}.shop-toolbar p{font-size:11px;margin:0}.shop-search{width:240px;flex-shrink:0}.shop-search input{min-height:40px;font-size:11px;width:100%}.shop-filters{margin-bottom:20px}.filter-buttons{display:flex;gap:5px}.filter-buttons button{border:1px solid transparent;background:transparent;font-size:10px;min-height:32px;padding:5px 10px;color:#9db0b8}.filter-buttons button.selected{background:#2a3a41;border-color:#4a5a61;color:#e7d1a8}
.shop-head{align-items:center}.shop-head h1{font-size:29px}.shop-head .loadout-strip{width:365px;margin:0;gap:11px;padding:10px 12px;flex-shrink:0}.shop-head .loadout-strip canvas{width:50px}.shop-head .loadout-strip strong{font-size:11px}.shop-head .loadout-strip p{display:none}.shop-head .loadout-strip>button{padding-inline:10px;font-size:10px}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;align-items:stretch}.item{overflow:hidden;display:flex;flex-direction:column;min-width:0}.item.selected{border-color:#958160}.item-art{height:170px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse at center,#293d48,#14232d 78%);border-bottom:1px solid #30434d}.item-art canvas{width:132px;height:auto}.item-code{position:absolute;top:13px;left:15px;font:8px/1.5 Arcade,monospace;color:#789eaf}.item-badge{position:absolute;right:13px;top:10px;color:#a7b5b8;font-size:9px;font-weight:600}.item-badge.equipped{color:#e8c78e}
.item-info{display:flex;flex-direction:column;flex:1;padding:19px}.item-info h3{font-size:16px;line-height:1.55;margin-bottom:8px;overflow-wrap:anywhere}.item-description{font-size:11px;min-height:3.5em;line-height:1.8;margin-bottom:16px}.item-stats{display:flex;gap:25px;padding:0 0 16px;margin-bottom:17px;border-bottom:1px solid #31424b}.item-stats span{display:grid;gap:4px}.item-stats small{font-size:9px;color:#8ea3af}.item-stats b{font-size:12px;font-weight:600;color:#d7e0df}.item-purchase{margin-top:auto}.price{display:flex;align-items:center;gap:15px;min-height:24px;font:10px/1.8 Arcade,TankGeo,sans-serif;color:#e7c482;margin-bottom:12px}.parts-price{color:#a7c1cd}.owned-label{font:11px/1.8 TankGeo,sans-serif;color:#96bea4}.item-actions{display:flex;gap:8px;flex-wrap:wrap}.item-actions button{flex:1;min-width:90px;min-height:41px;padding:9px 12px;font-size:11px}.purchase-hint{display:block;color:#9d9a8e;font-size:9px;line-height:1.7;margin-top:9px}
.sound-details{margin-top:16px;padding-top:11px;border-top:1px solid #30404a}.sound-details summary{font-size:10px;color:#90a5b1;list-style:none}.sound-details summary::after{content:'+';float:right;color:#b9c8cc}.sound-details[open] summary::after{content:'−'}.sound-previews{display:flex;gap:5px;margin-top:10px}.sound-previews button{min-width:0;flex:1;min-height:30px;padding:5px;font-size:9px;background:#1d303b;border:1px solid #3b5360;color:#b5d2da}.shop-note{margin:24px 0 0;max-width:760px;line-height:1.9}
.garage-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px}.garage-preview{display:grid;place-items:center;padding:24px;background:linear-gradient(#a3c2cc08 1px,transparent 1px),linear-gradient(90deg,#a3c2cc08 1px,transparent 1px),#12212a;background-size:32px 32px;border:1px solid #314653;min-height:280px}.garage-preview canvas{width:min(100%,245px);height:auto}.equipment{display:grid;grid-template-columns:1fr 1fr;gap:17px}.equipment label{min-width:0;font-size:11px}.equipment select{width:100%;font-size:11px}.garage-layout .panel>p{font-size:12px}
.rooms-list{display:grid;gap:12px}.room-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px;background:#172832;border:1px solid #354953;border-radius:3px}.room-row h3{margin-bottom:4px}.room-row p{font-size:11px;margin:0}.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.team-card{border-top:3px solid var(--team);padding:20px;min-height:225px}.team-card h3{color:var(--team)}.member{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #30424c;font-size:11px}.code{font:20px/2 Arcade,monospace;letter-spacing:4px;color:var(--gold)}.empty{padding:35px;border:1px dashed #405562;text-align:center;color:#99aeb8;font-size:12px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.settings-grid .panel>h2{font-size:18px}.settings-grid label{font-size:12px}.settings-grid input:not([type=checkbox]){width:100%}table{border-collapse:collapse;width:100%}td,th{padding:10px 5px;text-align:left;font-size:11px;border-bottom:1px solid #30424c}.key{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 6px;border:1px solid #566973;border-bottom:2px solid #425460;border-radius:2px;background:#253640;color:#d6e0df;font:9px/1.7 Arcade,TankGeo,monospace;font-style:normal}
.loading{min-height:100dvh;display:grid;align-content:center;justify-items:center;padding:20px;gap:20px}.loading-logo{width:min(480px,80vw);height:auto;image-rendering:pixelated}.loading strong{font:25px Arcade,monospace;color:var(--gold)}.loading p{margin:0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(580px,90vw);padding:12px 20px;background:#273c46;border:1px solid #b79a67;border-radius:3px;color:#f4dfb9;font-size:12px;box-shadow:0 6px 22px #0005;display:none}#toast.visible{display:block}
dialog{position:fixed;max-width:530px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:#1a2933;border:1px solid #718078;border-top:4px solid #c59c62;border-radius:3px;padding:31px;color:var(--ink);box-shadow:0 20px 80px #0008}dialog::backdrop{background:#061019cf}dialog .eyebrow{margin-bottom:19px}dialog h2{font-size:21px}dialog p{font-size:12px}dialog .actions{margin-top:24px}dialog .actions button{flex:1 1 170px}dialog .actions .gold{flex-basis:100%}
.battle-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#0a121a}.battle-top{height:58px;flex-shrink:0;padding:7px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#192933;border-bottom:1px solid #6e624d}.battle-top .brand{width:128px;flex-shrink:0}.battle-top .game-logo{width:128px;height:auto}.round-status{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}.round-label{font-size:12px;font-weight:700;color:#e3cd9e}.battle-top .actions{flex-wrap:nowrap;gap:7px}.battle-top button{font-size:10px;min-height:33px;padding:6px 10px}.battle-main{display:grid;grid-template-columns:minmax(0,1fr) 224px;flex:1;min-height:0}.stage{position:relative;min-width:0;min-height:0;padding:5px;display:flex}#arena{display:block;width:100%;height:100%;min-width:0;min-height:0;outline:none;touch-action:none}
.hud{padding:15px 13px;background:#14242e;border-left:1px solid #344b57;overflow:auto}.hud h3{font-size:10px;font-weight:600;color:#acbab9;margin:12px 0 4px}.hud #hud-name{font-size:11px;color:#e2d0ad;margin-bottom:12px}.meter{height:12px;border:1px solid #58717b;background:#091820;padding:2px;margin:4px 0}.meter>i{display:block;height:100%;width:0;background-color:#79bd89;transition:width .1s linear}.meter.armor>i{background-color:#74bdd4}.meter.heat>i{background-color:#d4a369}.meter-text{display:flex;justify-content:space-between;gap:7px;color:#a4b9c3;font-size:9px;line-height:1.6}.weapon-panel{display:flex;align-items:center;gap:10px;margin:15px 0;padding:10px 0;border-block:1px solid #334a56}.weapon-panel canvas{width:52px;height:auto}.weapon-panel>div{min-width:0}.weapon-panel b{font-size:11px}.weapon-panel small{display:block;font-size:9px;color:#92acb8;line-height:1.7}#weapon-damage{color:#ceb784}#minimap{display:block;width:100%;height:auto;max-width:190px;margin:auto;border:1px solid #4a6473;background:#080f15}.hud-teams{display:flex;gap:7px;margin:10px 0}.hud-team{padding:2px 5px;border:1px solid #3b4e59;background:#10212b;font-size:10px}.killfeed{font-size:9px;line-height:1.8;color:#8ca4b0;margin-top:10px}#enemy-count{font-size:10px;line-height:1.7;margin:12px 0}.combat-compare{font-size:10px;border-top:1px solid #344a56;padding-top:10px;margin-top:12px}.combat-compare summary{color:#c8b68f;font-size:10px}.combat-compare td,.combat-compare th{font-size:9px;padding:6px 3px;text-align:right}.combat-compare td:first-child{text-align:left}.combat-compare td:nth-child(2){color:#9ccdd9}.combat-compare td:nth-child(3){color:#dbb08b}.combat-compare p{font-size:9px;line-height:1.8;margin:10px 0}
.battle-bottom{min-height:102px;flex-shrink:0;padding:9px 17px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#192933;border-top:1px solid #344b56}.skill-buttons{display:flex;gap:10px}.skill-button{width:180px;min-height:78px;justify-content:flex-start;padding:9px 13px;gap:10px;font-size:11px;background:#21353f;border-color:#506674}.skill-button canvas{width:48px;height:auto}.skill-button>span{padding-bottom:10px;min-width:0;overflow-wrap:anywhere}.skill-button .key{position:absolute;right:10px;bottom:7px;font-size:8px;padding:1px 4px}.skill-button .cool{position:absolute;right:9px;top:5px;background:#122530;font-size:11px;color:#ecd097;padding:1px 4px}.skill-button .cool:empty{display:none}.skill-button:disabled{opacity:.58}.controls-tip{font-size:10px}.controls-tip .key{font-size:8px}
.wave-clock{display:flex;align-items:center;gap:8px;min-height:28px;padding:2px 8px;border:1px solid #796b4f;background:#302e25;color:#edcd8c;font-size:10px;font-weight:700}.hourglass{width:16px;height:22px;animation:hourglass-turn 1s steps(8,end) infinite}.wave-dots{font-family:Arcade;animation:wave-dots 1s steps(3,end) infinite}.paused *{animation-play-state:paused!important}@keyframes hourglass-turn{0%,46%{transform:rotate(0deg)}80%,100%{transform:rotate(180deg)}}@keyframes wave-dots{0%{opacity:.25}65%{opacity:1}}
.build-banner{position:absolute;top:16px;left:50%;transform:translateX(-50%);max-width:93%;padding:13px 20px;border:1px solid #b89a66;border-radius:3px;background:#162730f5;text-align:center;pointer-events:none}.build-banner strong{font-size:17px;color:#eac98b}.build-banner small{display:block;margin-top:5px;font-size:10px;color:#aec1c8}.build-tools{display:grid;gap:7px;margin-top:13px}.build-tools button{font-size:10px;min-height:35px;padding:7px}.build-tools .row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.budget{font:19px Arcade,monospace;color:var(--gold)}
.stage-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;padding:12px}.stage-message>div{width:min(380px,100%);padding:30px;border:1px solid #8c7e60;border-radius:3px;background:#14232cf7;box-shadow:0 10px 30px #0005;animation:stage-arrive .16s steps(4,end) both}.stage-message p{margin:0}.stage-heading{text-align:center;padding:1px 0 18px;border-bottom:1px solid #42514e}.stage-caption{display:block;color:#97afb6;font-size:9px;letter-spacing:.7px;font-weight:600}.stage-number{display:block;margin-top:16px;font:21px/1.5 Arcade,monospace;color:#efd297;white-space:nowrap}.stage-mission{display:flex;align-items:center;justify-content:center;gap:16px;padding:22px 0}.stage-tank{width:63px;height:auto}.stage-mission h2{font-size:20px;color:#eee0c3;margin:0 0 5px}.stage-mission p{font-size:10px;color:#98afb8}.stage-deploy{display:flex;align-items:center;gap:10px;padding-top:15px;border-top:1px solid #354c56;font-size:10px;color:#c1c6b9}.deploy-lights{display:flex;gap:5px;margin-left:auto}.deploy-lights i{width:7px;height:7px;background:#3b5156}.deploy-lights i.lit{background:#edc879}.stage-countdown{display:inline-grid;place-items:center;min-width:31px;min-height:28px;border:1px solid #776a4f;background:#0e1b24;color:#eed097;font:13px/1 Arcade,monospace}.stage-notice .stage-caption{font:8px/1.8 Arcade,TankGeo,monospace;margin-bottom:18px;color:#8ec5ce}.stage-notice h2{font-size:22px;color:#e7c990;margin-bottom:8px}.stage-notice p{font-size:12px}.stage-notice .stage-countdown{margin-top:18px}@keyframes stage-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.base-warning{color:#e79e83!important;animation:pulse 1s steps(2) infinite}@keyframes pulse{50%{opacity:.5}}.connection{position:fixed;inset:0 0 auto;z-index:60;padding:10px;background:#743c35;text-align:center;font-size:12px}.touch-controls{display:none;position:absolute;bottom:14px;left:14px;right:14px;justify-content:space-between;align-items:flex-end;pointer-events:none}.dpad{display:grid;grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,40px);gap:4px;pointer-events:auto}.dpad button{padding:0;min-height:0;opacity:.83;touch-action:none}.dpad [data-dir="0"]{grid-column:2}.dpad [data-dir="3"]{grid-column:1;grid-row:2}.dpad [data-dir="2"]{grid-column:2;grid-row:2}.dpad [data-dir="1"]{grid-column:3;grid-row:2}.touch-fire{pointer-events:auto;width:65px;height:65px;background:#9c7244;border-color:#c8a467;touch-action:none;padding:5px;color:#fff0ce}
.result-hero{padding:42px 28px;background:#182933;border:1px solid #7b725d;border-radius:3px;text-align:center}.result-hero h1{font-size:38px;color:#e6c58d;margin:14px 0}.rewards{display:flex;justify-content:center;gap:18px;margin:27px 0;flex-wrap:wrap}.reward{min-width:128px;padding:21px}.reward strong{display:block;color:#e7c88f;font:18px/1.8 Arcade,monospace}.reward small{color:#9aafb8;font-size:10px}.full-campaign-battle #minimap,.full-campaign-battle .hud-teams{display:none}.full-campaign-battle .hud>.divider{margin:13px 0}
[hidden],.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.reduce-motion *{animation:none!important;transition:none!important}
@media(min-width:1600px){.content{padding-top:44px}.hero{min-height:410px}.hero-tank{width:min(100%,340px)}}
@media(max-width:1180px){.shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{padding:25px 12px}.content{padding:28px 26px 40px}.topbar{padding-inline:26px}.nav button{font-size:11px;gap:9px}.hero{padding:31px;grid-template-columns:1.15fr .85fr}.hero h1{font-size:36px}.hero-tank{width:min(100%,265px)}.cards{gap:15px}.panel{padding:21px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-cards h2{font-size:15px}.home-cards button{font-size:10px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.levels{grid-template-columns:repeat(4,minmax(0,1fr))}.equipment{grid-template-columns:1fr}.battle-main{grid-template-columns:minmax(0,1fr) 206px}.skill-button{width:168px}.controls-tip{display:none}}
@media(max-width:900px){.hero h1{font-size:31px}.hero{padding:29px;gap:5px}.hero .actions button{font-size:11px}.cards{grid-template-columns:1fr}.home-cards .panel{display:grid;grid-template-columns:1fr auto;column-gap:22px}.home-cards .small-label,.home-cards h2,.home-cards p{grid-column:1}.home-cards p{margin:0}.home-cards button{grid-column:2;grid-row:1/4;align-self:center;width:auto;margin:0;max-width:175px}.mission,.garage-layout{grid-template-columns:1fr}.garage-preview{min-height:245px}.garage-preview canvas{width:210px}.equipment{grid-template-columns:1fr 1fr}.region-head{flex-wrap:wrap;row-gap:4px}.region-head .hint{flex-basis:100%;margin-left:20px}.shop-toolbar{align-items:flex-start}.shop-search{width:190px}.shop-tabs{gap:20px}.shop-tabs button{font-size:12px}.round-status{gap:7px}.battle-main{grid-template-columns:minmax(0,1fr) 185px}.hud{padding:12px 10px}.skill-button{width:158px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:relative;height:auto;padding:15px 16px 0;border-right:0;border-bottom:1px solid #30414b}.sidebar .brand{width:138px}.sidebar .brand small,.side-bottom{display:none}.nav{display:flex;overflow:auto;gap:3px;margin:12px -4px 0;padding-bottom:8px}.nav button{flex-shrink:0;white-space:nowrap;min-height:38px;padding:8px 10px;font-size:11px}.nav button b{display:none}.nav button.selected{box-shadow:inset 0 -2px var(--gold)}.topbar{min-height:61px;padding:12px 17px;gap:9px;flex-wrap:wrap}.profile-line{gap:8px}.wallet{gap:15px}.currency{font-size:9px;padding-left:0}.content{padding:24px 17px 35px}.pagehead{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:23px}.pagehead h1{font-size:27px}.pagehead p{font-size:11px}.pagehead>button{font-size:10px;min-height:35px;padding:7px 12px}.hero{grid-template-columns:1fr;gap:6px;padding:30px 25px 22px;min-height:0}.hero h1{font-size:37px}.hero p{font-size:12px}.hero-tank{width:min(65%,235px);margin-top:5px}.hero .actions{gap:8px;margin-top:19px}.hero .actions button{font-size:11px;padding-inline:13px}.hero .hint{font-size:9px!important}.home-cards .panel{display:flex}.home-cards button{max-width:none;width:100%;margin-top:17px}.home-cards h2{font-size:17px}.home-cards p{font-size:12px}.panel,.brick-panel{padding:22px}.brick-panel{padding-top:29px}.mission{gap:16px}.loadout-strip{gap:10px;padding:12px;margin-bottom:23px}.loadout-strip canvas{width:48px}.loadout-strip strong{font-size:11px}.loadout-strip .small-label{font-size:9px}.loadout-strip p{font-size:9px}.loadout-strip>button{font-size:9px;padding-inline:8px}.levels{gap:7px}.level-card{min-height:103px;padding:12px 5px}.level-card strong{font-size:16px}.level-card small{font-size:8px}.shop-tabs{gap:19px;flex-wrap:nowrap;overflow:auto}.shop-tabs button{white-space:nowrap;font-size:11px;gap:4px}.shop-tabs button span{font-size:7px}.shop-toolbar{flex-direction:column;gap:15px}.shop-search{width:100%}.shop-filters{gap:5px}.filter-buttons{gap:0}.filter-buttons button{font-size:9px;padding-inline:8px}.shop-grid{gap:15px}.item-info{padding:17px}.item-art{height:156px}.item-art canvas{width:120px}.equipment{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.code{font-size:16px}.team-grid{gap:12px}.team-card{padding:15px}.room-row{flex-wrap:wrap}.rewards{gap:10px}.reward{min-width:95px;padding:17px 12px}.reward strong{font-size:15px}.result-hero{padding:35px 20px}.result-hero h1{font-size:31px}dialog{padding:25px}dialog h2{font-size:19px}.battle-top{height:57px;padding:6px 9px;gap:8px}.battle-top .brand,.battle-top .game-logo{width:98px}.round-status{flex-direction:column;gap:3px}.round-label{font-size:10px}.wave-clock{min-height:22px;padding:1px 6px;font-size:9px}.hourglass{width:13px;height:17px}.wave-dots{display:none}.battle-top button{font-size:9px;padding:6px 8px}.battle-top .actions{gap:4px}.battle-main{grid-template-columns:minmax(0,1fr) 158px}.hud{padding:10px 8px}.hud h3{font-size:9px}.weapon-panel{gap:6px}.weapon-panel canvas{width:40px}.weapon-panel b{font-size:10px}.weapon-panel small{font-size:8px}.battle-bottom{min-height:93px;padding:8px}.skill-buttons{width:100%;gap:7px}.skill-button{width:0;flex:1;min-height:75px;font-size:10px;padding:9px;gap:5px}.skill-button canvas{width:40px}.skill-button .key{font-size:7px;right:7px;bottom:5px}.stage-message{position:fixed;inset:57px 0 93px;z-index:5;padding:15px}.stage-message>div{width:min(355px,100%);padding:28px}.stage-number{font-size:19px}.build-banner{padding:12px 15px}.build-banner strong{font-size:13px}.build-banner small{font-size:9px}}
@media(max-width:520px){.shop-grid{grid-template-columns:1fr}.shop-tabs{gap:17px}.item-art{height:172px}.item-art canvas{width:138px}.item-info{padding:20px}.item-info h3{font-size:18px}.item-description{min-height:0}.shop-toolbar h2{font-size:18px}.shop-filters #shop-count{font-size:10px}.team-grid{grid-template-columns:1fr}.battle-main{display:flex;flex-direction:column}.stage{flex:1}.hud{max-height:177px;flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;border-left:0;border-top:1px solid #344b57;padding:10px}.hud #hud-name{grid-column:1/-1;margin:0;font-size:10px}.hud h3{margin:0 0 4px}.hud .meter-text{font-size:8px}.hud .weapon-panel{grid-column:span 2;margin:0;padding:0;border:0}.hud .hud-heat{align-self:center}.hud .hud-base{grid-column:3;grid-row:2}.hud .hud-health{grid-column:1;grid-row:2}.hud .hud-armor{grid-column:2;grid-row:2}.hud .build-tools,.hud .hud-map,.hud .combat-compare,.hud .killfeed,.hud #enemy-count{grid-column:1/-1}.hud .build-tools{margin-top:0}.hud .hud-map{display:flex;gap:15px;align-items:center}.hud #minimap{width:105px;margin:0}.hud #enemy-count{margin:0}.hud .combat-compare{margin:0}.hud .divider{display:none}.full-campaign-battle .hud-map{display:none}.battle-top .brand,.battle-top .game-logo{width:78px}.battle-top .actions button{padding:5px 7px;font-size:8px}.round-label{font-size:9px}.skill-button{flex-direction:column;justify-content:center;gap:3px;padding:6px 8px;min-height:79px;font-size:9px}.skill-button canvas{width:34px}.skill-button>span{padding:0 0 5px;text-align:center}.skill-button .key{right:5px;bottom:4px;min-width:17px;padding:0 3px;font-size:6px}.skill-button .cool{font-size:10px}.stage-mission{gap:13px}.stage-mission h2{font-size:18px}.stage-tank{width:56px}.touch-controls{bottom:9px;left:9px;right:9px}.dpad{grid-template-columns:repeat(3,34px);grid-template-rows:repeat(2,34px)}.touch-fire{width:56px;height:56px;font-size:11px}}
@media(max-height:700px) and (min-width:521px){.battle-top{height:51px}.battle-bottom{min-height:82px;padding-block:6px}.skill-button{min-height:68px}.skill-button canvas{width:40px}.hud{padding-top:9px}.hud h3{margin-top:8px}.hud .weapon-panel{margin:9px 0}.hud .divider{margin:10px 0}.hud #minimap{width:135px}.stage-message>div{padding:25px}.stage-mission{padding:15px 0}}
@media(pointer:coarse){.touch-controls{display:flex}.controls-tip{display:none}}
@media(max-width:1050px){.shop-head{flex-wrap:wrap;gap:18px}.shop-head .loadout-strip{width:100%}.shop-head .loadout-strip p{display:block;font-size:10px}}
@media(max-width:520px){.shop-head h1{font-size:25px}.shop-head .loadout-strip p{font-size:9px}.shop-head .loadout-strip>button{font-size:9px}}
/* Compact controls: the key, charge count and cooldown never overlap. */
button:active:not(:disabled),button.is-pressed:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #0004;filter:brightness(.92)}
.battle-bottom .skill-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(690px,100%)}
.battle-bottom .skill-button{display:grid;grid-template-columns:42px minmax(0,1fr) 25px;align-items:center;gap:10px;width:auto;min-width:0;min-height:78px;padding:10px 12px;text-align:left;background:#21323c;border:1px solid #425965;border-bottom:3px solid #14232c}
.battle-bottom .skill-button canvas{width:42px;height:auto;aspect-ratio:1}
.battle-bottom .skill-button .ability-copy{display:flex;flex-direction:column;gap:2px;padding:0;min-width:0;overflow-wrap:normal}
.ability-copy strong{font-size:11px;line-height:1.4;color:#ece7da}.ability-copy small{font-size:10px;line-height:1.5;color:#a5bdc6;font-weight:500}
.battle-bottom .skill-button .cool{position:static;background:none;padding:0;font-size:9px;color:#d4b477}
.battle-bottom .skill-button .key{position:static;align-self:start;font:10px/1.5 monospace;font-weight:700;min-width:24px;padding:2px 4px;background:#14232b;border-color:#52636a;color:#f0d092}
.battle-bottom .skill-button:disabled{opacity:.7}.battle-bottom .skill-button.empty-supply{background:#192831;opacity:.78}.empty-supply canvas{filter:saturate(.5)}
.pause-dialog{width:min(370px,calc(100% - 32px));max-width:370px;padding:24px;border:1px solid #5e6c70;border-top:3px solid #d7af70;background:#192831;box-shadow:0 18px 60px #0009}
.pause-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.pause-heading .eyebrow{display:block;margin:0 0 8px;font-size:7px}.pause-dialog h2{font-size:23px;margin:0}.pause-dialog p{font-size:12px;margin:0}.pause-heading>.key{font:10px/1.6 monospace;padding:3px 7px}
.pause-dialog .actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}.pause-dialog .actions .gold{grid-column:1/-1;justify-content:space-between}.pause-dialog .actions button{min-height:43px;font-size:11px;padding:10px 13px;background-image:none}.pause-dialog::backdrop{background:#061019aa;backdrop-filter:blur(2px)}
.supply-item .item-art{height:155px}.supply-item .item-art canvas{width:115px}.supply-item .item-purchase>button{width:100%;margin-top:10px}
@media(max-width:700px){.battle-bottom .skill-buttons{gap:6px}.battle-bottom .skill-button{grid-template-columns:32px minmax(0,1fr) 20px;gap:6px;padding:8px;min-height:80px}.battle-bottom .skill-button canvas{width:32px}.ability-copy strong{font-size:10px}.ability-copy small{font-size:9px}.battle-bottom .skill-button .key{min-width:20px;font-size:9px}}
@media(max-width:520px){.battle-bottom .skill-button{grid-template-columns:28px minmax(0,1fr);gap:5px;padding:7px;min-height:92px}.battle-bottom .skill-button canvas{width:28px;grid-column:1;grid-row:1}.battle-bottom .skill-button .key{grid-column:2;grid-row:1;justify-self:end;align-self:center}.battle-bottom .skill-button .ability-copy{grid-column:1/-1;grid-row:2;text-align:left}.ability-copy strong{font-size:9px}.ability-copy small,.battle-bottom .skill-button .cool{font-size:8px}.pause-dialog{padding:21px}.pause-dialog h2{font-size:21px}}
.language-switch{display:flex;justify-content:center;gap:5px;margin-top:17px}.language-switch button{min-height:28px;min-width:39px;padding:3px 9px;font:10px/1.6 monospace;border:1px solid #3e525d;background:transparent;color:#91a5af}.language-switch button[aria-pressed=true]{color:#edc889;border-color:#b69560;background:#2b3539}.language-switch+.nav{margin-top:20px}.language-label{margin-bottom:21px}.language-label select{width:100%}
dialog.battle-result{width:min(456px,calc(100% - 28px));max-width:456px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #657173;border-top:3px solid #d3ad70;border-radius:3px;background:#17252ef5;box-shadow:0 18px 80px #0007;animation:result-arrive .2s ease-out}
dialog.battle-result::backdrop{background:#06101980}
.battle-result-card{padding:27px}.result-heading{text-align:center}.result-heading .eyebrow{margin:0;font-size:8px;letter-spacing:1.2px}.result-emblem{display:block;margin:12px 0 9px;font:32px/1 monospace;color:#edc57c}.defeat .result-emblem{color:#da998a}.draw .result-emblem{color:#93c4cc}
.battle-result h2{font:25px/1.5 TankGeo,sans-serif;font-weight:800;color:#f0d69e;margin:0 0 9px}.battle-result p{font-size:12px;line-height:1.6;margin:0;color:#a9b9c0}.battle-result .rewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:22px 0;border-top:1px solid #3c4b52;border-bottom:1px solid #3c4b52}.battle-result .reward{min-width:0;padding:13px 6px;border:0;background:transparent;text-align:center}.battle-result .reward+.reward{border-left:1px solid #3c4b52}.battle-result .reward strong{font-size:13px;line-height:2}.battle-result .reward small{font-size:10px}
.result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.result-actions button{min-height:43px;padding:10px;font-size:11px}.result-actions .gold{grid-column:1/-1}.result-actions button:last-child:nth-child(2n){grid-column:1/-1}.result-scoreboard{margin-top:19px;border-top:1px solid #34464f;padding-top:12px}.result-scoreboard summary{font-size:11px;color:#9fb5bf}.scoreboard-scroll{overflow:auto;max-height:160px}.result-scoreboard td,.result-scoreboard th{font-size:10px;padding:9px 5px}.result-scoreboard td:first-child{max-width:135px;overflow-wrap:anywhere}
html[lang=en] .battle-result h2{font:21px/1.5 Arcade,monospace;text-transform:uppercase;letter-spacing:-.7px}html[lang=en] .hero h1{letter-spacing:-1.2px}
@keyframes result-arrive{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:700px){.sidebar{position:relative}.language-switch{position:absolute;right:17px;top:19px;margin:0}.language-switch+.nav{margin-top:12px}.battle-result-card{padding:23px}.battle-result h2{font-size:22px}html[lang=en] .battle-result h2{font-size:19px}}
@media(max-height:560px){.battle-result-card{padding:18px 23px}.result-emblem{display:none}.battle-result .rewards{margin:14px 0}.battle-result h2{margin:7px 0}.result-scoreboard{margin-top:12px;padding-top:8px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
