/* ═══════════════════════════════════════════════════════════
   OVERLAY GAMESHOW, coquille
   Source navigateur unique pour l'OBS distant.
   1920x1080, fond transparent.
   ═══════════════════════════════════════════════════════════ */

html, body{
  margin: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.stack{
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ── Une couche = un overlay existant en iframe ──
   Toutes les couches restent CHARGEES et connectees au WebSocket
   en permanence : basculer display ne recharge pas une iframe,
   son etat interne est conserve.

   On utilise display plutot que opacity + visibility : c'est
   binaire, donc impossible qu'une couche masquee en recouvre
   une autre a moitie. C'etait la cause du board qui ne
   revenait plus apres un passage par QUESTIONS ou ZOOM.       */
.layer{
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;

  display: none;
}

.layer.on{ display: block; }

/* ═══ DIAGNOSTIC ═══
   Cache par defaut. S'affiche uniquement si l'URL contient ?debug=1
   Indique le stage courant ET la couche reellement visible.      */
.debug{
  display: none;
  position: absolute;
  left: 16px;
  bottom: 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11,11,16,.88);
  border: 1px solid rgba(238,240,255,.14);
  color: #eef0ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .4px;
}

body.debugOn .debug{ display: flex; }

.debugDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff4d6d;
  flex: 0 0 10px;
  transition: background .2s;
}

.debugDot.live{ background: #38d996; }
