.phone-screening,
[data-phone-screening] {
  --phone-slide: 0;
  --phone-swipe: 0;
  position: relative;
  isolation: isolate;
  inline-size: min(100%, 32rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  touch-action: pan-y;
}

/* The manual, script-free 01go channel uses the poster. The live channel
   mounts its own registered phone and never needs to download this plate. */
#drive-01go:checked ~ .drive-frame [data-phone-screening]:not(.is-ready) {
  background: url(./phone-screening-still-exact.webp) center / contain no-repeat;
}

.phone-screening.is-ready,
[data-phone-screening].is-ready { background: none; }

.phone-screening__screen,
.phone-screening__glass,
.phone-screening__hand {
  position: absolute;
  display: block;
}

.phone-screening__screen,
.phone-screening__glass {
  left: 12.9%;
  top: 5.45%;
  width: 49.6%;
  height: 71%;
  border-radius: 13% 13% 11% 11% / 7% 7% 5% 5%;
}

.phone-screening__screen {
  z-index: 0;
  overflow: hidden;
  background: #08090a;
}

.phone-screening__track {
  width: 100%;
  height: 300%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  transform: translate3d(0, calc(var(--phone-slide) * -33.333333%), 0);
  will-change: transform;
}

.phone-screening__film {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  background: #08090a;
}

.phone-screening__glass {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255,255,255,.12), transparent 16% 68%, rgba(255,255,255,.055)),
    linear-gradient(180deg, rgba(41,58,72,.06), transparent 28%, rgba(9,10,12,.08));
  box-shadow: inset 0 0 0 1px rgba(236,242,246,.08);
}

.phone-screening__hand {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.phone-screening__hand--start {
  opacity: calc(1 - var(--phone-swipe));
}

.phone-screening__hand--swipe {
  opacity: var(--phone-swipe);
}

@media (prefers-reduced-motion: reduce) {
  .phone-screening__track { will-change: auto; }
  .phone-screening__hand--start { opacity: 1; }
  .phone-screening__hand--swipe { display: none; }
}
