/* ===== ZONE 13 : SEARCH AND DESTROY ===== */

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

/* ─── ZONE PRINCIPALE ─────────────────────────────── */

.zone-content-image {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

/* ─── CHAMP IMAGE ─────────────────────────────────── */

#zone13ImageField {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ─── CANVAS GLITCH ───────────────────────────────── */

#zone13GlitchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ─── ARCHIVES FLOTTANTES ─────────────────────────── */

.zone13-archive {
  position: absolute;
  z-index: 3;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: pointer;
}

.zone13-archive:hover img {
  outline: 1px solid rgba(255,255,255,0.18);
}

.zone13-archive:active { cursor: grabbing; }

.zone13-floating-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,0.35);
  user-select: none;
  transition: filter 0.6s ease;
}

/* ─── BARRE DE VIE ────────────────────────────────── */

.z13-health-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(0,0,0,0.38);
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
}

.z13-health-bar {
  width: 100%;
  height: 100%;
  background: #b02020;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.18s ease, background 0.35s ease;
}

.z13-health-bar.is-low    { background: #e02020; }
.z13-health-bar.is-critic { background: #ff1818; }

/* ─── OVERLAY DE MORT ─────────────────────────────── */

.z13-death-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(0,0,0,0.80);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.z13-death-overlay.is-dead {
  opacity: 1;
  pointer-events: auto;
}

.z13-dead-cross {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.z13-dead-cross::before,
.z13-dead-cross::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: rgba(255,255,255,0.65);
  transition: background 0.18s ease;
}

.z13-dead-cross::before {
  width: 2px; height: 26px;
  transform: translate(-50%, -50%);
}

.z13-dead-cross::after {
  width: 26px; height: 2px;
  transform: translate(-50%, -50%);
}

.z13-death-overlay:hover .z13-dead-cross::before,
.z13-death-overlay:hover .z13-dead-cross::after {
  background: #fff;
}

.z13-restore-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.18s ease;
}

.z13-death-overlay:hover .z13-restore-label {
  color: rgba(255,255,255,0.85);
}

/* ─── CROIX CHAOS ─────────────────────────────────── */

.z13-cross {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  z-index: 8;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.z13-cross::before {
  content: "";
  position: absolute;
  left: 10px; top: 0;
  width: 2px; height: 22px;
  background: rgba(255,255,255,0.85);
}

.z13-cross::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 14px; height: 2px;
  background: rgba(255,255,255,0.85);
}

.z13-cross.is-hovered::before,
.z13-cross.is-hovered::after {
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.7);
}

.z13-cross.is-ghost {
  opacity: 0.18;
  pointer-events: none;
}

.z13-cross-hint {
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.8);
  padding: 3px 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.z13-cross.is-hovered .z13-cross-hint { opacity: 1; }

/* ─── NOISYLIVINGCODE BUTTON ──────────────────────────── */

.z13-transmission-btn {
  position: fixed;
  left:   18px;
  bottom: 18px;
  z-index: 100070; /* passe au-dessus de la sidebar */

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(255, 255, 255, 0);
  background: rgba(160, 0, 0, 0.952);
  color: rgb(255, 255, 255);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 13px;
  cursor: pointer;

  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.z13-transmission-btn:hover {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.44);
}

.z13-transmission-btn:active { transform: scale(0.96); }

.z13-transmission-btn.is-active {
  color: rgb(0, 0, 0);
  border-color: rgba(255,255,255,0.44);
  background: rgb(255, 255, 255);
}

.z13-tx-ring {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.40);
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.z13-transmission-btn.is-active .z13-tx-ring {
  border-color: rgba(0, 0, 0, 0.8);
  animation: z13TxPulse 1.8s ease-in-out infinite;
}

.z13-transmission-btn.is-firing .z13-tx-ring {
  background: rgb(157, 0, 0);
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.73);
  animation: z13TxFire 0.5s ease-out forwards;
}

@keyframes z13TxPulse {
  0%,100% { transform: scale(1);    opacity: 0.45; }
  50%     { transform: scale(1.55); opacity: 1;    }
}

@keyframes z13TxFire {
  0%   { transform: scale(1.8); opacity: 1;   }
  100% { transform: scale(1);   opacity: 0.6; }
}

/* Desktop — petit décalage pour la marge de la sidebar */
@media (pointer: fine) {
  .z13-transmission-btn {
    left:   26px;
    bottom: 28px;
  }
}
/* MOBILE + TABLETTE */
@media (pointer: coarse) {

  .z13-transmission-btn {
    left: calc(16px + env(safe-area-inset-left, 0px)) !important;
   bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;

    z-index: 100430 !important;

    padding: 12px 17px !important;
    gap: 10px !important;

    font-size: 10px !important;
    letter-spacing: 0.16em !important;
    line-height: 1 !important;

    max-width: 52vw !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .z13-tx-ring {
    width: 8px !important;
    height: 8px !important;
  }
}