/* 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. */

/* ===== future-game-library-03033 ===== */















/* ===== light-theme-contrast-03034 ===== */
/* Alpha 0.34.20 — light theme contrast pass for the new editorial visual language. */
body.theme-light{
  --text:#1c1a16;
  --muted:#5f5a50;
  --accent:#956900;
  --accent-strong:#7b5700;
  --line:#bdb4a3;
  color:#1c1a16!important;
}
body.theme-light #portal{color:#1c1a16;}
body.theme-light .portal-head{
  background:linear-gradient(180deg,rgba(250,247,239,.74),rgba(246,241,231,.60))!important;
  border-color:rgba(149,105,0,.38)!important;
}
body.theme-light .portal-head::before{background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.02) 44%,rgba(255,255,255,.08))!important;}
body.theme-light .portal-logo{color:#191815!important;text-shadow:0 2px 12px rgba(255,255,255,.35)!important;}
body.theme-light .portal-logo span{color:#9a6c00!important;}
body.theme-light .portal-tagline{color:#8a6100!important;border-top-color:rgba(138,97,0,.5)!important;}
body.theme-light .portal-head p{color:#4f4a42!important;text-shadow:0 1px 0 rgba(255,255,255,.55);}
body.theme-light .portal-about{background:rgba(253,250,243,.94)!important;border-color:#c7bda9!important;}
body.theme-light .portal-about-toggle{color:#1d1a15!important;}
body.theme-light .portal-about-chevron{color:#8a6100!important;}
body.theme-light .portal-about-head p{color:#555046!important;}



body.theme-light .player-hub-strip{background:rgba(252,248,240,.94)!important;border-color:#c5b99f!important;}
body.theme-light .player-hub-title{color:#8a6100!important;}
body.theme-light #portalPlayerGreeting,body.theme-light #portalPlayerGreeting strong{color:#1d1a15!important;}
body.theme-light .player-hub-subtitle{color:#5c564c!important;}
body.theme-light .player-hub-role-inline .profile-role-badge{color:#5a4300!important;border-color:#a8893c!important;background:#efe3bc!important;}
body.theme-light .player-hub-chip{color:#24211c!important;background:#f5efe3!important;border-color:#c9bfac!important;}
body.theme-light .player-hub-actions button{background:#fbf8f1!important;color:#211e19!important;border-color:#b9aa8c!important;}
body.theme-light .player-hub-actions button:hover{background:#f0e7d6!important;border-color:#956900!important;}
body.theme-light .portal-games-section,body.theme-light .portal-play-partners,body.theme-light .portal-digital-partners,body.theme-light .portal-band{
  background:rgba(252,249,242,.95)!important;
  border-color:#c8beaa!important;
  color:#1d1a15!important;
}
body.theme-light .portal-section-head h3,body.theme-light .play-partners-head h3,body.theme-light .digital-partners-head h3,body.theme-light .portal-band h3{color:#25211a!important;text-shadow:none!important;}
body.theme-light .portal-section-note,body.theme-light .play-partners-head p,body.theme-light .digital-partners-head p,body.theme-light .portal-band p{color:#5d574d!important;}
body.theme-light .portal-eyebrow{color:#805b00!important;}
body.theme-light .portal-band-green .portal-eyebrow,body.theme-light .portal-band-developer .portal-eyebrow{color:#2d6941!important;}
body.theme-light .portal-band-install{background:linear-gradient(110deg,#f7edd1,#fbf8f0 60%)!important;border-color:#bda052!important;}
body.theme-light .portal-band-developer{background:#fbf8f1!important;}
body.theme-light .portal-digital-partners .digital-partners-empty{color:#625c52!important;}
body.theme-light .digital-partner-name,body.theme-light .digital-partner-card strong{color:#27231d!important;}

body.theme-light .portal-footer-polish{color:#5e594f!important;border-top-color:#c7bead!important;}
body.theme-light .portal-footer-polish span,body.theme-light .portal-footer-polish button{color:#5e594f!important;}
body.theme-light button.ghost,body.theme-light .lang button{background:#faf6ed!important;color:#26221c!important;border-color:#c4baa8!important;}
body.theme-light button.ghost:hover,body.theme-light .lang button:hover{background:#eee4d2!important;color:#17140f!important;border-color:#956900!important;}
body.theme-light .lang button.on,body.theme-light button.primary{background:linear-gradient(180deg,#b78612,#986b00)!important;color:#fffaf0!important;border-color:#8c6200!important;}
body.theme-light #netStatus{color:#277a50!important;background:#f8f5ed!important;border-color:#7ca88e!important;}
body.theme-light .theme-toggle{color:#2a261f!important;}
/* Game artwork stays dark by design, so its copy keeps the high-contrast white treatment. */
body.theme-light .game-tile.active .game-card-copy h3,body.theme-light .game-tile.active .game-card-copy p,body.theme-light .game-tile.active .open-game{color:#f5f0e6!important;}
body.theme-light .game-tile.active .game-status{color:#f1dfaa!important;background:rgba(15,14,12,.82)!important;border-color:rgba(211,170,60,.75)!important;}
/* Light-theme home/BFG surfaces inherit readable dark text where the surface itself is light. */
body.theme-light .home-hero-v29,body.theme-light .home-section,body.theme-light .home-item,body.theme-light #hq-box,body.theme-light #resumo{color:#1d1a15;}
body.theme-light .home-kicker,body.theme-light .home-section .portal-eyebrow{color:#805b00!important;}
body.theme-light .home-community,body.theme-light .home-community span,body.theme-light .home-version{color:#5d574d!important;}
@media(max-width:760px){
  body.theme-light .portal-head{background:rgba(250,247,239,.80)!important;}
}

/* ===== community-visual-refresh-03037 ===== */
.community-card{width:min(1080px,100%);padding:24px 24px 26px;}
.community-head h2{font-size:30px;line-height:1.05;}
.community-head .settings-note{max-width:620px;color:var(--muted);line-height:1.55;}
.community-toolbar input,.community-form input,.community-form textarea,.community-form select{background:rgba(10,10,9,.55);border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));color:var(--text);border-radius:6px;padding:12px 14px;}
.community-form input:focus,.community-form textarea:focus,.community-form select:focus,.community-toolbar input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent);}
.community-form-shell{margin-top:16px;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,.03));overflow:hidden;}
.community-form-intro{padding:18px 18px 14px;border-bottom:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.008));}
.community-form-intro h3{margin:8px 0 8px;font-family:var(--font-display);font-size:28px;line-height:1.05;color:var(--text);}
.community-form-intro p{margin:0;max-width:820px;color:var(--muted);line-height:1.55;font-size:14px;}
.community-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;}
.community-field{display:grid;gap:8px;align-content:start;}
.community-field>span,.community-form-section strong{font-family:var(--font-tech);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-strong);}
.community-field small,.community-form-section p,.community-switch small{color:var(--muted);font-size:12px;line-height:1.5;}
.community-form textarea{min-height:120px;resize:vertical;}
.community-span-2{grid-column:1/-1;}
.community-switch{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:start;padding:14px 16px;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));border-radius:8px;background:rgba(255,255,255,.02);}
.community-switch input{width:auto;margin-top:2px;}
.community-switch span{font-weight:700;color:var(--text);}
.community-switch small{grid-column:2;}
.community-form-section{padding:16px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));border-radius:8px;background:rgba(255,255,255,.018);}
.community-form-section p{margin:8px 0 14px;}
.community-games-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.community-check{display:grid;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;padding:12px 12px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));border-radius:8px;background:rgba(255,255,255,.02);min-height:64px;font-size:13px;line-height:1.35;cursor:pointer;}
.community-check:hover{border-color:var(--accent);background:rgba(255,255,255,.04);}
.community-check input{width:16px;height:16px;margin-top:2px;accent-color:var(--accent);}
.community-check-text{display:block;color:var(--text);font-weight:600;word-break:break-word;}
.community-form-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:4px;}
.community-form-footer .primary{min-width:240px;}
body.theme-light .community-toolbar input,body.theme-light .community-form input,body.theme-light .community-form textarea,body.theme-light .community-form select{background:#fffdf8;color:#1f1b14;border-color:#c8bea9;}
body.theme-light .community-form-shell{background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(255,252,246,.92));}
body.theme-light .community-form-intro{background:linear-gradient(180deg,rgba(157,116,32,.06),rgba(255,255,255,.2));}
body.theme-light .community-form-section,body.theme-light .community-switch,body.theme-light .community-check{background:rgba(255,255,255,.7);}
body.theme-bordeaux .community-form-shell{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.015));}
body.theme-green .community-toolbar input,body.theme-green .community-form input,body.theme-green .community-form textarea,body.theme-green .community-form select{background:#131c16;border-color:#53634f;}
body.theme-green .community-form-section,body.theme-green .community-switch,body.theme-green .community-check{background:rgba(255,255,255,.025);border-color:#53634f;}
@media(max-width:900px){.community-games-editor{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.community-card{padding:14px}.community-head h2{font-size:22px}.community-form-intro{padding:16px 14px 12px}.community-form-intro h3{font-size:22px}.community-form-grid{grid-template-columns:1fr;padding:14px}.community-span-2{grid-column:auto}.community-games-editor{grid-template-columns:1fr}.community-form-footer{justify-content:stretch}.community-form-footer .primary{width:100%}}

/* ===== community-profile-extras-03038 ===== */
.community-detail-hero{overflow:hidden;}
.community-profile-cover{width:100%;height:220px;object-fit:cover;border-radius:7px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));margin:0 0 16px;background:var(--panel-2);}
.community-profile-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 4px;color:var(--muted);font-size:12px}.community-profile-meta b{color:var(--text)}
.community-secondary-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.025);color:var(--text)!important;text-decoration:none;font-family:var(--font-tech);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.community-secondary-link:hover{border-color:var(--accent);background:var(--accent-wash)}
.community-image-preview{margin-top:8px;width:min(360px,100%);aspect-ratio:16/9;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);overflow:hidden}.community-image-preview img{display:block;width:100%;height:100%;object-fit:cover}.community-image-current{display:flex;gap:12px;align-items:center;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.02)}.community-image-current img{width:92px;height:64px;object-fit:cover;border-radius:5px}.community-image-current small{color:var(--muted)}
body.theme-light .community-secondary-link{background:#fffdf8;color:#1f1b14!important}.theme-light .community-image-current{background:#fffdf8}
@media(max-width:650px){.community-profile-cover{height:170px}.community-profile-meta{display:grid;gap:5px}.community-image-current{align-items:flex-start}}

/* ===== mobile-bfg-and-boot-03040 ===== */
/* Alpha 0.34.20 — new ListaWG boot / entry language */
#listawgBoot{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;box-sizing:border-box;padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(rgba(11,11,9,.80),rgba(11,11,9,.90)),url("../assets/listawg-tactical-bg.webp") center/cover no-repeat;color:#eee9df;opacity:0;transition:opacity .18s ease,visibility .18s ease}#listawgBoot.is-visible{opacity:1}#listawgBoot.is-done{opacity:0;visibility:hidden;pointer-events:none}.listawg-boot-card{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-width:100%;padding:28px 24px 24px;border:1px solid rgba(200,154,43,.66);border-radius:8px;background:rgba(16,16,13,.90);box-shadow:0 24px 80px rgba(0,0,0,.48);text-align:center;overflow:hidden}.listawg-boot-mark{display:block;width:100%;white-space:nowrap;font-family:Georgia,"Times New Roman",serif;font-size:clamp(44px,10.8vw,78px);font-weight:800;letter-spacing:-.055em;line-height:.92;color:#f0ece1}.listawg-boot-mark span{color:#c89a2b}.listawg-boot-rule{width:min(320px,72%);height:1px;margin:22px auto 18px;background:linear-gradient(90deg,transparent,#c89a2b,transparent)}.listawg-boot-kicker{font:800 11px/1.3 Consolas,"Courier New",monospace;letter-spacing:.18em;color:#d0ad58}.listawg-boot-copy{margin:8px 0 0;color:#b7b1a4;font:500 13px/1.45 "Segoe UI",Arial,sans-serif}.listawg-boot-progress{position:relative;height:3px;margin:22px auto 0;max-width:320px;background:#302d26;overflow:hidden}.listawg-boot-progress::after{content:"";position:absolute;inset:0 auto 0 0;width:38%;background:#c89a2b;animation:listawgBootSweep 1.05s ease-in-out infinite alternate}@keyframes listawgBootSweep{from{transform:translateX(-35%)}to{transform:translateX(200%)}}
body.theme-light #listawgBoot{background:linear-gradient(rgba(241,236,224,.84),rgba(241,236,224,.92)),url("../assets/listawg-tactical-bg.webp") center/cover no-repeat;color:#1d1a15}body.theme-light .listawg-boot-card{background:rgba(250,247,239,.94);border-color:#9d7420}body.theme-light .listawg-boot-mark{color:#1f1b14}body.theme-light .listawg-boot-copy{color:#625b4f}
/* BFG game mode uses the new neutral graphite language instead of the legacy blue */
body.game-open #gameMode,.game-mode{background:#10110f!important;color:#eee9df!important}.game-mode .game-head{background:#10110f!important;border-bottom-color:#c89a2b!important;box-shadow:0 -34px 0 34px #10110f,0 8px 18px rgba(0,0,0,.24)!important}.game-mode .game-card{background:#181916!important;border-color:#464239!important;color:#eee9df!important}.game-mode .game-card .meta,.game-mode .game-hits,.game-mode .ordnance-row span{color:#aaa79d!important}.game-mode .game-card h3{color:#f1ede3!important}.game-mode .game-combat-stats span{background:#11120f!important;border-color:#39372f!important}.game-mode .game-combat-stats small{color:#9f9a8e!important}.game-mode .game-combat-stats b{color:#eee9df!important}.game-mode .game-card th{background:#11120f!important;color:#d3ad55!important}.game-mode .game-card th,.game-mode .game-card td{border-color:#3f3b33!important}.game-mode .game-orders label{background:#11120f!important;border-color:#403c34!important;color:#ddd7ca!important}.game-mode .game-squad-group{background:#141510!important;border-color:#4b473d!important}.game-mode .game-squad-card{background:linear-gradient(145deg,#1c1d19,#141510)!important;color:#eee9df!important}.game-mode .game-squad-meta{color:#aaa79d!important}.game-mode .game-squad-meta b{color:#eee9df!important}.game-mode .game-squad-members span{background:#10110e!important;border-color:#403c34!important;color:#ddd7ca!important}.game-squad-ships{background:rgba(5,6,5,.90)!important}.game-squad-modal-panel{background:#10110f!important;border-color:#5a5447!important}.game-squad-modal-head{background:#181916!important;border-color:#49443a!important}.game-squad-modal-head button{background:#1b1c18!important;border-color:#5c5547!important;color:#f2ede1!important}.game-squad-modal-cards{align-items:start}.game-squad-modal-cards>.game-card{align-self:start}.game-squad-modal-cards>.game-card table{height:auto!important}.task-force-view{background:linear-gradient(rgba(13,14,11,.88),rgba(13,14,11,.94)),url("../assets/listawg-tactical-bg.webp") center/cover fixed!important}.task-force-head,.task-force-summary,.task-force-presets,.task-force-footer{background:rgba(22,21,16,.94)!important;border-color:#6d5929!important}.task-force-card{background:#171713!important;border-color:#4a4436!important}.task-force-card.selected{background:linear-gradient(145deg,#2e2817,#191711)!important;border-color:#c89a2b!important}
@media(max-width:760px){
  #listawgBoot{background-attachment:scroll;padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.listawg-boot-card{width:min(390px,calc(100vw - 24px));padding:22px 16px 20px;border-radius:6px}.listawg-boot-mark{font-size:clamp(38px,13vw,56px);letter-spacing:-.06em}.listawg-boot-rule{width:min(250px,74%);margin:18px auto 15px}.listawg-boot-kicker{font-size:10px;letter-spacing:.14em}.listawg-boot-copy{font-size:12px;line-height:1.4}.listawg-boot-progress{max-width:260px;margin-top:18px}
  body.game-open #gameMode{padding:0 0 calc(76px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important}.game-mode .game-head{margin:0!important;padding:max(10px,env(safe-area-inset-top)) 12px 12px!important;position:sticky!important;top:0!important}.game-cards{padding:0 10px;margin-top:10px!important}.game-card{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}.game-title-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px}.game-card h3{font-size:clamp(16px,5.5vw,22px)!important;line-height:1.08!important}.game-card .meta{font-size:11px!important;line-height:1.35!important}.game-combat-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.game-combat-stats span{min-height:48px;display:grid;align-content:center}.game-combat-stats small{font-size:7px!important}.game-combat-stats b{font-size:11px!important}.crippled-effects,.critical-effects{font-size:11px!important;line-height:1.42!important}.game-card table{display:table!important;width:100%!important;table-layout:fixed!important;overflow:visible!important;font-size:9px!important}.game-card table tbody{min-width:0!important}.game-card th,.game-card td{padding:6px 3px!important;overflow-wrap:anywhere;word-break:normal}.game-card th:first-child,.game-card td:first-child{width:42%}.game-card .weapon-gunnery,.game-card .nova-game-btn{display:block;margin:4px auto 0!important;max-width:100%;white-space:normal}.game-orders{display:grid!important;grid-template-columns:1fr 1fr!important}.game-orders label{min-height:40px!important;padding:7px!important}.ordnance-row{display:grid!important;grid-template-columns:minmax(0,1fr) 34px 28px 34px auto;gap:4px!important}.ordnance-row span:first-child{min-width:0!important}.game-quick-actions{grid-template-columns:minmax(0,1fr) 44px!important}.game-quick-actions button[data-destroy]{grid-column:1/-1!important}
  .game-squad-ships{display:block!important;padding:0!important;overflow:hidden!important}.game-squad-ships[hidden]{display:none!important}.game-squad-modal-panel{width:100dvw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}.game-squad-modal-head{flex:0 0 auto;padding:max(12px,env(safe-area-inset-top)) 12px 10px!important}.game-squad-modal-head strong{font-size:17px!important}.game-squad-modal-head button{min-width:96px!important}.game-squad-modal-cards{display:block!important;flex:1 1 auto;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 10px calc(18px + env(safe-area-inset-bottom))!important;overscroll-behavior:contain}.game-squad-modal-cards>.game-card{width:100%!important;margin:0 0 10px!important;padding:12px!important;height:auto!important;max-height:none!important;overflow:visible!important}.game-squad-modal-cards>.game-card:last-child{margin-bottom:24px!important}
  .task-force-shell{width:100%!important;padding:max(10px,env(safe-area-inset-top)) 10px calc(92px + env(safe-area-inset-bottom))!important}.task-force-head{border-radius:8px!important;padding:13px!important}.task-force-summary{position:relative!important;top:auto!important;border-radius:8px!important}.task-force-card{grid-template-columns:28px minmax(0,1fr) auto!important;gap:9px!important;border-radius:8px!important;padding:11px!important}.task-force-pts{grid-column:auto!important;font-size:13px!important}.task-force-main strong{font-size:15px!important;line-height:1.2!important}.task-force-main p{font-size:10px!important;line-height:1.4!important}.task-force-members{grid-column:2/-1!important}.task-force-members span{font-size:9px!important;max-width:100%;overflow-wrap:anywhere}.task-force-presets{padding:10px!important;border-radius:8px!important}.task-force-footer{border-radius:8px!important}.task-force-setup{padding:0!important}.task-force-setup-card{width:100dvw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border-left:0!important;border-right:0!important}.task-force-setup-list{overflow-y:auto!important;min-height:0}.task-force-setup-row{align-items:start!important}.task-force-setup-row strong{font-size:13px}.task-force-setup-row small{font-size:10px;line-height:1.35}
}
@media(max-width:390px){.listawg-boot-card{width:calc(100vw - 20px);padding:20px 14px 18px}.listawg-boot-mark{font-size:clamp(34px,12.5vw,46px)}.listawg-boot-kicker{font-size:9px;letter-spacing:.11em}.listawg-boot-copy{font-size:11px}.game-card{padding:10px!important}.game-card h3{font-size:16px!important}.game-status{font-size:8px!important;padding:4px 6px!important}.game-combat-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.game-orders{grid-template-columns:1fr!important}.task-force-card{grid-template-columns:26px minmax(0,1fr)!important}.task-force-pts{grid-column:2!important;justify-self:start}.task-force-members{grid-column:2!important}}

/* ===== mobile-navigation-update-fix-03043 ===== */
/* Alpha 0.34.20 — mobile navigation + non-blocking update banner. Desktop is deliberately untouched. */
@media(max-width:760px){html,body{max-width:100%;overflow-x:hidden;}}
body{touch-action:pan-y;}
.pwa-update{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:52000;width:min(640px,calc(100vw - 28px));box-sizing:border-box;background:#15140f;border:1px solid color-mix(in srgb,var(--accent) 72%,#6d5724);border-radius:8px;padding:10px 12px;box-shadow:0 14px 36px rgba(0,0,0,.48);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;color:var(--text);}
.pwa-update[hidden]{display:none!important;}
.pwa-update>span{font-size:12px;line-height:1.35;color:var(--text);min-width:0;}
.pwa-update-actions{display:flex;align-items:center;gap:7px;}
.pwa-update .primary{min-height:38px;padding:8px 13px;white-space:nowrap;border-radius:4px;}
.pwa-update-dismiss{width:38px;height:38px;min-width:38px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);font-size:21px;line-height:1;}
.pwa-update-dismiss:hover,.pwa-update-dismiss:focus-visible{border-color:var(--accent);color:var(--text);}
.pwa-update[data-state="failed"]{border-color:#8b6f2a;background:#18150f;}
.pwa-update[data-state="failed"]>span{color:#e9dfc8;}
body.theme-light .pwa-update{background:#fffaf0;color:#1f1b14;border-color:#a27c22;box-shadow:0 14px 36px rgba(65,52,25,.2);}
body.theme-light .pwa-update>span{color:#2c271e;}
body.theme-light .pwa-update-dismiss{color:#655c50;background:#fffdf8;}




@media(max-width:760px){
  .pwa-update{bottom:max(10px,env(safe-area-inset-bottom));width:calc(100vw - 20px);grid-template-columns:1fr;padding:10px;gap:8px;}
  .pwa-update>span{font-size:12px;padding-right:2px;}
  .pwa-update-actions{display:grid;grid-template-columns:1fr 42px;width:100%;}
  .pwa-update .primary{width:100%;min-height:42px;}
  .pwa-update-dismiss{width:42px;height:42px;min-width:42px;}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media(max-width:390px){
  
  
  
  .pwa-update{width:calc(100vw - 14px);}
}

/* ===== desktop-scroll-stability-03043 ===== */
@media(min-width:761px){
  html.listawg-desktop-root{overflow-x:visible;scroll-behavior:auto!important;}
  body.listawg-desktop-input{overflow-x:visible;scroll-behavior:auto!important;overscroll-behavior-y:auto;}
  body.listawg-desktop-input #portal{contain:none;}
}

/* ===== mobile-header-android-icons-03044 ===== */
/* Alpha 0.34.20 — mobile app header controls + Android adaptive icon pass */
@media(max-width:760px){
  header.app{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))!important;}
  header.app>div:first-child{width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;}
  header.app #logoHome{font-size:clamp(38px,11.5vw,52px)!important;line-height:1!important;margin:0!important;}
  #langBox.lang{width:100%!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;margin:0!important;align-items:stretch!important;}
  #langBox.lang>button{width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;border-radius:6px!important;line-height:1!important;}
  #langBox #netStatus{display:grid!important;font-size:0!important;}
  #langBox #netStatus::before{content:"●";font-size:16px;line-height:1;}
  #langBox #netStatus[data-state="ok"]::before{color:#69d69a;}
  #langBox #netStatus[data-state="warn"]::before{color:#d9b24a;}
  #langBox #netStatus[data-state="bad"]::before{color:#ef7777;}
  #langBox #btnGlobalSettings{font-size:0!important;}
  #langBox #btnGlobalSettings::before{content:"⚙";font-size:25px;line-height:1;display:block;transform:none!important;}
  #langBox [data-lang="pt"]{font-size:16px!important;font-weight:800;}
  #langBox [data-lang="en"]{font-size:16px!important;font-weight:700;}
  #langBox #btnThemeToggle{font-size:22px!important;}
  #langBox .account-header-btn{order:6!important;width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;padding:0 12px!important;margin:0!important;font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  #langBox .header-notify{right:8px!important;top:5px!important;}
}
@media(max-width:390px){
  header.app{padding-left:max(9px,env(safe-area-inset-left))!important;padding-right:max(9px,env(safe-area-inset-right))!important;}
  #langBox.lang{gap:5px!important;}
  #langBox.lang>button{height:44px!important;min-height:44px!important;}
  #langBox .account-header-btn{height:44px!important;min-height:44px!important;font-size:14px!important;}
  #langBox #btnGlobalSettings::before{font-size:23px;}
}

/* ===== theme-unification-03045 ===== */
/* Alpha 0.34.20 — finish the editorial theme migration without changing module logic. */
body.theme-bordeaux{
  --bg:#160b0f;--panel:#211016;--panel-2:#2b151d;--line:#63303e;
  --text:#f5e9ec;--muted:#c1a9b0;--accent:#a8415d;--accent-strong:#d96d89;
  --accent-wash:rgba(168,65,93,.13);--shadow:0 18px 48px rgba(0,0,0,.38);
}
body.theme-green{
  --bg:#0f1512;--panel:#17201a;--panel-2:#1e2a23;--line:#53634f;
  --text:#edf0e8;--muted:#b9c1b1;--accent:#8ca66a;--accent-strong:#d5cf8d;
  --accent-wash:rgba(140,166,106,.12);--shadow:0 18px 48px rgba(0,0,0,.34);
}

/* Global modal shells: remove legacy navy cards and reuse the current platform palette. */
.account-modal,.cloud-library-modal,.friends-modal,.share-fleet-modal,.received-fleet-modal,.battle-modal,.play-locations-modal,.location-form-modal,.location-admin-modal,.security-modal,.privacy-modal,.global-settings-modal,.admin-center-modal,.safety-modal,.theme-picker-modal,.community-modal,.digital-partner-admin-modal,.digital-partner-apply-modal,.critical-modal{
  background:color-mix(in srgb,var(--bg) 84%,transparent)!important;
}
.account-card,.cloud-library-card,.friends-card,.share-fleet-card,.received-fleet-card,.battle-card,.play-locations-card,.location-form-card,.location-admin-card,.security-card,.privacy-card,.global-settings-card,.admin-center-card,.safety-card,.theme-picker-card,.community-card,.digital-partner-admin-card,.digital-partner-apply-card,.critical-card,.diagnostics-card,.messages-card,.notifications-card{
  background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;
  border-radius:6px!important;box-shadow:var(--shadow)!important;
}
.account-head,.global-settings-head,.play-locations-head,.community-head,.settings-admin-head{
  border-color:var(--line)!important;
}
.account-head h2,.global-settings-head h2,.play-locations-head h2,.community-head h2,.security-card h2,.privacy-card h2,.admin-center-card h2,.safety-card h2,.critical-card h2{
  font-family:var(--font-display)!important;color:var(--text)!important;letter-spacing:.025em;
}

/* Settings/admin surfaces */
.settings-section,.admin-panel,.admin-user-row,.admin-log-row,.settings-state,.auth-panel,.location-card,.location-admin-row,.community-org,.community-detail-hero,.privacy-notice,.privacy-check,.digital-partner-admin-row,.battle-row,.battle-fleet,.battle-dashboard,.battle-log-panel{
  background:color-mix(in srgb,var(--panel-2) 82%,var(--bg))!important;
  color:var(--text)!important;border-color:var(--line)!important;border-radius:5px!important;
}
.settings-section>strong,.settings-admin-head span,.admin-role-badge,.home-kicker,.portal-eyebrow{
  color:var(--accent-strong)!important;
}
.settings-note,.settings-state,.settings-section small,.admin-field,.admin-user-meta,.admin-log-row span,.friend-empty,.location-card p,.location-card .location-meta,.community-org p,.community-org small,.privacy-state,.privacy-check span,.digital-partners-empty{
  color:var(--muted)!important;
}
.settings-switch>span{background:var(--panel-2)!important;border-color:var(--line)!important}
.settings-switch>span:before{background:var(--muted)!important}
.settings-switch input:checked+span{background:color-mix(in srgb,var(--accent) 45%,var(--panel))!important;border-color:var(--accent)!important}
.settings-switch input:checked+span:before{background:var(--accent-strong)!important}
.settings-state[data-on="true"]{color:var(--accent-strong)!important}
.admin-role-badge,.community-badge,.community-game{border-color:color-mix(in srgb,var(--accent) 48%,var(--line))!important;color:var(--accent-strong)!important}
.admin-online,.community-verified{color:#8fc9a1!important}
.more-pop,.cloud-account-badge,.cloud-status,.home-about-pill{
  background:var(--panel-2)!important;color:var(--text)!important;border-color:var(--line)!important;
}

/* Form controls inherit theme consistently. */
body input,body select,body textarea,body button.ghost,body .more-menu summary{
  background:color-mix(in srgb,var(--panel) 92%,var(--bg))!important;
  color:var(--text)!important;border-color:var(--line)!important;
}
body input::placeholder,body textarea::placeholder{color:color-mix(in srgb,var(--muted) 78%,transparent)!important;opacity:1}
body button.ghost:hover,body .more-menu summary:hover{border-color:var(--accent)!important;background:var(--panel-2)!important}
body button.primary,body .lang button.on,body .catalog-filters button.on{
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 92%,white 8%),var(--accent))!important;
  border-color:var(--accent-strong)!important;color:#17130b!important;
}
body.theme-bordeaux button.primary,body.theme-bordeaux .lang button.on,body.theme-bordeaux .catalog-filters button.on{color:#fff7f9!important}
body.theme-green button.primary,body.theme-green .lang button.on,body.theme-green .catalog-filters button.on{color:#10150f!important}

/* Community / locations / digital partners lose the remaining blue treatment. */
.portal-band-community,.portal-digital-partners{
  background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 90%,transparent),color-mix(in srgb,var(--bg) 94%,transparent))!important;
  border-color:var(--line)!important;
}
.digital-partner-logo,.location-card-logo,.location-card-logo-placeholder{
  background:var(--panel-2)!important;border-color:var(--line)!important;
}
.digital-partner:hover .digital-partner-logo{border-color:var(--accent)!important}
.community-master-gear{background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important}

/* Legacy BFG builder surfaces now use the same neutral editorial system. */
body.bfg-active .mobile-tabs,body.bfg-active .more-pop,body.bfg-active .validation-panel,body.bfg-active #hq-box,body.bfg-active #resumo,body.bfg-active .ship,body.bfg-active .home-hero,body.bfg-active .home-section,body.bfg-active .home-item{
  background:color-mix(in srgb,var(--panel) 94%,transparent)!important;
  color:var(--text)!important;border-color:var(--line)!important;
}
body.bfg-active .validation-item:hover,body.bfg-active .ship:hover{background:var(--panel-2)!important;border-color:var(--accent)!important}
body.bfg-active .progress{background:color-mix(in srgb,var(--line) 70%,var(--bg))!important}
body.bfg-active .home-fac{background:var(--panel-2)!important;color:var(--accent-strong)!important}
body.bfg-active button.icon:hover{background:var(--panel-2)!important}

/* Theme-aware game mode/task-force surfaces. */
body.theme-light .game-mode,body.theme-light.game-open #gameMode{background:#f3f0e8!important;color:#1f1b14!important}
body.theme-light .game-mode .game-head{background:#f3f0e8!important;box-shadow:0 -34px 0 34px #f3f0e8,0 8px 18px rgba(61,56,43,.12)!important}
body.theme-light .game-mode .game-card,body.theme-light .game-mode .game-squad-group,body.theme-light .game-squad-modal-panel,body.theme-light .game-squad-modal-head{background:#fbf7ee!important;color:#1f1b14!important;border-color:#c8bea9!important}
body.theme-light .game-mode .game-card h3,body.theme-light .game-squad-modal-head strong{color:#1f1b14!important}
body.theme-light .game-mode .game-card .meta,body.theme-light .game-mode .game-squad-meta{color:#6b6558!important}
body.theme-light .game-mode .game-combat-stats span,body.theme-light .game-mode .game-orders label,body.theme-light .game-mode .game-squad-members span{background:#f3eddf!important;border-color:#c8bea9!important;color:#1f1b14!important}
body.theme-light .game-squad-ships{background:rgba(242,238,227,.96)!important}
body.theme-light .task-force-view{background:linear-gradient(rgba(244,239,229,.88),rgba(244,239,229,.94)),url("../assets/listawg-tactical-bg.webp") center/cover fixed!important;color:#1f1b14!important}
body.theme-light .task-force-head,body.theme-light .task-force-summary,body.theme-light .task-force-presets,body.theme-light .task-force-footer,body.theme-light .task-force-card,body.theme-light .task-force-preset{background:#fbf7ee!important;color:#1f1b14!important;border-color:#c8bea9!important}
body.theme-light .task-force-main strong,body.theme-light .task-force-preset-load,body.theme-light .task-force-head h2{color:#1f1b14!important}
body.theme-light .task-force-main p,body.theme-light .task-force-kind,body.theme-light .task-force-presets-head small{color:#6b6558!important}

body.theme-bordeaux .game-mode,body.theme-bordeaux.game-open #gameMode{background:var(--bg)!important;color:var(--text)!important}
body.theme-bordeaux .game-mode .game-head{background:var(--bg)!important;border-bottom-color:var(--accent)!important;box-shadow:0 -34px 0 34px var(--bg),0 8px 18px rgba(0,0,0,.28)!important}
body.theme-bordeaux .game-mode .game-card,body.theme-bordeaux .game-mode .game-squad-group,body.theme-bordeaux .game-squad-modal-panel,body.theme-bordeaux .game-squad-modal-head{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
body.theme-bordeaux .game-mode .game-card h3,body.theme-bordeaux .game-squad-modal-head strong{color:var(--text)!important}
body.theme-bordeaux .game-squad-ships{background:rgba(14,6,9,.94)!important}
body.theme-bordeaux .task-force-view{background:linear-gradient(rgba(22,11,15,.90),rgba(22,11,15,.95)),url("../assets/listawg-tactical-bg.webp") center/cover fixed!important}
body.theme-bordeaux .task-force-head,body.theme-bordeaux .task-force-summary,body.theme-bordeaux .task-force-presets,body.theme-bordeaux .task-force-footer,body.theme-bordeaux .task-force-card,body.theme-bordeaux .task-force-preset{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}

body.theme-green .game-mode,body.theme-green.game-open #gameMode{background:var(--bg)!important;color:var(--text)!important}
body.theme-green .game-mode .game-head{background:var(--bg)!important;border-bottom-color:var(--accent)!important;box-shadow:0 -34px 0 34px var(--bg),0 8px 18px rgba(0,0,0,.24)!important}
body.theme-green .game-mode .game-card,body.theme-green .game-mode .game-squad-group,body.theme-green .game-squad-modal-panel,body.theme-green .game-squad-modal-head{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
body.theme-green .game-mode .game-card h3,body.theme-green .game-squad-modal-head strong{color:var(--text)!important}
body.theme-green .game-squad-ships{background:rgba(9,14,11,.94)!important}
body.theme-green .task-force-view{background:linear-gradient(rgba(15,21,18,.90),rgba(15,21,18,.95)),url("../assets/listawg-tactical-bg.webp") center/cover fixed!important}
body.theme-green .task-force-head,body.theme-green .task-force-summary,body.theme-green .task-force-presets,body.theme-green .task-force-footer,body.theme-green .task-force-card,body.theme-green .task-force-preset{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}

/* KT / TC / COMANDO modal shells: typography and surfaces follow platform theme, content identity remains intact. */
.tc-saved-modal,.tc-ds-modal,.comando-sheet-modal{
  color:var(--text);
}
.tc-saved-card,.comando-sheet-card{
  background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;
}
.tc-saved-card h2,.comando-sheet-card h2{
  font-family:var(--font-display)!important;color:var(--text)!important;
}

/* Light mode must always prefer dark readable copy outside intentionally dark game artwork. */
body.theme-light .portal-section-head h3,body.theme-light .play-partners-head h3,body.theme-light .digital-partners-head h3,body.theme-light .portal-band h3,body.theme-light .account-head h2,body.theme-light .global-settings-head h2,body.theme-light .security-card h2,body.theme-light .community-head h2,body.theme-light .community-form-intro h3,body.theme-light .settings-section,body.theme-light .admin-panel,body.theme-light .admin-user-row,body.theme-light .admin-log-row{
  color:#1f1b14!important;
}
body.theme-light .portal-section-note,body.theme-light .play-partners-head p,body.theme-light .digital-partners-head p,body.theme-light .portal-band p,body.theme-light .settings-note,body.theme-light .settings-state,body.theme-light .admin-user-meta,body.theme-light .admin-log-row span{color:#625b4f!important}

@media(max-width:760px){
  .global-settings-card,.admin-center-card,.security-card,.privacy-card,.safety-card,.theme-picker-card,.community-card,.play-locations-card,.location-form-card,.location-admin-card,.digital-partner-admin-card,.digital-partner-apply-card{
    border-radius:6px!important;
  }
}
