:root{--pink:#a92559;--ink:#34464e;--muted:#5d727b}*{box-sizing:border-box}body{margin:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:#fdf6ec url('assets/clean-plain-bg.webp?v=4') center/cover fixed;color:var(--ink);font:14px/1.5 'DM Sans',sans-serif}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,#stage:focus-visible{outline:3px solid #ad6518;outline-offset:3px}::selection{background:#f5d7e3}header{display:flex;align-items:center;justify-content:center;position:relative;gap:20px;padding:18px 28px;max-width:1450px;width:100%;margin:auto}header .back{position:absolute;left:28px}@media(max-width:700px){header .back{position:static}}header>div{text-align:center}h1{font:800 clamp(25px,3.3vw,42px)/1.15 'Manrope',sans-serif;letter-spacing:-1px;color:#103b4d;text-shadow:0 2px 10px rgba(255,255,255,.95),0 0 4px #fff;margin:0 0 5px}h1 span{color:#b11653;text-shadow:0 2px 10px rgba(255,255,255,.95),0 0 4px #fff}header p{margin:0;color:#112e3b;font-size:15px;font-weight:800;text-shadow:0 1px 8px rgba(255,255,255,.95),0 0 3px #fff}.pill{padding:10px 18px;border-radius:25px;background:#fff;color:#315e71;font-weight:700;font-size:12.5px;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,.18);transition:background .2s,transform .2s,box-shadow .2s}.pill:hover{background:#fcebf2;transform:translateY(-1px)}.primary{background:var(--pink);color:#fff;min-width:110px}.primary:hover{background:#8b1f49}.back{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#a92559 0%,#7a133c 100%);color:#fff;border:2px solid rgba(255,255,255,.9);box-shadow:0 5px 15px rgba(169,37,89,.45)}.back:hover{background:linear-gradient(135deg,#c22b67 0%,#8f1747 100%);color:#fff;transform:translateY(-2px);box-shadow:0 7px 18px rgba(169,37,89,.6)}main{display:flex;gap:18px;width:calc(100% - 56px);max-width:1394px;margin:0 auto 22px;flex:1;min-height:0}.reading-area{background:#fff;border-radius:24px;padding:16px 22px 12px;box-shadow:0 7px 18px #193a3620;flex:1;min-width:0;display:flex;flex-direction:column}.book-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px}.book-heading strong{font:700 15px 'Manrope',sans-serif}.book-heading span{font-size:11px;color:var(--muted)}#stage{flex:1;min-height:0;overflow:auto;background:#f3f0ea;border-radius:12px;padding:12px;scrollbar-color:#c99aae #f3f0ea;position:relative}#spread{height:100%;display:flex;justify-content:center;align-items:center;margin:auto;width:max-content;min-width:100%;gap:2px}#spread img{display:block;max-width:100%;height:100%;object-fit:contain;box-shadow:0 3px 12px #24393c24;flex-shrink:0;background:white}#spread.double img{max-width:50%;object-fit:contain}#spread.zoomed{min-width:0}#spread.zoomed img{max-width:none}footer{display:flex;align-items:center;justify-content:center;gap:24px;padding:14px 0 8px}#jump{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}input{width:54px;padding:6px;border:1px solid #d8c9ce;border-radius:7px;text-align:center;color:var(--ink);font-variant-numeric:tabular-nums}.small,.tools button{background:#f8edf2;color:#8b254a;border-radius:7px;padding:6px 10px;font-size:12px;font-weight:600}.tools{display:flex;justify-content:center;align-items:center;gap:6px}.tools button:hover,.small:hover{background:#f0d8e2}.divider{width:1px;height:20px;background:#e2d5db;margin:0 5px}aside{width:220px;flex-shrink:0;background:#fff;border-radius:20px;padding:14px;display:flex;flex-direction:column;box-shadow:0 7px 18px #193a3620}.aside-heading{display:flex;align-items:center;justify-content:space-between}h2{font:700 15px 'Manrope',sans-serif}#close-pages{font-size:25px;background:transparent;color:var(--muted)}#thumb-list{overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:5px;scrollbar-color:#c99aae white}#thumb-list button{background:#f6f1f3;border-radius:8px;padding:6px;color:var(--muted);font-size:11px}#thumb-list img{width:100%;aspect-ratio: .74;object-fit:contain;display:block;margin-bottom:4px}#thumb-list button[aria-current=true]{outline:2px solid var(--pink);color:var(--pink);background:#fce9f0}#error{position:sticky;bottom:0;background:white;padding:14px;text-align:center;color:#942344}#error button{color:var(--pink);background:#fce9f0;padding:6px 12px;border-radius:6px}#reader:fullscreen{width:100%;max-width:none;margin:0;padding:12px;background:#deeee5}#reader:fullscreen .reading-area{height:100%}[hidden]{display:none!important}@media(max-width:700px){header{padding:12px 14px;gap:8px;flex-wrap:wrap}header>div{order:-1;width:100%}h1{font-size:27px}header p{font-size:12px}.pill{padding:9px 12px}main{width:calc(100% - 20px);margin-bottom:12px;gap:8px;position:relative}.reading-area{padding:12px 10px 10px;border-radius:18px}.book-heading strong{font-size:13px}.book-heading span{font-size:10px}#stage{padding:6px}footer{gap:10px}.primary{min-width:44px}.primary span{display:none}#jump{gap:5px}.tools{gap:4px;flex-wrap:wrap}.tools button{font-size:11px;padding:6px 8px}aside{position:absolute;inset:0 auto 0 0;width:210px;z-index:3;box-shadow:8px 4px 25px #223d3d30}}@media(prefers-reduced-motion:no-preference){#spread img{animation:page-in .24s ease-out}@keyframes page-in{from{opacity:.65;transform:perspective(1000px) rotateY(-4deg)}to{opacity:1;transform:none}}}
#spread img{animation:none!important;backface-visibility:hidden;will-change:transform} #stage{perspective:1400px}
#spread{display:block;position:relative;width:100%;min-width:0;height:100%;margin:0;gap:0}#spread .book-page{background:white;overflow:hidden;box-shadow:0 3px 10px #27392d25}#spread .book-page img{width:100%;height:100%;max-width:100%;object-fit:contain;box-shadow:none;animation:none!important;will-change:auto;backface-visibility:hidden;-webkit-backface-visibility:hidden}#spread .stf__wrapper{position:relative}#stage{perspective:none;touch-action:pan-y}#spread .book-page:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 1px #3333}
#spread .stf__wrapper{height:100%;width:100%} #spread .stf__block{height:100%;width:100%}
#stage{overflow:hidden}#stage.is-zoomed{overflow:auto}
.reading-area{background:#f6e8d0 url('assets/reading-desk.webp') center/cover no-repeat}#stage{background:transparent;border-radius:12px}.book-heading{color:#4e3523}.book-heading span{color:#624830}#jump{color:#4d3828}.tools button{background:#fff6e9;color:#843b50}footer{background:#f8eddcdd;border-radius:16px;margin-top:10px;padding:10px}#reader .tools{padding-top:8px}.book-heading strong{background:#fff4dfdf;padding:4px 10px;border-radius:8px}.book-heading #status{background:#fff4dfdf;padding:4px 9px;border-radius:8px}
/* Trim only the print-production margin; retain the original page artwork. */
#spread .book-page{border-radius:5px;background:#fffdf7;box-shadow:0 2px 0 #e8dcc5,0 4px 0 #d5c6ab,0 12px 20px #45291430}
#spread .book-page img{transform:scale(1.08);transform-origin:center}
#spread .book-page.--left{border-radius:7px 2px 2px 7px}
#spread .book-page.--right{border-radius:2px 7px 7px 2px}
#spread .book-page:after{border-radius:inherit;box-shadow:inset 0 0 0 1px #947b4914;background:transparent}
#spread .book-page.--left:after{background:linear-gradient(90deg,#fff9df10 0%,transparent 86%,#a48a5f0d 95%,#56412c30 100%)}
#spread .book-page.--right:after{background:linear-gradient(90deg,#56412c30 0%,#a48a5f0d 5%,transparent 14%,#fff9df10 100%)}
#spread{isolation:isolate}#spread .stf__wrapper{z-index:1}#spread .book-spine{position:absolute;left:50%;width:26px;transform:translateX(-50%);z-index:0;pointer-events:none;border-radius:4px 4px 5px 5px;background:linear-gradient(90deg,#85684a 0%,#bea17b 12%,#e7d5b5 28%,#9f805c 43%,#74573b 50%,#a88b66 59%,#eadabe 78%,#b39570 90%,#826447 100%);box-shadow:0 3px 0 #806347,0 5px 9px #49311c40}#spread .book-spine:before,#spread .book-spine:after{content:'';position:absolute;left:4px;right:4px;height:3px;border-top:1px solid #fff0ce77;border-bottom:1px solid #6e533f66}#spread .book-spine:before{top:12px}#spread .book-spine:after{bottom:12px}

/* Single-page mode on mobile and enhanced Zoom In / Zoom Out controls on desktop & mobile */
.stage-container {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  color: #34464e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.stage-nav svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.stage-prev {
  left: 10px;
}
.stage-next {
  right: 10px;
}
.stage-nav:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.stage-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.stage-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
#stage.is-zoomed {
  overflow: auto !important;
  touch-action: pan-x pan-y !important;
}
#spread {
  margin: 0 auto;
}
.top-zoom-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff4dfdf;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(78, 53, 35, 0.12);
}
.top-zoom-tools button {
  background: #ffffff;
  color: #843b50;
  border: 1px solid #e6d2b8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.top-zoom-tools button:hover:not(:disabled) {
  background: #fcebf2;
}
.top-zoom-tools .zoom-level-btn {
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#reader .tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}
#reader .tools button {
  background: #fff6e9;
  color: #843b50;
  border: 1px solid #e7d4bc;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(78, 53, 35, 0.12);
}
#reader .tools button:hover:not(:disabled) {
  background: #fcebf2;
}

body.single-page-mode #spread .book-spine {
  display: none !important;
}
body.single-page-mode #spread .book-page {
  border-radius: 7px !important;
}
body.single-page-mode #spread .book-page img {
  transform: scale(1.02);
}

@media (max-width: 820px) {
  #spread .book-spine {
    display: none !important;
  }
  #spread .book-page {
    border-radius: 7px !important;
  }
  #spread .book-page img {
    transform: scale(1.02);
  }
  .book-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-zoom-tools button {
    padding: 3px 7px;
    font-size: 11px;
  }
  #reader .tools {
    gap: 8px;
    flex-wrap: wrap;
  }
  #reader .tools #zoom-out,
  #reader .tools #zoom-in,
  #reader .tools .divider {
    display: none !important;
  }
  #reader .tools button {
    font-size: 11px;
    padding: 6px 9px;
  }
}

#spread .stf__item.--hard { transform-style: flat !important; backface-visibility: hidden !important; -webkit-backface-visibility: hidden !important; }

#error{display:none!important}

/* === UMA v32 FLIPBOOK RESPONSIVE POLISH (DESKTOP, TABLET & MOBILE) === */
header {
  max-width: 1394px;
  width: calc(100% - 56px);
  padding: 12px 195px 10px;
}
header .back {
  left: 0;
}
header h1 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 3px;
}
header p {
  font-size: 13px;
  line-height: 1.35;
}
@media (max-width: 960px) {
  header {
    width: calc(100% - 32px);
    padding: 12px 0 8px;
    flex-direction: column;
    gap: 8px;
  }
  header .back {
    position: static;
    align-self: flex-start;
  }
  header > div {
    order: 0;
    width: 100%;
  }
  main {
    width: calc(100% - 32px);
    position: relative;
  }
  aside {
    position: absolute;
    inset: 0 auto 0 0;
    width: 220px;
    z-index: 25;
    box-shadow: 8px 4px 28px rgba(0, 0, 0, 0.24);
  }
}
@media (max-width: 700px) {
  header {
    width: calc(100% - 20px);
    padding: 10px 0 6px;
  }
  header h1 {
    font-size: clamp(18px, 5vw, 22px);
  }
  header p {
    font-size: 11.5px;
  }
  main {
    width: calc(100% - 20px);
    margin-bottom: 10px;
  }
  footer {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 8px;
  }
  .stage-nav {
    width: 36px;
    height: 36px;
  }
  .stage-nav svg {
    width: 20px;
    height: 20px;
  }
  .stage-prev {
    left: 6px;
  }
  .stage-next {
    right: 6px;
  }
}
@media (max-height: 580px) {
  body {
    height: auto !important;
    min-height: 100dvh;
    overflow-y: auto !important;
  }
  main {
    min-height: 400px;
  }
}

#spread.one-page-book{display:grid;place-items:center;overflow:hidden}#spread.one-page-book>.book-page{position:relative;display:flex;justify-content:center;width:100%;height:100%;min-height:0;background:transparent;box-shadow:none}#spread.one-page-book>.book-page img{position:static;width:100%;height:100%;object-fit:contain}

#spread.one-page-book{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}body.single-page-mode #spread.one-page-book .book-page img{transform:none}