/* Carte du Survie (/carte/) */
body.page-carte { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.page-carte .entete { position: relative; flex: none; }
.carte-zone { position: relative; flex: 1; min-height: 0; background: #1c1b26; }
#carte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#carte.glisse { cursor: grabbing; }

.carte-panneau {
  position: absolute; top: 16px; left: 16px; width: 260px; max-height: calc(100% - 32px); overflow: auto;
  background: rgba(23, 18, 58, .92); border: 1px solid var(--bord); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--ombre); backdrop-filter: blur(6px);
}
.carte-panneau h1 { font-size: 18px; margin: 0 0 4px; font-weight: 900; }
.carte-panneau h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin: 14px 0 6px; }
.carte-etat { margin: 0; font-size: 14px; color: var(--doux); display: flex; align-items: center; gap: 8px; }
.pastille { width: 9px; height: 9px; border-radius: 50%; background: #888; flex: none; }
.carte-etat.ok .pastille { background: var(--vert); box-shadow: 0 0 8px var(--vert); }
.carte-etat.ko .pastille { background: var(--rouge); }
#joueurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#joueurs li.vide { color: var(--doux); font-size: 14px; }
#joueurs button {
  width: 100%; display: flex; align-items: center; gap: 10px; background: var(--carte); color: var(--texte);
  border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
#joueurs button:hover, #joueurs button.suivi { border-color: var(--or); }
#joueurs img { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
#joueurs small { margin-left: auto; color: var(--doux); font-size: 12px; font-variant-numeric: tabular-nums; }
.carte-note { margin: 12px 0 0; font-size: 12px; color: var(--doux); }

.carte-outils { position: absolute; top: 16px; right: 16px; display: grid; gap: 8px; }
.carte-outils button {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bord); background: rgba(23, 18, 58, .92);
  color: var(--texte); font-size: 22px; font-weight: 700; cursor: pointer; box-shadow: var(--ombre); line-height: 1;
}
.carte-outils button:hover { border-color: var(--or); color: var(--or-2); }
#liste { display: none; }
.carte-coords {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(23, 18, 58, .88);
  border: 1px solid var(--bord); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap;
}

@media (max-width: 720px) {
  .carte-panneau { top: auto; bottom: 56px; left: 12px; right: 12px; width: auto; max-height: 45%; display: none; }
  .carte-panneau.ouvert { display: block; }
  .carte-outils { top: 12px; right: 12px; }
  #liste { display: block; }
}
