/* Interactive 3D book styles extracted and adapted from 3d‑book (7).html.  
   These styles scope the interactive book components used in the hero section.  
   Variables defined on :root in the original file have been omitted because the  
   main site already defines compatible CSS custom properties.  */

/* Floating aura around the book */
.scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.levitate {
  animation: bkFloat 5s ease-in-out infinite;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes bkFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

.aura {
  position: absolute;
  width: 700px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(201, 169, 110, 0.15) 0%,
    rgba(201, 169, 110, 0.05) 40%,
    transparent 68%
  );
  pointer-events: none;
  animation: auraPulse 5s ease-in-out infinite;
  z-index: -1;
}

@keyframes auraPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Stage containing the closed book and the spread */
.stage {
  position: relative;
  width: 700px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

/* Closed book image */
.book-closed {
  position: absolute;
  width: 300px;
  height: auto;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 0.8, 0.25, 1);
  cursor: pointer;
  filter: drop-shadow(0 40px 55px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(201, 169, 110, 0.08));
  z-index: 5;
  user-select: none;
}

.book-closed:hover {
  transform: scale(1.02) translateY(-4px);
  filter: drop-shadow(0 48px 65px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 32px rgba(232, 212, 160, 0.28))
    drop-shadow(0 0 80px rgba(201, 169, 110, 0.22));
}

.stage.is-open .book-closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

/* Open spread */
.spread {
  position: absolute;
  width: 620px;
  height: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.5s ease 0.15s,
    transform 0.6s cubic-bezier(0.3, 0.8, 0.25, 1) 0.15s;
  z-index: 10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(201, 169, 110, 0.08);
  border-radius: 4px;
}

.stage.is-open .spread {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.spread::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 20px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(30, 20, 8, 0.55) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(30, 20, 8, 0.55) 100%);
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.spread::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -14px;
  width: 18px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #e8d4a0, #c9a96e 40%, #a8884c 70%, #c9a96e);
  box-shadow: inset 2px 0 4px rgba(255, 247, 221, 0.5), 6px 0 14px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.spread-edge-left {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -14px;
  width: 18px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, #e8d4a0, #c9a96e 40%, #a8884c 70%, #c9a96e);
  box-shadow: inset -2px 0 4px rgba(255, 247, 221, 0.5), -6px 0 14px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.base-page {
  position: relative;
  padding: 40px 34px 34px;
  overflow: hidden;
}

.base-page-left {
  background: linear-gradient(180deg, rgba(250, 244, 228, 1), rgba(236, 225, 200, 1)),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(137, 111, 74, 0.035) 26px 27px);
  box-shadow: inset -18px 0 28px rgba(106, 84, 49, 0.1), inset 0 0 0 1px rgba(164, 129, 73, 0.08);
  border-radius: 4px 0 0 4px;
}

.base-page-right {
  background: linear-gradient(180deg, rgba(255, 253, 246, 1), rgba(244, 235, 212, 1)),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(137, 111, 74, 0.04) 26px 27px);
  box-shadow: inset 18px 0 28px rgba(106, 84, 49, 0.1), inset 0 0 0 1px rgba(164, 129, 73, 0.08);
  border-radius: 0 4px 4px 0;
}

.flip-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  perspective: 2000px;
  pointer-events: none;
  z-index: 12;
}

.flip-page {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 1s cubic-bezier(0.3, 0.8, 0.25, 1);
  will-change: transform;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  padding: 40px 34px 34px;
  border-radius: 0 4px 4px 0;
}

.flip-face.front {
  background: linear-gradient(180deg, rgba(255, 253, 246, 1), rgba(244, 235, 212, 1)),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(137, 111, 74, 0.04) 26px 27px);
  box-shadow: inset 18px 0 28px rgba(106, 84, 49, 0.1), inset 0 0 0 1px rgba(164, 129, 73, 0.08);
}

.flip-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(250, 244, 228, 1), rgba(236, 225, 200, 1)),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(137, 111, 74, 0.035) 26px 27px);
  box-shadow: inset -18px 0 28px rgba(106, 84, 49, 0.1), inset 0 0 0 1px rgba(164, 129, 73, 0.08);
  border-radius: 4px 0 0 4px;
}

/* Typography for pages */
.pg-chapter {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #a0845a;
  margin-bottom: 8px;
}

.pg-title {
  font-family: var(--ff-serif);
  font-size: 26px;
  color: #5a3d20;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
}

.pg-text {
  font-family: var(--ff-sans);
  font-size: 12.5px;
  line-height: 1.75;
  color: #4a3723;
}

.pg-text p {
  margin-bottom: 12px;
}

.pg-num {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(114, 88, 55, 0.5);
}

.pg-ornament {
  text-align: center;
  color: #b09060;
  font-size: 26px;
  margin: 18px 0;
  letter-spacing: 0.3em;
}

.pg-quote {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-style: italic;
  color: #6d4b28;
  line-height: 1.65;
  text-align: center;
  padding: 16px 8px;
}

.pg-quote-author {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #a0845a;
  text-align: center;
  margin-top: 14px;
}

.pg-manuscript-sub {
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a0845a;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 10px;
}

.pg-manuscript-title {
  font-family: var(--ff-serif);
  font-size: 32px;
  text-transform: uppercase;
  color: #5a3d20;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  margin-bottom: 12px;
}

.pg-manuscript-author {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-style: italic;
  color: #835f38;
  text-align: center;
  margin-top: 20px;
}

.pg-ornament-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b09060, transparent);
  margin: 18px auto;
}

/* Controls */
.controls {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 10;
  position: relative;
}

.ctrl-btn {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  background: rgba(26, 14, 4, 0.6);
  backdrop-filter: blur(8px);
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.ctrl-btn:hover {
  background: var(--gold-dark);
  color: var(--gold-light);
  box-shadow: 0 0 24px rgba(201, 169, 110, 0.18);
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.ctrl-btn.disabled {
  opacity: 0.22;
  pointer-events: none;
}

.page-indicator {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  min-width: 120px;
  text-align: center;
}

.hint {
  margin-top: 18px;
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
  animation: hintPulse 3s ease-in-out infinite;
  z-index: 10;
  position: relative;
  transition: opacity 0.4s ease;
}

@keyframes hintPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.2;
  }
}

/* Responsive adjustments */
@media (max-width: 760px) {
  .stage {
    width: 94vw;
    height: 80vw;
  }
  .book-closed {
    width: 44vw;
  }
  .spread {
    width: 90vw;
    height: 68vw;
  }
  .base-page,
  .flip-face {
    padding: 22px 16px 22px;
  }
  .pg-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .pg-text {
    font-size: 10.5px;
    line-height: 1.6;
  }
  .pg-text p {
    margin-bottom: 8px;
  }
  .pg-manuscript-title {
    font-size: 22px;
  }
  .pg-quote {
    font-size: 13px;
    padding: 10px 4px;
  }
  .pg-ornament {
    font-size: 20px;
    margin: 10px 0;
  }
  .aura {
    width: 94vw;
    height: 80vw;
  }
}

@media (max-width: 440px) {
  .ctrl-btn {
    padding: 8px 12px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .controls {
    gap: 8px;
  }
  .page-indicator {
    min-width: 70px;
    font-size: 8px;
  }
}

/* === v54 clean book asset pass ===
   The hero book is now a pure transparent PNG object. No aura, no outer shadow,
   no helper controls around the book. Interaction is handled by clicking the
   book/pages directly. */
.aura,
.controls,
.hint {
  display: none !important;
}

.book-closed,
.book-closed:hover {
  filter: none !important;
  box-shadow: none !important;
}

.book-closed {
  width: clamp(260px, 27vw, 390px);
}

.book-closed:hover {
  transform: scale(1.018) translateY(-3px);
}

.spread {
  box-shadow: none !important;
}

.interactive-book {
  background: transparent !important;
}

.stage,
.scene,
.levitate {
  background: transparent !important;
}

/* === v55 book scale reduction ===
   Reduce the interactive book object by roughly 50% while keeping the
   existing click-to-open / page-turn mechanic intact. */
.stage {
  width: 350px !important;
  height: 300px !important;
}

.book-closed {
  width: clamp(130px, 13.5vw, 195px) !important;
}

.spread {
  width: 310px !important;
  height: 230px !important;
}

@media (max-width: 760px) {
  .stage {
    width: min(350px, 82vw) !important;
    height: min(300px, 70vw) !important;
  }

  .book-closed {
    width: min(160px, 42vw) !important;
  }

  .spread {
    width: min(310px, 88vw) !important;
    height: min(230px, 64vw) !important;
  }
}

/* === v56 mobile book compact spacing ===
   Pull the mobile book block closer to the top without affecting desktop. */
@media (max-width: 768px) {
  .interactive-book {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .scene,
  .levitate,
  .stage {
    margin-top: 0 !important;
  }
}

/* ===================== V73 BOOK HOVER GLOW =====================
   Slight white + gold back glow on hover, without restoring the old heavy aura. */
.interactive-book .stage{
  overflow: visible !important;
}
.interactive-book .stage::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) scale(0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255,248,229,0.18) 0%,
      rgba(255,243,210,0.14) 18%,
      rgba(212,175,55,0.16) 36%,
      rgba(212,175,55,0.07) 52%,
      rgba(212,175,55,0.00) 74%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.interactive-book .stage:hover::after{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}
.book-closed{
  position: absolute;
  z-index: 5;
}
.book-closed:hover{
  transform: scale(1.024) translateY(-4px) !important;
  filter:
    drop-shadow(0 24px 34px rgba(0,0,0,0.44))
    drop-shadow(0 0 14px rgba(255,249,234,0.16))
    drop-shadow(0 0 24px rgba(212,175,55,0.18)) !important;
}


/* ===================== V169 BOOK FIRST SPREAD RIGHT PAGE =====================
   Elegant calligraphic "coming soon" on the right page of the opening spread.
   ========================================================================== */
.pg-coming-soon-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.pg-coming-soon {
  font-family: 'Cormorant Garamond', var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 2.8vw, 46px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: #6f4a27;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 10px 24px rgba(111,74,39,0.10);
  transform: rotate(-4deg);
}

.pg-coming-soon::before,
.pg-coming-soon::after {
  content: '❦';
  display: block;
  font-size: 14px;
  line-height: 1;
  color: rgba(176, 144, 96, 0.9);
  letter-spacing: 0.2em;
}

.pg-coming-soon::before { margin-bottom: 16px; }
.pg-coming-soon::after { margin-top: 16px; }

@media (max-width: 760px) {
  .pg-coming-soon {
    font-size: clamp(28px, 6.5vw, 36px);
  }
}


/* === V228 interactive first chapter title page === */
.base-page-left,
.base-page-right,
.flip-face.front,
.flip-face.back {
  cursor: pointer;
}

.pg-titlepage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px 22px;
}

.pg-titlepage-meta {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #a0845a;
  margin-top: 6px;
}

.pg-titlepage-book {
  font-family: var(--ff-serif);
  font-size: 23px;
  line-height: 0.98;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a3d20;
  margin-top: 14px;
}

.pg-titlepage-rule {
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b09060, transparent);
  margin: 12px auto 10px;
}

.pg-titlepage-author {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-style: italic;
  color: #835f38;
}

.pg-titlepage-chapter {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8d7048;
  margin-top: 14px;
}

.pg-titlepage-excerpt {
  font-family: var(--ff-serif);
  font-size: 14px;
  line-height: 1.4;
  color: #6d4b28;
  margin-top: 14px;
  padding: 0 10px;
  max-width: 240px;
}

.pg-titlepage-body {
  font-family: var(--ff-sans);
  font-size: 10.2px;
  line-height: 1.62;
  color: #4a3723;
  margin-top: 10px;
  max-width: 240px;
}

.pg-end-divider {
  text-align: center;
  color: #b09060;
  font-size: 14px;
  letter-spacing: 0.32em;
  margin-top: 6px;
}

.pg-end-note {
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(114, 88, 55, 0.68);
  margin-top: 6px;
}

@media (max-width: 760px) {
  .pg-titlepage-book {
    font-size: 16px;
  }

  .pg-titlepage-author {
    font-size: 12px;
  }

  .pg-titlepage-excerpt {
    font-size: 10.5px;
    max-width: 150px;
  }

  .pg-titlepage-body {
    font-size: 8.6px;
    line-height: 1.46;
    max-width: 150px;
  }

  .pg-titlepage-chapter,
  .pg-titlepage-meta {
    font-size: 7px;
    letter-spacing: 0.2em;
  }

  .pg-end-note {
    font-size: 6.5px;
  }
}


/* === V229 book flip layer visibility fix ===
   The flip page is only needed during the page-turn animation.
   When idle, it must not cover the visible right page content. */
.interactive-book .flip-wrapper {
  opacity: 0 !important;
  visibility: hidden !important;
}

.interactive-book .stage.is-turning .flip-wrapper {
  opacity: 1 !important;
  visibility: visible !important;
}


/* === V230 real book chapter typography ===
   The opening right page now behaves like a real printed novel page:
   title block, chapter heading, indented continuous body copy and overflow
   split manually onto following pages. */

.pg-real-titlepage {
  position: relative;
  height: 100%;
  padding: 3px 2px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: #3f2f20;
}

.pg-real-book {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 29px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #3c2618;
  margin-top: 0;
}

.pg-real-rule {
  width: 116px;
  height: 10px;
  margin: 8px auto 5px;
  background:
    linear-gradient(90deg, transparent, rgba(151, 113, 69, 0.64), transparent);
  -webkit-mask:
    radial-gradient(circle at 50% 50%, #000 0 2px, transparent 2.5px),
    linear-gradient(#000 0 0);
  mask:
    radial-gradient(circle at 50% 50%, #000 0 2px, transparent 2.5px),
    linear-gradient(#000 0 0);
}

.pg-real-genre {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 14px;
  font-style: italic;
  color: #6f5134;
}

.pg-real-dots {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: #b08a4e;
  margin-top: 6px;
}

.pg-real-author {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 16px;
  color: #4c3522;
  margin-top: 7px;
}

.pg-real-smallrule {
  width: 72px;
  height: 1px;
  margin: 8px auto 10px;
  background: linear-gradient(90deg, transparent, rgba(130, 94, 54, 0.70), transparent);
}

.pg-real-chapter {
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 21px;
  line-height: 1.1;
  color: #332317;
  margin-bottom: 11px;
}

.pg-book-copy {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 34px 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.15px;
  line-height: 1.38;
  letter-spacing: 0.003em;
  color: #33261a;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.pg-real-titlepage .pg-book-copy {
  flex: 1 1 auto;
  padding: 0 32px 20px;
  overflow: hidden;
}

.pg-book-copy p {
  margin: 0;
  text-indent: 1.45em;
}

.pg-book-copy p + p {
  margin-top: 0;
}

.pg-book-copy-start p::first-letter {
  font-size: 1em;
}

.pg-num {
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(85, 62, 36, 0.48);
}

@media (max-width: 760px) {
  .pg-real-book {
    font-size: 16px;
  }

  .pg-real-genre {
    font-size: 9px;
  }

  .pg-real-author {
    font-size: 10px;
  }

  .pg-real-chapter {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .pg-real-dots {
    font-size: 7px;
    margin-top: 3px;
  }

  .pg-real-rule {
    width: 62px;
    margin: 4px auto 2px;
  }

  .pg-real-smallrule {
    width: 42px;
    margin: 4px auto 5px;
  }

  .pg-book-copy {
    padding: 12px 14px 20px;
    font-size: 7.2px;
    line-height: 1.28;
  }

  .pg-real-titlepage .pg-book-copy {
    padding: 0 13px 12px;
  }

  .pg-book-copy p {
    text-indent: 1.25em;
  }
}


/* === V231 short opening excerpt layout === */
.pg-real-titlepage-short .pg-real-book {
  font-size: 30px;
}

.pg-book-copy-short {
  margin-top: 4px;
  padding: 0 34px 18px !important;
  font-size: 13.2px;
  line-height: 1.5;
  overflow: visible !important;
}

.pg-book-copy-short p {
  text-indent: 1.45em;
}

.pg-preview-page {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px 32px;
}

.pg-preview-title {
  font-family: var(--ff-serif);
  font-size: 25px;
  line-height: 1.1;
  color: #4b3320;
  margin-top: 16px;
}

.pg-preview-note {
  margin-top: 12px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(96, 68, 39, 0.72);
}

@media (max-width: 760px) {
  .pg-real-titlepage-short .pg-real-book {
    font-size: 17px;
  }

  .pg-book-copy-short {
    padding: 0 13px 12px !important;
    font-size: 7.8px;
    line-height: 1.34;
  }

  .pg-preview-title {
    font-size: 14px;
  }

  .pg-preview-note {
    font-size: 9px;
  }
}


/* === V232 book page safe margins fix ===
   Restores proper printed-book margins.
   The excerpt must not run into the bottom paper edge. */

.pg-real-titlepage.pg-real-titlepage-short {
  padding: 10px 0 42px !important;
}

.pg-real-titlepage-short .pg-real-book {
  font-size: 29px !important;
  line-height: 1.05 !important;
  margin-top: 0 !important;
}

.pg-real-titlepage-short .pg-real-rule {
  margin-top: 8px !important;
  margin-bottom: 5px !important;
}

.pg-real-titlepage-short .pg-real-genre {
  font-size: 13.5px !important;
}

.pg-real-titlepage-short .pg-real-dots {
  margin-top: 5px !important;
}

.pg-real-titlepage-short .pg-real-author {
  margin-top: 6px !important;
  font-size: 15.5px !important;
}

.pg-real-titlepage-short .pg-real-smallrule {
  margin-top: 7px !important;
  margin-bottom: 9px !important;
}

.pg-real-titlepage-short .pg-real-chapter {
  font-size: 20px !important;
  margin-bottom: 12px !important;
}

.pg-real-titlepage-short .pg-book-copy-short {
  width: min(255px, 72%) !important;
  max-width: 255px !important;
  margin: 0 auto !important;
  padding: 0 0 0 !important;
  font-size: 11.6px !important;
  line-height: 1.43 !important;
  letter-spacing: 0 !important;
  text-align: justify !important;
  overflow: hidden !important;
}

.pg-real-titlepage-short .pg-book-copy-short p {
  margin: 0 !important;
  text-indent: 1.38em !important;
}

.pg-real-titlepage-short + .pg-num,
.pg-real-titlepage-short ~ .pg-num {
  bottom: 18px !important;
}

@media (min-width: 1200px) {
  .pg-real-titlepage-short .pg-book-copy-short {
    font-size: 11.8px !important;
    line-height: 1.44 !important;
    max-width: 262px !important;
  }
}

@media (max-width: 760px) {
  .pg-real-titlepage.pg-real-titlepage-short {
    padding: 5px 0 22px !important;
  }

  .pg-real-titlepage-short .pg-real-book {
    font-size: 16px !important;
  }

  .pg-real-titlepage-short .pg-real-genre {
    font-size: 8.5px !important;
  }

  .pg-real-titlepage-short .pg-real-author {
    font-size: 9.5px !important;
  }

  .pg-real-titlepage-short .pg-real-chapter {
    font-size: 11.5px !important;
    margin-bottom: 5px !important;
  }

  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(152px, 74%) !important;
    max-width: 152px !important;
    font-size: 6.95px !important;
    line-height: 1.30 !important;
  }
}


/* === V233 fit short excerpt on first right page ===
   Keep real book margins, but fit the full short excerpt on page 1. */

.pg-real-titlepage.pg-real-titlepage-short {
  padding: 8px 0 36px !important;
}

.pg-real-titlepage-short .pg-real-book {
  font-size: 27px !important;
  line-height: 1.02 !important;
}

.pg-real-titlepage-short .pg-real-rule {
  height: 7px !important;
  margin: 6px auto 3px !important;
}

.pg-real-titlepage-short .pg-real-genre {
  font-size: 12.2px !important;
  line-height: 1.1 !important;
}

.pg-real-titlepage-short .pg-real-dots {
  font-size: 9px !important;
  margin-top: 4px !important;
}

.pg-real-titlepage-short .pg-real-author {
  font-size: 14px !important;
  margin-top: 5px !important;
  line-height: 1.1 !important;
}

.pg-real-titlepage-short .pg-real-smallrule {
  margin: 6px auto 7px !important;
}

.pg-real-titlepage-short .pg-real-chapter {
  font-size: 18.2px !important;
  line-height: 1.08 !important;
  margin-bottom: 9px !important;
}

.pg-real-titlepage-short .pg-book-copy-short {
  width: min(324px, 82%) !important;
  max-width: 324px !important;
  margin: 0 auto !important;
  padding: 0 0 0 !important;
  font-size: 9.65px !important;
  line-height: 1.265 !important;
  letter-spacing: 0.002em !important;
  word-spacing: 0.02em !important;
  overflow: visible !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: none !important;
}

.pg-real-titlepage-short .pg-book-copy-short p {
  text-indent: 1.35em !important;
  margin: 0 !important;
}

@media (min-width: 1200px) {
  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(332px, 83%) !important;
    max-width: 332px !important;
    font-size: 9.9px !important;
    line-height: 1.27 !important;
  }
}

@media (max-width: 760px) {
  .pg-real-titlepage.pg-real-titlepage-short {
    padding: 4px 0 18px !important;
  }

  .pg-real-titlepage-short .pg-real-book {
    font-size: 15px !important;
  }

  .pg-real-titlepage-short .pg-real-genre {
    font-size: 8px !important;
  }

  .pg-real-titlepage-short .pg-real-author {
    font-size: 9px !important;
  }

  .pg-real-titlepage-short .pg-real-chapter {
    font-size: 10.6px !important;
    margin-bottom: 4px !important;
  }

  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(176px, 82%) !important;
    max-width: 176px !important;
    font-size: 5.85px !important;
    line-height: 1.20 !important;
  }
}


/* === V234 slightly larger first-page excerpt text ===
   Increases only the chapter body copy a little while preserving safe page margins. */

.pg-real-titlepage-short .pg-book-copy-short {
  width: min(326px, 82%) !important;
  max-width: 326px !important;
  font-size: 10.45px !important;
  line-height: 1.285 !important;
  word-spacing: 0.015em !important;
}

@media (min-width: 1200px) {
  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(334px, 83%) !important;
    max-width: 334px !important;
    font-size: 10.65px !important;
    line-height: 1.285 !important;
  }
}

@media (max-width: 760px) {
  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(176px, 82%) !important;
    max-width: 176px !important;
    font-size: 6.15px !important;
    line-height: 1.22 !important;
  }
}


/* === V235 mobile book excerpt fit polish ===
   Mobile-only correction: make excerpt a little larger while keeping the last line visible. */

@media (max-width: 760px) {
  .pg-real-titlepage.pg-real-titlepage-short {
    padding: 3px 0 20px !important;
  }

  .pg-real-titlepage-short .pg-real-book {
    font-size: 15.8px !important;
    line-height: 1.02 !important;
  }

  .pg-real-titlepage-short .pg-real-rule {
    width: 58px !important;
    height: 5px !important;
    margin: 3px auto 2px !important;
  }

  .pg-real-titlepage-short .pg-real-genre {
    font-size: 8.25px !important;
    line-height: 1.05 !important;
  }

  .pg-real-titlepage-short .pg-real-dots {
    font-size: 6.5px !important;
    margin-top: 2px !important;
    line-height: 1 !important;
  }

  .pg-real-titlepage-short .pg-real-author {
    font-size: 9.25px !important;
    line-height: 1.05 !important;
    margin-top: 3px !important;
  }

  .pg-real-titlepage-short .pg-real-smallrule {
    width: 40px !important;
    margin: 3px auto 4px !important;
  }

  .pg-real-titlepage-short .pg-real-chapter {
    font-size: 10.95px !important;
    line-height: 1.04 !important;
    margin-bottom: 3px !important;
  }

  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(188px, 86%) !important;
    max-width: 188px !important;
    font-size: 6.55px !important;
    line-height: 1.145 !important;
    word-spacing: -0.01em !important;
    letter-spacing: -0.003em !important;
    text-align: justify !important;
    overflow: visible !important;
  }

  .pg-real-titlepage-short .pg-book-copy-short p {
    text-indent: 1.25em !important;
  }
}

@media (max-width: 420px) {
  .pg-real-titlepage-short .pg-book-copy-short {
    width: min(182px, 86%) !important;
    max-width: 182px !important;
    font-size: 6.35px !important;
    line-height: 1.13 !important;
  }
}
