.stage[data-insert="book"] .insert-stage{background:#152f38}
.stage[data-insert="book"] .insert-stage::before,
.stage[data-insert="book"] .insert-stage::after{display:none}
.bookstage{
  --book-ratio:1.33684;
  --desk-ink:#172e33;
  --desk-trim:#85724f;
  position:absolute;inset:0;display:grid;justify-items:center;align-content:center;
  padding:calc(var(--bar,65px) + 10px) 0 clamp(120px,27svh,320px);
  background:radial-gradient(ellipse at 50% 35%,#49615a 0%,#2b4744 48%,var(--desk-ink) 83%);
}
.bookstage[data-era="1993"]{
  --desk-ink:#3d4d46;--desk-trim:#bdab81;
  background:radial-gradient(ellipse at 50% 34%,#b8c7b3 0%,#8da797 39%,var(--desk-ink) 86%);
}
.bookstage-shot{
  position:relative;width:min(90%,calc(53svh * var(--book-ratio)),1080px);
  aspect-ratio:var(--book-ratio);
  background-image:url(puppets/bookstage-1926.webp);background-size:400% 100%;
  background-repeat:no-repeat;background-position:var(--pose-position,0%) center;
  outline:1px solid var(--desk-trim);
  box-shadow:0 0 0 5px #1c2a27,0 0 0 6px var(--desk-trim),0 7px 24px #10211e63;
}
.bookstage[data-era="1993"] .bookstage-shot{background-image:url(puppets/bookstage-1993.webp)}
.bookstage-cue{
  position:absolute;left:var(--book-x);top:var(--book-y);width:2px;height:2px;pointer-events:none;
  transition:left .85s cubic-bezier(.3,.04,.2,1),top .85s cubic-bezier(.3,.04,.2,1);
}
@media(max-width:780px) and (orientation:portrait){
  .bookstage{padding:0 0 13svh}
  .bookstage-shot{width:calc(100% - 12px)}
}
@media(max-height:540px) and (orientation:landscape){
  .bookstage{padding:25px 0 20svh}.bookstage-shot{width:min(60%,calc(56svh * var(--book-ratio)))}
}
@media(prefers-reduced-motion:reduce){.bookstage-cue{transition:none}}

.bookstage-outgoing{
  position:absolute;inset:0;opacity:0;pointer-events:none;background-image:inherit;
  background-size:400% 100%;background-repeat:no-repeat;
}
.stage[data-insert="book"] .book-phrase-slide{
  display:inline-block;max-width:100%;text-wrap:balance;color:#fff4d9;
  font-weight:800;line-height:1.04;text-shadow:0 2px 8px #112b36a8;
  animation:book-phrase-enter 1.45s .28s cubic-bezier(.18,.73,.19,1) both;
}
.stage[data-beat="12"] .book-phrase-slide{font-size:1.13em}
@keyframes book-phrase-enter{
  from{opacity:0;transform:translateX(min(34vw,410px))}
  78%{opacity:1}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .stage[data-insert="book"] .book-phrase-slide{animation:none}
}
