/* Locked artwork: only the whole layer fades; the images are never restyled. */
#entry-screen { display: none; }
html[data-entry] { overflow: hidden; }
html[data-entry] #entry-screen {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  z-index: 2147483647;
  background: #000;
  opacity: 1;
  transition: opacity 300ms linear;
  overflow: hidden;
  overscroll-behavior: contain;
}
html[data-entry="waiting"] #entrance-loader { animation: none; }
/* Both layers have the maximum z-index; the later intro stays underneath. */
html[data-entry] #entrance-loader { z-index: 2147483646; }
#entry-screen .entry-stage { position: relative; width: 100%; height: 100%; }
#entry-screen picture { display: block; width: 100%; height: 100%; }
#entry-screen #entry-artwork {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
#entry-screen #entry-enter {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#entry-screen #entry-enter:disabled { cursor: default; }
html[data-entry] #entry-screen[data-leaving] { opacity: 0; }
/* Visible control only if the actual image cannot load. */
#entry-screen[data-fallback] picture { display: none; }
#entry-screen[data-fallback] #entry-enter {
  left: 50% !important;
  top: 50% !important;
  width: auto !important;
  height: auto !important;
  transform: translate(-50%, -50%);
  padding: 16px 32px;
  color: #fff;
  border: 1px solid #fff;
  font: 700 18px sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  html[data-entry] #entry-screen { transition-duration: 0ms; }
}
