:root {
  color-scheme: dark;
  --bg: #070c12;
  --panel: rgba(13, 20, 27, .78);
  --line: rgba(255,255,255,.14);
  --text: #f7f3ea;
  --muted: rgba(247,243,234,.62);
  --accent: #c4a66e;
  --chapter: #a8b59b;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR","Apple SD Gothic Neo",sans-serif;overflow:hidden}
button,a,input{font:inherit}
button{color:inherit}
body{position:relative;min-height:100svh;background:radial-gradient(circle at 50% 42%,rgba(70,84,94,.18),transparent 31%),linear-gradient(180deg,#0a1119,#05080d 72%)}
.reader-stars{position:fixed;inset:0;pointer-events:none;opacity:.75;background-image:radial-gradient(circle,rgba(255,255,255,.75) 0 1px,transparent 1.3px),radial-gradient(circle,rgba(205,185,141,.58) 0 1px,transparent 1.4px),radial-gradient(circle,rgba(162,190,194,.45) 0 1px,transparent 1.3px);background-size:89px 89px,137px 137px,211px 211px;background-position:9px 15px,52px 61px,101px 23px;animation:starBreath 9s ease-in-out infinite alternate}
@keyframes starBreath{to{opacity:.46;transform:scale(1.01)}}
.reader-orbit{position:fixed;border:1px solid rgba(255,255,255,.07);border-radius:50%;pointer-events:none;transform:rotate(-18deg)}
.orbit-one{width:80vw;height:42vw;left:10vw;top:25vh}.orbit-two{width:56vw;height:29vw;left:22vw;top:31vh;border-color:rgba(196,166,110,.09)}.orbit-three{width:108vw;height:58vw;left:-4vw;top:17vh;border-color:rgba(152,180,177,.06)}
.reader-topbar,.reader-bottombar{position:fixed;z-index:30;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:max(16px,env(safe-area-inset-top)) clamp(18px,3vw,44px) 16px;background:linear-gradient(180deg,rgba(5,9,14,.92),rgba(5,9,14,.24),transparent);transition:opacity .25s ease,transform .25s ease}
.reader-topbar{top:0}.reader-bottombar{bottom:0;padding:16px clamp(18px,3vw,44px) max(16px,env(safe-area-inset-bottom));background:linear-gradient(0deg,rgba(5,9,14,.94),rgba(5,9,14,.3),transparent)}
.reader-brand{display:flex;align-items:center;gap:.7rem;color:inherit;text-decoration:none}.reader-brand-star{color:var(--accent);font-size:1.2rem}.reader-brand strong,.reader-brand small{display:block}.reader-brand strong{font-size:.76rem;letter-spacing:.12em}.reader-brand small{margin-top:.16rem;font-size:.54rem;letter-spacing:.16em;color:var(--muted)}
.reader-top-actions{display:flex;gap:.45rem}.quiet-button,.back-library,.reader-home-return{min-height:38px;padding:0 .75rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:rgba(13,20,27,.58);text-decoration:none;cursor:pointer;backdrop-filter:blur(12px)}.quiet-button:hover,.quiet-button:focus-visible,.back-library:hover,.reader-home-return:hover{color:var(--text);border-color:rgba(255,255,255,.3)}
.reader-shell{position:relative;z-index:3;width:100%;height:100svh;display:grid;place-items:center;padding:74px 4vw 84px}
.cover-gate{width:min(1180px,100%);display:grid;grid-template-columns:minmax(300px,.82fr) minmax(340px,.7fr);align-items:center;gap:clamp(2rem,7vw,7rem)}
.cover-copy{max-width:650px}.reader-kicker{margin:0 0 1.2rem;color:var(--accent);font-size:.65rem;font-weight:800;letter-spacing:.18em}.cover-copy h1{margin:0;font-size:clamp(2.8rem,6vw,6.6rem);line-height:1.05;letter-spacing:-.045em}.cover-copy>p:not(.reader-kicker){margin:1rem 0;color:var(--muted);font-size:clamp(1rem,1.5vw,1.3rem)}.cover-copy blockquote{margin:2.4rem 0 0;padding-top:1.3rem;border-top:1px solid var(--line);font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.4rem,2.2vw,2.3rem);font-weight:400;color:#e5d7b8}.cover-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:2rem}.open-book-button,.continue-button{min-height:52px;padding:0 1.25rem;border-radius:999px;border:1px solid rgba(196,166,110,.42);cursor:pointer}.open-book-button{color:#111820;background:#d4bb87}.continue-button{color:var(--text);background:transparent}
.cover-stage{position:relative;display:grid;place-items:center}.cover-halo{position:absolute;width:120%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(213,191,143,.25),transparent 62%);filter:blur(10px)}.cover-stage img{position:relative;z-index:2;width:min(400px,70vw);max-height:70vh;object-fit:contain;border-radius:4px;box-shadow:0 38px 100px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.14);transform:rotate(1.2deg);animation:bookFloat 6s ease-in-out infinite alternate}@keyframes bookFloat{to{transform:rotate(-.4deg) translateY(-8px)}}.cover-edition{position:absolute;z-index:4;right:-1rem;bottom:10%;padding:.55rem .7rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:rgba(7,12,18,.72);font-size:.55rem;letter-spacing:.12em;backdrop-filter:blur(10px)}
.reading-stage{position:relative;width:100%;height:100%;display:grid;grid-template-columns:62px minmax(0,1fr) 62px;align-items:center}
.book-spread{position:relative;display:flex;justify-content:center;align-items:center;gap:0;min-width:0;height:100%}.reader-page{position:relative;margin:0;display:grid;place-items:center;min-width:0;height:min(78vh,calc(100svh - 170px));aspect-ratio:4/5;filter:drop-shadow(0 28px 50px rgba(0,0,0,.38))}.reader-page img{display:block;width:100%;height:100%;object-fit:contain;background:#f7f3ea}.page-left img{border-radius:5px 0 0 5px}.page-right img{border-radius:0 5px 5px 0}.reader-page figcaption{position:absolute;bottom:-24px;color:var(--muted);font-size:.62rem}.book-gutter{position:relative;z-index:4;width:18px;height:min(78vh,calc(100svh - 170px));margin:0 -9px;background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(255,255,255,.08) 46%,rgba(0,0,0,.2));filter:blur(.8px);pointer-events:none}
.edge-nav{width:54px;height:80px;border:0;border-radius:999px;color:rgba(255,255,255,.54);background:transparent;cursor:pointer;font-size:1.4rem}.edge-nav:hover,.edge-nav:focus-visible{color:#fff;background:rgba(255,255,255,.06)}.edge-nav:disabled{opacity:.15;cursor:default}
.reader-progress-wrap{flex:1;max-width:720px}.reader-progress-wrap input{width:100%;accent-color:var(--accent)}.reader-progress-meta{display:flex;justify-content:space-between;gap:1rem;margin-top:.25rem;color:var(--muted);font-size:.65rem}.reader-progress-meta strong{color:var(--text)}
.back-library{cursor:pointer}.reader-home-return{display:inline-flex;align-items:center;font-size:.68rem;white-space:nowrap}
.toc-drawer{position:fixed;z-index:50;top:0;right:0;width:min(430px,92vw);height:100svh;padding:30px;transform:translateX(105%);transition:transform .3s ease;background:rgba(11,18,24,.97);border-left:1px solid var(--line);box-shadow:-30px 0 80px rgba(0,0,0,.45);overflow:auto}.toc-drawer.open{transform:none}.toc-head{display:flex;justify-content:space-between;align-items:flex-start}.toc-head small{color:var(--accent);letter-spacing:.16em}.toc-head h2{margin:.4rem 0 1.5rem;font-size:2rem}.toc-head button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:transparent;font-size:1.5rem;cursor:pointer}.toc-drawer nav{display:grid;gap:.45rem}.toc-drawer nav button{display:grid;grid-template-columns:42px 1fr auto;gap:.8rem;align-items:center;width:100%;padding:1rem;border:1px solid transparent;border-radius:16px;text-align:left;color:var(--muted);background:rgba(255,255,255,.025);cursor:pointer}.toc-drawer nav button:hover,.toc-drawer nav button.current{color:var(--text);border-color:var(--line);background:rgba(255,255,255,.055)}.toc-drawer nav b{color:var(--accent);font-size:.7rem}.toc-drawer nav span{line-height:1.4}.toc-drawer nav small{font-size:.62rem}.bookmark-card{margin-top:2rem;padding:1rem;border:1px solid rgba(196,166,110,.2);border-radius:16px;background:rgba(196,166,110,.06)}.bookmark-card small{display:block;margin-bottom:.55rem;color:var(--accent);letter-spacing:.14em}.bookmark-card button{border:0;color:var(--text);background:transparent;cursor:pointer;padding:0}.drawer-scrim{position:fixed;z-index:45;inset:0;background:rgba(0,0,0,.5)}
.reader-toast{position:fixed;z-index:70;left:50%;bottom:105px;transform:translate(-50%,20px);padding:.65rem .9rem;border:1px solid var(--line);border-radius:999px;color:var(--text);background:rgba(10,17,24,.92);opacity:0;pointer-events:none;transition:.2s}.reader-toast.show{opacity:1;transform:translate(-50%,0)}
body.ui-hidden .reader-topbar{opacity:0;transform:translateY(-100%)}body.ui-hidden .reader-bottombar{opacity:0;transform:translateY(100%)}
body.chapter-1{--chapter:#aeb89b}body.chapter-2{--chapter:#c8aa72}body.chapter-3{--chapter:#91a6b5}body.chapter-4{--chapter:#a26e5f}.book-spread::before{content:"";position:absolute;width:92%;height:65%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--chapter) 18%,transparent),transparent 67%);filter:blur(35px);transition:background 1s ease}
@media(max-width:900px){
  .reader-top-actions .quiet-button:nth-child(4){display:none}.cover-gate{grid-template-columns:1fr;text-align:center;gap:1.4rem}.cover-copy{margin:auto}.cover-copy h1{font-size:clamp(2.5rem,11vw,5rem)}.cover-copy blockquote{margin-top:1.3rem}.cover-actions{justify-content:center}.cover-stage img{width:min(250px,52vw);max-height:38vh}.cover-edition{right:8%;bottom:4%}
  .reading-stage{grid-template-columns:38px minmax(0,1fr) 38px}.reader-page{height:min(73vh,calc(100svh - 160px));aspect-ratio:auto;width:min(84vw,560px)}.page-left,.book-gutter{display:none!important}.page-right img{border-radius:5px}.edge-nav{width:36px;height:68px}.reader-bottombar{gap:.5rem}.back-library{font-size:0;width:40px;padding:0}.back-library::after{content:"←";font-size:1rem}.reader-home-return{display:none}.reader-progress-meta{font-size:.58rem}.reader-brand small{display:none}
}
@media(max-width:560px){.reader-topbar{padding-left:14px;padding-right:14px}.reader-top-actions{gap:.3rem}.quiet-button{padding:0 .6rem;font-size:.72rem}.reader-brand strong{font-size:.68rem}.reader-shell{padding-left:0;padding-right:0}.reader-page{width:min(86vw,520px);height:min(74vh,calc(100svh - 152px))}.reader-bottombar{padding-left:14px;padding-right:14px}.cover-copy>p:not(.reader-kicker){font-size:.94rem}.cover-copy blockquote{font-size:1.3rem}.open-book-button,.continue-button{min-height:48px}.toc-drawer{padding:24px 18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* =========================================================
   QUIET ORBIT READER · SPACE & ACCESS FIX v1.9.1
   Less visual pressure. Clear entry. Modern Korean sans-serif.
   ========================================================= */
[hidden] {
  display: none !important;
}

html,
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard Variable",
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
}

body.cover-mode {
  overflow-x: hidden;
  overflow-y: auto;
}

body.book-open {
  overflow: hidden;
}

body.cover-mode .reader-shell {
  height: auto;
  min-height: 100svh;
  padding:
    max(92px, calc(env(safe-area-inset-top) + 78px))
    clamp(24px, 5vw, 78px)
    max(104px, calc(env(safe-area-inset-bottom) + 88px));
}

.cover-gate {
  width: min(1060px, 100%);
  grid-template-columns: minmax(0, .96fr) minmax(260px, .62fr);
  gap: clamp(3.25rem, 7vw, 6.5rem);
  align-items: center;
}

.cover-copy {
  max-width: 570px;
}

.reader-kicker {
  margin-bottom: 1rem;
  font-size: .59rem;
  letter-spacing: .17em;
}

.cover-copy h1 {
  max-width: 11.5ch;
  margin: 0;
  font-size: clamp(2.45rem, 4.2vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.cover-copy h1 span {
  display: inline;
}

.cover-copy > p:not(.reader-kicker) {
  max-width: 460px;
  margin: 1rem 0 0;
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.cover-copy blockquote {
  max-width: 480px;
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
}

.cover-actions {
  margin-top: 1.55rem;
}

.open-book-button,
.continue-button {
  min-height: 48px;
  padding: 0 1.15rem;
  font-size: .86rem;
}

.cover-stage {
  min-width: 0;
}

.cover-stage img {
  width: min(315px, 54vw);
  max-height: 58vh;
  animation-duration: 8s;
  box-shadow:
    0 28px 74px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.12);
}

.cover-edition {
  right: -1.25rem;
  bottom: 8%;
  font-size: .49rem;
}

body.book-open .reader-shell {
  height: 100svh;
  min-height: 0;
  padding: 78px 4vw 92px;
}

.reader-page {
  height: min(70vh, calc(100svh - 190px));
}

.book-gutter {
  height: min(70vh, calc(100svh - 190px));
}

.book-spread::before {
  width: 78%;
  height: 55%;
  opacity: .72;
}

@media (max-width: 900px) {
  body.cover-mode .reader-shell {
    padding-top: 90px;
    padding-bottom: 110px;
  }

  .cover-gate {
    grid-template-columns: 1fr;
    gap: 2.35rem;
    text-align: center;
  }

  .cover-copy {
    max-width: 560px;
    margin: 0 auto;
  }

  .cover-copy h1 {
    max-width: 12ch;
    margin-inline: auto;
    font-size: clamp(2.3rem, 8.6vw, 3.65rem);
  }

  .cover-copy > p:not(.reader-kicker),
  .cover-copy blockquote {
    margin-inline: auto;
  }

  .cover-stage img {
    width: min(235px, 46vw);
    max-height: 34vh;
  }

  .cover-edition {
    right: 13%;
    bottom: 3%;
  }

  body.book-open .reader-shell {
    padding-top: 72px;
    padding-bottom: 86px;
  }

  .reader-page {
    width: min(80vw, 520px);
    height: min(69vh, calc(100svh - 170px));
  }
}

@media (max-width: 560px) {
  body.cover-mode .reader-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .reader-kicker {
    font-size: .52rem;
  }

  .cover-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.1;
  }

  .cover-copy > p:not(.reader-kicker) {
    font-size: .88rem;
  }

  .cover-copy blockquote {
    font-size: 1.08rem;
  }

  .cover-stage img {
    width: min(205px, 50vw);
    max-height: 31vh;
  }

  .cover-edition {
    display: none;
  }
}


/* =========================================================
   QUIET ORBIT READER · EDITION REFINEMENT v1.9.2
   ========================================================= */
.cover-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.15rem, 3.5vw, 3.55rem);
  font-weight: 590;
  line-height: 1.13;
}

.cover-stage img {
  width: min(285px, 48vw);
  max-height: 54vh;
}

.cover-edition {
  right: -1rem;
  padding: .5rem .65rem;
  font-size: .45rem;
  letter-spacing: .14em;
}

@media (max-width: 900px) {
  .cover-copy h1 {
    font-size: clamp(2.05rem, 7.4vw, 3.15rem);
  }

  .cover-stage img {
    width: min(215px, 43vw);
  }
}

@media (max-width: 560px) {
  .cover-copy h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.65rem);
  }
}




/* =========================================================
   QUIET ORBIT READER · LIVING CONSTELLATION v1.9.3
   Real page ratio + chapter-specific constellation states.
   ========================================================= */
.reader-page {
  aspect-ratio: 245 / 306;
}

.reader-page img {
  aspect-ratio: 245 / 306;
  background: transparent;
}

.reader-orbit {
  z-index: 0;
  transition:
    transform 1.35s cubic-bezier(.22,.7,.2,1),
    border-color 1.1s ease,
    opacity 1.1s ease;
}

.chapter-constellations {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--chapter);
  overflow: visible;
}

.chapter-constellation {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(.985);
  transition:
    opacity 1.15s ease,
    transform 1.35s cubic-bezier(.22,.7,.2,1);
}

.chapter-constellation path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 9;
  vector-effect: non-scaling-stroke;
  opacity: .32;
}

.chapter-constellation circle {
  fill: currentColor;
  opacity: .82;
  filter: drop-shadow(0 0 5px currentColor);
}

body.chapter-0 .constellation-0,
body.chapter-1 .constellation-1,
body.chapter-2 .constellation-2,
body.chapter-3 .constellation-3,
body.chapter-4 .constellation-4 {
  opacity: .84;
  transform: scale(1);
}

body.chapter-0 { --chapter: #a8b59b; }
body.chapter-1 { --chapter: #aeb89b; }
body.chapter-2 { --chapter: #c8aa72; }
body.chapter-3 { --chapter: #91a6b5; }
body.chapter-4 { --chapter: #a26e5f; }

body.chapter-0 .orbit-one { transform: rotate(-18deg) scale(1); }
body.chapter-0 .orbit-two { transform: rotate(-18deg) scale(1); }
body.chapter-0 .orbit-three { transform: rotate(-18deg) scale(1); }

body.chapter-1 .orbit-one { transform: rotate(-7deg) scale(.93); }
body.chapter-1 .orbit-two { transform: rotate(13deg) scale(1.08); }
body.chapter-1 .orbit-three { transform: rotate(-29deg) scale(.96); }

body.chapter-2 .orbit-one { transform: rotate(9deg) scale(1.08); }
body.chapter-2 .orbit-two { transform: rotate(-30deg) scale(.9); }
body.chapter-2 .orbit-three { transform: rotate(-4deg) scale(1.04); }

body.chapter-3 .orbit-one { transform: rotate(-32deg) scale(.95); }
body.chapter-3 .orbit-two { transform: rotate(24deg) scale(1.04); }
body.chapter-3 .orbit-three { transform: rotate(12deg) scale(.92); }

body.chapter-4 .orbit-one { transform: rotate(17deg) scale(1.02); }
body.chapter-4 .orbit-two { transform: rotate(-8deg) scale(.96); }
body.chapter-4 .orbit-three { transform: rotate(31deg) scale(1.08); }

.book-spread::before {
  transition:
    background 1.15s ease,
    opacity 1.15s ease,
    transform 1.15s ease;
}

@media (max-width: 900px) {
  body.book-open .reader-shell {
    padding:
      max(68px, calc(env(safe-area-inset-top) + 58px))
      0
      max(84px, calc(env(safe-area-inset-bottom) + 72px));
  }

  .reading-stage {
    display: block;
    width: 100%;
    height: 100%;
  }

  .book-spread {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
  }

  .reader-page {
    width: min(86vw, calc((100svh - 190px) * .8006536));
    height: auto;
    max-height: none;
    aspect-ratio: 245 / 306;
    filter: drop-shadow(0 22px 44px rgba(0,0,0,.38));
  }

  .reader-page img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 245 / 306;
    object-fit: cover;
    background: transparent;
    border-radius: 6px;
  }

  .edge-nav {
    position: absolute;
    z-index: 12;
    top: 50%;
    width: 42px;
    height: 74px;
    transform: translateY(-50%);
    background: rgba(5,9,14,.22);
    backdrop-filter: blur(7px);
  }

  .edge-prev { left: 2px; }
  .edge-next { right: 2px; }

  .chapter-constellations {
    opacity: .9;
  }

  .chapter-constellation path {
    stroke-width: .9;
    opacity: .42;
  }

  .chapter-constellation circle {
    opacity: .92;
  }

  .book-spread::before {
    width: 72%;
    height: 52%;
    opacity: .52;
  }
}

@media (max-width: 560px) {
  .reader-page {
    width: min(88vw, calc((100svh - 178px) * .8006536));
  }

  .edge-nav {
    width: 38px;
    height: 66px;
  }

  .chapter-constellations {
    opacity: 1;
  }

  .chapter-constellation path {
    opacity: .46;
  }
}




/* =========================================================
   QUIET ORBIT READER · MOBILE CENTERING FIX v1.9.4
   The book remains centered while the constellation surrounds it.
   ========================================================= */
@media (max-width: 900px) {
  body.book-open .reader-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    padding:
      max(68px, calc(env(safe-area-inset-top) + 58px))
      0
      max(86px, calc(env(safe-area-inset-bottom) + 74px));
    overflow: hidden;
  }

  .reading-stage {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center;
    width: 100vw;
    height: 100%;
    min-width: 0;
    overflow: visible;
  }

  .book-spread {
    position: relative;
    grid-column: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    height: 100%;
    min-width: 0;
    margin: 0 auto !important;
    transform: none !important;
  }

  .page-left,
  .book-gutter {
    display: none !important;
  }

  .page-right {
    position: relative;
    flex: 0 0 auto;
    width: min(
      78vw,
      calc((100svh - 188px) * .8006536)
    ) !important;
    height: auto !important;
    max-width: 520px;
    max-height: none !important;
    margin: 0 auto !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: 245 / 306;
  }

  .page-right img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: none !important;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
  }

  .page-right figcaption {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .edge-nav {
    position: fixed !important;
    z-index: 35;
    top: 50%;
    width: 42px;
    height: 72px;
    margin: 0;
    transform: translateY(-50%) !important;
  }

  .edge-prev {
    left: max(4px, env(safe-area-inset-left)) !important;
  }

  .edge-next {
    right: max(4px, env(safe-area-inset-right)) !important;
    left: auto !important;
  }
}

@media (max-width: 560px) {
  .page-right {
    width: min(
      76vw,
      calc((100svh - 176px) * .8006536)
    ) !important;
  }

  .edge-nav {
    width: 38px;
    height: 66px;
  }
}

@media (max-width: 390px) {
  .page-right {
    width: min(
      74vw,
      calc((100svh - 172px) * .8006536)
    ) !important;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .page-right {
    width: auto !important;
    height: min(66svh, 430px) !important;
    aspect-ratio: 245 / 306;
  }

  .page-right img {
    width: auto !important;
    height: 100% !important;
  }
}




/* =========================================================
   QUIET ORBIT READER · FOCUS READING MODE v1.9.5
   Internal zoom keeps page navigation alive on iPhone.
   ========================================================= */
.focus-zoom-button {
  position: fixed;
  z-index: 44;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 96px));
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: rgba(247,243,234,.82);
  background: rgba(10,17,25,.78);
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.focus-zoom-button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  letter-spacing: -.03em;
}

.focus-zoom-button.active {
  color: #111820;
  border-color: rgba(212,187,135,.64);
  background: #d4bb87;
  transform: scale(1.04);
}

.focus-zoom-status {
  position: fixed;
  z-index: 43;
  left: 50%;
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 96px));
  display: grid;
  gap: .18rem;
  min-width: 190px;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  color: rgba(247,243,234,.84);
  background: rgba(8,13,19,.84);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,8px);
  transition: opacity .2s ease, transform .2s ease;
}

.focus-zoom-status.show {
  opacity: 1;
  transform: translate(-50%,0);
}

.focus-zoom-status span {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.focus-zoom-status small {
  color: rgba(247,243,234,.54);
  font-size: .58rem;
}

.page-right {
  --focus-scale: 1;
  --focus-pan-x: 0px;
  --focus-pan-y: 0px;
}

@media (max-width: 900px) {
  .focus-zoom-button {
    display: grid;
  }

  .book-spread {
    touch-action: none;
    overflow: visible;
  }

  .page-right {
    transform:
      translate3d(var(--focus-pan-x),var(--focus-pan-y),0)
      scale(var(--focus-scale)) !important;
    transform-origin: top center;
    transition: transform .22s cubic-bezier(.22,.7,.2,1);
    will-change: transform;
  }

  body.focus-reading .page-right {
    transition: none;
    z-index: 20;
  }

  body.focus-reading .book-spread {
    align-items: flex-start !important;
    padding-top: 8px;
  }

  body.focus-reading .page-right figcaption {
    opacity: 0;
  }

  body.focus-reading .chapter-constellations,
  body.focus-reading .reader-stars,
  body.focus-reading .reader-orbit {
    opacity: .38;
    transition: opacity .3s ease;
  }

  body.focus-reading .reader-topbar,
  body.focus-reading .reader-bottombar {
    opacity: .42;
  }

  body.focus-reading .reader-topbar:hover,
  body.focus-reading .reader-bottombar:hover {
    opacity: 1;
  }

  body.focus-reading.ui-hidden .reader-topbar,
  body.focus-reading.ui-hidden .reader-bottombar {
    opacity: 0;
  }

  body.focus-reading .edge-nav {
    opacity: .94;
    background: rgba(5,9,14,.62);
    box-shadow: 0 10px 30px rgba(0,0,0,.26);
  }
}

@media (max-width: 560px) {
  .focus-zoom-button {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 90px));
    width: 46px;
    height: 46px;
  }

  .focus-zoom-status {
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 90px));
  }
}


/* =========================================================
   READER RETURN ROUTE · BILINGUAL UI v1.10.4
   ========================================================= */
.reader-library-link,
.reader-home-return {
  display:grid!important;
  gap:.05rem;
  align-items:center;
  justify-items:center;
  text-decoration:none;
}

.reader-library-link strong,
.reader-home-return strong {
  font-size:.58rem;
  font-weight:700;
}

.reader-library-link small,
.reader-home-return small {
  color:rgba(255,255,255,.35);
  font-size:.4rem;
  letter-spacing:.04em;
}

.reader-home-return {
  min-height:38px;
  padding:0 .75rem;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(13,20,27,.58);
  backdrop-filter:blur(12px);
  white-space:nowrap;
}

#coverTitle {
  display:grid;
  gap:.28rem;
}

#coverTitle small,
#coverSubtitle small {
  display:block;
  margin-top:.22rem;
  color:rgba(255,255,255,.38);
  font-size:.45em;
  font-weight:430;
  line-height:1.45;
  letter-spacing:0;
}

#coverSubtitle small {
  font-size:.72em;
}

@media(max-width:760px){
  .reader-library-link {
    display:none!important;
  }

  .reader-home-return {
    width:42px;
    padding:0;
    font-size:0;
  }

  .reader-home-return::after {
    content:"⌂";
    font-size:1rem;
  }

  .reader-home-return>* {
    display:none;
  }

  .reader-top-actions .quiet-button {
    padding:0 .58rem;
  }
}


/* =========================================================
   GLOBAL READER LANGUAGE · v1.10.5
   Interface follows the Constellation Home setting.
   Book pages retain their approved Korean / Vietnamese editions.
   ========================================================= */
.reader-language-toggle {
  min-width:48px;
  font-weight:760;
}

#coverTitle,
#coverSubtitle {
  display:block;
}

#coverTitle small,
#coverSubtitle small {
  display:none!important;
}

html[data-library-lang="en"] #coverTitle,
html[data-library-lang="en"] #coverSubtitle {
  word-break:normal;
}

@media(max-width:760px) {
  .reader-language-toggle {
    display:inline-flex!important;
    min-width:42px;
    padding:0 .5rem!important;
  }
}


/* =========================================================
   THREE EDITION READER SELECTOR · v1.10.6
   ========================================================= */
.sr-only {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.reader-edition-control {
  display:flex;
  align-items:center;
}

.reader-edition-select {
  min-height:38px;
  max-width:145px;
  padding:0 2rem 0 .72rem;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:
    linear-gradient(45deg,transparent 50%,rgba(255,255,255,.46) 50%) calc(100% - 14px) 16px/5px 5px no-repeat,
    linear-gradient(135deg,rgba(255,255,255,.46) 50%,transparent 50%) calc(100% - 9px) 16px/5px 5px no-repeat,
    rgba(13,20,27,.58);
  appearance:none;
  font:inherit;
  font-size:.54rem;
  font-weight:720;
  cursor:pointer;
  backdrop-filter:blur(12px);
}

.reader-edition-select:focus-visible {
  outline:1px solid rgba(194,160,110,.7);
  outline-offset:2px;
}

.reader-edition-select option {
  color:#111820;
  background:#f0ece4;
}

@media(max-width:760px) {
  .reader-edition-select {
    width:76px;
    max-width:76px;
    padding-left:.55rem;
    font-size:.48rem;
  }
}


/* =========================================================
   THREE-LANGUAGE DIRECT SELECTOR · v1.10.26
   ========================================================= */
.skala-language-switcher{
  display:inline-flex!important;
  align-items:center;
  gap:2px;
  min-width:0!important;
  min-height:36px;
  padding:3px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.025)!important;
  cursor:default!important;
}
.skala-language-switcher>button{
  appearance:none;
  border:0;
  border-radius:999px;
  background:transparent;
  color:rgba(245,239,230,.48);
  min-height:30px;
  padding:0 .58rem;
  font:inherit;
  font-size:.56rem;
  font-weight:720;
  letter-spacing:.01em;
  cursor:pointer;
  white-space:nowrap;
}
.skala-language-switcher>button:hover,
.skala-language-switcher>button:focus-visible{
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.055);
  outline:none;
}
.skala-language-switcher>button.is-active{
  color:#fff;
  background:rgba(191,155,101,.16);
  box-shadow:inset 0 0 0 1px rgba(191,155,101,.2);
}
@media(max-width:600px){
  .skala-language-switcher>button{
    min-height:28px;
    padding:0 .42rem;
    font-size:.51rem;
  }
}


html[data-library-lang="vi"] #coverTitle,
html[data-library-lang="vi"] #coverSubtitle{
  word-break:normal;
  overflow-wrap:break-word;
}

.skala-language-switcher .lang-short{display:none}
.skala-language-switcher .lang-full{display:inline}
@media(max-width:760px){
  .skala-language-switcher .lang-full{display:none}
  .skala-language-switcher .lang-short{display:inline}
}
