@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');
.shelf-page{margin:0;background:linear-gradient(145deg,#eef3fa,#dceaf2);color:#193d50;font-family:'DM Sans',Arial,sans-serif;min-height:100vh;color-scheme:light}
.shelf-page *{box-sizing:border-box}
.shelf-page a{color:inherit;text-decoration:none}
.shelf-page button{font:inherit}
.shelf-page [hidden]{display:none!important}
.shelf-header{max-width:1180px;margin:auto;padding:25px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ab7d3833;gap:20px}
.shelf-brand{letter-spacing:.15em;font-size:13px;color:#856025!important}
.shelf-back{font-size:13px;color:#496675!important;min-height:44px;display:flex;align-items:center}
.shelf-main{position:relative;max-width:1100px;margin:auto;padding:54px 38px 40px}
.shelf-main:before,.shelf-main:after{content:'';position:absolute;pointer-events:none;top:55px;width:25px;height:75px;border-top:1px solid #ab7d3850}
.shelf-main:before{left:8px;border-left:1px solid #ab7d3850}.shelf-main:after{right:8px;border-right:1px solid #ab7d3850}
.shelf-intro{display:flex;justify-content:space-between;align-items:end;gap:24px}
.shelf-kicker{margin:0 0 10px;font-size:11px;letter-spacing:.21em;text-transform:uppercase;color:#856025}
.shelf-page h1{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:58px;line-height:1.08;margin:0 0 12px}
.shelf-description{font-size:14px;line-height:1.65;color:#496675;margin:0;max-width:460px}
.shelf-account{text-align:right;max-width:360px}
.shelf-account p{font-size:12px;color:#496675;overflow-wrap:anywhere;margin:0 0 6px}
.shelf-signout{background:none;border:0;color:#856025;padding:10px 0;min-height:44px;cursor:pointer;font-size:13px!important}
.shelf-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #ab7d3833;padding:32px 0 16px;margin-bottom:28px}
.shelf-toolbar h2{font-size:14px;font-weight:500;margin:0}.shelf-toolbar p{font-size:12px;color:#496675;margin:0}
.shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 40px}
.shelf-book{min-width:0;display:flex;flex-direction:column}
.shelf-cover-link{display:block;position:relative;padding:0 0 23px;isolation:isolate}
.shelf-cover-link:after{content:'';position:absolute;left:0;right:0;bottom:7px;height:1px;background:linear-gradient(90deg,transparent,#b3935f80,transparent)}
.shelf-cover-link img{display:block;width:100%;height:auto;aspect-ratio:1122/1402;object-fit:contain;border-radius:0;box-shadow:none;clip-path:polygon(12.5% 5.9%,83% 3.8%,83.2% 5.5%,90% 5.9%,90% 91%,83% 91.9%,12.5% 86.9%);transition:transform .2s ease}
.shelf-cover-link:hover img{transform:translateY(-4px)}
.shelf-volume{margin:0 0 6px;color:#856025;letter-spacing:.15em;text-transform:uppercase;font-size:10px}
.shelf-book h3{font-family:'Libre Caslon Display',Georgia,serif;font-size:28px;font-weight:400;line-height:1.15;margin:0 0 5px;color:#193d50}
.shelf-subtitle{font-size:12px;color:#496675;margin:0 0 18px;line-height:1.4;min-height:17px}
.shelf-read{color:#fff!important;display:flex;align-items:center;justify-content:space-between;min-height:45px;border:1px solid #a88b5755;background:#193d50;padding:11px 14px;border-radius:5px;font-size:13px;margin-top:auto;transition:background .2s}
.shelf-read:hover{background:#28546b}.shelf-arrow{color:#e8c88b;font-size:19px}
.shelf-book-actions{display:flex;align-items:stretch;gap:8px;margin-top:auto}.shelf-book-actions .shelf-read{flex:1;margin-top:0;min-width:0}.shelf-plane{color:#e8c88b!important;display:flex;align-items:center;justify-content:center;min-width:45px;min-height:45px;border:1px solid #a88b5755;border-radius:5px;font-size:21px;background:#193d50}.shelf-plane:hover{background:#28546b}.shelf-offline-hint{font-size:11px;line-height:1.5;color:#496675;margin:9px 0 0}.shelf-buy{background:#f6f9fc;border-color:#a88b5780;color:#856025!important}
.shelf-wait{color:#496675;font-size:12px;line-height:1.5}
.shelf-status{color:#496675;font-size:14px;line-height:1.6}
.shelf-status:empty{display:none}
.shelf-footer{margin-top:52px;padding-top:22px;border-top:1px solid #ab7d3833;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:#496675}
.shelf-footer a{color:#856025}.shelf-linkmethod{color:#856025;font-size:13px}
.shelf-empty{padding:35px 0;max-width:540px}.shelf-empty h2{font-family:Georgia,serif;font-weight:400;font-size:28px}
.shelf-page a:focus-visible,.shelf-page button:focus-visible{outline:2px solid #438b9c;outline-offset:5px}
@media(max-width:700px){.shelf-header{padding:15px 22px}.shelf-main{padding:35px 22px 28px}.shelf-main:before,.shelf-main:after{top:36px;width:10px;height:48px}.shelf-main:before{left:8px}.shelf-main:after{right:8px}.shelf-intro{align-items:start;flex-direction:column;gap:18px}.shelf-page h1{font-size:46px}.shelf-account{text-align:left}.shelf-account p{font-size:11px}.shelf-signout{padding:0;min-height:32px}.shelf-toolbar{padding-top:20px;margin-bottom:23px}.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 23px}.shelf-cover-link{padding:0 0 19px}.shelf-book h3{font-size:23px}.shelf-subtitle{font-size:11px;margin-bottom:13px;min-height:31px}.shelf-read{font-size:12px;padding:10px;min-height:44px}.shelf-footer{margin-top:35px}.shelf-description{font-size:13px}}
@media(prefers-reduced-motion:reduce){.shelf-cover-link img,.shelf-read{transition:none}.shelf-cover-link:hover img{transform:none}}
.entry-page .festival-entry{height:auto;min-height:100svh;overflow:visible}
.entry-page .entry-content{padding:35px 24px 25px;min-height:100svh;justify-content:center}
.entry-page .entry-mark{width:42px;height:42px;margin-bottom:18px}
.entry-page .entry-content>h1{font-size:clamp(36px,5.4vw,68px)}
.entry-page .entry-edition{margin-top:12px}.entry-page .entry-adaptation{margin-top:6px}
.entry-page .entry-auth{width:min(440px,100%);text-align:left;text-shadow:none;margin:24px 0 0;padding:24px 28px;background:#f6f9fcee;border:1px solid #ab7d3850;box-shadow:0 12px 35px #193d501a}
.entry-page .entry-auth h2{font:400 28px/1.2 Georgia,serif;margin:0 0 10px;color:#193d50}
.entry-page .entry-auth p{margin:10px 0;font-size:13px;line-height:1.5;color:#496675}
.entry-page .entry-auth label{margin-top:14px;font-weight:500}
.entry-page .entry-auth .auth-primary{margin-top:16px}.entry-page .entry-auth .auth-status{margin-bottom:0;min-height:20px}
.entry-page .entry-auth .auth-status[data-error=true]{color:#8b2828}
.entry-page .entry-studio{position:static;transform:none;margin-top:18px;width:auto;max-width:100%}
.entry-page .entry-support{font-size:11px;line-height:1.5;margin-top:15px;color:#315a6f;background:none;border:0;padding:0;display:block;text-align:center}
.entry-page .entry-support a{color:inherit}.entry-page .entry-home{position:absolute;top:20px;left:24px;font-size:12px;color:#315a6f;min-height:44px;display:flex;align-items:center;text-shadow:none}
@media(max-width:700px){.entry-page .entry-content{padding:72px 22px 24px}.entry-page .entry-content>h1{max-width:340px;font-size:42px}.entry-page .entry-auth{padding:21px 20px}.entry-page .entry-mark{margin-bottom:14px}.entry-page .entry-edition{font-size:10px}.entry-page .entry-studio p{white-space:normal}}

.festival-entry { position:relative; isolation:isolate; height:100svh; height:100dvh; min-height:420px; overflow:auto; background:linear-gradient(180deg,#dff5ff 0%,#b9e5f5 51%,#82c9df 52%,#acddec 100%); color:#153d58; }
.festival-entry::after { content:""; position:absolute; z-index:-2; inset:0; background:url("assets/library/entry-lake-wide.webp") center/cover no-repeat; filter:brightness(1.95) saturate(.58) contrast(.72); opacity:.52; }
.festival-entry::before { content:""; position:absolute; z-index:-1; inset:clamp(14px,2.3vw,28px); border:1px solid rgba(150,105,38,.5); background:linear-gradient(180deg,rgba(241,251,255,.34),rgba(210,240,250,.08) 46%,rgba(225,246,251,.27)); box-shadow:inset 0 0 90px rgba(255,255,255,.18); pointer-events:none; }
.entry-content { position:relative; min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:54px 28px max(68px,env(safe-area-inset-bottom)); text-shadow:0 1px 0 rgba(255,255,255,.6); }
.entry-mark { width:58px; height:58px; margin-bottom:24px; display:grid; place-items:center; border:1px solid rgba(150,105,38,.72); border-radius:50%; background:rgba(255,248,220,.38); box-shadow:0 0 0 7px rgba(255,255,255,.22),0 7px 25px rgba(36,78,104,.14); }
.entry-mark span { color:#8a6127; font:500 15px/1 Georgia,serif; letter-spacing:.08em; }
.entry-eyebrow { margin:0 0 13px; color:#8a6127; font:600 clamp(11px,1vw,14px)/1.4 Georgia,serif; letter-spacing:.3em; }
.entry-content h1 { max-width:100%; margin:0; color:#123c59; font:400 clamp(39px,6.9vw,92px)/1.02 Georgia,'Times New Roman',serif; letter-spacing:.07em; text-shadow:0 2px 0 rgba(255,255,255,.55),0 8px 28px rgba(27,74,103,.12); }
.entry-edition { margin:18px 0 0; color:#274f66; font:600 clamp(10px,1vw,13px)/1.5 Georgia,serif; letter-spacing:.2em; }
.entry-adaptation { margin:10px 0 0; color:#6f5129; font:italic 400 clamp(14px,1.4vw,18px)/1.5 Georgia,serif; letter-spacing:.035em; }
.entry-action { margin-top:clamp(39px,6.5vh,68px); }
.festival-entry .enter-button { min-height:56px; min-width:min(320px,78vw); padding:14px 28px; border:1px solid #a97730; border-radius:2px; background:linear-gradient(180deg,#e9c77e,#d4a654); box-shadow:0 10px 28px rgba(35,78,103,.2),inset 0 1px rgba(255,255,255,.55); color:#123b56; font:600 clamp(12px,1.1vw,15px)/1.4 Georgia,serif; letter-spacing:.16em; transition:background .2s,transform .2s,box-shadow .2s; }
.festival-entry .enter-button:hover { background:linear-gradient(180deg,#f5d795,#dfb561); transform:translateY(-2px); box-shadow:0 13px 32px rgba(35,78,103,.24),inset 0 1px rgba(255,255,255,.65); }
.festival-entry .enter-button:focus-visible { outline:3px solid #fff8d9; outline-offset:4px; }
.entry-studio { position:absolute; bottom:max(27px,env(safe-area-inset-bottom)); left:50%; width:max-content; max-width:calc(100% - 48px); transform:translateX(-50%); text-align:center; }
.entry-studio p { margin:0 0 8px; color:#315a6f; font:400 clamp(11px,1vw,14px)/1.3 Georgia,serif; letter-spacing:.11em; white-space:nowrap; }
.entry-studio-link { display:block; width:105px; margin:0 auto; border:1px solid rgba(142,101,43,.35); border-radius:2px; box-shadow:0 5px 15px rgba(28,73,99,.12); line-height:0; transition:transform .2s,box-shadow .2s; }
.entry-studio-link img { display:block; width:100%; height:auto; }
.entry-studio-link:hover { transform:translateY(-2px); box-shadow:0 8px 19px rgba(28,73,99,.2); }
.entry-studio-link:focus-visible { outline:3px solid #fff8d9; outline-offset:4px; }
.festival-entry .apple-install-tip { display:none !important; }
@media (max-width:700px) { .festival-entry::after { background-position:58% center; }.entry-content { padding:57px 25px 104px; }.entry-mark { width:47px; height:47px; margin-bottom:23px; }.entry-mark span { font-size:12px; }.entry-content h1 { max-width:340px; font-size:clamp(43px,12.5vw,62px); line-height:.98; letter-spacing:.025em; }.entry-eyebrow { letter-spacing:.22em; }.entry-edition { max-width:290px; margin-top:17px; letter-spacing:.14em; }.entry-adaptation { max-width:290px; font-size:15px; }.entry-action { margin-top:45px; }.entry-studio { bottom:max(23px,env(safe-area-inset-bottom)); }.entry-studio-link { width:88px; } }
@media (max-height:570px) { .entry-content { padding-top:20px; padding-bottom:67px; }.entry-mark { width:35px; height:35px; margin-bottom:9px; }.entry-mark span { font-size:9px; }.entry-eyebrow { margin-bottom:4px; }.entry-edition { margin-top:6px; }.entry-adaptation { margin-top:2px; }.entry-action { margin-top:11px; }.entry-studio { bottom:10px; }.entry-studio p { margin-bottom:4px; font-size:10px; }.entry-studio-link { width:70px; }.festival-entry .enter-button { min-height:42px; } }

.shelf-page [hidden]{display:none!important}.shelf-page .shelf-description br{display:none}.shelf-page .shelf-header{max-width:1180px}

.shelf-music{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:-6px 0 26px;font-size:12px;color:#496675}.shelf-music button{min-height:44px;padding:9px 14px;border:1px solid #ab7d3850;border-radius:6px;background:#f6f9fc;color:#193d50;cursor:pointer}.shelf-music label{display:flex;align-items:center;gap:9px}.shelf-music input{width:110px;accent-color:#438b9c;min-height:32px}.shelf-music button:disabled{opacity:.65}.shelf-music input:disabled{opacity:.5}@media(max-width:700px){.shelf-music{gap:8px 14px}.shelf-music span{flex-basis:100%;font-size:11px}}


/* Quiet actions: a slim Read link and a round flight button. */
.shelf-book-actions{align-items:center;justify-content:center;gap:14px}
.shelf-book-actions .shelf-read,.shelf-read.shelf-buy{flex:0 1 auto;min-height:44px;padding:8px 13px;border:0;border-bottom:1px solid #7d9ba955;border-radius:0;background:transparent;color:#244c60!important;font-size:13px;text-align:center;justify-content:center;box-shadow:none}
.shelf-book-actions .shelf-read:hover{background:#d7e8f180}
.shelf-plane{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid #8da7b566;background:#f2f8fc;color:#315e73!important;font-size:21px;cursor:pointer}
.shelf-plane:hover{background:#dcecf4}.shelf-plane:disabled{cursor:default;opacity:.55}.shelf-plane.is-saved{opacity:1;color:#397365!important;border-color:#91b3a7;background:#edf6f1}
.shelf-offline-hint{text-align:center;min-height:17px;margin-top:8px}
.shelf-book progress{display:block;width:100%;height:5px;accent-color:#438b9c;margin-top:8px}
.shelf-page [aria-disabled=true]{opacity:.58;cursor:default}
.library-download-bridge{position:fixed;width:1px;height:1px;left:-10px;top:-10px;border:0;pointer-events:none}

.library-reading{overflow:hidden}.library-reader-overlay{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:#eef7fb;height:100dvh}.library-reader-back{flex:none;min-height:44px;padding:8px 16px;text-align:left;border:0;border-bottom:1px solid #b6cbd6;background:#eef7fb;color:#244c60;font:14px Arial,sans-serif}.library-reader-frame{flex:1;min-height:0;width:100%;border:0;background:#eef7fb}

.library-reader-overlay{box-sizing:border-box;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}


/* Pointer clicks stay quiet; keyboard users retain a visible underline. */
.shelf-cover-link{-webkit-tap-highlight-color:transparent}
.shelf-page .shelf-cover-link:focus{outline:none}
.shelf-page .shelf-cover-link:focus-visible:after{height:3px;background:#438b9c}
.library-reader-loading{position:absolute;inset:44px 0 0;display:grid;place-items:center;margin:0;background:#eef7fb;color:#244c60;font:17px Georgia,serif;z-index:1}
