/* Loaded only by Link Up and the standalone TXTIN player. Native navigation
   supplies the snapshots and history behavior; no click interception is used. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  [data-txtin-shared="handset"] {
    view-transition-name: txtin-handset;
  }

  /* Keep the browser-generated position/size/rotation interpolation. The phone
     takes a sheet-length settle; surrounding page content changes more quickly. */
  :root:has([data-txtin-shared="handset"])::view-transition-group(txtin-handset) {
    animation-duration: 400ms;
    animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  }

  :root:has([data-txtin-shared="handset"])::view-transition-image-pair(txtin-handset) {
    isolation: isolate;
  }

  :root:has([data-txtin-shared="handset"])::view-transition-old(txtin-handset),
  :root:has([data-txtin-shared="handset"])::view-transition-new(txtin-handset) {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation-duration: 200ms;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }

  :root:has([data-txtin-shared="handset"])::view-transition-old(root),
  :root:has([data-txtin-shared="handset"])::view-transition-new(root) {
    animation-duration: 200ms;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
