/* ListaWG · 03-visual-tema-mobile.css — blocos que antes ficavam inline no index.html, na mesma ordem.
   A ordem dos arquivos css/NN-*.css no index.html é a ordem da cascata: não reordene. */

/* ===== mobile-polish-02910 ===== */
/* Alpha 0.34.20 — Android/iPhone mobile & installed-PWA polish */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh;overscroll-behavior-y:none}
button,a,input,select,textarea,[role="button"]{touch-action:manipulation}
@media(max-width:760px){
  
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px!important}
  button,.primary,.open-game{min-height:44px}
  .modal,.overlay,.compare-modal,.overview-modal,.reference-modal,.share-modal,.nova-tool,.tc-ds-modal,.comando-gate{padding-top:max(8px,env(safe-area-inset-top))!important;padding-right:max(8px,env(safe-area-inset-right))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;padding-left:max(8px,env(safe-area-inset-left))!important}
  .overlay .sheet,.modal>div,.tc-ds-dialog,.comando-sheet-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)!important;-webkit-overflow-scrolling:touch}
  .game-online-bar{top:env(safe-area-inset-top);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .cmd-mobile-tabs{padding-bottom:env(safe-area-inset-bottom)}
  .comando-module,.tc-module,#bfgModule{min-height:100dvh}
  .comando-head-actions,.battle-actions,.battle-game-actions{gap:8px}
  .comando-head-actions button,.battle-actions button{min-height:44px}
  .cloud-fleet-row{overflow-wrap:anywhere}
  .cloud-fleet-row>div:last-child{max-width:100%}
  .cloud-fleet-row button{min-height:44px}
  .tc-builder-nav button{min-height:44px}
}
@media(max-width:390px){
  .game-online-bar div{grid-template-columns:1fr!important}
  .cloud-fleet-row.cloud-fleet-conflict>div:last-child{grid-template-columns:1fr!important}
  .comando-head-actions{display:grid!important;grid-template-columns:1fr 1fr}
  .comando-head-actions button{width:100%;min-width:0}
}
@media(display-mode:standalone){
  body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
}

/* Alpha 0.34.20 — BFG online Task Force deployment */
#battleTaskForceSelect,.battle-online-taskforce{border-color:#8c6f2b!important;background:#17140d!important;color:#f4d76d!important}.battle-taskforce-note{display:block!important;color:#c8ae63!important;font-size:9px!important;margin-top:6px!important}.battle-fleet .battle-taskforce-badge{display:inline-flex!important;width:max-content;padding:4px 7px;border:1px solid #8c6f2b;border-radius:999px;background:#211b0e;color:#f4d76d!important;font-size:9px;font-weight:900;letter-spacing:.05em}.theme-light #battleTaskForceSelect,.theme-light .battle-online-taskforce{background:#fff9e8!important;color:#6f5200!important;border-color:#b59034!important}.theme-light .battle-fleet .battle-taskforce-badge{background:#fff4cf;color:#6f5200!important;border-color:#b59034}

/* ===== css-sem-id-1 ===== */
/* Alpha 0.34.20 — BFG Game Mode squadron cards + isolated battle view */
body.game-open>header.app,body.game-open>#portal,body.game-open>#home,body.game-open>#mobileTabs,body.game-open>#builder{display:none!important}
body.game-open #gameMode{position:fixed!important;inset:0!important;width:100dvw!important;height:100dvh!important;max-width:none!important;margin:0!important;z-index:4500!important;background:#0b1016!important;overflow:auto!important;overscroll-behavior:contain}
.game-squad-group{border:1px solid #435064;border-radius:12px;background:#101720;overflow:hidden;margin:2px 0 10px}.game-squad-group.is-open{border-color:#786a37}.game-squad-card{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;text-align:left;padding:14px 15px;border:0!important;border-radius:0!important;background:linear-gradient(145deg,#17212d,#111923)!important;color:#e8edf5!important;box-shadow:none!important}.game-squad-card:hover{background:linear-gradient(145deg,#1b2735,#151e29)!important}.game-squad-main{min-width:0}.game-squad-kicker{display:block;color:#d7b94b;font-size:9px;font-weight:900;letter-spacing:.1em;margin-bottom:4px}.game-squad-main>strong{display:block;font-size:17px;line-height:1.2;overflow-wrap:anywhere}.game-squad-meta{display:flex;gap:8px 14px;flex-wrap:wrap;margin-top:6px;color:#9eabbc;font-size:10px}.game-squad-meta b{color:#eef3f8}.game-squad-toggle{display:flex;align-items:center;gap:8px;color:#d7b94b;font-size:9px;font-weight:900;white-space:nowrap}.game-squad-toggle b{font-size:12px}.game-squad-members{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}.game-squad-members span{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:5px 8px;border:1px solid #364356;border-radius:999px;background:#0c121a;color:#dbe4ef;font-size:10px;line-height:1.2}.game-squad-members span>b{display:grid;place-items:center;min-width:17px;height:17px;border-radius:50%;background:#263244;color:#f4d76d;font-size:9px}.game-squad-members small{color:#7f8c9d;font-size:9px}
.game-squad-ships{display:grid!important;place-items:center;padding:24px;background:rgba(2,6,12,.82);backdrop-filter:blur(5px);overflow:auto;overscroll-behavior:contain}.game-squad-modal-panel{width:min(1180px,calc(100vw - 48px));max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:#0b1016;border:1px solid #536176;border-radius:14px;box-shadow:0 26px 80px rgba(0,0,0,.65);overflow:hidden}.game-squad-modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#121a24;border-bottom:1px solid #435064}.game-squad-modal-head>div{min-width:0}.game-squad-modal-head span{display:block;color:#d7b94b;font-size:9px;font-weight:900;letter-spacing:.1em}.game-squad-modal-head strong{display:block;color:#fff;font-size:18px;margin-top:2px;overflow-wrap:anywhere}.game-squad-modal-head small{display:block;color:#9eabbc;font-size:10px;margin-top:4px}.game-squad-modal-head button{flex:0 0 auto;min-height:40px;background:#151d28;color:#fff;border-color:#526174}.game-squad-modal-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:10px;padding:12px;overflow:auto;-webkit-overflow-scrolling:touch}.game-squad-modal-cards>.game-card{margin:0;min-width:0}
.theme-light .game-squad-group{background:#e8e3d8;border-color:#bdb6a8}.theme-light .game-squad-group.is-open{border-color:#9b7a1e}.theme-light .game-squad-card{background:linear-gradient(145deg,#faf8f2,#eee9df)!important;color:#171a1d!important}.theme-light .game-squad-card:hover{background:linear-gradient(145deg,#fffdf8,#eee9df)!important}.theme-light .game-squad-kicker,.theme-light .game-squad-toggle{color:#956900}.theme-light .game-squad-meta{color:#5e6670}.theme-light .game-squad-meta b{color:#171a1d}.theme-light .game-squad-members span{background:#f4f0e7;color:#171a1d;border-color:#c9c3b6}.theme-light .game-squad-members span>b{background:#ded7c8;color:#6f5200}.theme-light .game-squad-ships{background:rgba(38,35,30,.58)}.theme-light .game-squad-modal-panel{background:#f3f0e8;border-color:#bdb6a8}.theme-light .game-squad-modal-head{background:#faf8f2;border-color:#c9c3b6}.theme-light .game-squad-modal-head strong{color:#171a1d}.theme-light .game-squad-modal-head small{color:#596068}.theme-bordeaux .game-squad-group{background:#170c10;border-color:#63303e}.theme-bordeaux .game-squad-group.is-open{border-color:#9b5768}.theme-bordeaux .game-squad-card{background:linear-gradient(145deg,#29151c,#1d1015)!important;color:#f5e9ec!important}.theme-bordeaux .game-squad-members span{background:#170c10;border-color:#63303e;color:#f5e9ec}.theme-bordeaux .game-squad-modal-panel{background:#160b0f;border-color:#63303e}.theme-bordeaux .game-squad-modal-head{background:#211016;border-color:#63303e}
@media(max-width:760px){.game-squad-card{grid-template-columns:1fr;padding:12px;gap:9px}.game-squad-toggle{justify-content:space-between;width:100%;padding-top:3px;border-top:1px solid #2b3747}.game-squad-members{gap:5px}.game-squad-members span{max-width:100%;overflow-wrap:anywhere}.game-squad-ships{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.game-squad-modal-panel{width:100%;max-height:calc(100dvh - 16px);border-radius:11px}.game-squad-modal-head{padding:11px 12px;align-items:flex-start}.game-squad-modal-head strong{font-size:16px}.game-squad-modal-head button{min-height:44px}.game-squad-modal-cards{grid-template-columns:1fr;padding:8px;gap:8px}}

/* Alpha 0.34.20 — BFG Task Force deployment */
/* Alpha 0.34.20 — Task Force battle setup */
.task-force-preset{grid-template-columns:minmax(0,1fr) 38px 38px 38px}.task-force-preset.active{border-color:#d0a63f;box-shadow:inset 3px 0 #d0a63f}.task-force-preset-mini{border:0;border-left:1px solid #4c4328;background:#17140d;color:#d7c690;font-size:16px}.task-force-preset-mini:hover{background:#2b2413;color:#ffe18a}.task-force-setup{position:fixed;inset:0;z-index:4650;display:grid;place-items:center;padding:16px;background:rgba(4,5,7,.82);backdrop-filter:blur(8px)}.task-force-setup[hidden]{display:none!important}.task-force-setup-card{width:min(760px,100%);max-height:min(86dvh,900px);overflow:auto;border:1px solid #8c6f2b;border-radius:16px;background:linear-gradient(160deg,#2b2311,#11120f 58%);color:#f4ead0;box-shadow:0 30px 90px rgba(0,0,0,.55)}.task-force-setup-head{padding:18px 20px;border-bottom:1px solid #5e4d22}.task-force-setup-head span{display:block;color:#f0c95b;font-size:10px;font-weight:900;letter-spacing:.12em}.task-force-setup-head h2{margin:5px 0 4px;color:#fff3c4}.task-force-setup-head p{margin:0;color:#a99768;font-size:11px}.task-force-setup-stats{display:flex;gap:10px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #3f371f}.task-force-setup-stats b{padding:7px 10px;border:1px solid #695522;border-radius:999px;background:#17140d;color:#f4d76d;font-size:11px}.task-force-setup-list{display:grid;gap:8px;padding:14px 20px}.task-force-setup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #403820;border-radius:10px;background:#12120e}.task-force-setup-row strong,.task-force-setup-row small{display:block}.task-force-setup-row small{margin-top:3px;color:#94896d;font-size:9px}.task-force-setup-row b{color:#f4d76d;white-space:nowrap}.task-force-setup-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 20px 20px;border-top:1px solid #3f371f}.task-force-setup-actions button{min-height:46px;border:1px solid #8c6f2b;background:#211b0e;color:#f6e6aa;font-weight:900}.task-force-setup-actions #btnTaskForceSetupStart{background:#9d7624;color:#15110a;border-color:#d8ad45}@media(max-width:600px){.task-force-preset{grid-template-columns:minmax(0,1fr) repeat(4,36px)!important}.task-force-setup{padding:8px}.task-force-setup-card{max-height:94dvh}.task-force-setup-actions{grid-template-columns:1fr}.task-force-setup-row{align-items:flex-start}}

.task-force-open-btn{border-color:#9b7628!important;color:#f4d76d!important;background:rgba(155,118,40,.10)!important}.task-force-open-btn:hover{background:rgba(155,118,40,.20)!important}
body.task-force-open>header.app,body.task-force-open>#portal,body.task-force-open>#home,body.task-force-open>#mobileTabs,body.task-force-open>#builder{display:none!important}
.task-force-view{position:fixed;inset:0;z-index:4550;width:100dvw;height:100dvh;overflow:auto;overscroll-behavior:contain;background:radial-gradient(circle at 18% 0%,#3a2d12 0,#18150e 28%,#0d1014 70%);color:#f4ead0}.task-force-view[hidden]{display:none!important}
.task-force-shell{width:min(1180px,100%);min-height:100dvh;margin:0 auto;padding:24px clamp(14px,3vw,32px) calc(34px + env(safe-area-inset-bottom))}.task-force-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;border:1px solid #715a25;border-radius:14px;background:linear-gradient(145deg,rgba(82,63,22,.78),rgba(27,24,16,.92));box-shadow:0 18px 55px rgba(0,0,0,.28)}
.task-force-eyebrow{display:block;color:#f0c95b;font-size:10px;font-weight:900;letter-spacing:.12em}.task-force-head h2{margin:5px 0 5px;color:#fff3c4;font-size:28px}.task-force-head p{margin:0;max-width:720px;color:#c7b98e;font-size:12px;line-height:1.45}.task-force-head button,.task-force-summary button,.task-force-footer button{border:1px solid #8c6f2b;background:#211b0e;color:#f6e6aa;font-weight:900}.task-force-summary{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:auto auto 1fr;gap:12px;align-items:center;margin:14px 0;padding:12px 14px;border:1px solid #695522;border-radius:12px;background:rgba(21,18,10,.94);backdrop-filter:blur(8px)}.task-force-summary>div:not(.task-force-summary-actions){min-width:150px}.task-force-summary small{display:block;color:#a99768;font-size:9px;font-weight:900;letter-spacing:.08em}.task-force-summary strong{display:block;margin-top:2px;color:#f4d76d;font-size:20px}.task-force-summary-actions{display:flex;gap:8px;justify-content:flex-end}
.task-force-list{display:grid;gap:10px}.task-force-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:14px;border:1px solid #4c4328;border-radius:12px;background:#15140f;color:#ece4cf;text-align:left;cursor:pointer}.task-force-card:hover{border-color:#7f672b;background:#1d1a10}.task-force-card.selected{border-color:#d0a63f;background:linear-gradient(145deg,#302711,#1a170f);box-shadow:inset 3px 0 #d0a63f}.task-force-check{display:grid;place-items:center;width:28px;height:28px;border:1px solid #7b6730;border-radius:8px;background:#0d0e0d;color:#ffe18a;font-size:16px;font-weight:900}.task-force-card.selected .task-force-check{background:#b18429;color:#15110a;border-color:#f0c95b}.task-force-main{min-width:0}.task-force-kind{display:block;color:#b7a36e;font-size:9px;font-weight:900;letter-spacing:.09em}.task-force-main strong{display:block;margin-top:3px;color:#fff5d6;font-size:17px;overflow-wrap:anywhere}.task-force-main p{margin:5px 0 0;color:#9f9477;font-size:10px;line-height:1.4}.task-force-pts{color:#f4d76d;font-size:16px;font-weight:900;white-space:nowrap}.task-force-members{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.task-force-members span{padding:4px 7px;border:1px solid #4b4229;border-radius:999px;background:#0e0f0d;color:#cfc3a1;font-size:9px}
.task-force-presets{margin:0 0 14px;padding:12px 14px;border:1px solid #5e4d22;border-radius:12px;background:rgba(18,16,10,.78)}.task-force-presets-head{display:flex;gap:12px;align-items:end;justify-content:space-between}.task-force-presets-head>div:first-child{min-width:0}.task-force-presets-head strong{display:block;color:#f0c95b;font-size:11px;letter-spacing:.08em}.task-force-presets-head small{display:block;margin-top:3px;color:#9f9477;font-size:9px}.task-force-preset-save{display:flex;gap:8px;align-items:center}.task-force-preset-save input{min-width:220px;min-height:38px;border:1px solid #695522;border-radius:9px;background:#0d0e0d;color:#f5ecd2;padding:0 10px}.task-force-preset-save button{min-height:38px;border:1px solid #8c6f2b;background:#211b0e;color:#f6e6aa;font-weight:900}.task-force-preset-save button:disabled{opacity:.42}.task-force-presets-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:10px}.task-force-preset{display:grid;grid-template-columns:minmax(0,1fr) 38px;border:1px solid #4c4328;border-radius:10px;overflow:hidden;background:#12120e}.task-force-preset-load{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:10px 11px;border:0;background:transparent;color:#efe6ca;text-align:left}.task-force-preset-load span{min-width:0}.task-force-preset-load strong,.task-force-preset-load small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-force-preset-load strong{font-size:12px}.task-force-preset-load small{margin-top:3px;color:#a99768;font-size:9px}.task-force-preset-load b{color:#f4d76d}.task-force-preset-delete{border:0;border-left:1px solid #4c4328;background:#17140d;color:#bfae7c;font-size:20px}.task-force-preset-delete:hover{background:#372012;color:#ffd4b2}.task-force-presets-empty{grid-column:1/-1;margin:0;color:#81765d;font-size:10px}.task-force-footer{position:sticky;bottom:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px 14px;border:1px solid #715a25;border-radius:12px;background:rgba(18,15,8,.96);backdrop-filter:blur(8px)}.task-force-footer>div{color:#a99768;font-size:10px}.task-force-footer button{min-height:46px;padding:0 18px;background:#9d7624;color:#15110a;border-color:#d8ad45}.task-force-footer button:disabled{opacity:.42;cursor:not-allowed}
.task-force-integrity{margin-top:10px;padding:10px 12px;border:1px solid #8e6f2d;border-left:3px solid #d0a63f;border-radius:8px;background:#211b0e;color:#dfcc92;font-size:10px;line-height:1.45}.task-force-integrity[hidden]{display:none!important}.task-force-integrity strong{display:block;margin-bottom:3px;color:#ffe18a;font-size:10px;letter-spacing:.07em}.task-force-preset{grid-template-columns:minmax(0,1fr) repeat(4,38px)!important}.task-force-preset.is-stale{border-color:#9a702b;background:#1b160c}.task-force-preset.is-stale .task-force-preset-load small{color:#e0c279}.task-force-preset-state{display:inline-block;margin-left:5px;padding:1px 5px;border:1px solid #a87c2d;border-radius:3px;color:#f4d76d;font-size:8px;font-weight:900;letter-spacing:.06em}.task-force-preset-mini,.task-force-preset-delete{min-width:38px!important;width:38px!important;padding:0!important;display:grid!important;place-items:center!important}.task-force-preset-load:focus-visible,.task-force-preset-mini:focus-visible,.task-force-preset-delete:focus-visible,.task-force-card:focus-visible{outline:2px solid #f0c95b;outline-offset:-2px}.task-force-setup-warning{margin:0 20px 12px;padding:9px 11px;border:1px solid #8e6f2d;border-radius:8px;background:#211b0e;color:#dfcc92;font-size:10px}.task-force-setup-warning[hidden]{display:none!important}
@media(max-width:760px){#btnTaskForce{grid-column:1/2}#btnHeaderRules{grid-column:2/3}.top-actions>.more-menu{grid-column:1/-1!important;width:100%!important}.top-actions>.more-menu summary{width:100%!important}.task-force-shell{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) calc(90px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.task-force-head{display:block;padding:14px}.task-force-head h2{font-size:23px}.task-force-head button{width:100%;margin-top:12px;min-height:44px}.task-force-summary{grid-template-columns:1fr 1fr;padding:10px}.task-force-summary>div:not(.task-force-summary-actions){min-width:0}.task-force-summary-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.task-force-card{grid-template-columns:30px minmax(0,1fr);padding:12px}.task-force-pts{grid-column:2}.task-force-presets-head{display:block}.task-force-preset-save{display:grid;grid-template-columns:1fr;margin-top:9px}.task-force-preset-save input{min-width:0;width:100%;min-height:42px}.task-force-preset-save button{width:100%;min-height:42px}.task-force-presets-list{grid-template-columns:1fr}.task-force-footer{display:block}.task-force-footer>div{margin-bottom:8px}.task-force-footer button{width:100%;min-height:48px}}

/* ===== visual-language-03029 ===== */
:root{
  --bg:#11110f;
  --panel:#181815;
  --panel-2:#20201c;
  --line:#39372f;
  --text:#eeece5;
  --muted:#aaa79d;
  --accent:#c89a2b;
  --accent-strong:#d9b24a;
  --accent-wash:rgba(200,154,43,.12);
  --shadow:0 18px 48px rgba(0,0,0,.32);
  --font-display:Georgia,"Times New Roman",Times,serif;
  --font-ui:"Segoe UI",Tahoma,Arial,sans-serif;
  --font-tech:"Consolas","Liberation Mono","Courier New",monospace;
}
html,body{background-color:var(--bg);}
body{font-family:var(--font-ui);color:var(--text);background-image:linear-gradient(180deg,rgba(10,10,9,.58),rgba(10,10,9,.7)),url("../assets/listawg-tactical-bg.webp");background-size:cover;background-position:center top;background-attachment:fixed;}
body.theme-light{--bg:#f2eee3;--panel:#fbf7ee;--panel-2:#f3eddf;--line:#c8bea9;--text:#1f1b14;--muted:#6b6558;--accent:#9d7420;--accent-strong:#b8892b;--accent-wash:rgba(157,116,32,.08);background-image:linear-gradient(180deg,rgba(244,239,229,.93),rgba(244,239,229,.97)),url("../assets/listawg-tactical-bg.webp");}
body.theme-bordeaux{background-image:linear-gradient(180deg,rgba(20,11,14,.94),rgba(20,11,14,.97)),url("../assets/listawg-tactical-bg.webp");}
body.bfg-active{background-color:#080d13;background-image:linear-gradient(rgba(7,12,18,.76),rgba(7,12,18,.86)),url("../games/bfg/assets/bfg-space-background.webp")!important;}
@media(max-width:760px){body{background-attachment:scroll;background-position:center top}}
header.app{position:sticky;padding:14px 20px;border-bottom:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));background:linear-gradient(180deg,rgba(17,17,15,.95),rgba(17,17,15,.88));backdrop-filter:blur(10px);box-shadow:0 10px 30px rgba(0,0,0,.18);}
body.theme-light header.app{background:linear-gradient(180deg,rgba(250,246,238,.96),rgba(250,246,238,.9));}
header.app h1,#logoHome{font-family:var(--font-display);font-size:clamp(30px,3.2vw,42px);font-weight:700;letter-spacing:.02em;color:var(--text);text-transform:uppercase;}
header.app h1 span,#logoHome span{color:var(--accent);}
.lang{gap:6px;align-items:center;}
button,select,input,textarea{border-radius:4px;border-color:var(--line);background:rgba(24,24,21,.92);color:var(--text);}
body.theme-light button,body.theme-light select,body.theme-light input,body.theme-light textarea{background:rgba(251,247,238,.97);}
button{transition:border-color .18s ease,background-color .18s ease,transform .18s ease,box-shadow .18s ease;}
button:hover{transform:translateY(-1px);}
button.primary{background:linear-gradient(180deg,#d1a33a,#bb8b1f);border-color:#dfc16a;color:#17130b;box-shadow:inset 0 1px 0 rgba(255,244,202,.45);}
button.ghost,.lang button{background:rgba(20,19,17,.78);border-color:color-mix(in srgb,var(--accent) 22%,var(--line));color:var(--text);}
button.ghost:hover,.lang button:hover{border-color:var(--accent);background:rgba(29,27,23,.94);}
.lang button.on{background:linear-gradient(180deg,#d1a33a,#bc8b20);border-color:#e2c46d;color:#17130b;}
#netStatus{font-family:var(--font-tech);letter-spacing:.08em;border-radius:3px;padding-inline:12px;}
#portal{max-width:1560px;padding:34px 22px 64px;}
.portal-head{position:relative;margin:0 auto 24px;padding:70px 28px 60px;max-width:none;border-top:1px solid color-mix(in srgb,var(--accent) 52%,transparent);border-bottom:1px solid color-mix(in srgb,var(--accent) 42%,transparent);background:linear-gradient(180deg,rgba(12,12,11,.55),rgba(12,12,11,.25));overflow:hidden;}
.portal-head::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,9,8,.22),rgba(9,9,8,.08) 44%,rgba(9,9,8,.20));pointer-events:none;}
.portal-head>*{position:relative;z-index:1;}
.portal-logo{font-family:var(--font-display);font-size:clamp(72px,11vw,144px);font-weight:700;letter-spacing:-.03em;line-height:.88;color:#f4f0e6;text-shadow:0 4px 20px rgba(0,0,0,.22);}
.portal-logo span{color:var(--accent);}
.portal-tagline{display:inline-block;margin:22px auto 0;padding-top:18px;border-top:1px solid color-mix(in srgb,var(--accent) 75%,transparent);font-family:var(--font-display);font-size:clamp(28px,2.6vw,48px);letter-spacing:.16em;color:#efe7cf;}
.portal-head p{font-size:clamp(18px,1.35vw,24px);max-width:820px;color:#e2dccd;line-height:1.55;}
.portal-head,.portal-about,.player-hub-strip,.portal-games-section,.portal-play-partners,.portal-digital-partners,.portal-band{box-shadow:var(--shadow);}
.portal-about{margin-top:0;padding:0;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:6px;background:linear-gradient(180deg,rgba(19,19,17,.9),rgba(15,15,13,.9));}
.portal-about-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 24px;background:transparent;border:0;color:var(--text);font-family:var(--font-display);font-size:clamp(22px,2vw,34px);letter-spacing:.05em;text-align:left;}
.portal-about-toggle:hover{background:rgba(255,255,255,.02);transform:none;}
.portal-about-chevron{color:var(--accent);font-size:28px;}
.portal-about-content{padding:0 24px 24px;}
.portal-about-head p{font-size:15px;color:var(--muted);max-width:960px;}


.portal-feature strong,.portal-eyebrow,.player-hub-title,.game-tile .game-status,.portal-section-note,.player-hub-chip,.portal-band-actions button,.digital-partners-empty,.play-carousel-arrow{font-family:var(--font-tech);letter-spacing:.08em;text-transform:uppercase;}


.player-hub-strip{display:grid;grid-template-columns:minmax(0,1.7fr) auto;gap:18px;align-items:center;margin:20px 0 22px;padding:26px 28px;border:1px solid color-mix(in srgb,var(--accent) 32%,var(--line));border-radius:6px;background:linear-gradient(180deg,rgba(15,15,13,.88),rgba(10,10,9,.86));}
.player-hub-title{font-size:12px;color:var(--accent-strong);}
#portalPlayerGreeting{margin-top:6px;font-family:var(--font-display);font-size:clamp(24px,2.6vw,44px);font-weight:700;color:var(--text);}
.player-hub-summary{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.player-hub-chip{padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.02);font-size:11px;color:var(--text);}
.player-hub-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.player-hub-actions button{min-width:220px;padding:14px 18px;border-radius:4px;border:1px solid color-mix(in srgb,var(--accent) 44%,var(--line));background:rgba(18,18,16,.85);color:#f2ead3;font-family:var(--font-display);font-size:18px;letter-spacing:.08em;}
.portal-games-section,.portal-play-partners,.portal-digital-partners,.portal-band{margin-top:22px;padding:26px;border:1px solid var(--line);border-radius:6px;background:linear-gradient(180deg,rgba(17,17,15,.85),rgba(14,14,12,.83));}
.portal-section-head h3,.play-partners-head h3,.digital-partners-head h3,.portal-band h3{font-family:var(--font-display);font-size:clamp(34px,2.4vw,54px);margin:6px 0 0;color:#f2eee1;line-height:1;}
.portal-eyebrow{color:var(--accent-strong);font-size:11px;font-weight:700;}
.portal-section-note,.play-partners-head p,.digital-partners-head p,.portal-band p{color:var(--muted);font-size:13px;line-height:1.55;max-width:760px;}
.portal-games-section .game-grid-polish{gap:18px!important;}
.portal-games-section .game-grid-polish>.game-tile{border-radius:6px!important;border-color:color-mix(in srgb,var(--accent) 24%,var(--line))!important;box-shadow:none!important;}
.game-tile{position:relative;isolation:isolate;}
.game-tile::after{content:"";position:absolute;inset:12px;border:1px solid rgba(200,154,43,.2);border-radius:2px;pointer-events:none;opacity:.8;z-index:0;}
.game-tile .game-card-copy,.game-tile .open-game,.game-tile .game-status{position:relative;z-index:1;}
.game-tile.active:hover{border-color:var(--accent)!important;transform:translateY(-3px)!important;box-shadow:0 18px 32px rgba(0,0,0,.26);}
.game-tile .game-status{top:14px;right:14px;border-radius:3px;padding:6px 8px;background:rgba(13,13,12,.72);backdrop-filter:blur(6px);font-size:10px;color:#f0dfab;border-color:rgba(200,154,43,.55);}
.game-tile h3{font-family:var(--font-display);font-size:28px!important;letter-spacing:.04em;}
.game-tile p{font-size:13px!important;line-height:1.5;color:#ddd6c7!important;}
.game-tile .open-game{width:100%!important;border-radius:4px!important;background:rgba(15,14,12,.86)!important;border:1px solid rgba(200,154,43,.62)!important;color:#f3e7c0!important;font-family:var(--font-tech);font-size:12px!important;font-weight:700!important;letter-spacing:.08em;box-shadow:none!important;}
.game-tile .open-game:hover{background:rgba(38,33,23,.95)!important;border-color:#e0be65!important;}
.play-partners-carousel,.digital-partners-grid,.portal-band-community,.portal-band-install,.portal-band-developer{margin-top:14px;}
.play-carousel-arrow{border-radius:4px;background:rgba(15,14,12,.9);border-color:var(--line);color:var(--text);}
.play-carousel-arrow:hover{border-color:var(--accent);}
.portal-band-actions .primary,.portal-band-actions .partner-green,.portal-band-actions .partner-green-outline{border-radius:4px;}
.portal-footer-polish{margin-top:26px;padding:20px 0 0;border-top:1px solid var(--line);color:var(--muted);font-family:var(--font-tech);font-size:11px;letter-spacing:.08em;}
.portal-footer-polish .ghost{background:transparent;}
#home{max-width:1160px;}
.home-hero-v29{position:relative;padding:26px 28px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));border-radius:6px;background:linear-gradient(180deg,rgba(18,18,16,.86),rgba(13,13,11,.86));box-shadow:var(--shadow);overflow:hidden;}
.home-hero-v29::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(200,154,43,.06),transparent 38%);pointer-events:none;}
.home-hero-v29>*{position:relative;z-index:1;}
.home-kicker{font-family:var(--font-tech);font-size:11px;color:var(--accent-strong);}
.home-hero-v29 h2{font-family:var(--font-display);font-size:clamp(34px,3vw,52px)!important;line-height:1.04;color:#f3efe2;}
.home-hero-v29 p{font-size:14px;color:var(--muted);max-width:760px;line-height:1.6;}
.home-actions button,.home-tool{border-radius:4px;}
.account-card,.settings-card,.security-card,.messages-card,.notifications-card,.community-card{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:6px!important;box-shadow:var(--shadow);}
.account-head h2,.global-settings-head h2,.security-card h2,.community-head h2{font-family:var(--font-display);color:#f1ebd8;}
@media(max-width:960px){
  .player-hub-strip{grid-template-columns:1fr;padding:22px;}
  .player-hub-actions{justify-content:flex-start;}
  .player-hub-actions button{min-width:min(220px,100%);}
  .portal-head{padding:46px 18px 42px;}
}
@media(max-width:760px){
  header.app{padding:12px 14px;}
  #portal{padding:18px 12px 40px;}
  .portal-head{padding:32px 14px 28px;border-top-width:1px;border-bottom-width:1px;}
  .portal-logo{font-size:clamp(54px,18vw,92px);}
  .portal-tagline{font-size:clamp(18px,6vw,30px);letter-spacing:.12em;padding-top:12px;margin-top:12px;}
  .portal-head p{font-size:15px;}
  .portal-about-toggle{padding:16px 14px;font-size:24px;}
  .portal-about-content{padding:0 14px 18px;}
  .portal-games-section,.portal-play-partners,.portal-digital-partners,.portal-band,.player-hub-strip{padding:18px 14px;}
  .portal-section-head h3,.play-partners-head h3,.digital-partners-head h3,.portal-band h3{font-size:30px;}
  .game-tile h3{font-size:24px!important;}
}

/* ===== visual-language-03030-fixes ===== */
body{background-image:linear-gradient(180deg,rgba(10,10,9,.52),rgba(10,10,9,.64)),url("../assets/listawg-tactical-bg.webp");}
body.theme-light{background-image:linear-gradient(180deg,rgba(244,239,229,.84),rgba(244,239,229,.9)),url("../assets/listawg-tactical-bg.webp");}
body.theme-bordeaux{background-image:linear-gradient(180deg,rgba(20,11,14,.82),rgba(20,11,14,.9)),url("../assets/listawg-tactical-bg.webp");}
body.theme-green{--accent-strong:#c9c27a;background-image:linear-gradient(180deg,rgba(10,16,12,.84),rgba(10,16,12,.9)),url("../assets/listawg-tactical-bg.webp");color:var(--text)!important;}
body.theme-green header.app,body.theme-green .mobile-tabs{background:linear-gradient(180deg,rgba(17,24,19,.96),rgba(17,24,19,.9))!important;border-color:#455542!important;}
body.theme-green button,body.theme-green select,body.theme-green input,body.theme-green textarea{background:rgba(23,32,26,.96);color:var(--text);border-color:#53634f;}
body.theme-green button.primary,body.theme-green .lang button.on,body.theme-green .catalog-filters button.on{background:linear-gradient(180deg,#adb46b,#85945c)!important;border-color:#d0ca87!important;color:#11170f!important;}
body.theme-green .portal-band,body.theme-green .portal-games-section,body.theme-green .portal-play-partners,body.theme-green .portal-digital-partners,body.theme-green .player-hub-strip,body.theme-green .portal-about,body.theme-green .portal-feature,body.theme-green .account-card,body.theme-green .global-settings-card,body.theme-green .security-card,body.theme-green .privacy-card,body.theme-green .community-card,body.theme-green .battle-card,body.theme-green .cloud-library-card,body.theme-green .friends-card,body.theme-green .received-fleet-card,body.theme-green .share-fleet-card{background:#17201a!important;border-color:#53634f!important;color:var(--text)!important;}
body.theme-green .portal-tagline,body.theme-green .portal-eyebrow,body.theme-green .player-hub-title,body.theme-green .game-status,body.theme-green .portal-feature strong,body.theme-green .battle-score-value,body.theme-green .battle-objective-points{color:#d5cf8d!important;}
body.theme-green .hint,body.theme-green .portal-section-note,body.theme-green .play-partners-head p,body.theme-green .digital-partners-head p,body.theme-green .player-hub-subtitle,body.theme-green .portal-feature span{color:#b9c1b1!important;}
.theme-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.theme-choice-green{background:linear-gradient(145deg,#253126,#17201a)!important;color:#edf0e8!important;border-color:#7c9566!important;}
.portal-about-toggle{font-size:clamp(18px,1.7vw,26px);}
.player-hub-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.player-hub-role-inline{display:inline-flex;align-items:center;}
.player-hub-role-inline .profile-role-badge{font-size:11px;padding:4px 8px;border-radius:4px;}
#portalPlayerGreeting{margin-top:10px;font-size:clamp(22px,2.15vw,34px);line-height:1.06;}
#portalPlayerGreeting strong{display:block;font-weight:700;}
.player-hub-subtitle{margin-top:8px;color:var(--muted);font-size:15px;line-height:1.35;}
.player-hub-summary{margin-top:14px;}
.portal-head{background:linear-gradient(180deg,rgba(12,12,11,.44),rgba(12,12,11,.2));}
.portal-head::before{background:linear-gradient(90deg,rgba(9,9,8,.16),rgba(9,9,8,.04) 44%,rgba(9,9,8,.14));}
body.theme-light .portal-head{background:linear-gradient(180deg,rgba(255,251,244,.54),rgba(255,251,244,.28));}
body.theme-bordeaux .portal-head{background:linear-gradient(180deg,rgba(24,13,17,.46),rgba(24,13,17,.24));}
body.theme-green .portal-head{background:linear-gradient(180deg,rgba(16,22,18,.46),rgba(16,22,18,.24));}
body.bfg-active,body.bfg-active #catalogo,body.bfg-active #listaCatalogo,body.bfg-active #listaFrota,body.bfg-active #resumo,body.bfg-active #hq-box,body.bfg-active #sheetWrap,body.bfg-active #rulesModal,body.bfg-active #referenceModal,body.bfg-active #compareModal,body.bfg-active #overviewModal,body.bfg-active #gameMode,body.bfg-active #systemMapperModal{font-family:var(--font-ui);}
body.bfg-active h1,body.bfg-active h2,body.bfg-active h3,body.bfg-active h4,body.bfg-active .home-hero h2,body.bfg-active .ship h3,body.bfg-active .sheet-title-row h3,body.bfg-active #gameModeTitle,body.bfg-active .game-head strong,body.bfg-active #bmTitle,body.bfg-active #overviewTitle,body.bfg-active #rulesTitle,body.bfg-active #referenceTitle{font-family:var(--font-display)!important;letter-spacing:.03em;}
body.bfg-active .catalog-filters button,body.bfg-active .advanced-catalog-filters button,body.bfg-active .ship button,body.bfg-active .game-head-actions button,body.bfg-active .game-reset,body.bfg-active .game-status,body.bfg-active .portal-eyebrow,body.bfg-active .system-mapper-kicker,body.bfg-active #gameVersion,body.bfg-active .turn-tracker,body.bfg-active .sheet-caption,body.bfg-active .game-squad-kicker,body.bfg-active .game-squad-toggle,body.bfg-active .game-squad-meta,body.bfg-active .game-squad-members span,body.bfg-active .battle-taskforce-badge{font-family:var(--font-tech)!important;letter-spacing:.08em;}
body.bfg-active #catalogo p,body.bfg-active #catalogo span,body.bfg-active #catalogo small,body.bfg-active #gameMode p,body.bfg-active #gameMode span,body.bfg-active #rulesModal p,body.bfg-active #referenceModal p{font-family:var(--font-ui)!important;}
@media(max-width:960px){.theme-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){#portalPlayerGreeting{font-size:clamp(20px,8.5vw,28px);} .player-hub-subtitle{font-size:13px;} .game-tile>.game-status{top:12px!important;right:12px!important;} }
@media(max-width:600px){.theme-choice-grid{grid-template-columns:1fr;}}

