/* Reference edition. Materials are independent images; typography and controls stay HTML. */
:root {
  --book-w: min(94vw, 430px);
  --gold: #c79952;
  --burgundy: #702c2d;
}
html,
body {
  background: #38191b;
  overflow-x: clip;
}
body {
  background: radial-gradient(ellipse at 30% 10%, #68292a, #38191b 80%);
}
#phone-preview {
  display: none;
}
html.phone-preview-host,
html.phone-preview-host body {
  background: #231b1b;
}
.phone-preview-host body > #ch4u-book,
.phone-preview-host body > .entry-film {
  display: none;
}
.phone-preview-host #phone-preview {
  display: grid;
  justify-content: center;
  align-content: start;
  min-height: 100dvh;
}
#phone-preview iframe {
  display: block;
  width: min(100vw, 390px);
  height: 844px;
  border: 0;
  background: #38191b;
  color-scheme: light;
}
html.storybook-frame {
  scrollbar-width: none;
}
html.storybook-frame::-webkit-scrollbar {
  display: none;
}
#ch4u-book {
  width: var(--book-w);
  max-width: 430px;
  padding: 0 0 24px;
  margin: 18px auto 0;
  background: transparent;
  min-height: 0;
  box-shadow: none;
  display: block;
}
#ch4u-book:has(#home:not([hidden])) {
  background: transparent;
  padding: 0 0 24px;
}
#ch4u-book > header {
  display: contents;
}
#ch4u-book > header .brand {
  display: none;
}
#ch4u-book #settings-toggle {
  position: absolute;
  z-index: 25;
  top: 18px;
  right: 19px;
  width: 40px;
  min-height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #6b321f;
  border: 3px double #b98a43;
  background: #f3d9a7;
  border-radius: 6px 2px;
  box-shadow:
    0 3px 4px #33171255,
    inset 0 0 0 1px #ffe8ba;
}
#ch4u-book .book-area {
  width: 100%;
  max-width: none;
  margin: 0;
  perspective: 1100px;
}
#ch4u-book .preview-note,
#ch4u-book .art-debug,
#cover-menu {
  display: none !important;
}
#ch4u-book #cover {
  width: 100%;
  max-width: none;
  height: clamp(690px, calc(100svh - 52px), 820px);
  min-height: 690px;
  aspect-ratio: auto;
  padding: 0;
  margin: 0 0 18px;
}
.cover-body,
.cover-still-body {
  padding: 0;
  border: 1px solid #6d3021;
  border-radius: 5px 9px 7px 3px;
  background: #7a2525 url('assets/binding/leather.webp') center/100% 100%;
  box-shadow:
    inset 8px 0 10px #270e0d70,
    inset -3px 0 7px #32131270,
    4px 8px 16px #42251d55;
}
.cover-rule {
  display: none;
}
.cherry-seal {
  position: absolute;
  top: 28%;
  left: 46%;
  width: 9%;
  height: 4%;
  margin: 0;
  z-index: 3;
}
.cherry-seal::before,
.cherry-seal::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 13px;
  background: radial-gradient(at 32% 25%, #c25749, #782527);
  border-radius: 50%;
  bottom: 0;
  box-shadow: 1px 1px 1px #6f3e2330;
}
.cherry-seal::before {
  left: 1px;
}
.cherry-seal::after {
  right: 0;
}
.brand-label {
  position: absolute;
  left: 14%;
  top: 24%;
  width: 72%;
  height: 21%;
  margin: 0;
  padding: 12% 5% 4%;
  color: #732b28;
  background: #f9e4bf url('assets/binding/paper.webp') center/200% 210%;
  border: 4px double #ae6d3d;
  border-radius: 35% 35% 35% 35% / 28% 28% 28% 28%;
  box-shadow:
    0 3px 0 #e6bd7c,
    0 5px 0 #8a492a,
    0 8px 5px #2f090850,
    inset 0 0 0 4px #fbe9cc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.brand-label #cover-title {
  font:
    bold clamp(33px, 9vw, 43px)/1.1 Georgia,
    serif;
  color: #732b28;
  text-shadow: 0 1px #fff4d7;
  letter-spacing: -1.5px;
  margin: 0;
}
.cover-cafe {
  font:
    12px/2 Georgia,
    serif;
  letter-spacing: 4px;
  margin-top: 7px;
}
#ch4u-book .cover-exterior {
  position: absolute;
  left: 16%;
  top: 48%;
  width: 68%;
  height: 21%;
  border: 0;
}
#ch4u-book .cover-exterior img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 #4a130d);
}
.exterior-relief,
.round-sign-relief {
  display: none;
}
#ch4u-book .cover-copy {
  position: absolute;
  left: 15%;
  top: 70%;
  width: 70%;
  margin: 0;
  text-align: center;
  font:
    17px/1.9 'Yu Mincho',
    serif;
  letter-spacing: 2px;
  color: #ffe7b7;
  text-shadow: 0 1px 2px #401813;
}
#ch4u-book #open-book {
  left: 23%;
  right: auto;
  bottom: 9%;
  top: auto;
  width: 55%;
  min-height: 68px;
  padding: 9px 8px;
  border: 4px double #a7753e;
  outline: 1px solid #e2b872;
  outline-offset: 2px;
  border-radius: 12px 4px;
  background: #f5dcac url('assets/binding/paper.webp') center/220%;
  color: #5f2c1d;
  box-shadow:
    0 4px 0 #b5854d,
    0 7px 8px #30100e65;
  font:
    22px/1.3 'Yu Mincho',
    serif;
  letter-spacing: 2px;
}
#open-book small {
  display: block;
  font:
    11px/1.4 Georgia,
    serif;
  letter-spacing: 1px;
}
.book-spine {
  left: -6px;
  width: 24px;
  z-index: 2;
  pointer-events: none;
  border-radius: 13px 3px 3px 10px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 22px,
      #704221 23px,
      #b88741 25px,
      #e3bc6a 28px,
      #a46e32 32px,
      transparent 34px 154px
    ),
    linear-gradient(90deg, #351012, #8a4134 32%, #591c19 72%, #26090a);
  box-shadow:
    inset 1px 0 2px #c67e5680,
    3px 0 4px #2d0b0b70;
}
.page-stack {
  inset: 10px -3px -9px 9px;
  border-radius: 0 0 8px 8px;
}
.page-bottom {
  height: 14px;
  bottom: -15px;
  right: 0;
  border-radius: 0 0 5px 4px;
  box-shadow:
    0 6px 0 #69332a,
    0 12px 12px #523b3140;
}
#ch4u-book #home,
#ch4u-book #chapter {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: clamp(690px, calc(100svh - 52px), 820px);
  margin: 0 0 18px;
  padding: 40px 14px 33px 22px;
  border: 0;
  border-radius: 22px 22px 12px 8px;
  background: #f8e3c1 url('assets/binding/paper.webp') center/100% 100%;
  box-shadow:
    -4px 5px 0 #782c2c,
    0 7px 0 #5a2d21,
    0 14px 16px #4a292450;
}
#ch4u-book #home::before {
  background: none;
  box-shadow: none;
}
#ch4u-book #home .home-actions,
#ch4u-book #home .home-actions-inner {
  display: block;
}
.spread-binding,
.spread-ribbon,
.paper-sprig,
.page-curl {
  display: none !important;
}
#ch4u-book #home .scene-copy {
  padding: 9px 25px 16px 12px;
}
#home .desktop-home-title {
  display: none;
}
#home .mobile-home-title {
  display: inline;
}
#home .scene-copy h1,
#ch4u-book #chapter-title {
  font:
    26px/1.4 'Yu Mincho',
    serif;
  letter-spacing: 3px;
  color: #6c3025;
  text-align: center;
}
#home .scene-copy > p:last-child {
  display: none;
}
#home .spread-chapter,
#ch4u-book #chapter-position {
  font:
    10px/1.5 Georgia,
    serif;
  letter-spacing: 3px;
  color: #814c2c;
  margin: 0 0 9px;
  text-align: center;
}
#ch4u-book #home .store-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  container-type: inline-size;
  background: #765536;
  box-shadow: 0 6px 12px #6b44224d;
  perspective: 1100px;
}
#ch4u-book #home .stage-clip {
  display: block;
  height: clamp(300px, 43svh, 378px);
  aspect-ratio: auto;
  border-radius: 45% 45% 5% 5% / 12% 12% 4% 4%;
  perspective: 1100px;
  overflow: hidden;
}
#ch4u-book #home .room-camera {
  display: none;
}
#ch4u-book #home .show-room-parts .room-camera {
  display: block;
  width: 100%;
  height: 133.0267cqw;
  top: calc(100% - 133.0267cqw + 18px);
}
#ch4u-book #home .show-room-parts .room-poster {
  visibility: hidden;
}
#ch4u-book #home .room-poster {
  visibility: visible;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0;
  object-fit: cover;
  object-position: 50% 70%;
  transform-origin: 50% 100%;
}
#home .paper-arch {
  height: 22%;
  fill: #f8e2be;
  filter: drop-shadow(0 5px 3px #57371b65);
}
#home .paper-arch-back {
  fill: #dcb67d;
}
#home .paper-arch-front {
  fill: #fae7c5;
}
#home .paper-foreground {
  height: 13%;
  fill: #fae7c5;
}
#ch4u-book #home .sign {
  background: #f6dfb8e8;
  box-shadow:
    0 2px 0 #a57543,
    0 4px 3px #4c302e50;
  font-size: 11px;
  min-height: 44px;
  padding: 4px 7px;
  border: 2px double #b4864d;
}
#ch4u-book #home .home-footer {
  padding: 9px 10px 0;
}
#home .spread-kicker {
  display: none;
}
#ch4u-book #home .spread-story {
  font:
    14px/1.85 'Yu Mincho',
    serif;
  letter-spacing: 0.6px;
  margin: 3px 0 16px;
}
#ch4u-book #home .custom-sign,
#ch4u-book #home .access-link {
  display: none;
}
#ch4u-book #home .mobile-cafe-link {
  display: block;
  width: 84%;
  margin: auto;
  font:
    18px/1.5 'Yu Mincho',
    serif;
  text-decoration: none;
  color: #ffe9ca;
  padding: 9px 15px;
  min-height: 48px;
  border: 4px double #e0b977;
  border-radius: 25px 7px;
  background: #802c2b url('assets/binding/leather.webp') center/210%;
  box-shadow:
    0 3px 0 #a76e40,
    0 5px 4px #7d4c2930;
}
#home .mobile-cafe-link span {
  margin-left: 12px;
}
#ch4u-book #home .spread-page-nav {
  margin-top: 9px;
  padding: 0 6px;
  font-size: 11px;
}
#home .spread-page-nav a {
  padding: 10px 0;
}
#ch4u-book #chapter-position {
  margin: 11px 40px 8px;
}
#ch4u-book #chapter-title {
  margin: 0 0 22px;
  font-size: 24px;
}
.chapter-back {
  position: relative;
  font-size: 11px;
  padding: 3px 7px;
  min-height: 36px;
  background: transparent;
  border: 0;
}
#chapter[data-chapter='cakes'] .chapter-back {
  position: absolute;
  bottom: 30px;
  left: 25px;
}
#chapter-content > img {
  max-width: 100%;
  border-radius: 10px;
}
#ch4u-book .cake-spread {
  padding: 18px 6px 14px;
  background: #ad6c32 url('assets/binding/wood.webp') center/cover;
  border: 6px ridge #b77d40;
  border-radius: 40% 40% 3px 3px / 9% 9% 3px 3px;
  perspective: 1000px;
  margin: 8px -5px 20px;
  box-shadow:
    inset 0 10px 20px #4d2b1860,
    0 7px 9px #5d351b4d;
}
#ch4u-book .cake-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 10px 0 8px;
  margin: 0 0 13px;
  background: transparent;
  border: 0;
  border-bottom: 10px ridge #cb9659;
  box-shadow: 0 7px 7px #51250e70;
  transform-style: preserve-3d;
}
#ch4u-book .cake-shelf:last-child {
  margin-bottom: 0;
}
#ch4u-book .cake-standee {
  height: auto;
  min-width: 0;
  color: #522a20;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-origin: 50% 100%;
}
#ch4u-book .cake-cutout {
  position: relative;
  width: 100%;
  height: clamp(95px, 28vw, 125px);
  overflow: visible;
  filter: drop-shadow(0 6px 3px #3c1c1270);
  background: none;
}
#ch4u-book .cake-cutout img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cake-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  padding: 4px 2px;
  font:
    11px/1.45 'Yu Mincho',
    serif;
  background: #f8e6c5;
  border: 3px double #b58049;
  border-radius: 8px 3px;
  box-shadow: 0 2px 1px #5a2f1660;
  overflow-wrap: anywhere;
}
#chapter-content > p {
  font:
    13px/1.7 'Yu Mincho',
    serif;
  text-align: center;
  margin: 12px 3px;
}
#ch4u-book .chapter-links .paper-link {
  margin: 10px auto;
  padding: 10px 14px;
  text-align: center;
  display: block;
  border: 3px double #d6af77;
  border-radius: 20px 6px;
  background: #7c2e2d url('assets/binding/leather.webp') center/210%;
  color: #ffedcf;
  font:
    17px/1.6 'Yu Mincho',
    serif;
  box-shadow: 0 3px 3px #68351e40;
}
#ch4u-book .chapter-links .paper-link small {
  font-size: 12px;
}
#ch4u-book .cake-reservation {
  display: block;
  margin: 10px auto;
  width: 85%;
  background: #f8e5c5;
  border: 3px double #b48149;
  border-radius: 8px;
  min-height: 44px;
}
#ch4u-book #chapter-content .product-note {
  font-size: 10px;
  line-height: 1.6;
  margin: 14px 8px;
}
#ch4u-book .chapter-navigation {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 3px 0;
  font-size: 11px;
}
#chapter[data-chapter='cakes'] .chapter-navigation {
  margin-top: 25px;
}
#ch4u-book #settings {
  position: absolute;
  z-index: 35;
  top: 66px;
  right: 12px;
  width: calc(100% - 24px);
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  padding: 20px;
  background: #f9e6c5 url('assets/binding/paper.webp') center/cover;
  box-shadow: 0 12px 40px #30181180;
  border: 3px double #c09056;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#settings .book-menu-title {
  grid-column: 1/-1;
  color: #643425;
  font-family: 'Yu Mincho', serif;
  margin: 5px 0;
}
#ch4u-book #settings nav {
  position: static;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1/-1;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  gap: 7px;
  transform: none;
}
#ch4u-book #settings nav a,
#ch4u-book #settings nav button {
  min-height: 44px;
  font-size: 12px;
  padding: 9px 3px;
}
#settings > button {
  min-height: 44px;
  padding: 8px 5px;
  font-size: 12px;
}
#settings :is(#motion-controls, #room-view-controls) {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#settings #room-view-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#settings :is(#motion-controls, #room-view-controls) button {
  min-height: 44px;
  padding: 4px 2px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#settings :is(#motion-controls, #room-view-controls) [aria-pressed='true'] {
  color: #fff3d9;
  background: #702c2d;
}
#settings :is(#motion-status, #room-view-status) {
  grid-column: 1/-1;
  margin: 0;
  color: #603522;
  font-size: 0.8125rem;
}
#settings #replay-home-motion {
  grid-column: 1/-1;
}
#ch4u-book #sheet {
  position: fixed;
  z-index: 45;
  top: 85px;
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(88vw, 400px);
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding: 22px;
  background: #f7e6c8 url('assets/binding/paper.webp') center/cover;
  border: 3px double #b7884d;
  border-radius: 15px;
  box-shadow: 0 12px 55px #321c1860;
}
#sheet h2 {
  font:
    23px/1.5 'Yu Mincho',
    serif;
}
#sheet .paper-link {
  background: #fff7e5b0;
  color: #603927;
}
#ch4u-book #skip-opening {
  bottom: 20px;
}
#ch4u-book.opening #cover {
  width: 100%;
  max-width: none;
  left: 0;
  margin: 0;
  top: 0;
}
#ch4u-book.opening #home {
  max-width: none;
}
#ch4u-book.readable #home .stage-clip {
  display: none;
}
#ch4u-book.readable #home .sign {
  position: static;
  display: block;
  margin: 10px;
}
#ch4u-book.readable #home .custom-sign,
#ch4u-book.readable #home .access-link {
  display: block;
}
@media (min-width: 800px) {
  #ch4u-book {
    margin-top: 30px;
  }
  #ch4u-book #cover,
  #ch4u-book #home,
  #ch4u-book #chapter {
    height: auto;
    min-height: 800px;
  }
  #ch4u-book #cover {
    height: 800px;
  }
  #home .scene-copy {
    grid-column: auto;
  }
}
@media (max-width: 374px) {
  #ch4u-book #home,
  #ch4u-book #chapter {
    padding-left: 20px;
    padding-right: 12px;
  }
  .brand-label #cover-title {
    font-size: 33px;
  }
  #ch4u-book .cover-copy {
    font-size: 16px;
  }
  #ch4u-book #open-book {
    font-size: 20px;
  }
  #home .scene-copy h1,
  #ch4u-book #chapter-title {
    font-size: 23px;
  }
  #ch4u-book .cake-label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ch4u-book:not(.allow-motion) * {
    animation: none !important;
    transition: none !important;
  }
}
/* Final optical and touch adjustments. */
#ch4u-book #settings-toggle {
  width: 44px;
  min-height: 44px;
}
.cherry-seal {
  top: 26%;
  left: 44%;
  width: 14%;
  height: 7%;
}
.cherry-seal::before,
.cherry-seal::after {
  display: none;
}
.cherry-seal svg {
  width: 100%;
  height: 100%;
}
.brand-label {
  border-radius: 35% 35% 35% 35% / 40% 40% 40% 40%;
}
#ch4u-book .cake-spread {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
#ch4u-book .cake-shelf {
  padding: 4px 0 6px;
  margin-bottom: 8px;
}
#ch4u-book .cake-cutout {
  height: clamp(88px, 25vw, 112px);
}
#ch4u-book .cake-label {
  font-size: 12px;
  letter-spacing: 0;
  min-height: 40px;
}
#chapter[data-chapter='cakes'] .chapter-back {
  display: none;
}
#ch4u-book .chapter-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
#ch4u-book .chapter-navigation a {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  background: none;
  font-size: 12px;
  flex: 0 1 auto;
}
#ch4u-book #chapter-content .product-note {
  font-size: 11px;
  line-height: 1.6;
  margin: 12px 6px 4px;
}
#ch4u-book #chapter-title {
  margin-bottom: 16px;
}
#ch4u-book #home-title,
#ch4u-book #chapter-title {
  color: #521c17;
  font-weight: 700;
}
#ch4u-book #home .spread-story,
#ch4u-book .cake-label {
  color: #4f2a1c;
  font-weight: 600;
}
#ch4u-book #open-book,
#ch4u-book #home .mobile-cafe-link,
#ch4u-book .chapter-links .paper-link,
#ch4u-book .cake-reservation {
  font-weight: 700;
}
#ch4u-book .cover-copy {
  font-size: 1.0625rem;
}
#ch4u-book #cover {
  min-height: max(690px, 43.125rem);
}
#ch4u-book .brand-label #cover-title {
  font-size: clamp(2.1rem, 9vw, 2.7rem);
}
#ch4u-book #home .spread-story {
  font-size: 0.875rem;
}
#ch4u-book .chapter-links .paper-link {
  font-size: 1.0625rem;
}
#ch4u-book .cake-label {
  font-size: 0.75rem;
}
#settings button,
#settings a {
  overflow-wrap: anywhere;
}
body {
  min-height: 100svh;
  background-attachment: fixed;
}
#ch4u-book:has(#home:not([hidden])) #settings-toggle {
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 24px;
  background: #f3d9a7;
}
#ch4u-book .brand-label h1 {
  font:
    bold clamp(33px, 9vw, 43px)/1.1 Georgia,
    serif;
  color: #732b28;
  letter-spacing: -1.5px;
  margin: 0;
}
#ch4u-book .cake-standee {
  display: grid;
  grid-template-rows: clamp(88px, 25vw, 112px) 1fr;
}
#ch4u-book .cake-label {
  text-wrap: balance;
}
#ch4u-book .cake-reservation {
  font-size: 1rem;
}
#ch4u-book.large-text .brand-label {
  left: 6%;
  width: 88%;
  padding-left: 3%;
  padding-right: 3%;
}
#ch4u-book.large-text .brand-label h1 {
  font-size: 2rem;
}
#ch4u-book.large-text #home-title,
#ch4u-book.large-text #chapter-title {
  font-size: 1.5rem;
}
#ch4u-book.large-text #open-book {
  font-size: 1.25rem;
  width: 78%;
  left: 11%;
}
#ch4u-book.large-text #open-book small {
  font-size: 0.75rem;
}

/* The paper and flower cutouts sit in front of the unchanged shop photo. */
#ch4u-book #home .store-stage {
  isolation: isolate;
}
#ch4u-book #home .paper-foreground {
  transform-origin: 50% 100%;
}
#ch4u-book #home .paper-foreground-back {
  height: 15%;
  z-index: 1;
  fill: #dda977;
  filter: drop-shadow(0 -4px 4px #46291259);
}
#ch4u-book #home .paper-foreground-front {
  height: 13%;
  z-index: 3;
  fill: #f8e4be;
  filter: drop-shadow(0 -2px 1px #48341465);
}
#home .paper-garden {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  width: 36%;
  pointer-events: none;
  transform-origin: 50% 94%;
  filter: drop-shadow(2px 5px 3px #38281377);
}
#home .paper-garden-left {
  left: 0;
}
#home .paper-garden-right {
  right: 0;
  width: 28%;
}
#home .paper-garden img {
  display: block;
  width: 100%;
  height: auto;
}
#home .paper-garden-right img {
  transform: scaleX(-1);
}
/* Ambient motion uses the visible artwork, separate from the entry hinges. */
#ch4u-book.room-idle .paper-garden img {
  transform-origin: 50% 95%;
  animation: ch4u-paper-breeze 7.8s ease-in-out infinite;
}
#ch4u-book.room-idle .paper-garden-right img {
  animation-delay: -2.7s;
}
#ch4u-book.room-idle
  :is([data-part='HM26'], [data-part='HM27'], [data-part^='HM28-lamp-'])
  > .entry-hinge
  > .part-reaction
  > .part-front-plane
  > .part-face {
  animation: ch4u-lamp-glow 6.4s ease-in-out infinite;
}
#ch4u-book.room-idle [data-part='HM27'] > .entry-hinge > .part-reaction {
  animation: ch4u-pendant-sway 9s ease-in-out infinite;
}
@keyframes ch4u-paper-breeze {
  0%,
  100% {
    rotate: -1.1deg;
  }
  50% {
    rotate: 1.5deg;
  }
}
@keyframes ch4u-lamp-glow {
  0%,
  100% {
    filter: brightness(0.97);
  }
  50% {
    filter: brightness(1.18);
  }
}
@keyframes ch4u-pendant-sway {
  0%,
  100% {
    rotate: -0.65deg;
  }
  50% {
    rotate: 0.8deg;
  }
}
#ch4u-book #home .store-stage .sign {
  z-index: 4;
}
#ch4u-book.readable #home .paper-garden {
  display: none;
}
#ch4u-book #home .spread-page-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

#ch4u-book .cake-cutout {
  isolation: isolate;
  filter: none;
}
#ch4u-book .cake-cutout::before,
#ch4u-book .cake-cutout::after {
  content: '';
  position: absolute;
  bottom: 4%;
  pointer-events: none;
}
#ch4u-book .cake-cutout::before {
  inset-inline: 5%;
  height: 15%;
  border-radius: 50%;
  background: #352013a6;
  filter: blur(4px);
  z-index: -2;
}
#ch4u-book .cake-cutout::after {
  inset-inline: 5%;
  height: 14%;
  border: 2px dotted #d7ae7c;
  border-radius: 50%;
  background: #f9edd6;
  box-shadow: 0 2px 1px #3d201885;
  z-index: -1;
}
#ch4u-book .cake-cutout img {
  object-position: center bottom;
  padding-bottom: 5%;
  filter: drop-shadow(1px 3px 2px #39201569);
}
#ch4u-book .cake-label {
  min-height: 44px;
  margin: 0 2px;
  padding: 4px 3px;
  border-radius: 8px / 12px;
  background: #fae7c6 url('assets/binding/paper.webp') center/240% auto;
  box-shadow:
    inset 0 0 0 1px #fdf0d8,
    0 2px 0 #835636,
    0 4px 3px #46260c63;
}
