/** Shopify CDN: Minification failed

Line 154:26 Unexpected ";"
Line 851:13 Expected identifier but found whitespace
Line 851:14 Unexpected "rgba("
Line 875:13 Expected identifier but found whitespace
Line 875:14 Unexpected "linear-gradient("
Line 1984:0 Unexpected "<"
Line 1985:3 Unexpected "{"
Line 1985:12 Expected ":"
Line 1986:0 Unexpected "<"

**/
body{

margin:0;

}

.storybook{

height:100vh;

display:flex;

justify-content:center;

align-items:center;

background:#1a120d;

}

.book{

position:relative;

width:500px;

}

.cover-image{

width:100%;

display:block;

}

.cover-text{

position:absolute;

top:50%;

left:50%;

transform:translate(-50%,-50%);

text-align:center;

color:#d4af37;

}

.cover-text h1{

font-size:58px;

margin:0;

}

.cover-text p{

letter-spacing:3px;

margin:15px 0;

}

button{

padding:15px 40px;

background:#d4af37;

border:none;

border-radius:40px;

cursor:pointer;

font-size:18px;

}
.storybook-rooms {
padding: 60px 20px;
text-align:center;
}

.rooms-grid {
display:grid;
grid-template-columns:repeat(2,1fr);
gap:30px;
}

.room-card {
height:350px;
background-size:cover;
background-position:center;
border-radius:20px;
overflow:hidden;
display:flex;
align-items:end;
text-decoration:none;
}

.storybook-harvest {
background-image:url('/cdn/shop/files/storybook-harvest.png?v=1785438091');
}

.enchanted-orchard {
background-image:url('/cdn/shop/files/enchanted-orchard.png?v=1785435897');
}

.pumpkin-spice-cafe {
background-image:url('/cdn/shop/files/pumpkin-spice-cafe.png?v=1785448141');
}

.spooky-forest {
background-image:url('/cdn/shop/files/spooky-forest.png?v=1785449260');

.southern-charm {
  background-image: url('/cdn/shop/files/southern-charm.png?v=1788215590');
}

.midwest-farmhouse {
  background-image: url('/cdn/shop/files/midwest-farmhouse.png?v=1788215580');
}
}
.greatest-story {
  background-image: url('/cdn/shop/files/the-greatest-story-ever-told.png?v=1785457708');
}

.over-the-rainbow {
  background-image: url('/cdn/shop/files/over-the-rainbow-chapter.png?v=1785457752');
}

.magical-apothecary {
  background-image: url('/cdn/shop/files/magical-apothecary.png?v=1785459970');
}

background:rgba(0,0,0,.45);
color:white;
padding:30px;
width:100%;
}

.room-overlay span {
display:inline-block;
margin-top:15px;
padding:10px 20px;
background:#d89b3c;
border-radius:20px;
}
.storybook-chapter {
background:#f4ead8;
padding:60px 20px;
font-family:Georgia, serif;
}

.chapter-hero {
min-height:600px;
background-size:cover;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
position:relative;
border-radius:20px;
overflow:hidden;
}

.chapter-overlay {
background:rgba(44,31,20,.65);
padding:50px;
max-width:600px;
text-align:center;
color:#f8edd7;
border:1px solid rgba(212,170,90,.5);
}

.chapter-overlay h1 {
font-size:48px;
margin-bottom:20px;
}

.chapter-overlay p {
font-size:20px;
line-height:1.7;
}

.chapter-button {
display:inline-block;
margin-top:25px;
padding:14px 30px;
background:#b8863b;
color:white;
text-decoration:none;
border-radius:30px;
font-size:18px;
}


.chapter-products {
padding:50px 0;
text-align:center;
}

.chapter-products h2 {
font-size:36px;
color:#3b2a1c;
}

.chapter-product {
display:inline-block;
width:220px;
margin:20px;
vertical-align:top;
}

.chapter-product img {
width:100%;
border-radius:10px;
}

.chapter-product h3 {
color:#3b2a1c;
}
.chapter-hero {
min-height:700px;
background-size:85%;
background-repeat:no-repeat;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
position:relative;
background-color:#e8dcc6;
}

.chapter-hero:before {
content:"";
position:absolute;
inset:0;
background:rgba(40,25,15,.45);
}

.chapter-overlay {
position:relative;
z-index:1;
background:#f4ead8;
padding:50px;
max-width:600px;
text-align:center;
border:2px solid #b89b5e;
box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.chapter-overlay h1 {
font-family:Georgia, serif;
font-size:52px;
color:#3b2a1c;
}

.chapter-overlay p {
font-style:italic;
color:#5a4430;
font-size:22px;
}

.chapter-button {
background:#6b4b2a;
color:#fff;
padding:15px 35px;
border-radius:0;
display:inline-block;
margin-top:25px;
text-decoration:none;
}
.chapter-overlay {
background:#f5ead7;
border:8px double #b89b5e;
box-shadow:
0 20px 50px rgba(0,0,0,.35),
inset 0 0 30px rgba(120,80,30,.15);
padding:45px;
max-width:600px;
position:relative;
}

.chapter-overlay {
background: rgba(245, 234, 215, 0.88);
border:8px double #b89b5e;
box-shadow:
0 20px 50px rgba(0,0,0,.35),
inset 0 0 25px rgba(120,80,30,.15);
padding:50px;
max-width:600px;
position:relative;
}

.chapter-icon {
  margin-top: -75px;
  margin-bottom: 15px;
  font-size: 45px;
  line-height: 1;
  text-align: center;
}

.chapter-overlay h1 {
font-family:Georgia, serif;
font-size:48px;
color:#3b281b;
}

.chapter-overlay p {
font-family:"Times New Roman", serif;
font-style:italic;
font-size:22px;
line-height:1.8;
color:#5a4632;
}
.chapter-overlay {
animation: orchardGlow 4s ease-in-out infinite alternate;
}

@keyframes orchardGlow {
from {
box-shadow:0 20px 50px rgba(0,0,0,.35);
}

to {
box-shadow:0 20px 60px rgba(190,150,70,.45);
}
}
.chapter-button {
transition:.3s ease;
}

.chapter-button:hover {
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.chapter-overlay {
  animation: chapterReveal 1.2s ease-out both;
}

@keyframes chapterReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.chapter-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(184, 134, 59, 0);
}

.chapter-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(212, 170, 90, 0.55);
}
.chapter-overlay {
  border-radius: 4px;
  background:
    linear-gradient(
      rgba(250, 246, 236, 0.94),
      rgba(243, 235, 218, 0.94)
    );
  max-width: 520px;
  padding: 40px;
}
html {
  scroll-behavior: smooth;
}

#chapter-treasures {
  scroll-margin-top: 40px;
}
.chapter-products {
  padding: 70px 24px 90px;
  background:
    linear-gradient(rgba(247, 240, 226, 0.96), rgba(238, 225, 202, 0.96));
  text-align: center;
}

.chapter-products h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  color: #3d2b1f;
  margin: 0 0 45px;
  letter-spacing: 0.5px;
}

.chapter-products h2::before,
.chapter-products h2::after {
  content: "✦";
  margin: 0 12px;
  color: #a67c3f;
  font-size: 20px;
}

.chapter-product {
  display: inline-block;
  width: 230px;
  margin: 18px;
  padding: 14px 14px 22px;
  vertical-align: top;
  background: rgba(255, 250, 239, 0.92);
  border: 1px solid #c9ad79;
  box-shadow: 0 12px 28px rgba(58, 38, 22, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-product:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(58, 38, 22, 0.24);
}

.chapter-product a {
  color: #3d2b1f;
  text-decoration: none;
}

.chapter-product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.chapter-product h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
  margin: 16px 4px 0;
  color: #3d2b1f;
}
.chapter-product-price {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 17px;
  color: #8a6235;
  font-weight: bold;
}
.chapter-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 990px) {
  .chapter-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 550px) {
  .chapter-products-grid {
    grid-template-columns: 1fr;
  }
}
html {
  scroll-behavior: smooth;
}

#enchanted-orchard-chapter {
  scroll-margin-top: 30px;
}
html {
  scroll-behavior: smooth;
}

.storybook-chapter {
  scroll-margin-top: 30px;
}
/* =================================
   STORYBOOK COVER
================================= */

.storybook-cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow: hidden;
  background: #1a120d;
  perspective: 1800px;
}

.storybook-cover .book {
  position: relative;
  width: min(800px, 100%);
  transform-style: preserve-3d;
  transform-origin: left center;
  transition:
    opacity 0.5s ease 0.85s,
    transform 0.5s ease 0.85s;
}

.storybook-cover .cover-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  transform-origin: left center;
  transition:
    transform 1.25s cubic-bezier(0.65, 0, 0.2, 1),
    filter 0.8s ease;
}

.storybook-cover .cover-text {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;
  padding: 12% 16%;
  margin: 0;
  box-sizing: border-box;

  color: #d9b85f;
  text-align: center;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(210, 170, 70, 0.35);

  transform: rotateY(0deg);
  transform-origin: left center;
  backface-visibility: hidden;

  transition:
    transform 1.25s cubic-bezier(0.65, 0, 0.2, 1),
    opacity 0.45s ease;

  pointer-events: none;
}

.storybook-cover .cover-text h1 {
  max-width: 100%;
  margin: 0;

  color: #d8b86b;
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 700;

  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 215, 120, 0.35);
}

.storybook-cover .cover-subtitle {
  max-width: 100%;
  margin: 12px 0 0;

  font-family: Georgia, serif;
  font-size: clamp(16px, 2vw, 23px);
  font-style: italic;
  letter-spacing: 3px;
}

.storybook-cover .cover-intro {
  max-width: 330px;
  margin: 16px auto 24px;

  color: #eadba8;
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.5;
  letter-spacing: 1px;
}

.storybook-cover #open-book {
  position: relative;
  z-index: 6;

  padding: 13px 28px;
  border: 1px solid #4d3416;
  border-radius: 6px;

  background: linear-gradient(#d0aa50, #9d7126);
  color: #241506;

  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  pointer-events: auto;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.storybook-cover #open-book:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.storybook-cover #open-book:disabled {
  cursor: default;
}

/* =================================
   TURNING PARCHMENT PAGE
================================= */

.turning-page {
  position: absolute;
  inset: 7% 9% 8% 10%;
  z-index: 2;

  pointer-events: none;
  opacity: 0;

  border-radius: 4px 12px 12px 4px;

  background:
    linear-gradient(
      90deg,
      rgba(76, 49, 23, 0.25),
      transparent 11%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(106, 75, 37, 0.035) 0,
      rgba(106, 75, 37, 0.035) 1px,
      transparent 1px,
      transparent 4px
    ),
    #eee0b8;

  box-shadow:
    inset 16px 0 20px rgba(70, 40, 15, 0.18),
    5px 6px 18px rgba(0, 0, 0, 0.32);

  transform: rotateY(0deg);
  transform-origin: left center;
  backface-visibility: hidden;
}

/* =================================
   OPENING ANIMATION
================================= */

.storybook-cover.is-opening .cover-image {
  transform: rotateY(-105deg);
  filter: brightness(0.65);
}

.storybook-cover.is-opening .cover-text {
  transform: rotateY(-105deg);
  opacity: 0;
}

.storybook-cover.is-opening .turning-page {
  opacity: 1;
  animation:
    storybook-page-turn 1.15s
    cubic-bezier(0.65, 0, 0.2, 1)
    forwards;
}

.storybook-cover.is-open .book {
  opacity: 0;
  transform: scale(0.96);
}

@keyframes storybook-page-turn {
  0% {
    transform: rotateY(0deg);
  }

  45% {
    transform: rotateY(-65deg);

    box-shadow:
      inset 35px 0 28px rgba(70, 40, 15, 0.24),
      15px 8px 26px rgba(0, 0, 0, 0.38);
  }

  100% {
    transform: rotateY(-165deg);

    box-shadow:
      inset 8px 0 12px rgba(70, 40, 15, 0.14),
      2px 5px 10px rgba(0, 0, 0, 0.18);
  }
}

/* =================================
   MOBILE COVER
================================= */

@media screen and (max-width: 749px) {
  .storybook-cover {
    padding: 20px 8px;
    perspective: 1200px;
  }

  .storybook-cover .cover-text {
    padding: 13% 14%;
  }

  .storybook-cover .cover-text h1 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .storybook-cover .cover-subtitle {
    margin-top: 8px;
    font-size: 15px;
    letter-spacing: 2px;
  }

  .storybook-cover .cover-intro {
    margin: 10px auto 14px;
    font-size: 12px;
  }

  .storybook-cover #open-book {
    padding: 10px 18px;
    font-size: 13px;
  }

  .turning-page {
    inset: 7% 8% 8% 9%;
  }
}

/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {
  .storybook-cover .book,
  .storybook-cover .cover-image,
  .storybook-cover .cover-text {
    transition-duration: 0.01ms;
  }

  .storybook-cover.is-opening .turning-page {
    animation: none;
  }
}
/* =================================
   TABLE OF CONTENTS ANIMATION
================================= */

.storybook-rooms {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.storybook-rooms.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.storybook-rooms .room-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    box-shadow 0.3s ease;
}

.storybook-rooms.is-visible .room-card {
  opacity: 1;
  transform: translateY(0);
}

.storybook-rooms.is-visible .room-card:nth-child(1) {
  transition-delay: 0.1s;
}

.storybook-rooms.is-visible .room-card:nth-child(2) {
  transition-delay: 0.25s;
}

.storybook-rooms.is-visible .room-card:nth-child(3) {
  transition-delay: 0.4s;
}

.storybook-rooms.is-visible .room-card:nth-child(4) {
  transition-delay: 0.55s;
}

.storybook-rooms .room-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px rgba(45, 29, 15, 0.25);
}

.storybook-rooms.is-leaving {
  opacity: 0;
  transform: translateY(-25px);

  #storybook-rooms {
  scroll-margin-top: 30px;
}
/* Keep rooms visible inside Shopify Theme Editor */
html.shopify-design-mode .storybook-rooms {
  opacity: 1;
  transform: none;
}
/* Chapter-specific overlays */

  background: rgba(74, 44, 14, 0.42);
}

  background: rgba(35, 66, 28, 0.35);
}

  background: rgba(82, 42, 16, 0.42);
}

  background: rgba(12, 16, 26, 0.55);
}
/* Room card typography */

.room-overlay h3 {
  color: #f7e8c5;
  font-family: Georgia, serif;
  font-size: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.room-overlay p {
  color: #fff7ea;
  font-style: italic;
  font-size: 18px;
}
/* Soft blended room overlays */

  background: linear-gradient(
    to top,
    rgba(20, 12, 8, 0.82) 0%,
    rgba(20, 12, 8, 0.5) 45%,
    rgba(20, 12, 8, 0.08) 100%
  );

  padding: 70px 30px 28px;
  width: 100%;
  box-sizing: border-box;
}
  background: linear-gradient(
    to top,
    rgba(83, 48, 14, 0.82) 0%,
    rgba(83, 48, 14, 0.46) 48%,
    rgba(83, 48, 14, 0.04) 100%
  );
}

  background: linear-gradient(
    to top,
    rgba(40, 72, 34, 0.78) 0%,
    rgba(40, 72, 34, 0.42) 48%,
    rgba(40, 72, 34, 0.04) 100%
  );
}

  background: linear-gradient(
    to top,
    rgba(92, 42, 15, 0.84) 0%,
    rgba(92, 42, 15, 0.46) 48%,
    rgba(92, 42, 15, 0.04) 100%
  );
}

  background: linear-gradient(
    to top,
    rgba(11, 13, 25, 0.9) 0%,
    rgba(28, 20, 45, 0.5) 48%,
    rgba(28, 20, 45, 0.04) 100%
  );
}
.room-overlay h3 {
  margin: 0 0 10px;
  color: #f7e8c5;
  font-family: Georgia, serif;
  font-size: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.room-overlay p {
  margin: 0;
  color: #fff7ea;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
/* Clean room overlays */

.room-overlay {
  width: 100%;
  padding: 80px 30px 28px;
  box-sizing: border-box;
  background: linear-gradient(
    to top,
    rgba(20, 12, 8, 0.88) 0%,
    rgba(20, 12, 8, 0.52) 45%,
    rgba(20, 12, 8, 0.08) 100%
  );
}

.storybook-harvest .room-overlay {
  background: linear-gradient(
    to top,
    rgba(83, 48, 14, 0.88) 0%,
    rgba(83, 48, 14, 0.48) 45%,
    rgba(83, 48, 14, 0.06) 100%
  );
}

.enchanted-orchard .room-overlay {
  background: linear-gradient(
    to top,
    rgba(40, 72, 34, 0.84) 0%,
    rgba(40, 72, 34, 0.44) 45%,
    rgba(40, 72, 34, 0.06) 100%
  );
}

.pumpkin-cafe .room-overlay {
  background: linear-gradient(
    to top,
    rgba(92, 42, 15, 0.88) 0%,
    rgba(92, 42, 15, 0.48) 45%,
    rgba(92, 42, 15, 0.06) 100%
  );
}

.spooky-forest .room-overlay {
  background: linear-gradient(
    to top,
    rgba(11, 13, 25, 0.92) 0%,
    rgba(28, 20, 45, 0.52) 45%,
    rgba(28, 20, 45, 0.06) 100%
  );
}
/* Room card chapter titles */

.room-overlay h3 {
  color: #d8b86b !important;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}
.room-overlay span {
  color: white !important;
}

.room-card {
  color: inherit;
}
/* =================================
   CHAPTER CARD POLISH
================================= */

.room-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.room-card .room-overlay {
  position: relative;
  z-index: 1;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 38px rgba(44, 27, 14, 0.28),
    0 0 20px rgba(196, 151, 72, 0.18);
}

.room-card:hover::before {
  transform: scale(1.05);
}

.room-card:hover .room-overlay {
  filter: brightness(1.08);
}

.room-card .room-overlay span {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.room-card:hover .room-overlay span {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(212, 175, 85, 0.35);
}
/* Storybook chapter buttons */

.room-overlay span {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 28px;

  background: linear-gradient(
    to bottom,
    #e7c97a,
    #b8863b
  );

  color: #2f1d09 !important;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;

  border: 1px solid #8b672f;
  border-radius: 30px;

  box-shadow:
    0 6px 15px rgba(0,0,0,.28),
    inset 0 1px 1px rgba(255,255,255,.45);

  transition: all .3s ease;
}

.room-card:hover .room-overlay span {
  background: linear-gradient(
    to bottom,
    #f3d88c,
    #c99845
  );

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(0,0,0,.32),
    0 0 18px rgba(227,185,92,.45);
}
/* 🌾 Storybook Harvest */

.storybook-harvest .room-overlay span{
    background:linear-gradient(#efd48b,#b8863b);
    color:#2f1d09;
    border:1px solid #8b672f;
}


/* 🍎 Enchanted Orchard */

.enchanted-orchard .room-overlay span{
    background:linear-gradient(#9dcf78,#5f8d3b);
    color:white;
    border:1px solid #4d7132;
}


/* ☕ Pumpkin Spice Cafe */

.pumpkin-cafe .room-overlay span{
    background:linear-gradient(#f0a04b,#b8611f);
    color:white;
    border:1px solid #8d4a14;
}


/* 🌙 Spooky Forest */

.spooky-forest .room-overlay span{
    background:linear-gradient(#6e5aa7,#3f315f);
    color:white;
    border:1px solid #2b2143;
}
.storybook-harvest:hover .room-overlay span{
    box-shadow:0 0 18px rgba(230,190,85,.55);
}

.enchanted-orchard:hover .room-overlay span{
    box-shadow:0 0 18px rgba(116,183,88,.55);
}

.pumpkin-cafe:hover .room-overlay span{
    box-shadow:0 0 18px rgba(233,137,58,.55);
}

.spooky-forest:hover .room-overlay span{
    box-shadow:0 0 18px rgba(126,98,197,.55);
}
/* =================================
   CHAPTER REVEAL ON SCROLL
================================= */

.storybook-chapter {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.storybook-chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.shopify-design-mode .storybook-chapter {
  opacity: 1;
  transform: none;
}
/* =================================
   SPOOKY FOREST FIREFLIES
================================= */

#spooky-forest-chapter {
  position: relative;
  overflow: hidden;
}

.spooky-fireflies {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.spooky-fireflies span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd978;
  box-shadow:
    0 0 8px rgba(255, 217, 120, 0.95),
    0 0 18px rgba(255, 180, 70, 0.65);
  opacity: 0;
  animation: spooky-firefly 6s ease-in-out infinite;
}

.spooky-fireflies span:nth-child(1) {
  left: 12%;
  top: 72%;
  animation-delay: 0s;
}

.spooky-fireflies span:nth-child(2) {
  left: 24%;
  top: 42%;
  animation-delay: 1.2s;
}

.spooky-fireflies span:nth-child(3) {
  left: 43%;
  top: 65%;
  animation-delay: 2.1s;
}

.spooky-fireflies span:nth-child(4) {
  left: 61%;
  top: 36%;
  animation-delay: 0.8s;
}

.spooky-fireflies span:nth-child(5) {
  left: 76%;
  top: 58%;
  animation-delay: 2.8s;
}

.spooky-fireflies span:nth-child(6) {
  left: 88%;
  top: 28%;
  animation-delay: 1.7s;
}

@keyframes spooky-firefly {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.7);
  }

  25% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.45;
    transform: translate(18px, -18px) scale(1);
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-10px, -35px) scale(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spooky-fireflies span {
    animation: none;
    opacity: 0.55;
  }
}
/* =================================
   ENCHANTED ORCHARD SPARKLES
================================= */

#enchanted-orchard-chapter {
  position: relative;
  overflow: hidden;
}

.orchard-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.orchard-sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff2b8;
  box-shadow:
    0 0 8px rgba(255, 238, 170, 0.95),
    0 0 16px rgba(255, 205, 100, 0.6);
  opacity: 0;
  animation: orchard-twinkle 4.5s ease-in-out infinite;
}

.orchard-sparkles span:nth-child(1) {
  left: 16%;
  top: 25%;
  animation-delay: 0s;
}

.orchard-sparkles span:nth-child(2) {
  left: 30%;
  top: 58%;
  animation-delay: 0.9s;
}

.orchard-sparkles span:nth-child(3) {
  left: 46%;
  top: 34%;
  animation-delay: 1.8s;
}

.orchard-sparkles span:nth-child(4) {
  left: 62%;
  top: 66%;
  animation-delay: 0.5s;
}

.orchard-sparkles span:nth-child(5) {
  left: 78%;
  top: 28%;
  animation-delay: 2.2s;
}

.orchard-sparkles span:nth-child(6) {
  left: 88%;
  top: 52%;
  animation-delay: 1.2s;
}

@keyframes orchard-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  45% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  60% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orchard-sparkles span {
    animation: none;
    opacity: 0.45;
  }
}
/* =================================
   PUMPKIN SPICE CAFE GLOW
================================= */

#pumpkin-spice-cafe-chapter {
  position: relative;
  overflow: hidden;
}

.cafe-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 22% 38%,
      rgba(255, 191, 92, 0.28),
      transparent 26%
    ),
    radial-gradient(
      circle at 78% 48%,
      rgba(255, 145, 55, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 82%,
      rgba(255, 205, 120, 0.18),
      transparent 34%
    );

  mix-blend-mode: screen;
  opacity: 0.7;

  animation: cafe-candle-glow 4.5s ease-in-out infinite alternate;
}

@keyframes cafe-candle-glow {
  0% {
    opacity: 0.45;
    transform: scale(1);
    filter: brightness(0.95);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.015);
    filter: brightness(1.08);
  }

  100% {
    opacity: 0.58;
    transform: scale(1.005);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cafe-glow {
    animation: none;
    opacity: 0.55;
  }
}
/* =================================
   STORYBOOK HARVEST FALLING LEAVES
================================= */

#storybook-harvest-chapter {
  position: relative;
  overflow: hidden;
}

.harvest-leaves {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.harvest-leaves span {
  position: absolute;
  top: -10%;
  font-size: 22px;
  opacity: 0;
  animation: harvest-leaf-fall 9s linear infinite;
}

.harvest-leaves span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.harvest-leaves span:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
  font-size: 18px;
}

.harvest-leaves span:nth-child(3) {
  left: 52%;
  animation-delay: 4s;
  font-size: 24px;
}

.harvest-leaves span:nth-child(4) {
  left: 72%;
  animation-delay: 1s;
  font-size: 20px;
}

.harvest-leaves span:nth-child(5) {
  left: 88%;
  animation-delay: 5s;
  font-size: 17px;
}

@keyframes harvest-leaf-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(0) rotate(0deg);
  }

  10% {
    opacity: 0.85;
  }

  50% {
    transform: translateY(50vh) translateX(35px) rotate(180deg);
  }

  90% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translateY(110vh) translateX(-25px) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .harvest-leaves span {
    animation: none;
    opacity: 0;
  }
}
/* =================================
   STORYBOOK PRODUCT CARDS — CUSTOM
================================= */

.storybook-chapter .chapter-product {
  position: relative;
  overflow: hidden;

  background: rgba(250, 242, 220, 0.97);
  border: 1px solid rgba(117, 82, 42, 0.45);
  border-radius: 16px;

  box-shadow:
    0 8px 24px rgba(38, 24, 12, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.storybook-chapter .chapter-product:hover {
  transform: translateY(-8px);

  box-shadow:
    0 16px 34px rgba(38, 24, 12, 0.32),
    0 0 22px rgba(216, 184, 107, 0.3);
}


/* PRODUCT IMAGE */

.storybook-chapter .chapter-product img {
  display: block;
  width: 100%;
  transition:
    transform 0.65s ease,
    filter 0.4s ease;
}

.storybook-chapter .chapter-product:hover img {
  transform: scale(1.06);
  filter: brightness(1.04);
}


/* PRODUCT TITLE */

.storybook-chapter .chapter-product h3,
.storybook-chapter .chapter-product-title {
  padding: 14px 14px 4px;
  margin: 0;

  color: #3c2918;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.storybook-chapter .chapter-product a {
  color: #3c2918;
  text-decoration: none;
}


/* PRODUCT PRICE */

.storybook-chapter .chapter-product-price {
  margin: 6px 0 16px;
  color: #8a5e24;
  font-weight: 700;
}


/* GOLDEN SHINE */

.storybook-chapter .chapter-product::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;

  pointer-events: none;

  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 244, 198, 0.3),
    transparent
  );

  transform: skewX(-18deg);
  transition: left 0.75s ease;
}

.storybook-chapter .chapter-product:hover::after {
  left: 145%;
}
/* =================================
   STORYBOOK DIVIDER PAGE
================================= */

.storybook-divider {
  background: #f6edd9;
  padding: 120px 20px;
  text-align: center;
  position: relative;
}

.divider-page {
  max-width: 700px;
  margin: auto;
  padding: 70px 40px;

  background:
    linear-gradient(
      rgba(255,255,255,.28),
      rgba(255,255,255,.15)
    );

  border: 2px solid rgba(120,86,45,.25);
  border-radius: 10px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.15);
}

.divider-number{
  text-transform:uppercase;
  letter-spacing:4px;
  color:#8d6b37;
  font-size:.9rem;
}

.divider-icon{
  font-size:54px;
  margin:25px 0;
}

.divider-page h2{
  font-size:3rem;
  color:#503517;
  margin-bottom:25px;
  font-family:Georgia,serif;
}

.divider-quote{
  font-size:1.25rem;
  font-style:italic;
  color:#6a5130;
  line-height:1.8;
}
/* =================================
   ANTIQUE STORYBOOK DIVIDERS
================================= */

.storybook-divider {
  position: relative;
  padding: 110px 20px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      #f7edd5 0%,
      #ead7ae 62%,
      #c8a56d 100%
    );
}

.divider-page {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 75px 45px;

  text-align: center;

  background:
    linear-gradient(
      rgba(255, 252, 235, 0.76),
      rgba(235, 213, 170, 0.72)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(95, 62, 31, 0.025) 0,
      rgba(95, 62, 31, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );

  border: 1px solid rgba(102, 67, 32, 0.42);
  border-radius: 8px;

  box-shadow:
    0 18px 50px rgba(52, 31, 13, 0.27),
    inset 0 0 45px rgba(112, 72, 30, 0.18);

  opacity: 0;
  transform:
    perspective(900px)
    rotateY(-7deg)
    translateY(35px)
    scale(0.97);

  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.divider-page.is-visible {
  opacity: 1;
  transform:
    perspective(900px)
    rotateY(0)
    translateY(0)
    scale(1);
}


/* Worn paper edges */

.divider-page::before {
  content: "";
  position: absolute;
  inset: 10px;

  pointer-events: none;
  border: 1px solid rgba(110, 73, 36, 0.28);

  box-shadow:
    inset 0 0 28px rgba(86, 52, 22, 0.16);
}


/* Decorative divider flourish */

.divider-page::after {
  content: "❦";
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

  color: #8d6a34;
  font-size: 30px;
  opacity: 0.75;
}


/* Corner flourishes */

.divider-page .divider-corner {
  position: absolute;
  color: #8d6a34;
  font-family: Georgia, serif;
  font-size: 30px;
  opacity: 0.7;
}

.divider-page .corner-top-left {
  top: 22px;
  left: 25px;
}

.divider-page .corner-top-right {
  top: 22px;
  right: 25px;
  transform: scaleX(-1);
}

.divider-page .corner-bottom-left {
  bottom: 22px;
  left: 25px;
  transform: scaleY(-1);
}

.divider-page .corner-bottom-right {
  right: 25px;
  bottom: 22px;
  transform: scale(-1);
}


/* Divider text */

.divider-number {
  margin: 0 0 18px;

  color: #8b6734;
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.divider-icon {
  margin: 18px 0;
  font-size: 52px;
}

.divider-page h2 {
  margin: 0 0 24px;

  color: #4d3218;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
}

.divider-quote {
  max-width: 520px;
  margin: 0 auto;

  color: #69502e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.75;
}


/* Mobile adjustments */

@media screen and (max-width: 749px) {
  .storybook-divider {
    padding: 70px 16px;
  }

  .divider-page {
    padding: 60px 24px;
  }

  .divider-page .divider-corner {
    font-size: 23px;
  }

  .divider-page h2 {
    font-size: 2.4rem;
  }

  .divider-quote {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .divider-page {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
html.shopify-design-mode .divider-page {
  opacity: 1;
  transform: none;
}
/* =================================
   GOLD SHIMMER CHAPTER TITLES
================================= */

.storybook-chapter h2,
.divider-page h2 {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.storybook-chapter h2::after,
.divider-page h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 70%;
  height: 100%;

  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 235, 170, 0.2),
    rgba(255, 223, 120, 0.75),
    rgba(255, 245, 205, 0.25),
    transparent
  );

  transform: skewX(-20deg);
  pointer-events: none;
}

.storybook-chapter.is-visible h2::after,
.divider-page.is-visible h2::after {
  animation: storybook-title-shimmer 1.6s ease 0.5s forwards;
}

@keyframes storybook-title-shimmer {
  from {
    left: -140%;
  }

  to {
    left: 160%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-chapter h2::after,
  .divider-page h2::after {
    display: none;
  }
}
/* =================================
   ANTIQUE CHAPTER STORY PANEL
================================= */

.storybook-chapter .chapter-story,
.storybook-chapter .chapter-text {
  position: relative;
  max-width: 720px;
  margin: 0 auto 42px;
  padding: 34px 38px;

  background:
    linear-gradient(
      rgba(255, 250, 232, 0.92),
      rgba(236, 216, 178, 0.9)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(92, 61, 31, 0.025) 0,
      rgba(92, 61, 31, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );

  border: 1px solid rgba(105, 72, 38, 0.4);
  border-radius: 12px;

  box-shadow:
    0 16px 38px rgba(34, 22, 10, 0.28),
    inset 0 0 28px rgba(110, 72, 30, 0.12);

  color: #4f3822;
  backdrop-filter: blur(2px);
}

.storybook-chapter .chapter-story::before,
.storybook-chapter .chapter-text::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(113, 77, 39, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.storybook-chapter .chapter-story p,
.storybook-chapter .chapter-text p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4f3822;
}

@media screen and (max-width: 749px) {
  .storybook-chapter .chapter-story,
  .storybook-chapter .chapter-text {
    margin-bottom: 30px;
    padding: 26px 24px;
  }

  .storybook-chapter .chapter-story p,
  .storybook-chapter .chapter-text p {
    font-size: 1.05rem;
  }
}
<p class="chapter-story-text">
  {{ section.settings.story }}
</p>
/* =================================
   STORYBOOK ENDING PAGE
================================= */

.storybook-ending {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;

  background:
    radial-gradient(
      circle at center,
      #f7edd5 0%,
      #ead7ae 62%,
      #c8a56d 100%
    );
}

.ending-page {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 82px 46px;
  text-align: center;

  background:
    linear-gradient(
      rgba(255, 252, 235, 0.78),
      rgba(235, 213, 170, 0.74)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(95, 62, 31, 0.025) 0,
      rgba(95, 62, 31, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );

  border: 1px solid rgba(102, 67, 32, 0.42);
  border-radius: 8px;

  box-shadow:
    0 18px 50px rgba(52, 31, 13, 0.27),
    inset 0 0 45px rgba(112, 72, 30, 0.18);

  opacity: 0;
  transform: translateY(35px) scale(0.97);

  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ending-page.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ending-page::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;

  border: 1px solid rgba(110, 73, 36, 0.28);

  box-shadow:
    inset 0 0 28px rgba(86, 52, 22, 0.16);
}

.ending-page::after {
  content: "❦";
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

  color: #8d6a34;
  font-size: 30px;
  opacity: 0.75;
}

.ending-corner {
  position: absolute;
  color: #8d6a34;
  font-family: Georgia, serif;
  font-size: 30px;
  opacity: 0.7;
}

.ending-corner-top-left {
  top: 22px;
  left: 25px;
}

.ending-corner-top-right {
  top: 22px;
  right: 25px;
  transform: scaleX(-1);
}

.ending-corner-bottom-left {
  bottom: 22px;
  left: 25px;
  transform: scaleY(-1);
}

.ending-corner-bottom-right {
  right: 25px;
  bottom: 22px;
  transform: scale(-1);
}

.ending-kicker {
  margin: 0 0 20px;

  color: #8b6734;
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.ending-icon {
  margin: 18px 0;
  font-size: 55px;
}

.ending-page h2 {
  position: relative;
  display: inline-block;
  overflow: hidden;

  margin: 0 0 26px;

  color: #4d3218;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
}

.ending-message {
  max-width: 560px;
  margin: 0 auto 34px;

  color: #69502e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.75;
}

.ending-button {
  position: relative;
  z-index: 2;

  padding: 14px 30px;

  border: 1px solid #8b672f;
  border-radius: 30px;

  background:
    linear-gradient(
      to bottom,
      #e7c97a,
      #b8863b
    );

  color: #2f1d09;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(75, 46, 17, 0.24);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.ending-button:hover {
  transform: translateY(-3px);

  background:
    linear-gradient(
      to bottom,
      #f3d88c,
      #c99845
    );

  box-shadow:
    0 12px 26px rgba(75, 46, 17, 0.32),
    0 0 18px rgba(216, 184, 107, 0.38);
}

@media screen and (max-width: 749px) {
  .storybook-ending {
    padding: 75px 16px;
  }

  .ending-page {
    padding: 65px 24px;
  }

  .ending-corner {
    font-size: 23px;
  }

  .ending-message {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ending-page {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ending-button {
    transition: none;
  }
}

html.shopify-design-mode .ending-page {
  opacity: 1;
  transform: none;
}
/* =================================
   STORYBOOK LOADING SCREEN
================================= */

.storybook-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      #f7edd5 0%,
      #dec79c 65%,
      #9b7547 100%
    );

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.storybook-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.storybook-loader-content {
  text-align: center;
  color: #4d3218;
}

.storybook-loader-icon {
  font-size: 42px;
  animation: loader-leaf-float 1.6s ease-in-out infinite;
}

.storybook-loader p {
  margin: 18px 0 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

@keyframes loader-leaf-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-loader-icon {
    animation: none;
  }
}
/* =================================
   NEW STORYBOOK ROOM COLORS
================================= */

.storybook-room-faith .storybook-room-button {
  background: #9b7844;
  color: #fffaf0;
}

.storybook-room-faith:hover {
  box-shadow:
    0 18px 38px rgba(112, 82, 40, 0.35),
    0 0 28px rgba(224, 190, 112, 0.3);
}

.storybook-room-faith:hover .storybook-room-button {
  background: #c3a15e;
}


.storybook-room-rainbow .storybook-room-button {
  background: #a76b9b;
  color: #ffffff;
}

.storybook-room-rainbow:hover {
  box-shadow:
    0 18px 38px rgba(116, 83, 137, 0.3),
    0 0 30px rgba(241, 177, 220, 0.38);
}

.storybook-room-rainbow:hover .storybook-room-button {
  background: #cf8fbd;
}
.storybook-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media screen and (max-width: 749px) {
  .storybook-rooms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* Greatest Story Ever Told */

.room-card.greatest-story .room-overlay {
  background:
    linear-gradient(
      rgba(59, 42, 22, 0.2),
      rgba(59, 42, 22, 0.7)
    );
}

.room-card.greatest-story span {
  background: linear-gradient(135deg, #d6b56c, #f5df9c);
  color: #4b3518;
}

.room-card.greatest-story:hover {
  box-shadow:
    0 18px 38px rgba(120, 88, 40, 0.4),
    0 0 30px rgba(228, 197, 120, 0.35);
}


/* Some Stories Are Over the Rainbow */

.room-card.over-the-rainbow .room-overlay {
  background:
    linear-gradient(
      rgba(65, 46, 92, 0.1),
      rgba(63, 43, 88, 0.62)
    );
}

.room-card.over-the-rainbow span {
  background: linear-gradient(
    135deg,
    #f3a7bd,
    #f7d188,
    #9fd9c5,
    #b5a8e6
  );
  color: #49335e;
}

.room-card.over-the-rainbow:hover {
  box-shadow:
    0 18px 38px rgba(111, 78, 140, 0.35),
    0 0 32px rgba(234, 168, 218, 0.4);
}
/* Magical Apothecary */

.room-card.magical-apothecary .room-overlay {
  background:
    linear-gradient(
      rgba(20, 24, 18, 0.15),
      rgba(24, 20, 30, 0.78)
    );
}

.room-card.magical-apothecary span {
  background: linear-gradient(
    135deg,
    #6f8f62,
    #9f7bb5,
    #d3ae66
  );
  color: #fffaf0;
}

.room-card.magical-apothecary:hover {
  box-shadow:
    0 18px 38px rgba(46, 68, 42, 0.42),
    0 0 32px rgba(149, 108, 175, 0.38);
}
/* =================================
   STORYBOOK PAGE-TURN SYSTEM
================================= */

.storybook-page {
  display: none;
  width: 100%;
  transform-origin: left center;
  backface-visibility: hidden;
  perspective: 1800px;
}

.storybook-page.is-active {
  display: block;
}

/* Current page turning away */
.storybook-page.is-turning-out {
  display: block;
  animation: storybook-page-out 0.8s ease forwards;
  pointer-events: none;
}

/* New page turning into view */
.storybook-page.is-turning-in {
  display: block;
  animation: storybook-page-in 0.8s ease forwards;
}

@keyframes storybook-page-out {
  0% {
    opacity: 1;
    transform: perspective(1800px) rotateY(0deg);
  }

  100% {
    opacity: 0;
    transform: perspective(1800px) rotateY(-82deg);
  }
}

@keyframes storybook-page-in {
  0% {
    opacity: 0;
    transform: perspective(1800px) rotateY(75deg);
  }

  100% {
    opacity: 1;
    transform: perspective(1800px) rotateY(0deg);
  }
}

/* Navigation beneath each page */
.storybook-page-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px 20px 45px;
}

.storybook-page-navigation button {
  appearance: none;
  border: 1px solid rgba(111, 78, 38, 0.5);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;

  background: linear-gradient(135deg, #72502f, #b3874f);
  color: #fffaf0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;

  box-shadow: 0 8px 18px rgba(55, 35, 18, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.storybook-page-navigation button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(55, 35, 18, 0.3);
}

.storybook-page-navigation button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

@media screen and (max-width: 749px) {
  .storybook-page-navigation {
    padding: 22px 12px 34px;
  }

  .storybook-page-navigation button {
    padding: 11px 18px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-page.is-turning-out,
  .storybook-page.is-turning-in {
    animation-duration: 0.01ms;
  }
}