.gate-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.gate-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

.gate-stage-wrap {
  position: relative;
  width: 100%;
  /* Extra runway: scroll pans the camera and opens / closes the doors. */
  min-height: max(220vh, 68rem);
  border-bottom: 1px solid var(--contour);
  background:
    radial-gradient(ellipse 70% 55% at 50% 22%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 72%),
    color-mix(in srgb, var(--background-2) 94%, transparent);
}

.gate-stage-label {
  position: absolute;
  top: 0.85rem;
  left: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-diminished);
  pointer-events: none;
}

.gate-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.gate-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.gate-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.25rem;
}

.gate-status {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}

.gate-caption-text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--foreground-diminished);
}
