:root{color-scheme:dark;--bg:#0c1318;--panel:#131d22;--panel2:#1d282e;--line:#344248;--gold:#eac477;--gold2:#a6874e;--text:#dde5e4;--muted:#83979b;--red:#b94a47;--blue:#55b1d4}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}button,select,input{font:inherit}button{cursor:pointer;user-select:none;touch-action:manipulation}button:disabled{cursor:not-allowed}
#gameShell{display:flex;flex-direction:column;height:100dvh;min-height:400px;overflow:hidden}.topbar{height:68px;min-height:68px;background:linear-gradient(180deg,#26343b 0%,#121b21 85%);border-bottom:2px solid #617079;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 15px;z-index:2;box-shadow:0 3px 15px #0009}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:2px solid var(--gold2);background:#111820;color:var(--gold);font-size:22px;font-weight:1000;letter-spacing:-3px;box-shadow:inset 0 0 12px #000,0 0 12px #dcaa4224;transform:skew(-5deg)}.brand strong{display:block;font-size:20px;font-weight:1000;line-height:1.05;letter-spacing:2px;color:#f2d8a1}.brand small{display:block;font-size:8px;letter-spacing:1.5px;color:#9bb0b3;margin-top:4px}.top-stats{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}.metric{background:#0b1518;border:1px solid #344751;border-top-color:#718087;min-width:104px;padding:7px 12px;box-shadow:inset 0 0 10px #020909}.metric span{display:block;font-size:10px;color:#8da7ad;letter-spacing:1px;font-weight:bold}.metric strong{display:block;font-family:Consolas,monospace;font-size:18px;margin-top:3px;color:#f0cf7c}.metric:nth-child(2) strong{color:#8bd8d2}.metric:nth-child(3) strong{color:#b8ccce}.top-actions{display:flex;gap:5px}.top-actions button,.side-footer button{color:#c7d9da;border:1px solid #53616a;background:linear-gradient(#263740,#121e25);font-size:11px;font-weight:bold;letter-spacing:.6px;padding:12px 10px;white-space:nowrap}.top-actions button:hover,.side-footer button:hover{border-color:var(--gold);color:var(--gold)}.main-area{flex:1;display:flex;min-height:0;position:relative}#battlefield{position:relative;flex:1;min-width:0;min-height:0;background:#1d3226;overflow:hidden;touch-action:none}#gameCanvas{width:100%;height:100%;display:block;outline:none;touch-action:none;cursor:crosshair}#gameCanvas.placing{cursor:copy}#gameCanvas.dragging{cursor:grabbing}.map-corner{position:absolute;z-index:1;pointer-events:none;font:700 11px/1.4 Consolas,monospace;letter-spacing:.7px;color:#e4e9dd;background:#101a1bcf;border:1px solid #5b645a9c;box-shadow:0 2px 9px #000a;padding:7px 10px}.top-left{top:14px;left:14px;display:flex;align-items:center;gap:9px}.led{width:7px;height:7px;border-radius:100%;background:#77e1a4;box-shadow:0 0 8px #77e1a4;animation:blink 2.5s infinite}@keyframes blink{50%{opacity:.45}}.bottom-left{bottom:14px;left:14px;max-width:85%;font-size:10px;color:#bac5b8}.bottom-right{bottom:14px;right:14px;font-size:10px;color:#e8d3a5}#notices{position:absolute;top:56px;left:14px;z-index:5;display:flex;flex-direction:column;gap:5px;pointer-events:none}.notice{border-left:3px solid #d9b15d;background:#10191ce8;padding:8px 12px;font-size:12px;font-weight:bold;box-shadow:0 3px 12px #0009;animation:notice .22s ease}.notice.warning{border-color:#df6861}.notice.good{border-color:#69d4a0}@keyframes notice{from{transform:translateX(-10px);opacity:0}}
#sidebar{width:300px;min-width:300px;display:flex;flex-direction:column;background:linear-gradient(120deg,#1b292f,#0e181d);border-left:3px solid #566570;box-shadow:-5px 0 12px #0009;overflow:hidden}.faction-bar{display:flex;justify-content:space-between;align-items:center;background:#0d171c;padding:10px 12px;border-bottom:1px solid #52616a;font-size:10px;letter-spacing:.8px;font-weight:900}.faction-bar span:first-child{color:#8ad7fa}.faction-bar span:last-child{color:#85ae95;font-size:9px}.mini-wrap{margin:10px 12px 12px;position:relative;background:#080e0d;border:3px solid #536671;box-shadow:0 0 0 2px #0a1014,inset 0 0 15px #000;flex:none;height:170px}.mini-wrap canvas{width:100%;height:100%;display:block;cursor:crosshair}.mini-wrap #radarOverlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:repeating-linear-gradient(0deg,#05100de6,#05100de6 3px,#0b1b15ee 4px);color:#8aa99b;font:800 12px Consolas,monospace;letter-spacing:2px;text-align:center;pointer-events:none}.mini-wrap #radarOverlay small{color:#587467;font-size:8px;letter-spacing:1px;margin-top:6px}.production-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-top:2px solid #53606a;border-bottom:1px solid #3d5158;color:var(--gold);font-size:11px;font-weight:900;letter-spacing:1px}#productionTabLabel{color:#8aa2aa;font-size:9px}.tab-row{display:flex;gap:3px;padding:6px 8px;background:#162129}.tab{flex:1;padding:10px 3px;border:1px solid #3f5864;background:#1c2d35;color:#a9c0c8;font-size:9px;font-weight:900;letter-spacing:.2px}.tab.active{background:linear-gradient(#4c3e2d,#272a26);color:#f5d69b;border-color:#af8c4d}#buildList{overflow-y:auto;flex:1;min-height:110px;padding:7px 8px;scrollbar-color:#586871 #0c171d;scrollbar-width:thin}.build-card{width:100%;display:flex;align-items:center;gap:9px;margin-bottom:6px;padding:7px;text-align:left;border:1px solid #47565c;background:linear-gradient(100deg,#26343b,#17232b);color:#e9ebe7;min-height:54px;transition:background .12s,border-color .12s}.build-card:hover:not(:disabled){border-color:#dfb766;background:#354148}.build-card.is-locked{opacity:.35;filter:grayscale(.7)}.build-card.is-affordable:not(.is-locked){border-left:3px solid #94b597}.build-card.is-building{border-color:#e2b766}.build-card:disabled:not(.is-locked){opacity:.6}.build-symbol{font-size:22px;font-weight:bold;color:#dabb6a;width:40px;height:40px;flex:none;display:grid;place-items:center;background:#0a161c;border:1px solid #54666d;font-family:Consolas,monospace}.build-meta{flex:1;min-width:0}.build-meta strong{display:block;font-size:11px;font-weight:900;line-height:1.25}.build-meta small{display:block;color:#8da5b0;font-size:10px;margin-top:4px}.build-price{font:900 11px Consolas,monospace;color:#dabc6b;white-space:nowrap}.build-card.is-locked .build-price{color:#77848b}.queue-panel{border-top:2px solid #45585e;min-height:86px;max-height:116px;overflow:auto;padding:8px 10px;background:#111c21}.queue-title,.selection-title{font-size:10px;color:#d8bf83;letter-spacing:.7px;font-weight:900;margin-bottom:7px}.queue-entry{display:flex;align-items:center;gap:7px;margin:5px 0;font-size:10px;color:#c2d5d2}.queue-entry>span{width:72px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress{flex:1;background:#071014;border:1px solid #415057;height:9px;min-width:20px}.progress i{display:block;height:100%;background:linear-gradient(90deg,#a98140,#e8c16e);width:0}.queue-entry button{background:#2a2120;border:1px solid #b16753;color:#e6aaa0;font-size:10px}.selection-panel{padding:8px 10px;min-height:88px;border-top:2px solid #45585e;background:#111d23;font-size:11px}.selection-info strong{display:block;color:#dce6de;font-size:12px}.selection-info small{color:#89a5aa}.health-bar{height:7px;border:1px solid #57666d;background:#19242b;margin:6px 0}.health-bar i{display:block;height:100%;background:linear-gradient(90deg,#639c64,#a8d789)}.muted{color:#7b949d}.side-footer{display:flex;gap:4px;padding:7px 8px;background:#17252b;border-top:1px solid #526168}.side-footer button{flex:1;padding:10px 3px;font-size:10px}.footer{display:flex;justify-content:space-between;align-items:center;gap:9px;background:#0a1117;border-top:1px solid #56646b;height:29px;min-height:29px;padding:4px 12px;font:9px Consolas,monospace;color:#8299a0;letter-spacing:.3px}.footer span:nth-child(2){color:#c8b888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal-overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:20px;background:#03080cdb;backdrop-filter:blur(7px)}.modal-overlay.hidden{display:none}.modal{width:min(570px,100%);padding:30px;background:linear-gradient(135deg,#1b2930,#0d181e);border:1px solid #7d765e;border-top:4px solid #d4ad5f;box-shadow:0 28px 100px #000e,0 0 65px #d2a34b12;max-height:calc(100dvh - 28px);overflow-y:auto}.modal-kicker{color:#b7a47f;font:900 10px Consolas,monospace;letter-spacing:2px}.modal h1{font-size:clamp(42px,8vw,70px);color:#f0dba8;letter-spacing:4px;font-weight:1000;line-height:1;margin:14px 0 9px;text-shadow:0 3px 0 #6f4832,0 7px 19px #000}.modal h1 em{color:#d64f49;font-style:normal}.subtitle{color:#b4c7c9;font-size:12px;letter-spacing:2px;font-weight:bold;margin:0 0 20px}.rules-row{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #40545b;border-bottom:1px solid #40545b;padding:10px 0;margin-bottom:22px;font-size:10px;letter-spacing:.5px;color:#a9bdc0}.rules-row b{color:#e6bf6b;margin-right:5px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setup-field label{display:block;font-size:10px;font-weight:bold;letter-spacing:1.2px;color:#94aeb2;margin-bottom:7px}.setup-field select,.setup-field input{width:100%;height:43px;border:1px solid #586974;border-radius:0;padding:0 11px;background:#0c151b;color:#e6d6ab;outline:none}.setup-field input:focus,.setup-field select:focus{border-color:#e4be77}.modal-note{font-size:11px;color:#82999f;line-height:1.55;margin:19px 0}.primary,.secondary{display:block;width:100%;border:1px solid #ffe2a2;background:linear-gradient(#e7c27d,#af7f39);color:#161711;padding:14px 10px;font-weight:1000;letter-spacing:1.2px;font-size:13px;box-shadow:inset 0 1px #fff5,0 5px 15px #0009}.primary:hover{filter:brightness(1.13)}.secondary{margin-top:10px;background:#24323a;border-color:#60727a;color:#c8d6d9}.small-modal{max-width:430px;text-align:center}.small-modal h2,.help-modal h2{color:#f4ce85;font-size:35px;letter-spacing:3px;margin:15px 0 8px}.small-modal p{color:#aec0c2;font-size:13px;line-height:1.6;margin-bottom:25px}.help-modal{width:min(720px,100%)}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:20px 0}.help-grid p{margin:0;border-bottom:1px solid #34464e;padding-bottom:7px}.help-grid b{display:block;color:#d5bf91;font-size:12px}.help-grid span{display:block;font-size:11px;margin-top:4px;color:#9cafb6}#endStats{color:#d2c6ab;font-size:12px;line-height:1.8;margin:0 0 22px}
@media(max-width:1080px){.brand small{display:none}.metric{min-width:80px;padding:7px}.metric strong{font-size:15px}#sidebar{width:275px;min-width:275px}.top-actions button{padding:10px 7px}.footer span:last-child{display:none}}
@media(max-width:720px){.topbar{height:52px;min-height:52px;padding:5px 7px;gap:5px}.brand-mark{height:32px;width:32px;font-size:16px}.brand strong{font-size:12px;letter-spacing:.3px}.top-stats{gap:3px}.metric{min-width:0;padding:5px 4px}.metric span{font-size:7px;letter-spacing:0}.metric strong{font-size:11px}.metric.time{display:none}.top-actions{gap:2px}.top-actions button{padding:7px 4px;font-size:9px}#sidebar{width:174px;min-width:174px}.mini-wrap{height:108px;margin:6px}.faction-bar{padding:6px;font-size:9px}.faction-bar span:last-child{display:none}.tab{font-size:8px;padding:8px 1px}.tab-row{padding:4px 2px;gap:1px}.build-card{gap:4px;padding:4px;margin-bottom:3px;min-height:46px}.build-symbol{height:31px;width:31px;font-size:16px}.build-meta strong{font-size:9px}.build-meta small{font-size:8px}.build-price{font-size:9px}.queue-panel{min-height:72px;max-height:78px;padding:6px}.selection-panel{min-height:66px;padding:6px}.side-footer{padding:3px}.side-footer button{padding:7px 1px;font-size:8px}.production-header{padding:6px;font-size:9px}.footer{height:21px;min-height:21px;padding:3px 6px;font-size:8px}.footer span:first-child{display:none}.bottom-left,.bottom-right{display:none}.modal{padding:19px}.setup-grid{gap:9px}.rules-row{font-size:8px}.top-left{top:5px;left:5px;font-size:9px}#notices{left:5px;top:36px}.notice{font-size:10px;padding:5px}.help-grid{grid-template-columns:1fr}}
@media(max-height:600px){.mini-wrap{height:95px}.queue-panel{min-height:62px;max-height:70px}.selection-panel{min-height:62px}.modal h1{font-size:43px}.modal{padding:18px}.rules-row{margin-bottom:10px}.setup-grid{gap:8px}.modal-note{margin:10px 0}}

.zoom-tools{position:absolute;right:13px;top:14px;z-index:5;display:flex;flex-direction:column;gap:5px}.zoom-tools button{display:grid;place-items:center;width:32px;height:32px;padding:0;color:#f4d7a3;background:#101a1de8;border:1px solid #8c7956;font-weight:bold;font-size:19px;box-shadow:0 3px 9px #0008}.zoom-tools button:hover{background:#4a4232}.zoom-tools button:active{transform:scale(.95)}
@media(max-width:720px){.zoom-tools{top:6px;right:6px}.zoom-tools button{width:30px;height:30px}}

/* Skirmish V2 : aperçu des sprites personnalisés ou procéduraux dans le panneau. */
.build-symbol img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto}
#exportSpritesBtn{color:#e8ca8c;border-color:#87724b}
@media(max-width:720px){#exportSpritesBtn{font-size:8px;padding:7px 3px}}


/* Skirmish V3 — sélection du pays par son drapeau. */
.start-modal{width:min(790px,100%);padding:22px 28px}
.start-modal .modal-note{margin:13px 0}
.start-modal .rules-row{margin-bottom:13px}
.countries-setup{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0 0 15px}
.countries-section{background:#0a151ac9;border:1px solid #3d505a;padding:10px;min-width:0}
.countries-title{font-size:11px;letter-spacing:1px;font-weight:900;color:#f3ce88;display:flex;justify-content:space-between;gap:4px;align-items:center;margin-bottom:9px}
.countries-title span{font-size:9px;font-weight:700;color:#839da5;letter-spacing:.3px}
.country-flags{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.country-flag{display:flex;min-width:0;min-height:64px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #3d4f59;background:linear-gradient(#213038,#101a20);padding:6px 2px;color:#bed1d3;position:relative}
.country-flag img{display:block;width:45px;height:28px;object-fit:cover;border:1px solid #ffffff58;box-shadow:0 2px 5px #0008}
.country-flag span{font-size:9px;line-height:1.1;white-space:nowrap;font-weight:800}
.country-flag:hover,.country-flag:focus-visible{border-color:#f2ca7a;color:#fff;outline:none}
.country-flag[aria-pressed="true"]{border-color:#eac477;background:linear-gradient(#4d4432,#25271f);color:#ffe3a6;box-shadow:inset 0 0 0 1px #eac47770,0 0 13px #d9ae4c28}
.country-flag[aria-pressed="true"]::after{content:"✓";position:absolute;top:3px;right:5px;color:#f0da8d;font-weight:900;font-size:11px}
.country-desc{min-height:29px;margin-top:8px;font-size:10px;color:#a9c3be;line-height:1.4}
.country-desc strong{color:#f1cf82}
.legacy-side-select{display:none}
.faction-label{display:flex;align-items:center;gap:6px;min-width:0}
.faction-label img{width:24px;height:16px;flex:none;object-fit:cover;border:1px solid #c7b87c70}
.faction-label #factionBadge{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:670px){.countries-setup{grid-template-columns:1fr;gap:9px}.country-flag{min-height:55px}.country-flag img{width:39px;height:24px}.countries-section{padding:8px}.start-modal{padding:16px}.country-desc{min-height:0}}
@media(max-height:680px) and (min-width:671px){.start-modal{padding:15px 22px}.start-modal .rules-row{margin-bottom:8px}.country-flag{min-height:56px}.country-flag img{height:23px;width:37px}.country-desc{min-height:22px}}

.faction-bar .faction-label #factionBadge{font-size:10px;letter-spacing:.3px;font-weight:900}
@media(max-width:720px){.faction-bar .faction-label #factionBadge{font-size:9px}}

/* V4 : miniatures distinctes par pays, ajustées sans modifier la grille existante. */
.build-symbol img{image-rendering:auto;object-fit:contain}
.build-card:focus-visible{outline:2px solid #e8ca8c;outline-offset:2px}

/* V5 — Menu principal et illustration de couverture, sans modifier le rendu du jeu. */
.main-menu-screen{position:fixed;inset:0;z-index:31;isolation:isolate;overflow:hidden;background:#090e15}
.main-menu-screen.hidden{display:none}
.cover-art::before,.cover-art::after,.setup-background::before,.setup-background::after{position:absolute;inset:0;pointer-events:none}
.cover-art{position:absolute;inset:0;z-index:0;overflow:hidden;background:#090e15}
.cover-art::before{content:none}
.cover-art::after{content:"";background:url('Images/RedFoBAlert.webp?v=menu-20261205') center center/cover no-repeat;opacity:1}
.main-menu-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:clamp(16px,4vw,64px)}
.main-menu-panel{width:min(390px,100%);margin-inline:auto;padding:clamp(20px,2.8vw,34px);background:linear-gradient(125deg,#060d16ed,#0f151bdc);border:1px solid #debc7b80;border-top:3px solid #daaf61;box-shadow:0 25px 70px #000c,0 0 35px #ed7e2825;backdrop-filter:blur(12px)}
.menu-eyebrow{color:#e3b16a;font:800 11px Consolas,monospace;letter-spacing:2px}
.menu-heading{font:1000 clamp(24px,3vw,38px)/1.06 Arial,Helvetica,sans-serif;letter-spacing:2px;color:#f9e4bb;text-shadow:0 2px 10px #000;margin:12px 0 7px}
.menu-heading span{color:#e75b45}
.menu-intro{font-size:11px;letter-spacing:1.4px;color:#d0bba1;margin:0 0 20px;font-weight:800}
.main-menu-actions{display:flex;flex-direction:column;gap:9px}
.menu-choice{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 15px;border:1px solid #b4a08491;border-left:3px solid #b48a4f;background:linear-gradient(100deg,#29323c,#131a24e8);color:#f4e2c0;font-size:15px;font-weight:900;letter-spacing:.35px;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.menu-choice:hover,.menu-choice:focus-visible{transform:translateX(4px);border-color:#efc87a;border-left-color:#edca85;outline:none;background:linear-gradient(100deg,#47392c,#22212a);box-shadow:0 0 16px #d9852938}
.menu-choice:active{transform:translateX(2px) scale(.99)}
.menu-choice-icon{width:26px;flex:none;font-size:18px;color:#f0c16b;text-align:center}
.menu-exit{border-left-color:#aa4c4c}.menu-exit .menu-choice-icon{color:#ef8978}
.menu-build{font:10px Consolas,monospace;color:#a7a5a1;text-align:center;letter-spacing:1.4px;margin-top:18px}
/* Le panneau de création de partie conserve la couverture en fond, avec un voile pour la lisibilité. */
.setup-background{z-index:32;isolation:isolate;background:#090e1570;backdrop-filter:none}
.setup-background::before{content:"";z-index:0;background:url('Images/RedFoBAlert.webp') center center/cover no-repeat;filter:blur(14px) brightness(.38);transform:scale(1.06);opacity:1}
.setup-background::after{content:"";z-index:1;background-image:linear-gradient(110deg,#070b11cc,#0c1116c2),url('Images/RedFoBAlert.webp');background-position:center center,center center;background-size:cover,cover;background-repeat:no-repeat,no-repeat;opacity:.98}
.setup-background .start-modal{position:relative;z-index:2;background:linear-gradient(125deg,#0b161eef,#131d23f0);box-shadow:0 28px 100px #000e,0 0 50px #e69b4530}
.menu-dialog-overlay{z-index:34;background:#02060bdc}
.menu-dialog{border-color:#aa8259;background:linear-gradient(125deg,#172630,#091219);box-shadow:0 22px 75px #000e}
.menu-dialog h2{font-size:clamp(23px,4vw,32px);color:#f4cf86;margin:12px 0 20px;letter-spacing:2px}
.menu-dialog p{color:#d1d6d4;font-size:13px;line-height:1.65}
.option-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid #3c515b}
.option-line strong{display:block;color:#edd8b8;font-size:13px}
.option-line small{display:block;color:#9cb0b6;font-size:11px;margin-top:4px;line-height:1.4}
.option-switch{min-width:115px;padding:10px 8px;color:#edd8b5;background:#253a35;border:1px solid #85ae96;font-size:11px;font-weight:900}
.option-switch[aria-pressed="false"]{color:#bfc6cd;background:#222c33;border-color:#66727b}
.options-dialog>.secondary{margin:15px 0}
.info-dialog{width:min(730px,100%)}
.info-sections{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0}
.info-sections section{padding:12px;background:#0b1720;border:1px solid #3b4b52}
.info-sections h3{font-size:13px;color:#e9c47a;margin:0 0 6px}
.info-sections p{margin:0;font-size:12px}
.info-footnote{font-size:11px!important;color:#9db1b7!important}
.menu-static .menu-choice{transition:none}
.menu-static .menu-choice:hover,.menu-static .menu-choice:focus-visible{transform:none}
@media(max-width:680px){.main-menu-inner{justify-content:center;align-items:center;padding:15px 12px calc(16px + env(safe-area-inset-bottom))}.cover-art::after{background-position:center center,center center}.main-menu-panel{width:min(420px,100%);padding:16px 18px;background:#070d17de}.menu-choice{padding:10px 12px;font-size:14px}.main-menu-actions{gap:6px}.menu-heading{font-size:26px}.menu-intro{margin-bottom:12px}.menu-build{margin-top:11px}.info-sections{grid-template-columns:1fr}.info-dialog{padding:18px}.info-sections{gap:6px}.info-sections section{padding:8px}.info-sections p{font-size:11px}}
@media(max-height:520px){.main-menu-panel{padding:12px 18px}.menu-heading{font-size:23px;margin:6px 0}.menu-intro{margin-bottom:8px}.menu-choice{padding:7px 12px}.main-menu-actions{gap:5px}.menu-build{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.menu-choice{transition:none}.menu-choice:hover,.menu-choice:focus-visible{transform:none}}


/* Boutons animes du menu principal — illustrations SVG integrees sans dependance externe. */
.main-menu-actions .menu-choice{
  position:relative;isolation:isolate;overflow:hidden;min-height:67px;
  padding:7px 11px;gap:12px;background:linear-gradient(100deg,#1b2831f0,#111922f5);
}
.main-menu-actions .menu-choice::before{
  content:"";position:absolute;z-index:-1;inset:0;opacity:.4;pointer-events:none;
  background:linear-gradient(100deg,transparent 35%,#bca16a12 65%,transparent 100%);
  transform:translateX(-115%);transition:opacity .2s ease;
}
.main-menu-actions .menu-choice:hover::before,
.main-menu-actions .menu-choice:focus-visible::before{
  transform:translateX(85%);opacity:1;transition:transform .65s ease,opacity .2s ease;
}
.main-menu-actions .menu-choice-icon{
  display:grid;place-items:center;position:relative;overflow:hidden;
  width:92px;height:50px;flex:0 0 92px;color:#f5cb7f;
  border:1px solid #aa855070;border-radius:3px;
  background:radial-gradient(ellipse at 50% 80%,#73603b42,transparent 75%),linear-gradient(145deg,#111e2a,#172d35);
  box-shadow:inset 0 0 12px #080c12b8,0 0 0 1px #070c15a8;
}
.main-menu-actions .menu-choice-icon::after{
  content:"";position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent 0 4px,#0002 4px 5px);
  pointer-events:none;opacity:.45;
}
.main-menu-actions .menu-choice-content{display:flex;flex-direction:column;gap:4px;min-width:0}
.main-menu-actions .menu-choice-title{display:block;color:#f9dfb0;font-weight:900;font-size:14px;line-height:1.2}
.main-menu-actions .menu-choice-content small{display:block;color:#b7c7c2;font-size:10px;line-height:1.3;font-weight:600;letter-spacing:.4px}
.main-menu-actions .menu-choice:hover .menu-choice-icon,
.main-menu-actions .menu-choice:focus-visible .menu-choice-icon{
  border-color:#f2c987;box-shadow:inset 0 0 15px #cf973031,0 0 11px #dfa84e47;
}
.main-menu-actions .menu-art{display:block;width:88px;height:46px;overflow:visible;fill:none;stroke:#c7ac77;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.main-menu-actions .menu-art circle{fill:none}
.main-menu-actions .art-ground{fill:#455449;stroke:#77866b;stroke-width:1}
.main-menu-actions .art-road{stroke:#938366;stroke-width:2;stroke-dasharray:4 4}
.main-menu-actions .art-armor{fill:#68777a;stroke:#d2bd86;stroke-width:1.4}
.main-menu-actions .art-armor-top{fill:#87928a;stroke:#f0ca85;stroke-width:1.2}
.main-menu-actions .art-barrel,.main-menu-actions .art-tread{stroke:#e2bf7e;stroke-width:3}
.main-menu-actions .art-tank circle{fill:#1c272c;stroke:#d9b875;stroke-width:1}
.main-menu-actions .art-radar{stroke:#ebbf69;stroke-width:1.3}
.main-menu-actions .art-flash{fill:#f9b64d;stroke:#fff2bb;stroke-width:1;opacity:0}
.main-menu-actions .art-tank{animation:menuTankDrive 3.2s ease-in-out infinite}
.main-menu-actions .art-flash{animation:menuMuzzleFlash 3.2s steps(1,end) infinite}
.main-menu-actions .art-radar{animation:menuRadarBlink 1.8s ease-in-out infinite}
.main-menu-actions .menu-choice-multi .menu-choice-icon{background:radial-gradient(ellipse at center,#1a596164,#091b2a 85%)}
.main-menu-actions .art-link{stroke:#72c9d4;stroke-dasharray:5 4;stroke-width:2.3;animation:menuLinkFlow 1.7s linear infinite}
.main-menu-actions .art-soldier-one circle,.main-menu-actions .art-soldier-two circle{fill:#768fa8;stroke:#aed7e8}
.main-menu-actions .art-soldier-one path,.main-menu-actions .art-soldier-two path{fill:#3c617b;stroke:#85bcce}
.main-menu-actions .art-radio{stroke:#6bcbd7;stroke-width:1.7;animation:menuRadarBlink 2s ease-in-out infinite}
.main-menu-actions .art-packet{fill:#fff1b0;stroke:#fae19b;animation:menuPacket 2.4s ease-in-out infinite}
.main-menu-actions .art-signal{fill:#e9f5fa;stroke:#c8e7e8;animation:menuRadarBlink 1.1s ease-in-out infinite}
.main-menu-actions .menu-choice-options .menu-choice-icon{background:radial-gradient(ellipse at center,#7c643244,#101c26 80%)}
.main-menu-actions .art-gear{stroke:#e5be71;fill:#6c5a3e;stroke-width:2;animation:menuGearSpin 7s linear infinite;transform-box:fill-box;transform-origin:center}
.main-menu-actions .art-gear circle{stroke:#f5d692;fill:#15232d}
.main-menu-actions .art-slider-track{stroke:#85a9ba;stroke-width:2.4}
.main-menu-actions .art-slider-one,.main-menu-actions .art-slider-two,.main-menu-actions .art-slider-three{fill:#f5cf80!important;stroke:#ffe5a8;stroke-width:1.2}
.main-menu-actions .art-slider-one{animation:menuSlideOne 3.2s ease-in-out infinite}
.main-menu-actions .art-slider-two{animation:menuSlideTwo 3.2s ease-in-out infinite}
.main-menu-actions .art-slider-three{animation:menuSlideThree 3.2s ease-in-out infinite}
.main-menu-actions .menu-choice-info .menu-choice-icon{background:radial-gradient(ellipse at center,#27607b48,#111d2b 84%)}
.main-menu-actions .art-document{fill:#203943;stroke:#a9ced7;stroke-width:2}
.main-menu-actions .art-fold{stroke:#b8ced6;fill:#345461;stroke-width:1.7}
.main-menu-actions .art-textline{stroke:#87bbbd;stroke-width:2}
.main-menu-actions .art-info-scan{stroke:#fbdf8d;stroke-width:2.3;animation:menuDocScan 3.3s ease-in-out infinite}
.main-menu-actions .art-info-badge{fill:#caa65b!important;stroke:#ffe1a0}
.main-menu-actions .art-info-letter{stroke:#172a34;stroke-width:1.7}
.main-menu-actions .menu-choice-exit{border-left-color:#a44746}
.main-menu-actions .menu-choice-exit .menu-choice-icon{background:radial-gradient(ellipse at center,#8f34343f,#23161c 85%);border-color:#9a555165}
.main-menu-actions .menu-choice-exit .menu-choice-title{color:#ffd5c9}
.main-menu-actions .menu-choice-exit .menu-choice-content small{color:#c9aaa5}
.main-menu-actions .art-exit-halo{stroke:#bb5757;stroke-dasharray:4 5;stroke-width:1.2;animation:menuPowerHalo 4s linear infinite;transform-origin:44px 23px}
.main-menu-actions .art-exit-power{stroke:#ff8580;stroke-width:4;animation:menuPowerGlow 2s ease-in-out infinite}
.main-menu-actions .art-exit-floor{stroke:#bc5953;stroke-width:1.5;opacity:.55}
@keyframes menuTankDrive{0%,100%{transform:translateX(-3px)}40%,65%{transform:translateX(4px)}}
@keyframes menuMuzzleFlash{0%,40%,43%,100%{opacity:0}41%,42%{opacity:1}}
@keyframes menuRadarBlink{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes menuLinkFlow{to{stroke-dashoffset:-18}}
@keyframes menuPacket{0%{transform:translateX(0);opacity:0}15%{opacity:1}82%{opacity:1}100%{transform:translateX(27px);opacity:0}}
@keyframes menuGearSpin{to{transform:rotate(360deg)}}
@keyframes menuSlideOne{0%,100%{transform:translateX(-5px)}50%{transform:translateX(9px)}}
@keyframes menuSlideTwo{0%,100%{transform:translateX(5px)}50%{transform:translateX(-9px)}}
@keyframes menuSlideThree{0%,100%{transform:translateX(-3px)}50%{transform:translateX(13px)}}
@keyframes menuDocScan{0%{transform:translateY(-8px);opacity:0}20%,80%{opacity:.9}100%{transform:translateY(19px);opacity:0}}
@keyframes menuPowerHalo{to{transform:rotate(360deg)}}
@keyframes menuPowerGlow{0%,100%{opacity:.6}50%{opacity:1;filter:drop-shadow(0 0 5px #ff7777)}}
body.menu-static .main-menu-actions .menu-art *,
body.menu-static .main-menu-actions .menu-choice::before{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){
  .main-menu-actions .menu-art *,.main-menu-actions .menu-choice::before{animation:none!important;transition:none!important}
}
@media(max-width:680px){
  .main-menu-actions .menu-choice{min-height:53px;padding:5px 9px;gap:9px}
  .main-menu-actions .menu-choice-icon{width:73px;height:42px;flex-basis:73px}
  .main-menu-actions .menu-art{width:77px;height:40px}
  .main-menu-actions .menu-choice-title{font-size:13px}
  .main-menu-actions .menu-choice-content small{font-size:9px}
}
@media(max-height:650px){
  .main-menu-actions .menu-choice{min-height:46px;padding:3px 9px}
  .main-menu-actions .menu-choice-icon{width:64px;height:36px;flex-basis:64px}
  .main-menu-actions .menu-art{width:66px;height:35px}
  .main-menu-actions .menu-choice-content small{font-size:9px}
}

/* Correction du menu « Créer une Partie » : les 10 cartes retrouvent des
   miniatures compactes et une grille responsive, sans toucher aux boutons du menu. */
.maps-setup{min-width:0;margin:0 0 14px;padding:10px;background:#0a151ac9;border:1px solid #3d505a}
.maps-setup .countries-title{margin-bottom:8px}
.map-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0;width:100%;align-items:stretch}
.map-choice{position:relative;min-width:0;max-width:100%;padding:5px 5px 7px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;overflow:hidden;border:1px solid #42545d;background:linear-gradient(#1b2b34,#11191f);color:#c5d5d4;text-align:center;transition:border-color .15s ease,background .15s ease,color .15s ease;cursor:pointer}
.map-choice img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border:1px solid #56616a;background:#16231f}
.map-choice span{display:flex;align-items:center;justify-content:center;min-height:25px;max-width:100%;font-size:10px;font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.map-choice:hover,.map-choice:focus-visible{border-color:#f4d48b;color:#fff;outline:none}
.map-choice[aria-pressed="true"]{border-color:#eac477;box-shadow:inset 0 0 0 1px #eac47766,0 0 12px #eac47722;background:linear-gradient(#4d4432,#25271f);color:#ffe3a6}
.map-choice[aria-pressed="true"]::after{content:"✓";position:absolute;right:6px;top:6px;background:#212b24d9;color:#fbe9aa;width:19px;height:19px;border:1px solid #c9a65d;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}
.map-description{font-size:10px;color:#aac2bc;margin-top:7px;line-height:1.4;min-height:1em}
@media(max-width:710px){.maps-setup{padding:8px}.map-choices{display:flex;overflow-x:auto;overflow-y:hidden;gap:7px;padding-bottom:7px;scrollbar-width:thin;scrollbar-color:#ab8750 #14212a}.map-choice{flex:0 0 130px;padding:4px}.map-choice span{font-size:10px;min-height:21px}.map-description{font-size:9px}}

/* Pays de l’escarmouche : listes déroulantes avec aperçu du drapeau. */
.country-flags.country-dropdown{display:flex;grid-template-columns:none;align-items:center;gap:10px;min-width:0}
.country-dropdown>img{display:block;width:45px;height:28px;flex:0 0 45px;object-fit:cover;border:1px solid #ffffff58;box-shadow:0 2px 5px #0008}
.country-dropdown-select{display:block;flex:1;min-width:0;width:100%;height:43px;padding:0 12px;border:1px solid #586974;border-radius:0;background:#0c151b;color:#e6d6ab;font:800 12px Arial,Helvetica,sans-serif;outline:none;cursor:pointer}
.country-dropdown-select:hover,.country-dropdown-select:focus-visible{border-color:#e4be77}
@media(max-width:670px){.country-dropdown-select{height:42px}.country-dropdown>img{width:39px;height:24px;flex-basis:39px}}

/* Onglets Bâtiments / Défenses — sans toucher au reste du style RedFobAlert. */
.tab-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.tab-row .tab{min-width:0;font-size:9px;padding:10px 2px;letter-spacing:0}
@media(max-width:720px){.tab-row{grid-template-columns:repeat(2,minmax(0,1fr))}.tab-row .tab{font-size:9px;padding:6px 2px}}

/* Ressources principales dans la barre supérieure (HUD). */
.topbar .top-stats{flex:1 1 auto;justify-content:center;gap:5px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#607580 #17232a;overscroll-behavior-x:contain}
.topbar .top-stats .metric{flex:0 0 auto;min-width:76px;padding:6px 7px}
.topbar .top-stats .metric span{font-size:9px;letter-spacing:.4px}
.topbar .top-stats .metric strong{font-size:16px}
.topbar .top-stats .metric-logistics strong{color:#e9c27a}
@media(max-width:720px){
  .topbar .top-stats{justify-content:flex-start;gap:3px}
  .topbar .top-stats .metric{min-width:67px;padding:4px 5px}
  .topbar .top-stats .metric span{font-size:7px;letter-spacing:0}
  .topbar .top-stats .metric strong{font-size:11px}
}

/* HUD : symboles vectoriels animés pour les six ressources (aucune image externe). */
.topbar .top-stats .metric .hud-heading{display:flex;align-items:center;gap:5px;white-space:nowrap;line-height:1.15}
.topbar .top-stats .metric .hud-title{display:inline;font-size:9px;letter-spacing:.35px;color:#9eafb4}
.hud-icon{width:18px;height:18px;flex:none;overflow:visible;filter:drop-shadow(0 0 2px #0b0e13);transform-origin:50% 50%}
.hud-icon-credits .hud-coin-back,.hud-icon-credits .hud-coin{fill:#b88931;stroke:#fce1a0;stroke-width:1.1}
.hud-icon-credits .hud-coin{fill:#e6be63;animation:hudCoin 2.6s ease-in-out infinite}
.hud-icon-credits .hud-coin-mark{fill:none;stroke:#805516;stroke-width:1.15;stroke-linecap:round}
.hud-icon-energy .hud-bolt{fill:#71e0eb;stroke:#d8ffff;stroke-width:.7;animation:hudSpark 1.65s ease-in-out infinite}
.hud-icon-energy .hud-bolt-spark{fill:none;stroke:#83f6ff;stroke-width:1.4;stroke-linecap:round;animation:hudSpark 1.65s ease-in-out infinite}
.hud-icon-food .hud-wheat-stem{stroke:#e8c76d;stroke-width:1.7;fill:none;stroke-linecap:round}
.hud-icon-food .hud-wheat-grain{fill:#d7b252;stroke:#f5da82;stroke-width:.5;transform-origin:12px 19px;animation:hudWheat 3.6s ease-in-out infinite}
.hud-icon-ammo .hud-ammo-round{stroke:#f7d8a2;stroke-width:.9;fill:#b18c51;animation:hudAmmo 2.8s ease-in-out infinite}
.hud-icon-ammo .hud-ammo-casing{fill:#caa852;stroke:#ffe0a0;stroke-width:.8}
.hud-icon-ammo .hud-ammo-flash{fill:none;stroke:#ffe0a2;stroke-width:1;animation:hudAmmoFlash 2.8s ease-in-out infinite}
.hud-icon-battery .hud-battery-frame,.hud-icon-battery path:not(.hud-battery-glyph){fill:#27382e;stroke:#90e7a3;stroke-width:1.5}
.hud-icon-battery .hud-battery-fill{fill:#62c88c;transform-origin:5.6px 12px;animation:hudCharge 3s ease-in-out infinite}
.hud-icon-battery .hud-battery-glyph{fill:#d2ffbd}
.hud-icon-fuel .hud-fuel-drop{fill:#dd8641;stroke:#ffe5a2;stroke-width:1.15;animation:hudFuel 2.8s ease-in-out infinite;transform-origin:12px 12px}
.hud-icon-fuel .hud-fuel-shine{fill:none;stroke:#fff1c9;stroke-width:1.7;stroke-linecap:round;animation:hudFuelShine 2.8s ease-in-out infinite}
@keyframes hudCoin{0%,100%{transform:translateY(0);filter:brightness(1)}50%{transform:translateY(-1px);filter:brightness(1.25)}}
@keyframes hudSpark{0%,100%{opacity:.88;filter:drop-shadow(0 0 0 #7ceaff)}50%{opacity:1;filter:drop-shadow(0 0 3px #7ceaff)}}
@keyframes hudWheat{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes hudAmmo{0%,72%,100%{transform:translateY(0)}77%{transform:translateY(-2px)}83%{transform:translateY(0)}}
@keyframes hudAmmoFlash{0%,70%,85%,100%{opacity:0}76%,80%{opacity:1}}
@keyframes hudCharge{0%,100%{transform:scaleX(.35)}50%{transform:scaleX(1)}}
@keyframes hudFuel{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
@keyframes hudFuelShine{0%,100%{opacity:.55}50%{opacity:1}}
@media(max-width:720px){.topbar .top-stats .metric .hud-heading{gap:3px}.topbar .top-stats .metric .hud-title{font-size:7px;letter-spacing:0}.hud-icon{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){.hud-icon *, .hud-icon{animation:none!important}}


/* Nations Librya et Bl4ckOrder : drapeaux rectangulaires conservés et emblèmes carrés non recadrés. */
.country-dropdown>img.country-emblem{width:45px;height:45px;flex-basis:45px;object-fit:contain;border:1px solid #a75569;background:#080b11}
.faction-bar .faction-label img.country-emblem{width:26px;height:26px;object-fit:contain;border:1px solid #6d5663;border-radius:50%;background:#080b11}
@media(max-width:670px){.country-dropdown>img.country-emblem{width:39px;height:39px;flex-basis:39px}}

/* Nouveau langage visuel : acier militaire / Alliés bleus / Soviétiques rouges.
   Le bouton Quitter, ainsi que ses animations, sont volontairement inchangés. */
.main-menu-actions .menu-choice:not(.menu-choice-exit){
  --ra-accent:#be514c;--ra-soft:#e28c83;
  border:1px solid #6c3b40;border-left:3px solid var(--ra-accent);
  color:#e9edf0;background:linear-gradient(104deg,#242d38 0%,#19212e 55%,#10141c 100%);
  box-shadow:inset 0 1px #9babb21f,inset 0 -1px #0009;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.main-menu-actions .menu-choice-multi{--ra-accent:#618eb3!important;--ra-soft:#99c8ea!important}
.main-menu-actions .menu-choice-options{--ra-accent:#829782!important;--ra-soft:#cad7aa!important}
.main-menu-actions .menu-choice-info{--ra-accent:#8696aa!important;--ra-soft:#ccdaec!important}
.main-menu-actions .menu-choice:not(.menu-choice-exit)::before{
  background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--ra-accent) 20%,transparent) 50%,transparent 100%);
}
.main-menu-actions .menu-choice:not(.menu-choice-exit):hover,
.main-menu-actions .menu-choice:not(.menu-choice-exit):focus-visible{
  border-color:var(--ra-soft);border-left-color:var(--ra-accent);
  background:linear-gradient(105deg,#2e3a4a,#1d2b3a 60%,#121b26);
  box-shadow:inset 0 0 0 1px #e8f1ff12,0 0 13px color-mix(in srgb,var(--ra-accent) 25%,transparent);
}
.main-menu-actions .menu-choice:not(.menu-choice-exit) .menu-choice-title{color:#e8eef3;letter-spacing:.65px}
.main-menu-actions .menu-choice:not(.menu-choice-exit) .menu-choice-content small{color:#a5b6c2}
.main-menu-actions .menu-choice:not(.menu-choice-exit) .menu-choice-icon{
  color:var(--ra-soft);border:1px solid color-mix(in srgb,var(--ra-accent) 62%,#34485b);
  border-radius:1px;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--ra-accent) 14%,#142231),#09111c 90%);
  box-shadow:inset 0 0 20px #02060d,0 0 0 1px #0c1018;
}
.main-menu-actions .menu-choice:not(.menu-choice-exit):hover .menu-choice-icon,
.main-menu-actions .menu-choice:not(.menu-choice-exit):focus-visible .menu-choice-icon{
  border-color:var(--ra-soft);box-shadow:inset 0 0 18px color-mix(in srgb,var(--ra-accent) 28%,#02060d),0 0 12px color-mix(in srgb,var(--ra-accent) 32%,transparent);
}
.main-menu-actions .ra-art{stroke:var(--ra-soft);stroke-width:1.35;fill:none;stroke-linejoin:round;stroke-linecap:round}
.main-menu-actions .ra-grid{stroke:#64849c;stroke-width:.6;opacity:.22}
.main-menu-actions .ra-corner{stroke:var(--ra-soft);stroke-width:1.2;opacity:.75}
/* Créer une partie : radar animé, char blindé et départ de tir. */
.main-menu-actions .ra-radar-ring{stroke:#86a3b8;stroke-width:.8;opacity:.5}
.main-menu-actions .ra-battle-sweep{fill:#ad343c;fill-opacity:.3;stroke:none;transform-origin:44px 23px;animation:raRadarSweep 4.4s linear infinite}
.main-menu-actions .ra-tank{animation:raTankPatrol 4.4s ease-in-out infinite}
.main-menu-actions .ra-tank-body{fill:#435561;stroke:#d7a89c;stroke-width:1.7}
.main-menu-actions .ra-tank-track{fill:#1d2937;stroke:#aebbc7;stroke-width:1.6}
.main-menu-actions .ra-tank-turret{fill:#7c8e98;stroke:#d1dddf;stroke-width:1.5}
.main-menu-actions .ra-tank-gun{stroke:#d2dce3;stroke-width:3}
.main-menu-actions .ra-tank circle{fill:#151e2a;stroke:#a4b2bf;stroke-width:1}
.main-menu-actions .ra-shot{fill:#fd8f60;stroke:#ffe7a0;stroke-width:1;animation:raShot 4.4s steps(1,end) infinite}
/* Multijoueur : deux camps connectés par un signal militaire. */
.main-menu-actions .ra-multi-left .ra-multi-shield{fill:#183a5b;stroke:#83bada;stroke-width:2}
.main-menu-actions .ra-multi-stripe{stroke:#b5dff2;stroke-width:1.6}
.main-menu-actions .ra-multi-right .ra-multi-shield{fill:#5b2629;stroke:#e18b7a;stroke-width:2}
.main-menu-actions .ra-multi-star{fill:#df5c50;stroke:#ffc0a2;stroke-width:.9}
.main-menu-actions .ra-multi-route{stroke:#a4c3ce;stroke-width:1.8;stroke-dasharray:4 3;animation:raRoute 2.1s linear infinite}
.main-menu-actions .ra-link-packet{fill:#ffdb9a!important;stroke:#fbe3b9;animation:raPacket 2.8s ease-in-out infinite}
.main-menu-actions .ra-multi-signal{stroke:#afdfeb;stroke-width:1.6;animation:raSignal 2.8s ease-in-out infinite}
/* Options : cadran et curseurs d'un panneau de commande tactique. */
.main-menu-actions .ra-opt-panel{fill:#17242d;stroke:#607b86;stroke-width:1}
.main-menu-actions .ra-opt-dial{fill:#182c2e;stroke:#a5c5b0;stroke-width:1.6}
.main-menu-actions .ra-opt-ticks{stroke:#7c9d8a;stroke-width:1.2}
.main-menu-actions .ra-opt-needle{stroke:#e3d6aa;stroke-width:2.2;transform-origin:26px 23px;animation:raTune 4s ease-in-out infinite}
.main-menu-actions .ra-opt-dot{fill:#e3d6aa!important;stroke:none}
.main-menu-actions .ra-opt-bars{stroke:#79968a;stroke-width:1.7}
.main-menu-actions .ra-opt-switch{fill:#9abb98;stroke:#d7e4b6;stroke-width:.6}
.main-menu-actions .ra-opt-switch1{animation:raSwitchOne 3.2s ease-in-out infinite}
.main-menu-actions .ra-opt-switch2{animation:raSwitchTwo 3.8s ease-in-out infinite}
.main-menu-actions .ra-opt-switch3{animation:raSwitchThree 4.1s ease-in-out infinite}
/* Infos : dossier de renseignement, réticule et scan léger. */
.main-menu-actions .ra-info-folder{fill:#263642;stroke:#a7bace;stroke-width:1.8}
.main-menu-actions .ra-info-header{stroke:#c4d4dd;stroke-width:2.2}
.main-menu-actions .ra-info-lines{stroke:#88a5b5;stroke-width:1.5}
.main-menu-actions .ra-info-scope{stroke:#a4bec8;stroke-width:1.4}
.main-menu-actions .ra-info-cross{stroke:#91b3c9;stroke-width:1.1}
.main-menu-actions .ra-info-scan{stroke:#ffad89;stroke-width:1.8;opacity:.4;animation:raInfoScan 3.7s ease-in-out infinite}
@keyframes raRadarSweep{to{transform:rotate(360deg)}}
@keyframes raTankPatrol{0%,100%{transform:translateX(-3px)}45%,65%{transform:translateX(1px)}}
@keyframes raShot{0%,39%,43%,100%{opacity:0}40%,42%{opacity:1}}
@keyframes raRoute{to{stroke-dashoffset:-21}}
@keyframes raPacket{0%{transform:translateX(0);opacity:0}14%,85%{opacity:1}100%{transform:translateX(24px);opacity:0}}
@keyframes raSignal{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes raTune{0%,100%{transform:rotate(-42deg)}50%{transform:rotate(38deg)}}
@keyframes raSwitchOne{0%,100%{transform:translateX(-3px)}50%{transform:translateX(9px)}}
@keyframes raSwitchTwo{0%,100%{transform:translateX(7px)}50%{transform:translateX(-8px)}}
@keyframes raSwitchThree{0%,100%{transform:translateX(-4px)}50%{transform:translateX(7px)}}
@keyframes raInfoScan{0%{transform:translateY(-6px);opacity:0}25%,70%{opacity:.9}100%{transform:translateY(17px);opacity:0}}
body.menu-static .main-menu-actions .ra-art *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.main-menu-actions .ra-art *{animation:none!important;transition:none!important}}
/* Unités aériennes : cinquième onglet ; Centre Logistique visible seulement une fois construit. */
.tab-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.tab-row .tab{font-size:8.5px}
.logistics-market[hidden]{display:none!important}
.logistics-market{background:#101c20;border-top:2px solid #667f82;padding:9px;max-height:235px;overflow-y:auto;color:#cce3da;flex:none}
.logistics-market>strong{display:block;color:#f2cc81;font-size:10px;letter-spacing:.3px;margin-bottom:3px}
.logistics-market>small{display:block;color:#a5bab8;font-size:9px;margin-bottom:7px}
.market-row{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:4px 0;font-size:10px}
.market-row span{flex:1;min-width:65px}
.market-row button{border:1px solid #617b79;background:#243a41;color:#dce6d9;padding:5px 3px;font:800 9px Consolas,monospace;white-space:nowrap}
.market-row button:hover:not(:disabled){background:#3b5554;border-color:#e1c17e}
.market-row button:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:720px){.tab-row{grid-template-columns:repeat(3,minmax(0,1fr))}.tab-row .tab{font-size:8px}.logistics-market{padding:5px;max-height:180px}.market-row{flex-wrap:wrap}.market-row span{flex-basis:100%}.market-row button{flex:1}}

/* Débarquement des transports dans le panneau de sélection. */
.unit-unload-btn{display:block;width:100%;margin-top:6px;padding:7px 5px;color:#efdcab;background:#334b50;border:1px solid #b29b65;font:bold 10px Consolas,monospace;cursor:pointer}
.unit-unload-btn:hover{background:#4e6564}

.build-section-label{margin:11px 1px 7px;padding:5px 7px;border-left:3px solid #8eaa98;background:#1b3032;color:#bdd7ce;font:bold 9px Consolas,monospace;letter-spacing:.4px}


/* HUD : le bouton MENU regroupe les commandes (le reste de la barre reste intact). */
.in-game-actions-menu{position:relative;z-index:50}
.top-actions #inGameMenuBtn{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:94px;border-color:#b49152;color:#f3da9f;background:linear-gradient(180deg,#38434a,#17232a)}
#inGameMenuBtn[aria-expanded="true"]{border-color:#f1ce85;box-shadow:0 0 0 1px #b4915240,0 3px 12px #0008}
.in-game-menu-panel[hidden]{display:none!important}
.in-game-menu-panel{position:absolute;right:0;top:calc(100% + 7px);z-index:60;width:205px;max-width:min(205px,90vw);padding:7px;background:linear-gradient(145deg,#182832,#0a131a);border:1px solid #987746;box-shadow:0 14px 32px #000c,0 0 0 1px #ffffff12;display:flex;flex-direction:column;gap:4px}
.top-actions .in-game-menu-panel button{width:100%;min-height:37px;padding:9px 10px;text-align:left;white-space:normal;border:1px solid #42535b;border-left:3px solid #8e7449;background:linear-gradient(100deg,#27343d,#142128);color:#dce4df;font:800 11px/1.25 Arial,Helvetica,sans-serif;letter-spacing:.4px}
.top-actions .in-game-menu-panel button:hover,.top-actions .in-game-menu-panel button:focus-visible{border-color:#dfb96c;border-left-color:#e3bb71;color:#ffe4ae;background:#364047;outline:none}
.top-actions .in-game-menu-panel #inGameReturnMainBtn{border-left-color:#a96762}
.build-list-empty{margin:18px 7px;font:700 11px/1.6 Arial,Helvetica,sans-serif;color:#90a6ad;text-align:center}
/* Pourcentage de construction : indicateur HTML/CSS circulaire animé. */
@property --queue-percent{syntax:"<percentage>";inherits:false;initial-value:0%}
.queue-panel{min-height:96px;max-height:175px}
.queue-entry{min-height:44px;justify-content:space-between}
.queue-entry .queue-entry-name{width:auto;min-width:64px;max-width:104px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.queue-progress{--queue-percent:0%;position:relative;width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(from -90deg,#f4c775 0 var(--queue-percent),#314750 var(--queue-percent) 100%);transition:--queue-percent .48s linear;box-shadow:0 0 10px #c68d3142;isolation:isolate}
.queue-progress::before{content:"";position:absolute;inset:4px;border-radius:50%;background:#0e1b22;box-shadow:inset 0 0 6px #000b;z-index:-1}
.queue-progress-value{font:900 10px/1 Consolas,monospace;color:#ffe5ad;letter-spacing:-.3px;animation:queue-progress-glow 1.6s ease-in-out infinite alternate}
.queue-progress.is-ready{background:conic-gradient(from -90deg,#94d6a5 0 100%,#314750 100%);box-shadow:0 0 11px #6fc58b66}
.queue-progress.is-ready .queue-progress-value{color:#bbf4c7}
@keyframes queue-progress-glow{from{text-shadow:0 0 1px #f3ca6a55}to{text-shadow:0 0 7px #f3ca6abb}}
@media(max-width:720px){.in-game-menu-panel{width:176px}.top-actions #inGameMenuBtn{min-width:60px;padding:7px 8px}.queue-panel{min-height:94px;max-height:136px}.queue-entry .queue-entry-name{min-width:38px;max-width:76px}.queue-progress{width:36px;height:36px}.queue-progress-value{font-size:9px}}
@media(prefers-reduced-motion:reduce){.queue-progress{transition:none}.queue-progress-value{animation:none}}

/* Atelier MODING : personnalisation de terrain 64 × 48, sans toucher aux autres menus. */
.main-menu-actions .menu-choice-moding{border-left-color:#7c9c85}
.main-menu-actions .menu-choice-moding:hover{border-color:#a2d9ac}
.main-menu-actions .menu-choice-moding .menu-choice-icon{color:#9de7ae}
.main-menu-actions .mod-icon-frame{fill:#101f22;stroke:#89b5a1;stroke-width:1.9}
.main-menu-actions .mod-icon-grid{fill:none;stroke:#5b847a;stroke-width:.9;opacity:.7}
.main-menu-actions .mod-icon-path{fill:none;stroke:#b6e6ac;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:70;animation:modDrawPath 4s ease-in-out infinite}
.main-menu-actions .mod-icon-point{fill:#f0c77b;animation:modPulse 1.9s ease-in-out infinite}
.main-menu-actions .mod-icon-cursor{stroke:#e5f4f0;stroke-width:1.5;fill:#518b83;animation:modCursor 3.4s ease-in-out infinite}
@keyframes modDrawPath{0%{stroke-dashoffset:70}35%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-70}}
@keyframes modPulse{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes modCursor{0%,100%{transform:translate(0,0)}50%{transform:translate(-10px,-8px)}}
body.menu-static .main-menu-actions .menu-choice-moding svg *{animation:none!important}
.moding-overlay{z-index:38}
.moding-modal{width:min(1170px,100%);max-height:calc(100dvh - 26px);overflow:auto;padding:clamp(12px,2vw,25px);background:linear-gradient(145deg,#18252b,#081218);border-top-color:#8fc9a8}
.moding-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:15px}
.moding-heading h2{margin:8px 0;font:900 28px/1 Arial,Helvetica,sans-serif;letter-spacing:1.2px;color:#e1e8e4}
.moding-heading h2 span{color:#9bcfa6}
.moding-heading p{color:#a7bcb7;font-size:12px;margin:8px 0 0;line-height:1.4}
.moding-close{background:#2c373c;color:#e1c69e;border:1px solid #8a7b61;padding:8px 12px;flex:none;font-weight:bold}
.moding-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.moding-workspace{min-width:0}
.moding-import-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:11px}
.moding-file-label{display:flex;align-items:center;justify-content:center;min-height:34px;padding:8px 12px;cursor:pointer;border:1px solid #95b99c;background:#253e3b;color:#e2f4df;font-size:11px;font-weight:900;letter-spacing:.3px}
.moding-file-label:hover{background:#355751}
.moding-file-secondary{border-color:#5d7b85;background:#20343e}
.moding-name-label{display:flex;flex-direction:column;gap:5px;color:#e6d098;font-size:10px;font-weight:900;margin-bottom:10px}
.moding-name-label input{background:#09151c;color:#f7f5e5;border:1px solid #647c7c;border-radius:0;padding:10px;font-size:13px;width:100%;max-width:100%}
.moding-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.moding-toolbar label{display:flex;align-items:center;gap:6px;color:#a9c4c4;font-size:10px;font-weight:900}
.moding-toolbar select{max-width:270px;background:#172932;color:#dfe6df;border:1px solid #617c80;padding:6px;font-size:12px}
.moding-canvas-wrap{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border:2px solid #9b9265;background:#060d11}
#modMapCanvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none;user-select:none}
.moding-canvas-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e6cd9c;font:900 13px Arial;text-align:center;pointer-events:none;letter-spacing:.5px;background:radial-gradient(#1f3234,#050b10);padding:18px}
.moding-canvas-empty[hidden]{display:none}
.moding-canvas-empty small{color:#a8bbba;margin-top:10px;font-size:10px}
.moding-editor-note{margin-top:8px;color:#a7dec0;font-size:11px;font-weight:700;min-height:25px}
.moding-editor-note.is-error{color:#ff9282}
.moding-tip{font-size:10px!important;color:#adbbc0!important;line-height:1.5!important;margin:3px 0 10px!important}
.moding-actions{display:flex;gap:10px;flex-wrap:wrap}
.moding-actions button{flex:1;min-height:38px;white-space:normal;font-size:11px}
.moding-library{background:#0b171d;border:1px solid #3c5456;min-width:0;padding:12px}
.moding-library h3{font-size:11px;color:#e2c78d;letter-spacing:.6px;margin:0 0 12px}
.moding-list{max-height:min(60vh,650px);overflow-y:auto;display:flex;flex-direction:column;gap:9px}
.moding-list>p,.moding-storage-note{font-size:11px;color:#9eaead;line-height:1.5}
.moding-storage-note{margin-top:12px;border-top:1px solid #304449;padding-top:10px}
.moding-map-item{background:#17262b;border:1px solid #465d5d;padding:6px}
.moding-map-item img{display:block;aspect-ratio:4/3;width:100%;object-fit:cover;border:1px solid #3e5156}
.moding-map-item strong{display:block;overflow-wrap:anywhere;font-size:12px;color:#edd3a4;margin:6px 0}
.moding-map-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.moding-map-actions button{padding:7px 4px;min-width:0;font-size:10px;line-height:1.2;border:1px solid #637272;background:#29393f;color:#e6e5d7}
.moding-map-actions button:hover:not(:disabled){background:#365353;border-color:#ceae73}
.moding-map-actions button[data-mod-action="delete"]{border-color:#8a5151;color:#f7b2ab}
.moding-back{display:block;margin:15px auto 0;min-height:35px;font-size:11px}
@media(max-width:790px){.moding-content{grid-template-columns:1fr}.moding-library{order:2}.moding-list{max-height:320px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.moding-heading h2{font-size:24px}}
@media(max-width:470px){.moding-overlay{padding:5px}.moding-modal{padding:10px;max-height:98dvh}.moding-file-label{font-size:10px;flex:1}.moding-toolbar label{width:100%}.moding-toolbar select{flex:1;max-width:none}.moding-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.main-menu-actions .menu-choice-moding svg *{animation:none!important}}

/* Moding — créer ma faction : nouvel atelier, sans changement au cartographe existant. */
#modMapPanel[hidden],#modFactionPanel[hidden],#modFactionAnimation[hidden],#modFactionStateField[hidden],#modFactionItemField[hidden]{display:none!important}
.moding-tabs{display:flex;gap:8px;margin:0 0 13px}
.moding-tabs button{flex:1;min-height:41px;border:1px solid #637982;background:#14262c;color:#d7e1d4;font-weight:900;font-size:12px;letter-spacing:.6px;cursor:pointer}
.moding-tabs button[aria-pressed="true"]{background:linear-gradient(100deg,#395443,#152f35);color:#f9e9b5;border-color:#b5c694;box-shadow:inset 0 -3px #b3c995}
.mod-faction-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.mod-faction-editor{min-width:0}
.mod-faction-identity,.mod-faction-picker,.mod-faction-imports{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
.mod-faction-imports{grid-template-columns:1fr 1fr}
.mod-faction-editor label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#ebd7a5;font-size:11px;font-weight:850}
.mod-faction-editor input:not([type="checkbox"]),.mod-faction-editor select{width:100%;min-width:0;min-height:35px;background:#0b1a20;color:#f0efe1;border:1px solid #637b79;padding:7px;font-size:12px}
.mod-faction-editor input[type="color"]{min-height:35px;padding:3px}
.mod-faction-editor input[type="file"]{padding:6px}
.mod-faction-file-name{font-size:11px;color:#a4c8c4;margin:4px 0 12px;overflow-wrap:anywhere}
.mod-faction-animation{border:1px solid #4d6260;background:#101e24;padding:12px;margin-bottom:12px}
.mod-faction-animation>strong{display:block;font-size:12px;color:#dfe4a2}
.mod-faction-animation>p{font-size:11px!important;color:#abbeb9!important;line-height:1.5!important;margin:6px 0 11px!important}
.mod-faction-frame-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mod-faction-editor label.mod-faction-rotate{align-self:end;flex-direction:row;align-items:center;min-height:36px;color:#d0deda}
.mod-faction-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:165px;max-height:300px;gap:8px;padding:12px;background:radial-gradient(#23363a,#050c11);border:1px solid #678780;overflow:hidden}
.mod-faction-preview img,.mod-faction-preview video{display:block;max-width:100%;max-height:248px;object-fit:contain;image-rendering:auto}
.mod-faction-preview small{font-size:10px;color:#b4cabf}
.mod-faction-preview p{font-size:11px!important;text-align:center;color:#aeb9b5!important}
.mod-faction-actionrow{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.mod-faction-actionrow button{flex:1;min-width:135px;min-height:37px;font-size:11px}
.mod-faction-note{color:#a9bfbe!important;font-size:11px!important;line-height:1.5!important}
.mod-faction-library .moding-file-label{margin-bottom:10px}
.mod-faction-library-item{display:flex;align-items:start;gap:9px;border:1px solid #455954;padding:9px;background:#18272b}
.mod-faction-library-item img{width:55px;height:44px;object-fit:contain;flex:none;background:#071119}
.mod-faction-library-item>div{flex:1;min-width:0}
.mod-faction-library-item strong{display:block;color:#f1dbab;font-size:12px;overflow-wrap:anywhere}
.mod-faction-library-item small{font-size:10px;color:#b5c3c3}
.mod-faction-library-item .moding-map-actions{margin-top:8px}
@media(max-width:860px){.mod-faction-layout{grid-template-columns:1fr}.mod-faction-library .moding-list{max-height:330px;overflow-y:auto}}
@media(max-width:540px){.mod-faction-identity,.mod-faction-picker,.mod-faction-imports{grid-template-columns:1fr}.mod-faction-frame-settings{grid-template-columns:1fr 1fr}.moding-tabs{gap:4px}.moding-tabs button{font-size:11px}}

.mod-faction-heroname{max-width:340px;margin-bottom:12px}
.selection-hero-portrait{display:flex;justify-content:center;background:#0b161d;border:1px solid #526777;margin:7px 0;padding:7px}
.selection-hero-portrait img,.selection-hero-portrait video{max-height:105px;max-width:100%;object-fit:contain}

/* Moding — import automatique des planches complètes RedFobAlert. */
.mod-faction-atlas{padding:15px;border:1px solid #a2ad72;background:linear-gradient(150deg,#233a37,#112329);margin:0 0 14px;box-shadow:inset 0 2px rgba(214,210,150,.12)}
.mod-faction-atlas>strong{display:block;font-size:14px;letter-spacing:.5px;color:#f1daa6}
.mod-faction-atlas>p,.mod-faction-atlas>small{display:block;font-size:11px;line-height:1.55;color:#bbd0c7;margin:7px 0 12px}
.mod-faction-atlas-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:11px}
.mod-faction-atlas-controls{display:flex;gap:7px;flex-wrap:wrap}
.mod-faction-atlas-controls button{padding:11px 9px;min-height:40px;font-size:11px;flex:1;min-width:150px}
.mod-faction-atlas-result{font-size:11px;line-height:1.5;color:#d8e1ba;margin-top:10px;overflow-wrap:anywhere}
.mod-faction-atlas-result.is-error{color:#ffb6a9}
.mod-faction-atlas-samples{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}
.mod-faction-atlas-sample{padding:5px;min-width:0;border:1px solid #466966;background:#0a171b;text-align:center}
.mod-faction-atlas-sample canvas{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;image-rendering:auto}
.mod-faction-atlas-sample span{display:block;color:#d2d6c0;font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:4px}
.mod-faction-expert{border:1px solid #405a5d;padding:10px;margin-bottom:12px;background:#102027}
.mod-faction-expert>summary{font-size:11px;font-weight:900;color:#d7e3ba;cursor:pointer;padding:3px}
.mod-faction-expert[open]>summary{margin-bottom:12px}
@media(max-width:540px){.mod-faction-atlas-inputs{grid-template-columns:1fr}.mod-faction-atlas-samples{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Moding : deux planches automatiques, plus aucun réglage de sprites individuel. */
.mod-faction-hero-sheet{border-color:#a279a6;background:linear-gradient(150deg,#2d2639,#12242a)}
.mod-faction-extras{border:1px solid #48605f;background:#102127;padding:12px;margin:0 0 13px}
.mod-faction-extras>summary{font-weight:900;cursor:pointer;color:#e5cda1;font-size:11px;letter-spacing:.4px}
.mod-faction-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.mod-faction-extra-slot{display:flex;flex-direction:column;gap:8px;min-width:0;background:#0c1a20;border:1px solid #455e60;padding:10px}
.mod-faction-extra-slot button{font-size:10px;min-height:30px}
.mod-faction-extra-preview{display:flex;justify-content:center;align-items:center;min-height:48px;max-height:130px;overflow:hidden;color:#8fa9a5;font-size:11px}
.mod-faction-extra-preview img,.mod-faction-extra-preview video{max-width:100%;max-height:120px;object-fit:contain}
@media(max-width:540px){.mod-faction-extra-grid{grid-template-columns:1fr}}

/* Moding : le drapeau accepte image, GIF et vidéo, et reste visible dans l'éditeur. */
.mod-faction-flag{border-color:#9da65d;background:linear-gradient(150deg,#25312a,#10232a)}
.mod-faction-flag .mod-faction-extra-preview{border:1px solid #40554e;margin-top:9px;min-height:70px;background:#07171c}
.mod-faction-flag .mod-faction-extra-preview img,.mod-faction-flag .mod-faction-extra-preview video{max-height:138px}
.country-dropdown>video{width:45px;height:28px;flex:none;object-fit:cover}
.faction-label video{width:24px;height:16px;flex:none;object-fit:cover;border:1px solid #c7b87c70}
.country-dropdown>video.country-emblem{width:45px;height:45px;flex-basis:45px;object-fit:contain;border:1px solid #a75569;background:#080b11}
.faction-bar .faction-label video.country-emblem{width:26px;height:26px;object-fit:contain;border:1px solid #6d5663;border-radius:50%;background:#080b11}
.mod-faction-library-item video{width:55px;height:42px;object-fit:contain;flex:none;border:1px solid #51646b}
@media(max-width:670px){.country-dropdown>video{width:39px;height:24px}.country-dropdown>video.country-emblem{width:39px;height:39px;flex-basis:39px}}

/* Moding : sections de faction repliables, sans JavaScript inline. */
details.mod-faction-atlas{padding:0}
details.mod-faction-atlas>summary{list-style:none;display:block;position:relative;cursor:pointer;padding:14px 40px 14px 15px;font-size:14px;font-weight:900;letter-spacing:.5px;color:#f1daa6;user-select:none}
details.mod-faction-atlas>summary::-webkit-details-marker{display:none}
details.mod-faction-atlas>summary::after{content:"▾";position:absolute;right:16px;top:50%;transform:translateY(-50%) rotate(-90deg);font-size:17px;color:#f1daa6;transition:transform .17s ease}
details.mod-faction-atlas[open]>summary::after{transform:translateY(-50%) rotate(0deg)}
details.mod-faction-atlas>summary:focus-visible{outline:2px solid #f4d587;outline-offset:-3px}
details.mod-faction-atlas>summary:hover{background:#ffffff10}
details.mod-faction-atlas>summary small{display:block;margin-top:5px;font-size:10px;font-weight:650;letter-spacing:0;color:#bbd0c7}
.mod-faction-atlas-content{padding:0 15px 15px}
.mod-faction-atlas-content>p{font-size:11px;line-height:1.55;color:#bbd0c7;margin:5px 0 12px}
.mod-faction-example-download{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:2px 0 7px;padding:9px 13px;border:1px solid #d5c37e;background:linear-gradient(110deg,#3c5043,#1b3533);color:#f6e2a6;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.35px;max-width:100%}
.mod-faction-example-download:hover,.mod-faction-example-download:focus-visible{background:#4d624f;color:#fff0be;outline-offset:2px}
.mod-faction-atlas-content>.mod-faction-example-tip{font-size:10px;color:#abc8bd;margin:2px 0 12px}
@media(prefers-reduced-motion:reduce){details.mod-faction-atlas>summary::after{transition:none}}

/* RedFobAlert — compétences des planches spéciales (faction / héros). */
.special-abilities{display:grid;grid-template-columns:1fr;gap:6px;margin-top:10px}
.special-ability-btn{display:block;width:100%;min-height:35px;border:1px solid #b4a069;background:#2d4744;color:#f3ddb2;padding:8px 6px;font:700 10px Consolas,monospace;letter-spacing:.3px;cursor:pointer}
.special-ability-btn:hover:not(:disabled){background:#45635b;border-color:#ead599}
.special-ability-btn:disabled{opacity:.56;cursor:not-allowed}

/* Moding faction — 5 étapes : identité + les 4 planches, sans nom ni portrait du héros. */
.mod-faction-step-identity{border-color:#d0b674;background:linear-gradient(145deg,#2b3932,#13252a)}
.mod-faction-step-identity[open]{box-shadow:inset 0 2px rgba(232,205,143,.18),0 0 0 1px rgba(224,188,109,.12)}
.mod-faction-step-identity .mod-faction-identity{margin:2px 0 0}
.mod-faction-step-identity .mod-faction-atlas-content{padding:3px 16px 17px}
.mod-faction-flag-section{margin-top:17px;padding-top:13px;border-top:1px solid #556655}
.mod-faction-flag-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:#f2d69c;font-size:12px;font-weight:900;margin-bottom:11px;letter-spacing:.4px}
.mod-faction-flag-title small{color:#abc5b9;font-size:10px;font-weight:600;letter-spacing:0}
.mod-faction-flag-section .mod-faction-extra-preview{margin-top:12px;border:1px solid #40554e;background:#0a181d;min-height:60px}
.mod-faction-flag-section .mod-faction-extra-preview img,.mod-faction-flag-section .mod-faction-extra-preview video{max-height:125px}
details.mod-faction-atlas>summary{display:flex;align-items:center;gap:12px;min-height:66px;padding:13px 44px 13px 15px}
.mod-faction-step-number{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #ccad6c;background:rgba(241,201,128,.09);color:#f3dca9;font-size:17px;font-weight:900;line-height:1}
.mod-faction-step-heading{min-width:0;line-height:1.3;overflow-wrap:anywhere}
.mod-faction-step-heading small{font-size:10px;line-height:1.5}
.mod-faction-editor details.mod-faction-atlas{margin-bottom:9px}
.mod-faction-editor details.mod-faction-atlas[open]{margin-bottom:14px}
.mod-faction-editor details.mod-faction-atlas[open]>summary{border-bottom:1px solid rgba(173,189,158,.25);margin-bottom:14px}
@media(max-width:540px){
  details.mod-faction-atlas>summary{gap:9px;padding:12px 36px 12px 10px;font-size:12px;min-height:59px}
  .mod-faction-step-number{flex-basis:29px;width:29px;height:29px;font-size:15px}
  .mod-faction-step-identity .mod-faction-atlas-content{padding:3px 10px 14px}
  .mod-faction-flag-section{margin-top:12px}
}


/* Atelier faction — assistant en 5 étapes : seule l'étape sélectionnée est affichée. */
.mod-faction-editor details.mod-faction-atlas[hidden],
.mod-faction-atlas-inputs [hidden],
.mod-faction-atlas-controls button[hidden],
.mod-faction-example-tip a[hidden]{display:none!important}
.mod-faction-wizard-nav{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:12px 14px;margin:0 0 12px;border:1px solid #637a70;background:linear-gradient(105deg,#213938,#12242b)}
.mod-faction-wizard-nav>label{flex:1;max-width:510px}
.mod-faction-wizard-nav select{margin-top:5px;font-weight:800;color:#f6e8c7}
.mod-faction-step-counter{flex:none;padding-bottom:9px;font:800 10px Consolas,monospace;letter-spacing:.7px;color:#edcf89}
.mod-faction-editor details.mod-faction-atlas>summary{cursor:default}
.mod-faction-editor details.mod-faction-atlas>summary::after{display:none}
.mod-faction-editor details.mod-faction-atlas>summary:hover{background:transparent}
.mod-faction-source-picker{margin:12px 0 10px;max-width:360px}
.mod-faction-source-picker select{cursor:pointer}
.mod-faction-source-fields{display:block}
.mod-faction-source-fields>label{max-width:100%;width:100%}
.mod-faction-atlas-controls:has(>button:not([hidden])){margin:6px 0}
.mod-faction-ai-guide{margin:14px 0 18px;padding:13px;border:1px solid #658881;background:linear-gradient(145deg,#152c2e,#0c1c24)}
.mod-faction-ai-guide-title{font-size:12px;font-weight:900;letter-spacing:.4px;color:#f5d99e;margin-bottom:10px}
.mod-faction-ai-guide p{font-size:11px;color:#c3d9d0;line-height:1.6;margin:0 0 11px}
.mod-faction-ai-guide textarea{width:100%;min-height:195px;max-height:320px;resize:vertical;white-space:pre-wrap;overflow:auto;background:#071419;color:#e1e9da;border:1px solid #6b8780;padding:10px;font:12px/1.6 Consolas,monospace;margin:5px 0 9px;box-sizing:border-box}
.mod-faction-ai-guide button{width:100%;min-height:36px;border:1px solid #b7aa70;color:#fbe9b1;background:#2d4646;font-weight:900;font-size:11px;cursor:pointer}
.mod-faction-ai-guide button:hover{background:#48635c}
.mod-faction-ai-guide .mod-faction-ai-warning{color:#c8b9a6;font-size:10px;margin:10px 0 0}
.mod-faction-wizard-actions{display:flex;gap:9px;margin:12px 0 9px}
.mod-faction-wizard-actions button{flex:1;min-width:0;min-height:40px;font-size:11px;font-weight:900}
.mod-faction-wizard-actions button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:540px){
  .mod-faction-wizard-nav{flex-direction:column;align-items:stretch;gap:5px;padding:10px}
  .mod-faction-step-counter{padding:0;text-align:right}
  .mod-faction-ai-guide{padding:10px}
  .mod-faction-ai-guide textarea{min-height:185px}
  .mod-faction-wizard-actions button{font-size:10px}
}

.mod-faction-ai-guide{padding:0;margin:12px 0 15px}
.mod-faction-ai-guide>summary{cursor:pointer;list-style:none;padding:13px 16px;color:#f5d99e;letter-spacing:.3px;line-height:1.5}
.mod-faction-ai-guide>summary::-webkit-details-marker{display:none}
.mod-faction-ai-guide>summary::before{content:"▸";margin-right:8px;color:#edc681}
.mod-faction-ai-guide[open]>summary::before{content:"▾"}
.mod-faction-ai-guide>summary span{font-size:10px;color:#c2d9c8;white-space:nowrap}
.mod-faction-ai-guide>summary:hover{background:#ffffff0b}
.mod-faction-ai-guide[open]>summary{border-bottom:1px solid #658881}
.mod-faction-ai-guide-content{padding:13px 15px}
@media(max-width:540px){.mod-faction-ai-guide>summary{padding:10px}.mod-faction-ai-guide-content{padding:10px}}

/* Aperçus et téléchargements des planches d’exemple complètes (étapes 3, 4, 5). */
.mod-faction-sheet-example{display:grid;gap:8px;margin:12px 0 15px;padding:11px;border:1px solid #557b77;background:#0d1f26}
.mod-faction-sheet-example[hidden]{display:none !important}
.mod-faction-sheet-example>img{width:100%;max-height:250px;object-fit:contain;object-position:center;display:block;background:#0b181e;border:1px solid #31494e;box-sizing:border-box}
.mod-faction-sheet-example .mod-faction-example-download{display:block;text-align:center;margin:0;width:100%;box-sizing:border-box}
.mod-faction-sheet-example .mod-faction-example-tip{margin:0;font-size:11px;line-height:1.5}
@media(max-width:540px){.mod-faction-sheet-example{padding:7px}.mod-faction-sheet-example>img{max-height:180px}}

/* Séquence vidéo d'introduction : au-dessus du menu et des fenêtres du jeu. */
#bizIntroOverlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:hidden;background:#000;color:#fff}
#bizIntroOverlay[hidden]{display:none!important}
#bizIntroVideo{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.biz-intro-controls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:linear-gradient(transparent,rgba(0,0,0,.74));font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#bizIntroCounter{color:#dadada;font-size:12px;font-weight:700;letter-spacing:.13em}
.biz-intro-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.biz-intro-actions button{font-family:inherit;font-size:12px;font-weight:750;color:#fff;background:rgba(9,17,23,.76);border:1px solid rgba(255,255,255,.45);border-radius:7px;padding:10px 13px;cursor:pointer}
.biz-intro-actions button:hover,.biz-intro-actions button:focus-visible{border-color:#f0ca85;background:rgba(30,42,51,.9)}
.biz-intro-actions button[hidden]{display:none!important}
@media(max-width:560px){.biz-intro-controls{align-items:flex-start;flex-direction:column;padding:16px 12px calc(16px + env(safe-area-inset-bottom))}.biz-intro-actions{width:100%;justify-content:flex-end}.biz-intro-actions button{padding:9px 11px;font-size:11px}}


/* RedFobAlert — interface tactile flottante (uniquement téléphone).
   Les commandes d'origine restent en place pour le moteur et la version PC. */
.ra-mobile-resources-toggle,.ra-mobile-nav,.ra-mobile-sidebar-close{display:none}
.ra-mobile-shade[hidden]{display:none!important}
@keyframes raFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes raMobileReveal{from{opacity:0;transform:translateY(17px) scale(.86)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes raGoldGleam{0%,100%{opacity:.35}50%{opacity:.95}}
@media(max-width:720px), (max-width:950px) and (pointer:coarse){
  #gameShell{position:relative}
  #gameShell .topbar{min-height:49px;height:49px;padding:0 8px;background:linear-gradient(180deg,#172a35ed,#0b1621eb);border-color:#557e92;z-index:12;justify-content:flex-end}
  #gameShell .topbar .top-stats{display:none}
  #gameShell.ra-mobile-resources-open .topbar .top-stats{display:flex;position:fixed;top:50px;left:6px;right:6px;z-index:21;padding:8px;justify-content:flex-start;overflow-x:auto;max-width:calc(100vw - 12px);background:linear-gradient(#1c303df2,#0b1823f4);border:2px solid #6993aa;border-radius:11px;box-shadow:0 8px 30px #000b;scrollbar-width:thin}
  #gameShell.ra-mobile-resources-open .topbar .top-stats .metric{flex:0 0 auto;min-width:74px;background:#182c38;border-color:#4d7083}
  #gameShell .topbar .top-actions #inGameMenuBtn{visibility:hidden;pointer-events:none}
  #gameShell .topbar .top-actions .in-game-menu-panel{position:fixed;top:51px;right:9px;z-index:30;width:min(250px,calc(100vw - 20px));background:linear-gradient(140deg,#263f4c,#101c27);border:2px solid #7097a6;box-shadow:0 9px 26px #000c}
  #gameShell .topbar .top-actions .in-game-menu-panel button{color:#f0d5a2;border-color:#835d3a;background:linear-gradient(#294755,#142630)}
  .ra-mobile-resources-toggle{display:flex;position:fixed;top:7px;left:9px;z-index:24;align-items:center;gap:9px;min-height:35px;padding:5px 12px;border:2px solid #8db8c9;border-radius:25px;background:linear-gradient(145deg,#37576a,#152b3a);color:#d7f0ff;font-size:11px;letter-spacing:.7px;font-weight:900;text-shadow:0 1px 3px #000;box-shadow:inset 0 1px 2px #ffe5a263,0 4px 13px #000b;animation:raFloat 3s ease-in-out infinite}
  .ra-mobile-resources-toggle[aria-expanded="true"]{background:linear-gradient(#7d5330,#492714);box-shadow:0 0 12px #f4bc5a72}
  .ra-resource-icon{display:flex;align-items:center;gap:2px;position:relative;width:23px;height:17px}
  .ra-resource-icon i{width:7px;height:11px;border-radius:50%;border:1px solid #ffe3a4;background:linear-gradient(90deg,#4b819c,#b8e5f4,#5a9bb6);transform:rotate(20deg);animation:raGoldGleam 2.7s ease-in-out infinite}
  .ra-resource-icon i:nth-child(2){animation-delay:.4s}.ra-resource-icon i:nth-child(3){animation-delay:.8s}
  #gameShell .main-area{width:100%;min-width:0}
  #gameShell #battlefield{width:100%;flex:1;min-width:0}
  #gameShell #sidebar{position:absolute;z-index:16;top:0;bottom:0;right:0;width:min(310px,89vw);min-width:0;max-width:89vw;transform:translateX(110%);transition:transform .27s cubic-bezier(.15,.8,.25,1);box-shadow:-10px 0 30px #000c;border-left:3px solid #6b9cae;background:linear-gradient(125deg,#253945,#111e2a)}
  #gameShell.ra-mobile-sidebar-open #sidebar{transform:translateX(0)}
  #gameShell #sidebar .mini-wrap{display:none}
  #gameShell #sidebar .faction-bar{padding-right:48px;min-height:42px;background:#172c39;border-color:#5f8597}
  #gameShell #sidebar .production-header{background:#1d3341;border-color:#537a8f}
  #gameShell #sidebar .tab-row{display:none}
  #gameShell #sidebar #buildList{min-height:0;overscroll-behavior:contain}
  #gameShell.ra-mobile-radar #sidebar .mini-wrap{display:block;flex:1;max-height:min(64vh,390px);min-height:180px;margin:14px 8px;border:3px solid #80acc0}
  #gameShell.ra-mobile-radar #sidebar .production-header,
  #gameShell.ra-mobile-radar #sidebar #buildList,
  #gameShell.ra-mobile-radar #sidebar #logisticsMarket,
  #gameShell.ra-mobile-radar #sidebar .queue-panel,
  #gameShell.ra-mobile-radar #sidebar .selection-panel,
  #gameShell.ra-mobile-radar #sidebar .side-footer{display:none!important}
  .ra-mobile-sidebar-close{display:grid;place-items:center;position:absolute;z-index:5;right:7px;top:5px;width:34px;height:34px;border:1px solid #a0c8db;border-radius:8px;background:linear-gradient(#3a6478,#142733);color:#e4f4ff;font-size:26px;line-height:1}
  .ra-mobile-shade:not([hidden]){display:block;position:absolute;z-index:14;inset:49px 0 0;background:#05030285;backdrop-filter:blur(1px)}
  .ra-mobile-nav{display:flex;position:fixed;z-index:22;bottom:calc(14px + env(safe-area-inset-bottom));right:calc(12px + env(safe-area-inset-right));align-items:flex-end;flex-direction:column;gap:9px;pointer-events:none}
  .ra-mobile-nav-toggle,.ra-mobile-action{pointer-events:auto;appearance:none;touch-action:manipulation;color:#e0f6ff;border:2px solid #8bb4ca;background:linear-gradient(145deg,#3a6579,#142936 80%);box-shadow:inset 0 2px 2px #ffe8b94b,0 4px 15px #000a;text-shadow:0 2px 3px #000;font-weight:900}
  .ra-mobile-nav-toggle{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;animation:raFloat 2.7s ease-in-out infinite}
  .ra-mobile-nav-toggle:before{content:"";position:absolute;inset:-6px;border:1px solid #8dc9e16b;border-radius:50%;animation:raGoldGleam 3.1s infinite;pointer-events:none}
  .ra-nav-toggle-art{position:relative;width:27px;height:27px;display:block}
  .ra-nav-toggle-art i{position:absolute;left:1px;top:12px;width:25px;height:3px;border-radius:2px;background:#a7d7eb;box-shadow:0 1px 2px #000;transition:transform .2s,opacity .2s}
  .ra-nav-toggle-art i:first-child{transform:translateY(-7px)}.ra-nav-toggle-art i:last-child{transform:translateY(7px)}
  .ra-open .ra-nav-toggle-art i:first-child{transform:rotate(45deg)}.ra-open .ra-nav-toggle-art i:nth-child(2){opacity:0}.ra-open .ra-nav-toggle-art i:last-child{transform:rotate(-45deg)}
  .ra-mobile-nav-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(260px,calc(100vw - 20px));max-height:calc(100dvh - 153px);overflow:auto;visibility:hidden;opacity:0;transform:translateY(12px) scale(.94);transform-origin:bottom right;pointer-events:none;transition:opacity .18s,transform .2s,visibility .2s;scrollbar-width:thin}
  .ra-open .ra-mobile-nav-options{visibility:visible;opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
  .ra-mobile-action{min-height:78px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border-radius:12px;padding:9px 5px;font-size:11px;line-height:1.2}
  .ra-open .ra-mobile-action{animation:raMobileReveal .26s backwards}
  .ra-open .ra-mobile-action:nth-child(2){animation-delay:.035s}.ra-open .ra-mobile-action:nth-child(3){animation-delay:.07s}.ra-open .ra-mobile-action:nth-child(4){animation-delay:.105s}.ra-open .ra-mobile-action:nth-child(5){animation-delay:.14s}.ra-open .ra-mobile-action:nth-child(6){animation-delay:.175s}
  .ra-mobile-action:active{filter:brightness(1.3);transform:scale(.96)}
  .ra-action-icon{position:relative;display:block;width:35px;height:32px;filter:drop-shadow(0 2px 2px #0009)}
  .ra-icon-build:before{content:"";position:absolute;bottom:1px;left:5px;width:25px;height:19px;background:#d3a66c;border:2px solid #214258;border-radius:1px;box-shadow:inset -8px 0 #a46d3e}
  .ra-icon-build:after{content:"";position:absolute;top:1px;left:2px;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:15px solid #455f76}
  .ra-icon-build i{position:absolute;z-index:1;bottom:2px;left:13px;width:8px;height:12px;background:#4a2617;border:1px solid #e6ba7e}
  .ra-icon-defend:before{content:"";position:absolute;left:6px;top:3px;width:23px;height:26px;background:linear-gradient(90deg,#a27747,#e0b57b,#82562d);clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%);border-radius:3px}
  .ra-icon-defend:after{content:"";position:absolute;left:16px;top:5px;width:3px;height:23px;background:#4d2418;box-shadow:0 0 2px #000}
  .ra-icon-defend i{position:absolute;left:8px;top:16px;width:20px;height:3px;background:#4d2418}
  .ra-icon-infantry:before{content:"";position:absolute;top:3px;left:10px;width:14px;height:13px;border-radius:50%;background:#d9a375;border:1px solid #623c26}
  .ra-icon-infantry:after{content:"";position:absolute;bottom:1px;left:7px;width:22px;height:16px;border-radius:7px 7px 2px 2px;background:linear-gradient(90deg,#4d6c61,#779783,#395448)}
  .ra-icon-infantry i{position:absolute;top:0;left:5px;width:24px;height:8px;border-radius:60% 60% 20% 20%;background:#61402a;z-index:1}
  .ra-icon-cavalry:before{content:"";position:absolute;top:10px;left:3px;width:29px;height:18px;background:#b57a4b;border-radius:60% 45% 25% 25%;transform:skew(-12deg)}
  .ra-icon-cavalry:after{content:"";position:absolute;top:3px;left:22px;width:11px;height:16px;background:#bd885b;border-radius:6px 6px 2px 2px;transform:rotate(-23deg)}
  .ra-icon-cavalry i{position:absolute;bottom:0;left:7px;width:3px;height:10px;background:#613723;box-shadow:13px 0 #613723}
  .ra-icon-radar:before{content:"";position:absolute;inset:2px;border-radius:50%;border:3px solid #afcf9e;background:repeating-radial-gradient(circle,#13291d 0 5px,#31523c 6px 7px);box-shadow:inset 0 0 6px #000}
  .ra-icon-radar:after{content:"";position:absolute;width:2px;height:13px;left:17px;top:4px;background:#badb88;transform-origin:bottom;animation:raRadarSweep 3s linear infinite}
  @keyframes raRadarSweep{to{transform:rotate(360deg)}}
  .ra-icon-menu:before,.ra-icon-menu:after,.ra-icon-menu i{content:"";position:absolute;left:4px;top:7px;width:27px;height:4px;border-radius:2px;background:#bfe7f5;box-shadow:0 1px 2px #000}
  .ra-icon-menu:after{top:15px}.ra-icon-menu i{top:23px}
}
@media(max-height:480px) and (max-width:950px) and (pointer:coarse){
  .ra-mobile-nav-options{grid-template-columns:repeat(3,minmax(0,1fr));width:min(330px,calc(100vw - 20px));gap:5px}
  .ra-mobile-action{min-height:63px;padding:3px;font-size:9px}
  .ra-mobile-nav-toggle{width:48px;height:48px}
}
@media(prefers-reduced-motion:reduce){.ra-mobile-nav-toggle,.ra-mobile-resources-toggle,.ra-action-icon:after,.ra-open .ra-mobile-action{animation:none!important}}

/* RedFobAlert — sélection rapide tactile : téléphone uniquement. */
.ra-mobile-select{display:none}
@media(max-width:720px), (max-width:950px) and (pointer:coarse){
  .ra-mobile-select{display:flex;position:fixed;z-index:22;bottom:calc(14px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left));align-items:flex-start;flex-direction:column;gap:9px;pointer-events:none}
  .ra-mobile-select-toggle,.ra-mobile-select-action{pointer-events:auto;appearance:none;touch-action:manipulation;color:#e0f6ff;border:2px solid #8bb4ca;background:linear-gradient(145deg,#3a6579,#142936 80%);box-shadow:inset 0 2px 2px #ffe8b94b,0 4px 15px #000a;text-shadow:0 2px 3px #000;font-weight:900}
  .ra-mobile-select-toggle{display:grid;place-items:center;position:relative;width:58px;height:58px;border-radius:50%;animation:raFloat 2.9s ease-in-out infinite}
  .ra-mobile-select-toggle:before{content:"";position:absolute;inset:-6px;border:1px solid #8dc9e16b;border-radius:50%;animation:raGoldGleam 3.1s infinite;pointer-events:none}
  .ra-select-toggle-art{position:relative;width:29px;height:29px}
  .ra-select-toggle-art i{position:absolute;background:#c0e6f5;box-shadow:0 1px 2px #000}
  .ra-select-toggle-art i:first-child{left:2px;top:3px;width:25px;height:5px;transform:rotate(-40deg);border-radius:3px}
  .ra-select-toggle-art i:nth-child(2){left:2px;top:3px;width:25px;height:5px;transform:rotate(40deg);border-radius:3px}
  .ra-select-toggle-art i:last-child{width:9px;height:9px;left:10px;top:15px;transform:rotate(45deg);border:2px solid #c0e6f5;background:#734524}
  .ra-select-open .ra-select-toggle-art{transform:rotate(90deg);transition:transform .2s}
  .ra-mobile-select-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(264px,calc(100vw - 20px));max-height:calc(100dvh - 153px);overflow:auto;visibility:hidden;opacity:0;transform:translateY(12px) scale(.94);transform-origin:bottom left;pointer-events:none;transition:opacity .18s,transform .2s,visibility .2s;scrollbar-width:thin}
  .ra-select-open .ra-mobile-select-options{visibility:visible;opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
  .ra-mobile-select-action{min-height:76px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:12px;padding:8px 5px;font-size:10px;line-height:1.2}
  .ra-select-open .ra-mobile-select-action{animation:raMobileReveal .26s backwards}
  .ra-select-open .ra-mobile-select-action:nth-child(2){animation-delay:.04s}.ra-select-open .ra-mobile-select-action:nth-child(3){animation-delay:.08s}.ra-select-open .ra-mobile-select-action:nth-child(4){animation-delay:.12s}.ra-select-open .ra-mobile-select-action:nth-child(5){animation-delay:.16s}
  .ra-mobile-select-action:active{filter:brightness(1.3);transform:scale(.96)}
  .ra-select-icon{display:block;position:relative;width:34px;height:28px;filter:drop-shadow(0 2px 2px #0009)}
  .ra-select-icon:before,.ra-select-icon:after,.ra-select-icon i,.ra-select-icon b{position:absolute;content:"";display:block}
  .ra-select-army:before{width:8px;height:8px;background:#f3c98a;border-radius:50%;left:13px;top:1px;box-shadow:-11px 5px #d7a16e,11px 5px #d7a16e}
  .ra-select-army:after{width:12px;height:12px;background:#496452;border-radius:7px 7px 1px 1px;left:11px;top:12px;box-shadow:-12px 2px #476552,12px 2px #476552}
  .ra-select-infantry:before{width:12px;height:12px;background:#e4b88a;border-radius:50%;left:11px;top:1px}
  .ra-select-infantry:after{width:21px;height:14px;background:#596e4d;border-radius:8px 8px 2px 2px;left:7px;top:13px}
  .ra-select-infantry i{width:24px;height:5px;background:#5a3721;border-radius:50%;left:5px;top:1px;z-index:1}
  .ra-select-cavalry:before{width:27px;height:15px;background:#bf8350;border-radius:55% 40% 25% 25%;left:2px;top:10px;transform:skew(-12deg)}
  .ra-select-cavalry:after{width:11px;height:16px;background:#d0995e;border-radius:50% 50% 3px 3px;left:23px;top:2px;transform:rotate(-24deg)}
  .ra-select-cavalry i{width:3px;height:9px;background:#604028;left:7px;top:20px;box-shadow:15px 0 #604028}
  .ra-select-artillery:before{width:28px;height:7px;background:#9c8467;border:1px solid #f4c58c;border-radius:2px;left:4px;top:5px;transform:rotate(-24deg)}
  .ra-select-artillery:after{width:15px;height:15px;border-radius:50%;background:radial-gradient(circle,#4f3421 0 3px,#ca9454 4px 6px,#523b28 7px);left:8px;top:12px;box-shadow:13px 2px #694525}
  .ra-select-hero:before{inset:1px 5px;background:#efc47b;clip-path:polygon(50% 0,61% 32%,95% 34%,70% 55%,79% 91%,50% 70%,21% 91%,30% 55%,5% 34%,39% 32%)}
  .ra-select-hero:after{inset:8px 12px;background:#8e532b;border-radius:50%}
}
@media(max-height:480px) and (max-width:950px) and (pointer:coarse){
  .ra-mobile-select-options{grid-template-columns:repeat(3,minmax(0,1fr));width:min(325px,calc(100vw - 20px));gap:5px}
  .ra-mobile-select-action{min-height:62px;padding:3px;font-size:9px}
  .ra-mobile-select-toggle{width:48px;height:48px}
}
@media(prefers-reduced-motion:reduce){.ra-mobile-select-toggle,.ra-select-open .ra-mobile-select-action{animation:none!important}}

/* RedFobAlert : catégories adaptées aux blindés et à l'aviation. */
.ra-icon-aircraft:before{content:"";position:absolute;left:1px;top:4px;width:34px;height:26px;background:#b9d7e3;clip-path:polygon(50% 0,60% 37%,95% 62%,95% 74%,57% 62%,57% 87%,71% 94%,71% 100%,50% 94%,29% 100%,29% 94%,43% 87%,43% 62%,5% 74%,5% 62%,40% 37%)}
.ra-select-aircraft:before{content:"";position:absolute;inset:0;background:#b2d8ed;clip-path:polygon(50% 0,60% 35%,98% 60%,98% 73%,57% 61%,57% 87%,72% 92%,72% 100%,28% 100%,28% 92%,43% 87%,43% 61%,2% 73%,2% 60%,40% 35%)}
@media(max-width:720px), (max-width:950px) and (pointer:coarse){
  #gameShell #sidebar .side-footer{display:none}
  #gameShell .topbar .top-actions #inGameMenuBtn{position:relative;visibility:hidden;pointer-events:none}
  #gameShell .main-area{min-height:0}
  .ra-mobile-nav-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ra-mobile-select-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  #gameShell #sidebar{overflow-y:auto}
  #gameShell.ra-mobile-radar #sidebar #buildList{display:none!important}
}
@media(max-height:480px) and (max-width:950px) and (pointer:coarse){
 .ra-mobile-nav-options,.ra-mobile-select-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
