/* La bataille : son étiquette, la vue « échelle », le verdict, le fil. Le reste vient de battle.css (web-v2). */
.fenetre .corps { display: flex; min-height: 0; padding: 0; }
.bat-app .geste { width: 100%; }
.bat-tr.ici { box-shadow: inset 0 0 0 1px var(--signal); }
.bat-tr.avenir { opacity: 0.45; cursor: default; }
.fil-tour { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 8px; border-bottom: 1px solid var(--structure); }
.fil-tour b { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--peuple); font-weight: 600; }
.fil-tour b i { font-style: normal; color: var(--efface); font-weight: 400; }
.fil-tour p, .bat-fil.court p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--discret); }
.verdict { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 8px 22px; margin: 10px 16px 0; padding: 10px 14px 12px; background: color-mix(in srgb, var(--bon) 8%, transparent); box-shadow: inset 3px 0 0 var(--bon); font-family: var(--texte); }
.verdict b { font-size: 16px; font-weight: 600; color: var(--encre); } .verdict p { margin: 2px 0 4px; font-size: 13px; color: var(--discret); }
.verdict small { font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.verdict__chiffres { display: flex; gap: 18px; align-items: flex-start; }
.verdict__chiffres span { display: flex; flex-direction: column; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.verdict__chiffres b { font-size: 18px; font-variant-numeric: tabular-nums; }
.verdict__pertes { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--discret); } .verdict__pertes span { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.verdict__geste { align-self: end; width: 240px; }

/* L'étiquette de la bataille, sur le système. */
.secteur .combat circle { fill: none; stroke: var(--alerte); stroke-width: 1.5; }
.secteur .combat circle:last-child { stroke-opacity: 0.45; stroke-dasharray: 3 5; animation: armee-tourne 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.secteur .combat.fini circle { stroke: var(--bon); animation: none; }
.suit.bataille { width: 380px; box-shadow: inset 0 0 0 1px var(--structureVive), inset 2px 0 0 var(--alerte); }
.suit.bataille.finie { box-shadow: inset 0 0 0 1px var(--structureVive), inset 2px 0 0 var(--bon); }
.suit.bataille .suit__etat { color: var(--alerte); } .suit.bataille.finie .suit__etat { color: var(--efface); }
.suit.bataille .suit__etat b { color: var(--encre); font-variant-numeric: tabular-nums; }
.suit.bataille p.bon { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--bon); }
.suit.bataille.large { width: 700px; }
.suit .dernier, .ech__flottes .dernier { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--discret); }
.face { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.face > div { display: flex; flex-direction: column; gap: 3px; }
.face span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.face span b { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.face small { font-size: 11px; color: var(--discret); }
.face__barre { height: 4px; background: color-mix(in srgb, var(--gris) 14%, transparent); position: relative; }
.face__barre > i { position: absolute; inset: 0 auto 0 0; } .face__barre.moi > i { background: var(--peuple); } .face__barre.eux > i { background: var(--alerte); }
.cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cotes > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cote > small { font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--peuple); } .cote.eux > small { color: var(--alerte); }
.cote__ligne { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 70px; gap: 8px; align-items: center; padding: 2px 6px 2px 2px; font-size: 12.5px; color: var(--encre); background: color-mix(in srgb, var(--creux) 40%, transparent); }
.cote__ligne.mort { opacity: 0.35; }
.cote__ligne > i { height: 26px; background: var(--creux) center / cover no-repeat; }
.cote__ligne span { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cote__ligne em { font-style: normal; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--efface); }
.cote__ligne b { font-variant-numeric: tabular-nums; } .cote__ligne s { text-decoration: none; font-weight: 400; color: var(--efface); }
.cote__barres { display: grid; gap: 2px; } .cote__barres u { display: block; height: 3px; position: relative; text-decoration: none; background: color-mix(in srgb, var(--gris) 12%, transparent); }
.cote__barres u > i { position: absolute; inset: 0 auto 0 0; } .cote__barres u.bouclier > i { background: #6fd3ff; } .cote.moi .cote__barres u.coque > i { background: var(--peuple); } .cote.eux .cote__barres u.coque > i { background: var(--alerte); }
.suit__ferme { font-size: 11px; }

/* B · la bataille comme une échelle de la carte. */
.bat-app.echelle { position: fixed; z-index: 20; left: 130px; right: 350px; top: 92px; bottom: 16px; height: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0 14px; font-family: var(--texte); }
.ech__tete { grid-column: 1 / -1; } .ech__tete .bat-tete { background: color-mix(in srgb, var(--panneau) 80%, transparent); border: 0; box-shadow: inset 0 0 0 1px var(--structure); }
.ech__scene { grid-column: 2; grid-row: 2; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.ech__scene .bat-scene { background: none; }
.ech__flottes, .ech__fil { grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; margin-top: 10px; background: color-mix(in srgb, var(--panneau) 88%, transparent); box-shadow: inset 0 0 0 1px var(--structure); max-height: calc(100% - 20px); overflow: auto; }
.ech__flottes { grid-column: 1; } .ech__fil { grid-column: 3; }
.ech__frise { grid-column: 1 / -1; grid-row: 3; } .ech__frise .bat-frise { border: 0; justify-content: center; background: color-mix(in srgb, var(--panneau) 80%, transparent); box-shadow: inset 0 0 0 1px var(--structure); }
.os__tenue > .fenetre { animation: none !important; opacity: 1 !important; background: var(--panneau); }
/* B, reprise : la scène prend toute la place ; les flottes et le fil se posent dans les coins du bas, de part et d'autre du monde. */
.bat-app.echelle { left: 230px; right: 350px; display: block; }
.ech__tete { position: absolute; left: 0; right: 0; top: 0; }
.ech__scene { position: absolute; left: 0; right: 0; top: 44px; bottom: 66px; overflow: auto; }
.ech__flottes, .ech__fil { position: absolute; bottom: 74px; margin: 0; max-height: 300px; z-index: 4; }
.ech__flottes { left: 0; width: 240px; } .ech__fil { right: 0; width: 262px; }
.ech__frise { position: absolute; left: 0; right: 0; bottom: 0; }
.ech__scene .bat-horizon__crete, .ech__scene .bat-horizon__surface { padding: 0 250px; }
.suit.bataille.large { width: 920px; }
.cotes.trois { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.cotes.trois > div { gap: 8px; }
.ech__flottes { width: 230px; } .ech__fil { width: 222px; max-height: 250px; }
.verdict { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
.verdict__pertes span { grid-template-columns: 96px minmax(0, 1fr); }
/* Le face-à-face : les deux camps ont les mêmes lignes, chacune sur une seule ligne. */
.suit.bataille { width: 430px; }
.face .face__qui { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.face .face__compte { font-size: 12.5px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.face small { white-space: nowrap; }
.suit.bataille.basse { width: 720px; }
.bataille__cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.bataille__cols > div:first-child { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bataille__cols .suit__gestes > .geste:first-child { margin-top: 6px; }
