@import url('/bench/folder-index.css');
@import url('./entry-viewport.css');
@import url('./reading-desk.css');
@import url('/crew/social-directory.css');
/* The same named snapshot moves between the real desk object and readable paper.
   Existing board/folio/folder/map artwork remains the snapshot, not a substitute. */
@view-transition { navigation: auto; }
::view-transition { pointer-events: none; }
::view-transition-group(root) { animation-duration: .12s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
::view-transition-group(foundry-object) {
  animation-duration: .46s;
  animation-timing-function: cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
::view-transition-image-pair(foundry-object) { isolation: isolate; overflow: visible; }
::view-transition-old(foundry-object), ::view-transition-new(foundry-object) {
  height: 100%; width: 100%; object-fit: cover; object-position: top left;
  animation-duration: .46s; animation-timing-function: cubic-bezier(.2,.7,.2,1);
  backface-visibility: hidden;
}
html[data-object-travel="lift"]::view-transition-new(foundry-object) {
  transform-origin: 50% 90%; animation-name: foundry-paper-lift;
}
html[data-object-travel="return"]::view-transition-old(foundry-object) {
  transform-origin: 50% 90%; animation-name: foundry-paper-return;
}
@keyframes foundry-paper-lift {
  from { opacity: 0; transform: perspective(1300px) rotateX(9deg) rotateZ(-1.5deg) scale(.96); }
  35% { opacity: 1; }
  to { opacity: 1; transform: perspective(1300px) rotateX(0) rotateZ(0) scale(1); }
}
@keyframes foundry-paper-return {
  from { opacity: 1; transform: perspective(1300px) rotateX(0) rotateZ(0) scale(1); }
  to { opacity: 0; transform: perspective(1300px) rotateX(9deg) rotateZ(-1.5deg) scale(.96); }
}
[data-object-travelling] { isolation: isolate; }
main h1[tabindex="-1"]:focus-visible { outline: 3px solid #d5612c; outline-offset: 8px; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* The arrival heading announces a new page. Links and buttons keep their focus rings. */
main h1[tabindex="-1"]:focus { outline: none; }
/* A desktop plate fills tall tablets by cropping its sides. Place the movable
   desk objects on the part of the table the visitor can actually reach. */
@media (min-width:801px) and (max-aspect-ratio:3/2){
  .shot-plane .prop-layer-frame > .prop-layer{width:min(100%,100vw);margin-inline:auto}
  .portal-mode .desk-lip .lip-chain{right:clamp(135px,15vw,190px)}
}


/* Keep the paper reader unobstructed while the visitor handles a desk object. */
body:has(.prop-stage[role=dialog]) [data-whop-choice]:not([open]){visibility:hidden}
