/* 3D stages: hero, mounts, inside the sensor, layer view. Loaded after style.css. */

.stage-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#hero-stage canvas {
  cursor: default;
  touch-action: pan-y;
}

#hero-stage.is-grab canvas {
  cursor: grab;
}

#hero-stage.is-grabbing canvas {
  cursor: grabbing;
}

#mounts-stage canvas,
#inside-stage canvas {
  cursor: default;
}

#mounts-stage.is-part canvas,
#inside-stage.is-part canvas,
#layer-stage canvas {
  cursor: pointer;
}

/* Part labels: plain text with a fine line to the part, no box ------------ */

.part-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease);
  will-change: opacity;
}

.part-label.is-on {
  opacity: 1;
}

.part-label__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.part-label__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 0.62;
}

.part-line {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  height: 1px;
  width: 0;
  background: currentColor;
  opacity: 0;
  transform-origin: 0 50%;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  will-change: opacity;
}

.part-line.is-on {
  opacity: 0.4;
}

#inside-stage .part-label,
#mounts-stage .part-label {
  color: var(--fg-dark);
}

#inside-stage .part-line,
#mounts-stage .part-line {
  background: #86868b;
}

#mounts-stage .part-label {
  color: var(--fg-light);
}

#mounts-stage .part-line {
  background: #a1a1a6;
}

/* Perch frames: no visible edge ------------------------------------------- */

#perch-canvas {
  display: block;
}
