/* Preview 57A: strictly opt-in theatrical Reading Room overlay */
body.ray57-active.in-library{background-image:linear-gradient(120deg,rgba(0,12,31,.91),rgba(0,33,51,.84)),url('reading-room-photo.jpg')!important;background-position:center;background-size:cover;background-attachment:fixed}
body.ray57-active .reading-room{position:relative;isolation:isolate}
body.ray57-active #homeSection{position:relative;z-index:2}
body.ray57-active #homeSection .hero-intro,body.ray57-active #homeSection .current-book,body.ray57-active #homeSection .reading-completion-panel,body.ray57-active #homeSection .countdown-panel{background:linear-gradient(130deg,rgba(2,17,34,.96),rgba(4,30,46,.94))!important;border-color:#417e9399!important;box-shadow:0 15px 50px #001a2b88,inset 0 0 35px #21c6d20d}
body.ray57-active #homeSection .hero-intro{padding:30px;border:1px solid #417e9377;border-radius:6px}
body.ray57-active #homeSection .hero-greeting{color:#a6e6e7}
body.ray57-active #homeSection .eyebrow,body.ray57-active #homeSection .mini-label{color:#7ce2e5}
body.ray57-active #homeSection .ornament{color:#70dbdc}
body.ray57-active #homeSection .current-book .book-and-copy,body.ray57-active #homeSection .current-book .book-description,body.ray57-active #homeSection .current-book .book-art{display:none!important}
body.ray57-active #homeSection .completion-choices,body.ray57-active #homeSection #completionStatus,body.ray57-active #homeSection .reading-completion-note,body.ray57-active #homeSection .countdown-panel>#countdownDigits,body.ray57-active #homeSection .countdown-panel>#countdownDate,body.ray57-active #homeSection #readingLeadership{display:none!important}
.ray57-only{display:none}body.ray57-active .ray57-only{display:block}
.ray57-book{display:flex;align-items:center;gap:25px;margin-top:20px}.ray57-cover{flex:0 0 38%;max-width:190px;aspect-ratio:2/3;display:flex;flex-direction:column;justify-content:space-between;text-align:center;padding:24px 10px;background:radial-gradient(ellipse at 45% 62%,#41c7c3 0%,#095468 32%,#071d36 74%);border:1px solid #77e6d3;box-shadow:10px 13px 22px #0009;transform:rotate(-3deg);color:#e5fffa}.ray57-cover .octopus{font-size:64px;filter:drop-shadow(0 0 12px #59f9f9)}.ray57-cover b{font:600 clamp(17px,2.3vw,27px)/1.1 Georgia,serif;letter-spacing:.04em}.ray57-cover small{font-size:10px;letter-spacing:.18em}.ray57-bookcopy h3{font:600 clamp(30px,3vw,46px)/1.05 Georgia,serif;color:#ecffff;margin:12px 0}.ray57-bookcopy p{color:#bde5e7}.ray57-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.ray57-choices button{border:1px solid #62c6ca;background:#052536;color:#ecffff;padding:15px;min-height:60px;font:600 13px/1.4 Inter,sans-serif;cursor:pointer}.ray57-choices button:hover,.ray57-choices button:focus-visible{background:#0b5264;outline:2px solid #99f3e7}.ray57-verdict{border-left:3px solid #8ee8df;padding:12px 16px;background:#021d2d;color:#b8f2e8;min-height:40px}.ray57-plaque{text-align:center;border:1px solid #5abfc8;padding:20px;background:#031d30;color:#d8f5ee;box-shadow:inset 0 0 30px #46d3e222}.ray57-plaque h4{font:600 clamp(21px,3vw,36px)/1.15 Georgia,serif;margin:8px 0;color:#ecffff}.ray57-timer{display:flex;justify-content:center;gap:12px;margin:22px 0 10px}.ray57-timer div{text-align:center;min-width:60px}.ray57-timer strong{display:block;font:600 clamp(24px,4vw,48px)/1.2 Georgia,serif;color:#eaffff;font-variant-numeric:tabular-nums}.ray57-timer span{font-size:9px;letter-spacing:.12em;color:#8fd6d9}.ray57-relic{display:inline-block;border:1px solid #67bdc6;padding:9px 15px;color:#b9f1e9;margin-top:14px;font-size:12px}.ray57-ocean{pointer-events:none;position:fixed;inset:0;z-index:1;overflow:hidden}.ray57-ocean:before{content:'';position:absolute;inset:-20%;background:repeating-linear-gradient(110deg,transparent 0 90px,#8eefff0c 110px,transparent 155px);animation:ray57-shimmer 12s ease-in-out infinite alternate}.ray57-bubble{position:absolute;bottom:-10%;border:1px solid #8cecf47a;border-radius:50%;box-shadow:inset 0 0 8px #a8e6f055;animation:ray57-rise linear infinite}.ray57-shadow{position:absolute;top:20%;right:-20%;font-size:160px;opacity:.045;animation:ray57-drift 26s linear infinite;color:#020d1d}@keyframes ray57-rise{to{transform:translateY(-120vh) translateX(30px);opacity:0}}@keyframes ray57-shimmer{to{transform:translateX(9%) rotate(3deg)}}@keyframes ray57-drift{to{right:120%}}
.ray57-preview-banner{position:fixed;bottom:12px;right:12px;z-index:9999;background:#041d2d;color:#e5fffa;border:1px solid #76d8df;padding:9px 13px;border-radius:7px;font:12px Inter,sans-serif;box-shadow:0 5px 25px #0008}.ray57-preview-banner button{margin-left:12px;background:#b9e7e6;border:0;color:#092b36;padding:7px 10px;cursor:pointer}
@media(max-width:650px){.ray57-book{gap:14px}.ray57-cover{padding:13px 7px}.ray57-cover .octopus{font-size:40px}.ray57-choices{grid-template-columns:1fr}.ray57-timer{gap:5px}.ray57-timer div{min-width:50px}.ray57-preview-banner{left:12px;right:12px;text-align:center}}
@media(prefers-reduced-motion:reduce){.ray57-ocean *,.ray57-ocean:before{animation:none!important}}

/* 57B: approved darker abyssal atmosphere and publisher cover */
body.ray57-active.in-library:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(0,4,19,.35),rgba(0,7,22,.46));z-index:0}
body.ray57-active #homeSection .hero-intro,body.ray57-active #homeSection .current-book,body.ray57-active #homeSection .reading-completion-panel,body.ray57-active #homeSection .countdown-panel{backdrop-filter:brightness(.84)}
.ray57-cover{padding:0;overflow:hidden;background:#03182b;border-color:#518e9b;justify-content:center;align-items:stretch}
.ray57-cover-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ray57-cover-fallback{display:none;flex:1;flex-direction:column;justify-content:space-between;padding:22px 9px;background:radial-gradient(ellipse at 45% 62%,#226c7a 0%,#063346 36%,#051525 78%)}
.ray57-cover-fallback .octopus{font-size:45px}
@media(max-width:650px){.ray57-cover-fallback{padding:13px 7px}}

/* 57C: Library of Infinite Wisdom. Only visible when ?rayPreview=1 */
#ray57-library-banner,.ray57-library-judgment{display:none}
body.ray57-active #librarySection .library-heading h2{font-size:0}
body.ray57-active #librarySection .library-heading h2:after{content:"The Library of Infinite Wisdom";font-size:clamp(31px,6vw,57px);color:#d8f8f4}
body.ray57-active #librarySection .library-heading>p{display:none}
body.ray57-active #ray57-library-banner{display:block;text-align:center;max-width:760px;margin:5px auto 30px;padding:24px 18px;background:linear-gradient(140deg,#031427f2,#092c3cf2);border:1px solid #438b9a;box-shadow:0 20px 55px #0008;color:#d5eeee}
body.ray57-active #ray57-library-banner h3{font:normal clamp(23px,4vw,36px)/1.2 Georgia,serif;margin:12px 0;color:#edffff}
body.ray57-active .ray57-library-seal{margin-top:17px;letter-spacing:.2em;font:11px Georgia,serif;color:#87cbd1}
body.ray57-active #librarySection .library-discovery{display:none!important}
body.ray57-active #librarySection .library-note{font-size:0}
body.ray57-active #librarySection .library-note:after{content:"Every selection. Every century. Every shelf. Ray Nayler.";font-size:14px;color:#c4e8e8}
body.ray57-active #librarySection .library-case{background:linear-gradient(90deg,#071622,#0d3440 8%,#031722 92%,#092934);border-color:#315f70;box-shadow:inset 0 12px 28px #000c,0 12px 40px #000b}
body.ray57-active #librarySection .library-case:before{content:"✦   RAY NAYLER   ✦";color:#9cdee1;border-color:#356c78}
body.ray57-active #librarySection .library-spine{--leather:#093c50!important;border-color:#1d7384;color:#e5ffff;background:linear-gradient(90deg,#000b,#5ee9e31b 23%,#0008),#0b3b51;box-shadow:inset 2px 0 3px #9de4f44d,3px 3px 6px #000b}
body.ray57-active #librarySection .library-spine:after,body.ray57-active #librarySection .library-spine:before{border-color:#70bec5}
body.ray57-active #librarySection .library-spine .spine-byline{color:#a5e1e2}
body.ray57-active #librarySection .library-shelf-edge{background:linear-gradient(#4b9ba3,#18404d 23%,#071723 72%,#020c14);border-color:#4b99a5}
body.ray57-active #librarySection .library-plaque{background:linear-gradient(#407d87,#173a4c);border-color:#6daab2;color:#e4fcfa}
body.ray57-active.in-library:has(#librarySection:not(.hidden)){background-image:linear-gradient(90deg,rgba(0,8,24,.87),rgba(0,22,38,.83)),url('library-hall-photo.jpg')!important}
body.ray57-active #bookOverlay{background:#010e1bea}
body.ray57-active #bookOverlay .volume-page{background:linear-gradient(120deg,#c0d9d6,#e0e9de 22%,#b3d2cf);color:#133442}
body.ray57-active #bookOverlay .volume-cover{background:linear-gradient(100deg,#031b2a,#14526a 13%,#062b40 90%,#031725);border-color:#63abb6}
body.ray57-active #bookOverlay .ray57-library-judgment{display:block;text-align:center;padding:35px 12px}
body.ray57-active #bookOverlay .ray57-library-judgment h3{font:normal clamp(24px,3vw,35px) Georgia,serif;color:#123b4a}
body.ray57-active #bookOverlay .ray57-library-judgment p{color:#285566}
body.ray57-active #bookOverlay .ray57-library-small{margin-top:35px;font-size:12px!important}
body.ray57-active #bookOverlay .ray57-original-ledger,
body.ray57-active #bookOverlay #bookLeadershipControls,
body.ray57-active #bookOverlay #changeCoverButton{display:none!important}
body.ray57-active #librarySection #bulkArchivePanel,body.ray57-active #librarySection #meetingsSection{display:none!important}
@media(max-width:650px){body.ray57-active #ray57-library-banner{padding:18px 12px}body.ray57-active #bookOverlay .ray57-library-judgment{padding:18px 6px}}
