/* Shafts belong to the opened book, not to either advertising entrance. */
:root .celestial-site.celestial-palace #celestial-reading,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) {
  --scroll-shaft-height: 9cqw;
  --scroll-paper-inset: 9.5%;
}
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll {
  padding-block: 4.5cqw;
}
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-sheet,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-sheet {
  margin-inline: 9.5%;
}
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-rod,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-rod {
  display: block;
  left: 0;
  width: 100%;
  height: 9cqw;
  overflow: visible;
}
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-rod img,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-rod img { visibility: hidden; }
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-rod::before,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-rod::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-image: none;
  background: url('/assets/scroll-scene-1971fbb403f9.png') center / 100% auto no-repeat;
  transform: none;
}
:root .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-lower::before,
:root .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-lower::before { transform: scaleY(-1); }
/* Before opening, this is the original full-width three-immortals advertisement. */
:root .celestial-site.celestial-palace #celestial-reading:not(.is-open) > .heavenly-scroll {
  padding: 0;
}
:root .celestial-site.celestial-palace #celestial-reading#celestial-reading:not(.is-open) > .heavenly-scroll > .heavenly-sheet {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:root .celestial-site.celestial-palace #celestial-reading:not(.is-open) > .heavenly-scroll > .heavenly-rod,
:root .celestial-site.celestial-palace #celestial-reading:not(.is-open) > .heavenly-scroll > .heavenly-sheet > .heavenly-trim {
  display: none;
}
:root .celestial-site.celestial-palace #celestial-reading:not(.is-open) > .guardian-scene {
  z-index: 1;
  bottom: 0;
}
:root .celestial-site.celestial-palace #celestial-reading#celestial-reading.is-open > .heavenly-scroll > .heavenly-sheet {
  width: auto;
  max-width: none;
  margin-inline: 9.5%;
}
:root .celestial-site.celestial-palace #celestial-reading#celestial-reading.is-open:has(.redeem-fields) > .heavenly-scroll > .heavenly-sheet {
  padding-block: calc(4.5cqw + 16px);
}
/* The compact companion keeps its figures above the clickable jade button. */
:root body .celestial-site.celestial-palace .tianshu-scene-dock {
  height: calc(108px + env(safe-area-inset-bottom, 0px));
  padding: 60px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: url('/assets/scroll-scene-75d550e9701f.webp') center bottom / 100% 100% no-repeat;
  box-shadow: none;
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock::before,
:root body .celestial-site.celestial-palace .tianshu-scene-dock::after {
  content: '';
  display: block;
  top: auto;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  width: 30%;
  height: 60px;
  mask-image: none;
  background-size: contain;
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock::before {
  background-image: url('/assets/scroll-scene-7e7f97817fd9.webp');
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock::after {
  background-image: url('/assets/scroll-scene-45e72c679bc1.webp');
}

/* Continuous gilded cloud brocade, scaled as a repeating strip instead of stretched. */
:root .celestial-site.celestial-palace .living-scroll.is-open > .heavenly-scroll > .heavenly-sheet > .heavenly-trim {
  display: block;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  background-image: url("data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aWR0aD0iLjM1IiBvcGFjaXR5PSIuNiIvPjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2M4YjQ4ZSIgc3Ryb2tlLXdpZHRoPSIuNTUiPjxwYXRoIGQ9Ik04IDVDMyA4IDMgMTIgNyAxNEMxMSAxNiAxMiAyMCA4IDIzQzQgMjYgNCAzMCA4IDMzQzEyIDM2IDEyIDQwIDggNDNDNCA0NiA0IDUwIDggNTNDMTIgNTYgMTIgNjAgOCA2NE04IDVDMTIgNyAxMiAxMSA5IDEyQzYgMTMgNSAxMCA4IDlNOCAzM0M0IDM1IDQgMzkgNyA0MEMxMCA0MSAxMSAzOCA4IDM3Ii8+PC9nPjxwYXRoIGQ9Ik04IDNsMiAyLTIgMi0yLTJ6TTggMzFsMiAyLTIgMi0yLTJ6IiBmaWxsPSIjZmZmYWYwIi8+PHBhdGggZD0iTTggMTZxNSA1IDAgOU04IDQ0cS01IDUgMCA5IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZhZjAiIHN0cm9rZS13aWR0aD0iLjQ1Ii8+PC9zdmc+");
  background-position: left top, right top;
  background-size: 14px 56px;
  background-repeat: repeat-y;
}
@media (max-width: 680px) {
  :root .celestial-site.celestial-palace .living-scroll.is-open > .heavenly-scroll > .heavenly-sheet > .heavenly-trim {
    background-size: 10px 40px;
  }
}
/* Real glyphs remain crisp at every screen density; keep the original blank jade carving. */
:root body .celestial-site.celestial-palace .living-scroll .professional-report-entry .tianshu-entry-button,
:root body .celestial-site.celestial-palace .tianshu-scene-dock button {
  background: url('/assets/jade-button-book-358db28e1cb8.webp') center / contain no-repeat;
  font: 700 20px/1.2 'KaiTi', 'STKaiti', var(--display);
  color: #163f2b;
  letter-spacing: .06em;
  text-shadow: none;
  filter: none;
}
:root body .celestial-site.celestial-palace .living-scroll .professional-report-entry .tianshu-entry-button span {
  font-size: inherit;
  text-shadow: none;
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock button {font-size:19px}
:root body .celestial-site.celestial-palace .tianshu-scene-dock {
  height: calc(136px + env(safe-area-inset-bottom, 0px));
  padding-top: 88px;
  background: url('/assets/scroll-scene-75d550e9701f.webp') center bottom / 100% auto no-repeat,
    linear-gradient(to bottom, transparent, #fafcf7 10px, #fafcf7);
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock::before {
  width: 46%;
  height: 88px;
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock::after {
  width: 33%;
  height: 88px;
}
:root body .celestial-site.celestial-palace .tianshu-scene-dock .dock-jade-sheen {
  mask-image: url('/assets/jade-button-book-358db28e1cb8.webp');
}
@media (hover: hover) {
  :root body .celestial-site.celestial-palace .living-scroll .professional-report-entry .tianshu-entry-button:hover:not(:disabled),
  :root body .celestial-site.celestial-palace .tianshu-scene-dock button:hover:not(:disabled) {filter:brightness(1.025)}
}
:root body .celestial-site.celestial-palace .living-scroll .professional-report-entry .tianshu-entry-button:active:not(:disabled),
:root body .celestial-site.celestial-palace .tianshu-scene-dock button:active:not(:disabled) {filter:brightness(.97)}

:root body .celestial-site.celestial-palace .living-scroll .professional-report-entry .tianshu-entry-button,
:root body .celestial-site.celestial-palace .tianshu-scene-dock button {font-synthesis:weight}

/* Pale champagne edge follows the fine brocade without a dark outline. */
:root body .celestial-site.celestial-palace #celestial-reading.is-open > .heavenly-scroll > .heavenly-sheet,
:root body .celestial-site.celestial-palace .living-scroll:has(.complete-report) > .heavenly-scroll > .heavenly-sheet { border-inline-color: #ded2bc; }
