/* =========================================================
   v0.101 : LES MARCHES DU VELM — écran sombre à filet doré (texture A), commun aux deux styles d'interface
   ========================================================= */
#velm { max-width: 1520px; --vg1: #c9a55a; --vg2: #e8c77a; --vg3: #5a4a2c; --vink: #efe6d2; --vmute: #a99f8a; --vgreen: #6fe0a8; --vred: #e0705a;
  background: radial-gradient(ellipse at 50% 110%, rgba(122, 42, 20, .35), transparent 55%), linear-gradient(180deg, #0b0f0e, #07090a); color: var(--vink);
  font-family: 'IM Fell English', serif; }
#velm .topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #0b0f0e; clip-path: none; padding: 8px 14px; border-bottom: 1px solid var(--vg3); }
#velm .topbar .back { background: #0b0f0e; color: var(--vink); border: 1px solid var(--vg1); border-radius: 2px; font-family: 'IM Fell English SC', serif; font-weight: 400; }
#velm .zone-name { font-family: 'UnifrakturCook', serif; font-size: 30px; color: var(--vg2); letter-spacing: 0; text-shadow: 0 2px 4px #000; }
.vm-ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; flex: none; }
/* difficultés */
.vm-dif { display: flex; margin-left: auto; box-shadow: 0 0 0 1px var(--vg1), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg3); }
.vm-dif button { border: 0; height: 38px; padding: 0 16px; font-family: 'IM Fell English SC', serif; font-size: 17px; color: var(--vmute); background: #0b0f0e; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.vm-dif button.on { color: #f4e2b0; background: radial-gradient(ellipse, rgba(111, 224, 168, .22), transparent 75%), #0f1512; box-shadow: inset 0 0 14px rgba(111, 224, 168, .35); }
.vm-dif button.red { color: #c08a78; }
.vm-dif button:disabled { cursor: default; opacity: .7; }
/* panneaux */
.vm-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; padding: 18px 18px 10px; align-items: start; }
.vm-pa { position: relative; border-radius: 2px; padding: 16px 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 165, 90, .10), transparent 60%), linear-gradient(180deg, rgba(18, 23, 22, .96), rgba(10, 13, 13, .97));
  box-shadow: 0 0 0 1px var(--vg1), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg3), 0 14px 34px rgba(0, 0, 0, .7); }
.vm-pa::before, .vm-pa::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--vg1); box-shadow: 0 0 0 2px #0b0f0e; z-index: 2; }
.vm-pa::after { top: auto; bottom: -6px; }
.vm-hr { height: 9px; margin: 10px -4px; background: linear-gradient(90deg, transparent, rgba(201, 165, 90, .55) 20%, rgba(201, 165, 90, .55) 80%, transparent) 0 50%/100% 1px no-repeat, radial-gradient(circle, var(--vg1) 1.6px, transparent 2.2px) 50% 50%/9px 9px no-repeat; }
/* strates */
.vm-stts { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.vm-stt { flex: none; }
.vm-stt { display: flex; align-items: center; gap: 4px; border: 0; height: 28px; padding: 0 8px; font-family: 'IM Fell English SC', serif; font-size: 13px; color: #cbbfa6; background: rgba(11, 15, 14, .88); box-shadow: inset 0 0 0 1px #3a3020; cursor: pointer; }
.vm-stt.done .vm-ic { color: var(--vgreen); }
.vm-stt.on { color: #12100a; background: linear-gradient(180deg, #f0d9a0, var(--vg1)); box-shadow: 0 0 10px rgba(232, 199, 122, .4); }
.vm-stt:disabled { color: #6a5a3a; cursor: default; }
/* carte en serpentin (repère 1080 × 728) */
.vm-mapbox { container-type: inline-size; }
.vm-map { position: relative; width: 100%; aspect-ratio: 1080 / 728; margin-top: 10px;
  background: radial-gradient(ellipse at 50% 105%, rgba(122, 42, 20, .55), rgba(42, 18, 16, .25) 45%, transparent 75%),
    linear-gradient(90deg, #0d1110 0 8%, transparent 14% 86%, #0d1110 92%); }
.vm-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.vm-path path { fill: none; stroke: #4a3e26; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.vm-path path.done { stroke: var(--vg1); stroke-width: 4; stroke-dasharray: none; filter: drop-shadow(0 0 3px rgba(232, 199, 122, .5)); }
.vm-nd { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--vink); }
.vm-nm { width: clamp(38px, 6.6cqw, 70px); height: clamp(38px, 6.6cqw, 70px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'IM Fell English SC', serif; font-size: clamp(11px, 1.8cqw, 19px); color: var(--vg2);
  background: radial-gradient(circle at 50% 38%, #232b28, #07090a 75%); box-shadow: 0 0 0 1.5px var(--vg1), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--vg3), 0 10px 20px rgba(0, 0, 0, .8); }
.vm-nu { display: flex; align-items: center; min-height: 14px; }
.vm-nd.lock .vm-nm { color: #6a5a3a; background: radial-gradient(circle, #111514, #050606 75%); box-shadow: 0 0 0 1.5px #3a3020, 0 0 0 5px #0b0f0e, 0 0 0 6px #2a2416; }
.vm-nd.lock .vm-nu { color: #6a5a3a; }
.vm-nd.cur .vm-nm { color: #f4e2b0; background: radial-gradient(circle at 50% 40%, #1e3a2e, #07100c 75%);
  box-shadow: 0 0 0 1.5px var(--vg2), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--vg1), inset 0 0 18px rgba(111, 224, 168, .55), 0 0 26px rgba(111, 224, 168, .45); }
/* v0.102.2 : sélection nette, Marche propre / incomplète */
.vm-nw { position: relative; display: inline-flex; transition: transform .15s; }
.vm-nd.sel .vm-nw, .vm-room.sel .vm-nw { transform: scale(1.12); }
.vm-nd.sel .vm-nm { box-shadow: 0 0 0 3px #6fe0a8, 0 0 0 7px #0b0f0e, 0 0 0 8px rgba(111, 224, 168, .55), 0 0 26px rgba(111, 224, 168, .5); }
.vm-nd.seuil.sel .vm-nm { box-shadow: 0 0 0 3px #6fe0a8, 0 0 0 8px #0b0f0e, 0 0 0 9px rgba(111, 224, 168, .55), 0 0 34px rgba(111, 224, 168, .5); }
.vm-pick { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: 'IM Fell English SC', serif; font-size: clamp(10px, 1.25cqw, 13px); color: #9af0c8; text-shadow: 0 0 6px rgba(111, 224, 168, .6), 0 1px 2px #000; animation: vmPick 1.6s ease-in-out infinite; }
@keyframes vmPick { 50% { transform: translate(-50%, 3px); } }
@media (prefers-reduced-motion: reduce) { .vm-pick { animation: none; } }
.vm-seal { position: absolute; right: -4px; bottom: -4px; width: clamp(15px, 2.2cqw, 22px); height: clamp(15px, 2.2cqw, 22px); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #ffe9a8, #d9b45a 55%, #8a6420); box-shadow: 0 0 0 1.5px #0b0f0e, 0 0 8px rgba(232, 199, 122, .6); }
.vm-seal .vm-ic { width: 66%; height: 66%; stroke: #2a1c05; stroke-width: 3; }
.vm-nd.seuil .vm-seal { right: 4%; bottom: 4%; }
.vm-nd.done.clean:not(.seuil) .vm-nm { box-shadow: 0 0 0 1.5px #f0cf7a, 0 0 0 5px #0b0f0e, 0 0 0 6px #b48a3a, 0 0 14px rgba(232, 199, 122, .35), 0 10px 20px rgba(0, 0, 0, .8); }
.vm-nd.done.part:not(.seuil) .vm-nm { color: #b8a27a; box-shadow: 0 0 0 1.5px #8a7448, 0 0 0 5px #0b0f0e, 0 0 0 6px #3a3020, 0 10px 20px rgba(0, 0, 0, .8); }
.vm-nd.done.part .vm-brs i:not(.on) { background: #0b0f0e; box-shadow: 0 0 0 1.5px #c08a5a; }
.vm-nd.done.clean.sel .vm-nm, .vm-nd.done.part.sel .vm-nm { box-shadow: 0 0 0 3px #6fe0a8, 0 0 0 7px #0b0f0e, 0 0 0 8px rgba(111, 224, 168, .55), 0 0 26px rgba(111, 224, 168, .5); }
/* pastilles d'état (panneau et salles) */
.vm-st { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; border-radius: 10px; font-family: 'IM Fell English SC', serif; font-size: 13px; line-height: 20px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.vm-st .vm-ic { width: 12px; height: 12px; stroke-width: 3; }
.vm-st.ok { color: #9af0c8; background: rgba(63, 138, 98, .18); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .5); }
.vm-st.ok .vm-ic { stroke: #9af0c8; }
.vm-st.gold { color: #f6d98a; background: rgba(217, 180, 90, .16); box-shadow: inset 0 0 0 1px rgba(232, 199, 122, .6); }
.vm-st.part { color: #f0b27a; background: rgba(224, 112, 58, .14); box-shadow: inset 0 0 0 1px rgba(224, 140, 80, .5); }
.vm-st.no { color: #8f8670; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #3a3020; }
.vm-obj li > span:nth-child(2) { flex: 1; }
.vm-obj li.miss > span:nth-child(2) { color: #8f8670; }
.vm-obj .vm-st { font-size: 12px; line-height: 18px; padding: 0 7px; margin-left: auto; }
.vm-obj li { font-size: 14px; line-height: 1.2; }
.vm-nd:hover .vm-nm { filter: brightness(1.2); }
.vm-nd.seuil { flex-direction: row; gap: 12px; }
.vm-nd.seuil .vm-nm { width: clamp(62px, 11cqw, 118px); height: clamp(62px, 11cqw, 118px); overflow: hidden; background: radial-gradient(circle, #3a1610, #0a0504 75%);
  box-shadow: 0 0 0 2px var(--vred), 0 0 0 6px #0b0f0e, 0 0 0 7px var(--vg1), 0 0 34px rgba(224, 112, 90, .45); }
.vm-nd.seuil.lock .vm-nm { filter: grayscale(.7) brightness(.6); }
.vm-face img { image-rendering: pixelated; max-width: 92%; }
.vm-nl { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; }
.vm-nl b { font-weight: 400; font-family: 'IM Fell English SC', serif; font-size: clamp(12px, 1.9cqw, 20px); color: #f0b49a; white-space: nowrap; }
.vm-nl i { font-size: clamp(11px, 1.4cqw, 14px); color: var(--vmute); }
.vm-tag { display: inline-block; padding: 0 9px; border-radius: 10px; font-family: 'IM Fell English SC', serif; font-size: 13px; color: #9af0c8; background: rgba(63, 138, 98, .12); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .45); }
/* braises */
.vm-brs { display: inline-flex; gap: 5px; padding: 0 3px; }
.vm-brs i { width: 10px; height: 10px; transform: rotate(45deg); background: #0b0f0e; box-shadow: 0 0 0 1px var(--vg3); }
.vm-brs i.on { background: radial-gradient(circle at 40% 40%, #ffd38a, #e0703a 60%, #7a2410); box-shadow: 0 0 0 1px var(--vg2), 0 0 7px rgba(240, 140, 60, .7); }
.vm-brs.one i:not(:first-child) { display: none; }
/* pied de carte */
.vm-mapfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.vm-sb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--vmute); }
.vm-sb small { font-style: italic; }
.vm-bar { width: 180px; height: 6px; background: #0b0f0e; box-shadow: inset 0 0 0 1px var(--vg3); }
.vm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fae7c, var(--vgreen)); box-shadow: 0 0 6px var(--vgreen); }
.vm-sb b { font-weight: 400; font-family: 'IM Fell English SC', serif; color: #cbbfa6; }
.vm-chests { display: flex; gap: 8px; }
.vm-chest { display: flex; align-items: center; gap: 6px; border: 0; height: 32px; padding: 0 10px; font-family: 'IM Fell English SC', serif; font-size: 14px; color: #7a7060; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; cursor: pointer; }
.vm-chest b { font-weight: 400; }
.vm-chest.ready { color: #f4e2b0; box-shadow: inset 0 0 0 1px var(--vg2), 0 0 12px rgba(232, 199, 122, .45); animation: vmPulse 1.6s ease-in-out infinite; }
.vm-chest.got { color: var(--vgreen); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .45); }
.vm-chest:disabled { cursor: default; }
@keyframes vmPulse { 50% { box-shadow: inset 0 0 0 1px var(--vg2), 0 0 20px rgba(232, 199, 122, .7); } }
/* panneau de Marche */
.vm-kick { display: flex; justify-content: space-between; align-items: center; font-family: 'IM Fell English SC', serif; font-size: 14px; letter-spacing: .1em; color: var(--vmute); text-transform: uppercase; }
.vm-kick .vm-tag { text-transform: none; letter-spacing: 0; }
.vm-kick { gap: 10px; } .vm-kick .vm-st { flex-shrink: 0; }
.vm-title { margin: 4px 0 0; font-family: 'IM Fell English SC', serif; font-weight: 400; font-size: 28px; color: #f4e2b0; line-height: 1.1; }
.vm-title::first-letter { font-family: 'UnifrakturCook', serif; color: var(--vg2); font-size: 1.25em; }
.vm-flav { margin: 4px 0 0; font-style: italic; font-size: 15px; color: var(--vmute); }
.vm-fiche { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 14px; border: 0; font-family: 'IM Fell English SC', serif; font-size: 15px; color: #f4e2b0; background: #0b0f0e;
  box-shadow: 0 0 0 1px var(--vg1), 0 0 0 3px #0b0f0e, 0 0 0 4px var(--vg3); cursor: pointer; }
.vm-fiche:hover { filter: brightness(1.2); }
.vm-sub { margin: 0 0 8px; font-family: 'IM Fell English SC', serif; font-weight: 400; font-size: 17px; color: var(--vg2); }
.vm-sub small { font-family: 'IM Fell English', serif; font-style: italic; font-size: 14px; color: var(--vmute); }
.vm-hint { margin: 0; font-style: italic; font-size: 14px; color: var(--vmute); }
.vm-laws { display: flex; flex-direction: column; gap: 6px; }
.vm-law { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; background: rgba(11, 15, 14, .82); box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .18); --c: var(--vgreen); }
.vm-law.ban { --c: var(--vred); } .vm-law.aff { --c: #b78ae0; }
.vm-lm { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c); font-size: 18px; background: #07090a; box-shadow: 0 0 0 1.5px var(--c), 0 0 0 4px #0b0f0e; }
.vm-law > span:last-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.vm-law small { font-family: 'IM Fell English SC', serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.vm-law b { font-weight: 400; font-family: 'IM Fell English SC', serif; font-size: 16px; color: #f4e2b0; }
.vm-law i { font-style: normal; font-size: 13.5px; color: #cbbfa6; }
.vm-foes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vm-foe { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 86px; text-align: center; }
.vm-fm { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle, #2a1a14, #07090a 75%); box-shadow: 0 0 0 1.5px #8a3a2a, 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg3); }
.vm-fm img { image-rendering: pixelated; max-width: 90%; max-height: 90%; }
.vm-foe.big .vm-fm { width: 76px; height: 76px; box-shadow: 0 0 0 1.5px var(--vred), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg1), 0 0 16px rgba(224, 112, 90, .35); }
.vm-foe b { font-weight: 400; font-size: 14px; color: #f4e2b0; line-height: 1.1; }
.vm-foe i { font-size: 12px; color: var(--vmute); line-height: 1.15; }
.vm-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.vm-obj, .vm-rw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #d8cdb4; }
.vm-obj li { display: flex; align-items: center; gap: 8px; }
.vm-rw li::before { content: "◆"; color: var(--vg1); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.vm-rw.got { opacity: .55; }
.vm-rw li.ex { color: #f0b49a; font-style: italic; }
.vm-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vm-hf { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1e2624, #07090a 75%); box-shadow: 0 0 0 1.5px var(--vg1), 0 0 0 3px #0b0f0e; }
.vm-hf img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.vm-hf img.sprite, .vm-hf img[class*="spr"] { object-fit: contain; image-rendering: pixelated; }
.vm-hf.out { box-shadow: 0 0 0 1.5px #5a2a20, 0 0 0 3px #0b0f0e; }
.vm-hf.out img { filter: grayscale(1) brightness(.4); }
.vm-hf em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--vred); font-size: 24px; z-index: 1; }
.vm-warn { margin: 8px 0 0; font-size: 13.5px; font-style: italic; color: #e0a08a; }
.vm-go { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.vm-go small { font-size: 13px; font-style: italic; color: var(--vmute); text-align: center; }
.vm-ember { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 62px; border: 0; cursor: pointer;
  font-family: 'IM Fell English SC', serif; font-size: 25px; color: #ffe6c8;
  background: radial-gradient(ellipse at 50% 50%, rgba(240, 110, 60, .34), transparent 70%), linear-gradient(180deg, #2a1410, #120806);
  box-shadow: 0 0 0 1px #f0a070, 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg1), inset 0 0 22px rgba(240, 110, 60, .45), 0 0 22px rgba(240, 110, 60, .3); text-shadow: 0 0 12px rgba(240, 120, 60, .7); }
.vm-ember::before, .vm-ember::after { content: ""; position: absolute; top: calc(50% - 5px); left: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #f0a070; box-shadow: 0 0 0 2px #0b0f0e; }
.vm-ember::after { left: auto; right: -6px; }
.vm-ember:hover:not(:disabled) { filter: brightness(1.15); }
.vm-ember:disabled { cursor: default; filter: grayscale(.8) brightness(.6); }
/* fiche du gardien (fenêtre d'info) */
.vm-sheet h4 { margin: 12px 0 4px; font-family: 'IM Fell English SC', serif; font-weight: 400; font-size: 17px; }
.vm-sheet p, .vm-sheet ul { margin: 0 0 4px; }
.vm-sheet ul { padding-left: 18px; }
.vm-hints li.lk { opacity: .6; font-style: italic; }
/* téléphone */
@media (max-width: 980px) {
  .vm-body { grid-template-columns: 1fr; padding: 12px 10px; gap: 22px; }
  .vm-dif { margin-left: 0; }
  .vm-dif button { padding: 0 10px; font-size: 15px; }
  #velm .zone-name { font-size: 24px; }
  .vm-bar { width: 110px; }
}
@media (max-width: 640px) {
  .vm-map { aspect-ratio: 1080 / 1350; }
  .vm-nd.seuil { flex-direction: column; gap: 4px; }
  .vm-nl { align-items: center; text-align: center; }
}

/* Descente auto (temporaire) */
#velm .vm-auto { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#velm .vm-auto small { opacity: .55; font-size: 11px; }
.vm-autoov { position: fixed; inset: 0; z-index: 900; background: rgba(5,4,3,.6); display: flex; align-items: center; justify-content: center; }
.vm-autoov > div { background: #17120d; border: 1px solid #6b4f2a; border-radius: 10px; padding: 18px 24px; min-width: 280px; text-align: center; color: #e8dcc4; }
.vm-autoov h3 { margin: 0 0 8px; font-family: 'Cinzel', serif; color: #e2b25a; }

/* Salles scellées (niveaux bonus, Marche 5 de chaque strate) */
.vm-path path.room { stroke: #3a3020; stroke-width: 2.5; stroke-dasharray: 1 7; }
.vm-path path.room.open { stroke: #8a7340; }
.vm-room { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--vink); }
.vm-rq { width: clamp(30px, 5cqw, 52px); height: clamp(30px, 5cqw, 52px); transform: rotate(45deg); display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #151a18, #050606 75%); box-shadow: 0 0 0 1.5px #3a3020, 0 0 0 4px #0b0f0e, 0 0 0 5px #2a2416, 0 8px 16px rgba(0, 0, 0, .8); }
.vm-rq .vm-ic { transform: rotate(-45deg); width: 55%; height: 55%; stroke: #6a5a3a; }
.vm-room.open .vm-rq { background: radial-gradient(circle, color-mix(in srgb, var(--ac) 30%, #0b0f0e), #050606 80%);
  box-shadow: 0 0 0 1.5px var(--ac), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg1), 0 0 22px color-mix(in srgb, var(--ac) 55%, transparent); }
.vm-room.open .vm-rq .vm-ic { stroke: var(--ac); }
.vm-room.done .vm-rq { box-shadow: 0 0 0 1.5px var(--vg1), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--vg3); }
.vm-room.done .vm-rq .vm-ic { stroke: var(--vg2); }
.vm-room.sel .vm-rq { box-shadow: 0 0 0 3px #6fe0a8, 0 0 0 7px #0b0f0e, 0 0 0 8px rgba(111, 224, 168, .55), 0 0 24px rgba(111, 224, 168, .5); }
.vm-room .vm-pick { bottom: calc(100% + 16px); }
.vm-room.open:not(.sel) .vm-rq { box-shadow: 0 0 0 2px #e8c77a, 0 0 0 5px #0b0f0e, 0 0 0 6px #b48a3a, 0 0 18px rgba(232, 199, 122, .45); }
.vm-room .vm-seal { right: -9px; bottom: -9px; }
.vm-rl .vm-st { margin-top: 3px; font-size: clamp(9px, 1.15cqw, 12px); line-height: 1.6; padding: 0 7px; }
.vm-room:not(.open):not(.done) .vm-rq { opacity: .55; }
.vm-room:hover .vm-rq { filter: brightness(1.25); }
.vm-rl { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; margin-top: clamp(8px, 1.4cqw, 14px); }
.vm-rl b { font-weight: 400; font-family: 'IM Fell English SC', serif; font-size: clamp(10px, 1.45cqw, 15px); color: var(--vg2); white-space: nowrap; }
.vm-rl em { font-style: normal; font-size: clamp(9px, 1.15cqw, 12px); color: var(--ac); white-space: nowrap; }
.vm-rl i { font-size: clamp(9px, 1.1cqw, 12px); color: var(--vmute); white-space: nowrap; }
.vm-room:not(.open):not(.done) .vm-rl em { opacity: .6; }
@container (max-width: 560px) { .vm-rl em { display: none; } .vm-rl .vm-st { font-size: 9px; padding: 0 4px; margin-top: 1px; } .vm-pick { bottom: calc(100% + 6px); } }
/* v0.102.3 : le style global button:active (scale) écrasait le centrage → le nœud sautait sous le curseur et le clic était perdu */
.vm-nd:active:not(:disabled), .vm-room:active:not(:disabled) { transform: translate(-50%, -50%); }
.vm-nd:active .vm-nw, .vm-room:active .vm-nw { transform: scale(.95); }
.vm-nd.sel:active .vm-nw, .vm-room.sel:active .vm-nw { transform: scale(1.07); }

/* v0.103 : Cordée du Velm (éditeur qui tient compte des Lois et des affinités) */
.vm-allow { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; color: #cbbfa6; }
.vm-allow .vm-ic { width: 14px; height: 14px; stroke: var(--vgreen); stroke-width: 3; }
.vm-allow b { font-weight: 400; font-family: 'IM Fell English SC', serif; color: #9af0c8; }
.vm-allow.some b { color: #f0c58a; }
.vm-allow .fav { color: #9af0c8; }
.vm-cdov { --vg1: #c9a55a; --vg2: #e8c77a; --vg3: #5a4a2c; --vink: #efe6d2; --vmute: #a99f8a; --vgreen: #6fe0a8; --vred: #e0705a;
  position: fixed; inset: 0; z-index: 950; background: rgba(4, 5, 5, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vm-cdov .vm-ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.vm-cd { width: min(880px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; color: var(--vink);
  background: linear-gradient(180deg, #111716, #0a0e0d); box-shadow: 0 0 0 1px var(--vg1), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--vg3), 0 20px 60px rgba(0, 0, 0, .8); }
.vm-cdh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vm-cdh h3 { margin: 0; font-family: 'IM Fell English SC', serif; font-weight: 400; font-size: 22px; color: var(--vg2); }
.vm-cdh small { color: var(--vmute); font-style: italic; font-size: 13px; }
.vm-cdx { border: 0; background: none; color: var(--vmute); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.vm-crs { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-cr { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 11px; font-size: 13px; }
.vm-cr.ban { color: #f0a090; background: rgba(224, 80, 58, .14); box-shadow: inset 0 0 0 1px rgba(224, 112, 90, .55); }
.vm-cr.fav { color: #9af0c8; background: rgba(63, 138, 98, .16); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .5); }
.vm-cr.aff { color: #d8c08a; background: rgba(90, 74, 40, .25); box-shadow: inset 0 0 0 1px #5a4a28; }
.vm-cr.none { color: var(--vmute); font-style: italic; }
.vm-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; background: #0b0f0e; box-shadow: inset 0 0 0 1px var(--vg3); }
.vm-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--vink); min-width: 0; }
.vm-slot b { font-weight: 400; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-slot.empty { justify-content: center; aspect-ratio: 1; max-width: 72px; width: 100%; margin: 0 auto; border-radius: 50%; color: #6a5a3a; font-size: 22px; box-shadow: inset 0 0 0 1.5px #3a3020; cursor: default; }
.vm-slot.fav .vm-pt { box-shadow: 0 0 0 2px var(--vgreen), 0 0 0 4px #0b0f0e, 0 0 12px rgba(111, 224, 168, .4); }
.vm-slot.bad .vm-pt { box-shadow: 0 0 0 2px #e0503a, 0 0 0 4px #0b0f0e; filter: grayscale(.6) brightness(.7); }
.vm-slot.bad b { color: #f0a090; }
.vm-slot em { position: absolute; top: 0; right: calc(50% - 38px); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 1; box-shadow: 0 0 0 1.5px #0b0f0e; }
.vm-slot em.x { background: #c0503a; color: #fff; } .vm-slot em.f { background: #3f8a62; color: #fff; }
.vm-slot:hover .vm-pt { filter: brightness(1.15); }
.vm-cdbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vm-ch { border: 0; padding: 3px 12px; border-radius: 12px; font-family: 'IM Fell English SC', serif; font-size: 14px; color: #b8a888; background: #0b0f0e; box-shadow: inset 0 0 0 1px #4a3d24; cursor: pointer; }
.vm-ch.on { color: #f6d98a; background: rgba(217, 180, 90, .16); box-shadow: inset 0 0 0 1px #b48a3a; }
.vm-dup { margin-left: auto; font-size: 13px; color: var(--vmute); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.vm-cdg { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; overflow-y: auto; min-height: 120px; padding: 2px; }
.vm-cc { display: flex; align-items: center; gap: 9px; padding: 7px; border: 0; text-align: left; cursor: pointer; color: var(--vink); background: #121817; box-shadow: inset 0 0 0 1px #3a3020; }
.vm-ct { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; min-width: 0; flex: 1; line-height: 1.25; }
.vm-ct b { font-weight: 400; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-ct i { font-size: 12px; color: var(--vmute); }
.vm-ct small { grid-column: 1 / -1; font-size: 12px; color: var(--vmute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-cc.fav { box-shadow: inset 0 0 0 1px #3f8a62; } .vm-cc.fav small { color: #9af0c8; }
.vm-cc.no { opacity: .55; box-shadow: inset 0 0 0 1px #3a3020; background: repeating-linear-gradient(135deg, #0f1312 0 6px, #121615 6px 12px); cursor: not-allowed; }
.vm-cc.no small { color: #f0a090; }
.vm-cc.in { box-shadow: inset 0 0 0 2px var(--vgreen), 0 0 10px rgba(111, 224, 168, .25); opacity: 1; }
.vm-cc.in.no { box-shadow: inset 0 0 0 2px #e0503a; cursor: pointer; }
.vm-cc:hover:not(.no) { filter: brightness(1.15); }
.vm-cdf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--vmute); padding-top: 10px; border-top: 1px solid #2a2416; }
.vm-cdf .warn { color: #f0a090; }
.vm-cdb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vm-ember.sm { width: auto; height: 38px; padding: 0 22px; font-size: 18px; }
@media (max-width: 600px) {
  .vm-cd { padding: 14px 12px; max-height: calc(100vh - 16px); } .vm-cdov { padding: 8px; }
  .vm-slots { gap: 6px; padding: 8px; } .vm-slot b { font-size: 10px; } .vm-slot em { right: 0; width: 16px; height: 16px; font-size: 10px; }
  .vm-cdg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vm-cc .vm-pt { width: 32px; height: 32px; } .vm-slot .vm-pt { width: 46px; height: 46px; }
  .vm-cdf { flex-direction: column; align-items: stretch; } .vm-cdb { justify-content: flex-end; }
}

.vm-pt { position: relative; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1e2624, #07090a 75%); }
.vm-pt img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.vm-pt.art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 15%; image-rendering: auto; }
.vm-slot .vm-pt { width: 64px; height: 64px; box-shadow: 0 0 0 2px var(--vg1), 0 0 0 4px #0b0f0e; }
.vm-cc .vm-pt { width: 40px; height: 40px; box-shadow: 0 0 0 1.5px var(--vg3); }
@media (max-width: 600px) { .vm-cc .vm-pt { width: 32px; height: 32px; } .vm-slot .vm-pt { width: 46px; height: 46px; } }
