@charset "UTF-8";
:host{color-scheme:dark;--ink:#101d21;--paper:#eee9db;--gold:#d9b878;--muted:#a6b0ac;--line:rgba(215,193,145,.15);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#eee9df;color:#28372f}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,[tabindex="-1"]:focus-visible{outline:2px solid #e9ca8f;outline-offset:6px}button{touch-action:manipulation}button:disabled{cursor:wait}button[aria-disabled="true"]{cursor:progress}svg{width:24px;height:24px;flex-shrink:0}img{max-width:100%}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}body.overlay-open{overflow:hidden}.brand{display:flex;align-items:center;gap:12px;color:var(--paper);font:26px/1.05 Georgia,'Times New Roman',serif;letter-spacing:-.6px}.brand>svg{width:34px;height:34px;color:var(--gold)}.brand-subtitle{display:block;margin-top:7px;font:10px/1.3 Arial,Helvetica,sans-serif;letter-spacing:2px;color:var(--gold)}.brand-subtitle:focus{outline:none}.brand-dark{color:#263b31;text-decoration:none}.brand-dark>svg{color:#8e7043}.brand-dark .brand-subtitle{color:#6b775f}.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;letter-spacing:2.7px;font-weight:500;color:var(--gold)}.eyebrow svg{width:18px;height:18px}.primary-button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:54px;padding:15px 26px;background:#e5c68b;color:#20302a;border:1px solid #f1d8aa;border-radius:4px;font-size:14px;line-height:1.5;font-weight:600;letter-spacing:.1px;box-shadow:0 3px 20px #0002;transition:background .18s,box-shadow .18s}.primary-button:hover{background:#f1d6a4;box-shadow:0 5px 28px #d9b8781a}.primary-button svg{width:21px;height:21px}.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:44px;min-height:44px;border:0;background:transparent;padding:8px;color:#d0d3c9;font-size:13px}.quiet-button:hover{color:#f5dfb6}.quiet-button svg{width:19px;height:19px}
.home{max-width:1280px;margin:auto;padding:0 48px;color:#293b32}.home-header{display:flex;align-items:center;justify-content:space-between;padding:30px 0;border-bottom:1px solid #233b2920}.home-edition{font:italic 16px Georgia,serif;color:#687062}.home-hero{text-align:center;padding:80px 0 90px}.home-hero .eyebrow{justify-content:center;color:#7f6035}.home-hero h1{font:clamp(56px,7vw,94px)/.99 Georgia,serif;font-weight:400;letter-spacing:-4px;margin:24px 0}.home-hero h1 em{font-weight:400;color:#7b815e}.home-hero p{font-size:16px;line-height:1.8;color:#647066;margin:28px 0}.home-note{display:block;font:italic 15px Georgia,serif;margin-top:20px;color:#7b8175}.sample-section{padding:30px 0 65px;border-top:1px solid #233b2920}.sample-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.sample-heading h2{font:25px Georgia,serif;font-weight:400}.sample-heading>span{font-size:10px;letter-spacing:1.8px;color:#758070}.sample-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:25px}.sample-book{background:none;border:0;padding:0;text-align:left;color:#293b32}.sample-book img{display:block;width:100%;aspect-ratio:2/3;box-shadow:3px 6px 14px #13251d26;border-radius:1px 3px 3px 1px;transition:transform .2s}.sample-book:hover img{transform:translateY(-5px)}.sample-book strong{display:block;font:17px/1.3 Georgia,serif;margin:17px 0 7px}.sample-book>span{font-size:12px;line-height:1.5;color:#727a6a;display:block}.home-footer{border-top:1px solid #233b2920;display:flex;justify-content:space-between;gap:20px;padding:24px 0;font-size:12px;color:#747d6d}.noscript-note,.noscript-books{max-width:800px;margin:32px auto;padding:24px;color:#293b32}
.library{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--ink);color:var(--paper);overflow:auto;overscroll-behavior:contain}.library::backdrop{background:#101d21}.library-shell{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100%;background:radial-gradient(ellipse at 50% 60%,#26342a50,transparent 55%),linear-gradient(120deg,#122126,#101c20 65%,#122024);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.library-shell:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.065;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.library-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px max(42px,env(safe-area-inset-right)) 24px max(42px,env(safe-area-inset-left));z-index:2}.header-message{font-size:10px;letter-spacing:2.1px;color:#8c9b93;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}.header-actions{display:flex;align-items:center;gap:15px}.header-divider{height:17px;width:1px;background:var(--line)}.motion-toggle[aria-pressed="true"]{color:#efd8a5}.library-main{display:flex;flex-direction:column;flex:1;width:100%;margin:auto;max-width:1680px}.discovery-space{position:relative;flex:1;min-height:500px}.prologue{position:relative;text-align:center;z-index:1;padding-top:22px;pointer-events:none}.prologue .eyebrow{justify-content:center}.tiny-star{font-size:20px;line-height:1}.prologue h2{font:400 clamp(48px,5.4vw,76px)/1.01 Georgia,'Times New Roman',serif;letter-spacing:-2.6px;margin:22px 0 22px}.prologue h2 em{color:#dbbd85;font-weight:400}.prologue p{font-size:14px;line-height:1.8;color:#aab4ac;margin:0 20px}.room{position:absolute;left:4%;right:4%;top:212px;bottom:-6px;min-height:290px;overflow:hidden;pointer-events:none;mask-image:linear-gradient(to right,transparent,black 8%,black 92%,transparent)}.room-haze{position:absolute;left:15%;right:15%;top:0;bottom:0;background:radial-gradient(ellipse at 50% 62%,#a6883d20,transparent 60%)}.room-floor{position:absolute;left:5%;right:5%;height:36%;bottom:0;background:radial-gradient(ellipse at 50% 0%,#c9a35d17,transparent 64%);border-top:1px solid #bfa6710a;transform:perspective(300px)rotateX(30deg)}.bookcase{position:absolute;bottom:32px;top:24px;width:28%;max-width:360px;opacity:.65;border-left:9px solid #78644530;border-right:9px solid #78644530;background:linear-gradient(90deg,#22302b00,#1e2c2760);box-shadow:inset 0 0 35px #081516a8}.bookcase-left{left:1%;transform:perspective(700px)rotateY(22deg);transform-origin:left center}.bookcase-right{right:1%;transform:perspective(700px)rotateY(-22deg);transform-origin:right center}.case-crown{position:absolute;top:-12px;left:-12px;right:-12px;height:12px;border-top:2px solid #b2996229;background:#44504438}.shelves{position:absolute;inset:5px 0 0;display:grid;grid-template-rows:repeat(3,minmax(0,1fr))}.shelf{display:flex;justify-content:center;align-items:flex-end;gap:3px;padding:10px 10px 0;border-bottom:8px solid #7a67483d;box-shadow:0 3px 1px #0a131782}.spine{position:relative;display:block;width:var(--width);height:var(--height);flex-shrink:1;max-height:100%;border-radius:2px 2px 0 0;background:linear-gradient(90deg,#0004,transparent 22%,#ffffff09 45%,#0003 95%),var(--color);border:1px solid #c2b79612;box-shadow:2px 0 2px #0004}.spine:before,.spine:after{content:"";position:absolute;left:2px;right:2px;height:2px;background:#d7c2934a;top:9px}.spine:after{top:auto;bottom:7px;height:1px}.spine:nth-child(5n){transform:rotate(-7deg);transform-origin:center bottom;margin-right:5px}.spine:nth-child(3n):before{height:14px;border-top:1px solid #d7c29355;border-bottom:1px solid #d7c29355;background:transparent}.case-leg{position:absolute;bottom:-15px;height:15px;width:100%;border-inline:9px solid #78644530}.portal{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);height:86%;width:28%;max-width:300px;border:1px solid #b6975d39;border-radius:180px 180px 0 0;background:radial-gradient(ellipse at 50% 75%,#b1914a10,transparent 65%);box-shadow:0 0 45px #c09e5520,inset 0 0 45px #a4914612}.portal:before,.portal:after{content:"";position:absolute;inset:9px;border:1px solid #b6975d1c;border-radius:170px 170px 0 0}.portal:after{inset:18px;border-color:#b6975d0c}.portal-lines{position:absolute;inset:33px 22px 0;background:repeating-linear-gradient(90deg,transparent 0 22%,#b6975d12 22% calc(22% + 1px),transparent calc(22% + 1px) 25%);border-radius:150px 150px 0 0;mask-image:linear-gradient(transparent,#000)}.portal-star{position:absolute;left:50%;top:25px;transform:translateX(-50%);font:30px Georgia,serif;color:#d9b8788c}.portal-shelf{position:absolute;bottom:22%;height:1px;background:#b6975d26;left:16px;right:16px}.light-pool{position:absolute;left:50%;bottom:23px;transform:translateX(-50%);width:35%;height:40px;background:radial-gradient(ellipse,#d8b66c26,transparent 70%)}.mystery-book{position:absolute;left:calc(50% - 57px);bottom:54px;width:114px;height:171px;perspective:900px;filter:drop-shadow(0 14px 17px #0007);will-change:transform}.mystery-book:before,.real-book:before{content:"";position:absolute;inset:0;border-radius:1px 4px 4px 1px;box-shadow:inset 5px 0 6px #0007;z-index:1;pointer-events:none}.mystery-book img{display:block;width:100%;height:100%;border-radius:2px 3px 3px 2px}.book-edge{position:absolute;top:3px;bottom:2px;right:-6px;width:6px;background:repeating-linear-gradient(to bottom,#b3a68b 0 1px,#d6ccb3 1px 2px);transform:skewY(-12deg);transform-origin:left;box-shadow:2px 0 2px #0004;border-radius:0 2px 2px 0}.room-caption{position:absolute;left:0;right:0;bottom:4px;text-align:center;font-size:9px;letter-spacing:2.5px;color:#7b8779}.dust{position:absolute;width:3px;height:3px;border-radius:50%;background:#e1c891;box-shadow:0 0 7px #e1c88c88;opacity:.5}.dust-one{left:38%;top:44%}.dust-two{left:65%;top:28%;width:2px;height:2px}.dust-three{left:44%;top:20%;width:2px;height:2px}.dust-four{left:59%;top:60%;width:2px;height:2px}.dust-five{left:32%;top:72%;width:2px;height:2px}.selection-controls{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;z-index:1;padding:22px 24px 29px}.choose-button{min-width:251px}.selection-status{font-size:12px;line-height:1.6;min-height:20px;color:#87978c;margin:13px 0 0;text-align:center}.skip-button{border:0;background:transparent;color:#d6c49c;min-height:44px;padding:8px 20px;margin-bottom:-7px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.library-footer{margin:0 42px;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:#849186;font-size:11px}.library-footer>span:first-child{display:flex;align-items:center;gap:9px}.library-footer svg{width:17px;height:17px;color:#a18b61}.library-footer>span:last-child{font-size:9px;letter-spacing:1.7px}.library[data-state="selecting"] .choose-button{background:#304039;color:#d9c79f;border-color:#6d7053}.library[data-state="selecting"] .room-caption{color:#c6ab78}.library:is([data-state="result"],[data-state="error"].has-result) .room,.library[data-state="revealing"] .room{opacity:.2;top:60px;transition:opacity .3s}.library:is([data-state="result"],[data-state="error"].has-result) .mystery-book,.library:is([data-state="result"],[data-state="error"].has-result) .room-caption,.library[data-state="revealing"] .room-caption{visibility:hidden}.library:is([data-state="result"],[data-state="error"].has-result) .choose-button{background:transparent;color:#d9c79f;border-color:#a08d5d55;min-height:46px;font-weight:400;padding:10px 24px;box-shadow:none}.library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{padding-top:7px;padding-bottom:20px}
.result{position:relative;z-index:1;display:grid;grid-template-columns:280px minmax(0,400px);align-items:center;justify-content:center;gap:70px;min-height:100%;padding:52px 40px 40px;max-width:1000px;margin:auto}.result-art{position:relative;display:flex;align-items:center;flex-direction:column;padding:25px 18px}.result-orbit{position:absolute;width:320px;height:320px;border:1px solid #c5a66b23;border-radius:50%;left:50%;top:46%;transform:translate(-50%,-50%)}.result-orbit:before{content:"";position:absolute;inset:-18px;border:1px solid #c5a66b0e;border-radius:50%}.result-orbit:after{content:"✧";position:absolute;top:1px;right:37px;color:#c5a66ba8;font:22px Georgia,serif;background:#152327}.real-book{position:relative;width:216px;aspect-ratio:2/3;filter:drop-shadow(0 18px 22px #0007);transform:rotate(-4deg)}.real-book img{display:block;width:100%;height:100%;object-fit:contain;border-radius:2px 4px 4px 2px;background:#34443a}.cover-credit{margin-top:35px;font-size:9px;letter-spacing:1.9px;color:#899582}.result-copy{max-width:400px}.result-copy>.eyebrow{font-size:10px;letter-spacing:2px}.result-clue{font:italic 24px/1.4 Georgia,serif;color:#d6c293;margin:20px 0 23px}.fine-rule{height:1px;width:42px;background:#bca37666;margin-bottom:25px}.book-genre{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#8fa194}.result h2{font:400 clamp(32px,3.3vw,48px)/1.1 Georgia,serif;letter-spacing:-1.2px;margin:12px 0 12px;overflow-wrap:anywhere}.result-author{font-size:14px;color:#b8beb1;line-height:1.5;margin:0 0 20px}.result-description{font-size:14px;line-height:1.8;color:#91a195;margin:0 0 26px}.open-book-button{min-height:49px;padding:12px 22px;font-size:13px}
.book-detail{max-width:min(850px,calc(100% - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #c7b38944;border-radius:8px;background:#efeadf;color:#2b3b31;overflow:auto;box-shadow:0 25px 100px #0008}.book-detail::backdrop{background:#081316d9;backdrop-filter:blur(8px)}.detail-shell{position:relative;display:grid;grid-template-columns:minmax(160px,250px) minmax(0,1fr);gap:44px;padding:65px 46px}.detail-close{position:absolute;top:12px;right:12px;color:#4c5d50}.detail-close:hover{color:#0e2217}.detail-cover-wrap{align-self:center}.detail-cover-wrap img{width:100%;display:block;box-shadow:5px 12px 20px #17231938;transform:rotate(-3deg)}.detail-copy .eyebrow{font-size:9px;letter-spacing:1.5px;color:#7a603d}.detail-copy h2{font:400 38px/1.12 Georgia,serif;letter-spacing:-1px;margin:17px 0 12px;overflow-wrap:anywhere}.detail-author{font-size:14px;color:#6b7568;line-height:1.5}.detail-genre{display:inline-block;font-size:11px;color:#64715f;background:#263c2e0b;padding:7px 11px;border-radius:3px;margin:6px 0}.detail-copy>p:last-of-type{font-size:15px;line-height:1.8;color:#5e6e60}.detail-note{display:flex;align-items:center;gap:10px;font:italic 14px/1.6 Georgia,serif;color:#6c785e;border-block:1px solid #2c442a17;margin:23px 0;padding:17px 0}.detail-note svg{width:20px;height:20px}.detail-copy .primary-button{font-size:13px;min-height:48px}.book-detail :focus-visible,.home :focus-visible{outline-color:#7c673f}
@media(min-height:850px) and (min-width:768px){.discovery-space{min-height:580px}.prologue{padding-top:42px}.room{top:250px;bottom:0}.mystery-book{width:126px;height:189px;left:calc(50% - 63px);bottom:59px}.bookcase{top:25px;bottom:40px}.selection-controls{padding-top:25px;padding-bottom:35px}}
@media(min-width:1600px){.room{left:8%;right:8%}}
@media(max-width:1000px){.header-message{display:none}.library-header{padding-inline:28px}.library-footer{margin-inline:28px}.result{gap:35px;grid-template-columns:245px minmax(0,360px)}.bookcase{width:27%}.portal{width:31%}.sample-grid{gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.home{padding-inline:30px}.sample-book img{max-height:280px;object-fit:contain;object-position:left;box-shadow:none}}
@media(max-width:767px){.library-header{padding:20px 19px 13px;gap:12px}.brand{font-size:23px;gap:9px}.brand>svg{width:29px;height:29px}.brand-subtitle{font-size:8px;letter-spacing:1.5px}.header-actions{gap:5px}.header-divider{margin:0 3px}.quiet-button{gap:6px;font-size:12px}.motion-toggle>span{display:none}.close-button>span{display:none}.close-button{border:1px solid #d7c19124;border-radius:50%;width:40px;min-height:40px;min-width:40px}.discovery-space{min-height:475px}.prologue{padding:27px 10px 0}.prologue .eyebrow{font-size:9px;letter-spacing:2px}.prologue h2{font-size:54px;letter-spacing:-2.4px;margin:20px 0}.prologue p{font-size:13px;line-height:1.8;max-width:310px;margin-inline:auto;padding-inline:12px}.desktop-break{display:none}.room{left:-24%;right:-24%;top:221px;bottom:0;min-height:245px;mask-image:linear-gradient(to right,transparent,black 15%,black 85%,transparent)}.bookcase{width:29%;opacity:.45;top:15px;bottom:35px}.bookcase-left{left:0}.bookcase-right{right:0}.portal{width:34%;max-width:210px;height:88%;bottom:28px}.portal-star{top:18px;font-size:23px}.mystery-book{width:103px;height:154.5px;left:calc(50% - 51.5px);bottom:44px}.room-caption{font-size:7px;letter-spacing:1.9px;bottom:0}.shelf{gap:2px;padding-inline:5px;border-bottom-width:6px}.spine{min-width:4px}.selection-controls{padding:23px 20px 23px}.choose-button{width:min(100%,310px);min-height:54px}.selection-status{font-size:11px;max-width:310px}.library-footer{margin-inline:20px;padding:17px 0;font-size:10px;justify-content:center}.library-footer>span:last-child{display:none}.library-footer svg{width:15px;height:15px}.library:is([data-state="result"],[data-state="error"].has-result) .room,.library[data-state="revealing"] .room{top:30px;opacity:.13}.result{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;padding:27px 26px 12px;text-align:center}.result-art{padding:0 15px}.real-book{width:145px}.result-orbit{width:204px;height:204px;top:48%}.result-orbit:before{inset:-12px}.result-orbit:after{font-size:18px;right:22px}.cover-credit{display:none}.result-copy{max-width:370px;margin:auto}.result-copy>.eyebrow{justify-content:center;font-size:8px;letter-spacing:1.6px}.result-clue{font-size:19px;line-height:1.45;margin:11px 0 14px}.fine-rule{margin:0 auto 16px;width:28px}.book-genre{font-size:9px;letter-spacing:1.7px}.result h2{font-size:32px;letter-spacing:-.9px;line-height:1.1;margin-top:9px}.result-author{font-size:12px;margin-bottom:12px}.result-description{font-size:12px;line-height:1.75;margin-bottom:18px}.open-book-button{width:min(100%,280px)}.library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{padding-bottom:17px}.library:is([data-state="result"],[data-state="error"].has-result) .choose-button{width:min(100%,280px)}.book-detail{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.detail-shell{grid-template-columns:minmax(0,1fr);gap:23px;padding:53px 26px 30px;text-align:center}.detail-cover-wrap{max-width:140px;margin:auto}.detail-copy .eyebrow{justify-content:center;font-size:8px}.detail-copy h2{font-size:31px}.detail-copy>p:last-of-type{font-size:14px}.detail-note{justify-content:center;font-size:13px}.detail-copy .primary-button{width:100%}.home{padding-inline:23px}.home-header{padding:23px 0}.home-edition{font-size:12px}.home-header .brand-subtitle{font-size:7px}.home-hero{padding:65px 0}.home-hero h1{font-size:64px;letter-spacing:-3px}.home-hero .eyebrow{font-size:9px;letter-spacing:1.7px}.home-hero p{font-size:14px}.sample-heading{display:block}.sample-heading h2{font-size:24px;margin-bottom:12px}.sample-heading>span{font-size:9px}.sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 22px}.sample-book strong{font-size:16px}.sample-book>span{font-size:11px}.home-footer{font-size:10px;line-height:1.5}}
@media(max-width:360px){.prologue h2{font-size:47px}.library-header{padding-inline:14px}.result{padding-inline:20px}.result h2{font-size:28px}.result-clue{font-size:18px}.home-edition{display:none}}
@media(max-height:580px) and (min-width:768px){.library-header{padding-block:14px}.discovery-space{min-height:320px}.prologue{padding-top:0}.prologue h2{font-size:43px;margin:12px 0}.prologue p{font-size:12px}.room{top:120px;min-height:190px}.mystery-book{width:80px;height:120px;left:calc(50% - 40px);bottom:28px}.portal{bottom:20px}.room-caption{display:none}.selection-controls{padding:10px 20px}.library-footer{padding-block:12px}.result{padding-block:20px;grid-template-columns:160px minmax(0,420px);gap:40px}.real-book{width:130px}.result-art{padding:10px}.result-orbit{width:180px;height:180px}.cover-credit{display:none}.result-clue{font-size:18px;margin:10px 0}.fine-rule{margin-bottom:13px}.result h2{font-size:30px}.result-author,.result-description{font-size:12px;margin-bottom:12px}.result-description{line-height:1.6}.open-book-button{min-height:44px;padding-block:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.mystery-book{will-change:auto}}
.library.minimal-motion *,.library.minimal-motion *:before,.library.minimal-motion *:after{transition:none!important;animation:none!important}.library.minimal-motion .mystery-book{will-change:auto}
@media(forced-colors:active){.primary-button,.quiet-button,.skip-button{border:1px solid ButtonText}.bookcase,.portal,.room-haze,.dust{display:none}.library-footer,.fine-rule{border-color:CanvasText}.result-orbit{display:none}}
.prologue p,.result-description{font-size:16px}.selection-status{font-size:14px}.library-footer{font-size:12px}.library-footer>span:last-child,.room-caption,.cover-credit{font-size:12px;letter-spacing:1.4px}.eyebrow,.prologue .eyebrow,.result-copy>.eyebrow,.book-genre,.detail-copy .eyebrow{font-size:12px}.brand-subtitle{font-size:12px;letter-spacing:1.4px}.header-message{font-size:12px;letter-spacing:1.5px}.quiet-button,.primary-button,.open-book-button,.detail-copy .primary-button,.skip-button{font-size:14px}.detail-genre,.sample-book>span{font-size:14px}.detail-copy>p:last-of-type{font-size:16px}.sample-heading>span{font-size:12px}.home-footer{font-size:12px}
@media(max-width:767px){.brand-subtitle{font-size:10px;letter-spacing:1px}.prologue p{font-size:16px;max-width:355px}.prologue h2{margin-bottom:17px}.prologue .eyebrow,.result-copy>.eyebrow{font-size:11px;letter-spacing:1.5px}.room{top:242px;min-height:230px}.room-caption{font-size:10px;letter-spacing:1.2px}.result-description{font-size:16px}.result-author{font-size:14px}.result h2{font-size:34px}.selection-status{font-size:14px}.library-footer{font-size:12px}.result-copy>.eyebrow{font-size:10px}.cover-credit{font-size:12px}}
@media(max-height:580px) and (min-width:768px){.prologue p,.result-description{font-size:14px}.room-caption{display:none}}
@media(min-width:768px) and (min-height:581px) and (max-height:849px){.prologue{padding-top:12px}.prologue h2{font-size:64px}.room{top:230px}.library-header{padding-block:20px}.library-footer{padding-block:17px}}
@media(max-width:767px){.discovery-space{min-height:500px}.room{top:265px;min-height:230px}}

/* The library is the viewport. Content lives in the foreground of its world. */
.library{background:#070d15;--story-light:#e1af62;--story-rgb:225,175,98}
.library-shell{background:#070d15;min-height:100dvh;overflow:hidden;isolation:isolate}
.library-shell:before{display:none}.library-header,.library-main,.library-footer{position:relative;z-index:5}.library-header{padding:27px 42px}.library-header .brand{font-size:27px;text-shadow:0 2px 20px #000}.library-header .brand-subtitle{font-size:10px;letter-spacing:2.2px;color:#dbc8a3}.header-message{font-size:10px;letter-spacing:2px;color:#ddd4be99}.header-actions{gap:12px}.quiet-button{color:#dedbcf}.header-divider{background:#ddd2b52e}.library-main{max-width:1600px;min-height:0;flex:1;pointer-events:none}.library-main button,.library-main a{pointer-events:auto}.world-stage{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#080e17}.world-poster{position:absolute;inset:-3%;background:url('../v1/assets/library-world-v2.png') 62% 60%/cover no-repeat;transform-origin:65% 60%;will-change:transform;opacity:.95}.world-shade{position:absolute;inset:0;background:linear-gradient(90deg,#070c16dc 0%,#080e17a3 28%,#080e170a 65%,#080e1733 100%),linear-gradient(0deg,#070d16e8 0%,transparent 35%,transparent 75%,#070d1670 100%)}#world-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity 1s}.world-ready #world-canvas{opacity:1}.world-ray{position:absolute;top:-50%;left:60%;width:11%;height:150%;transform:rotate(26deg);background:linear-gradient(90deg,transparent,rgba(var(--story-rgb),.055),transparent);filter:blur(10px);mix-blend-mode:screen;opacity:.7}.world-ray-two{left:76%;width:8%;transform:rotate(22deg);opacity:.4}.world-aura{position:absolute;left:68%;top:52%;width:40vw;height:70vh;transform:translate(-50%,-50%);background:radial-gradient(ellipse,rgba(var(--story-rgb),.16),transparent 65%);mix-blend-mode:screen;opacity:.6;will-change:transform,opacity}.world-grain{position:absolute;inset:0;opacity:.08;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23g)' opacity='.4' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.world-rift{position:absolute;top:12%;bottom:12%;width:18%;background:url('../v1/assets/library-world-v2.png') 15% 50%/auto 150% no-repeat;opacity:0;box-shadow:0 0 70px #000b;will-change:transform}.rift-left{left:7%;transform:perspective(1000px)rotateY(25deg)}.rift-right{right:4%;background-position:90% 50%;transform:perspective(1000px)rotateY(-25deg)}
.discovery-space{min-height:490px;flex:1;width:100%;position:relative}.prologue{position:absolute;top:19%;left:6.5%;padding:0;text-align:left;z-index:3;max-width:610px}.prologue .eyebrow{justify-content:flex-start;color:#d6b97e;font-size:11px;letter-spacing:2.5px}.prologue h2{font:400 clamp(48px,5.8vw,87px)/1.04 Georgia,'Times New Roman',serif;letter-spacing:-3.6px;margin:23px 0 22px;color:#f1ebdd;text-shadow:0 4px 40px #0005}.prologue h2 em{color:#e4c48d;font-weight:400}.prologue p{font:400 19px/1.6 Georgia,serif;color:#e2d9c8;margin:0;padding:0;max-width:none}.prologue-whisper{display:block;font-size:13px;line-height:1.8;color:#b6b8b1;margin-top:9px}.room{position:absolute;inset:0!important;min-height:0!important;mask-image:none;overflow:visible;perspective:1600px;transform-style:preserve-3d;opacity:1!important;z-index:1}.mystery-book{position:absolute;left:73%;top:47%;bottom:auto;width:190px;height:285px;transform:translate(-50%,-50%)rotateY(-24deg)rotateZ(8deg);transform-style:preserve-3d;filter:drop-shadow(0 30px 30px #000a);will-change:transform}.mystery-book:before{display:none}.mystery-book img{border-radius:2px 5px 5px 2px}.codex-body{position:absolute;inset:0;transform-style:preserve-3d}.codex-back{position:absolute;inset:0;border-radius:2px 5px 5px 2px;background:#16392f;transform:translateZ(-10px);border:1px solid #a28c55}.codex-leaves{position:absolute;inset:5px 1px 5px 5px;transform:translateZ(4px);background:#d8caae;box-shadow:0 0 2px #fff8}.codex-leaves:after{content:"";position:absolute;left:100%;top:0;bottom:0;width:18px;background:repeating-linear-gradient(0deg,#b6aa8d 0 1px,#eee1c2 1px 3px);transform:rotateY(90deg);transform-origin:left}.codex-front{position:absolute;inset:0;transform:translateZ(14px);transform-origin:0 50%;transform-style:preserve-3d;border-radius:2px 5px 5px 2px;box-shadow:inset 7px 0 8px #0005,0 0 1px #e0c28e88}.codex-front>img{display:block;width:100%;height:100%;position:absolute;inset:0;backface-visibility:hidden}.inside-cover{position:absolute;inset:0;transform:rotateY(180deg);backface-visibility:hidden;background:radial-gradient(ellipse at 60% 30%,#40537155,transparent 65%),linear-gradient(110deg,#172033,#263752 42%,#172033);border:1px solid #9f8b58;border-radius: 8px 14px 14px 8px;outline:1px solid #c5ad77;outline-offset:-15px}.inside-cover:after{content:"✧";position:absolute;inset:0;display:grid;place-items:center;color:#d9be7d;font:80px Georgia,serif}.codex-spine{position:absolute;left:0;top:0;bottom:0;width:24px;background:linear-gradient(90deg,#09251c,#3e5b43,#153424);transform:rotateY(90deg)translateX(-10px);transform-origin:left;box-shadow:inset 0 17px 0 #ad955d88,inset 0 -17px 0 #ad955d88}.paper-leaf{position:absolute;inset:5px 2px 5px 7px;transform-origin:left center;transform:translateZ(calc(6px + var(--leaf)*1px));background:linear-gradient(90deg,#ad9d7b50,transparent 12%),repeating-linear-gradient(0deg,transparent 0 14px,#8a7e5d30 14px 15px,transparent 15px 19px),#e7d9b9;border:12px solid #e7d9b9;backface-visibility:visible}.book-radiance{position:absolute;inset:-42%;border-radius:50%;background:radial-gradient(ellipse,rgba(var(--story-rgb),.24),transparent 65%);transform:translateZ(-30px);opacity:.8;mix-blend-mode:screen}.book-shadow{position:absolute;left:73%;top:85%;width:230px;height:35px;background:radial-gradient(ellipse,#05090bc9,transparent 70%);transform:translateX(-50%);opacity:.7}.book-halo{position:absolute;left:73%;top:47%;width:370px;height:370px;border:1px solid #d4b67c44;border-radius:50%;transform:translate(-50%,-50%)rotateX(65deg)rotateZ(-20deg);box-shadow:0 0 17px #bd8b3f0d,inset 0 0 16px #bd8b3f0d;opacity:.8}.halo-outer:before{content:"";position:absolute;inset:11px;border:1px dashed #d4b67c44;border-radius:50%}.halo-inner{width:290px;height:290px;transform:translate(-50%,-50%)rotateY(60deg)rotateZ(25deg);border-color:#d4b67c2b}.halo-inner:after{content:"✧";position:absolute;top:0;left:50%;font:25px Georgia,serif;color:#d7bc7c;transform:translate(-50%,-50%)}.touch-book{position:absolute;left:73%;top:47%;width:260px;height:360px;transform:translate(-50%,-50%);z-index:4;border:0;background:none;color:#ead9b5;border-radius:50%}.touch-book>span{position:absolute;bottom:-13px;left:0;right:0;font:italic 15px/1.5 Georgia,serif;letter-spacing:.3px;opacity:.75;transition:opacity .2s}.touch-book>svg{position:absolute;width:18px;height:18px;bottom:-42px;left:calc(50% - 9px);opacity:.5}.touch-book:hover>span,.touch-book:hover>svg{opacity:1}.touch-book:focus-visible{outline:1px solid #e0bf7d;outline-offset:8px}.touch-book:hover~.cinema-caption{opacity:0}.paper-storm,.glyph-field{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}.orbit-page{position:absolute;left:73%;top:47%;width:24px;height:36px;opacity:0;transform-style:preserve-3d;background:repeating-linear-gradient(0deg,transparent 0 4px,#8170533b 4px 5px),linear-gradient(110deg,#b6a683,#fff1ce);border:4px solid #d5c29d;box-shadow:0 4px 10px #0005;backface-visibility:visible}.orbit-glyph{position:absolute;left:73%;top:47%;font:22px Georgia,serif;color:#efcc88;text-shadow:0 0 12px #d5a34366;opacity:0}.cinema-caption{position:absolute;inset:auto 20px 14%;text-align:center;z-index:4;color:#f0e7d6;opacity:0;pointer-events:none}.cinema-kicker{display:block;font-size:10px;letter-spacing:4px;color:#d7b77d;margin-bottom:17px}.cinema-line{font:italic clamp(23px,3vw,38px)/1.4 Georgia,serif;text-shadow:0 3px 30px #000}.journey-track{position:absolute;left:calc(50% - 65px);bottom:9%;height:1px;width:130px;background:#d5b98926;opacity:0}.journey-track>span{display:block;height:100%;width:0;background:#ebc98d;box-shadow:0 0 12px #e7b35a88}
.selection-controls{align-items:flex-start;padding:0 6.5% 37px;min-height:137px;z-index:7;pointer-events:none}.selection-controls>*{pointer-events:auto}.choose-button{position:relative;overflow:hidden;min-width:215px;min-height:57px;background:linear-gradient(110deg,#cfaa69,#f0d399);border-color:#e9cf99;border-radius:2px;color:#202b28;font-size:14px;font-weight:500;letter-spacing:.3px;box-shadow:0 4px 28px #0004,0 0 30px #d4a54815}.choose-button:hover{background:#f4d6a1;box-shadow:0 0 36px #daa85733}.button-orbit{position:absolute;inset:-3px;border:1px solid #ebca8e;pointer-events:none;opacity:0}.selection-status{color:#b0b6b3;font-size:12px;min-height:20px;text-align:left;margin-top:14px;line-height:1.7;max-width:420px}.interaction-hint{position:absolute;right:7%;bottom:45px;font:italic 14px/1.5 Georgia,serif;color:#c7c6b7a6}.library-footer{padding:19px 0;margin-inline:42px;border-color:#ddd0aa26;color:#b1b5ad;font-size:12px}.library-footer>span:last-child{font-size:10px;letter-spacing:1.7px}.library-footer svg{color:#c4ae7e}.skip-button{position:absolute;left:50%;transform:translateX(-50%);top:2px;color:#e5d7bd;font-size:14px;min-height:44px;padding-inline:24px;z-index:10;background:#0a111a80;border:1px solid #d5c08d3d;border-radius:3px;text-decoration:none;backdrop-filter:blur(8px)}
.library[data-state="selecting"] .prologue{pointer-events:none}.library[data-state="selecting"] .choose-button,.library[data-state="revealing"] .choose-button{background:#14252b88;border-color:#a38e5a77;color:#ddcaa0}.library[data-state="selecting"] .selection-controls,.library[data-state="revealing"] .selection-controls{align-items:center;padding-inline:20px;padding-bottom:30px}.library[data-state="selecting"] .choose-button,.library[data-state="revealing"] .choose-button{visibility:hidden}.library[data-state="selecting"] .selection-status,.library[data-state="revealing"] .selection-status{text-align:center;margin-top:7px}.library[data-state="selecting"] .interaction-hint,.library[data-state="revealing"] .interaction-hint{visibility:hidden}.library[data-state="selecting"] .touch-book,.library[data-state="revealing"] .touch-book,.library:is([data-state="result"],[data-state="error"].has-result) .touch-book,.library[data-state="closed"] .touch-book{display:none}.library:is([data-state="result"],[data-state="error"].has-result) .room,.library[data-state="revealing"] .room{opacity:1;top:0}.library:is([data-state="result"],[data-state="error"].has-result) .room .mystery-book,.library[data-state="revealing"] .room .mystery-book,.library:is([data-state="result"],[data-state="error"].has-result) .book-halo,.library[data-state="revealing"] .book-halo,.library:is([data-state="result"],[data-state="error"].has-result) .book-shadow,.library[data-state="revealing"] .book-shadow{visibility:hidden}.library:is([data-state="result"],[data-state="error"].has-result) .interaction-hint{display:none}.library:is([data-state="result"],[data-state="error"].has-result) .world-shade,.library[data-state="revealing"] .world-shade{background:linear-gradient(90deg,#070c16ee,#080e1799 50%,#080e1744),linear-gradient(0deg,#070d16df,transparent 50%)}
.result{grid-template-columns:minmax(0,460px) 340px;gap:7vw;align-items:center;min-height:490px;padding:45px 6.5% 30px;max-width:1280px;pointer-events:none}.result button{pointer-events:auto}.result-art{grid-column:2;grid-row:1;padding:40px 20px}.result-copy{grid-column:1;grid-row:1;max-width:460px}.result-copy>.eyebrow{font-size:10px;letter-spacing:2px;color:#d9ba82}.result-clue{font-size:26px;color:#e4c896;margin:22px 0 25px}.result h2{font-size:clamp(40px,4vw,62px);letter-spacing:-1.9px;line-height:1.04;margin-top:14px;color:#f4edde}.result-description{font-size:16px;line-height:1.75;color:#b9bcb2;max-width:420px}.result-author{color:#d1cbbd;font-size:15px}.book-genre{color:#b4bcae;font-size:11px}.real-book{width:240px;transform:perspective(1500px)rotateY(-12deg)rotateZ(-5deg);filter:drop-shadow(0 30px 30px #000b)}.result-orbit{width:390px;height:390px;border-color:#d0ac6f3d}.result-orbit:before{inset:-24px;border-color:#d0ac6f18}.result-orbit:after{background:#15202799;color:#ddc084}.cover-credit{margin-top:45px;font-size:10px;letter-spacing:2px;color:#d1bd94}.open-book-button{border-radius:2px;min-height:52px;font-size:14px;background:linear-gradient(110deg,#cfaa69,#f0d399)}.library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{padding:10px 6.5% 26px;align-items:flex-start;min-height:98px}.library:is([data-state="result"],[data-state="error"].has-result) .choose-button{background:#0c182480;border-color:#dcc18b66;color:#e3cfa9;min-height:47px;padding:11px 24px}.library:is([data-state="result"],[data-state="error"].has-result) .choose-button:hover{background:#28332c}.library:is([data-state="result"],[data-state="error"].has-result) .selection-status{margin-top:10px}.book-detail{border-color:#d9bf8370;background:#0e1c25;color:#f0e5ce}.book-detail::backdrop{background:#030a10df;backdrop-filter:blur(12px)}.detail-copy>p:last-of-type{color:#b5bdb2}.detail-copy .eyebrow{color:#d0b786}.detail-copy h2{color:#f0e5ce}.detail-author{color:#c4c6b8}.detail-genre{color:#c7c4ac;background:#bdae6920}.detail-note{color:#bdc0a9;border-color:#d7b87929}.detail-close{color:#d5ceba}.detail-close:hover{color:#fff1d0}.book-detail :focus-visible{outline-color:#e6c389}
@media(min-height:850px) and (min-width:768px){.discovery-space{min-height:590px}.prologue{top:22%;padding-top:0}.room{inset:0!important}.mystery-book{width:220px;height:330px;left:73%;top:48%;bottom:auto}.book-halo{width:430px;height:430px;top:48%}.halo-inner{width:340px;height:340px}.touch-book{top:48%;width:280px;height:390px}.selection-controls{padding-top:0;padding-bottom:43px}.result{min-height:590px}.real-book{width:265px}}
@media(max-width:1100px) and (min-width:768px){.prologue{left:5%;max-width:550px}.prologue h2{font-size:68px}.mystery-book{left:77%;width:165px;height:247.5px}.book-halo,.touch-book,.book-shadow{left:77%}.book-halo{width:300px;height:300px}.halo-inner{width:250px;height:250px}.touch-book{width:205px;height:310px}.result{gap:4vw;grid-template-columns:minmax(0,400px) 260px;padding-inline:5%}.real-book{width:205px}.result-orbit{width:305px;height:305px}.result h2{font-size:45px}.result-clue{font-size:23px}}
@media(max-width:767px){.library-shell{min-height:100dvh;overflow:hidden}.library-header{padding:19px 18px}.library-header .brand{font-size:23px}.library-header .brand-subtitle{font-size:8px;letter-spacing:1.6px}.world-poster{inset:-2%;background-position:66% center;transform-origin:66% 53%}.world-shade{background:linear-gradient(180deg,#070d16b0 0%,#070d16c4 12%,#070d1688 38%,#070d1600 68%,#070d16e8 100%),linear-gradient(90deg,#070d1644,transparent 60%)}.world-ray{left:50%;width:25%}.world-aura{left:50%;top:55%;width:90vw}.world-rift{width:24%;top:15%;bottom:10%}.rift-left{left:-5%}.rift-right{right:-5%}.library-main{min-height:0}.discovery-space{min-height:570px}.prologue{position:relative;top:auto;left:auto;padding:28px 20px 0;text-align:center;max-width:none}.prologue .eyebrow{justify-content:center;font-size:9px;letter-spacing:1.6px;gap:6px}.prologue h2{font-size:clamp(43px,11.8vw,62px);letter-spacing:-2px;line-height:1.04;margin:18px 0}.prologue p{font-size:17px;max-width:100%;line-height:1.5;padding:0}.prologue-whisper{font-size:12px;margin-top:6px}.room{inset:0!important;min-height:0!important}.mystery-book{left:50%;top:66%;width:133px;height:199.5px;bottom:auto;transform:translate(-50%,-50%)rotateY(-24deg)rotateZ(8deg)}.book-halo{left:50%;top:66%;width:270px;height:270px}.halo-inner{width:225px;height:225px}.book-shadow{left:50%;top:91%;width:170px}.touch-book{left:50%;top:66%;width:180px;height:228px}.touch-book>span{font-size:13px;bottom:-12px}.touch-book>svg{bottom:-32px;width:14px;height:14px;left:calc(50% - 7px)}.orbit-page,.orbit-glyph{left:50%;top:66%}.orbit-page{width:18px;height:26px;border-width:3px}.orbit-glyph{font-size:18px}.selection-controls{align-items:center;padding:12px 20px 20px;min-height:130px}.choose-button{width:min(100%,300px);min-height:54px;font-size:14px}.selection-status{text-align:center;font-size:12px;max-width:310px;min-height:20px;margin-top:12px}.interaction-hint{position:static;display:block;margin-top:7px;font-size:12px;color:#d3c6a199}.library-footer{padding:17px 0;margin-inline:20px;justify-content:center;font-size:11px}.library-footer>span:last-child{display:none}.library-footer svg{width:16px;height:16px}.skip-button{top:6px}.cinema-caption{bottom:9%;inset-inline:24px}.cinema-kicker{font-size:9px;letter-spacing:3px;margin-bottom:13px}.cinema-line{font-size:26px}.journey-track{bottom:4%}.result{display:flex;flex-direction:column;gap:25px;padding:25px 25px 15px;min-height:0;text-align:center}.result-art{order:0;padding:15px 10px 0}.result-copy{order:1;max-width:390px}.real-book{width:155px}.result-orbit{width:220px;height:220px;top:53%}.result-orbit:before{inset:-13px}.result-copy>.eyebrow{justify-content:center;font-size:9px;letter-spacing:1.5px}.result-clue{font-size:21px;line-height:1.4;margin:14px 0 18px}.fine-rule{margin-bottom:18px}.book-genre{font-size:10px}.result h2{font-size:39px;letter-spacing:-1.2px;margin-block:10px 12px}.result-author{font-size:14px}.result-description{font-size:15px;line-height:1.7;margin-bottom:22px}.open-book-button{width:min(100%,290px);font-size:14px}.library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{align-items:center;min-height:90px;padding:10px 20px 22px}.library:is([data-state="result"],[data-state="error"].has-result) .choose-button{width:min(100%,290px)}.library:is([data-state="result"],[data-state="error"].has-result) .selection-status{text-align:center}.library[data-state="selecting"] .selection-controls,.library[data-state="revealing"] .selection-controls{padding-bottom:23px}.library:is([data-state="result"],[data-state="error"].has-result) .world-shade,.library[data-state="revealing"] .world-shade{background:linear-gradient(180deg,#070d1666,#070d16d9 50%,#070d16ef)}.cover-credit{display:none}.detail-shell{padding-top:54px}}
@media(max-width:767px) and (max-height:760px){.discovery-space{min-height:485px}.prologue{padding-top:15px}.prologue h2{font-size:46px;margin:15px 0}.prologue p{font-size:16px}.prologue-whisper{font-size:11px}.mystery-book{width:116px;height:174px;top:67%}.book-halo,.touch-book{top:67%}.book-halo{width:240px;height:240px}.halo-inner{width:190px;height:190px}.touch-book{height:200px}.selection-controls{padding-bottom:14px;min-height:115px}.interaction-hint{display:none}.library-footer{padding-block:14px}}
@media(min-width:768px) and (max-height:650px){.library-header{padding-block:16px}.discovery-space{min-height:350px}.prologue{top:16%;padding:0}.prologue h2{font-size:57px;margin:15px 0}.prologue p{font-size:17px}.prologue-whisper{font-size:12px}.mystery-book{top:48%;left:75%;width:140px;height:210px}.book-halo,.touch-book,.book-shadow{left:75%}.book-halo{top:48%;width:280px;height:280px}.halo-inner{width:230px;height:230px}.touch-book{top:48%;width:190px;height:240px}.selection-controls{padding-bottom:18px;min-height:104px}.library-footer{padding-block:13px}.result{min-height:350px;padding-block:20px;grid-template-columns:minmax(0,450px) 210px}.real-book{width:155px}.result-orbit{width:250px;height:250px}.result h2{font-size:37px}.result-clue{font-size:20px;margin:13px 0}.result-description{font-size:14px;margin-bottom:15px}.fine-rule{margin-bottom:15px}.result-author{margin-bottom:12px}.cinema-caption{bottom:10%}}
@media(prefers-reduced-motion:reduce){.world-poster,.world-aura,.mystery-book{will-change:auto}.world-ray{display:none}}
.minimal-motion .world-poster,.minimal-motion .world-aura,.minimal-motion .mystery-book{will-change:auto}.minimal-motion .world-ray{display:none}.minimal-motion .interaction-hint{display:none}.minimal-motion .book-halo{opacity:.4}
@media(forced-colors:active){.world-stage,.room,.cinema-caption,.journey-track{display:none}.touch-book{display:none}.prologue,.result-copy{background:Canvas;color:CanvasText}.library .prologue h2,.library .prologue h2 em,.library .prologue p,.library .prologue-whisper,.library .result h2{color:CanvasText}.choose-button,.open-book-button,.skip-button{border:1px solid ButtonText}}
.library[data-state="selecting"] .result{visibility:hidden}.library[data-state="selecting"] .choose-button,.library[data-state="revealing"] .choose-button{visibility:visible}.library[data-state="selecting"] .selection-controls,.library[data-state="revealing"] .selection-controls{padding-bottom:25px;min-height:137px}.library[data-state="selecting"] .choose-button,.library[data-state="revealing"] .choose-button{margin-top:55px;min-height:44px}.library.minimal-motion #world-canvas{opacity:0!important}.library.minimal-motion .cinema-caption,.library.minimal-motion .journey-track{display:none}
.library .selection-status{font-size:.875rem}.library .touch-book>span{font-size:.875rem}.library .prologue .eyebrow,.library .result-copy>.eyebrow,.library .book-genre,.library .cinema-kicker,.library .header-message,.library .cover-credit,.library-footer,.library-footer>span:last-child{font-size:.75rem}.library .brand-subtitle{font-size:.625rem}.library .interaction-hint{font-size:.8125rem}
.library[data-state="selecting"] .choose-button,.library[data-state="revealing"] .choose-button{margin-top:48px}.library[data-state="selecting"] .selection-controls,.library[data-state="revealing"] .selection-controls{padding-bottom:18px}
.mystery-book{filter:none}.codex-back{box-shadow:8px 20px 36px #0009}

/* The Shadow DOM isolates these styles from the catalogue and its widgets. */
:host{font-family:inherit;color-scheme:dark}.library{font-family:inherit}.library .primary-button{text-decoration:none}.library .result-description{white-space:normal;overflow-wrap:anywhere}.library .brand-subtitle{font-size:.75rem;letter-spacing:.08em}.library .quiet-button{font-size:.875rem}.library .prologue h2,.library .result h2{font-family:Georgia,"SF Armenian",serif}.library .selection-status{color:#d3d6d2}.library .library-footer,.library .book-genre{color:#b8c5bd}.library .result-author{color:#c9d0c9}.library .result-description{color:#b9c6bf}.library .prologue-whisper{color:#bdc8c0}.library .interaction-hint{color:#bdc8c0}.library .result-copy{min-width:0}.library .real-book{background:#263b42}.library .real-book:has(img[hidden])::after{content:"✧";position:absolute;inset:0;display:grid;place-items:center;font:4rem Georgia,serif;color:var(--gold)}
.library:lang(hy) .prologue h2{font-size:clamp(2.8rem,5.2vw,5.6rem);letter-spacing:-.04em}.library:lang(ru) .prologue h2{font-size:clamp(2.8rem,5.5vw,5.8rem)}.library .prologue-whisper{max-width:32em}.library .result-clue{font-size:clamp(1.1rem,2vw,1.7rem)}
@media(max-width:767px){.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:2.8rem}.library .prologue-whisper{font-size:.875rem}.library .result h2{font-size:2.2rem}.library .result{padding-inline:1.25rem}.library .quiet-button.close-button>span{display:inline}.library .close-button{width:auto;padding-inline:.7rem;border-radius:.4rem}.library .brand{font-size:1.2rem}.library .brand-subtitle{font-size:.7rem;max-width:11em}.library .library-header{gap:.5rem;padding-inline:1rem}.library .header-divider{display:none}}

@media(max-width:380px){.library .brand>svg{display:none}.library .library-header{padding-inline:.75rem}.library .brand-subtitle{max-width:9em}.library .header-actions{gap:2px}}

/* Grqaser: SF Armenian, amber actions, navy accents and rounded glass panels. */
:host{--grq-amber:#FEB849;--grq-navy:#172033;--grq-border:#EAE7E1;font-family:inherit}
.library{--gold:#FEB849;--paper:#FCFAF6;--ink:#172033;font-family:inherit;font-size:1rem}
.library button,.library a,.library .brand,.library .brand-subtitle,.library .eyebrow,.library .prologue h2,.library .prologue p,.library .prologue-whisper,.library .result h2,.library .result-clue,.library .touch-book>span,.library .cinema-line,.library .cinema-kicker,.library .cover-credit{font-family:inherit;font-style:normal;letter-spacing:normal}
.library .library-header{gap:20px;padding:24px 3.5%;align-items:center}
.library .brand{display:flex;gap:12px;align-items:center;max-width:350px;min-height:68px;padding:9px 17px 9px 9px;border:1px solid #ffffffcf;border-radius:22px;background:linear-gradient(135deg,#ffffffed,#ffffffd9,#fff6e7ed);box-shadow:0 12px 45px #0f172a26,inset 0 1px 0 #fff;color:var(--grq-navy);text-shadow:none;backdrop-filter:blur(18px)}
.library .brand-logo{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:contain;border-radius:13px}
.library .brand .brand-subtitle{margin:0;max-width:none;font-size:.95rem;font-weight:650;line-height:1.4;letter-spacing:0;color:#172033}
.library .brand-subtitle:focus-visible{outline:2px solid #B7791F;outline-offset:5px;border-radius:3px}
.library .header-message{font-size:.8125rem;font-weight:500;letter-spacing:0;color:#f4e9d4;text-shadow:0 2px 14px #000}
.library .header-actions{gap:8px}
.library .header-divider{display:none}
.library .quiet-button{min-height:46px;min-width:46px;padding:11px 15px;gap:8px;border:1px solid #ffffffcf;border-radius:16px;background:#fffffff0;color:#344563;font-size:.875rem;font-weight:600;box-shadow:0 4px 12px #0f172a14,inset 0 1px 0 #fff;backdrop-filter:blur(16px);transition:transform .25s,background .25s,box-shadow .25s}
.library .quiet-button:hover{background:#FFF3DD;color:#172033;transform:translateY(-2px);box-shadow:0 6px 20px #feb84926}
.library .motion-toggle[aria-pressed="true"]{background:#FFF3DD;border-color:#FEB849;color:#624817}
.library .prologue{max-width:min(49%,640px);top:17%}
.library .eyebrow{text-transform:none;font-size:.8125rem;font-weight:600;letter-spacing:0;line-height:1.5}
.library .prologue .eyebrow{display:inline-flex;gap:8px;padding:8px 13px;border:1px solid #FEB84955;border-radius:12px;background:#172033c7;color:#FFD78D;box-shadow:inset 0 1px 0 #ffffff14;font-size:.8125rem;letter-spacing:0;backdrop-filter:blur(12px)}
.library .tiny-star{font-size:1.1rem}
.library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-family:inherit;font-weight:650;font-size:clamp(2rem, 3.5vw, 3.8rem);line-height:1.16;letter-spacing:-.035em;margin:23px 0 20px;color:#FCFAF6;overflow-wrap:anywhere;text-shadow:0 4px 35px #0008}
.library .prologue h2 em{font:inherit;color:#FEB849}
.library .prologue p{font-family:inherit;font-size:1.1rem;font-weight:500;line-height:1.75;color:#eee8dc;max-width:32em}
.library .prologue-whisper{font-size:1rem;line-height:1.7;color:#d7dce2;max-width:30em;margin-top:8px}
.library .primary-button{min-height:54px;gap:11px;padding:14px 24px;border:1px solid #E4A13Eb3;border-radius:16px;background:linear-gradient(90deg,#FFD77B,#FEB849,#ECA43D);font-size:1rem;line-height:1.45;font-weight:650;color:#172033;letter-spacing:0;box-shadow:0 8px 24px #be7d1c2e,inset 0 1px 0 #ffffff73;transition:transform .25s,background .25s,box-shadow .25s}
.library .primary-button:hover{background:linear-gradient(90deg,#FFE094,#FFC65E,#F4B44D);box-shadow:0 12px 30px #be7d1c47,inset 0 1px 0 #ffffff73;transform:translateY(-2px)}
.library .primary-button:active{transform:translateY(0)}
.library .choose-button{min-width:270px}
.library:is([data-state="result"],[data-state="error"].has-result) .choose-button{min-height:50px;padding:12px 22px;border:1px solid #ffffffb3;background:#fffffff0;color:#344563;font-size:.9375rem;font-weight:600;box-shadow:0 8px 24px #17203326}
.library:is([data-state="result"],[data-state="error"].has-result) .choose-button:hover{background:#FFF3DD;color:#172033;border-color:#FEB849}
.library:is([data-state="selecting"],[data-state="revealing"]) .choose-button{background:linear-gradient(90deg,#344563,#263752,#172033);color:#fff;border-color:#63718A80;box-shadow:0 4px 12px #17203324;opacity:.9;margin-top:18px}
.library .selection-controls{padding-bottom:30px;min-height:132px}
.library .selection-status{font-size:.9375rem;line-height:1.6;color:#e1e6ed}
.library .skip-button{min-height:44px;margin:8px 0 0;padding:10px 18px;border:1px solid #ffffff66;border-radius:14px;background:#ffffffed;color:#344563;font-size:.875rem;font-weight:600;text-decoration:none;backdrop-filter:blur(12px)}
.library .skip-button:hover{background:#FFF3DD;color:#172033}
.library .interaction-hint{font-size:.875rem;color:#d2d9e2}
.library .touch-book>span{font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.5;letter-spacing:0;color:#FFF3DD;opacity:1;background:#172033c7;border:1px solid #FEB84955;border-radius:12px;padding:6px 10px;backdrop-filter:blur(12px)}
.library .touch-book>svg{color:#FEB849;opacity:.9}
.library .cinema-line{font-family:inherit;font-size:clamp(1.5rem,3vw,2.6rem);font-weight:600;line-height:1.45;color:#FCFAF6;letter-spacing:-.02em;text-shadow:0 3px 20px #000}
.library .cinema-kicker{font-size:.8125rem;letter-spacing:0;font-weight:600;color:#FEB849;margin-bottom:10px}
.library .journey-track{border-radius:20px;background:#ffffff30;height:3px}
.library #journey-progress{background:linear-gradient(90deg,#FFD77B,#FEB849);border-radius:20px}
/* The physical mystery book uses the same navy and amber as the main site. */
.library .codex-front,.library .codex-back{border-radius:8px 14px 14px 8px}
.library .codex-back{background:#172033;border-color:#FEB84999}
.library .codex-spine{background:linear-gradient(90deg,#111A2A,#344563,#172033);box-shadow:inset 0 17px 0 #FEB84988,inset 0 -17px 0 #FEB84988}
.library .codex-cover{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;border:1px solid #FEB84999;border-radius:8px 14px 14px 8px;background:radial-gradient(ellipse at 60% 30%,#40537155,transparent 65%),linear-gradient(110deg,#172033,#263752 42%,#172033);backface-visibility:hidden;box-shadow:inset 8px 0 10px #0005,inset 0 1px 0 #ffffff30}
.library .codex-border{position:absolute;inset:13px;border:1px solid #FEB84977;border-radius:3px 8px 8px 3px}
.library .codex-logo{display:block;width:72%;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:screen;border-radius:0}
.library .codex-seal{position:absolute;bottom:12%;font-size:1.5rem;color:#FEB849}
.library .paper-leaf{border-radius:3px 8px 8px 3px}
/* Match the real book hero: white cover frame and two frosted backplates. */
.library .result{max-width:1180px;grid-template-columns:340px minmax(0,560px);gap:60px;padding:32px 5% 24px;min-height:520px}
.library .result-art{padding:36px 22px;min-width:0;order:0}
.library .result-orbit{width:330px;height:355px;top:50%;border-radius:40px;border:1px solid #ffffffb3;background:#ffffff2e;transform:translate(-50%,-50%)rotate(-7deg);box-shadow:0 18px 70px #5c688014}
.library .result-orbit:before{inset:20px;border-radius:32px;border-color:#ffffffe6;background:linear-gradient(135deg,#ffffffa8,#ffffff20);transform:rotate(12deg);box-shadow:0 25px 65px #5d6b8712}
.library .result-orbit:after{display:none}
.library .real-book{width:260px;aspect-ratio:1;transform:none;border:5px solid #ffffffe6;border-radius:23px;background:#fff;box-shadow:0 32px 70px -18px #313e5759;filter:none;overflow:hidden}
.library .real-book:before,.library .real-book .book-edge{display:none}
.library .real-book img{display:block;width:100%;height:100%;border-radius:17px;background:#fff;object-fit:contain}
.library .real-book:has(img[hidden])::after{font-family:inherit;color:#B7791F;background:linear-gradient(135deg,#FFF3DD,#fff)}
.library .cover-credit{color:#dce2ea;font-size:.8125rem;font-weight:500;letter-spacing:0;line-height:1.5;max-width:260px;text-align:center;margin-top:24px}
.library .result-copy{order:1;max-width:none;min-width:0;padding:28px;border:1px solid #ffffffe6;border-radius:28px;background:linear-gradient(135deg,#fffffff5,#fffdf7f0);box-shadow:0 20px 55px #0f172a26,inset 0 1px 0 #fff;backdrop-filter:blur(22px);color:#172033}
.library .result-copy>.eyebrow{display:inline-flex;gap:8px;font-size:.8125rem;letter-spacing:0;color:#9C681D}
.library .result-clue{font-family:inherit;font-size:1rem;font-weight:500;line-height:1.7;letter-spacing:0;color:#69717F;margin:14px 0 18px}
.library .fine-rule{height:3px;width:38px;border-radius:8px;background:linear-gradient(90deg,#FFD77B,#FEB849);margin-bottom:18px}
.library .book-genre{display:inline-block;font-size:.8125rem;font-weight:600;text-transform:none;letter-spacing:0;line-height:1.5;color:#A87527;padding:6px 10px;border:1px solid #F3E7D3;border-radius:10px;background:#FFF3DD}
.library .book-genre:empty{display:none}
.library .result h2{font-family:inherit;font-size:clamp(1.6rem,2.5vw,2.4rem);font-weight:650;line-height:1.3;letter-spacing:-.025em;color:#172033;margin:14px 0 10px;text-shadow:none}
.library .result-author{font-size:1rem;line-height:1.6;color:#667080;margin:0 0 16px}
.library .result-description{font-size:1rem;line-height:1.8;color:#667080;margin:0 0 18px;overflow-wrap:anywhere}
.library .result-meta{font-size:.875rem;font-weight:600;line-height:1.7;color:#657084;border-top:1px solid #E9EDF2;padding:14px 0 0;margin:0 0 20px}
.library .result-meta:empty{display:none}
.library .open-book-button{min-height:52px;border-color:#63718A80;border-radius:16px;padding:13px 24px;background:linear-gradient(90deg,#344563,#263752,#172033);font-size:.9375rem;font-weight:600;color:#fff;box-shadow:0 4px 12px #17203324,inset 0 1px 0 #ffffff21}
.library .open-book-button:hover{background:linear-gradient(90deg,#405371,#30415D,#21314B);color:#fff;box-shadow:0 8px 22px #17203338}
.library .library-footer{font-size:.8125rem;letter-spacing:0;line-height:1.6;color:#d3dbe5;border-color:#ffffff26}
.library button:focus-visible,.library a:focus-visible,.library [tabindex="-1"]:focus-visible{outline:3px solid #FEB849;outline-offset:5px}
@media(max-width:1250px){.library .header-message{display:none}}
@media(min-width:768px) and (max-width:1050px){.library .prologue{max-width:52%;left:5%}.library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:2.4rem;}.library .result{grid-template-columns:270px minmax(0,1fr);gap:32px;padding-inline:4%}.library .real-book{width:220px}.library .result-orbit{width:280px;height:310px}.library .result-copy{padding:24px}}
@media(max-width:767px){
 .library .library-header{padding:14px 16px;gap:10px;align-items:flex-start}
 .library .brand{padding:7px 10px 7px 7px;gap:9px;min-height:58px;border-radius:18px;max-width:55%}
 .library .brand-logo{width:40px;height:40px;flex-basis:40px;border-radius:11px}
 .library .brand .brand-subtitle{font-size:.8125rem;line-height:1.4;max-width:12em}
 .library .header-actions{gap:6px;padding-top:6px}
 .library .quiet-button{min-height:44px;min-width:44px;padding:10px;border-radius:14px;font-size:.8125rem}
 .library .close-button>span{display:inline}
 .library .motion-toggle>span{display:none}
 .library .prologue{position:relative;top:auto;left:auto;max-width:none;text-align:center;padding:24px 20px 0}
 .library .prologue .eyebrow{font-size:.75rem;padding:7px 10px}
 .library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:clamp(2rem, 3.5vw, 3.8rem);line-height:1.2;margin:20px 0 14px;letter-spacing:-.03em}
 .library .prologue p{font-size:1rem;line-height:1.6}
 .library .prologue-whisper{font-size:.875rem;line-height:1.6;margin-top:7px}
 .library .discovery-space{min-height:540px}
 .library .mystery-book,.library .book-halo,.library .touch-book{top:68%}
 .library .touch-book>span{font-size:.8125rem;bottom:-24px}
 .library .selection-controls{padding:18px 20px 24px;min-height:125px}
 .library .choose-button{min-width:0;width:min(100%,340px);font-size:.9375rem;min-height:54px}
 .library .cinema-line{font-size:1.5rem}
 .library .result{display:flex;flex-direction:column;gap:14px;padding:14px 20px 20px;min-height:0}
 .library .result-art{padding:23px 20px 18px}
 .library .real-book{width:190px;border-radius:20px}
 .library .real-book img{border-radius:14px}
 .library .result-orbit{width:235px;height:245px;border-radius:30px;top:50%}
 .library .result-orbit:before{inset:14px;border-radius:24px}
 .library .cover-credit{display:none}
 .library .result-copy{width:100%;max-width:440px;padding:23px 20px;text-align:start;border-radius:24px}
 .library .result-copy>.eyebrow{font-size:.75rem;justify-content:flex-start}
 .library .result h2{font-size:1.8rem;line-height:1.35;margin:12px 0 10px}
 .library .result-clue{font-size:.9375rem;margin:12px 0 16px}
 .library .fine-rule{margin:0 0 16px}
 .library .result-author,.library .result-description{font-size:.9375rem;line-height:1.75}
 .library .book-genre{font-size:.75rem}
 .library .result-meta{font-size:.8125rem}
 .library .open-book-button{width:100%;font-size:.9375rem}
 .library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{padding:0 20px 22px;min-height:90px}
 .library:is([data-state="result"],[data-state="error"].has-result) .choose-button{width:min(100%,440px);font-size:.9375rem}
 .library .library-footer{margin-inline:20px;padding-block:16px;text-align:center;font-size:.75rem}
}
@media(max-width:380px){.library .brand{max-width:54%;gap:7px}.library .brand-logo{width:32px;height:32px;flex-basis:32px}.library .brand .brand-subtitle{font-size:.75rem}.library .quiet-button{padding:9px;gap:5px}.library .close-button>span{display:none}.library .library-header{padding-inline:12px}.library .prologue{padding-inline:16px}.library .result{padding-inline:14px}}
@media(max-width:767px) and (max-height:760px){.library .discovery-space{min-height:490px}.library .prologue{padding-top:16px}.library .mystery-book,.library .book-halo,.library .touch-book{top:69%}.library .prologue-whisper{font-size:.8125rem}.library .library-footer{padding-block:12px}}
@media(min-width:768px) and (max-height:650px){.library .library-header{padding-block:14px}.library .brand{min-height:54px}.library .brand-logo{width:38px;height:38px;flex-basis:38px}.library .prologue{top:12%}.library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:2.8rem}.library .result{min-height:350px;gap:35px;grid-template-columns:240px minmax(0,1fr)}.library .real-book{width:180px}.library .result-orbit{width:235px;height:255px}.library .result-copy{padding:22px}.library .result h2{font-size:1.8rem}.library .result-clue{display:none}.library .selection-controls{min-height:104px;padding-bottom:16px}}
@media(forced-colors:active){.library .brand,.library .result-copy,.library .result-orbit,.library .real-book,.library .book-genre,.library .quiet-button,.library .primary-button,.library .skip-button,.library .prologue .eyebrow{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none;backdrop-filter:none}.library .prologue h2 em,.library .result h2,.library .result-clue,.library .result-author,.library .result-description,.library .result-meta,.library .brand .brand-subtitle{color:CanvasText}.library button:focus-visible,.library a:focus-visible,.library [tabindex]:focus-visible{outline-color:Highlight}}

.library:is([data-state="result"],[data-state="error"].has-result) .selection-controls{align-items:center}

/* One viewport, with space reserved for Close and the discovery action. */
.library{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden;overscroll-behavior:none}
.library .library-shell{height:100%;max-height:100%;min-height:0;padding:0;overflow:hidden}
.library .library-main{display:grid;grid-template-rows:minmax(0,1fr) auto auto;flex:0 0 100%;height:100%;max-height:100%;min-height:0;min-width:0;max-width:1400px;padding: max(64px,calc(env(safe-area-inset-top) + 56px)) 0 max(12px,env(safe-area-inset-bottom));overflow:hidden}
.library .screen-reader-only,.library:not([data-state="error"]) .selection-status{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.library .close-button{position:fixed;z-index:30;top:max(12px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:44px;height:44px;min-width:44px;min-height:44px;padding:11px;border-radius:14px;box-shadow:0 8px 26px #0f172a26,inset 0 1px 0 #fff}
.library .close-button svg{display:block;width:22px;height:22px}
.library #close-library{background:#263752;color:#fff;border-color:#ffffff40;box-shadow:0 8px 24px #070d1540,inset 0 1px 0 #ffffff14}
.library #close-library:hover{background:#344563;color:#fff;border-color:#ffffff66}
.library .discovery-space{display:grid;align-items:center;min-height:0;min-width:0;height:100%;padding:8px 24px;container:library-space / size}
.library .prologue{position:absolute;top:20%;left:6.5%;max-width:49%;padding:0}
.library .prologue h2{margin-top:0}
.library .mystery-book,.library .book-halo{top:50%}
.library .codex-emblem{width:54%;height:54%;color:#FEB849;stroke-width:1;backface-visibility:hidden}
.library .world-poster{background-image:none;opacity:0;transition:opacity .7s ease-out}
.library.artwork-ready .world-poster{background-image:url('../v1/assets/library-world-v2.png');opacity:1}
.library.minimal-motion .world-poster{transition:none}
.library[data-state] .library-main .selection-controls{align-items:center;justify-content:center;min-height:0;padding:12px 16px 4px}
.library .selection-controls[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
.library[data-state] .selection-controls .choose-button{min-width:280px;max-width:100%;min-height:48px;margin:0;padding:11px 20px;font-size:.9375rem;line-height:1.5;pointer-events:auto}
/* The label changes after discovery; the amber identity never changes. */
.library #choose-book{background:linear-gradient(90deg,#FFD77B,#FEB849,#ECA43D);color:#4a350e;border-color:#E5A83F;box-shadow:0 8px 24px #be7d1c2e,inset 0 1px 0 #ffffff73;opacity:1}
.library[data-state="error"] .selection-status{position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;width:calc(100% - 32px);max-width:680px;min-height:0;max-height:5.5em;margin:6px auto 0;padding:8px 14px;overflow:hidden;border:1px solid #FEB84966;border-radius:14px;background:#172033ed;color:#FFF3DD;font-size:.875rem;line-height:1.5;white-space:normal;text-align:center}
.library[data-state="error"] .selection-status:empty{display:none}

/* The catalogue card is slotted from light DOM and keeps the site's own CSS. */
.library .result{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;gap:0;width:100%;height:100%;max-width:none;max-height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;pointer-events:auto}
.library .result slot{display:contents}
@media(max-width:767px){
 .library .discovery-space{padding:8px 12px}
 .library .prologue{top:3%;left:0;right:0;max-width:none;padding:12px 22px 0;text-align:center}
 .library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:clamp(1.3rem, 5.5vw, 2rem);margin:0 0 12px}
 .library .prologue p{font-size:1rem}
 .library .prologue-whisper{font-size:.875rem}
 .library .mystery-book,.library .book-halo{top:65%}
 .library[data-state] .selection-controls .choose-button{min-width:0;width:min(100%,360px)}
 @container library-space (max-height:360px){
  .library .prologue h2,.library:lang(hy) .prologue h2,.library:lang(ru) .prologue h2{font-size:1.6rem}
  .library .prologue p{font-size:.875rem;line-height:1.5}
 }
}
/* Use the width in phone landscape instead of stacking a tall card. */
@media(min-width:540px) and (max-width:767px) and (max-height:540px){
 .library .prologue{top:12%;left:5%;right:auto;max-width:49%;padding:0;text-align:start}
 .library .mystery-book,.library .book-halo{left:76%;top:50%}
}
@media(forced-colors:active){
 .library .codex-emblem{color:CanvasText}
 .library #choose-book,.library #close-library,.library #close-library:hover{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){.library .world-poster{transition:none}}

/* Keep the open spread on stage until the card has emerged from its pages. */
.library .mystery-book{transform-origin:0% 50%}
.library[data-state="revealing"] .room .mystery-book{visibility:visible}
.library .book-radiance{left:-110%;right:-10%;top:-30%;bottom:-30%;opacity:.35}
.library[data-state="revealing"] .result{will-change:transform,opacity;pointer-events:none}
@media(prefers-reduced-motion:reduce){.library[data-state="revealing"] .result{will-change:auto}}
/* Legacy phase selectors made the child button visible inside a hidden row. */
.library .selection-controls[hidden] .choose-button{visibility:hidden;pointer-events:none}

/* Preserve the original six 3D leaves with explicit front/back surfaces. */
.library .mystery-book,.library .codex-body,.library .codex-front,.library .paper-leaf{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}
.library .paper-leaf{border:0;background:none;transform:translateZ(calc(11px - var(--leaf)*.6px))}
.library .paper-face{position:absolute;inset:0;display:block;border:12px solid #e7d9b9;border-radius:inherit;background:linear-gradient(90deg,#ad9d7b50,transparent 12%),repeating-linear-gradient(0deg,transparent 0 14px,#8a7e5d30 14px 15px,transparent 15px 19px),#e7d9b9;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.library .paper-face-front{transform:translateZ(.1px)}
.library .paper-face-back{transform:rotateY(180deg) translateZ(.1px)}
.library .codex-cover,.library .inside-cover{backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* Shadows live on surfaces; fading them leaves the 3D ancestors unflattened. */
.library .codex-front{box-shadow:none}
.library .inside-cover{box-shadow:inset 7px 0 8px #0005,0 0 1px #e0c28e88}
.library[data-state="selecting"] .paper-leaf{will-change:transform}

/* Compositor-only progress preserves the same desktop appearance. */
.library #journey-progress{width:100%;transform:scaleX(0);transform-origin:0 50%;will-change:transform}
/* Phone chrome must not resize the 3D scene in the middle of a journey. */
.library.mobile-performance{height:var(--library-viewport-height,100svh);max-height:var(--library-viewport-height,100svh)}
.library.mobile-performance[open],.library.mobile-performance[open] .library-shell{animation:none}
.library.mobile-performance .mystery-book{filter:none}
.library.mobile-performance .world-ray{filter:none;mix-blend-mode:normal}
.library.mobile-performance .world-aura{mix-blend-mode:normal}
.library.mobile-performance .world-grain{display:none}
.library.mobile-performance .quiet-button{backdrop-filter:none}
/* Promote only moving surfaces. Never apply opacity/filter/paint containment to
   the ancestors that preserve the book's six double-sided 3D leaves. */
.library.mobile-performance :is(.mystery-book,.world-poster,.world-aura,.world-rift){will-change:auto}
.library.mobile-performance:is([data-state="selecting"],[data-state="revealing"]) :is(.mystery-book,.world-poster,.world-rift){will-change:transform}
.library.mobile-performance:is([data-state="selecting"],[data-state="revealing"]) .world-aura{will-change:transform,opacity}
.library.mobile-performance .codex-back,.library.mobile-performance .codex-leaves,.library.mobile-performance .codex-spine{backface-visibility:hidden;-webkit-backface-visibility:hidden}

/* WebKit and phone fallback: one opaque illustrated backdrop. No translucent
   WebGL canvas or rotating image tiles to expose black compositor surfaces. */
.library.stable-compositing #world-canvas,.library.stable-compositing .world-rift,.library.stable-compositing .world-ray,.library.stable-compositing .world-aura,.library.stable-compositing .world-grain{display:none}
.library.stable-compositing .world-stage{background:#070d15 url('../v1/assets/library-world-v2.png') 62% 60%/cover no-repeat}
.library.stable-compositing .world-poster{display:none}
.library.stable-compositing[open],.library.stable-compositing[open] .library-shell{animation:none}
.library.stable-compositing .mystery-book{perspective:none;filter:none;will-change:transform}
.library.stable-compositing .codex-body,.library.stable-compositing .codex-front,.library.stable-compositing .paper-leaf{overflow:visible;opacity:1;filter:none;isolation:auto;mix-blend-mode:normal}
/* Give each side real thickness rather than two faces in the same plane. */
.library.stable-compositing .codex-cover{transform:translateZ(1px)}
.library.stable-compositing .inside-cover{transform:rotateY(180deg) translateZ(1px)}
.library.stable-compositing .paper-face-front{transform:translateZ(.75px)}
.library.stable-compositing .paper-face-back{transform:rotateY(180deg) translateZ(.75px)}
.library.stable-compositing .codex-front[data-face="front"]>.inside-cover,.library.stable-compositing .codex-front[data-face="back"]>.codex-cover,.library.stable-compositing .paper-leaf[data-face="front"]>.paper-face-back,.library.stable-compositing .paper-leaf[data-face="back"]>.paper-face-front{visibility:hidden}
/* Closed pages cannot bleed through the cover during the initial float. */
.library.stable-compositing[data-book-phase="closed"] :is(.paper-leaf,.codex-leaves),.library.stable-compositing[data-book-phase="opening"] .paper-leaf{visibility:hidden}
/* Keep the book glow outside the depth-sorted page/cover stack. */
.library.stable-compositing .book-radiance{display:none}
/* Keep background shading constant across search/reveal/result as well. */
.library.stable-compositing[data-state] .world-shade{background:linear-gradient(90deg,#070c16dc 0%,#080e17a3 28%,#080e170a 65%,#080e1733 100%),linear-gradient(0deg,#070d16e8 0%,transparent 35%,transparent 75%,#070d1670 100%)}
.library.stable-compositing.mobile-performance[data-state] .world-shade{background:linear-gradient(180deg,#070d16b0 0%,#070d16c4 12%,#070d1688 38%,#070d1600 68%,#070d16e8 100%),linear-gradient(90deg,#070d1644,transparent 60%)}
