/* Survie zombie (combat/survival.js) : manche en grand dans un coin, points et gains, atouts, bonus actifs, grenades,
   coéquipiers à terre, barre de réanimation, bandeaux, écran de fin. Couleurs de rouille et de craie, lisibles sur le
   carrelage clair comme dans la cour sombre. */
.zs-hud { position: fixed; inset: 0; pointer-events: none; z-index: 6; font-family: 'Rajdhani', sans-serif; color: #efe6d2; }
.zs-hud.hidden { display: none; }

/* Barre des touches : celles de la Survie (couteau, grenade, E) à la place de la classe et des scores */
body:not(.survie) #help .survie-only, body.survie #help .pvp-only { display: none; }

/* Ce que la Survie n'utilise pas de l'Arène */
.arena-hud.survie .ar-match, .arena-hud.survie .ar-feed, .arena-hud.survie .ar-board, .arena-hud.survie .ar-dead,
.arena-hud.survie .ar-end, .arena-hud.survie .ar-sas, .arena-hud.survie .ar-class { display: none !important; }
.arena-hud.survie .ar-w.up .ar-w-name { color: #ffcf6a; }
.arena-hud.survie .ar-vignette { background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(110, 30, 10, 0.5) 80%, rgba(60, 12, 4, 0.85) 100%); }

/* La manche : un grand chiffre de rouille, en bas à gauche, au-dessus de la santé */
.zs-round { position: absolute; left: 26px; bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; line-height: 0.82; }
.zs-round.hidden { display: none; }
.zs-round-n {
  font: 700 96px 'Rajdhani', sans-serif; color: #b8321c; letter-spacing: -2px;
  text-shadow: 0 0 2px #2a0a04, 2px 3px 0 rgba(20, 4, 2, 0.75), 0 0 18px rgba(120, 20, 6, 0.45);
}
.zs-round-l { font-weight: 700; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: #d9b89a; margin-left: 4px; }
.zs-round.flash .zs-round-n { animation: zs-round 1.6s ease-out; }
@keyframes zs-round { 0% { color: #fff3e0; transform: scale(1.25); } 100% { color: #b8321c; transform: scale(1); } }

/* Points : les miens, les gains qui montent et s'effacent, les coéquipiers dessous */
.zs-points { position: absolute; right: 24px; bottom: 190px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.zs-me { position: relative; display: flex; align-items: center; }
.zs-me > b { font: 700 40px 'Rajdhani', sans-serif; color: #ffd98a; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
.zs-gains { position: absolute; right: calc(100% + 10px); bottom: 6px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2px; }
.zs-gains i {
  --k: 0; font-style: normal; font-weight: 700; font-size: 20px; color: #ffe7a8; white-space: nowrap;
  opacity: calc(1 - var(--k)); transform: translateY(calc(var(--k) * -18px)); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.zs-gains i.neg { color: #ff8a6a; }
.zs-gains small { font-size: 13px; color: #d9c7a6; }
.zs-mate { display: flex; gap: 10px; align-items: baseline; padding: 1px 10px; border-radius: 6px; background: rgba(16, 10, 6, 0.55); }
.zs-mate span { font-size: 15px; font-weight: 600; color: #d9cdb6; }
.zs-mate b { font-size: 18px; color: #f2d79c; }
.zs-mate.down { background: rgba(120, 24, 10, 0.7); }

/* Atouts (bas, à gauche de la santé), grenades, bonus actifs (haut, au centre) */
.zs-perks { position: absolute; left: 22px; bottom: 42px; display: flex; gap: 6px; }
.zs-perks i {
  font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  color: #111; background: var(--c); box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.zs-grenades { position: absolute; right: 24px; bottom: 44px; display: flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 700; color: #d9cdb6; }
.zs-grenades i { width: 11px; height: 14px; border-radius: 45%; background: #6b7553; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.35), 0 0 3px #000; }
.zs-effects { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.zs-effects i {
  font-style: normal; font-weight: 700; font-size: 17px; padding: 3px 12px; border-radius: 8px;
  border: 1px solid var(--c); color: var(--c); background: rgba(12, 8, 4, 0.65);
}
.zs-effects b { color: #fff; margin-left: 4px; }

/* Bandeau (attente dans le Sas, pause entre deux manches) */
.zs-banner {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 8px;
  background: rgba(16, 10, 6, 0.72); border: 1px solid rgba(217, 160, 90, 0.4); font-size: 18px; font-weight: 600; white-space: nowrap;
}
.zs-banner.hidden { display: none; }

/* Annonce au centre (manche, bonus, courant) */
.zs-center { position: absolute; left: 50%; top: 28%; transform: translateX(-50%); text-align: center; transition: opacity 0.6s; }
.zs-center.hidden { display: none; }
.zs-center.out { opacity: 0; }
.zs-center-t { font: 700 52px 'Rajdhani', sans-serif; color: #e9c9a0; letter-spacing: 2px; text-shadow: 0 0 2px #000, 0 3px 10px rgba(0, 0, 0, 0.85); }
.zs-center-s { font-size: 20px; font-weight: 600; color: #d9cdb6; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
/* bonus ramassé (27/10) : le nom à sa couleur, liseré sombre, qui arrive en grandissant ; ce qu'il fait dessous */
.zs-center.zs-bonus .zs-center-t { color: var(--c); font-size: 58px; text-transform: uppercase; letter-spacing: 4px; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55); text-shadow: 0 0 2px #000, 0 4px 14px rgba(0, 0, 0, 0.9); }
.zs-center.zs-bonus .zs-center-s { margin-top: 2px; color: #efe6d2; }
.zs-center.zs-bonus .zs-center-t::before, .zs-center.zs-bonus .zs-center-t::after { content: ''; display: inline-block; width: 46px; height: 3px; margin: 0 16px; vertical-align: middle; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
.zs-center.pop .zs-center-t { animation: zs-pop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes zs-pop { from { transform: scale(0.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Réanimation, planches : la barre sous le réticule */
.zs-progress { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); text-align: center; }
.zs-progress.hidden { display: none; }
.zs-progress span { display: block; font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.zs-progress i { display: block; width: 220px; height: 7px; margin-top: 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.zs-progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9a35a, #ffe2a0); }

/* À terre */
.zs-down { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); text-align: center; }
.zs-down.hidden { display: none; }
.zs-down-t { font: 700 54px 'Rajdhani', sans-serif; color: #d2442a; letter-spacing: 6px; text-shadow: 0 0 2px #000, 0 3px 12px rgba(0, 0, 0, 0.9); }
.zs-down-s { font-size: 20px; font-weight: 600; text-shadow: 0 1px 4px #000; }
body.survie.zs-is-down #scene { filter: saturate(0.35) brightness(0.8); }

/* Coéquipiers à terre : un repère au-dessus d'eux */
.zs-mark { position: absolute; transform: translate(-50%, -100%); text-align: center; white-space: nowrap; }
.zs-mark b {
  display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-size: 24px; color: #fff;
  background: #c0391f; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 10px rgba(0, 0, 0, 0.8);
}
.zs-mark span { display: block; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px #000; }

/* Écran de fin */
.zs-end {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%); min-width: 460px; padding: 18px 26px; text-align: center;
  border-radius: 12px; background: rgba(14, 8, 4, 0.86); border: 1px solid rgba(184, 50, 28, 0.55);
}
.zs-end.hidden { display: none; }
.zs-end-t { font: 700 42px 'Rajdhani', sans-serif; color: #d2442a; letter-spacing: 3px; }
.zs-end-r { font-size: 20px; margin: 2px 0 12px; }
.zs-end-r b { font-size: 28px; color: #ffd98a; }
.zs-end table { width: 100%; border-collapse: collapse; font-size: 16px; }
.zs-end th { font-size: 13px; font-weight: 700; color: #b9a98a; text-transform: uppercase; letter-spacing: 1px; padding: 4px 8px; }
.zs-end td { padding: 4px 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.zs-end tr.me td { color: #ffd98a; font-weight: 700; }
.zs-end-n { margin-top: 12px; color: #b9a98a; font-size: 15px; }

/* La carte de la Survie dans le menu des portails */
.arena-map.survie .arena-map-plan { position: relative; }
.arena-map-label {
  position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #1a0c06; background: #d9a35a;
}

@media (max-width: 720px) {
  .zs-round-n { font-size: 64px; }
  .zs-end { min-width: 0; width: 92vw; }
}
@media (max-width: 700px) {
  .zs-center-t, .zs-center.zs-bonus .zs-center-t { font-size: 34px; letter-spacing: 2px; }
  .zs-center.zs-bonus .zs-center-t::before, .zs-center.zs-bonus .zs-center-t::after { width: 20px; margin: 0 8px; }
  .zs-center-s { font-size: 15px; }
}
