/* MEEZ ROYALE - transitions d'ecran : rideau menu <-> partie, grand titre de debut de partie / d'atterrissage, entree du HUD et du menu.
   Tout est coupe par body.no-fx (Reglages > Effets visuels, ou mouvement reduit : fx.js). */

/* ---------- rideau : deux panneaux en biais qui se ferment, le titre, puis qui s'ouvrent sur le nouvel ecran ---------- */
#xfade { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; --xf-a: #f0c869; --xf-b: #f0a0c0; --xf-t: 2000ms; }
#xfade.to-match { --xf-a: #ffa45c; --xf-b: #e5484d; }
#xfade.run { pointer-events: auto; }
.xf-p { position: absolute; top: -1px; bottom: -1px; width: 58%; will-change: transform;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 28px),
    radial-gradient(90% 70% at 50% 110%, rgba(240,200,105,.13), transparent 62%),
    linear-gradient(165deg, #211b16, #0a0807); }
.xf-l { left: 0; transform: translateX(-104%); clip-path: polygon(0 0, 100% 0, calc(100% - 8vmin) 100%, 0 100%); }
.xf-r { right: 0; transform: translateX(104%); clip-path: polygon(8vmin 0, 100% 0, 100% 100%, 0 100%); }
.run .xf-l { animation: xf-l var(--xf-t) cubic-bezier(.75, 0, .2, 1) both; }
.run .xf-r { animation: xf-r var(--xf-t) cubic-bezier(.75, 0, .2, 1) both; }
@keyframes xf-l { 0% { transform: translateX(-104%); } 32% { transform: translateX(0); } 46% { transform: translateX(0); } 100% { transform: translateX(-104%); } }
@keyframes xf-r { 0% { transform: translateX(104%); } 32% { transform: translateX(0); } 46% { transform: translateX(0); } 100% { transform: translateX(104%); } }

.xf-seam { position: absolute; left: 50%; top: -6%; bottom: -6%; width: 3px; margin-left: -1.5px; opacity: 0; transform: skewX(-4deg);
  background: linear-gradient(180deg, transparent, var(--xf-a) 18%, var(--xf-b) 82%, transparent); box-shadow: 0 0 26px 5px var(--xf-a); }
.run .xf-seam { animation: xf-seam var(--xf-t) linear both; }
@keyframes xf-seam { 0%, 24% { opacity: 0; transform: skewX(-4deg) scaleY(.15); } 33% { opacity: 1; transform: skewX(-4deg) scaleY(1); } 46% { opacity: 1; transform: skewX(-4deg) scaleY(1); } 56% { opacity: 0; transform: skewX(-4deg) scaleY(1.1); } 100% { opacity: 0; } }

.xf-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; }
.xf-logo { font: 900 clamp(34px, 8.5vmin, 88px)/1 var(--ui, "Segoe UI", sans-serif); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(90deg, var(--xf-a), var(--xf-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,.65)); }
.xf-logo em { font-style: normal; font-weight: 300; letter-spacing: .2em; margin-left: .3em; }
.xf-sub { font: 700 clamp(12px, 2.2vmin, 18px)/1 var(--ui, "Segoe UI", sans-serif); letter-spacing: .34em; text-transform: uppercase; color: #d7cdb9; text-shadow: 0 2px 10px #000; }
.xf-bar { width: min(260px, 44vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.xf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--xf-a), var(--xf-b)); transform-origin: left; transform: scaleX(0); }
.run .xf-mid { animation: xf-mid var(--xf-t) ease both; }
.run .xf-bar i { animation: xf-bar var(--xf-t) linear both; }
@keyframes xf-mid { 0%, 26% { opacity: 0; transform: scale(.9); } 37% { opacity: 1; transform: scale(1); } 52% { opacity: 1; transform: scale(1.04); } 66% { opacity: 0; transform: scale(1.14); } 100% { opacity: 0; } }
@keyframes xf-bar { 0%, 28% { transform: scaleX(0); } 54% { transform: scaleX(1); } 100% { transform: scaleX(1); } }

/* ---------- retour au menu : la barre du haut redescend, l'accueil se pose ---------- */
#menu.xf-in #topnav { animation: xf-nav .8s var(--ease, ease-out) .5s backwards; }
#menu.xf-in #menuStage { animation: xf-stage .9s var(--ease, ease-out) .42s backwards; }
#menu.xf-in .rise { animation-delay: calc(.6s + var(--i, 0) * 90ms); }
@keyframes xf-nav { from { opacity: 0; translate: 0 -26px; } }
@keyframes xf-stage { from { opacity: 0; scale: .962; } }

/* ---------- entree en partie : le HUD se met en place ---------- */
#hud.hud-enter #topbar { animation: hud-down .8s var(--ease, ease-out) .7s backwards; }
#hud.hud-enter #vitals, #hud.hud-enter #weaponbox { animation: hud-up .85s var(--ease, ease-out) .8s backwards; }
#hud.hud-enter #mini { animation: hud-in .85s var(--ease, ease-out) .9s backwards; }
#hud.hud-enter #feed { animation: hud-in .85s var(--ease, ease-out) .95s backwards; }
#hud.hud-enter #lobbycard { animation: hud-up .9s var(--ease, ease-out) .55s backwards; }
@keyframes hud-down { from { opacity: 0; translate: 0 -30px; } }
@keyframes hud-up { from { opacity: 0; translate: 0 34px; } }
@keyframes hud-in { from { opacity: 0; scale: .9; } }

/* ---------- grand titre : « La partie commence » (choix du point de chute) et « C'est parti ! » (atterrissage) ---------- */
#goSplash { position: absolute; left: 0; right: 0; top: 26%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; pointer-events: none; z-index: 9; opacity: 0; --go-a: #f0c869; --go-b: #f0a0c0; }
#goSplash.k-go { --go-a: #ffd27a; --go-b: #ff6a4d; top: 30%; }
#goSplash.k-boss { --go-a: #ff7a4d; --go-b: #c01830; top: 22%; }                                  /* un boss arrive : rouge sombre */
#goSplash.k-bossdead { --go-a: #ffe27a; --go-b: #ffa23a; top: 22%; }                              /* un boss est tombe : dore */
#goSplash.k-event { --go-a: #9fe7ff; --go-b: #5a8cff; top: 18%; }                                 /* evenement de la carte : bleu clair */
#goSplash.k-event .go-title, #goSplash.k-boss .go-title, #goSplash.k-bossdead .go-title { font-size: clamp(28px, 6.4vmin, 76px); }
#goSplash.show { animation: go-in 2.1s cubic-bezier(.2, .9, .2, 1) both; }
.go-title { font: 900 clamp(38px, 9vmin, 108px)/1 var(--ui, "Segoe UI", sans-serif); letter-spacing: .07em; text-transform: uppercase; padding: 0 16px;
  background: linear-gradient(180deg, #ffffff 8%, var(--go-a) 55%, var(--go-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)) drop-shadow(0 0 34px rgba(255, 170, 80, .45)); }
.go-line { height: 3px; width: min(320px, 56vw); border-radius: 3px; background: linear-gradient(90deg, transparent, var(--go-a), var(--go-b), transparent); transform-origin: center; }
#goSplash.show .go-line { animation: go-line 2.1s cubic-bezier(.2, .9, .2, 1) both; }
.go-sub { font: 700 clamp(12px, 2.4vmin, 20px)/1.2 var(--ui, "Segoe UI", sans-serif); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.9); text-shadow: 0 2px 14px #000; padding: 0 16px; }
@keyframes go-in {
  0% { opacity: 0; transform: scale(1.7); letter-spacing: .24em; filter: blur(8px); }
  11% { opacity: 1; transform: scale(1); letter-spacing: .07em; filter: blur(0); }
  16% { transform: scale(1.04); }
  22% { transform: scale(1); }
  72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(.97); }
}
@keyframes go-line { 0%, 8% { transform: scaleX(0); } 24% { transform: scaleX(1); } 100% { transform: scaleX(1); } }

/* ---------- effets coupes : on garde le texte, sans mouvement ---------- */
body.no-fx #xfade { display: none; }
body.no-fx #menu.xf-in #topnav, body.no-fx #menu.xf-in #menuStage,
body.no-fx #hud.hud-enter #topbar, body.no-fx #hud.hud-enter #vitals, body.no-fx #hud.hud-enter #weaponbox,
body.no-fx #hud.hud-enter #mini, body.no-fx #hud.hud-enter #feed, body.no-fx #hud.hud-enter #lobbycard { animation: none; }
body.no-fx #goSplash.show { animation: go-fade 1.8s ease both; }
body.no-fx #goSplash.show .go-line { animation: none; }
@keyframes go-fade { 0% { opacity: 0; } 12%, 72% { opacity: 1; } 100% { opacity: 0; } }
@media (max-height: 460px) { #goSplash { top: 18%; gap: 8px; } #goSplash.k-go { top: 20%; } }

/* =========================================================================================================================
   ECRAN DE MORT / DE VICTOIRE (pleine page) : le jeu reste visible derriere, floute et teinte (rouge a la mort, dore a la victoire) ; a gauche, directement sur
   le jeu, le titre geant, la cause de la mort et la couronne de rang ; a droite un panneau de verre pleine hauteur (stats, XP, boutons).
   Le titre tombe lettre par lettre, la couronne se remplit, les stats se posent une a une (cascade 0,15 s -> 1,75 s, calee sur `playResultAnim`).
   Victoire : rayons dores, eclat, etincelles, confettis. Mort : vignette rouge qui bat comme un coeur, cendres, jeu en noir et blanc.
   ========================================================================================================================= */
#result { --acc: #f0c869; --acc2: #f0a0c0; --glow: rgba(240, 200, 105, .5); padding: 0; align-items: stretch; justify-content: stretch; overflow-x: hidden;
  background: linear-gradient(90deg, rgba(14, 11, 8, .26), rgba(10, 8, 6, .5)); backdrop-filter: blur(5px) saturate(1.1) brightness(.9); -webkit-backdrop-filter: blur(5px) saturate(1.1) brightness(.9); }
#result.k-won { --acc: #ffd45a; --acc2: #ff9a2e; --glow: rgba(255, 200, 80, .6);
  background: radial-gradient(ellipse at 30% 42%, rgba(255, 186, 60, .24), transparent 62%), linear-gradient(90deg, rgba(34, 22, 3, .26), rgba(14, 9, 2, .55));
  backdrop-filter: blur(5px) saturate(1.25) brightness(.9); -webkit-backdrop-filter: blur(5px) saturate(1.25) brightness(.9); }
#result.k-dead { --acc: #ff4d55; --acc2: #9e1020; --glow: rgba(255, 60, 70, .55);
  background: radial-gradient(ellipse at 30% 42%, rgba(200, 20, 40, .22), transparent 62%), linear-gradient(90deg, rgba(30, 4, 6, .28), rgba(10, 2, 4, .58));
  backdrop-filter: blur(5px) grayscale(.8) brightness(.85); -webkit-backdrop-filter: blur(5px) grayscale(.8) brightness(.85); }

/* ---- decor derriere le contenu ---- */
.res-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.res-fx > * { position: absolute; }
.rf-rays { display: none; left: 32%; top: 46%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 110, .2) 0 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 42%); mask-image: radial-gradient(circle, #000 0, transparent 42%);
  animation: rf-spin 90s linear infinite, rf-fadein 1.4s .1s both; }
.rf-vig { display: none; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(150, 0, 16, .6) 100%); animation: rf-beat 1.8s ease-out both; }
.rf-flash { display: none; inset: 0; background: radial-gradient(circle at 32% 46%, #fff8d8, rgba(255, 214, 110, .6) 30%, transparent 62%); animation: rf-flash 1.4s ease-out both; }
#result.k-won .rf-rays, #result.k-won .rf-flash, #result.k-dead .rf-vig { display: block; }
.res-fx span { display: none; left: var(--x); width: var(--s); height: var(--s); opacity: 0; }
#result.k-won .res-fx span { display: block; bottom: -14px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffd45a 45%, transparent 72%);
  box-shadow: 0 0 10px 2px rgba(255, 200, 80, .55); animation: spark-up var(--d) var(--dl) linear infinite; }
#result.k-dead .res-fx span { display: block; top: -14px; width: calc(var(--s) * .7); height: calc(var(--s) * .7); border-radius: 2px; background: rgba(190, 180, 170, .55);
  animation: ash-down var(--d) var(--dl) linear infinite; }
@keyframes rf-spin { to { transform: rotate(360deg); } }
@keyframes rf-fadein { from { opacity: 0; } }
@keyframes rf-beat { 0% { opacity: 0; } 14% { opacity: 1; } 28% { opacity: .5; } 42% { opacity: .95; } 100% { opacity: .72; } }
@keyframes rf-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spark-up { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx, 30px), -105vh) scale(1.1); opacity: 0; } }
@keyframes ash-down { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--dx, 30px), 105vh) rotate(260deg); opacity: 0; } }

/* ---- la page : a gauche le heros (sur le jeu), a droite le panneau de verre ---- */
#result .res-card, #result.k-won .res-card, #result.k-dead .res-card { position: relative; width: 100%; max-width: none; min-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible;
  background: none; box-shadow: none; text-align: center; animation: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); }
#result .res-card { --acc: var(--brand); --acc2: #f0a0c0; --glow: rgba(240, 200, 105, .5); }
#result.k-won .res-card { --acc: #ffd45a; --acc2: #ff9a2e; --glow: rgba(255, 200, 80, .6); }
#result.k-dead .res-card { --acc: #ff4d55; --acc2: #9e1020; --glow: rgba(255, 60, 70, .55); }
#result .res-card::before, #result .res-card::after { display: none; }
.res-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 4vh 4vw; }
.res-hero > * { flex: none; }                                    /* (colonne flex : rien ne se comprime, et le `flex-basis: 100%` de la pastille « record » ne veut plus dire toute la hauteur) */
#result.k-dead .res-hero { animation: res-shake .55s .25s ease-out both; }
.res-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; padding: 5vh clamp(20px, 3.2vw, 56px);
  background: linear-gradient(180deg, rgba(22, 18, 14, .44), rgba(12, 10, 8, .64)); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-left: 1px solid rgba(255, 255, 255, .1); box-shadow: -30px 0 90px rgba(0, 0, 0, .35); animation: side-in .8s .25s cubic-bezier(.2, 1, .3, 1) both; }
#result.k-won .res-side { border-left-color: rgba(255, 212, 90, .4); }
#result.k-dead .res-side { border-left-color: rgba(255, 77, 85, .35); }
@keyframes side-in { from { opacity: 0; transform: translateX(80px); } }
@keyframes side-up { from { opacity: 0; transform: translateY(60px); } }
@keyframes res-shake { 0%, 100% { translate: 0 0; } 15% { translate: -9px 2px; } 30% { translate: 8px -3px; } 45% { translate: -6px 2px; } 60% { translate: 5px -1px; } 80% { translate: -2px 0; } }
@keyframes res-rise { from { opacity: 0; transform: translateY(16px); } }

.res-badge { position: relative; width: clamp(56px, 11vh, 100px); height: clamp(56px, 11vh, 100px); margin: 0 auto 1vh; }
.rb { display: none; width: 100%; height: 100%; fill: var(--acc); filter: drop-shadow(0 0 16px var(--glow)); }
#result.k-won .rb-won, #result.k-dead .rb-dead, #result.k-end .rb-end { display: block; }
#result.k-won .rb-won { animation: rb-drop .9s .15s cubic-bezier(.2, 1.5, .3, 1) both, rb-float 3.2s 1.1s ease-in-out infinite; }
#result.k-dead .rb-dead { animation: rb-fall .7s .15s cubic-bezier(.3, 1.3, .4, 1) both, rb-flicker 4.2s 1.2s infinite; }
#result.k-end .rb-end { animation: rb-drop .8s .15s both; }
@keyframes rb-drop { from { opacity: 0; transform: translateY(-70px) scale(1.7) rotate(-18deg); } 70% { transform: translateY(3px) scale(.95) rotate(4deg); } }
@keyframes rb-float { 50% { transform: translateY(-4px) rotate(3deg) scale(1.05); } }
@keyframes rb-fall { from { opacity: 0; transform: translateY(-30px) scale(2.4); } 60% { transform: translateY(2px) scale(.92); } }
@keyframes rb-flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .3; } 96% { opacity: 1; } 98% { opacity: .5; } }

#result .res-title { display: block; margin: 1vh 0; max-width: 100%; font-size: clamp(42px, 8vw, 140px); line-height: 1.02; letter-spacing: .04em;
  text-shadow: 0 0 60px var(--glow), 0 6px 0 rgba(0, 0, 0, .3); }
.rt-w { display: inline-block; white-space: nowrap; }
#result .res-title i { display: inline-block; font-style: normal; animation: rt-drop .6s cubic-bezier(.2, 1.3, .3, 1) both; animation-delay: calc(.35s + var(--i, 0) * 55ms); }
#result.k-dead .res-title i { animation-name: rt-slam; animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
#result.k-won .res-title { animation: rt-glow 2.2s 1.6s ease-in-out infinite; }
#result.k-dead .res-title { animation: rt-glitch 3.4s 1.8s infinite; }
@keyframes rt-drop { from { opacity: 0; transform: translateY(-54px) scale(1.6) rotate(-10deg); filter: blur(6px); } 70% { transform: translateY(4px) scale(.96) rotate(2deg); filter: blur(0); } to { opacity: 1; transform: none; } }
@keyframes rt-slam { from { opacity: 0; transform: scale(3); filter: blur(12px); } 55% { opacity: 1; transform: scale(.92); filter: blur(0); } 75% { transform: scale(1.05); } to { transform: none; } }
@keyframes rt-glow { 50% { text-shadow: 0 0 90px var(--glow), 0 0 22px rgba(255, 255, 255, .55), 0 6px 0 rgba(0, 0, 0, .3); } }
@keyframes rt-glitch { 0%, 93%, 100% { translate: 0 0; } 94% { translate: -4px 1px; text-shadow: 4px 0 #23e5ff, -4px 0 #ff2d55; } 96% { translate: 4px -1px; text-shadow: -4px 0 #23e5ff, 4px 0 #ff2d55; } 98% { translate: -2px 0; text-shadow: 2px 0 #23e5ff, -2px 0 #ff2d55; } }

#result .res-kicker { font-size: clamp(14px, 2.3vh, 21px); animation: res-rise .6s .75s both; }
#result .res-kill { width: min(680px, 100%); max-width: none; margin: 1.6vh auto 0; padding: 14px 22px; animation: rk-in .7s .95s cubic-bezier(.2, 1.1, .3, 1) both; }
#result .rk-line { font-size: clamp(15px, 2.7vh, 23px); }
#result .rk-sub, #result .rk-taken { font-size: clamp(12px, 1.9vh, 15px); }
@keyframes rk-in { from { opacity: 0; transform: translateX(-46px) scale(.96); box-shadow: 0 0 0 rgba(255, 60, 60, 0); } 60% { box-shadow: 0 0 34px rgba(255, 60, 60, .5); } }

/* ---- couronne de rang : se remplit selon la place, le numero descend du total jusqu'a ma place ---- */
.res-ring { --rs: clamp(150px, 30vh, 280px); position: relative; width: var(--rs); height: var(--rs); margin: 3vh auto 1vh; animation: ring-in .7s .6s cubic-bezier(.2, 1.3, .3, 1) both; }
.res-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rr-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.rr-fg { fill: none; stroke: url(#rrGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * (1 - var(--rr, 0)));
  transition: stroke-dashoffset 1.4s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 0 9px var(--glow)); }
.rr-fg.snap { transition: none; }
#rrGrad stop:first-child { stop-color: var(--acc); }
#rrGrad stop:last-child { stop-color: var(--acc2); }
.res-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.res-ring-in .res-place-n { font-size: calc(var(--rs) * .36); line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.res-ring-in .res-place-of { font-size: calc(var(--rs) * .09); margin-top: calc(var(--rs) * .04); max-width: calc(var(--rs) * .7); line-height: 1.15; }
#result.k-won .res-ring::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; animation: ring-pulse 2.2s 2s ease-out infinite; }
@keyframes ring-in { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes ring-pulse { 0% { opacity: .7; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.22); } }
#result .res-pb { margin: 1vh auto 0; display: table; }
#result .res-pb.hidden { display: none; }

/* ---- panneau de droite : stats, XP, boutons (arrivent apres le titre) ---- */
#result .res-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
#result .res-stats.guest .res-stat:nth-child(3) { grid-column: 1 / -1; }
#result .res-stat { padding: clamp(12px, 2.4vh, 22px) 8px clamp(10px, 2vh, 18px); border-radius: 18px; animation: stat-in .55s cubic-bezier(.2, 1.2, .3, 1) both; animation-delay: calc(1.05s + var(--n, 0) * 90ms); }
#result .res-stat b { font-size: clamp(26px, 4.6vh, 44px); }
#result .res-stat span { font-size: clamp(10.5px, 1.6vh, 13px); }
#result .res-stat:nth-child(2) { --n: 1; }
#result .res-stat:nth-child(3) { --n: 2; }
#result .res-stat:nth-child(4) { --n: 3; }
@keyframes stat-in { from { opacity: 0; transform: translateY(18px) scale(.85); } }
#result .res-xp { padding: clamp(12px, 2vh, 20px) 18px; animation: res-rise .6s 1.5s both; }
#result .res-actions { margin-top: 0; animation: res-rise .6s 1.75s both; }
#result .res-replay { height: clamp(66px, 10vh, 92px); }
#result .res-note { margin-top: 8px; }

/* ---- le moment de la mort / de la victoire, avant la page : l'ecran vire au noir et blanc, une vignette rouge bat ; victoire : couleurs eclatantes ---- */
#game { transition: filter 1.1s ease; }
body.death-fx #game { filter: grayscale(.9) brightness(.78) contrast(1.1); }
body.win-fx #game { filter: saturate(1.25) brightness(1.06); }
#deathVig { position: absolute; inset: 0; z-index: 24; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(150, 0, 16, .55) 100%); }
body.death-fx #deathVig { animation: rf-beat 1.8s ease-out both; }

/* ---- mode spectateur / fin de partie : une barre basse (au lieu d'une grosse bande au milieu), sans le sac ni les barres du joueur mort ---- */
#hud.in-spec #weaponbox, #hud.in-spec #vitals, #hud.in-spec #help, #hud.in-spec #reloadtag, #hud.in-spec #prompt, #hud.in-spec #usebar { display: none; }
#deadcard, #endcard { position: absolute; left: 50%; right: auto; top: auto; bottom: 28px; transform: translateX(-50%); width: min(940px, calc(100vw - 32px)); min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; text-align: left; clip-path: none; border-radius: 18px;
  background: rgba(14, 11, 9, .74); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(255, 90, 90, .38);
  box-shadow: 0 16px 56px rgba(0, 0, 0, .5); animation: card-up .6s cubic-bezier(.2, 1.1, .3, 1) both; }
#endcard { border-color: rgba(240, 200, 105, .38); }
#deadcard::before, #endcard::before { left: 22px; right: 22px; height: 2px; border-radius: 2px; }
#deadcard::before { background: linear-gradient(90deg, transparent, #ff4d55, transparent); }
.dc-main { flex: none; }
#deadcard h2, #endcard h2 { margin: 0; font-size: 19px; letter-spacing: 2px; }
#deadcard p, #endcard p { margin: 3px 0 0; font-size: 13px; }
.dc-spec { flex: 1 1 auto; text-align: center; }
.dc-spec b { color: var(--brand2); }
.dc-kill { flex: none; text-align: center; color: rgba(255, 255, 255, .78); }
#deadcard .card-actions { margin: 0; flex: none; flex-wrap: nowrap; justify-content: flex-end; }
@keyframes card-up { from { opacity: 0; translate: 0 34px; } }

/* ---- petits ecrans : une seule colonne (le panneau de verre passe sous le titre) ---- */
@media (max-width: 900px), (max-aspect-ratio: 1 / 1) {
  #result .res-card, #result.k-won .res-card, #result.k-dead .res-card { grid-template-columns: 1fr; min-height: 0; }
  .res-hero { padding: 5vh 5vw 2vh; }
  .res-side { padding: 26px 6vw 34px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -30px 90px rgba(0, 0, 0, .35); animation-name: side-up; }
  #result .res-title { font-size: clamp(34px, 11vw, 80px); }
  .res-ring { --rs: clamp(120px, 21vh, 200px); margin: 2vh auto 1vh; }
  #deadcard, #endcard { flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 14px; bottom: 18px; }
  .dc-main { flex: 1 1 100%; }
  #deadcard .card-actions { justify-content: center; flex-wrap: wrap; }
}
/* telephone en paysage : deux colonnes serrees, tout tient sans defiler */
@media (max-height: 480px) and (min-width: 560px) {
  #result .res-card, #result.k-won .res-card, #result.k-dead .res-card { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr); min-height: 100%; }
  .res-hero { padding: 6px 12px; }
  .res-badge { display: none; }
  #result .res-title { font-size: clamp(28px, 6.5vw, 50px); margin: 0; }
  #result .res-kicker { font-size: 12px; }
  #result .res-kill { margin: 6px auto 0; padding: 6px 10px; }
  .res-ring { --rs: 84px; margin: 6px auto 2px; }
  .res-side { padding: 8px 14px; gap: 8px; animation-name: side-in; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); }
  #result .res-stats { gap: 5px; }
  #result .res-stat { padding: 6px 2px; border-radius: 10px; }
  #result .res-stat b { font-size: 17px; }
  #result .res-xp { padding: 7px 10px; }
  #result .res-parts { display: none; }
  #result .res-replay { height: 46px; }
  #result .res-secondary .btn { padding: 7px 8px; font-size: 12.5px; }
  #result .res-note { margin-top: 4px; font-size: 11px; }
}
@media (max-height: 640px) { .res-badge { display: none; } }
body.lite .res-fx span, body.lite .rf-rays { display: none !important; }
body.lite #game { filter: none !important; }
body.lite #result, body.lite .res-side { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.no-fx .res-fx, body.no-fx #deathVig { display: none; }
body.no-fx #game { transition: none; filter: none !important; }
body.no-fx #result .res-hero, body.no-fx #result .res-side, body.no-fx #result .res-title, body.no-fx #result .res-title i, body.no-fx #result .rb, body.no-fx #result .res-ring, body.no-fx #result .res-ring::after,
body.no-fx #result .res-kicker, body.no-fx #result .res-kill, body.no-fx #result .res-stat, body.no-fx #result .res-xp, body.no-fx #result .res-actions,
body.no-fx #deadcard, body.no-fx #endcard { animation: none; }
body.no-fx .rr-fg { transition: none; }

/* =========================================================================================================================
   SALLE D'ATTENTE v2 : une case par joueur avec un apercu anime de son personnage (skin, aura, couronne PRIME), les places libres en pointilles,
   l'horloge du compte a rebours, une astuce qui tourne. Un nouveau joueur arrive avec un flash, un anneau et un son.
   ========================================================================================================================= */
#lobbywait .lw-card:not(.pv) { width: min(720px, 100%); padding: 22px 26px 20px; }
.lw-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; margin-bottom: 8px; }
.lw-head .lw-title { margin: 6px 0 0; font-size: clamp(19px, 3.6vw, 26px); }
.lw-clock { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; }
.lw-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lc-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3.4; }
.lc-arc { fill: none; stroke: var(--brand); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .5s linear, stroke .3s; filter: drop-shadow(0 0 4px rgba(240, 200, 105, .6)); }
.lw-clock b { font: 900 23px/1 var(--mono); color: #fff; }
#lobbywait.urgent .lc-arc { stroke: #ff6a5c; filter: drop-shadow(0 0 5px rgba(255, 90, 70, .7)); }
#lobbywait.urgent .lw-clock b { color: #ff9a8a; animation: lw-tick 1s ease-in-out infinite; }
@keyframes lw-tick { 50% { transform: scale(1.18); } }

.lw-roster { display: grid; grid-template-columns: repeat(var(--lw-cols, 3), minmax(0, 1fr)); gap: 10px; margin: 8px 0 10px; }
.lw-slot { position: relative; min-width: 0; padding: 4px 6px 9px; border-radius: 16px; overflow: hidden; text-align: center;
  background: radial-gradient(circle at 50% 36%, rgba(var(--rc, 255, 255, 255), .16), transparent 64%), rgba(0, 0, 0, .3); border: 1px solid rgba(var(--rc, 255, 255, 255), .22); }
.lw-slot.rar { border-color: rgba(var(--rc), .55); box-shadow: 0 0 24px rgba(var(--rc), .16) inset; }
.lw-slot canvas { display: block; width: 100%; max-width: 150px; height: 100px; margin: 0 auto; }
.lw-slot.me { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 0 24px rgba(240, 200, 105, .22); }
.lw-me { position: absolute; top: 7px; left: 7px; font: 900 10px var(--mono); font-style: normal; letter-spacing: 1px; padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #2a1710; }
.lw-name { margin-top: 2px; padding: 0 2px; font: 800 14px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-slot.prime .lw-name { color: #ffd45a; text-shadow: 0 0 12px rgba(255, 190, 50, .5); }
.lw-slot.prime .lw-name::before { content: "♛ "; }
.lw-sub { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; font: 700 11px var(--ui); }
.lw-lvl { padding: 1px 7px; border-radius: 999px; background: rgba(240, 200, 105, .14); border: 1px solid rgba(240, 200, 105, .3); color: var(--brand); }
.lw-skin { letter-spacing: .3px; }
.lw-slot.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 10px 6px; background: rgba(0, 0, 0, .18); border: 1px dashed rgba(255, 255, 255, .18); box-shadow: none; }
.lw-slot.empty.bonus { opacity: .5; }
.lw-slot.empty .lw-name { margin-top: 10px; font-size: 12px; font-weight: 700; opacity: .5; }
.lw-ghost { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .22); display: grid; place-items: center; animation: lw-ghost 2.6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .3s); }
.lw-ghost b { font: 900 26px var(--mono); opacity: .3; }
@keyframes lw-ghost { 50% { transform: scale(1.07); border-color: rgba(240, 200, 105, .55); } }
.lw-slot.enter-first { animation: lw-in .55s cubic-bezier(.2, 1.3, .3, 1) both; animation-delay: calc(.9s + var(--k, 0) * 90ms); }
.lw-slot.enter-new { animation: lw-join .75s cubic-bezier(.2, 1.4, .3, 1) both; }
.lw-slot.enter-new::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: lw-ring .95s ease-out both; }
@keyframes lw-in { from { opacity: 0; transform: translateY(20px) scale(.85); } }
@keyframes lw-join { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); filter: brightness(2.4); } 60% { transform: scale(1.08); filter: brightness(1.4); } 100% { transform: none; filter: none; } }
@keyframes lw-ring { from { box-shadow: 0 0 0 0 rgba(240, 200, 105, .95), inset 0 0 40px rgba(255, 240, 190, .55); } to { box-shadow: 0 0 0 24px rgba(240, 200, 105, 0), inset 0 0 0 rgba(255, 240, 190, 0); } }

.lw-fill { margin: 8px 0 0; font: 600 12.5px var(--ui); opacity: .72; min-height: 16px; }
.lw-tip { margin: 8px 0 14px; min-height: 18px; font: 500 12.5px var(--ui); opacity: .82; animation: lw-tipin .6s both; }
.lw-tip b { margin-right: 8px; padding: 2px 7px; border-radius: 5px; font: 800 10px var(--mono); letter-spacing: 1.5px; background: rgba(240, 160, 192, .18); color: var(--brand2); }
@keyframes lw-tipin { from { opacity: 0; transform: translateY(6px); } }
#lobbywait .lw-count { margin-top: 2px; }

/* « Lancer maintenant » : le vote des joueurs presents (salon public). Seul, un clic suffit ; a plusieurs, plus de la moitie lance le depart dans 5 s.
   Celui qui a vote voit sa case « Prete » (pastille verte) et le bouton devient « Annuler ». */
.lw-go { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 8px; }
.lw-go.hidden { display: none; }
.lw-go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: auto; margin: 0; padding: 13px 34px; font-size: 17px; letter-spacing: .6px;
  animation: lw-go-glow 2.4s ease-in-out infinite; }
.lw-go-btn.voted { animation: none; }
.lw-go-votes { padding: 2px 10px; border-radius: 999px; font: 800 13px var(--mono); font-style: normal; letter-spacing: 0; background: rgba(42, 23, 16, .2); color: inherit; }
.lw-go-votes.hidden { display: none; }
.lw-go-btn.voted .lw-go-votes { background: rgba(255, 255, 255, .12); }
.lw-go-hint { margin: 0; max-width: 460px; font: 600 13px/1.4 var(--ui); opacity: .78; text-align: left; }
@keyframes lw-go-glow { 50% { box-shadow: 0 0 0 5px rgba(240, 200, 105, .16), 0 10px 34px rgba(240, 200, 105, .45); } }
.lw-slot .lw-ready { position: absolute; top: 7px; right: 7px; padding: 2px 8px; border-radius: 6px; font: 800 10px var(--mono); font-style: normal; letter-spacing: .8px;
  color: #0e2a14; background: linear-gradient(135deg, #8ff0a4, #4cc872); box-shadow: 0 2px 10px rgba(76, 200, 114, .45); animation: lw-ready-in .35s cubic-bezier(.2, 1.4, .3, 1) both; }
.lw-slot.go { border-color: rgba(120, 230, 150, .7); box-shadow: 0 0 0 1px rgba(120, 230, 150, .5) inset, 0 0 22px rgba(76, 200, 114, .22); }
@keyframes lw-ready-in { from { opacity: 0; transform: scale(.5) rotate(8deg); } }

/* salle privee : ni horloge ni cases (elle a sa propre liste) ; un petit portrait devant chaque nom */
.lw-card.pv > .lw-head, .lw-card.pv > .lw-roster, .lw-card.pv > .lw-foot, .lw-card.pv > .lw-go { display: none; }
.pv-chip canvas { width: 26px; height: 26px; vertical-align: middle; margin: -3px 4px -3px -4px; }

/* telephone en paysage / petits ecrans : tous les joueurs sur une ligne, sans texte secondaire */
@media (max-height: 480px) {
  #lobbywait .lw-card:not(.pv) { padding: 10px 14px 8px; width: min(760px, 100%); }
  .lw-head { margin-bottom: 2px; }
  .lw-clock { width: 46px; height: 46px; }
  .lw-clock b { font-size: 17px; }
  .lw-roster { grid-template-columns: repeat(var(--lw-n, 6), minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
  .lw-slot canvas { height: 58px; }
  .lw-slot.empty { min-height: 88px; padding: 6px 2px; }
  .lw-ghost { width: 40px; height: 40px; }
  .lw-ghost b { font-size: 18px; }
  .lw-name { font-size: 11px; }
  .lw-sub, .lw-slot.empty .lw-name, .lw-tip { display: none; }
  .lw-me { top: 3px; left: 3px; font-size: 8px; padding: 1px 4px; }
  .lw-slot .lw-ready { top: 3px; right: 3px; font-size: 8px; padding: 1px 4px; }
  .lw-go { margin: 2px 0 4px; gap: 4px 12px; }
  .lw-go-btn { padding: 7px 20px; font-size: 13px; }
  .lw-go-hint { display: none; }
  .lw-fill { margin: 4px 0; font-size: 11px; }
}
@media (max-width: 520px) { .lw-roster { --lw-cols: 2 !important; } .lw-head .lw-title { font-size: 18px; } }
body.no-fx .lw-slot, body.no-fx .lw-slot::after, body.no-fx .lw-ghost, body.no-fx .lw-tip, body.no-fx #lobbywait.urgent .lw-clock b, body.no-fx .lw-go-btn, body.no-fx .lw-ready { animation: none; }

/* =========================================================================================================================
   SALLE D'ATTENTE v3 : PLEINE PAGE. La carte ne flotte plus au milieu (720 px) : elle prend tout l'ecran, le jeu flou et sombre reste visible derriere ;
   titre + horloge en haut, les cases des joueurs se partagent toute la hauteur (le personnage y est 2-3 fois plus grand), compteur / barre / astuce / Annuler en bas.
   Telephone en paysage (< 481 px de haut) : la petite carte de la v2 (une ligne de 8 cases) ne change pas. Salle privee : sa carte ne change pas.
   ========================================================================================================================= */
@media (min-height: 481px) {
  #lobbywait { padding: 0; align-items: stretch; justify-content: stretch; }
  #lobbywait .lw-card:not(.pv) { width: 100%; max-width: none; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 0; border: 0; box-shadow: none;
    padding: clamp(18px, 4vh, 44px) clamp(20px, 5vw, 96px) clamp(16px, 3vh, 34px); animation: fadeIn .5s ease-out both;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(34, 26, 16, .3), rgba(8, 7, 6, .6)), linear-gradient(180deg, rgba(14, 11, 8, .34), rgba(8, 6, 4, .64));
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  #lobbywait .lw-card:not(.pv)::before { height: 3px; }
  #lobbywait .lw-head { flex: none; margin-bottom: clamp(10px, 2.2vh, 26px); }
  #lobbywait .lw-head .lw-kicker { font-size: clamp(12px, 1.7vh, 16px); }
  #lobbywait .lw-head .lw-title { margin-top: 8px; font-size: clamp(26px, 3.6vw, 56px); }
  #lobbywait .lw-clock { width: clamp(72px, 11vh, 110px); height: clamp(72px, 11vh, 110px); }
  #lobbywait .lw-clock b { font-size: clamp(26px, 4.2vh, 42px); }

  #lobbywait .lw-roster { flex: 1 1 auto; min-height: 0; margin: 0; gap: clamp(10px, 1.6vw, 24px); grid-auto-rows: minmax(0, 1fr); }
  #lobbywait .lw-slot { display: flex; flex-direction: column; justify-content: center; padding: clamp(4px, 1vh, 12px) 12px clamp(8px, 1.4vh, 16px); border-radius: 22px; }
  #lobbywait .lw-slot canvas { flex: 1 1 0; min-height: 70px; width: calc(100% + 24px); max-width: none; height: auto; margin: calc(-1 * clamp(4px, 1vh, 12px)) -12px 0; }      /* (le dessin va jusqu'aux bords de la case : l'aura est coupee par son coin arrondi, pas au milieu) */
  #lobbywait .lw-slot canvas { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }      /* (fondu en bas : pas de coupure nette au-dessus du pseudo) */
  #lobbywait .lw-name { margin-top: 4px; font-size: clamp(15px, 2.5vh, 24px); }
  #lobbywait .lw-sub { gap: 8px; margin-top: 6px; font-size: clamp(11px, 1.8vh, 15px); }
  #lobbywait .lw-lvl { padding: 2px 11px; }
  #lobbywait .lw-me { top: 12px; left: 12px; padding: 3px 10px; font-size: clamp(10px, 1.5vh, 13px); }
  #lobbywait .lw-slot.empty { min-height: 0; padding: 10px; }
  #lobbywait .lw-ghost { width: clamp(64px, 13vh, 130px); height: clamp(64px, 13vh, 130px); }
  #lobbywait .lw-ghost b { font-size: clamp(26px, 5vh, 52px); }
  #lobbywait .lw-slot.empty .lw-name { margin-top: 14px; font-size: clamp(12px, 1.9vh, 17px); }
  #lobbywait .lw-ready { top: 12px; right: 12px; padding: 3px 10px; font-size: clamp(10px, 1.5vh, 13px); }

  /* le vote « Lancer maintenant » : sous les cases, bien en vue */
  #lobbywait .lw-go { flex: none; margin: clamp(10px, 1.8vh, 20px) auto 0; }
  #lobbywait .lw-go-btn { padding: clamp(10px, 1.8vh, 16px) clamp(26px, 4vw, 54px); font-size: clamp(15px, 2.4vh, 21px); }
  #lobbywait .lw-go-hint { font-size: clamp(12.5px, 1.9vh, 16px); }

  /* le pied : compteur | barre | nombre de bots sur une ligne, l'astuce dessous (la place gagnee agrandit les personnages) */
  #lobbywait .lw-foot { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px clamp(14px, 2vw, 30px);
    width: min(1100px, 100%); margin: clamp(10px, 2vh, 20px) auto clamp(8px, 1.6vh, 16px); }
  #lobbywait .lw-count { margin: 0; white-space: nowrap; font-size: clamp(15px, 2.2vh, 21px); }
  #lobbywait .lw-count b { font-size: clamp(26px, 4vh, 42px); }
  #lobbywait .lw-bar { margin: 0; width: 100%; height: 10px; }
  #lobbywait .lw-fill { margin: 0; text-align: right; font-size: clamp(12.5px, 1.9vh, 16px); }
  #lobbywait .lw-tip { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-size: clamp(12.5px, 1.9vh, 16px); }
  #lobbywait #lobbyLeaveBtn { flex: none; align-self: center; padding: 11px 30px; font-size: 14px; }
}

/* =========================================================================================================================
   MENU EN JEU (Echap ou le bouton ⚙ du haut) : reprendre, langue / effets / sons / mode leger, quitter la partie (avec confirmation en pleine partie).
   La partie continue derriere : le jeu est seulement floute et assombri.
   ========================================================================================================================= */
#pauseMenu { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow-y: auto; pointer-events: auto;
  background: radial-gradient(ellipse at 50% 45%, rgba(10, 8, 6, .42), rgba(6, 5, 4, .78)); -webkit-backdrop-filter: blur(8px) saturate(.9); backdrop-filter: blur(8px) saturate(.9);
  animation: fadeIn .18s ease-out both; }
.pz-card { width: min(520px, 100%); margin: auto; padding: 24px 26px 22px; border-radius: 24px; text-align: left; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(155deg, rgba(46, 39, 32, .94), rgba(20, 17, 14, .97)); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: pz-in .28s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes pz-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.pz-head h2 { font: 900 26px var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--brand); }
.pz-head p { margin-top: 4px; font-size: 13px; opacity: .65; }
.pz-resume { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 16px 0 0; padding: 16px; font-size: 17px; }
.pz-resume kbd { padding: 1px 8px; border-radius: 6px; background: rgba(42, 23, 16, .16); border: 1px solid rgba(42, 23, 16, .4); color: #2a1710; font-size: 11px; }
.pz-sec { margin: 18px 0 8px; font: 800 11.5px var(--ui); letter-spacing: 1.8px; text-transform: uppercase; color: var(--brand2); }
.pz-set { display: grid; gap: 8px; }
.pz-set .set-row { padding: 9px 14px; border-radius: 14px; }
.pz-set .set-vol input[type=range] { width: 120px; }
.pz-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12.5px; }
.pz-keys span { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--card-line); }
.pz-keys kbd { margin-right: 3px; }
.pz-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pz-quit { width: 100%; margin: 0; color: #ff9a9a; border-color: rgba(255, 90, 90, .42); }
.pz-quit:hover { background: rgba(229, 72, 77, .18); border-color: rgba(255, 90, 90, .7); }
.pz-confirm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 700 14px var(--ui); }
.pz-confirm span { flex: 1 1 100%; }
.pz-confirm .btn { flex: 1 1 0; margin: 0; }
.pz-yes { background: linear-gradient(90deg, #ff7a5c, #e5484d); color: #fff; }
.hud-menu.on { border-color: var(--brand); background: rgba(240, 200, 105, .2); }
@media (max-height: 780px) { .pz-keys, .pz-sec.only-pc { display: none; } }                      /* (fenetre peu haute : la liste des touches passe apres les reglages) */
@media (max-height: 560px) {
  .pz-card { padding: 14px 18px 14px; border-radius: 18px; }
  .pz-head h2 { font-size: 20px; }
  .pz-head p { display: none; }
  .pz-resume { margin-top: 10px; padding: 10px; font-size: 15px; }
  .pz-sec { margin: 10px 0 6px; }
  .pz-set { grid-template-columns: 1fr 1fr; }
  .pz-set .set-row { padding: 7px 10px; }
  .pz-keys { display: none; }
  .pz-actions { margin-top: 10px; padding-top: 10px; }
}
body.no-fx #pauseMenu, body.no-fx .pz-card { animation: none; }
body.lite #pauseMenu { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6, 5, 4, .8); }

/* salle privee : jamais le compteur « n / 6 » ni la barre du salon public (l'hote lance, personne n'attend un seuil), quelle que soit la taille de l'ecran */
#lobbywait .lw-card.pv > .lw-head, #lobbywait .lw-card.pv > .lw-roster, #lobbywait .lw-card.pv > .lw-foot { display: none !important; }
