/*
 * Page-local selector geometry. Percentages are measured against the
 * 1672 × 941 source image so the hit areas scale with the artwork.
 */
.tv-lab-revision .lab-artboard {
  inset: 50% auto auto 50%;
  width: min(100vw, calc(100svh * 1.7779));
  height: auto;
  aspect-ratio: 1672 / 941;
  transform: translate(-50%, -50%);
}

.tv-lab-revision .lab-scene-art {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.tv-lab-revision .lab-machine-choice {
  top: 11%;
  bottom: 17%;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 4px solid transparent;
  border-radius: 8%;
  background: transparent;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.tv-lab-revision .lab-machine-choice--teleporter {
  left: 4%;
  right: 55%;
}

.tv-lab-revision .lab-machine-choice--time {
  left: 56%;
  right: 4%;
}

.tv-lab-revision .lab-machine-choice:hover,
.tv-lab-revision .lab-machine-choice:focus-visible {
  color: inherit;
  background: rgba(255, 255, 255, .12);
  border-color: #172838;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px #ff5f3d;
  outline: none;
  transform: none;
}

.tv-lab-revision .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .tv-lab-revision .lab-artboard {
    position: absolute;
    width: 100vw;
    min-height: 0;
  }

  .tv-lab-revision .lab-machine-choice {
    top: 11%;
    bottom: 17%;
    width: auto;
    min-height: 0;
    border-width: 2px;
  }

  .tv-lab-revision .lab-machine-choice--teleporter {
    left: 4%;
    right: 55%;
  }

  .tv-lab-revision .lab-machine-choice--time {
    left: 56%;
    right: 4%;
  }

  .tv-lab-revision .lab-machine-choice:hover,
  .tv-lab-revision .lab-machine-choice:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff5f3d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-lab-revision .lab-machine-choice {
    transition: none;
  }
}
