.academy-library{background:#fff7e7;border:4px solid #e3cf9e;border-radius:34px;padding:42px 36px;text-align:center;box-shadow:0 16px 40px #263a2c30}.academy-library h1{font-family:Georgia,serif;color:#426c55;font-size:clamp(32px,5vw,52px);margin:12px 0}.library-intro{color:#6d5745;line-height:1.6;margin:0 0 28px}.lesson-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:850px;margin:auto}.lesson-book{padding:0;overflow:hidden;text-align:left;display:flex;flex-direction:column;background:#fffdf6;border:1px solid #e8dabd;border-radius:20px;box-shadow:0 5px 0 #d8caad;color:#486d55;transition:transform .2s}.lesson-book:hover{transform:translateY(-3px)}.book-cover{display:block;width:100%;aspect-ratio:1.65;background-repeat:no-repeat;position:relative}.book-cover.first-cover{background-image:url('../story-cozy.png');background-size:304% 100%;background-position:50% 50%}.book-cover b{position:absolute;left:12px;top:12px;background:#fff4d9;box-shadow:0 3px 8px #0002;color:#4e7155;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:15px}.book-copy{display:flex;flex-direction:column;padding:20px;gap:9px}.book-copy strong{font:700 25px/1.16 Georgia,serif}.book-copy small{font-size:12px;letter-spacing:.06em;color:#926c49}.book-copy>span{font-size:14px;font-weight:400;line-height:1.4;color:#6d6556}.book-copy em{font-style:normal;font-size:14px;margin-top:8px;color:#4c805f}.collection-note{margin:30px 0 20px;line-height:1.7;color:#75654d}.collection-note small{font-size:13px}.academy-story-art{aspect-ratio:1;max-height:540px;width:100%;background-repeat:no-repeat}.academy-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px auto;max-width:620px}.academy-choices button{padding:12px 6px;background:#fffcf2;border:3px solid #e9dcb8;box-shadow:0 5px 0 #dbcaab;border-radius:22px;min-width:0;color:#5b6148}.academy-choices svg{display:block;width:100%;max-width:125px;margin:auto}.academy-choices span{display:block;font-size:15px;margin-top:8px}.academy-choices button.chosen{border-color:#6f9d76;background:#e9f0da;box-shadow:0 5px 0 #96ad7b}.academy-choices button:disabled{opacity:.75}.activity-scene{min-height:210px;border-radius:25px;background:linear-gradient(#dcebe0,#f9f0d8);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:22px;overflow:hidden}.focus-picture{width:180px;max-width:65%;filter:drop-shadow(0 8px 2px #7c835320)}.focus-picture svg{width:100%;height:auto}.activity-dots{color:#8f9f66;letter-spacing:14px;margin-left:14px;font-size:24px}.activity-scene p{margin:8px 0 0;color:#526f55;font-size:17px}.growing-pot{position:relative;width:230px;height:210px}.terracotta-pot{position:absolute;bottom:0;left:64px;width:104px;height:70px;background:#ca9673;clip-path:polygon(0 0,100% 0,87% 100%,13% 100%);border-top:10px solid #ac7956}.plant-growth{position:absolute;bottom:56px;left:58px;width:118px;height:130px;display:flex;align-items:end;justify-content:center}.plant-growth svg{width:100%;height:100%;transform-origin:bottom;animation:sprout .8s ease-out}.little-seed{display:block;width:27px;height:16px;background:#947044;border-radius:50%;margin-bottom:9px}.watering-spark{position:absolute;width:38px;right:6px;top:70px}.sun-spark{position:absolute;width:65px;right:-6px;top:0}.shape-ark{width:100%;max-width:440px;height:auto}.movement-nook{border-radius:28px;overflow:hidden;max-width:650px;margin:auto}.movement-nook img{width:100%;display:block}.movement-direction{font:26px/1.5 Georgia,serif;text-align:center;color:#496f53}.offline-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.offline-grid>img{width:100%;border:1px solid #dac7a4;border-radius:16px}.offline-grid h2{font:28px Georgia,serif;color:#4f7457}.offline-grid p{font-size:19px;line-height:1.6}.print-pictures{display:flex;justify-content:space-around;gap:20px;margin:25px 0}.print-pictures svg{width:100px;height:100px;filter:grayscale(1)}.academy-print section>svg{width:90%;max-height:100px}.broad-lines{font-size:62px;letter-spacing:8px;color:#777}.academy-print section>img{object-fit:contain}.tools{flex-wrap:wrap;justify-content:flex-end}#adventures{background:#e5ecd5}#restartLesson{display:block;margin:18px auto 5px;font-size:14px;background:transparent;box-shadow:none;text-decoration:underline;color:#6c775b}@keyframes sprout{from{transform:scale(.3)}to{transform:scale(1)}}
@media(max-width:600px){.academy-library{padding:28px 16px;border-radius:28px}.lesson-shelf{gap:18px;grid-template-columns:1fr}.lesson-book{display:grid;grid-template-columns:38% 62%;align-items:stretch}.book-cover{height:100%;aspect-ratio:auto;min-height:180px}.book-copy{padding:18px 13px;gap:7px}.book-copy strong{font-size:23px}.book-copy>span{font-size:13px}.book-copy em{font-size:13px}.book-copy small{font-size:10px}.book-cover b{width:28px;height:28px;font-size:12px;left:8px;top:8px}.academy-choices{gap:8px}.academy-choices button{padding:9px 3px;border-radius:17px}.academy-choices span{font-size:12px}.activity-scene{min-height:185px;padding:15px}.focus-picture{width:150px}.offline-grid{grid-template-columns:1fr}.offline-grid>img{max-height:290px;object-fit:contain;background:white}.movement-direction{font-size:22px}.tools{gap:5px}.tools button{padding:11px 12px;font-size:12px}header .brand{font-size:23px}header .brand small{font-size:8px;letter-spacing:1px}header{gap:8px}.tools{max-width:175px}#adventures{order:3;flex-basis:100%;padding:7px}.academy-story-art{min-height:0}.activity-scene p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.lesson-book,.plant-growth svg{animation:none;transition:none}}
@media print{.academy-print .broad-lines{font-size:50px;line-height:1.3}.academy-print section>img{max-height:7.3in}.academy-print .draw-box{height:2.2in}.academy-print section>svg{height:1in}.academy-print .print-pictures{margin:20px 0}.academy-print section{break-inside:avoid}.academy-print .print-pictures svg{height:1.1in;width:1.1in}}
@media(max-width:600px){header{height:100px;align-items:center;padding:8px 10px}header .brand{font-size:21px;padding:12px 9px;flex-shrink:0}.tools{width:175px;max-width:175px;display:flex;gap:5px;align-content:center}.tools button{font-size:10px;padding:8px;min-height:32px}#adventures{min-height:30px}.lesson-view{height:calc(100svh - 110px);min-height:570px}.academy-story-art{aspect-ratio:1}}
.academy-lesson{height:auto;min-height:calc(100svh - 110px);display:block;overflow:visible}.academy-lesson .lesson-content{display:flex;gap:16px;justify-content:flex-start}.academy-lesson .lesson-heading{padding:8px 0 12px}.academy-lesson .lesson-heading h1{margin:8px 0}.academy-lesson .activity-scene{width:100%}.academy-lesson .academy-choices{width:100%;margin:0 auto}.academy-lesson .guide-row{margin-top:20px}.academy-lesson .storybook{height:auto;max-height:none}.academy-lesson #tracePad{height:300px;flex-shrink:0}.academy-lesson .prayer-scene{height:380px;min-height:0}.academy-lesson .closing-card{max-height:none}.academy-lesson .movement-nook img{max-height:420px;object-fit:cover}.academy-lesson .lesson-footer{padding-top:10px}.academy-lesson .spelling-word{padding:55px 0}.academy-lesson .academy-story-art{height:auto;max-height:none}.academy-lesson #againGame{font-size:13px;padding:9px 16px;min-height:35px}@media(max-width:600px){.academy-lesson{padding:14px 12px}.academy-lesson .prayer-scene{height:310px}.academy-lesson .storybook{display:block}.academy-lesson .story-words{padding:16px}.academy-lesson .story-words p{margin:0 0 10px}.academy-lesson .lesson-heading h1{font-size:28px}.academy-lesson .lesson-heading>span{font-size:9px;letter-spacing:1px}.academy-lesson .activity-scene{min-height:190px}.academy-lesson .guide-row .caption{max-height:82px;font-size:13px}}
/* Story-first home: resume stays visible above the full Bible journey. */
.story-library{padding:36px clamp(16px,4vw,48px);max-width:1100px;margin:auto}.continue-panel{display:flex;gap:25px;align-items:center;text-align:left;background:linear-gradient(115deg,#e6edd5,#f3e5bc);border:1px solid #d4d9b8;border-radius:25px;padding:22px 30px;margin:28px auto 38px;max-width:850px;box-shadow:0 5px 0 #d5d6b5}.continue-panel>img{width:115px;height:140px;object-fit:contain;filter:drop-shadow(0 5px 5px #74634326);flex-shrink:0}.continue-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:900;color:#78834c}.continue-panel h2{font:700 clamp(23px,3vw,32px)/1.15 Georgia,serif;color:#3d6751;margin:8px 0}.continue-panel p{font-size:13px;color:#677557;margin:9px 0 16px}.continue-panel button{font-size:15px;min-height:46px;padding:12px 20px}.shelf-intro{text-align:left;max-width:950px;margin:0 auto 20px}.shelf-intro h2{font:700 27px Georgia,serif;color:#496d53;margin:0 0 8px}.shelf-intro p{font-size:13px;color:#85765d}.story-chapter{text-align:left;margin:30px auto 44px;max-width:950px}.chapter-heading{display:flex;gap:12px;align-items:center;margin-bottom:17px;border-bottom:1px solid #dfd3b8;padding-bottom:12px}.chapter-heading>span{display:grid;place-items:center;border-radius:50%;width:30px;height:30px;background:#e8dfc6;font-size:11px;font-weight:900;color:#8c784d;flex-shrink:0}.chapter-heading h2{font:700 24px Georgia,serif;color:#56745a;margin:0}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.story-chapter:first-of-type .story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-card{padding:0;display:flex;flex-direction:column;border-radius:20px;border:1px solid #decfb0;box-shadow:0 6px 0 #d3c6aa;background:#fffdf7;text-align:left;overflow:hidden;min-width:0}.story-card:disabled{opacity:1;cursor:default;transform:none}.story-cover-frame{width:100%;aspect-ratio:1.3;position:relative;display:block;overflow:hidden;background:#e6e3d7}.story-cover-art{width:100%;height:100%;object-fit:cover;display:block;background-repeat:no-repeat}.story-ready .story-cover-frame{aspect-ratio:1.6}.story-status{position:absolute;bottom:12px;left:12px;background:#eef5df;color:#466b4f;border:1px solid #e1e8d1;padding:7px 11px;border-radius:20px;font-size:11px;font-weight:900;box-shadow:0 3px 8px #0001}.story-soon .story-cover-art{filter:grayscale(1) brightness(.92);opacity:.83}.story-soon .story-status{background:#eeeae0;border-color:#e5e0d4;color:#625f57}.story-card-copy{display:flex;flex-direction:column;gap:10px;padding:19px 18px 21px;flex:1}.story-card-copy small{font-size:10px;letter-spacing:.07em;color:#9b8157}.story-card-copy strong{font:700 25px/1.14 Georgia,serif;color:#4b7055}.story-card-copy>span{font-size:14px;font-weight:400;line-height:1.5;color:#726d5d}.story-card-copy em{font-size:12px;font-style:normal;color:#64815c;margin-top:auto;padding-top:7px}.story-soon .story-card-copy strong{color:#6a6b63}.story-soon .story-card-copy em{color:#88867b}.story-soon .story-card-copy small{color:#878379}.story-ready:hover{transform:translateY(-2px)}.shelf-back{display:block;margin:0 0 24px;font-size:13px;box-shadow:none;background:#e9eddc}.story-ready:focus-visible,.continue-panel button:focus-visible{outline:4px solid #cc9940;outline-offset:4px}
@media(max-width:700px){.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.continue-panel{padding:20px 15px;gap:14px}.continue-panel>img{width:90px;height:120px}.story-card-copy{padding:15px 12px;gap:8px}.story-card-copy strong{font-size:22px}.story-card-copy>span{font-size:12px}.chapter-heading h2{font-size:23px}.story-card-copy em{font-size:11px}.shelf-intro h2{font-size:24px}.story-cover-frame{aspect-ratio:1}.story-status{left:8px;bottom:8px;font-size:10px;padding:6px 8px}}
@media(max-width:420px){.story-library{padding:25px 13px}.continue-panel{gap:10px;margin:22px auto 30px;padding:17px 12px}.continue-panel>img{width:65px;height:95px}.continue-panel h2{font-size:22px}.continue-panel p{font-size:11px;line-height:1.5}.continue-panel button{font-size:12px;padding:10px 12px;min-height:44px}.continue-eyebrow{font-size:8px;letter-spacing:1px}.story-grid{gap:12px}.story-card-copy strong{font-size:20px}.story-card-copy{padding:13px 10px 16px}.story-card-copy>span{font-size:12px}.story-card-copy small{font-size:9px}.story-chapter{margin-bottom:30px}.story-ready .story-cover-frame{aspect-ratio:1}.story-card{border-radius:16px}.chapter-heading h2{font-size:21px}.shelf-intro p{font-size:12px}}
/* Interactive Bible with a real hinged page turn; no additional video download. */
.bible-browser{max-width:850px;margin:0 auto 48px;padding:26px 16px 22px;background:radial-gradient(ellipse at center,#e8d7ad55,transparent 70%);border-bottom:1px solid #dfd3b8}.bible-browser-heading h2{font:700 32px Georgia,serif;color:#4b7055;margin:10px 0}.bible-browser-heading p{font-size:13px;color:#8b795a;margin:6px 0 26px}.bible-book{display:grid;grid-template-columns:1fr 1fr;position:relative;isolation:isolate;perspective:1600px;aspect-ratio:1.8;background:#695039;border:8px solid #876344;border-bottom-width:12px;border-radius:14px 18px 18px 14px;box-shadow:0 4px #eee1c1,0 7px #b59d75,0 10px #eee1c1,0 14px #664933,0 20px 28px #563e3d35;margin:0 auto 33px;touch-action:pan-y;outline-offset:8px;max-width:760px}.bible-page{position:relative;min-width:0;overflow:hidden}.bible-page-left{background:linear-gradient(90deg,#f9efd7,#fff9e9 15%,#fbf2dc 86%,#cdb996);border-radius:4px 0 0 4px;padding:clamp(14px,3vw,38px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.bible-page-right{background:linear-gradient(90deg,#b49b77,#f7ecd2 8%,#fff8e6);border-radius:0 6px 6px 0;padding:14px 14px 28px}.bible-cross{font-size:35px;color:#ac8b43;line-height:1.1;margin-bottom:12px}.bible-page-left small{font-size:10px;letter-spacing:.08em;color:#9b8057}.bible-page-left h3{font:700 clamp(20px,2.6vw,34px)/1.12 Georgia,serif;margin:12px 0;color:#4d6d52}.bible-page-left p{font:17px/1.5 Georgia,serif;color:#827257;max-width:230px;margin:0}.bible-illustration{width:100%;height:100%;display:block;object-fit:cover;background-repeat:no-repeat;border-radius:4px}.bible-unreleased{filter:grayscale(1) brightness(.95)}.bible-page-number{position:absolute;bottom:8px;left:50%;font:10px Georgia,serif;color:#aa9472}.bible-spine{position:absolute;left:calc(50% - 6px);width:12px;top:0;bottom:0;background:linear-gradient(90deg,transparent,#68502b66,transparent);pointer-events:none;z-index:4}.bible-ribbon{position:absolute;right:18%;top:-8px;width:20px;height:52px;background:#a16769;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);z-index:5;box-shadow:0 2px 3px #0003}.bible-soon-label{position:absolute;left:24px;bottom:38px;background:#eeeae3f5;color:#68675e;padding:8px 12px;font-size:12px;font-weight:800;border-radius:18px}.bible-navigation{display:flex;gap:22px;align-items:center;justify-content:center}.bible-navigation button{width:48px;height:44px;padding:0;font-size:24px;background:#e6ecd7;color:#587455;box-shadow:0 4px 0 #ced5b6}.bible-navigation span{font-size:12px;color:#8f7c5b;min-width:100px}.bible-story-actions{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:20px}.bible-story-actions button{font-size:14px;padding:11px 18px;min-height:44px}#seeAllStories{background:transparent;box-shadow:none;color:#6e7857;text-decoration:underline}.bible-unavailable{font-size:13px;color:#8a877b;margin:0}.bible-turning-leaf{position:absolute;z-index:6;top:0;bottom:0;left:50%;width:50%;transform-origin:left center;background:linear-gradient(90deg,#cdb996,#fff9e9 12%,#f9efd7);padding:14px 14px 28px;border-radius:0 6px 6px 0;backface-visibility:hidden;box-shadow:-8px 1px 16px #6b503333;animation:bible-page-flip .65s cubic-bezier(.25,.55,.35,1) forwards;pointer-events:none}.bible-turning-leaf.turn-back{animation:bible-page-flip-back .65s cubic-bezier(.25,.55,.35,1) forwards}@keyframes bible-page-flip{0%{transform:rotateY(0deg);filter:brightness(1)}50%{filter:brightness(.8)}100%{transform:rotateY(-180deg);filter:brightness(1)}}@keyframes bible-page-flip-back{0%{transform:rotateY(-180deg)}100%{transform:rotateY(0deg)}}
@media(max-width:600px){.bible-browser{padding:16px 0 25px;margin-bottom:30px}.bible-browser-heading h2{font-size:27px}.bible-book{aspect-ratio:1.28;border-width:5px;border-bottom-width:8px;margin-bottom:28px}.bible-page-left{padding:14px 10px}.bible-page-left h3{font-size:21px;margin:10px 0}.bible-page-left p{font-size:12px;line-height:1.4}.bible-page-left small{font-size:9px;letter-spacing:0}.bible-cross{font-size:26px;margin-bottom:8px}.bible-page-right,.bible-turning-leaf{padding:8px 8px 23px}.bible-ribbon{width:14px;height:35px;top:-5px}.bible-soon-label{font-size:9px;left:14px;bottom:30px;padding:6px 8px}.bible-story-actions{gap:4px}.bible-story-actions button{font-size:12px}.bible-browser-heading .kicker{font-size:9px}.bible-page-number{bottom:7px}}
@media(prefers-reduced-motion:reduce){.bible-turning-leaf{animation:none;display:none}}

.garden-hunt{position:relative;isolation:isolate;width:100%;height:350px;border:5px solid #c9d7aa;border-radius:28px;overflow:hidden;background:linear-gradient(#c8e9ec 0 58%,#a6c981 58% 72%,#769d60 72%)}.garden-cloud{position:absolute;top:10px;right:15%;font-size:65px;color:#fffdf6}.garden-fence{position:absolute;top:48%;height:24%;width:100%;background:repeating-linear-gradient(90deg,transparent 0 15px,#e5d0a5 15px 28px,transparent 28px 43px);border-top:10px solid #e5d0a5;border-bottom:9px solid #e5d0a5}.garden-item{position:absolute;width:30%;padding:5px;background:transparent;box-shadow:none;border:3px solid transparent;border-radius:20px}.garden-item svg{display:block;width:100%;filter:drop-shadow(0 5px 3px #31472530)}.garden-flower{left:5%;bottom:14%;width:33%}.garden-leaf{left:39%;bottom:5%;transform:rotate(-18deg);width:25%}.garden-can{right:3%;bottom:13%}.garden-item.found{border-color:#fff4bb;background:#fff4bb44;opacity:.7}.garden-item:focus-visible{outline:4px solid #f2c75d}.garden-movement{height:310px;flex:none;aspect-ratio:4/3}.garden-movement>video,.garden-movement>img{object-fit:contain}.gentle-steps{font:23px/1.4 Georgia,serif;color:#496f53;text-align:center}.gentle-steps p{margin:10px 0}@media(max-width:600px){.garden-hunt{height:300px}.garden-movement{height:240px}.gentle-steps{font-size:21px}}
/* A slower, double-sided paper turn with moving fold shadows. */
.bible-book{perspective:1800px;perspective-origin:50% 45%}
.bible-old-page{position:absolute;top:0;bottom:0;width:50%;z-index:5;pointer-events:none}
.bible-old-page.bible-page-left{left:0}.bible-old-page.bible-page-right{right:0}
.bible-turning-leaf{padding:0;background:transparent;backface-visibility:visible;transform-style:preserve-3d;box-shadow:none;animation:bible-paper-forward 1.15s cubic-bezier(.35,.05,.3,1) forwards}
.bible-turning-leaf.turn-back{animation:bible-paper-back 1.15s cubic-bezier(.35,.05,.3,1) forwards}
.bible-turn-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border:1px solid #dfcfaa;box-shadow:0 3px 12px #57391c30}
.bible-turn-front{padding:14px 14px 28px;background:linear-gradient(90deg,#cdb996,#fff9e9 12%,#f9efd7);border-radius:0 7px 7px 0;transform:translateZ(.3px)}
.bible-turn-reverse{transform:rotateY(180deg) translateZ(.3px);border-radius:7px 0 0 7px}
.bible-turn-front:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#74522b55,transparent 30%,#fff9d52b 70%,#6e4a2333);pointer-events:none}
.bible-book.is-turning .bible-ribbon{animation:bible-ribbon-sway 1.15s ease-in-out;transform-origin:top center}
/* Do not apply filter/opacity to the 3D parent: it flattens both faces. */
@keyframes bible-paper-forward{0%{transform:rotateY(0deg) skewY(0deg) scaleX(1)}28%{transform:rotateY(-40deg) skewY(-4deg) scaleX(.94)}50%{transform:rotateY(-90deg) skewY(-6deg) scaleX(.88)}75%{transform:rotateY(-145deg) skewY(-3deg) scaleX(.95)}100%{transform:rotateY(-180deg) skewY(0deg) scaleX(1)}}
@keyframes bible-paper-back{0%{transform:rotateY(-180deg) skewY(0deg) scaleX(1)}28%{transform:rotateY(-140deg) skewY(4deg) scaleX(.94)}50%{transform:rotateY(-90deg) skewY(6deg) scaleX(.88)}75%{transform:rotateY(-35deg) skewY(3deg) scaleX(.95)}100%{transform:rotateY(0deg) skewY(0deg) scaleX(1)}}
.bible-turn-face:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#68482155,transparent 24%,#fffbe766 55%,#79543144);opacity:0;animation:bible-fold-shade 1.15s ease-in-out both}
@keyframes bible-fold-shade{0%,100%{opacity:0}35%,65%{opacity:.8}}
@keyframes bible-ribbon-sway{40%{transform:rotate(-4deg)}75%{transform:rotate(2deg)}100%{transform:rotate(0)}}
@media(max-width:600px){.bible-turn-front{padding:8px 8px 23px}}
@media(prefers-reduced-motion:reduce){.bible-turn-layer{display:none}.bible-book.is-turning .bible-ribbon{animation:none}}

/* Flexible page surface; each strip carries matching front and reverse content. */
.bible-curl-sheet{position:absolute;left:50%;top:0;bottom:0;width:50%;z-index:8;transform-style:preserve-3d;pointer-events:none}
.bible-curl-strip{position:absolute;left:0;top:0;height:100%;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform}
.bible-curl-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff7e4}
.bible-curl-face.curl-back{transform:rotateY(180deg)}
.bible-curl-content{position:absolute;top:0;height:100%;box-sizing:border-box;border-radius:0}
.bible-curl-face:after{content:'';position:absolute;inset:0;background:rgba(90,61,25,var(--shade,0));pointer-events:none}
@media(prefers-reduced-motion:reduce){.bible-curl-sheet{display:none}}

.story-curl-frame{position:absolute;overflow:hidden;perspective:1800px;z-index:10;pointer-events:none;border-radius:14px}
.story-curl-strip{position:absolute;left:0;top:0;height:100%;transform-style:preserve-3d;will-change:transform}
.story-curl-front,.story-curl-back{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff5df}
.story-curl-back{transform:rotateY(180deg);background:linear-gradient(90deg,#dfcba5,#fff7e6)}
.story-curl-front .storybook{box-sizing:border-box}
/* Storybook lanterns: dimensional artwork with a warm light inside the glass. */
.path-lantern{width:18%;padding:0 2px;min-height:108px}
.path-lantern i{width:clamp(44px,8vw,78px);height:clamp(68px,12vw,117px);border:0;border-radius:0;background:transparent url('activity-art/lantern.webp') center/contain no-repeat;filter:brightness(.78);transition:filter .5s,transform .5s;isolation:isolate}
.path-lantern i:before{display:none}
.path-lantern i:after{content:'';position:absolute;left:20%;right:20%;top:35%;bottom:27%;border-radius:45%;background:radial-gradient(ellipse,#fffce5 0%,#ffe58bbd 35%,#ffd16a00 75%);opacity:0;mix-blend-mode:screen;transition:opacity .6s;pointer-events:none}
.path-lantern.lit i{background:transparent url('activity-art/lantern.webp') center/contain no-repeat;box-shadow:none;filter:brightness(1.18) drop-shadow(0 0 12px #ffd87a);animation:lantern-settle .6s ease-out}
.path-lantern.lit i:after{opacity:1}
.path-lantern b{position:relative;display:inline-block;min-width:25px;border-radius:50%;padding:3px 6px;background:#284940;color:#fff4ce;margin-top:3px;box-shadow:0 2px 5px #0004}
.path-lantern.lit b{background:#efcf82;color:#35513d}
@keyframes lantern-settle{0%{transform:scale(.94)}55%{transform:scale(1.07)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.path-lantern.lit i{animation:none}.path-lantern i,.path-lantern i:after{transition:none}}

/* Keep the prayer takeaway inside the mobile card, including long sentences. */
.prayer-scene>p{box-sizing:border-box;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word;padding:12px 16px}
.academy-lesson .prayer-scene{height:auto;display:flex;flex-direction:column}
.academy-lesson .prayer-scene .prayer-player{flex:none;aspect-ratio:4/3;height:auto;min-height:0;width:100%}
