:root {
  --bg: #05070a;
  --ink: #223344;
  --red: #c0141e;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }
html { background: var(--bg); transition: background 1.4s ease; }
body { overflow: hidden; font-family: "Courier New", Consolas, monospace; }

#scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Le champ de données, obfusqué, derrière le chien. */
#flux {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.4em;
  columns: 15em;
  column-gap: 2.6em;
  color: var(--ink);
  opacity: 0.5;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 1.4s ease;
  -webkit-mask-image: radial-gradient(135% 120% at 50% 50%, transparent 22%, #000 58%);
  mask-image: radial-gradient(135% 120% at 50% 50%, transparent 22%, #000 58%);
}
#flux .ln {
  margin: 0 0 0.55em;
  break-inside: avoid;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Le chien jnoun, plein centre. */
#jnoun {
  position: relative;
  z-index: 2;
  margin: 0;
  filter: drop-shadow(0 0 42px rgba(0, 0, 0, 0.9));
  transition: filter 1.4s ease;
}
#jnoun img {
  display: block;
  /* la largeur suit le plus petit cote, la hauteur suit le ratio 2:3 (pas de bandes) */
  width: min(92vw, 54.6vh, 600px);
  height: auto;
}
#jnoun::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

/* Créneau : le chien jnoune. */
html.jnoune { background: #0a0304; }
html.jnoune #jnoun::after { opacity: 1; }
html.jnoune #jnoun { filter: drop-shadow(0 0 64px rgba(192, 20, 30, 0.55)); }
html.jnoune #flux { color: #3a1416; }

.ns {
  position: fixed;
  inset: auto 0 1.2em;
  margin: 0;
  text-align: center;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html, #flux, #jnoun, #jnoun::after { transition: none; }
}
