/* ════════════════════════════════════════════════════════════════
   battlemap.css — VTT Carte de donjon
   Utilise les variables CSS de app.css (--bg-void, --gold, etc.)
   Scoped : #bm-root (GM) et #bmp-root (joueur)
   ════════════════════════════════════════════════════════════════ */

/* ── Reset de page ─────────────────────────────────────────────── */
html, body {
    margin: 0; padding: 0; height: 100%;
    background: var(--bg-void);
    color: var(--text-parchment);
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   TOPBAR GM
   ════════════════════════════════════════════════════════════════ */
#bm-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 48px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-gold);
    display: flex; align-items: center; gap: 6px;
    padding: 0 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

#bm-topbar .bm-logo {
    font-size: 20px; line-height: 1; margin-right: 2px;
}
#bm-topbar .bm-title {
    font-weight: 600; font-size: 14px; color: var(--gold);
    white-space: nowrap; margin-right: 6px;
    font-family: 'Cinzel', Georgia, serif;
}

.bm-sep { width: 1px; height: 26px; background: var(--border-gold); margin: 0 3px; flex-shrink: 0; }

/* Bouton retour : flèche seule, tout à gauche (comme le hub / outils MJ) */
.bm-back {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0;
    border: 1px solid var(--border-dark); background: transparent;
    color: var(--text-muted); cursor: pointer; font-size: 16px;
    margin-right: 4px; transition: background .12s, border-color .12s, color .12s;
}
.bm-back:hover { border-color: var(--gold-dark); color: var(--gold); background: rgba(201,168,76,.1); }

/* Boutons topbar */
.bm-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 6px; border: 1px solid transparent;
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 12px; white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
    user-select: none;
}
.bm-btn:hover { background: var(--bg-hover); border-color: var(--border-dark); color: var(--text-parchment); }
.bm-btn.active { background: var(--bg-card); border-color: var(--gold-dark); color: var(--gold-light); }
.bm-btn.danger:hover { background: rgba(180,60,40,.18); border-color: rgba(180,60,40,.5); color: #f08070; }

.bm-tool-group { display: flex; gap: 3px; align-items: center; }

/* Indicateur sync */
#bm-sync-status {
    margin-left: auto; font-size: 11px; color: var(--text-dim);
    display: flex; align-items: center; gap: 5px;
}
#bm-sync-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--border-dark); transition: background .3s;
}
#bm-sync-dot.ok  { background: #4caf50; }
#bm-sync-dot.err { background: #f44336; }

/* ════════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ════════════════════════════════════════════════════════════════ */
#bm-root {
    display: flex; height: 100%;
    padding-top: 48px;
    box-sizing: border-box;
}

/* ── Sidebar gauche ─────────────────────────────────────────────── */
#bm-sidebar {
    width: 210px; flex-shrink: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-gold);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: width .2s;
}
#bm-sidebar.collapsed { width: 0; border-right: none; }

#bm-sidebar-header {
    padding: 9px 12px 7px;
    border-bottom: 1px solid var(--border-dark);
    display: flex; align-items: center; gap: 6px;
}
#bm-sidebar-header span {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .06em; flex: 1;
}

#bm-map-list { flex: 1; overflow-y: auto; padding: 5px 0; }

.bm-map-item {
    padding: 8px 12px; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
    border-left: 3px solid transparent;
    transition: background .1s, border-color .1s;
    color: var(--text-muted);
}
.bm-map-item:hover  { background: var(--bg-hover); }
.bm-map-item.active { background: var(--bg-card); border-left-color: var(--gold); color: var(--text-parchment); }
.bm-map-item .bm-map-icon  { font-size: 16px; flex-shrink: 0; }
.bm-map-item .bm-map-info  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bm-map-item .bm-map-name  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-map-item .bm-map-camp  { font-size: 10px; color: var(--gold-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.bm-map-item .bm-map-rename { opacity: 0; color: var(--text-muted); font-size: 13px; padding: 0 2px; transition: opacity .15s; flex-shrink: 0; cursor: pointer; }
.bm-map-item .bm-map-del    { opacity: 0; color: #f08070; font-size: 14px; padding: 0 2px; transition: opacity .15s; flex-shrink: 0; cursor: pointer; }
.bm-map-item:hover .bm-map-rename,
.bm-map-item:hover .bm-map-del { opacity: 1; }
.bm-map-empty { padding: 16px 12px; font-size: 12px; color: var(--text-dim, var(--text-muted)); text-align: center; font-style: italic; }

/* ── Canvas central ─────────────────────────────────────────────── */
#bm-canvas-area {
    flex: 1; position: relative; overflow: hidden;
    background: #0a0a0e;            /* Toujours sombre — c'est la table de jeu */
    display: flex; align-items: center; justify-content: center;
}

#bm-empty-state {
    text-align: center; color: #444;
    pointer-events: none; user-select: none;
}
#bm-empty-state .bm-empty-icon { font-size: 56px; margin-bottom: 12px; }
#bm-empty-state p { font-size: 15px; margin: 4px 0; color: #555; }
#bm-empty-state small { font-size: 12px; color: #333; }

/* Container pan/zoom */
#bm-stage-wrap {
    position: absolute; top: 0; left: 0;
    transform-origin: 0 0;
    will-change: transform;
}
#bm-bg-img   { display: block; max-width: none; user-select: none; pointer-events: none; -webkit-user-drag: none; }
#bm-fog-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
#bm-grid-svg   { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }

/* Curseur brosse */
/* Cercle EXTÉRIEUR = limite de la douceur (pointillé discret) */
#bm-brush-cursor {
    position: fixed; pointer-events: none; z-index: 200;
    border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.5);
    transform: translate(-50%, -50%);
    display: none;
}
/* Cercle INTÉRIEUR plein = la Taille (zone 100 % révélée) */
#bm-brush-cursor-inner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%; box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.75);
    display: none;
}

/* Bascule Mode de jeu (Local / Distant) */
.bm-syncmode { display: flex; gap: 6px; }
.bm-syncmode-btn {
    flex: 1; justify-content: center;
    border: 1px solid var(--border-dark);
    background: var(--bg-card); color: var(--text-muted);
}
.bm-syncmode-btn.active { background: var(--bg-hover); border-color: var(--gold-dark); color: var(--gold-light); }

/* Boutons Révéler/Cacher dans le panneau brosse */
.bm-brush-modes { display: flex; gap: 6px; margin-bottom: 10px; }
.bm-brush-mode {
    flex: 1; justify-content: center;
    border: 1px solid var(--border-dark);
    background: var(--bg-card); color: var(--text-muted);
}
.bm-brush-mode.active { background: var(--bg-hover); border-color: var(--gold-dark); color: var(--gold-light); }

/* ── Panneau droite (paramètres) ────────────────────────────────── */
#bm-settings {
    width: 280px; flex-shrink: 0;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-gold);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: width .2s;
}
#bm-settings.collapsed { width: 0; border-left: none; }
#bm-settings-inner { flex: 1; overflow-y: auto; padding: 12px 14px; }

/* Sections */
.bm-panel-section { margin-bottom: 18px; }
.bm-panel-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--gold-dark); margin-bottom: 9px;
    border-bottom: 1px solid var(--border-dark); padding-bottom: 4px;
}

/* Champs de formulaire */
.bm-field {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center; gap: 6px;
    margin-bottom: 7px; font-size: 12px; color: var(--text-muted);
}
.bm-field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-field input[type=range] { width: 100%; accent-color: var(--gold); min-width: 0; }
.bm-field input[type=number] {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border-dark);
    color: var(--text-parchment); border-radius: 4px; padding: 3px 5px; font-size: 12px;
    text-align: right; min-width: 0;
}
.bm-field input[type=color] {
    width: 28px; height: 22px; border-radius: 4px; border: 1px solid var(--border-dark);
    background: none; cursor: pointer; padding: 1px;
}
.bm-field select {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border-dark);
    color: var(--text-parchment); border-radius: 4px; padding: 3px 5px; font-size: 12px; min-width: 0;
}
/* Champs où la 2e colonne doit s'étirer sur 2 colonnes (ex: select, number) */
.bm-field.span2 { grid-template-columns: 90px 1fr; }
.bm-field.span2 > :nth-child(2) { grid-column: 2 / 4; }

.bm-val {
    width: 34px; text-align: right; font-size: 11px;
    color: var(--text-muted); flex-shrink: 0; white-space: nowrap;
}

/* Toggle switch */
.bm-toggle { position: relative; width: 34px; height: 18px; cursor: pointer; flex-shrink: 0; }
.bm-toggle input { opacity: 0; width: 0; height: 0; }
.bm-toggle-slider {
    position: absolute; inset: 0;
    background: var(--border-dark); border-radius: 10px;
    transition: background .2s;
}
.bm-toggle-slider::before {
    content: ''; position: absolute; width: 12px; height: 12px;
    left: 3px; top: 3px; background: var(--text-dim); border-radius: 50%;
    transition: transform .2s, background .2s;
}
.bm-toggle input:checked + .bm-toggle-slider { background: var(--gold-dark); }
.bm-toggle input:checked + .bm-toggle-slider::before { transform: translateX(16px); background: var(--gold); }

/* Bouton pleine largeur */
.bm-fullbtn {
    width: 100%; padding: 7px 10px; border-radius: 6px;
    border: 1px solid var(--border-dark); background: var(--bg-card);
    color: var(--text-muted); font-size: 12px; cursor: pointer;
    text-align: center; transition: background .12s, border-color .12s, color .12s;
    margin-bottom: 6px;
}
.bm-fullbtn:hover { background: var(--bg-hover); border-color: var(--border-gold); color: var(--text-parchment); }
.bm-fullbtn.primary { border-color: var(--gold-dark); color: var(--gold-light); }
.bm-fullbtn.primary:hover { background: var(--bg-hover); }
.bm-fullbtn.danger { border-color: rgba(180,60,40,.3); color: #f08070; }
.bm-fullbtn.danger:hover { background: rgba(180,60,40,.12); }

/* ════════════════════════════════════════════════════════════════
   MODALES
   ════════════════════════════════════════════════════════════════ */
.bm-modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.72);
    display: flex; align-items: center; justify-content: center;
}
.bm-modal {
    background: var(--bg-panel); border: 1px solid var(--border-gold); border-radius: 10px;
    padding: 24px; width: 360px; max-width: 94vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.bm-modal h3 { margin: 0 0 16px; font-size: 16px; color: var(--gold); font-family: 'Cinzel', Georgia, serif; }
.bm-modal label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; margin-top: 10px; }
.bm-modal input[type=text], .bm-modal textarea, .bm-modal select {
    width: 100%; box-sizing: border-box;
    background: var(--bg-card); border: 1px solid var(--border-dark);
    color: var(--text-parchment); border-radius: 6px; padding: 7px 10px; font-size: 13px;
}
.bm-modal textarea { resize: vertical; min-height: 60px; }
.bm-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.bm-modal-actions .bm-btn-cancel {
    padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border-dark);
    background: transparent; color: var(--text-muted); cursor: pointer; font-size: 13px;
}
.bm-modal-actions .bm-btn-ok {
    padding: 6px 18px; border-radius: 6px; border: 1px solid var(--gold-dark);
    background: var(--bg-card); color: var(--gold-light); cursor: pointer;
    font-size: 13px; font-weight: 600;
}
.bm-modal-actions .bm-btn-ok:hover { background: var(--bg-hover); border-color: var(--gold); }
.bm-modal-actions .bm-btn-ok.danger { border-color: #c0392b; color: #f08070; }
.bm-modal-actions .bm-btn-ok.danger:hover { background: rgba(192,57,43,.15); border-color: #f08070; }

/* Drop zone */
#bm-drop-zone {
    border: 2px dashed var(--border-gold); border-radius: 8px;
    padding: 24px 16px; text-align: center; cursor: pointer;
    color: var(--text-dim); font-size: 13px;
    transition: border-color .15s, background .15s;
    margin-top: 10px;
}
#bm-drop-zone:hover, #bm-drop-zone.drag-over {
    border-color: var(--gold); background: var(--gold-glow); color: var(--gold-light);
}
#bm-drop-zone .bm-drop-icon { font-size: 32px; margin-bottom: 6px; }

/* Lien joueur */
#bm-share-url-box { display: flex; gap: 6px; margin-top: 8px; }
#bm-share-url-box input {
    flex: 1; background: var(--bg-card); border: 1px solid var(--border-dark);
    color: var(--text-parchment); border-radius: 6px; padding: 6px 10px; font-size: 12px;
}
#bm-share-copy-btn {
    padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border-dark);
    background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-size: 12px; white-space: nowrap;
}
#bm-share-copy-btn:hover { background: var(--bg-hover); color: var(--text-parchment); }

/* Footer */
.app-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    text-align: center; font-size: 10px; color: var(--text-dim);
    padding: 3px 0; pointer-events: none; z-index: 10;
    background: transparent;
}

/* ════════════════════════════════════════════════════════════════
   TOKENS — Phase 2
   ════════════════════════════════════════════════════════════════ */
.bm-token {
    position: absolute; border-radius: 50%; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; user-select: none;
    transition: box-shadow .1s;
    transform-origin: top left;
}
.bm-token:hover { z-index: 50; }
.bm-tok-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); z-index: 60; }
.bm-tok-dragging { opacity: .75; z-index: 80; transition: none; }
.bm-tok-hidden   { opacity: .45; }

.bm-tok-pj      { border: 4px solid #2ecc71; background: rgba(46,204,113,.18); }
.bm-tok-pnj     { border: 4px solid #3498db; background: rgba(52,152,219,.18); }
.bm-tok-monstre { border: 4px solid #e74c3c; background: rgba(231,76,60,.18); }

.bm-tok-body {
    width: 100%; flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: clamp(12px, 40%, 48px); border-radius: 50%; overflow: hidden;
}
.bm-tok-hp-wrap {
    position: absolute; bottom: -10px; left: 8%; width: 84%; height: 8px;
    background: rgba(0,0,0,.5); border-radius: 4px; overflow: hidden;
}
.bm-tok-hp-bar { height: 100%; border-radius: 4px; transition: width .3s, background .3s; }
.bm-tok-name {
    position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
    font-size: 13px; font-weight: 600; white-space: nowrap; color: #fff;
    text-shadow: 0 1px 4px #000, 0 0 8px #000; pointer-events: none;
    background: rgba(0,0,0,.65); border-radius: 4px; padding: 2px 6px;
}
.bm-tok-conditions {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 3px; font-size: 22px; pointer-events: none;
    white-space: nowrap; filter: drop-shadow(0 1px 3px #000);
}

/* Token mode cursor */
#bm-canvas-area.bm-token-mode { cursor: crosshair; }

/* Token panel */
#bm-token-panel {
    position: fixed; right: 0; top: 48px; bottom: 0; width: 230px;
    background: var(--bg-panel); border-left: 1px solid var(--border-gold);
    z-index: 30; overflow-y: auto; padding: 0;
    box-shadow: -3px 0 12px rgba(0,0,0,.4);
}
#bm-token-panel-inner { padding: 0 0 20px; }
.bm-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-bottom: 1px solid var(--border-dark);
    font-weight: 600; font-size: 13px; color: var(--gold);
    font-family: 'Cinzel', Georgia, serif; position: sticky; top: 0;
    background: var(--bg-panel); z-index: 1;
}
.bm-panel-close {
    background: transparent; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 16px; padding: 0 4px; line-height: 1;
}
.bm-panel-close:hover { color: var(--text-parchment); }
.bm-tp-row {
    display: flex; align-items: center; gap: 6px; padding: 4px 12px; flex-wrap: wrap;
    font-size: 12px;
}
.bm-tp-row label { color: var(--text-muted); font-size: 11px; width: 60px; flex-shrink: 0; }
.bm-tp-row input[type="text"], .bm-tp-row input[type="number"], .bm-tp-row select {
    background: var(--bg-card); color: var(--text-parchment);
    border: 1px solid var(--border-dark); border-radius: 4px;
    padding: 4px 6px; font-size: 12px;
}
.bm-tp-row input[type="text"], .bm-tp-row select { flex: 1; min-width: 0; }
.bm-tp-row input[type="number"] { width: 46px; }
.bm-tp-section-label {
    padding: 6px 12px 2px; font-size: 10px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted); border-top: 1px solid var(--border-dark); margin-top: 4px;
}

/* Condition picker */
.bm-cond-grid {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 12px;
}
.bm-cond-btn {
    background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 4px;
    cursor: pointer; font-size: 16px; padding: 3px 5px; line-height: 1;
    transition: background .1s, border-color .1s;
}
.bm-cond-btn.active { background: rgba(231,76,60,.35); border-color: #e74c3c; }
.bm-cond-btn:hover { background: var(--bg-hover); }

/* ── Annotation toolbar ─── */
#bm-annot-toolbar {
    position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-panel); border: 1px solid var(--border-gold);
    border-radius: 8px; padding: 6px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.5); z-index: 50;
}
.bm-annot-tool-btn {
    background: transparent; border: 1px solid var(--border-dark);
    color: var(--text-muted); cursor: pointer; border-radius: 5px;
    padding: 4px 10px; font-size: 12px; transition: background .1s, color .1s;
}
.bm-annot-tool-btn:hover  { background: var(--bg-hover); color: var(--text-parchment); }
.bm-annot-tool-btn.active { background: var(--bg-card); border-color: var(--gold-dark); color: var(--gold-light); }
.bm-annot-sep { width: 1px; height: 20px; background: var(--border-dark); margin: 0 2px; }
.bm-annot-grouplbl { font-size: 11px; color: var(--text-muted); font-style: italic; align-self: center; margin: 0 2px; white-space: nowrap; }
#bm-annot-color-pick { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--border-dark); cursor: pointer; padding: 1px; background: none; }

/* ── Annotation panel ─── */
#bm-annot-panel {
    position: fixed; right: 0; top: 48px; bottom: 0; width: 210px;
    background: var(--bg-panel); border-left: 1px solid var(--border-gold);
    z-index: 30; overflow-y: auto;
    box-shadow: -3px 0 12px rgba(0,0,0,.4);
}
#bm-annot-panel-inner { padding: 0 0 20px; }

/* Annotation canvas mode */
#bm-canvas-area.bm-annot-mode { cursor: crosshair; }

/* ── Monster picker ─── */
.bm-modal-wide { width: min(480px, 90vw) !important; }
#bm-monster-search {
    margin: 8px 0; background: var(--bg-card); color: var(--text-parchment);
    border: 1px solid var(--border-dark); border-radius: 6px; padding: 7px 10px; font-size: 13px;
}
#bm-monster-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border-dark); border-radius: 6px; margin: 4px 0; }
.bm-monster-row {
    display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer;
    border-bottom: 1px solid var(--border-dark); font-size: 13px;
    transition: background .1s;
}
.bm-monster-row:last-child { border-bottom: none; }
.bm-monster-row:hover { background: var(--bg-hover); }
.bm-mon-icon  { font-size: 18px; flex-shrink: 0; }
.bm-mon-name  { flex: 1; color: var(--text-parchment); }
.bm-mon-cr    { color: var(--gold-dark); font-size: 11px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   VUE JOUEUR (battlemap_player.html)
   ════════════════════════════════════════════════════════════════ */
#bmp-root {
    width: 100vw; height: 100vh;
    background: #0a0a0e;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
#bmp-stage-wrap  { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
#bmp-bg-img      { display: block; max-width: none; user-select: none; pointer-events: none; -webkit-user-drag: none; }
#bmp-fog-canvas  { position: absolute; top: 0; left: 0; pointer-events: none; }
#bmp-grid-svg    { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }

#bmp-loading {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #0a0a0e; color: #555; font-size: 15px; gap: 16px; z-index: 10;
}
#bmp-loading .bmp-spinner {
    width: 36px; height: 36px;
    border: 3px solid #222; border-top-color: #8a6a2a;
    border-radius: 50%; animation: bm-spin .8s linear infinite;
}

@keyframes bm-spin { to { transform: rotate(360deg); } }

#bmp-status {
    position: fixed; bottom: 10px; right: 14px;
    font-size: 10px; color: #333; display: flex; align-items: center; gap: 5px;
    pointer-events: none;
}
#bmp-sync-dot { width: 5px; height: 5px; border-radius: 50%; background: #333; transition: background .5s; }
#bmp-sync-dot.ok { background: #2d6e30; }

/* ── Token layer (vue joueur) ──────────────────────────────────── */
#bmp-token-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#bmp-annot-layer { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
#bmp-bg-video { display: block; max-width: none; user-select: none; pointer-events: none; position: absolute; top: 0; left: 0; }

/* ── Scrollbar dorée (cohérence app) ───────────────────────────── */
#bm-settings-inner::-webkit-scrollbar { width: 5px; }
#bm-settings-inner::-webkit-scrollbar-track { background: transparent; }
#bm-settings-inner::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
#bm-map-list::-webkit-scrollbar { width: 4px; }
#bm-map-list::-webkit-scrollbar-track { background: transparent; }
#bm-map-list::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
