/* ==========================================================================
   CRIT — shell scaffolding.

   Three fixed layers host the whole experience:
     .atmosphere   the room itself (built by the shell)
     .portal-veil  the darkness that compresses between rooms
     #crit-app     the persistent stacking context

   Inside it sit two plain containers:
     .gate         holds the entrance only — removed once it has been entered
     .stage        holds whichever view is current: archive, profile or void

   They are deliberately unstyled containers: every view brings its own
   composition, and nothing here is allowed to constrain it.
   ========================================================================== */

.gate {
  position: relative;
  z-index: var(--z-entrance);
}

.stage {
  position: relative;
  z-index: var(--z-type);
  min-height: 100svh;
}

/* The scene layer sits between the atmosphere and the type, so a view's own
   media can never cover the archive's names or a profile's identity. */
.stage > .archive,
.stage > .profile,
.stage > .nowhere {
  position: relative;
  z-index: var(--z-type);
}
