:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #e1e4ea;
  --text: #1d2330;
  --muted: #697386;
  --accent: #4c6ef5;
  --accent-ink: #ffffff;
  --accent-soft: #edf1ff;
  --danger: #e03131;
  --success: #2f9e44;
  --warn: #e67700;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-transform: none;
  --head-spacing: normal;
  --map-bg: #eef0f4;
  --map-grid: #c9ced8;
  --banner: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]), :root[data-theme="generique"] {
    --bg: #12151c; --surface: #1a1f29; --surface-2: #20262f; --border: #2e3542;
    --text: #e6e9ef; --muted: #98a2b3; --accent: #748ffc;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --map-bg: #1a1f29; --map-grid: #2e3542;
    color-scheme: dark;
  }
}
/* La teinte douce de l'accent est dérivée automatiquement (fonctionne aussi avec une couleur personnalisée) */
:root { --accent-soft: color-mix(in srgb, var(--accent) 15%, var(--surface)); }

/* ---------- Thèmes de campagne ---------- */
:root[data-theme="fantasy"] {
  --bg: #efe5cf; --surface: #fbf5e6; --surface-2: #f3ead4; --border: #d8c69e;
  --text: #2b2116; --muted: #7a6a52; --accent: #8b2c1a; --accent-ink: #fff8ea;
  --font-head: "Cinzel", Georgia, serif; --font-body: "EB Garamond", Georgia, serif;
  --head-spacing: .02em; --map-bg: #efe2c2; --map-grid: #d8c69e;
  --banner: linear-gradient(90deg, #8b2c1a, #c08a2d);
}
:root[data-theme="scifi"] {
  --bg: #0a0f1d; --surface: #111a2e; --surface-2: #17223a; --border: #24314f;
  --text: #dce6ff; --muted: #8a9bc4; --accent: #22d3ee; --accent-ink: #04121a;
  --font-head: "Orbitron", "Segoe UI", sans-serif; --font-body: "Exo 2", "Segoe UI", sans-serif;
  --head-spacing: .04em; --map-bg: #0d1426; --map-grid: #1f2c4a;
  --shadow: 0 0 0 1px rgba(34, 211, 238, .05), 0 2px 8px rgba(0, 0, 0, .5);
  --banner: linear-gradient(90deg, #22d3ee, #7c3aed);
  color-scheme: dark;
}
:root[data-theme="historique"] {
  --bg: #ece6da; --surface: #fffdf8; --surface-2: #f5f0e6; --border: #d8cfbf;
  --text: #2a2723; --muted: #6f675b; --accent: #2f4e7a; --accent-ink: #fff;
  --font-head: "Playfair Display", Georgia, serif; --font-body: Georgia, "Times New Roman", serif;
  --map-bg: #efe8d8; --map-grid: #d8cfbf;
  --banner: linear-gradient(90deg, #2f4e7a, #9b2226);
}
:root[data-theme="moderne"] {
  --bg: #e6e9e1; --surface: #f8f9f5; --surface-2: #eef0e9; --border: #cdd3c3;
  --text: #1f241c; --muted: #5f6857; --accent: #4d6b2f; --accent-ink: #fff;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --head-transform: uppercase; --head-spacing: .05em; --map-bg: #e3e7dc; --map-grid: #c3cab7;
  --banner: repeating-linear-gradient(135deg, #4d6b2f 0 14px, #3b5324 14px 28px);
}
:root[data-theme="postapo"] {
  --bg: #1a1713; --surface: #24201a; --surface-2: #2d281f; --border: #403829;
  --text: #ebe2d0; --muted: #a59a82; --accent: #e0782f; --accent-ink: #1a1713;
  --font-head: "Special Elite", "Courier New", monospace;
  --map-bg: #221e18; --map-grid: #3a3226;
  --shadow: 0 2px 6px rgba(0, 0, 0, .5);
  --banner: repeating-linear-gradient(135deg, #e0782f 0 14px, #1a1713 14px 28px);
  color-scheme: dark;
}
:root[data-theme="horreur"] {
  --bg: #0e0b0f; --surface: #17121a; --surface-2: #1f1823; --border: #33283a;
  --text: #e7dee9; --muted: #9b8ca3; --accent: #c0283f; --accent-ink: #fff;
  --font-head: "IM Fell English", Georgia, serif; --font-body: Georgia, serif;
  --map-bg: #151017; --map-grid: #2d2333;
  --shadow: 0 2px 10px rgba(0, 0, 0, .6);
  --banner: linear-gradient(90deg, #4a0d16, #c0283f, #4a0d16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font-body); background: var(--bg); color: var(--text); transition: background-color .2s; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-family: var(--font-head); text-transform: var(--head-transform); letter-spacing: var(--head-spacing); }
.topbar .brand, .tabs a, .stat b { font-family: var(--font-head); letter-spacing: var(--head-spacing); }

/* Bandeau d'ambiance (liseré coloré sous la barre du haut) */
header.topbar { background-image: var(--banner); background-size: 100% 3px; background-position: top; background-repeat: no-repeat; }

/* Sélecteur de thème */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.theme-tile { position: relative; display: block; margin: 0; padding: 0; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; font-weight: 600; background: var(--surface); }
.theme-tile input { position: absolute; opacity: 0; pointer-events: none; }
.theme-tile:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-tile .tp { height: 54px; display: flex; align-items: flex-end; gap: 4px; padding: 8px; }
.theme-tile .tp i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); }
.theme-tile .tl { display: block; padding: 6px 10px 8px; font-size: .85rem; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
details.box { border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px 12px; margin-top: 14px; }
details.box summary { cursor: pointer; font-weight: 600; padding: 8px 0 0; }

/* Univers (vue d'ensemble) */
.universe { border-top: 4px solid var(--accent); }
.universe .lore { white-space: pre-wrap; }
.universe h3 { margin-top: 14px; }
.theme-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.theme-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .85rem; }

/* Barre du haut */
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .brand { font-weight: 700; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.topbar .brand svg { width: 22px; height: 22px; }
.topbar .spacer { flex: 1; }
.topbar .user { color: var(--muted); font-size: .9rem; }

main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }

/* Boutons et formulaires */
button, .btn { font: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.07); }
button.danger { color: var(--danger); }
button.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
button.ghost { border-color: transparent; background: transparent; }
button.small, .btn.small { padding: 4px 10px; font-size: .85rem; }
button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
input[type=color] { padding: 2px; height: 38px; width: 64px; }
input[type=checkbox] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.row > .shrink { flex: 0 0 auto; min-width: 0; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* Cartes / panneaux */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

/* Authentification */
.auth-wrap { max-width: 400px; margin: 60px auto; }
.auth-wrap .card { padding: 28px; }
.auth-wrap h1 { text-align: center; }

/* Liste des campagnes */
.campaign-card { display: block; color: inherit; transition: transform .1s; border-top: 4px solid var(--card-accent, var(--accent)); }
.campaign-card h2 { font-family: var(--card-font, var(--font-head)); }
.campaign-card:hover { text-decoration: none; transform: translateY(-2px); }
.campaign-card p { color: var(--muted); margin: 6px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.badge.admin { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.active { color: var(--success); }
.badge.paused { color: var(--warn); }
.badge.finished { color: var(--muted); }
.badge.win { background: #d3f9d8; color: #2b8a3e; border-color: transparent; }
.badge.loss { background: #ffe3e3; color: #c92a2a; border-color: transparent; }
.badge.draw { background: #fff3bf; color: #a35f00; border-color: transparent; }

/* Onglets de campagne */
.camp-head { margin-bottom: 4px; }
.camp-head h1 { margin-bottom: 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 12px 0 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0,0,0,.15); }
.player { display: inline-flex; align-items: center; white-space: nowrap; }

/* Cartes (miniatures) */
.map-thumb { aspect-ratio: 16/10; border-radius: 8px; background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--border); margin-bottom: 10px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.map-card { color: inherit; display: block; }
.map-card:hover { text-decoration: none; border-color: var(--accent); }

/* Éditeur de carte */
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
.map-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.map-toolbar .sep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.map-stage { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 230px); }
.map-stage svg { display: block; user-select: none; touch-action: none; }
.map-stage.mode-draw svg, .map-stage.mode-army svg { cursor: crosshair; }
.territory { cursor: pointer; transition: fill-opacity .1s; }
.territory:hover { fill-opacity: .55; }
.territory.sel { stroke-width: 5; stroke-dasharray: 14 6; }
.army { cursor: pointer; }
.army.mine { cursor: grab; }
.army.sel circle { stroke: #ffd43b; }
.map-label { pointer-events: none; font-weight: 700; paint-order: stroke; stroke: rgba(255,255,255,.85); fill: #1d2330; }
.side { position: sticky; top: 72px; }
.side .card + .card { margin-top: 12px; }
.legend li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.legend { list-style: none; padding: 0; margin: 0; }
.hint { background: var(--accent-soft); color: var(--accent); padding: 8px 12px; border-radius: 8px; font-size: .88rem; margin-bottom: 10px; }

/* Batailles */
.battle { border-left: 4px solid var(--accent); }
.battle + .battle { margin-top: 12px; }
.battle .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.battle .parts { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.battle .narr { white-space: pre-wrap; color: var(--text); margin: 8px 0 0; }
.part-row { display: grid; grid-template-columns: 1fr 140px 90px 36px; gap: 8px; margin-bottom: 8px; }
.part-row button { padding: 0; justify-content: center; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }

/* Modale */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 22, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal h2 { margin-bottom: 4px; }

/* Notifications */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #1d2330; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); max-width: 360px; animation: pop .15s ease-out; }
.toast.error { background: var(--danger); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; }
.list-plain li:last-child { border-bottom: none; }

@media (max-width: 600px) {
  main { padding: 16px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .user { display: none; }
  .part-row { grid-template-columns: 1fr 1fr; }
}

/* Lieux (points d'intérêt) et infobulle de la carte */
.poi { cursor: pointer; }
.poi.mine { cursor: grab; }
.poi-bg { fill: var(--surface); stroke: var(--accent); fill-opacity: .92; }
.poi.sel .poi-bg { stroke: #ffd43b; }
.poi.hidden-poi { opacity: .55; }
.poi:hover .poi-bg { fill-opacity: 1; }
.map-tip { position: fixed; z-index: 40; max-width: 300px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 12px; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; }
.map-tip strong { display: block; font-family: var(--font-head); }
.map-tip .tip-sub { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.map-tip .tip-gm { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--warn); }
.map-tip .tip-hint { margin-top: 6px; color: var(--muted); font-size: .72rem; font-style: italic; }
textarea.gm-notes { border-style: dashed; background: var(--surface-2); }

/* Sélection automatique et retouche des sommets */
.hint .hint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
.hint .hint-row .spacer { flex: 1; }
.hint .warn { color: var(--danger); }
.hint .checkbox { margin: 0; font-size: .85rem; color: var(--text); }
.wand-opt { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--text); font-weight: 500; }
.wand-opt input[type=range] { width: 120px; padding: 0; accent-color: var(--accent); }
.wand-opt b { min-width: 2.2em; display: inline-block; font-variant-numeric: tabular-nums; }
.wand-preview { fill: var(--accent); fill-opacity: .3; stroke: var(--accent); pointer-events: none; }
.wand-seed { fill: #fff; stroke: var(--accent); pointer-events: none; }
.edit-outline { fill: none; stroke: #fff; stroke-opacity: .6; pointer-events: none; }
.vx { fill: #fff; stroke: var(--accent); cursor: move; }
.vx:hover { fill: #ffd43b; }
.mid circle { fill: var(--accent); fill-opacity: .55; stroke: #fff; }
.mid path { stroke: #fff; }
.mid { cursor: copy; opacity: .75; }
.mid:hover { opacity: 1; }
.map-stage.mode-wand svg { cursor: crosshair; }

/* Gomme à textes */
.eraser { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; }
.er-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.er-bar .spacer { flex: 1; }
.er-group { display: inline-flex; align-items: center; gap: 4px; }
.er-opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 500; }
.er-opt input[type=range] { width: 110px; padding: 0; accent-color: var(--accent); }
.er-help { padding: 6px 16px; }
.er-stage { flex: 1; overflow: auto; padding: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--bg) 0 50%) 0 0 / 20px 20px; }
.er-wrap { position: relative; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.er-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#erov { cursor: crosshair; touch-action: none; }

/* ---------- Troupes et flottes (Mon espace) ---------- */
.troop-board { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .troop-board { grid-template-columns: 1fr; } }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.troop-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; transition: border-color .1s, box-shadow .1s; min-width: 0; }
.troop-col header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.troop-col header h3 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.troop-col.reserve { border-top: 3px solid var(--muted); }
.troop-col.fleet { border-top: 3px solid var(--fleet); }
.troop-col .fleet-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.troop-col .fleet-meta a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.troop-col.empty-fleets { border-style: dashed; }
.troop-card.is-dragging .troop-col:not(.empty-fleets) { border-style: dashed; }
.troop-col.drop-over { border-color: var(--accent); border-style: solid !important; box-shadow: 0 0 0 2px var(--accent-soft); }
.troop-list { list-style: none; margin: 0; padding: 0; min-height: 44px; display: flex; flex-direction: column; gap: 5px; }
.troop-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; cursor: grab; font-size: .88rem; user-select: none; }
.troop-chip:hover { border-color: var(--accent); }
.troop-chip.dragging { opacity: .45; }
.troop-chip .tq { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); min-width: 2.2em; }
.troop-chip .tn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.troop-chip .tn .badge { font-size: .68rem; padding: 0 6px; }
.troop-chip .tp { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.troop-empty { color: var(--muted); font-size: .82rem; padding: 10px 6px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; }
.troop-total { padding: 8px 10px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.troop-mini { margin-top: 6px; }
.troop-mini li { padding: 4px 0; }
.troop-chip .tn .badge.extra { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- Tours de campagne et mouvement ---------- */
.turn-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.turn-badge { display: inline-block; font-family: var(--font-head); font-weight: 700; letter-spacing: var(--head-spacing); padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.range-circle { fill: var(--accent); fill-opacity: .08; stroke: var(--accent); stroke-opacity: .9; pointer-events: none; }
.range-path { stroke: #ffd43b; fill: none; pointer-events: none; }
.range-path.over { stroke: var(--danger); }
.range-start { fill: none; stroke: #ffd43b; pointer-events: none; }
.move-info { margin-top: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; display: grid; gap: 3px; }
.move-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.move-bar i { display: block; height: 100%; background: var(--accent); }
.fleet-move { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.fleet-move select { padding: 3px 4px; font-size: .78rem; min-width: 0; flex: 1; }
.fleet-move .mp { font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--accent); }
/* création de pion par un joueur : ses territoires en surbrillance */
.map-stage.mode-army .territory.spawn-ok { fill-opacity: .6; stroke-width: 3; cursor: copy; }
.map-stage.mode-army .territory.spawn-no { fill-opacity: .05; cursor: not-allowed; }
