:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#292638;background:#faf8f3}*{box-sizing:border-box}body{margin:0}header{height:76px;padding:0 clamp(18px,4vw,72px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e3d9;background:#fffdf9;gap:12px}.brand{font-family:Georgia,serif;color:#2e2940;font-size:25px;font-weight:bold;text-decoration:none}.brand span{color:#ba825d}.top{display:flex;align-items:center;gap:14px}button,select,input,textarea{font:inherit}button{border:1px solid #ded8d0;border-radius:12px;background:#fff;padding:11px 15px;cursor:pointer;color:#353047}button:hover{background:#f1ebe5}button:disabled{opacity:.35;cursor:not-allowed}.quiet{background:transparent;border-color:transparent}select,input{border:1px solid #ded8d0;border-radius:10px;padding:10px;background:white;max-width:100%}main{max-width:1200px;margin:auto;padding:0 26px 45px}.hero{padding:72px 0 44px;max-width:650px}.eyebrow{font-size:12px;letter-spacing:3px;font-weight:800;color:#b58b72}h1{font:normal clamp(35px,5vw,62px)/1.1 Georgia,serif;margin:12px 0;color:#292439}.hero>p:last-child{color:#77717e;font-size:17px;line-height:1.6}h2{font:normal 29px Georgia,serif;margin:0}.sectionTitle{display:flex;justify-content:space-between;align-items:center;margin:18px 0 24px}.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:28px}.bookCard{cursor:pointer}.cover{height:260px;border-radius:8px 16px 16px 8px;box-shadow:5px 7px 17px #4e415036;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#65516a,#b78e87);color:white;font:25px Georgia,serif;text-align:center}.cover img{width:100%;height:100%;object-fit:contain;background:#f9f8f5}.bookCard h3{margin:16px 0 4px;font-size:16px}.bookCard p{color:#8d8492;margin:0;font-size:13px}.readerTop{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px}.bookName{font:23px Georgia,serif}.readingStage{margin:24px auto;padding:18px;background:radial-gradient(ellipse at center,#e7dfd3,#f7f2e8 70%);border-radius:24px;display:grid;place-items:center;min-height:min(70vh,730px)}/* Gemini-like illustrated book: cover, two-page spread, and canvas curved paper mesh */
.bookShell{position:relative;width:min(100%,950px);height:min(66vh,625px);min-height:360px;filter:drop-shadow(8px 14px 17px #514d5940);perspective:1800px;display:flex;align-items:center;justify-content:center;user-select:none}
.bookShell.closed{width:min(100%,950px)}
.bookCover{position:relative;height:100%;aspect-ratio:0.72;max-width:49%;background:#ddd4cb;border-radius:3px 14px 14px 3px;overflow:hidden;box-shadow:-9px 6px 0 #b3aaa2,7px 12px 26px #3b303e5a;cursor:pointer;transform-origin:left center;transition:filter .2s}
.bookCover:hover{filter:brightness(1.04)}.bookCover img{width:100%;height:100%;object-fit:cover}
.bookCover .coverCaption{position:absolute;left:0;right:0;bottom:0;padding:22px 16px 26px;text-align:center;font:600 clamp(14px,2vw,24px)/1.3 Georgia,serif;color:#39303c;background:linear-gradient(transparent,#fffdf4 40%);text-shadow:0 1px 0 #fff}
.bookCover .coverEdge{position:absolute;inset:0 auto 0 0;width:12px;background:linear-gradient(90deg,#3e2c3740,transparent);pointer-events:none}
.bookSpread{position:relative;width:100%;height:100%;display:grid;grid-template-columns:1fr 1fr;overflow:visible;border-radius:4px 13px 13px 4px;box-shadow:1px 3px 1px #cec6bc,5px 7px 1px #ddd4cb,9px 12px 20px #342d3b4b;background:white}
.spreadPage{position:relative;min-width:0;height:100%;overflow:hidden;background:#fffefc}
.spreadPage.art{border-radius:4px 0 0 4px;background:#e6dfd1}
.spreadPage.art img{display:block;width:100%;height:100%;object-fit:contain}
.spreadPage.prose{border-radius:0 12px 12px 0;box-shadow:inset 13px 0 19px -17px #17151a9c}
.spreadPage.art:after{content:"";position:absolute;right:0;top:0;bottom:0;width:24px;background:linear-gradient(to right,transparent,#15121a29);pointer-events:none}
.spreadPage.prose:before{content:"";position:absolute;left:0;top:0;bottom:0;width:23px;background:linear-gradient(to right,#100f1226,transparent);pointer-events:none;z-index:2}
.pageText{height:100%;width:100%;display:flex;align-items:center;justify-content:center;padding:clamp(16px,4vw,63px);font:clamp(15px,1.65vw,23px)/1.65 Georgia,'Times New Roman',serif;color:#39323b;white-space:pre-line;text-align:left;overflow:auto;overflow-wrap:anywhere}
.pageNumber{position:absolute;bottom:12px;right:18px;font:12px Georgia,serif;color:#aaa0a7}.spreadPage.art .pageNumber{left:18px;right:auto;color:#fff;text-shadow:0 1px 3px #333}
.pageCorner{position:absolute;right:0;bottom:0;width:65px;height:65px;z-index:3;cursor:pointer;border-radius:0 0 12px 0}
.pageCorner:after{content:"";position:absolute;bottom:0;right:0;width:0;height:0;border:solid transparent;border-width:0 0 0 0;filter:drop-shadow(-2px -2px 2px #0002);transition:border-width .16s}
.pageCorner:hover:after{border-width:0 0 42px 42px;border-bottom-color:#d9d1c7}
.curlCanvas{position:absolute;inset:0;z-index:5;width:100%;height:100%;pointer-events:none}
.bookShell.animating .bookCover{animation:bookOpen .76s cubic-bezier(.2,.7,.2,1) forwards;z-index:6}
@keyframes bookOpen{0%{transform:rotateY(0);opacity:1}75%{transform:rotateY(-142deg);opacity:.9}100%{transform:rotateY(-176deg);opacity:0}}
@media(max-width:650px){.bookShell{height:min(63vh,490px);min-height:280px}.bookCover{max-width:67%}.pageText{padding:14px;font-size:clamp(11px,2.7vw,16px);line-height:1.45}.pageCorner{width:43px;height:43px}.pageCorner:hover:after{border-width:0 0 24px 24px}.bookCover .coverCaption{font-size:15px}}
.controls{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.primary{background:#41344f;color:white;border-color:#41344f}.primary:hover{background:#62516f}.note{color:#837885;font-size:13px;text-align:center;line-height:1.6}.panels{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:white;padding:25px;border:1px solid #e5ded5;border-radius:18px}.panel h3{margin-top:0}.panel p{color:#766d77;line-height:1.55}.panel form{display:flex;flex-direction:column;gap:13px}.panel input[type=file]{width:100%}.modal{position:fixed;inset:0;background:#181020a6;display:grid;place-items:center;padding:16px;z-index:10}.modal[hidden],[hidden]{display:none!important}.modalCard{background:#fff;border-radius:20px;width:min(780px,100%);max-height:90vh;overflow:auto;padding:25px}.modalCard textarea{width:100%;min-height:88px;margin:6px 0 16px;resize:vertical}.modalCard p{color:#7a707e}footer{text-align:center;padding:35px 15px;color:#9e96a1;border-top:1px solid #e9e3d9;font-size:12px}@media(max-width:650px){header{height:auto;padding:16px;align-items:flex-start}.brand{font-size:19px}.top{gap:3px;flex-wrap:wrap;justify-content:flex-end}.top label{display:none}.top select{max-width:110px}.top button{font-size:12px}.hero{padding:42px 0 24px}.panels{grid-template-columns:1fr}.readingStage{padding:7px;min-height:290px}.readerTop .bookName{font-size:16px}.controls{gap:6px}.controls button{padding:8px}}

/* PageFlip reader V3. Cover is right-hand page; every scene is left illustration + right text. */
.readingStage{min-height:550px;overflow:hidden;background:#fbfaf7}
.flipFrame{position:relative;width:min(100%,1120px);height:clamp(340px,68vh,700px);display:flex;align-items:center;justify-content:center}
#flipBook{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}
#flipBook .stf__parent{margin:0 auto!important}
.bookLeaf{position:relative;overflow:hidden;background:#fffdf9;border:1px solid rgba(78,60,40,.14);box-sizing:border-box}
.bookLeaf>div{width:100%;height:100%;overflow:hidden;position:relative}
.bookLeaf.picture{background:#eae6df}
.bookLeaf.picture img,.bookLeaf.hardcover img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.bookLeaf.words .page-body{padding:clamp(16px,3.4vw,50px);display:flex;align-items:center;justify-content:center;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;font:clamp(15px,1.9vw,24px)/1.56 Georgia,'Times New Roman',serif;color:#39313d}
.bookLeaf.hardcover{background:#e7dfd3;border-radius:2px 12px 12px 2px}
.bookLeaf.hardcover .spine{position:absolute;left:0;top:0;bottom:0;width:17px;background:linear-gradient(90deg,#211b2190,transparent);pointer-events:none}
.bookLeaf .leafNumber{position:absolute;bottom:11px;right:15px;color:#8d8491;font:12px Georgia,serif}
.bookLeaf.picture .leafNumber{left:15px;right:auto;color:white;text-shadow:0 1px 3px #222}
#flipError{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;color:#9b3232;background:#fffefc;border:1px solid #edcccc;border-radius:12px}
#flipError[hidden]{display:none}
@media(max-width:700px){.readingStage{padding:4px;min-height:400px}.flipFrame{height:min(68dvh,620px)}.bookLeaf.words .page-body{padding:18px;font-size:clamp(14px,3.7vw,20px)}}
/* portrait thumbnails never inherit gigantic PDF page margins */
.books .cover img{object-fit:cover;background:#f9f8f5}
/* Offline fallback surface (used only when the genuine StPageFlip CDN is unavailable). */
.offlineBook{perspective:2200px;overflow:visible}
.offlineScene{position:relative;display:flex;align-items:stretch;justify-content:center;transform-style:preserve-3d;box-shadow:8px 14px 32px #0003}
.offlinePage{height:100%;overflow:hidden;background:#fffdfa;position:relative;flex:none}
.offlinePage>.bookLeaf{width:100%;height:100%}
.offlinePage.single{margin:0 auto}
.offlinePage.left{box-shadow:inset -12px 0 22px -16px #0008}
.offlinePage.right{box-shadow:inset 12px 0 22px -16px #0007}
.offlineTurn{position:absolute;top:0;height:100%;transform-style:preserve-3d;z-index:10;transition-property:transform;transition-timing-function:cubic-bezier(.3,.06,.2,1);box-shadow:1px 0 9px #0002}
.offlineTurn.toLeft{transform-origin:left center;transform:rotateY(0)}
.offlineTurn.toRight{transform-origin:right center;transform:rotateY(0)}
.offlineTurn.toLeft.turning{transform:rotateY(-180deg)}
.offlineTurn.toRight.turning{transform:rotateY(180deg)}
.offlineFace{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fffdfa}
.offlineFace.back{transform:rotateY(180deg)}
.offlineFace:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0003,transparent 28%,transparent 67%,#0003);pointer-events:none}
.offlineCurlCorner{position:absolute;right:0;bottom:0;width:65px;height:65px;z-index:20;cursor:pointer}
.offlineCurlCorner:after{content:"";position:absolute;right:0;bottom:0;width:0;height:0;border-style:solid;border-width:0 0 0 0;transition:border-width .17s;filter:drop-shadow(-2px -2px 3px #0004)}
.offlineCurlCorner:hover:after{border-width:0 0 47px 47px;border-color:transparent transparent #d1c8bb transparent}

/* PDF pages whose typeset text is part of the image must fit the right leaf. */
.bookLeaf.words .page-body:has(.printedTextPage){padding:0;display:block;overflow:hidden}
.bookLeaf.words .printedTextPage{width:100%;height:100%;display:block;object-fit:fill;pointer-events:none}

/* v3.6: Responsive cover tiles; preserve book proportions at any viewport width. */
.books {grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),205px));gap:clamp(14px,2.4vw,28px);justify-content:start}
.bookCard{min-width:0;width:100%;max-width:205px}
.bookCard .cover{width:100%;height:auto;aspect-ratio:3/4;min-width:0}
.bookCard .cover img{width:100%;height:100%;object-fit:cover;display:block}
.bookCard h3{overflow-wrap:anywhere}
@media(max-width:480px){main{padding-left:14px;padding-right:14px}.books{grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr));gap:14px}.bookCard{max-width:185px}}

/* v3.7: clear empty-language state and visible build number */
.languageNotice{grid-column:1/-1;line-height:1.6;padding:18px 20px;border:1px solid #ddd5ca;border-radius:12px;background:#fffdfa}
.languageNotice button{margin:5px 8px 5px 0}.versionMark{font:12px system-ui,sans-serif;color:#9a7865;letter-spacing:.04em}

/* v3.8: display the whole original cover, including its bottom title.
   Previously object-fit:cover clipped the artwork to a forced 3:4 frame. */
.books .bookCard .cover{aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;background:#f3eee7;overflow:hidden}
.books .bookCard .cover img{width:100%;height:100%;object-fit:contain;object-position:center center;display:block}
/* Never crop the closed book in the reader either. */
.bookCover img,.bookLeaf.hardcover img{object-fit:contain!important;background:#f3eee7}

/* v4: original PDF raster pages are never cropped to cover their leaf. */
.bookLeaf.picture img,.bookLeaf.hardcover img {object-fit:contain!important;background:#f6f2ec}
.bookLeaf.words .printedTextPage{object-fit:contain!important;background:#fffdfb}
.bookLeaf.words .page-body.emptyPrintedPage{background:linear-gradient(90deg,#eee9e2,#fffdfb 14%)}

/* 4.1: remove browser-added paper bands. Page aspect ratio is now matched
   to the first picture so the image fits edge to edge without cropping. */
.bookLeaf.picture,.bookLeaf.words,.bookLeaf.hardcover {border:0!important;box-shadow:none!important}
.bookLeaf.picture .page-body,.bookLeaf.words .page-body:has(.printedTextPage),.bookLeaf.hardcover .page-body {padding:0!important}
.bookLeaf.picture img,.bookLeaf.words .printedTextPage,.bookLeaf.hardcover img {
 width:100%!important;height:100%!important;object-fit:fill!important;
 display:block!important;margin:0!important;
}
.bookLeaf.hardcover .spine{width:8px}
.flipFrame{width:100%;max-width:1120px}

/* v4.4 — Library covers use their real image ratio, not a forced 3:4 canvas.
   Prevent the pale side bands visible on tall PDF-derived covers. */
.books .bookCard .cover {
  display:block; width:100%; height:auto; aspect-ratio:auto;
  background:transparent; overflow:visible; border-radius:0;
  box-shadow:none; line-height:0;
}
.books .bookCard .cover img {
  display:block; width:100%; height:auto; max-width:100%;
  aspect-ratio:auto; object-fit:contain; object-position:center;
  background:transparent; border-radius:7px 14px 14px 7px;
  box-shadow:5px 7px 17px #4e415036;
}

/* v4.15 — native StPageFlip showCover. The cover and all other pages
   belong to ONE book and ONE animation timeline. No opacity/clip-path fades. */
.flipFrame {perspective:none!important; isolation:isolate;}
#flipBook {opacity:1!important;visibility:visible!important;transition:none!important}
#flipBook .stf__parent {margin:0 auto!important;filter:drop-shadow(6px 13px 16px #291c2633)}
.bookLeaf.hardcover .page-body,.bookLeaf.backCover .page-body {background:#f9f5ec}
.bookLeaf.hardcover {border-radius:3px 12px 12px 3px;overflow:hidden}
.bookLeaf.backCover {border-radius:12px 3px 3px 12px}
/* Offline renderer preserves the appearance and remains usable, but
   native StPageFlip offers page curvature and corner curls where available. */
.offlinePage.single{box-shadow:6px 10px 18px #221c2735}

/* v1.5 offline hardcover: the right-hand leaf pivots at the book spine,
   while the complete book gently shifts from single to double-page width. */
.offlineScene{will-change:transform;transform-style:preserve-3d;box-shadow:none!important}
.offlineCoverTurn{z-index:30!important;backface-visibility:visible;transform-style:preserve-3d;
  box-shadow:0 8px 14px #251a2c25!important}
.offlineCoverTurn .offlineFace{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.offlineCoverTurn .offlineFace.back{transform:rotateY(180deg)}
.offlineCoverTurn .bookLeaf.hardcover .page-body {box-shadow:inset 6px 0 12px #211b2626}

/* v4.17.3: stable physical page geometry. The animation changes the
   wrapper's position, not transform (native PageFlip uses screen coordinates). */
.flipFrame {overflow:visible!important;isolation:isolate}
.bookMotion {position:relative;display:flex;justify-content:center;align-items:center;
 width:100%;height:100%;min-width:0;left:0;transform:none!important;
 transition:left 950ms cubic-bezier(.25,.1,.25,1);will-change:left}
.flipFrame.coverNoTransition .bookMotion {transition:none!important}
.flipFrame.coverAtStart .bookMotion {left:var(--cover-start-shift,0px)}
.flipFrame.coverAtEnd .bookMotion {left:var(--cover-end-shift,0px)}
/* Do not force over-wide images into StPageFlip's real pages.
   The prior +2px/left:-1px rule caused resampling seams and distortion. */
.bookLeaf.picture,.bookLeaf.hardcover,.bookLeaf.words {border:0!important;box-shadow:none!important;}
.bookLeaf.picture,.bookLeaf.hardcover {background:#e1e2d9!important;}
.bookLeaf.picture .page-body,.bookLeaf.hardcover .page-body {background:#e1e2d9!important;
 margin:0!important;padding:0!important;overflow:hidden!important}
.bookLeaf.picture img,.bookLeaf.hardcover img {
 position:static!important;width:100%!important;max-width:100%!important;
 height:100%!important;object-fit:fill!important;display:block!important;
 margin:0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* Narrow dark book binding: intentional line, never an empty white gutter. */
.bookLeaf.hardcover .spine{width:3px!important;
 background:linear-gradient(to right,rgba(48,43,45,.33),transparent)!important}
@media(max-width:700px){.bookMotion {transition-duration:850ms}}

/* v4.17.2 - closing signal on the LAST narrated spread, not on the cover. */
#coverBtn.readyToClose:not(:disabled){
  border:2px solid #bb7b32!important;background:#fff4de!important;
  color:#6b3f17!important;font-weight:700!important;
  box-shadow:0 0 0 4px rgba(205,150,72,.20),0 0 15px rgba(205,150,72,.22);
  opacity:1!important;
  animation:readyCoverGlow 1.7s ease-in-out infinite;
}
@keyframes readyCoverGlow{
  0%,100%{box-shadow:0 0 0 3px rgba(205,150,72,.16),0 0 8px rgba(205,150,72,.17)}
  50%{box-shadow:0 0 0 6px rgba(205,150,72,.25),0 0 20px rgba(205,150,72,.34)}
}
@media(prefers-reduced-motion:reduce){#coverBtn.readyToClose{animation:none!important}}
/* v4.17.3: front/back cover are identical images. A temporary perfectly
   stationary cover mask hides only the instantaneous engine seek, not the flip. */
.flipFrame .bookMotion {opacity:1!important;transition:left 950ms cubic-bezier(.25,.1,.25,1)!important}
.flipFrame.coverNoTransition .bookMotion {transition:none!important}
.flipFrame.coverHandoffActive .bookMotion {visibility:hidden!important}
.coverHandoff {position:absolute;z-index:100;overflow:hidden;pointer-events:none;
 background:#eee7db;box-shadow:6px 13px 16px #291c2633}
.coverHandoff img {width:100%;height:100%;object-fit:fill;display:block}

/* v4.17.7 — ONE 3D hinge and one vertical baseline.
   In StPageFlip 2.0.7, showCover temporarily draws the adjoining soft
   page with drawHard() (rotateY), although its class remains --soft.
   The former hardcover-only top correction left the first INNER leaf at
   top=0 while the hardcover was at boundsRect.top, creating a huge gap.
   Only 3D/hard-drawn leaves get the engine's book top. All native soft
   bending (rotate(...rad)) pages retain their original coordinates. */
#flipBook.nativeFlipActive .stf__item:not(.--simple)[style*="rotateY("] {
  top:var(--native-hardcover-top,0px)!important;
}
/* No artificial paper-strip overlays; both leaves actually meet on the hinge. */

/* Cover quality: a hinged 3D cover stays on the same page plane.
   The stock 2000px perspective blows the leading edge far above/below
   a 690px leaf during opening. Keep a subtle 3D perspective for cover
   only; never alter soft interior page-turn animations. */
#flipFrame.coverTurning #flipBook .stf__block { perspective: 16000px !important; }
/* StPageFlip hard-shadow is wider than a closed book during the cover
   turn. Suppress the large rectangular ghost, preserve book edge shadow. */
#flipFrame.coverTurning #flipBook .stf__outerShadow,
#flipFrame.coverTurning #flipBook .stf__innerShadow,
#flipFrame.coverTurning #flipBook .stf__hardShadow,
#flipFrame.coverTurning #flipBook .stf__hardInnerShadow { display:none !important; }
#flipBook .offlineCoverTurn .bookLeaf.hardcover {top:auto!important;}

/* Both turns use the same flat projection and the same vertical spine.
   Keeping perspective off the cover preserves both horizontal edges. */
#flipBook .stf__item.coverPictureHidden {visibility:hidden!important}
.animatedCover {position:absolute;z-index:70;pointer-events:none;
  transform-style:preserve-3d;transform:rotateY(0deg)}
.animatedCover.coverOpening {transform-origin:left center}
.animatedCover.coverClosing {transform-origin:right center}
.coverFace {position:absolute;inset:0;background:#e1e2d9;
  backface-visibility:hidden;-webkit-backface-visibility:hidden}
.coverFace img {width:100%;height:100%;display:block;object-fit:fill}
.coverOpening .coverInner,.coverClosing .coverOuter {transform:rotateY(180deg)}
.coverOuter::after {content:'';position:absolute;top:0;bottom:0;left:0;width:3px;
  background:linear-gradient(to right,#302b2d55,transparent)}
/* The binding stays behind the moving leaf, even when it is edge-on.
   Both stationary page geometry and the binding use the measured hinge. */
.animatedCoverHinge {position:absolute;width:3px;margin-left:-1.5px;z-index:69;
 pointer-events:none;background:#544b3d}
.coverOuter {border-radius:3px 12px 12px 3px;overflow:hidden}
.coverInner {border-radius:9px 0 0 9px;overflow:hidden}

/* Extend the inner artwork under the turning cover and the first right page. */
.animatedCoverHinge:has(img) {width:6px;margin-left:-3px;overflow:hidden}
.animatedCoverHinge img {position:absolute;right:3px;height:100%;max-width:none;
  display:block;object-fit:fill}

/* Clip the whole moving leaf, including its paper backing, during video capture.
   The engine still clips the folded part with its own animated polygon. */
.videoCapture #flipBook .bookLeaf.picture,
.videoCapture .animatedCover .coverInner {border-radius:14px 0 0 14px;overflow:hidden}
.videoCapture #flipBook .bookLeaf.words {border-radius:0 14px 14px 0;overflow:hidden}

/* ANDY_STORIES_OUTER_CORNERS_ONLY_V2 */
/* The binding is straight; only the two OUTER corners of each page are round.
   Applies equally to browser reader and Chromium MP4 export. */
:root { --andy-paper-corner: 12px; }
#flipBook .bookLeaf.picture,
#flipBook .bookLeaf.backCover {
  border-radius: var(--andy-paper-corner) 0 0 var(--andy-paper-corner) !important;
  -webkit-clip-path: inset(0 round var(--andy-paper-corner) 0 0 var(--andy-paper-corner));
  clip-path: inset(0 round var(--andy-paper-corner) 0 0 var(--andy-paper-corner));
  overflow: hidden !important;
}
#flipBook .bookLeaf.words,
#flipBook .bookLeaf.hardcover:not(.backCover) {
  border-radius: 0 var(--andy-paper-corner) var(--andy-paper-corner) 0 !important;
  -webkit-clip-path: inset(0 round 0 var(--andy-paper-corner) var(--andy-paper-corner) 0);
  clip-path: inset(0 round 0 var(--andy-paper-corner) var(--andy-paper-corner) 0);
  overflow: hidden !important;
}
/* Inner page content stays square; the outer leaf clips it. */
#flipBook .bookLeaf .page-body,
#flipBook .bookLeaf img,
#flipBook .bookLeaf .printedTextPage {
  border-radius: 0 !important;
}
/* Native closing LEFT cover hinges at the right (book spine). */
.leftClosingCover,
.leftClosingCover .closingCoverFace,
.leftClosingCover .closingCoverFace img {
  border-radius: var(--andy-paper-corner) 0 0 var(--andy-paper-corner) !important;
}
/* The handoff cover is a right-side leaf. */
.coverHandoff,
.coverHandoff img {
  border-radius: 0 var(--andy-paper-corner) var(--andy-paper-corner) 0 !important;
}

