*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,sans-serif;background:#142337;color:#fff}
body{display:flex;flex-direction:column;min-height:100vh}
.book-view{display:flex;flex:1;flex-direction:column;min-height:0}
.book-view:is(:fullscreen,.is-expanded){position:fixed;z-index:1000;inset:0;width:100vw;height:100dvh;overflow:hidden;background:#142337}
.book-view:is(:fullscreen,.is-expanded) .book-wrap{display:flex;flex:1;align-items:stretch;justify-content:center;min-height:0;min-width:0;overflow:hidden;padding:10px 12px}
.book-view:is(:fullscreen,.is-expanded) .book-stage{flex:1;width:100%;max-width:none;height:auto;max-height:none;min-height:0}
.book-view:is(:fullscreen,.is-expanded) .book{padding-block:10px;border-radius:8px}
.book-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px max(20px,calc((100vw - 1100px)/2));border-bottom:1px solid #ffffff22}
.book-header strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-header a,.book-ad a{color:#d6ff6f;font-weight:700;text-decoration:none;white-space:nowrap}
.book-header a:hover,.book-ad a:hover{text-decoration:underline}
.book-wrap{flex:1;display:grid;place-items:center;min-height:0;padding:22px}
.book-stage{position:relative;width:min(100%,1050px);height:min(72vh,720px);min-height:280px}
.book{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;padding:28px 54px;border:1px solid #5c7186;border-radius:18px;background:radial-gradient(circle at 50% 38%,#2d4055,#101a28 76%);box-shadow:inset 0 0 0 8px #ffffff08,inset 0 18px 40px #0d192b66,0 24px 65px #050c1688;cursor:zoom-in;perspective:1200px}
.book-spread{position:relative;display:flex;align-items:center;justify-content:center;width:var(--fit-width,100%);height:var(--fit-height,100%);min-width:0;min-height:0;direction:ltr;filter:drop-shadow(0 15px 13px #07101c99)}
.book-spread img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;background:#f7f3eb;border:1px solid #cfc9bc;box-shadow:inset 0 0 0 1px #ffffff88,0 6px 18px #07101c55;backface-visibility:hidden}
.book-spread img[hidden]{display:none}
.book-spread.double{gap:0}
.book-spread.double img{width:50%}
.book-spread.double::after{content:"";position:absolute;z-index:1;inset:0 auto 0 50%;width:12px;transform:translateX(-50%);pointer-events:none;background:linear-gradient(90deg,#17202c44,#ffffffe0 46%,#17202c55);mix-blend-mode:multiply}
.book-edge{position:absolute;z-index:2;top:50%;transform:translateY(-50%);transition:background .2s,border-color .2s}
.book-spread::before{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent 32%,#0c1b2d22 46%,#ffffff55 50%,#0c1b2d26 54%,transparent 68%);background-size:240% 100%}
.book.turn-next .book-spread::before{animation:page-light-next .34s ease-out both}
.book.turn-prev .book-spread::before{animation:page-light-prev .34s ease-out both}
@keyframes page-light-next{0%{opacity:0;background-position:100% 0}24%{opacity:.85}80%{opacity:.65}100%{opacity:0;background-position:0 0}}
@keyframes page-light-prev{0%{opacity:0;background-position:0 0}24%{opacity:.85}80%{opacity:.65}100%{opacity:0;background-position:100% 0}}
.book.is-zoomed{display:block;overflow:auto;padding:0;cursor:zoom-out}
.book.is-zoomed .book-spread{width:200%;height:200%;padding:20px}
.book-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;padding:0 20px 20px}
.book-nav,.book-mode{display:flex;align-items:center;gap:7px}
.book-nav{direction:ltr}
.book-controls button,.book-controls select{min-height:44px;border:1px solid #61728a;background:#253b55;color:#fff;border-radius:10px;font:inherit;font-weight:700}
.book-controls button{min-width:44px;padding:8px 13px;cursor:pointer}
.book-controls button:hover:not(:disabled){background:#3a5779}
.book-controls button:disabled{opacity:.4;cursor:default}
.book-controls button.selected{background:#d6ff6f;color:#182333;border-color:#d6ff6f}
.book-controls select{min-width:66px;padding:8px;text-align:center;cursor:pointer}
.book-controls span{min-width:80px;text-align:center;color:#d7e1ed;font-variant-numeric:tabular-nums}
.book-language{display:flex;align-items:center;gap:8px;color:#d7e1ed;font-size:13px;font-weight:700}
.book-language #book-language-label{min-width:0}
.book-language select{min-width:120px;text-align:left}
.book-language select:focus-visible,.book-controls button:focus-visible,.book-controls select:focus-visible{outline:3px solid #d6ff6f;outline-offset:2px}
.book-ad{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 20px;margin:0 auto 16px;background:#213650;border:1px solid #3b5877;border-radius:10px;color:#c7d7e8;font-size:12px}
.book-ad small{font-size:9px;letter-spacing:1.2px;color:#91a5bc}
@media(max-width:650px){.book-wrap{padding:10px}.book-stage{height:min(66vh,610px);min-height:260px}.book{padding-block:8px}.book-controls{gap:8px;padding:0 10px 14px}.book-controls button{min-height:44px;padding:7px 10px}.book-ad{margin:0 10px 8px;flex-wrap:wrap;gap:7px;padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.book.turn-next .book-spread::before,.book.turn-prev .book-spread::before{animation:none}.book-edge{transition:none}}

/* A small, readable release sticker remains visible in embedded/fullscreen views. */
.viewer-alpha-badge{position:fixed;inset-inline-end:12px;inset-block-end:12px;z-index:1000;display:inline-flex;align-items:center;padding:4px 8px;border:1px solid #b57b15;border-radius:5px;background:#ffdd8b;color:#182333;font:800 11px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.4px;pointer-events:none;box-shadow:0 1px 4px #0002}

/* The publication has no surrounding frame. */
.book,body[data-book-theme] .book{border:0;border-radius:0;box-shadow:none;background:transparent}.book-spread img{border:0}.book-view:is(:fullscreen,.is-expanded) .book{border-radius:0}

/* Editorial reader: the pages remain unframed, with quiet themed lighting. */
body[data-book-theme]{background:radial-gradient(ellipse at 50% 32%,color-mix(in srgb,var(--book-glow) 48%,var(--book-bg)),var(--book-bg) 72%)}
.book-header{min-height:76px;padding:18px clamp(20px,4vw,64px);border-bottom:1px solid color-mix(in srgb,var(--book-text,#fff) 9%,transparent);background:color-mix(in srgb,var(--book-bg,#142337) 80%,transparent)}
.book-header strong{font-size:clamp(15px,1.5vw,19px);font-weight:600;letter-spacing:-.025em;line-height:1.5}
.book-header a.book-brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--book-text,#fff);font-size:13px;font-weight:600;letter-spacing:.015em;text-decoration:none}
.book-brand-logo{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ee592f;color:#fff;font:800 25px/1 Georgia,serif;letter-spacing:-2px;padding-inline-end:2px;box-shadow:0 4px 14px #0002}
.book-header a.book-brand:hover{color:var(--book-accent,#d6ff6f)}
.book-header a.book-brand:focus-visible{outline:3px solid var(--book-accent,#d6ff6f);outline-offset:6px;border-radius:8px}
.book-wrap{padding:28px clamp(12px,3vw,48px) 20px;min-width:0;grid-template-columns:minmax(0,1fr)}
.book-stage{width:min(100%,1280px);height:min(74vh,860px);min-width:0}
.book-spread{filter:drop-shadow(0 20px 28px #0005)}
.book-spread img{box-shadow:0 1px 2px #0002}
.book-controls{align-self:center;gap:14px;margin:0 16px 24px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--book-text,#fff) 13%,transparent);border-radius:18px;background:color-mix(in srgb,var(--book-bg,#142337) 85%,var(--book-surface,#253b55));box-shadow:0 8px 30px #0002}
.book-nav{gap:8px}
.book-controls #book-position{min-width:68px;font-size:13px;font-weight:500;letter-spacing:.025em}
body[data-book-theme] .book-controls select{border-color:color-mix(in srgb,var(--book-text) 20%,transparent);font-size:13px;font-weight:500}
body[data-book-theme] .book-controls #book-fullscreen{background:var(--book-accent);color:var(--book-accent-text);border-color:var(--book-accent);font-size:13px}
body[data-book-theme] .book-controls #book-fullscreen:hover{background:color-mix(in srgb,var(--book-accent) 88%,white)}
body[data-book-theme] .book-view button.page-turn-button{--page-turn-bg:var(--book-surface);--page-turn-border:color-mix(in srgb,var(--book-text) 20%,transparent);--page-turn-color:var(--book-text);--page-turn-hover:var(--book-hover);border-radius:50%}
body[data-book-theme] .book-view button.page-turn-button:disabled{background:var(--book-surface);border-color:transparent;color:var(--book-muted);opacity:.35}
.book-view:is(:fullscreen,.is-expanded) .book-controls{margin-bottom:max(12px,env(safe-area-inset-bottom));flex-shrink:0}
@media(max-width:650px){
 .book-header{min-height:64px;padding:12px 16px;gap:12px}.book-header strong{flex:1;min-width:0;font-size:14px}
 .book-header a.book-brand{gap:7px;font-size:11px}.book-brand-logo{width:28px;height:28px;border-radius:8px;font-size:22px}
 .book-wrap{padding:16px 8px}.book-stage{height:min(66vh,640px);min-height:220px}
 .book-controls{gap:8px;margin:0 8px 16px;padding:8px;border-radius:16px;width:calc(100% - 16px);max-width:410px}
 .book-nav{justify-content:center;width:100%;gap:12px}.book-controls #book-position{min-width:70px}
 .book-controls #book-fullscreen,.book-language{flex:1}.book-language select{width:100%;min-width:0}
}
@media(max-height:500px) and (min-width:651px){.book-header{min-height:50px;padding-block:8px}.book-stage{height:65vh;min-height:140px}.book-wrap{padding-block:8px}.book-controls{margin-bottom:8px;padding-block:4px}}

/* Keep reader tools together in a shallow header, including fullscreen. */
.book-header{min-height:56px;padding:6px clamp(12px,2vw,28px);gap:14px;flex-shrink:0}
.book-header strong{flex:1;min-width:0;font-size:15px}
.book-header a.book-brand{order:3}.book-brand-logo{width:30px;height:30px;border-radius:9px;font-size:23px}
.book-header-actions{display:flex;align-items:center;gap:8px;flex:none}
.book-header .book-language{flex:none}
.book-header select,.book-header button{height:40px;min-height:40px;border:1px solid color-mix(in srgb,var(--book-text) 18%,transparent);border-radius:10px;background:var(--book-surface);color:var(--book-text);font:500 12px/1.2 Inter,system-ui,sans-serif}
.book-header select{min-width:122px;width:auto;padding:8px 34px 8px 10px;cursor:pointer}
.book-header button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;cursor:pointer}
.book-header button[hidden]{display:none}.book-header button:disabled{opacity:.5;cursor:wait}
.book-header button:hover:not(:disabled){background:var(--book-hover)}
.book-header button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.book-header :is(button,select):focus-visible{outline:3px solid var(--book-accent);outline-offset:2px}
.book-share-status{align-self:center;font-size:12px;color:var(--book-muted);padding:0 12px}.book-share-status:not(:empty){padding-block:6px}
#book-share-link{align-self:center;width:min(90%,480px);margin:6px 12px;padding:10px;border:1px solid var(--book-border);border-radius:8px;background:var(--book-surface);color:var(--book-text)}
body[data-book-embedded] .book-header :is(strong,.book-brand){display:none}
body[data-book-embedded] .book-header{justify-content:flex-end;border-bottom:0}
@media(max-width:650px){.book-header{min-height:52px;padding:6px 10px;gap:8px}.book-header strong{font-size:12px}.book-header-actions{gap:6px}.book-header select{min-width:104px;padding-inline-start:8px}.book-header #book-share{width:40px;padding:0}.book-header #book-share-label{display:none}.book-header a.book-brand{flex:none}.book-brand-logo{width:26px;height:26px;font-size:21px}.book-controls #book-fullscreen{flex:none}}
