html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0f0d;
  overflow: hidden;
  font-family: "Oxanium", monospace;
}

/* écran noir */
.signal-screen {
  position: fixed;
  inset: 0;
}

/* TERMINAL FIGÉ AU CENTRE */
.terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: pre;

  color: #9ad4b3;
}



@keyframes blink {
  50% { opacity: 0; }
}

/* texte final */
.terminal.output {
  color: #cfd6d3;
}

/* bouton sortie */
.signal-exit {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 40px);
  transform: translateX(-50%);

  font-family: "Nasalization", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #9ad4b3;
  text-decoration: none;
  opacity: 0.7;
}

.signal-exit:hover {
  opacity: 1;
}

.hidden {
  display: none;
}

/* input invisible */
input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

/* ligne terminal : texte + curseur parfaitement alignés */
.terminal-line {
  display: inline-flex;
  align-items: center;
}

/* curseur terminal */
.cursor {
  display: inline-block;

  width: 0.6em;
  height: 1em;

  background-color: #9ad4b3;
  margin-left: 0.15em;

  vertical-align: baseline;

  animation: blink 1.3s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* glitch du curseur — indépendant du blink */
.cursor.glitch {
  opacity: 1 !important;
  animation:
    glitch 0.2s steps(2) 4,
    blink 1.3s steps(1) infinite;
}

@keyframes glitch {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 0); }
  50%  { transform: translate(1px, 0); }
  75%  { transform: translate(0, -1px); }
  100% { transform: translate(0, 0); }
}

.cursor.silence {
  opacity: 0 !important;
}

/* état initial du texte final */
.terminal.output {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: #cfd6d3;

  text-align: center; /* ← C’EST ICI */
}

/* révélation progressive du signal */
.terminal.output.reveal {
  animation: signalFadeIn 3s linear forwards;
}

@keyframes signalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.96;
  }
}

/* =========================
   SIGNAL — METRICS ALIGNÉS
   ========================= */

.signal-metrics {
  display: grid;
  grid-template-columns: max-content min-content max-content;
  column-gap: 12px;
  row-gap: 10px;
  margin: 16px 0 20px;

  justify-content: center;

  /* clé absolue : on annule le pre ici */
  white-space: normal;
}

.signal-metrics .label {
  text-align: left;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* métriques techniques — plus discrètes */
.signal-metrics {
  opacity: 0.55;
}

.signal-metrics .colon {
  text-align: center;
  opacity: 0.6;
}

.signal-metrics .value {
  text-align: left;
  letter-spacing: 0.08em;
}