:root {
  --panel: rgba(18, 22, 32, 0.88);
  --panel-solid: #161b26;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f6;
  --muted: #9aa3b5;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --good: #4ade80;
  --bad: #f87171;
  --gold: #facc15;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #3a5c94;
  color: var(--text);
  font-family: Overpass, Arial, sans-serif;
}

#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
  touch-action: none;
}
#map:active { cursor: grabbing; }

.hidden { display: none !important; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.panel-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------------------------------------------------- barre du haut */
#topbar {
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  z-index: 5;
}
.logo { font-weight: 900; letter-spacing: 0.04em; font-size: 16px; }
.logo span, h1 span { color: var(--gold); }
.round-info { font-size: 13px; color: var(--muted); font-weight: 600; }
.round-info b { color: var(--text); }
.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 15px;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------------------------------------------------- classement */
#leaderboard {
  position: fixed;
  top: 12px;
  right: 12px;
  padding: 10px 12px;
  z-index: 5;
  min-width: 300px;
}
#leaderboard table { border-collapse: collapse; width: 100%; font-size: 13px; }
#leaderboard th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; padding: 2px 6px; }
#leaderboard td { padding: 4px 6px; font-weight: 600; white-space: nowrap; }
#leaderboard tr.me td { background: rgba(59, 130, 246, 0.18); }
#leaderboard tr.dead td { color: #6b7280; text-decoration: line-through; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.moral-bar { display: inline-block; width: 44px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.moral-bar i { display: block; height: 100%; }

/* ---------------------------------------------------- fil d'actu */
#log {
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 330px;
  max-height: 38vh;
  padding: 10px 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
}
#log ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; font-size: 12.5px; line-height: 1.35; }
#log li { padding: 5px 0; border-bottom: 1px solid var(--line); }
#log li:last-child { border-bottom: 0; }
#log li .who { font-weight: 800; }
#log li.world { color: var(--gold); }
#log li.death { color: var(--bad); font-weight: 700; }

/* ---------------------------------------------------- placement */
#placeBanner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 16px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
}
#placeBanner .dot { width: 14px; height: 14px; border-radius: 4px; }

/* ---------------------------------------------------- panneau de tour */
#turnPanel {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  padding: 14px 16px;
  z-index: 6;
}
.turn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.turn-flag { font-size: 34px; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; }
.turn-country { font-weight: 900; font-size: 20px; }
.turn-leader { color: var(--muted); font-size: 13px; font-weight: 600; }
.turn-stats { margin-left: auto; display: flex; gap: 14px; }
.stat { text-align: right; min-width: 84px; }
.stat .lbl { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stat .val { font-weight: 800; font-size: 16px; }
.stat .bar { position: relative; height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.stat .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.stat .bar u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); }

.question {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 12px;
  background: rgba(250, 204, 21, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  margin-bottom: 10px;
}
.question.loading { color: var(--muted); font-style: italic; font-weight: 500; }
textarea, input:not([type=checkbox]):not([type=radio]):not([type=color]), select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 15px;
  outline: none;
  resize: none;
}
textarea:focus, input:focus, select:focus { border-color: var(--accent); }
.turn-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.turn-actions .hint { color: var(--muted); font-size: 11px; margin-right: auto; }
.thinking { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--gold); font-weight: 700; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(250,204,21,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------- boutons */
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transition: transform .08s, background .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent-2); border-color: #3b82f6; }
.btn.primary:hover { background: #1d4ed8; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.dark { background: #1b1b1b; color: #f3ecd9; border: 0; }
.btn.dark:hover { background: #000; }
.chip {
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.chip:hover { background: rgba(255,255,255,.15); }

/* ---------------------------------------------------- overlays / modales */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.55);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
  overflow-y: auto;
}
.modal { padding: 22px 24px; width: min(760px, 100%); background: rgba(18, 22, 32, 0.95); }
.modal h1 { margin: 0 0 4px; font-weight: 900; font-size: 34px; letter-spacing: .02em; }
.modal h2 { margin: 0 0 4px; font-weight: 900; }
.sub { color: var(--muted); margin: 0 0 16px; }
.tiny { color: var(--muted); font-size: 11.5px; }

.player-row {
  display: grid;
  grid-template-columns: 56px 34px 1fr 30px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.player-row select { padding: 7px 4px; font-size: 20px; text-align: center; }
.player-row input[type=color] { width: 34px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
.player-row .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.player-row .rm:hover { color: var(--bad); }
.row-actions { display: flex; gap: 8px; margin: 6px 0 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.ai-status { font-size: 13px; margin-top: 10px; color: var(--muted); }
.ai-status b { color: var(--gold); }
.setup-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

.founding-modal { width: min(620px, 100%); }
.founding-modal .presets { margin: 6px 0 0; }
.providers { display: grid; gap: 8px; margin-bottom: 12px; }
.providers label {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.providers label:has(input:checked) { border-color: var(--accent); background: rgba(59,130,246,.12); }
.providers small { grid-column: 2; color: var(--muted); font-size: 12px; }
.presets { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.test-out { font-size: 13px; white-space: pre-wrap; max-height: 140px; overflow: auto; }
.test-out.ok { color: var(--good); }
.test-out.err { color: var(--bad); }

/* ---------------------------------------------------- journal papier */
.newspaper {
  width: min(640px, 100%);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 2px, transparent 2px 4px),
    #efe6cf;
  color: #1b1b1b;
  padding: 22px 28px 24px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: rotate(-0.6deg);
  animation: drop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes drop { from { transform: rotate(-8deg) scale(1.3); opacity: 0; } to { transform: rotate(-0.6deg) scale(1); opacity: 1; } }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mh-title { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 34px; text-align: center; flex: 1; }
.mh-side { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; width: 110px; }
.mh-side.right { text-align: right; }
.mh-rule { border-top: 3px double #1b1b1b; border-bottom: 1px solid #1b1b1b; height: 5px; margin: 6px 0 12px; }
.n-kicker { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #b91c1c; }
.n-headline { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 30px; line-height: 1.08; margin: 4px 0 10px; }
.n-quote { font-style: italic; font-size: 14px; padding: 8px 10px; border-left: 3px solid #1b1b1b; background: rgba(0,0,0,.04); margin-bottom: 10px; }
.n-quote b { font-style: normal; }
.n-story { font-family: Georgia, serif; font-size: 16.5px; line-height: 1.5; margin: 0 0 14px; }
.n-story::first-letter { font-family: "Playfair Display", serif; font-size: 44px; float: left; line-height: .9; padding-right: 6px; font-weight: 900; }
.n-effects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.eff { font-weight: 900; font-size: 14px; padding: 5px 10px; border-radius: 4px; border: 2px solid currentColor; }
.eff.up { color: #15803d; }
.eff.down { color: #b91c1c; }
.eff.flat { color: #555; }
.n-extra { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.n-extra div { margin: 3px 0; }
.n-extra .dead { color: #b91c1c; font-weight: 900; font-size: 18px; text-transform: uppercase; }
.newspaper .btn { float: right; }
.newspaper::after { content: ""; display: block; clear: both; }

/* ---------------------------------------------------- fin */
.gameover-modal { text-align: center; width: min(520px, 100%); }
.go-crown { font-size: 64px; animation: bounce 1s infinite alternate; }
@keyframes bounce { to { transform: translateY(-8px) rotate(6deg); } }
#goRank { text-align: left; margin: 10px auto 20px; max-width: 360px; line-height: 1.8; font-weight: 600; }

/* ---------------------------------------------------- toast */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  background: #7c2d12; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50;
  font-weight: 700; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: 90vw;
}

@media (max-width: 900px) {
  #log { display: none !important; }
  #leaderboard { min-width: 0; top: auto; bottom: auto; top: 60px; font-size: 12px; }
  .turn-stats { display: none; }
  .player-row { grid-template-columns: 50px 30px 1fr 26px; }
}

/* ---------------------------------------------------- v2 : chrono, danger, vote, courbes, trophées */
.timer { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold); padding: 4px 10px; border-radius: 999px; background: rgba(250,204,21,.1); }
.timer.urgent { color: #fff; background: #b91c1c; animation: pulse .6s infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.stat.danger .val { color: var(--bad); animation: pulse .7s infinite alternate; }
.question.last-chance { background: rgba(185, 28, 28, .18); border-left-color: var(--bad); }
.lc-badge { font-size: 11px; font-weight: 900; color: #fff; background: #b91c1c; padding: 2px 8px; border-radius: 999px; vertical-align: middle; animation: pulse .7s infinite alternate; }
.toast.info { background: #1e3a5f; }
.options { display: grid; gap: 6px; margin-bottom: 6px; }
.options select { width: auto; padding: 4px 8px; font-size: 13px; margin-left: 4px; }

.n-extra .saved { color: #15803d; font-weight: 900; font-size: 16px; }
.n-extra .lastchance { color: #9a3412; font-weight: 900; font-size: 15px; background: rgba(234, 88, 12, .12); padding: 6px 8px; border-radius: 4px; }

.vote-modal { width: min(900px, 100%); }
.vote-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.vote-card {
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  transition: transform .1s, border-color .15s, background .15s;
}
.vote-card:not([disabled]):hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(250,204,21,.08); }
.vote-card[disabled] { cursor: default; opacity: .55; }
.vc-head { font-weight: 900; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.vc-head i, .award i, .chart-legend i, .chart-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.vc-votes { margin-left: auto; color: var(--gold); font-size: 13px; }
.vc-q { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.vc-a { font-style: italic; font-size: 15px; margin-bottom: 6px; }
.vc-t { font-size: 12px; font-weight: 800; color: var(--gold); text-transform: uppercase; }
.vote-result { margin-top: 14px; font-size: 16px; text-align: center; }

.gameover-modal { width: min(980px, 100%); text-align: left; }
.gameover-modal .go-crown, .gameover-modal h1, .gameover-modal > .sub { text-align: center; }
.go-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; margin: 6px 0 16px; }
.go-cols ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.go-cols small { color: var(--muted); }
.awards { display: grid; gap: 8px; }
.award { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.aw-ic { font-size: 26px; }
.aw-t { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.aw-p { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.aw-w { color: var(--muted); font-size: 12.5px; }

.stats-modal { width: min(1100px, 100%); }
.charts { position: relative; }
.chart-empty { color: var(--muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend span.dead { color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.chart { position: relative; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px 2px; }
.chart-title { font-weight: 800; font-size: 13px; margin-bottom: 2px; }
.chart-title small { color: var(--muted); font-weight: 600; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: Overpass, Arial, sans-serif; }
.chart .death { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 4 3; opacity: .8; }
.chart .death-lbl { fill: var(--bad); font-size: 9.5px; font-weight: 700; font-family: Overpass, Arial, sans-serif; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { stroke: #161b26; stroke-width: 2; }
.chart .end-dead { fill: var(--bad); font-size: 12px; font-weight: 900; }
.chart .end-lbl { font-size: 11px; }
.chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .cross.hidden { display: none; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute; top: 30px; z-index: 3; pointer-events: none; min-width: 150px;
  background: #0b0f17; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.chart-tip div { display: flex; align-items: center; gap: 6px; }
.chart-tip span { margin-left: auto; padding-left: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }

.map-tip {
  position: fixed; z-index: 7; pointer-events: none; max-width: 280px;
  background: rgba(11,15,23,.94); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.45;
}
.map-tip b { font-size: 14px; }

@media (max-width: 700px) {
  .go-cols { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- v3 : icônes, drapeaux, coups bas, photo de presse */
.ico { display: inline-block; vertical-align: -3px; flex: none; }
.btn .ico, .icon-btn .ico { vertical-align: -3px; }
.icon-btn { display: inline-grid; place-items: center; }
.btn.attack { background: #7f1d1d; border-color: #b91c1c; }
.btn.attack:hover:not(:disabled) { background: #991b1b; }
svg.flag { display: inline-block; vertical-align: middle; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lb-flag svg.flag { width: 21px; height: 14px; }
.crown-ic { color: var(--gold); }
.dead-ic { color: var(--bad); }
#log li svg.flag { width: 18px; height: 12px; margin-right: 2px; }
.turn-flag { width: auto; height: auto; background: none !important; }
.turn-flag svg.flag { box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.flag-btn { padding: 0; border: 1px solid var(--line); background: none; border-radius: 4px; cursor: pointer; line-height: 0; }
.flag-btn:hover { outline: 2px solid var(--gold); }
.player-row { grid-template-columns: 56px 34px 1fr 30px; }

.n-photo { position: relative; margin: 0 0 12px; border: 1px solid #1b1b1b; background: #555; }
.n-photo img { display: block; width: 100%; height: 150px; object-fit: cover; }
.n-photo figcaption { font-family: Georgia, serif; font-style: italic; font-size: 11.5px; padding: 3px 6px; background: #efe6cf; border-top: 1px solid #1b1b1b; }
.n-photo-ico { position: absolute; top: 8px; right: 10px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.n-photo-ico:empty { display: none; }
.n-extra div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.attack-modal { width: min(860px, 100%); }
.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tgt, .atk {
  display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  transition: border-color .15s, background .15s, transform .1s;
}
.tgt span { display: flex; flex-direction: column; gap: 2px; }
.tgt small { color: var(--muted); font-size: 11.5px; }
.tgt:hover, .atk:hover:not([disabled]) { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.tgt.sel, .atk.sel { border-color: var(--bad); background: rgba(248,113,113,.12); }
.atks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.atk { align-items: flex-start; }
.atk[disabled] { opacity: .45; cursor: default; }
.atk-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(248,113,113,.15); color: #fca5a5; flex: none; }
.atk-b p { margin: 2px 0 4px; color: var(--muted); font-size: 12.5px; }
.atk-eff { font-size: 12px; font-weight: 700; color: #fca5a5; }
.atk-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 4px; }
.atk-meta .cd { color: var(--gold); }

.flag-modal { width: min(620px, 100%); }
.fe-grid { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.fe-preview svg { width: 240px; height: 160px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fe-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.fe-row > span { width: 64px; flex: none; }
.sws { display: flex; flex-wrap: wrap; gap: 3px; }
.sw { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.sw.sel { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (max-width: 640px) { .fe-grid { grid-template-columns: 1fr; } }
.overlay { grid-template-columns: minmax(0, 1fr); justify-items: center; }

/* ------------------------------------------------------------ mode en ligne */
.foot-left { display: flex; gap: 8px; flex-wrap: wrap; }
.online-modal { width: min(640px, 100%); }
.ol-badge { font-size: 13px; font-weight: 800; color: var(--gold); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; vertical-align: middle; letter-spacing: .04em; }
.player-row.ol-me { grid-template-columns: 56px 34px 1fr; margin-bottom: 12px; }
.ol-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ol-or { color: var(--muted); }
.ol-code-input { width: 120px; text-transform: uppercase; font-weight: 900; letter-spacing: .25em; text-align: center; font-size: 18px; }
.ol-codebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.06); }
.ol-codebox b { font-size: 30px; letter-spacing: .3em; color: var(--gold); font-weight: 900; }
.ol-players { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ol-players li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.ol-players li.me { outline: 1px solid rgba(255,255,255,.25); }
.ol-players .st { margin-left: auto; font-size: 12px; color: var(--muted); }
.ol-players .on { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; display: inline-block; }
.ol-players .off { background: #f87171; }
.ol-players .swatch { width: 12px; height: 12px; border-radius: 3px; }
#placeBanner.ol-watch { flex-direction: column; align-items: flex-start; gap: 4px; max-width: min(720px, calc(100vw - 32px)); }
#placeBanner .ol-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#placeBanner .ol-q { font-size: 13px; color: var(--muted); font-style: italic; }
#placeBanner .ol-timer { font-weight: 800; color: var(--gold); }
#placeBanner .ol-off { color: var(--bad); font-size: 12px; }
.n-wait { margin-top: 8px; font-size: 12px; color: #555; text-align: center; }

/* coup bas libre */
#aText { margin-bottom: 8px; font-size: 16px; }
.atk-ideas { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.atk-ideas > span { flex: none; padding-top: 5px; }
#aIdeas { display: flex; flex-wrap: wrap; gap: 6px; }
