/* Slots reserve the entire cover height so a turning book cannot cover its title. */
.book-motion-stage{position:relative;display:grid;place-items:center;width:100%;height:330px;min-width:0;perspective:1400px;isolation:isolate}
.culture-cover-link>.book-motion-culture{height:100%;min-height:0}
#lectures-culture .recommended-stage>.book-motion-stage{height:100%;min-height:0}
.book-motion-reading{height:350px}
.book-motion-author{height:245px}
.book-motion-object{--book-motion-w:180px;--book-motion-h:270px;position:relative;width:var(--book-motion-w);height:var(--book-motion-h);transform-style:preserve-3d;transform:rotateX(3deg) rotateY(-12deg);animation:house-book-turn 32s linear infinite;animation-delay:var(--book-motion-delay,0s)}
.book-motion-front,.book-motion-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#f7f0e1}
.book-motion-front{transform:translateZ(6px)}
.book-motion-back{transform:rotateY(180deg) translateZ(6px);border:1px solid #b5a58b;background:linear-gradient(105deg,#c9bca4,#e8ddc9 9%,#eee5d3 95%,#b5a38c)}
.book-motion-front>img{display:block!important;position:static!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:0!important;transform:none!important;filter:none!important;border-radius:0;box-shadow:none}
.book-motion-front>.recommended-shot{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;max-height:none;aspect-ratio:auto;transform:none!important;animation:none!important;box-shadow:none}
.book-motion-spine,.book-motion-pages{position:absolute;top:0;left:calc(50% - 6px);width:12px;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.book-motion-spine{transform:rotateY(-90deg) translateZ(calc(var(--book-motion-w)/2));background:linear-gradient(90deg,#8c795d,#c5b28e,#9e8869)}
.book-motion-pages{transform:rotateY(90deg) translateZ(calc(var(--book-motion-w)/2));background:repeating-linear-gradient(90deg,#fff9ed 0 1px,#cfc6b5 1px 2px)}
.book-motion-top,.book-motion-bottom{position:absolute;top:calc(50% - 6px);left:0;width:100%;height:12px;backface-visibility:hidden;background:repeating-linear-gradient(#fff9ed 0 1px,#cfc6b5 1px 2px)}
.book-motion-top{transform:rotateX(90deg) translateZ(calc(var(--book-motion-h)/2))}
.book-motion-bottom{transform:rotateX(-90deg) translateZ(calc(var(--book-motion-h)/2))}
@keyframes house-book-turn{from{transform:rotateX(3deg) rotateY(-12deg)}to{transform:rotateX(3deg) rotateY(-372deg)}}

/* Existing multi-face books keep their manual front/back and pause controls. */
.eva-book-stage .eva-book-object,.published-visual .eva-book-object{animation:house-book-turn 32s linear infinite;transform-style:preserve-3d}
.eva-book-object>img{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(1px)}
.eva-book-object>.book-signature{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateX(-50%) translateZ(2px)}
.eva-book-object::before{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(180deg) translateZ(7px);background:linear-gradient(105deg,#c9bca4,#eee5d3 12% 95%,#b5a38c);border:1px solid #b5a58b}
/* The Savoirs volume has a real rear cover; its original front keeps its publisher signature. */
.eva-book-object.eva-savoirs-book::before{display:none}
.eva-savoirs-book>.eva-book-back{position:absolute;inset:0;transform:rotateY(180deg) translateZ(7px);backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#9b542d}
.eva-savoirs-book>.eva-book-back>img{display:block;position:static;width:100%;height:100%;object-fit:contain;box-shadow:none;transform:none;border:0;border-radius:0}
.eva-back-link{display:block;width:fit-content;max-width:100%;margin:12px auto 20px;text-align:center}
.book-motion-out-of-view,body.neon-sleep :is(.book-motion-object,.eva-book-object,.release-solid,.cover-book,.audio-book-solid,.book-solid){animation-play-state:paused!important}
@media(hover:hover) and (pointer:fine){.book-motion-stage:hover .book-motion-object,.eva-book-stage:hover .eva-book-object{animation-play-state:paused}}
.upcoming-author-cover:focus-visible .book-motion-object,.culture-cover-link:focus-visible .book-motion-object{animation-play-state:paused}
@media(max-width:900px){.book-motion-author{height:220px}}
@media(max-width:650px){.book-motion-reading{height:300px}}
@media(max-width:600px){.book-motion-author{height:180px}}
@media(prefers-reduced-motion:reduce){.book-motion-object,.eva-book-stage .eva-book-object,.published-visual .eva-book-object{animation:none!important;transform:none}}
