/* R172: loading transparency, clipped and coherent page curl (never detached 3D planes). */
.ihi-book-reader[data-state="loading"] .book-spread{opacity:1!important}
.book-stage.book-first-load .book-spread{visibility:hidden!important}
.ihi-book-reader .book-loading-banner{position:absolute;z-index:12;top:50%;left:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 28px));display:flex;align-items:center;gap:13px;padding:16px 19px;border-radius:14px;border:1px solid #c9dacf;background:rgba(255,255,255,.97);box-shadow:0 12px 36px #143b2726;color:#193a27;text-align:left;pointer-events:none}
.book-loading-banner[hidden]{display:none!important}
.book-loading-icon{width:25px;height:25px;border-radius:100%;border:3px solid #cfdfd5;border-top-color:#075d38;animation:ihi-wait-circle .85s linear infinite;flex-shrink:0}
.book-loading-copy{min-width:0;flex:1}
.book-loading-copy strong{display:block;font-size:13px;line-height:1.4}
.book-loading-copy small{display:block;margin-top:3px;font-size:11px;line-height:1.45;color:#58705f}
@keyframes ihi-wait-circle{to{transform:rotate(360deg)}}
.ihi-book-reader .book-page-hold{position:absolute;z-index:8;pointer-events:none;overflow:hidden;background:white;isolation:isolate;border-radius:2px}
.ihi-book-reader .book-page-hold canvas{display:block;width:100%;height:100%}
.ihi-book-reader .book-page-hold.book-leaf-turn{box-shadow:none;border:0;backface-visibility:visible;transform:none;transform-style:flat;opacity:1;clip-path:inset(0 0 0 0);will-change:clip-path}
.ihi-book-reader .book-page-hold.book-leaf-turn::after{position:absolute;inset:0;content:"";background:linear-gradient(90deg,#0000 64%,#384c3629 94%,#faf6e975);pointer-events:none;opacity:.5;mix-blend-mode:normal}
.ihi-book-reader .book-page-hold.book-leaf-turn.curl-left::after{background:linear-gradient(270deg,#0000 64%,#384c3629 94%,#faf6e975)}
.ihi-book-reader .book-page-hold.book-leaf-turn.is-curling.curl-left{animation:ihi-curl-left .46s cubic-bezier(.34,.06,.28,1) forwards!important}
.ihi-book-reader .book-page-hold.book-leaf-turn.is-curling.curl-right{animation:ihi-curl-right .46s cubic-bezier(.34,.06,.28,1) forwards!important}
@keyframes ihi-curl-left{0%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}35%{clip-path:polygon(0 0,75% 0,68% 100%,0 100%)}70%{clip-path:polygon(0 0,26% 0,20% 100%,0 100%)}100%{clip-path:polygon(0 0,0 0,0 100%,0 100%)}}
@keyframes ihi-curl-right{0%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}35%{clip-path:polygon(25% 0,100% 0,100% 100%,32% 100%)}70%{clip-path:polygon(74% 0,100% 0,100% 100%,80% 100%)}100%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%)}}
@media(prefers-reduced-motion:reduce){.ihi-book-reader .book-page-hold.book-leaf-turn.is-curling{animation:none!important;display:none!important}.book-loading-icon{animation:none}}
