/* Iron Front Hangar V2 — scoped layout, existing game and scene retained. */
#wot-menu.hg2{--hg2-gold:#d9b579;--hg2-line:#53616b;--hg2-panel:rgba(13,25,34,.95);grid-template-rows:64px 46px minmax(0,1fr) 166px 42px!important;grid-template-columns:minmax(0,1fr);font-family:'IBM Plex Sans',system-ui,sans-serif}
#wot-menu.hg2.hidden{display:none!important}#wot-menu.hg2 button:focus-visible,#wot-menu.hg2 a:focus-visible,#wot-menu.hg2 input:focus-visible,#wot-menu.hg2 select:focus-visible{outline:2px solid #f1d49d;outline-offset:3px}
#wot-menu.hg2>.wot-topbar{grid-row:1;grid-column:1;min-height:0;height:64px;display:flex;flex-wrap:nowrap;gap:18px;padding:9px 22px;background:linear-gradient(180deg,#192631f5,#0b141df5);border-bottom:1px solid #52606c;pointer-events:auto;z-index:40}
#wot-menu.hg2 .wot-topbar-left{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-width:0}#wot-menu.hg2 .wot-badge{display:none}#wot-menu.hg2 .wot-topbar .wot-logo{font-size:29px;line-height:1;letter-spacing:2px;white-space:nowrap;margin:0}#wot-menu.hg2 .wot-logo span{color:#e2c28a}#wot-menu.hg2 .wot-topbar-credit{display:none}#wot-menu.hg2 .wot-resources{margin-left:auto;display:flex;align-items:center;gap:16px;flex-wrap:nowrap}#wot-menu.hg2 .wot-res{display:flex;gap:6px;align-items:center;font-size:12px}#wot-menu.hg2 .wot-res strong{font-size:15px}#wot-menu.hg2 .wot-res-label{font-size:9px;color:#a9bbc9}#wot-menu.hg2 .wot-wallet-panel .wot-res{padding:8px}
#wot-menu.hg2>.wot-nav{grid-row:2;grid-column:1;position:relative;inset:auto;display:flex;flex-wrap:nowrap;height:46px;min-height:0;padding:0 12px;border-top:0;border-bottom:1px solid #4e5b65;background:#101d28f5;pointer-events:auto;z-index:35;overflow:auto}#wot-menu.hg2 .wot-nav-items{display:flex;flex:1;justify-content:flex-start;flex-wrap:nowrap;gap:0;min-width:max-content}#wot-menu.hg2 .wot-nav-btn{min-width:0;flex:0 0 auto;padding:0 16px;height:45px;display:flex;align-items:center;gap:6px;border:0;border-bottom:2px solid transparent;font-size:11px;letter-spacing:.7px;border-radius:0;background:transparent;color:#bdcbd5;white-space:nowrap}#wot-menu.hg2 .wot-nav-btn .wot-nav-icon{display:none}#wot-menu.hg2 .wot-nav-btn.selected{color:#f4dfb5;border-bottom-color:#dbb878;background:linear-gradient(0deg,#715c304d,transparent)}
#wot-menu.hg2>.wot-panel{grid-row:3;grid-column:1;min-height:0}#wot-menu.hg2 #panel-garage{display:block;position:relative;inset:auto;padding:0;margin:0;overflow:hidden;min-height:0;height:100%;background:linear-gradient(180deg,#0d1c2524,transparent 35%,#06101930);pointer-events:none}#wot-menu.hg2 #panel-garage.hidden{display:none!important}
#wot-menu.hg2 #garage-viewport{position:absolute;inset:0!important;display:block;pointer-events:auto;background:transparent}#wot-menu.hg2 .hg-stage-grain,#wot-menu.hg2 .hg-stage-scan,#wot-menu.hg2 .wot-hangar-pedestal-glow{display:none}#wot-menu.hg2 .hg-brand{display:none}#wot-menu.hg2 .wot-hangar-vignette{background:linear-gradient(90deg,#08131a26,transparent 35%,transparent 65%,#08131a26)!important}
#wot-menu.hg2 #wot-garage-right{position:absolute;left:20px;right:auto;top:22px;bottom:20px;transform:none;width:clamp(225px,21vw,310px);max-height:none;z-index:15;pointer-events:auto;display:flex;flex-direction:column;background:var(--hg2-panel);border:1px solid #62717b99;border-radius:5px;box-shadow:0 8px 24px #0005;overflow:hidden}
#wot-menu.hg2 .hg-tank-hero{position:relative!important;inset:auto!important;max-width:none!important;flex-shrink:0;padding:17px 17px 13px;animation:none;pointer-events:auto;border-bottom:1px solid #54626c77}#wot-menu.hg2 .hg-tank-hero .wot-tank-name{font-size:36px;letter-spacing:.5px;margin:4px 0;line-height:1.1}#wot-menu.hg2 .hg-tank-hero .wot-tier-badge{font-size:14px;padding:2px 8px}#wot-menu.hg2 .hg-tank-hero .wot-tank-meta{font-size:11px;line-height:1.5;margin:5px 0 0;color:#bdcdd8}
#wot-menu.hg2 .hg-equip-toggle{position:relative;inset:auto;transform:none;width:100%;min-height:37px;border-radius:0;background:#20323eb3;flex-shrink:0;padding:8px 12px;display:flex;align-items:center;gap:8px}#wot-menu.hg2 .hg-equip-toggle-label{font-size:11px;color:#e8d1a4}#wot-menu.hg2 .hg-equip-toggle-hint{font-size:9px}#wot-menu.hg2 #wot-garage-right .wot-hangar-panel-right{position:relative;inset:auto;transform:none;opacity:1;width:100%;min-height:0;max-height:none;flex:1;overflow:auto;border:0;padding:10px 12px;background:transparent;pointer-events:auto;display:block}#wot-menu.hg2 #wot-garage-right[data-open='0'] .wot-hangar-panel-right{display:none}#wot-menu.hg2 #wot-garage-right[data-open='0']{bottom:auto}#wot-menu.hg2 .wot-garage-tabs{display:flex;flex-wrap:wrap;gap:4px}#wot-menu.hg2 .wot-gtab{font-size:10px;min-height:30px;padding:5px 7px}#wot-menu.hg2 .wot-param-grid{font-size:11px}#wot-menu.hg2 .wot-module-head{font-size:10px;margin-top:10px}#wot-menu.hg2 .wot-equipped-playstyle{font-size:10px;line-height:1.5}
#wot-menu.hg2 #wot-garage-left{position:absolute;right:20px;left:auto;top:22px;bottom:20px;transform:none;width:clamp(225px,21vw,310px);display:block!important;max-height:none;z-index:15;pointer-events:auto;overflow:auto}#wot-menu.hg2 #wot-garage-sidebar{display:flex;flex-direction:column;gap:14px;height:auto;max-height:none;padding:0;background:transparent}#wot-menu.hg2 .hg2-missions{border:1px solid #62717b99;border-radius:5px;background:var(--hg2-panel);padding:16px}#wot-menu.hg2 .hg2-missions h2{font:600 17px/1.3 'Teko',system-ui,sans-serif;letter-spacing:1px;margin:0 0 12px;color:#efdfc1}#wot-menu.hg2 .hg2-mission{padding:9px 0;border-bottom:1px solid #4a5e6b66}#wot-menu.hg2 .hg2-mission strong{display:block;font-size:11px;color:#d2dee6}#wot-menu.hg2 .hg2-mission small{font-size:10px;color:#9db7c6}#wot-menu.hg2 .hg2-meter{height:5px;background:#344c5c;margin-top:8px;border-radius:4px;overflow:hidden}#wot-menu.hg2 .hg2-meter i{display:block;height:100%;background:#84c0cb}#wot-menu.hg2 .hg2-missions-open{width:100%;margin-top:12px;padding:8px;background:#253a49;border:1px solid #677781;color:#e8d6b6;font-size:10px;cursor:pointer}
#wot-menu.hg2 #wot-garage-rail{width:100%;border:1px solid #62717b99;background:var(--hg2-panel);border-radius:5px}#wot-menu.hg2 .wot-garage-rail-body{max-height:220px}#wot-menu.hg2 #wot-garage-event-stack{max-height:135px;overflow:auto;background:var(--hg2-panel);border:1px solid #526572}
#wot-menu.hg2 #wot-battle-dock{position:absolute;top:16px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(410px,32vw);padding:0;border:0!important;background:transparent!important;box-shadow:none;pointer-events:auto;z-index:18}#wot-menu.hg2 .wot-battle-dock-top{display:flex;flex-direction:column;gap:5px}#wot-menu.hg2 .wot-battle-action{width:100%}#wot-menu.hg2 #btn-battle{width:100%;min-height:64px;padding:10px 15px;border:1px solid #f3d69c;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);border-radius:0;background:linear-gradient(180deg,#e5c58d,#b78a41);box-shadow:none}#wot-menu.hg2 .wot-battle-main{font:700 32px/1 'Teko',system-ui,sans-serif;letter-spacing:2px;color:#211c13}#wot-menu.hg2 .wot-battle-sub{font-size:10px;color:#302616}#wot-menu.hg2 .wot-battle-icon,#wot-menu.hg2 .wot-battle-btn-shine{display:none}#wot-menu.hg2 .wot-battle-modes{width:100%;padding:7px 12px;background:#101f2de8;border:1px solid #5d6871;border-radius:3px;max-height:95px;overflow:auto}#wot-menu.hg2 .wot-battle-modes-head{margin:0 0 5px}#wot-menu.hg2 .wot-battle-modes-title{font-size:9px}#wot-menu.hg2 .wot-battle-mode-detail{font-size:10px}#wot-menu.hg2 .wot-battle-mode-grid{display:flex;flex-wrap:wrap;gap:4px}#wot-menu.hg2 #battle-mode-grid button{font-size:9px;min-height:22px;padding:3px 7px}
#wot-menu.hg2 #hangar-controls{position:absolute;bottom:18px;left:50%;right:auto;top:auto;transform:translateX(-50%);display:flex;gap:5px;z-index:20}#wot-menu.hg2 .wot-hangar-ctrl{width:33px;height:31px;font-size:16px;background:#142a38dc;border:1px solid #6a7b87}
#wot-menu.hg2>#wot-tank-bar{grid-row:4;grid-column:1;position:relative;inset:auto;height:166px;min-height:0;padding:9px 22px;border-top:1px solid #65717b;background:linear-gradient(180deg,#14222df5,#09141dfb);overflow:hidden;pointer-events:auto;z-index:25}#wot-menu.hg2 .wot-tank-bar-head{display:flex;align-items:center;gap:18px;flex-wrap:nowrap;margin-bottom:8px}#wot-menu.hg2 .wot-tank-bar-title-row{flex:0 0 auto}#wot-menu.hg2 .wot-tank-bar-title{font-size:10px;color:#c6d1d9}#wot-menu.hg2 .wot-tank-filters{display:flex;align-items:center;gap:6px;flex:1;flex-wrap:nowrap;overflow:auto}#wot-menu.hg2 .wot-tank-search{height:30px;width:160px;max-width:none;font-size:11px}#wot-menu.hg2 .wot-filter-select{height:30px;max-width:135px;font-size:10px;background:#1a2e3b;color:#ccd9e3;border-color:#536875}#wot-menu.hg2 .wot-filter-chip{font-size:9px;padding:6px 9px;white-space:nowrap}#wot-menu.hg2 .wot-filter-quick{flex-shrink:0}#wot-menu.hg2 .wot-carousel-wrap{height:106px;min-height:0}#wot-menu.hg2 .wot-carousel{height:106px;min-height:0;gap:10px;padding:0 5px 3px}#wot-menu.hg2 .wot-carousel-item{width:164px;min-height:98px;height:98px;flex:0 0 164px;gap:2px;padding:6px;border:1px solid #62717b;border-radius:4px;background:#142330;color:#e2e8eb}#wot-menu.hg2 .wot-carousel-item.active{border-color:#e5c184;box-shadow:inset 0 0 0 1px #dfb16c,0 0 12px #e5ae5522}#wot-menu.hg2 .wot-carousel-item .wot-carousel-name{font-size:13px}#wot-menu.hg2 .wot-carousel-flagbg{opacity:.3}#wot-menu.hg2 .wot-carousel-flagimg{opacity:.45}#wot-menu.hg2 .wot-carousel-item svg,#wot-menu.hg2 .wot-carousel-item .tank-icon{max-height:46px}
#wot-menu.hg2 .hg2-utility{grid-row:5;grid-column:1;min-height:0;height:42px;display:flex;align-items:center;gap:15px;padding:5px 22px;background:#0d1923f5;border-top:1px solid #344b5b;pointer-events:auto;z-index:30}#wot-menu.hg2 .hg2-studio{font-size:10px;letter-spacing:1.4px;color:#8da6b7;margin-left:auto;white-space:nowrap}#wot-menu.hg2 .hg2-utility .hg-community-row{position:static;display:flex;flex-wrap:nowrap;gap:8px;overflow:auto;max-width:75vw;margin:0}#wot-menu.hg2 .hg2-utility .hg-community-row>button,#wot-menu.hg2 .hg2-utility .hg-community-row>div{font-size:10px;min-height:28px;padding:4px 9px}#wot-menu.hg2 #claim-banner{position:absolute;left:50%;top:115px;transform:translateX(-50%);max-width:min(560px,70vw);z-index:45;font-size:11px}#wot-menu.hg2:not(.hg2-garage-active){grid-template-rows:64px 46px minmax(0,1fr) 0 42px!important}#wot-menu.hg2:not(.hg2-garage-active)>#wot-tank-bar{display:none!important}
@media(max-width:1100px){#wot-menu.hg2>.wot-topbar{gap:9px;padding:8px 12px}#wot-menu.hg2 .wot-res-label{display:none}#wot-menu.hg2 .wot-resources{gap:10px}#wot-menu.hg2 .wot-nav-btn{padding:0 12px}#wot-menu.hg2 #wot-garage-right{left:12px;width:230px}#wot-menu.hg2 #wot-garage-left{right:12px;width:220px}#wot-menu.hg2 #wot-battle-dock{width:min(320px,31vw)}#wot-menu.hg2 .wot-battle-main{font-size:27px}#wot-menu.hg2 .wot-tank-bar-title-row{display:none}}
@media(max-width:800px){#wot-menu.hg2{grid-template-rows:56px 42px minmax(0,1fr) 154px 38px!important}#wot-menu.hg2:not(.hg2-garage-active){grid-template-rows:56px 42px minmax(0,1fr) 0 38px!important}#wot-menu.hg2>.wot-topbar{height:56px}#wot-menu.hg2 .wot-topbar .wot-logo{font-size:23px}#wot-menu.hg2 .wot-res strong{font-size:12px}#wot-menu.hg2 .wot-res-front-euro{display:none}#wot-menu.hg2>.wot-nav{height:42px}#wot-menu.hg2 .wot-nav-btn{height:41px;font-size:10px}#wot-menu.hg2 #wot-garage-left{top:auto;bottom:12px;right:12px;width:180px;max-height:45%}#wot-menu.hg2 .hg2-missions{padding:11px}#wot-menu.hg2 #wot-garage-rail,#wot-menu.hg2 #wot-garage-event-stack{display:none!important}#wot-menu.hg2 #wot-garage-right{top:12px;left:12px;bottom:12px;width:210px}#wot-menu.hg2 #wot-battle-dock{left:auto;right:12px;top:12px;transform:none;width:210px}#wot-menu.hg2 .wot-battle-main{font-size:25px}#wot-menu.hg2 .hg-tank-hero .wot-tank-name{font-size:28px}#wot-menu.hg2>#wot-tank-bar{height:154px;padding:8px 12px}#wot-menu.hg2 .wot-carousel-item{width:140px;flex-basis:140px;height:92px;min-height:92px}#wot-menu.hg2 .hg2-utility{height:38px;padding:4px 12px}#wot-menu.hg2 .hg2-studio{display:none}}
@media(max-width:560px){#wot-menu.hg2 .wot-topbar-left{gap:4px}#wot-menu.hg2 .wot-resources{gap:7px}#wot-menu.hg2 .wot-res-prem{display:none}#wot-menu.hg2 .wot-res strong{font-size:11px}#wot-menu.hg2 .wot-topbar .wot-logo{font-size:21px}#wot-menu.hg2 .if-command-news-link{display:none!important}#wot-menu.hg2 #wot-garage-right{top:auto;bottom:9px;left:9px;right:9px;width:auto;max-height:50%}#wot-menu.hg2 .hg-tank-hero{padding:9px 12px}#wot-menu.hg2 .hg-tank-hero .wot-tank-name{font-size:24px;display:inline-block;margin:0 7px}#wot-menu.hg2 .hg-tank-hero .wot-tank-meta{display:none}#wot-menu.hg2 #wot-garage-left{display:none!important}#wot-menu.hg2 #wot-battle-dock{left:50%;right:auto;transform:translateX(-50%);width:235px;top:9px}#wot-menu.hg2 #btn-battle{min-height:50px}#wot-menu.hg2 #hangar-controls{bottom:55%;left:auto;right:12px;transform:none}#wot-menu.hg2 .wot-tank-search{width:120px}#wot-menu.hg2 .hg2-utility .hg-community-row{max-width:calc(100vw - 68px)}}
@media(prefers-reduced-motion:reduce){#wot-menu.hg2 *,#wot-menu.hg2 *::before,#wot-menu.hg2 *::after{animation:none!important;transition:none!important}}
/* Normalize inherited drawer and carousel sizing from the previous hangar. */
#wot-menu.hg2 #wot-garage-right{height:auto!important;align-self:stretch;min-height:0}
#wot-menu.hg2 #btn-garage-equip-toggle{writing-mode:horizontal-tb!important;flex-direction:row!important;height:38px!important;min-height:38px;max-height:38px;letter-spacing:.5px;justify-content:space-between}
#wot-menu.hg2 .wot-tank-bar-head{flex-direction:row!important;justify-content:flex-start;min-height:30px;padding:0}
#wot-menu.hg2 .hg2-utility .hg-community-row>button,#wot-menu.hg2 .hg2-utility .hg-community-row>div{background:#182b38;color:#c8d6de;border:1px solid #536875;border-radius:3px}
#wot-menu.hg2 .hg2-utility .hg-community-row strong{color:#d5bd8e;font-size:10px}#wot-menu.hg2 .wot-garage-rail a{color:#dfc18b}
@media(max-width:560px){#wot-menu.hg2 #wot-garage-right{align-self:end}}
#wot-menu.hg2 #garage-viewport{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important}
#wot-menu.hg2 #wot-garage-right{top:22px!important;bottom:20px!important}
#wot-menu.hg2 #wot-garage-right[data-open='0']{bottom:auto!important}
@media(max-width:800px){#wot-menu.hg2 #wot-garage-right{top:12px!important;bottom:12px!important}}
@media(max-width:560px){#wot-menu.hg2 #wot-garage-right,#wot-menu.hg2 #wot-garage-right[data-open='0']{top:auto!important;bottom:9px!important}}
#wot-menu.hg2 .wot-hangar-panel-right,#wot-menu.hg2 .wot-gtab-panel{min-width:0!important;width:100%!important;box-sizing:border-box;overflow-wrap:anywhere}
#wot-menu.hg2 .wot-param-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#wot-menu.hg2 .wot-param-grid>*{min-width:0}
#wot-menu.hg2 .wot-wallet-panel .wot-res-front-euro,#wot-menu.hg2 .wot-wallet-panel .wot-res-prem{display:flex!important}
