@charset "utf-8";
/* =========================================================
   Whisker Witch — Storybook (page-only components)
   Shell + parchment handled by magicstyle.css
   ========================================================= */


/* ===== Breadcrumb (site-style override) ===== */
.storybook-body .breadcrumb{
  max-width:1120px;
  margin: 0 auto;
  font-family:'Crimson Pro', serif;
  font-size:0.95rem;
  color:#6d4a2f;
  opacity:0.95;
}
.storybook-body .breadcrumb a{
  color:#6a3d9a;
  text-decoration:none;
  font-weight:600;
}
.storybook-body .breadcrumb a:hover{
  text-decoration:underline;
}


/* ===== Storybook main parchment panel ===== */
.storybook-panel{
  max-width:980px;
  margin: 0 auto;
  background: rgba(255,252,240,0.96);
  border-radius:14px;
  border:1px solid rgba(190,150,90,0.9);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.22),
    0 0 18px rgba(223,188,115,0.45);
  padding: 1.2rem 1.25rem 1.25rem;
  position:relative;
  overflow:hidden;
}

.storybook-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.38) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255,240,210,0.30) 0, transparent 60%);
  pointer-events:none;
  opacity:0.9;
}

.storybook-panel-inner{
  position:relative;
  z-index:1;
}


/* ===== Story selector tabs ===== */
.story-tabs{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.story-tab{
  border:1px solid rgba(190,150,90,0.55);
  background: rgba(255,255,255,0.55);
  color:#4b2c16;
  padding:0.55rem 0.9rem;
  border-radius:999px;
  cursor:pointer;
  font-family:'Cinzel', serif;
  font-size:0.82rem;
  letter-spacing:0.10em;
  text-transform:uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
  white-space:nowrap;
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.story-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

.story-tab.active{
  border:1px solid rgba(233,195,120,0.95);
  background: linear-gradient(to bottom, #fbe4b3, #d8b36b);
  color:#3c2210;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.18),
    0 0 12px rgba(224,188,115,0.55);
  font-weight:700;
}


/* ===== Storybook page area ===== */
.storybook{
  position:relative;
  width:100%;
  max-width:920px;
  margin:0 auto;
  height:520px;
  perspective:1400px;
}

@media (max-width:820px){
  .storybook{
    height:62vh;
    min-height:440px;
  }
}

.page{
  background: rgba(255,255,255,0.78);
  color:#2e1e33;
  width:100%;
  height:100%;
  padding:1.4rem 1.5rem;
  border-radius:14px;
  border:1px solid rgba(190,150,90,0.75);
  box-shadow:0 12px 26px rgba(0,0,0,0.16);
  position:absolute;
  top:0;
  left:0;
  opacity:0;
  transform-origin:left center;
  transform:rotateY(90deg);
  transition:transform 0.6s ease, opacity 0.6s ease;
  overflow-y:auto;
  display:none;
  font-family:'Crimson Pro', serif;
  line-height:1.75;
  font-size:1.05rem;
}

.page.active{
  opacity:1;
  transform:rotateY(0deg);
  z-index:2;
  display:block;
}

.page h2{
  margin:0 0 0.6rem;
  font-family:'Cinzel', serif;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-size:1.05rem;
  color:#4b2c16;
}


/* ===== Navigation buttons ===== */
.nav{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.nav-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.nav button{
  border:1px solid rgba(233,195,120,0.95);
  background: linear-gradient(to bottom, #fbe4b3, #d8b36b);
  color:#3c2210;
  padding:0.65rem 1.2rem;
  border-radius:999px;
  cursor:pointer;
  font-family:'Cinzel', serif;
  font-size:0.80rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.18),
    0 0 12px rgba(224,188,115,0.45);
  transition:transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
  white-space:nowrap;
}

.nav button:hover:not(:disabled){
  transform:translateY(-1px);
  background: linear-gradient(to bottom, #ffeaba, #deb873);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.24),
    0 0 16px rgba(255,228,145,0.75);
}

.nav button:disabled{
  opacity:0.5;
  cursor:default;
  box-shadow:none;
}

.page-indicator{
  font-family:'Crimson Pro', serif;
  font-size:0.98rem;
  color:#6d4a2f;
  text-align:center;
  font-style:italic;
}


/* ===== Story CTA button ===== */
.enter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0.65rem 1.25rem;
  border-radius:999px;
  border:1px solid rgba(233,195,120,0.95);
  background: linear-gradient(to bottom, #fbe4b3, #d8b36b);
  color:#3c2210;
  font-family:'Cinzel', serif;
  font-size:0.82rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.18),
    0 0 12px rgba(224,188,115,0.45);
  transition:transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
  white-space:nowrap;
}

.enter-button:hover{
  transform:translateY(-1px);
  background: linear-gradient(to bottom, #ffeaba, #deb873);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.24),
    0 0 16px rgba(255,228,145,0.75);
}