.tish-booth-panel {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition-group(tish-product-photo) {
        animation-duration: 420ms;
        animation-timing-function: cubic-bezier(.22, 1, .36, 1);
        z-index: 2;
    }

    ::view-transition-group(root) {
        animation-duration: 280ms;
    }

    ::view-transition {
        pointer-events: none;
    }

    body.tish-paper #intro.tish-reel-intro.tish-booth-opening {
        background: transparent;
        perspective: 1100px;
        pointer-events: none;
    }

    #intro.tish-booth-opening :is(.intro-reel, .intro-box, .intro-reel-tools) {
        visibility: hidden;
    }

    #intro.tish-booth-opening .tish-booth-panel {
        position: absolute;
        display: block;
        inset-block: 0;
        width: 50%;
        overflow: hidden;
        background: #871912 url('../../tish-paper/paper/nav-active.webp') center / 100% 100% no-repeat;
    }

    #intro.tish-booth-opening.tish-booth-has-frame .tish-booth-panel {
        background: #871912;
    }

    .tish-booth-panel--left {
        left: 0;
        transform-origin: left center;
    }

    .tish-booth-panel--right {
        right: 0;
        transform-origin: right center;
    }

    .tish-booth-panel canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 200%;
        height: 100%;
    }

    .tish-booth-panel--right canvas {
        left: -100%;
    }

    .tish-booth-logo {
        position: fixed;
        z-index: 1001;
        object-fit: contain;
        pointer-events: none;
    }

    .tish-cart-flight {
        position: fixed;
        z-index: 1200;
        display: grid;
        place-items: center;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #f5e4cd;
        box-shadow: 0 5px 14px #381a1940;
        color: #a91f16;
        font-size: 1.6rem;
        font-weight: 800;
        pointer-events: none;
    }

    .tish-cart-flight img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }
}

/* TISH cinematic paper tear — integrated with existing booth animation */

@media (prefers-reduced-motion: no-preference) {

  body.tish-paper #intro.tish-reel-intro.tish-booth-opening {
    background: transparent !important;
  }

  /* Torn inner edge of the left paper door */
  #intro.tish-booth-opening .tish-booth-panel--left {
    clip-path: polygon(
      0 0, 100% 0,
      97% 7%, 100% 14%,
      96% 23%, 99% 32%,
      96% 43%, 100% 53%,
      97% 62%, 100% 72%,
      96% 83%, 99% 92%,
      100% 100%, 0 100%
    );
  }

  /* Matching torn inner edge of the right paper door */
  #intro.tish-booth-opening .tish-booth-panel--right {
    clip-path: polygon(
      0 0, 100% 0, 100% 100%,
      0 100%, 3% 92%,
      0 83%, 4% 72%,
      1% 62%, 4% 53%,
      0 43%, 3% 32%,
      0 23%, 4% 14%,
      1% 7%
    );
  }

  /* Use the existing TISH paper texture if no video frame is captured */
  #intro.tish-booth-opening:not(.tish-booth-has-frame)
  .tish-booth-panel {
    background: #f5e4cd
      url('../../tish-paper/paper/background.webp')
      center top / 540px auto repeat !important;
  }
}
