/* Compteur de PV — partie connectée (un téléphone par joueur). Habillage « jeu » propre à ce mode. */
.lc-app { position: relative; }

.lv { position: absolute; inset: 0 0 var(--lvbar, 0px) 0; z-index: 60; display: flex; flex-direction: column; overflow: hidden; color: #fff; font-family: Manrope, system-ui, sans-serif;
  background: radial-gradient(120% 70% at 50% 0%, #1b2547 0%, #0b1020 55%, #05070d 100%); }
.lv[hidden], .lv-banner[hidden], .lv [hidden] { display: none !important; }
.lv-wait { margin: auto; opacity: .7; }

/* ----- fenêtres (création, salon, invitation) ----- */
.lv-panel { margin: auto; width: min(460px, 94%); max-height: 96%; overflow: auto; padding: 18px 18px 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(40, 52, 96, .85), rgba(14, 18, 36, .92)); border: 1px solid rgba(140, 170, 255, .35);
  box-shadow: 0 0 0 1px #0008, 0 18px 50px #000b, inset 0 1px 0 rgba(255, 255, 255, .08); }
.lv-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font: 700 1.25rem Cinzel, Manrope, serif; letter-spacing: .02em; text-shadow: 0 0 14px rgba(120, 160, 255, .6); }
.lv-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fff3; background: #ffffff14; color: #fff; cursor: pointer; font-size: 1rem; }
.lv-sub { margin: 0 0 12px; line-height: 1.45; opacity: .85; font-size: .92rem; }
.lv-hint { margin: 6px 0 10px; font-size: .82rem; opacity: .7; line-height: 1.4; }
.lv h4 { margin: 12px 0 6px; font: 700 .8rem Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9db4ff; }
.lv h4 small { font-weight: 600; opacity: .8; text-transform: none; letter-spacing: 0; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-chip { cursor: pointer; padding: 7px 13px; border-radius: 999px; border: 1px solid #fff3; background: #ffffff10; color: #fff; font: 600 .88rem Manrope, sans-serif; }
.lv-chip.on { background: linear-gradient(135deg, #5b7cff, #8a5bff); border-color: #c4d0ff; box-shadow: 0 0 14px -2px #7b8cff; }
.lv-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; max-height: 34vh; overflow: auto; }
.lv-friend, .lv-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff14; cursor: pointer; }
.lv-row { cursor: default; }
.lv-row em { margin-left: auto; font-style: normal; font-size: .8rem; opacity: .8; }
.lv-row em.ok { color: #6df0a1; opacity: 1; } .lv-row em.no { color: #ff8a8a; opacity: 1; }
.lv-row.win { border-color: #ffd36a; background: linear-gradient(90deg, rgba(255, 211, 106, .18), #ffffff0d); }
.lv-friend input { accent-color: #7b8cff; width: 18px; height: 18px; }
.lv-on { width: 9px; height: 9px; border-radius: 50%; background: #3be07a; box-shadow: 0 0 8px #3be07a; margin-left: auto; }
.lv-av, .lv-oav, .lv-meav { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #2c3a6b center / cover no-repeat; font-weight: 800; border: 2px solid rgba(255, 255, 255, .35); }
.lv-av { width: 32px; height: 32px; font-size: .9rem; }
.lv-btn { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; cursor: pointer; border-radius: 12px; border: 1px solid #fff3; background: #ffffff14; color: #fff; font: 700 1rem Manrope, sans-serif; }
.lv-btn:disabled { opacity: .4; cursor: default; }
.lv-btn--go { background: linear-gradient(135deg, #3d7bff, #7a4dff); border-color: #bcc8ff; box-shadow: 0 6px 22px -6px #6b7cff; }
.lv-btn--danger { background: linear-gradient(135deg, #d83a3a, #8f1d3c); border-color: #ff9a9a; }
.lv-link { background: none; border: 0; color: #9db4ff; text-decoration: underline; cursor: pointer; font: 600 .85rem Manrope, sans-serif; }

/* ----- bandeau d'invitation ----- */
.lv-banner { position: fixed; z-index: 300; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 16px)); top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
  border-radius: 14px; background: linear-gradient(135deg, rgba(40, 60, 130, .96), rgba(24, 24, 70, .96)); border: 1px solid #9db4ff; color: #fff; box-shadow: 0 10px 30px #000a; font: 600 .9rem Manrope, sans-serif; }
.lv-bb { display: flex; gap: 8px; } .lv-bb .lv-btn { margin: 0; width: auto; padding: 8px 14px; font-size: .9rem; }

/* ----- partie ----- */
.lv-play { position: relative; flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 0; background: #060912; }

/* adversaires : avatar rond, PV au centre, marqueurs en orbite */
.lv-top { --cols: 1; --rows: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: 3px; }
/* un bloc par joueur : terrain en fond, comme dans le compteur local */
.lv-opp, .lv-me { --art: none; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 62%), linear-gradient(100deg, hsl(var(--h) 55% 12% / .72), hsl(var(--h) 55% 14% / .18) 55%, hsl(var(--h) 55% 10% / .55)), var(--art) center / cover no-repeat, hsl(var(--h) 55% 18%); }
.lv-opp { --h: 210; --ow: min(calc(100cqw * .8), calc(100cqh - 46px)); container-type: size; position: relative; overflow: hidden; display: grid; place-items: center; }
.lv-ocirc { position: relative; width: var(--ow); aspect-ratio: 1; margin-top: -16px; }
.lv-oav { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #2c3a6b center / cover no-repeat; font: 800 calc(var(--ow) * .4) Cinzel, serif; color: #fff6;
  border: 3px solid hsl(var(--h) 80% 62%); box-shadow: 0 0 0 3px #000a, 0 0 22px -2px hsl(var(--h) 90% 55%), inset 0 0 24px #0009; overflow: hidden; }
.lv-oav::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, .55) 0 38%, transparent 72%); }
.lv-olife { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; font: 800 calc(var(--ow) * .38) Cinzel, Manrope, serif; color: #fff; text-shadow: 0 0 8px #000, 0 2px 0 #000, 0 0 18px hsl(var(--h) 95% 60%); pointer-events: none; }
.lv-omk { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: grid; place-items: center; width: calc(var(--ow) * .3); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b4b88, #11172f); border: 2px solid #ffffffaa; box-shadow: 0 2px 8px #000a; }
.lv-omk .lc-ico { width: 56%; height: 56%; grid-area: 1 / 1; opacity: .9; }
.lv-omk i { grid-area: 1 / 1; font: 800 calc(var(--ow) * .13) Manrope, sans-serif; font-style: normal; text-shadow: 0 0 4px #000, 0 0 2px #000; z-index: 1; }
.lv-oname { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); font: 700 .78rem Manrope, sans-serif; max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px #000, 0 0 8px #000; }
.lv-oname small { opacity: .7; }
.lv-opp.is-low .lv-oav { border-color: #ff5a5a; animation: lv-pulse 1s infinite; }
.lv-opp.is-dead { filter: grayscale(1) brightness(.6); }

/* mon bloc, en bas : cadran de PV autour de mon avatar, marqueurs de chaque côté */
.lv-me { --h: 210; container-type: size; position: relative; flex: 0 0 clamp(190px, 46dvh, 430px); padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; overflow: hidden; }
.lv-me.is-low { box-shadow: inset 0 0 50px rgba(255, 40, 40, .3); }
.lv-me.is-dead { filter: saturate(.4); }
.lv-dial { --D: min(calc(100cqh - 16px), 48cqw); --dd: var(--D); position: relative; width: var(--D); height: var(--D); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; border-radius: 50%; }
.lv-dial:focus-visible { box-shadow: 0 0 0 3px #fff8; }
.lv-ringsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lv-ringsvg circle { fill: none; stroke-width: 13; stroke-linecap: round; }
.lv-track { stroke: #ffffff1c; }
.lv-arc { stroke: #4de08a; filter: drop-shadow(0 0 5px #4de08a); transition: stroke-dasharray .14s linear, stroke .3s; }
.lv-arc.mid { stroke: #ffb347; } .lv-arc.low { stroke: #ff5a5a; }
.lv-arc2 { stroke: #ffd36a; stroke-width: 7; transition: stroke-dasharray .14s linear; }
.lv-ringsvg .lv-shade { stroke: #000; stroke-opacity: .6; stroke-width: 15; stroke-linecap: butt; filter: blur(2px); transition: stroke-dashoffset .14s linear, opacity .2s; }
.lv-meav { position: absolute; inset: 11%; display: grid; place-items: center; border-radius: 50%; background: #2c3a6b center / cover no-repeat; font: 800 calc(var(--dd) * .3) Cinzel, serif; color: #fff5; box-shadow: inset 0 0 30px #000a, 0 0 0 3px #000a; pointer-events: none; overflow: hidden; }
.lv-meav::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, .6) 0 40%, transparent 78%); }
.lv-life { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lv-life b { transition: transform .12s; font: 800 calc(var(--dd) * .34) Cinzel, Manrope, serif; line-height: 1; color: #fff; text-shadow: 0 0 10px #000, 0 3px 0 #000, 0 0 26px hsl(var(--h) 95% 62%); }
.lv-life b.d3 { font-size: calc(var(--dd) * .26); }
.lv-delta { position: absolute; top: 2%; right: 4%; z-index: 3; font: 800 calc(var(--dd) * .11) Manrope, sans-serif; text-shadow: 0 0 6px #000; pointer-events: none; } .lv-delta.up { color: #6df0a1; } .lv-delta.down { color: #ff8a8a; }
.lv-mside { display: grid; gap: 7px; align-content: center; min-width: 0; }
.lv-mk { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3px; padding: 3px; border-radius: 999px; background: #0007; border: 1px solid #ffffff22; opacity: .55; max-width: 190px; }
.lv-mleft .lv-mk { justify-self: end; } .lv-mright .lv-mk { justify-self: start; }
.lv-mk.has { opacity: 1; border-color: hsl(var(--h) 80% 65% / .7); }
.lv-mk button { cursor: pointer; width: 100%; min-width: 30px; height: 32px; border-radius: 999px; border: 0; background: #ffffff18; color: #fff; font: 800 1.1rem Manrope, sans-serif; touch-action: manipulation; }
.lv-mk button:active { filter: brightness(1.6); }
.lv-mki { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; } .lv-mki .lc-ico { width: 20px; height: 20px; } .lv-mki b { font: 800 1.05rem Manrope, sans-serif; min-width: 1.1em; text-align: center; }
.lv-mehead { position: absolute; left: 14px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; pointer-events: none; }
.lv-mehead .lv-link { pointer-events: auto; }
.lv-life { flex-direction: column; }
.lv-mename { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); max-width: 58%; text-align: center; font: 700 calc(var(--dd) * .075) Manrope, sans-serif; opacity: .6; text-shadow: 0 1px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.lv-metag { padding: 2px 9px; border-radius: 999px; font: 700 .68rem Manrope, sans-serif; background: hsl(var(--h) 70% 45% / .5); border: 1px solid hsl(var(--h) 80% 70% / .7); }
.lv-skull { position: absolute; top: 10px; right: 10px; z-index: 5; width: 46px; height: 46px; box-sizing: border-box; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; border-radius: 50%; cursor: pointer; font-size: 1.4rem; background: #000a; border: 2px solid #ff5a5a; box-shadow: 0 0 16px -2px #ff5a5a; animation: lv-pulse 1.4s infinite; }
@media (max-width: 560px) and (orientation: portrait) {
  .lv-me { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; flex-basis: clamp(300px, 56dvh, 520px); }
  .lv-dial { grid-column: 1 / -1; grid-row: 1; justify-self: center; --D: min(calc(100cqh - 130px), 90cqw); }
  .lv-mleft { grid-row: 2; grid-column: 1; } .lv-mright { grid-row: 2; grid-column: 2; }
  .lv-mleft .lv-mk, .lv-mright .lv-mk { justify-self: stretch; max-width: none; }
}

.lv-ask, .lv-out, .lv-end { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; text-align: center; background: rgba(4, 6, 14, .86); backdrop-filter: blur(3px); }
.lv-ask p { margin: 0 0 12px; font: 800 1.5rem Cinzel, Manrope, serif; } .lv-askb { display: grid; gap: 8px; min-width: 230px; }
.lv-out span { font-size: 4rem; } .lv-out p { margin: 4px 0; font: 800 1.5rem Cinzel, Manrope, serif; } .lv-out small { opacity: .7; }
.lv-out { background: rgba(4, 6, 14, .45); pointer-events: none; }
.lv-end { z-index: 30; }
.lv-endbox { width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(48, 60, 110, .9), rgba(14, 18, 36, .95)); border: 1px solid #ffd36a99; box-shadow: 0 0 40px -6px #ffd36a88; }
.lv-endbox h2 { margin: 0 0 4px; font: 800 1.8rem Cinzel, Manrope, serif; text-shadow: 0 0 18px #ffd36a99; }
.lv-endwho { margin: 0 0 6px; font-size: 1.05rem; } .lv-endwho b { color: #ffd36a; }

@keyframes lv-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .lv-skull, .lv-opp.is-low .lv-olife { animation: none; } }

/* repère de départ de la barre, en haut du cercle : la barre part d'ici et recule vers la gauche quand les PV baissent */
.lv-start path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 1px 2px #000); }
.lv-start .lv-startarrow { fill: #fff; stroke: none; opacity: .95; }

/* ----- décor en couches autour de l'avatar (kit « anneaux néon cristallins ») : 1 fond, 2 avatar, 3 cadre sombre ----- */
.lv-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lv-deco img { position: absolute; display: block; max-width: none; }
/* les deux images ont la même taille et sont déjà calées l'une sur l'autre : même boîte pour les deux */
.lv-dc-fond, .lv-dc-pulse, .lv-dc-front, .lv-dc-slider, .lv-dc-slider2, .lv-dc-arc { left: -2.5%; top: 50%; width: 105%; height: auto; transform: translateY(-50%); }
.lv-dc-front, .lv-dc-slider, .lv-dc-slider2, .lv-dc-arc { position: absolute; display: block; max-width: none; z-index: 2; pointer-events: none; }   /* hors de .lv-deco : sans position absolue, top/left étaient ignorés → décalage en hauteur */
.lv-core { position: absolute; inset: 0; --dd: var(--D); z-index: 1; }
.lv-core .lv-ringsvg { display: none; }   /* jauge verte masquée le temps de poser les couches */
/* avatar : 217 × 217 px dans le repère des images (322 × 315), centré sur les anneaux (centre 160,5 × 155,2) ; bord en dégradé transparent de 205 à 217 px */
.lv-core .lv-meav { --k: calc(var(--D) * 1.05 / 322); inset: auto; width: calc(var(--k) * 217); height: calc(var(--k) * 217); left: calc(var(--D) * -.025 + var(--k) * 160.5); top: calc(50% + var(--k) * (155.2 - 157.5)); transform: translate(-50%, -50%);
  box-shadow: none; border: 0; -webkit-mask-image: radial-gradient(circle closest-side, #000 94.47%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 94.47%, transparent 100%); }
.lv-core .lv-life { z-index: 3; }

/* cadre cristal = image du slider de PV : il se dévoile en tournant depuis le haut (sens horaire) selon --f (0 à 1, fraction des PV de départ) */
.lv-dc-slider { z-index: 2; --f: 1; --mx: 49.69%; --my: 49.05%;
  -webkit-mask-image: conic-gradient(from 0deg at var(--mx) var(--my), #000 calc(var(--f) * 360deg), transparent calc(var(--f) * 360deg + 5deg));
  mask-image: conic-gradient(from 0deg at var(--mx) var(--my), #000 calc(var(--f) * 360deg), transparent calc(var(--f) * 360deg + 5deg)); }

.lv-dc-arc { z-index: 5; }   /* arc lumineux : tout au-dessus (même boîte que les autres images) */

/* anneau néon fin = 2e slider : apparaît quand les PV dépassent les PV de départ, se dévoile de la même façon (--f = 0 à 1 des PV en trop) */
.lv-dc-slider2 { z-index: 3; --f: 0; --mx: 46.27%; --my: 46.19%; opacity: 0; transition: opacity .2s;
  -webkit-mask-image: conic-gradient(from 0deg at var(--mx) var(--my), transparent 0deg, #000 15deg, #000 calc(var(--f) * 360deg), transparent calc(var(--f) * 360deg + 5deg));
  mask-image: conic-gradient(from 0deg at var(--mx) var(--my), transparent 0deg, #000 15deg, #000 calc(var(--f) * 360deg), transparent calc(var(--f) * 360deg + 5deg)); }

/* losange = poignée du slider : même boîte que les images, tourne autour du centre des anneaux (--ang = fraction de tour × 360°) */
.lv-dc-handle { position: absolute; left: -2.5%; top: 50%; width: 105%; aspect-ratio: 322 / 315; z-index: 6; pointer-events: none; --mx: 49.84%; --my: 49.21%; --ang: 0deg;
  transform-origin: var(--mx) var(--my); transform: translateY(-50%) rotate(var(--ang)); }
.lv-dc-handle img { position: absolute; display: block; max-width: none; left: var(--mx); top: 8.25%; width: 31.47%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 6px rgba(90, 170, 255, .8)); }

/* 04 : tout au fond, invisible ; quand les PV dépassent le départ : 1 s, taille 80 % → 150 %, opacité 100 % → 0 % */
.lv-dc-pulse { opacity: 0; transform-origin: 50.3% 48.7%; pointer-events: none; }
.lv-dc-pulse.go { animation: lv-pulse-over 1s linear 1; }
@keyframes lv-pulse-over {
  from { opacity: 1; transform: translateY(-50%) scale(.8); }
  to { opacity: 0; transform: translateY(-50%) scale(1.5); }
}
.lv-dc-pulse.rev { animation: lv-pulse-in 1s linear 1; }   /* animation inverse (descente) : l'anneau se resserre de 150 % vers 80 % en apparaissant, puis s'éteint */
@keyframes lv-pulse-in {
  0% { opacity: 0; transform: translateY(-50%) scale(1.5); }
  80% { opacity: 1; transform: translateY(-50%) scale(.9); }
  100% { opacity: 0; transform: translateY(-50%) scale(.8); }
}
@media (prefers-reduced-motion: reduce) { .lv-dc-pulse.go, .lv-dc-pulse.rev { animation: none; } }

/* un marqueur à 0 n'est pas affiché (on le pose avec le « + » en bas à droite, comme dans le compteur de base) */
.lv-mk:not(.has) { display: none; }
.lv-addmk { position: absolute; right: 10px; bottom: 10px; z-index: 7; width: clamp(38px, 11cqh, 50px); height: clamp(38px, 11cqh, 50px); padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 4px 14px; font: 600 1.7rem/1 Manrope, sans-serif; color: #fff; border: 1px solid rgba(160, 190, 255, .45);
  background: linear-gradient(105deg, rgba(70, 100, 220, .55), rgba(14, 18, 40, .9) 75%); box-shadow: 0 2px 10px #0008; touch-action: manipulation; }
.lv-addmk:hover { border-color: #fff9; box-shadow: 0 0 16px -4px #7b8cff; }

/* marqueurs : le logo du marqueur sur Fond.png (rien d'autre en fond) ; le « + » aussi */
.lv-mk { background: transparent; border: 0; }
.lv-mk.has { border: 0; }
.lv-mki { width: clamp(44px, 12cqh, 58px); aspect-ratio: 1; justify-content: center; flex-direction: column; gap: 0; padding: 0; background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; }
.lv-mki .lc-ico { width: 46%; height: 46%; }
.lv-mki b { font-size: .8rem; line-height: 1; }
.lv-addmk { background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; border: 0; border-radius: 50%; box-shadow: none; width: clamp(44px, 13cqh, 58px); height: clamp(44px, 13cqh, 58px); text-shadow: 0 0 6px #6af; }
.lv-addmk:hover { box-shadow: none; filter: brightness(1.3); }

/* marqueurs : en haut du bloc, au-dessus des PV, plus gros (4 côte à côte) ; la zone des PV reste calée sur le bas du bloc */
.lv-me { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.lv-mtop { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 6; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.lv-mtop .lv-mk { pointer-events: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: clamp(66px, 21cqw, 96px); max-width: none; justify-self: auto; padding: 0; }
.lv-mtop .lv-mki { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: clamp(60px, 17cqh, 84px); }
.lv-mtop .lv-mki .lc-ico { width: 44%; height: 44%; }
.lv-mtop .lv-mki b { font-size: 1.05rem; }
.lv-mtop .lv-mk button:first-child { grid-column: 1; grid-row: 2; } .lv-mtop .lv-mk button:last-child { grid-column: 2; grid-row: 2; }
.lv-mtop .lv-mk button { height: 30px; }
.lv-mehead { top: auto; bottom: 12px; }
.lv-addmk { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; text-shadow: none; }
.lv-addmk img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.lv-addmk:hover { filter: brightness(1.25); }

/* bouton « + » : l'icône « + » du site posée sur Fond.png */
.lv-addmk { background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; border-radius: 50%; }
.lv-addmk img { width: 48%; height: 48%; margin: auto; }

/* marqueurs : invisibles tant qu'ils ne sont pas posés ; icône ≈ un peu moins d'1/3 de la largeur ; apparition de gauche à droite ; à 4 puis 5 marqueurs, la taille se réduit pour que tout tienne sur une ligne */
.lv-mtop { --n: 1; --sz: min(30cqw, 26cqh, calc((100cqw - 16px - (var(--n) - 1) * 8px) / var(--n))); justify-content: flex-start; gap: 8px; }
.lv-mtop .lv-mk { width: var(--sz); }
.lv-mtop .lv-mki { width: 100%; }

/* « + » au-dessus, « − » en dessous du marqueur ; invisibles par défaut, visibles 5 s (fondu) quand on les appelle */
.lv-mtop .lv-mk { grid-template-columns: 1fr; gap: 3px; }
.lv-mtop .lv-mk button:last-child { grid-column: 1; grid-row: 1; }
.lv-mtop .lv-mki { grid-column: 1; grid-row: 2; }
.lv-mtop .lv-mk button:first-child { grid-column: 1; grid-row: 3; }
.lv-mtop .lv-mk button { width: 62%; justify-self: center; height: 28px; opacity: 0; pointer-events: none; transition: opacity 1.2s ease-out; }
.lv-mtop .lv-mk.show button { opacity: 1; pointer-events: auto; transition: opacity .15s ease-in; }

/* un marqueur non posé n'est pas affiché (la règle display: grid des marqueurs du haut l'écrasait) */
.lv-mtop .lv-mk:not(.has) { display: none; }

/* « + » et « − » à l'intérieur du rond de fond : « + » en haut du cercle, « − » en bas, le logo et la valeur au milieu */
.lv-mtop .lv-mk { display: block; position: relative; aspect-ratio: 1; }
.lv-mtop .lv-mk .lv-mki { width: 100%; height: 100%; }
.lv-mtop .lv-mk button { position: absolute; left: 50%; transform: translateX(-50%); width: 27%; height: auto; aspect-ratio: 1; min-width: 0; padding: 0; display: grid; place-items: center; font-size: calc(var(--sz) * .2); line-height: 1; z-index: 2; }
.lv-mtop .lv-mk button:last-child { top: 9%; }
.lv-mtop .lv-mk button:first-child { bottom: 9%; }

/* les boutons étant dans le rond, toute la rangée de marqueurs remonte un peu */
.lv-mtop { top: 0; }

/* marqueurs : 3 emplacements minimum, répartis sur toute la largeur ; 4 ou 5 marqueurs se réduisent pour tenir ; un peu plus gros, un peu plus bas */
.lv-mtop { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); justify-content: normal; gap: 8px; --cols: 3; top: 12px;
  --sz: min(34cqw, 28cqh, calc((100cqw - 16px - (var(--cols) - 1) * 8px) / var(--cols))); }
.lv-mtop .lv-mk { width: var(--sz); justify-self: center; }
.lv-mtop .lv-mki .lc-ico { width: 52%; height: 52%; }
.lv-mtop .lv-mki b { font-size: 1.25rem; }
.lv-mtop .lv-mk button { font-size: calc(var(--sz) * .23); }

/* typographie des noms de joueurs : Cinzel comme dans le compteur de base */
.lv-mename, .lv-oname { font-family: Cinzel, serif; font-weight: 700; letter-spacing: .02em; }
/* +1 vert qui monte / −1 rouge qui descend à chaque changement de PV */
.lv-fly { position: absolute; z-index: 8; pointer-events: none; transform: translateX(-50%); opacity: 0;
  font: 700 clamp(2.2rem, 18cqh, 4.4rem) Cinzel, serif; -webkit-text-stroke: 2px rgba(0, 0, 0, .55); paint-order: stroke fill; text-shadow: 0 3px 6px #000, 0 0 18px #000c; }
.lv-fly.up { top: 48%; color: #5dff7e; animation: lv-fly-up .95s ease-out forwards; }
.lv-fly.down { top: 56%; color: #ff5a5a; animation: lv-fly-down .95s ease-out forwards; }
@keyframes lv-fly-up { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -30cqh) scale(1); } }
@keyframes lv-fly-down { 0% { opacity: 0; transform: translate(-50%, -6px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, 30cqh) scale(1); } }
@media (prefers-reduced-motion: reduce) { .lv-fly { animation-duration: .01s !important; } }

/* marqueurs : plus de « + » / « − » visibles ; le haut du rond ajoute, le bas retire (zones tactiles invisibles) ; retour visuel = petite nova */
.lv-mtop .lv-mk button, .lv-mtop .lv-mk.show button { opacity: 1; pointer-events: auto; transition: none; background: transparent; border: 0; box-shadow: none; color: transparent; font-size: 0; left: 0; transform: none; width: 100%; height: 50%; aspect-ratio: auto; border-radius: 0; z-index: 3; }
.lv-mtop .lv-mk button:last-child { top: 0; bottom: auto; border-radius: 50% 50% 0 0; }
.lv-mtop .lv-mk button:first-child { bottom: 0; top: auto; border-radius: 0 0 50% 50%; }
.lv-mk-nova { position: absolute; left: 50%; top: 50%; width: 120%; max-width: none; height: auto; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 1; }
.lv-mk-nova.go { animation: lv-mknova .6s linear 1; }
.lv-mk-nova.rev { animation: lv-mknova-in .6s linear 1; }
@keyframes lv-mknova { from { opacity: 1; transform: translate(-50%, -50%) scale(.8); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes lv-mknova-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(.9); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .lv-mk-nova.go, .lv-mk-nova.rev { animation: none; } }

/* ===== marqueurs du joueur : « + » (haut) et « − » (bas) de nouveau visibles pendant 5 s (fondu), sans effet de carré au toucher ===== */
.lv-mtop .lv-mk button, .lv-mtop .lv-mk.show button { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: calc(var(--sz) * .23); left: 50%; transform: translateX(-50%); width: 27%; height: auto; aspect-ratio: 1; border-radius: 50%; z-index: 3; filter: none; }
.lv-mtop .lv-mk button:last-child { top: 9%; bottom: auto; border-radius: 50%; }
.lv-mtop .lv-mk button:first-child { bottom: 9%; top: auto; border-radius: 50%; }
.lv-mtop .lv-mk button { opacity: 0; pointer-events: none; transition: opacity 1.2s ease-out; }
.lv-mtop .lv-mk.show button { opacity: 1; pointer-events: auto; transition: opacity .15s ease-in; }
.lv-mk button, .lv-addmk, .lv-dial { -webkit-tap-highlight-color: transparent; outline: none; user-select: none; -webkit-user-select: none; }
.lv-mk button:active, .lv-mk button:focus, .lv-mk button:focus-visible { filter: none; outline: none; box-shadow: none; }

/* ===== adversaires : même architecture que le joueur (fond, avatar 217, cadre sombre, arc lumineux), sans slider ni boutons ===== */
.lv-ocirc .lv-o-img { position: absolute; display: block; max-width: none; left: -2.5%; top: 50%; width: 105%; height: auto; transform: translateY(-50%); pointer-events: none; }
.lv-o-fond { z-index: 0; } .lv-o-front { z-index: 2; } .lv-o-arc { z-index: 5; }
.lv-opp .lv-oav { --k: calc(var(--ow) * 1.05 / 322); inset: auto; z-index: 1; width: calc(var(--k) * 217); height: calc(var(--k) * 217); left: calc(var(--ow) * -.025 + var(--k) * 160.5); top: calc(50% + var(--k) * (155.2 - 157.5)); transform: translate(-50%, -50%);
  border: 0; box-shadow: none; -webkit-mask-image: radial-gradient(circle closest-side, #000 94.47%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 94.47%, transparent 100%); }
.lv-opp .lv-olife { z-index: 3; font-family: Cinzel, serif; }
.lv-omtop { position: absolute; top: 4px; left: 4px; right: 4px; z-index: 6; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 3px; pointer-events: none;
  --osz: min(30cqw, 20cqh, calc((100cqw - 8px - (var(--cols) - 1) * 3px) / var(--cols))); }
.lv-omk2 { width: var(--osz); aspect-ratio: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; }
.lv-omk2 .lc-ico { width: 44%; height: 44%; }
.lv-omk2 i { font: 700 calc(var(--osz) * .27) / 1 Cinzel, serif; font-style: normal; text-shadow: 0 0 4px #000, 0 0 2px #000; }

/* mon propre nom n'est pas affiché (c'est mon téléphone) ; le nom des adversaires remonte sur le bas de leur cercle */
.lv-mename { display: none; }
.lv-opp .lv-oname { bottom: auto; top: calc(50% - 8px + var(--ow) * .5 - 14px); z-index: 4; }

/* ===== + plus gros ; flèche retour en bas à gauche (à l'opposé du +) ; écran classique branché sur la partie connectée ===== */
.lv-addmk { width: clamp(58px, 17cqh, 78px); height: clamp(58px, 17cqh, 78px); }
.lv-backbtn { position: absolute; left: 10px; bottom: 10px; z-index: 7; width: clamp(58px, 17cqh, 78px); height: clamp(58px, 17cqh, 78px); padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; border-radius: 50%; background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; color: #fff; font: 700 clamp(1.5rem, 5.5cqh, 2.1rem)/1 Manrope, sans-serif; text-shadow: 0 0 8px #6af; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lv-backbtn:hover { filter: brightness(1.25); }
.lv-mehead { left: calc(10px + clamp(58px, 17cqh, 78px) + 8px); }
.lv.is-classic { display: none !important; }
.lv-skinbtn { position: absolute; left: 10px; bottom: calc(var(--lvbar, 60px) + 10px); z-index: 80; padding: 9px 14px; border-radius: 999px; cursor: pointer; font: 700 .82rem Manrope, sans-serif; color: #fff;
  background: linear-gradient(135deg, rgba(60, 90, 220, .92), rgba(20, 24, 70, .95)); border: 1px solid rgba(160, 190, 255, .55); box-shadow: 0 4px 16px #000a; }
.lv-skinbtn[hidden] { display: none; }
.lc-tile.lc-locked .lc-zone, .lc-tile.lc-locked .lc-addmk, .lc-tile.lc-locked .lc-mw button { pointer-events: none; }
.lc-tile.lc-locked .lc-gl, .lc-tile.lc-locked .lc-addmk, .lc-tile.lc-locked .lc-mw button { opacity: 0; }

/* zone du haut : placement libre par glisser-déposer (local) */
.lv-opp { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.lv-opp.is-drag { z-index: 30; opacity: .88; transition: none; cursor: grabbing; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 2px rgba(140,190,255,.8); }
.lv-opp.is-over { box-shadow: inset 0 0 0 3px rgba(140,190,255,.9), inset 0 0 24px rgba(120,170,255,.5); }

.lv-backbtn img { width: 62%; height: 62%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 6px rgba(110,170,255,.7)); }

/* ===== zone du haut : UN seul terrain (marais) pour tous les adversaires ; équipes en bandes, 1 allié = triangle dans un coin ===== */
.lv-top { position: relative; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,0) 70%), linear-gradient(rgba(6,9,18,.35), rgba(6,9,18,.35)), url(../images/compteur/terrain-5.jpg?v=2) center / cover no-repeat, #0b1420; }
.lv-top .lv-opp { background: none; }
.lv-top.is-teams { display: flex; flex-direction: column; gap: 3px; }
.lv-band { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); background: linear-gradient(hsl(var(--bh) 70% 35% / .22), hsl(var(--bh) 70% 20% / .12)); box-shadow: inset 0 0 0 1px hsl(var(--bh) 70% 60% / .35); }
.lv-top.tri-r .lv-band.is-last { padding-right: 46%; }
.lv-top.tri-l .lv-band.is-last { padding-left: 46%; }
.lv-tri { position: absolute; bottom: 0; width: 52%; height: 58%; z-index: 4; touch-action: none; cursor: grab; background: linear-gradient(135deg, #7ab4ff, #b06bff); }
.lv-tri.is-r { right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.lv-tri.is-l { left: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.lv-tri-in { position: absolute; inset: 0; background: linear-gradient(hsl(var(--bh) 70% 30% / .75), hsl(var(--bh) 70% 16% / .85)), url(../images/compteur/terrain-5.jpg?v=2) center / cover no-repeat; }
.lv-tri.is-r .lv-tri-in { clip-path: polygon(100% 5%, 100% 100%, 5% 100%); }
.lv-tri.is-l .lv-tri-in { clip-path: polygon(0 5%, 0 100%, 95% 100%); }
.lv-tri .lv-opp { position: absolute; bottom: 0; width: 64%; height: 66%; cursor: grab; }
.lv-tri.is-r .lv-opp { right: 0; } .lv-tri.is-l .lv-opp { left: 0; }
.lv-tri.is-drag { z-index: 30; opacity: .9; transition: none; cursor: grabbing; }

/* 1 allié : triangle isocèle (angle droit dans le coin, jambes égales = largeur), diagonale vers le coin opposé ; 1-2 ennemis agrandis et décalés en hauteur */
.lv-tri { --L: min(var(--tw, 300px), calc(var(--th, 300px) * .78)); width: var(--L); height: var(--L); }
.lv-tri .lv-opp { width: 60%; height: 60%; }
.lv-top.tri-duo .lv-opp.foe-0, .lv-top.tri-duo .lv-opp.foe-1 { position: absolute; --E: min(calc(var(--tw, 300px) * .46), calc(var(--th, 300px) * .38)); width: var(--E); height: var(--E); background: none; }
.lv-top.tri-duo.tri-r .foe-0 { right: calc(var(--tw, 300px) * .03); top: calc(var(--th, 300px) * .02); } .lv-top.tri-duo.tri-r .foe-1 { left: calc(var(--tw, 300px) * .03); top: calc(var(--th, 300px) * .02 + var(--E) * .5); }
.lv-top.tri-duo.tri-l .foe-0 { left: calc(var(--tw, 300px) * .03); top: calc(var(--th, 300px) * .02); } .lv-top.tri-duo.tri-l .foe-1 { right: calc(var(--tw, 300px) * .03); top: calc(var(--th, 300px) * .02 + var(--E) * .5); }
.lv-top.tri-duo .foe-solo { left: 50% !important; right: auto !important; transform: translateX(-50%); }

/* 2 contre 2 : les cadres des ennemis ont la même taille que celui de l'allié */
.lv-top { --E: min(calc(min(var(--tw, 300px), calc(var(--th, 300px) * .78)) * .6), calc(var(--tw, 300px) * .46)); }
.lv-tri .lv-opp { width: var(--E); height: var(--E); }
.lv-top.tri-duo .lv-opp.foe-0, .lv-top.tri-duo .lv-opp.foe-1 { --E: min(calc(min(var(--tw, 300px), calc(var(--th, 300px) * .78)) * .6), calc(var(--tw, 300px) * .46)); }

/* halo noir devant les avatars retiré (adversaires et mon cadre) */
.lv-oav::after, .lv-meav::after { content: none; display: none; }

/* ===== 4 joueurs : la zone du haut est coupée en 3 triangles (gauche : angle haut-gauche -> milieu bas ; droite : idem ; centre : pointe en bas) ===== */
.lv-top.tri3 { display: block; position: relative; --S: min(calc(var(--tw, 300px) * .33), calc(var(--th, 300px) * .52)); }
.lv-top.tri3 .lv-opp { position: absolute; width: var(--S); height: var(--S); background: none; z-index: 2; }
.lv-top.tri3 .lv-opp.pos-L, .lv-top.tri3 .lv-tri3 .lv-opp.pos-ally.at-l { --cx: .17; --cy: .64; }
.lv-top.tri3 .pos-L { left: calc(.17 * var(--tw, 300px) - var(--S) / 2); top: calc(.64 * var(--th, 300px) - var(--S) / 2); }
.lv-top.tri3 .pos-M { left: calc(.5 * var(--tw, 300px) - var(--S) / 2); top: calc(.34 * var(--th, 300px) - var(--S) / 2); }
.lv-top.tri3 .pos-R { left: calc(.83 * var(--tw, 300px) - var(--S) / 2); top: calc(.64 * var(--th, 300px) - var(--S) / 2); }
/* 2 contre 2 */
.lv-top.tri3 .lv-tri3 { position: absolute; inset: 0; width: auto; height: auto; bottom: 0; background: linear-gradient(hsl(var(--bh) 70% 35% / .28), hsl(var(--bh) 70% 20% / .16)); z-index: 1; }
.lv-top.tri3 .lv-tri3.is-r { clip-path: polygon(100% 0, 100% 100%, 50% 100%); }
.lv-top.tri3 .lv-tri3.is-l { clip-path: polygon(0 0, 0 100%, 50% 100%); }
.lv-top.tri3 .lv-tri3 .lv-tri-in { position: absolute; inset: 0; background: none; clip-path: none; }
.lv-top.tri3.tri-r .lv-tri3 .pos-ally { left: calc(.83 * var(--tw, 300px) - var(--S) / 2); top: calc(.64 * var(--th, 300px) - var(--S) / 2); right: auto; bottom: auto; }
.lv-top.tri3.tri-l .lv-tri3 .pos-ally { left: calc(.17 * var(--tw, 300px) - var(--S) / 2); top: calc(.64 * var(--th, 300px) - var(--S) / 2); right: auto; bottom: auto; }
.lv-top.tri3.tri-r .pos-f0 { left: calc(.2 * var(--tw, 300px) - var(--S) / 2); top: calc(.62 * var(--th, 300px) - var(--S) / 2); }
.lv-top.tri3.tri-r .pos-f1 { left: calc(.55 * var(--tw, 300px) - var(--S) / 2); top: calc(.3 * var(--th, 300px) - var(--S) / 2); }
.lv-top.tri3.tri-l .pos-f0 { left: calc(.8 * var(--tw, 300px) - var(--S) / 2); top: calc(.62 * var(--th, 300px) - var(--S) / 2); }
.lv-top.tri3.tri-l .pos-f1 { left: calc(.45 * var(--tw, 300px) - var(--S) / 2); top: calc(.3 * var(--th, 300px) - var(--S) / 2); }
.lv-tri3-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.lv-tri3-lines line { stroke: #9db4ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #7ab4ff); }

/* ===== dispositions en polygones (éditeur) : sections découpées, compteurs placés et dimensionnés à la main ===== */
.lv-top.poly { display: block; position: relative; }
.lv-poly-sec { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lv-poly-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.lv-poly-lines polygon { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(120,170,255,.6)); }
.lv-top.poly .lv-opp.lv-pos { position: absolute; z-index: 2; background: none; width: calc(var(--s) * var(--tw, 300px)); height: calc(var(--s) * var(--tw, 300px));
  left: calc(var(--x) * var(--tw, 300px) - var(--s) * var(--tw, 300px) / 2); top: calc(var(--y) * var(--th, 300px) - var(--s) * var(--tw, 300px) / 2); }

/* chacun pour soi : séparations sombres, comme celle entre moi et les autres ; en équipe : mon contour reprend la couleur de mon allié */
.lv-poly-lines.is-ffa polygon { stroke-width: 3; filter: none; }
.lv-me.has-team { outline: 2px solid var(--mecol); outline-offset: -2px; }

/* téléphone en paysage : le compteur reste vertical, on demande de le redresser */
#lc-rotate { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  #lc-rotate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; background: #050816; color: #fff; text-align: center; font: 800 1.1rem/1.3 Manrope, system-ui, sans-serif; }
}

/* mon nom sous mon cadre, comme celui des adversaires ; le bloc PV / slider remonte un peu pour lui faire de la place */
.lv-me { padding-bottom: 34px; }
.lv-mename { display: block; opacity: 1; z-index: 6; top: calc(100% + 1px); max-width: 94%; font: 700 .78rem Cinzel, Manrope, serif; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 4px #000, 0 0 8px #000; }

/* bouton de retour de l'écran classique : la flèche cristal, comme sur l'écran connecté */
.lv-skinbtn { width: 66px; height: 66px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; box-shadow: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lv-skinbtn img { width: 62%; height: 62%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 6px rgba(110,170,255,.7)); }
.lv-skinbtn:hover { filter: brightness(1.25); }

/* marqueurs des adversaires : 1/3 plus gros, centrés en hauteur de part et d'autre du chiffre (sur l'anneau, côtés gauche et droit) ; 1er à gauche, 2e à droite, 3e sous le 1er... */
.lv-opp .lv-omtop { position: absolute; inset: 0; display: block; --M: calc(var(--osz) * 1.3333); }
.lv-opp .lv-omk2 { position: absolute; width: var(--M); height: var(--M); justify-self: auto;
  top: calc(50% + (var(--ci, 0) - (var(--cn, 1) - 1) / 2) * var(--M) * 1.06 - var(--M) / 2); }
.lv-opp .lv-omk2.l { left: calc(50% - var(--ow) * .47 - var(--M) / 2); }
.lv-opp .lv-omk2.r { left: calc(50% + var(--ow) * .47 - var(--M) / 2); }
.lv-opp .lv-omk2 i { font-size: calc(var(--M) * .27); }

/* animations des adversaires : dégâts/soins qui s'envolent, explosion de l'anneau, nova des marqueurs */
.lv-opp .lv-fly { font-size: calc(var(--ow) * .3); z-index: 8; }
.lv-ocirc .lv-o-pulse { z-index: 0; }
.lv-omk2 .lv-mk-nova { z-index: 0; }

/* Noms des joueurs : la taille suit la place disponible (cercle de l'adversaire, cadran du joueur) au lieu d'une valeur fixe de .78rem :
   petit sur un téléphone, nettement plus grand sur un grand écran. */
.lv-opp .lv-oname { font-size: clamp(.8rem, calc(var(--ow) * .115), 2rem); top: calc(50% - 8px + var(--ow) * .5 - 1.1em); }
.lv-me .lv-mename { font-size: clamp(.85rem, calc(var(--dd) * .095), 2.3rem); }
.lv-me { padding-bottom: clamp(34px, 5.2dvh, 56px); }

/* ---------- Compteur seul (écran d'arrivée) : mon cadran seul, sans adversaire ---------- */
.lv.is-solo .lv-top { display: none; }
.lv.is-solo .lv-me { flex: 1 1 auto; }
.lv.is-solo .lv-backbtn { display: none; }
.lv.is-solo .lv-mtop { left: 64px; --sz: min(25cqw, 26cqh); }   /* les marqueurs commencent à droite du bouton ↺ */
.lv-reset { position: absolute; top: 8px; left: 8px; z-index: 8; width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; border-radius: 50%; background: url(../images/compteur/cadre/fond.png) center / 112% no-repeat; box-shadow: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lv-reset img { width: 62%; height: 62%; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 0 6px rgba(110,170,255,.7)); }
.lv-reset:hover { filter: brightness(1.25); }
.lv-reset:active { filter: brightness(1.5); }
.lv-reset.armed { filter: brightness(1.2) hue-rotate(150deg); animation: lv-reset-pulse .6s ease-in-out infinite alternate; }
@keyframes lv-reset-pulse { to { transform: scale(1.12); } }
.lv-reset:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.lv-skull[hidden] { display: none; }
.lv-skull { padding-bottom: 2px; }
