#cinema-splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: max(8px, var(--safe-top)) var(--safe-right) max(8px, var(--safe-bottom)) var(--safe-left);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  opacity: 1;
  transition: opacity 180ms var(--ease-out);
  /* Also unlock the page if the small startup script fails to load. */
  animation: splash-off 0s 7s forwards;
}
#cinema-splash[hidden] { display: none }
/* Restored versions can still contain the retired SVG bucket and kernels. */
#cinema-splash > .popcorn-stage { display: none }
#splash-status {
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
#cinema-splash.is-leaving { opacity: 0; pointer-events: none }
#cinema-splash:not([hidden]):not(.is-leaving) ~ #cinema-app {
  visibility: hidden;
  animation: splash-app-on 0s 7s forwards;
}
@keyframes splash-off { to { visibility: hidden } }
@keyframes splash-app-on { to { visibility: visible } }
#cinema-splash[data-telegram-intro],
#cinema-splash[data-telegram-intro]:not([hidden]):not(.is-leaving) ~ #cinema-app {animation:none}
#entry-recovery { display:none }
body[data-entry-pending]:not(:has(.cinema-entry[open])) #entry-recovery {
  position:fixed;inset:0;display:grid;place-content:center;justify-items:center;
  padding:24px;text-align:center;visibility:hidden;
  animation:splash-app-on 0s 7s forwards;
}
body[data-entry-pending] #cinema-splash[hidden] ~ #entry-recovery {
  animation:none;visibility:visible;
}

#cinema-intro-film {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
}
@media (orientation: portrait) {
  #cinema-splash { padding: 0 }
  #cinema-intro-film {
    align-self: start;
    max-height: 185vw;
    object-fit: cover;
    object-position: center top;
  }
}
.catalog-pending p { margin-block: 0 1rem }
@media (prefers-reduced-motion: reduce) {
  #cinema-splash { transition-duration: 80ms }
}
