/* Bind the motion to the original cover button. No cloned artwork, replacement
   book, full-stage plate, opacity crossfade, or hit-testable effects. */
.popup-stage[data-unfold-ready] .book-turn-overlay { display:none!important; }
.popup-stage .unfold-leaves { display:none; }
.popup-stage[data-unfold-running] > .preserve-3d { transform:none!important; opacity:1!important; }
.popup-stage[data-unfold-running] > .preserve-3d > svg:first-of-type {
  transform-origin:50% 88.3%; transform:scaleX(var(--ub-spread));
}
/* Only the pop-up cutouts rise. The illustrated binding stays on the table. */
.popup-stage[data-unfold-running] > .preserve-3d > svg:first-of-type > g:last-child {
  transform-box:fill-box!important; transform-origin:50% 100%!important;
  transform:scaleY(var(--ub-cutout))!important; opacity:1!important;
}
.popup-stage[data-unfold-running] [data-book-cover]:not([data-book-cover="center"]) {
  transform-origin:50% 99%!important; transform:perspective(850px) rotateX(var(--ub-wing))!important; opacity:1!important;
}
.popup-stage[data-unfold-running] [data-book-cover="center"] {
  transform-origin:0 100%!important; transform:translate(var(--ub-drift),var(--ub-lift)) rotate(var(--ub-roll))!important;
  opacity:1!important; isolation:isolate;
}
.popup-stage[data-unfold-running] .unfold-leaves {
  display:block; position:absolute; inset:0; width:100%; height:100%; z-index:0;
  overflow:visible; user-select:none; pointer-events:none!important;
  filter:drop-shadow(0 3px 2px rgba(31,40,66,.12));
}
.popup-stage[data-unfold-running] [data-book-cover="center"] > button {
  z-index:1; transform-origin:0 50%!important; opacity:1!important;
  transform:perspective(var(--ub-distance)) rotateY(var(--ub-hinge))!important;
  /* Edge of the laminated cover and its moving shadow on the endpaper. */
  box-shadow:1px .7px 0 #dbe3ee,2px 1.2px 0 #a3afc1,var(--ub-shadow-x) var(--ub-shadow-y) var(--ub-blur) rgba(28,38,63,.29)!important;
}
.popup-stage[data-unfold-running] [data-book-cover="center"] > button::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:var(--ub-light);
  background:linear-gradient(90deg,rgba(35,42,71,.14),transparent 2.3%,rgba(255,255,255,.4) 3.0%,transparent 5.2%,transparent 76%,rgba(247,242,226,.19));
}
.popup-stage > .unfold-again {
  position:absolute; z-index:49; right:1%; top:1%; min-height:32px; padding:4px 10px;
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  color:#283f60; background:rgba(255,254,250,.93); border:1px solid #50657d50;
  border-radius:99px; font:600 11px/1.2 system-ui,sans-serif; cursor:pointer; touch-action:manipulation;
}
.popup-stage > .unfold-again:hover{background:#fff;border-color:#637a9a}
.popup-stage > .unfold-again:focus-visible{outline:3px solid #a64730;outline-offset:3px}
.unfold-again svg{width:14px;height:14px;flex:none;pointer-events:none}
@media(max-width:650px){.popup-stage > .unfold-again{right:0;top:0;font-size:10px;padding:4px 8px}}
@media(prefers-reduced-motion:reduce),print{
  .popup-stage .unfold-leaves,.popup-stage > .unfold-again{display:none!important}
}

/* Superseded atmospheric slips, not the other airspace artwork. */
.poster-atmosphere .airspace :is(.fly-0,.fly-1,.fly-2,.fly-3){display:none!important}
