/* new-modality's window: a full-height gap in the page that looks through it to the redaction
   project globe (js/redaction-project-globe.js). The stage is fixed to the screen, and the section's
   clip-path cuts it to the section's own box, so the page scrolls past it like a window. */
.redaction_window {
  position: relative;
  height: 100vh;
  height: 100lvh;
  clip-path: inset(0);
}

.redaction_stage {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  background: #000;
  pointer-events: none;
}

.redaction_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* The line at the foot, as the phone sets it: monospaced, white. Three copies, red, green and blue,
   added together, each shifted as the lens shifts its colour (--fringe, set by the script). */
.redaction_caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(7vh, 40px);
  margin: 0;
  text-align: center;
  font: clamp(15px, 1.15vw, 19px) / 1.7 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  isolation: isolate;
  --fringe: 0px;
}
.redaction_caption_layer {
  display: block;
  mix-blend-mode: screen;
}
.redaction_caption_layer + .redaction_caption_layer {
  position: absolute;
  inset: 0;
}
.redaction_caption_r { color: #f00; transform: translateY(var(--fringe)); }
.redaction_caption_g { color: #0f0; }
.redaction_caption_b { color: #00f; transform: translateY(calc(-1 * var(--fringe))); }
.redaction_unsaid { visibility: hidden; }

/* Without WebGL2: the app's icon, still, and the line whole. */
.redaction_fallback {
  display: none;
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(70vw, 48vh);
  transform: translate(-50%, -50%);
}
.redaction_stage[data-fallback] .redaction_fallback { display: block; }
.redaction_stage[data-fallback] .redaction_canvas { display: none; }

/* Lite (js/redaction-project-globe.js): the line in plain white, one layer, no blending. */
.redaction_stage[data-lite] .redaction_caption_r,
.redaction_stage[data-lite] .redaction_caption_b { display: none; }
.redaction_stage[data-lite] .redaction_caption_g { color: #fff; mix-blend-mode: normal; }
