/* F10: Ember's behaviour in the room. Linked after chunky.css.
 *
 * - Haptics on iOS: a hidden switch under a label over the room (haptics.js).
 *   The label takes the taps (they bubble to the room); the figures and the
 *   bubble stay above it.
 * - Opening a chapter: the old screen in a ghost layer over the pager while
 *   the new one fades in (transit.js), and Ember's overlay canvas.
 * - Face down: lights-out, the room dimmed. */
.room .hapt { position: absolute; inset: 0; z-index: 1; margin: 0; cursor: default; -webkit-tap-highlight-color: transparent; }
.room .hapt input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0;
  opacity: 0; pointer-events: none;
}
.room .text { z-index: 2; }
.room.lightsout canvas.roomart, .room.lightsout canvas.roomlive { filter: brightness(.6) saturate(.7); }

.stage > .ghost {
  position: absolute; inset: 0; display: flex; overflow: hidden;
  pointer-events: none; z-index: 1; will-change: transform, opacity;
}
.stage > .ghost > .screen { flex: 0 0 100%; }
.stage > .pager { will-change: auto; }
.stage > canvas.transitfx {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
