:root {
  --ink-dark: #2B1A12;
  --ink-dark-soft: #593E30;
  --ink-light: #F5EFE6;
  --ink-light-soft: rgba(245, 239, 230, 0.8);
  --surface-dark: #130F0C;
  --surface-stone: #D8C7B4;
  --copper: #D98A42;
  --pill-bg: #F3EEE6;
  --pill-ink: #1D150C;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Parisienne', cursive;
  --sans: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--surface-dark);
  color: var(--ink-light);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.enhanced {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ---------- Fallback / JS-disabled / Static Gallery ---------- */
.fallback {
  background: #EFE7DC;
  color: var(--ink-dark);
}

.enhanced .fallback {
  display: none;
}

.fallback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
  border-bottom: 1px solid rgba(43, 26, 18, 0.14);
}

.fallback-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fallback-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 6vw 80px;
  display: grid;
  gap: 48px;
}

.fallback-card {
  margin: 0;
  background: #FAF6F0;
  border: 1px solid rgba(43, 26, 18, 0.1);
  overflow: hidden;
}

.fallback-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fallback-card-body {
  padding: 28px 32px 32px;
}

.fallback-card-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dark-soft);
  margin: 0 0 8px;
}

.fallback-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.fallback-card .script-line {
  font-family: var(--script);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink-dark-soft);
  margin: 4px 0 14px;
}

.fallback-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-dark-soft);
  max-width: 62ch;
}

.fallback-reenter {
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink-dark);
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Interactive Full-Screen Stage ---------- */
.story {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background: var(--surface-dark);
  color: var(--ink-light);
  transition: color 360ms var(--ease);
}

.enhanced .story {
  display: block;
}

.story[data-theme="light"] {
  color: var(--ink-dark);
}

.story-poster,
[data-story-videos],
[data-story-videos] video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.story-poster {
  z-index: 1;
}

[data-story-videos] {
  z-index: 2;
}

[data-story-videos] video {
  opacity: 0;
  z-index: 1;
}

[data-story-videos] video.visible {
  opacity: 1;
}

/* Subtle contrast scrims tuned per chapter theme (zero heavy boxes) */
.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 420ms var(--ease);
}

.story[data-scene="harvest"] .stage-scrim {
  background:
    linear-gradient(180deg, rgba(16, 22, 18, 0.54) 0%, rgba(16, 22, 18, 0) 26%),
    linear-gradient(0deg, rgba(14, 19, 15, 0.72) 0%, rgba(14, 19, 15, 0.24) 24%, rgba(14, 19, 15, 0) 48%);
}

.story[data-scene="roasting"] .stage-scrim {
  background:
    linear-gradient(180deg, rgba(16, 11, 8, 0.42) 0%, rgba(16, 11, 8, 0) 44%),
    linear-gradient(0deg, rgba(16, 11, 8, 0.56) 0%, rgba(16, 11, 8, 0) 24%);
}

.story[data-scene="jar"] .stage-scrim {
  background:
    linear-gradient(180deg, rgba(214, 196, 174, 0.25) 0%, rgba(214, 196, 174, 0) 24%),
    linear-gradient(0deg, rgba(196, 171, 145, 0.34) 0%, rgba(196, 171, 145, 0) 24%);
}

.story[data-scene="origins"] .stage-scrim {
  background:
    linear-gradient(180deg, rgba(12, 9, 7, 0.65) 0%, rgba(12, 9, 7, 0) 24%),
    linear-gradient(0deg, rgba(12, 9, 7, 0.86) 0%, rgba(12, 9, 7, 0.42) 22%, rgba(12, 9, 7, 0) 40%);
}

.story[data-scene="ritual"] .stage-scrim {
  background:
    linear-gradient(90deg, rgba(220, 200, 176, 0) 44%, rgba(226, 208, 186, 0.48) 64%, rgba(226, 208, 186, 0.68) 100%),
    linear-gradient(0deg, rgba(196, 171, 145, 0.28) 0%, rgba(196, 171, 145, 0) 18%);
}

.moving .stage-scrim {
  opacity: 0.28;
}

/* ---------- Top Navigation (Kaya Jars inspired) ---------- */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(20px, 3.2vw, 44px);
  pointer-events: none;
}

.top-nav > * {
  pointer-events: auto;
}

.lang-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 4px;
  opacity: 0.86;
  transition: opacity 200ms var(--ease);
}

.story[data-scene="ritual"] .lang-toggle {
  text-shadow: 0 1px 10px rgba(242, 228, 210, 0.92);
  background: rgba(242, 228, 210, 0.42);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: 999px;
}

.lang-toggle:hover {
  opacity: 1;
}

.lang-toggle span[data-active="false"] {
  opacity: 0.45;
}

.brand-mark {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: inherit;
}

.brand-mark svg {
  width: 34px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-transform: uppercase;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
  transition: opacity 200ms var(--ease), background-color 200ms var(--ease);
}

.bag-btn:hover {
  opacity: 1;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 4px;
  opacity: 0.9;
}

.menu-btn:hover {
  opacity: 1;
}

.menu-lines {
  display: inline-block;
  width: 18px;
  height: 7px;
  border-top: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
}

/* ---------- Fixed Chapter Copy Layer (Fades only at transitions) ---------- */
.chapter-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.moving .chapter-layer {
  opacity: 0;
}

.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms var(--ease), visibility 260ms var(--ease);
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
}

.panel.is-active .interactive {
  pointer-events: auto;
}

.serif-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  line-height: 1.08;
}

.script-sub {
  margin: 6px 0 0;
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.2;
}

/* Chapter 01 · Harvest */
.panel-harvest .hero-copy {
  position: absolute;
  left: 50%;
  bottom: clamp(104px, 13vh, 148px);
  transform: translateX(-50%);
  text-align: center;
  width: min(90vw, 680px);
}

.panel-harvest .serif-title {
  font-size: clamp(28px, 3.6vw, 52px);
  text-shadow: 0 2px 24px rgba(10, 14, 11, 0.45);
}

.panel-harvest .script-sub {
  font-size: clamp(22px, 2.5vw, 34px);
  color: rgba(245, 239, 230, 0.94);
  text-shadow: 0 2px 18px rgba(10, 14, 11, 0.45);
}

.panel-harvest .hero-desc {
  margin: 14px auto 0;
  max-width: 50ch;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.86);
  text-shadow: 0 1px 12px rgba(10, 14, 11, 0.5);
}

/* Chapter 02 · Roasting */
.panel-roasting .roast-copy {
  position: absolute;
  left: 50%;
  top: clamp(94px, 12.5vh, 134px);
  transform: translateX(-50%);
  text-align: center;
  width: min(90vw, 660px);
}

.panel-roasting .serif-title {
  font-size: clamp(24px, 3vw, 42px);
}

.panel-roasting .script-sub {
  font-size: clamp(20px, 2.2vw, 31px);
  color: #E7BA85;
}

.panel-roasting .roast-meta {
  margin: 14px auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.78);
}

.panel-roasting .roast-desc {
  margin: 12px auto 0;
  max-width: 50ch;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.82);
}

/* Chapter 03 · Jar Craft Callouts (Kaya Jars Orbit homage) */
.panel-jar .callout-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-jar .callout {
  position: absolute;
  font-family: var(--script);
  font-size: clamp(19px, 1.85vw, 27px);
  color: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.panel-jar .callout::before,
.panel-jar .callout::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-dark);
  opacity: 0.78;
}

.panel-jar .callout.left::after {
  content: "";
}

.panel-jar .callout.right::before {
  content: "";
}

.panel-jar .c1 { right: 68%; top: 31%; }
.panel-jar .c2 { right: 68%; top: 53%; }
.panel-jar .c3 { left: 68%; top: 27%; }
.panel-jar .c4 { left: 68%; top: 47%; }
.panel-jar .c5 { left: 68%; top: 66%; }

.panel-jar .jar-footer {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 6.8vh, 72px);
  transform: translateX(-50%);
  text-align: center;
  width: min(88vw, 560px);
}

.panel-jar .serif-title {
  font-size: clamp(19px, 1.9vw, 26px);
}

.panel-jar .script-sub {
  margin-top: 2px;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--ink-dark-soft);
}

/* Chapter 04 · Five Andean Origins (Interactive Dark Stage) */
.panel-origins .origins-header {
  position: absolute;
  left: 50%;
  top: clamp(72px, 8.6vh, 92px);
  transform: translateX(-50%);
  text-align: center;
  width: min(92vw, 680px);
}

.panel-origins .serif-title {
  font-size: clamp(20px, 2.35vw, 32px);
}

.panel-origins .script-sub {
  margin-top: 2px;
  font-size: clamp(17px, 1.7vw, 23px);
  color: rgba(245, 239, 230, 0.85);
}

.panel-origins .origins-dock {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 6.8vh, 74px);
  transform: translateX(-50%);
  width: min(92vw, 760px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.origin-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.origin-pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 230, 0.28);
  background: rgba(19, 15, 12, 0.72);
  color: rgba(245, 239, 230, 0.82);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}

.origin-pill:hover,
.origin-pill[aria-pressed="true"] {
  border-color: var(--origin-accent, #EFE4D4);
  background: rgba(245, 239, 230, 0.16);
  color: #FFF;
}

.origin-detail-name {
  font-family: var(--script);
  font-size: clamp(21px, 2.05vw, 28px);
  line-height: 1.05;
  color: var(--origin-accent, #EFE4D4);
}

.origin-detail-notes {
  margin: 0;
  font-size: clamp(12px, 1vw, 14px);
  color: rgba(245, 239, 230, 0.88);
}

.origin-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.2px solid rgba(245, 239, 230, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  transition: background-color 200ms var(--ease);
}

.arrow-circle:hover {
  background: rgba(245, 239, 230, 0.15);
}

.cta-pill {
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.cta-pill:hover {
  transform: translateY(-1px);
  background: #FFF;
}

.cta-pill.dark {
  background: var(--ink-dark);
  color: var(--pill-bg);
}

.cta-pill.dark:hover {
  background: #1A0F0A;
}

/* Chapter 05 · Split Editorial Story (Colador de Tela) */
.panel-ritual .story-column {
  position: absolute;
  left: 57%;
  top: 50%;
  transform: translateY(-54%);
  width: min(37.5vw, 460px);
  color: var(--ink-dark);
}

.panel-ritual .serif-title {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  padding-left: 0;
}

.panel-ritual .script-sub {
  font-size: clamp(20px, 2.3vw, 31px);
  color: var(--ink-dark-soft);
  margin-top: 8px;
}

.panel-ritual .story-body {
  margin: 20px 0 0;
  font-size: clamp(13px, 1.08vw, 15.5px);
  line-height: 1.65;
  color: var(--ink-dark-soft);
  max-width: 42ch;
}

.panel-ritual .story-rule {
  height: 1px;
  background: rgba(43, 26, 18, 0.2);
  margin: 24px 0 20px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.story-stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
  color: var(--ink-dark);
}

.story-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-dark-soft);
}

.panel-ritual .story-cta-wrap {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Bottom Control Rail & Threshold Charge Meter ---------- */
.story-controls {
  position: absolute;
  left: clamp(16px, 3.2vw, 44px);
  right: clamp(16px, 3.2vw, 44px);
  bottom: clamp(14px, 2.2vh, 24px);
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.chapter-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 180ms var(--ease), background-color 180ms var(--ease);
}

.ctrl-btn:hover:not(:disabled) {
  opacity: 1;
  background: rgba(128, 128, 128, 0.16);
}

.ctrl-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.chapter-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px;
}

.chapter-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chapter-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.34;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.chapter-dot[aria-current="step"]::after {
  opacity: 1;
  transform: scale(1.45);
}

.status-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.status-line {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.charge-track {
  width: min(140px, 32vw);
  height: 2px;
  background: currentColor;
  opacity: 0.22;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.charge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--copper);
  transform-origin: left center;
  transform: scaleX(0);
}

.right-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.error-banner {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 15;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(24, 15, 11, 0.92);
  color: #FFD5B8;
  border: 1px solid rgba(255, 213, 184, 0.35);
  font-size: 13px;
}

.error-banner.is-open {
  display: inline-flex;
}

.error-banner button {
  padding: 5px 12px;
  border-radius: 999px;
  background: #F3EEE6;
  color: #1D150C;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Accessible Menu & Bag Dialog ---------- */
dialog.drawer {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  height: 100vh;
  max-height: 100vh;
  background: #F5EFE6;
  color: var(--ink-dark);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.38);
}

dialog.drawer::backdrop {
  background: rgba(14, 10, 8, 0.56);
  backdrop-filter: blur(4px);
}

.drawer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  overflow-y: auto;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(43, 26, 18, 0.14);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(43, 26, 18, 0.25);
  font-size: 18px;
}

.drawer-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(43, 26, 18, 0.12);
}

.drawer-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dark-soft);
}

.drawer-chapters {
  display: grid;
  gap: 8px;
}

.drawer-chapter-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  background: rgba(43, 26, 18, 0.04);
}

.drawer-chapter-btn:hover {
  background: rgba(43, 26, 18, 0.1);
}

.bag-list {
  display: grid;
  gap: 10px;
}

.bag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFDF9;
  border: 1px solid rgba(43, 26, 18, 0.1);
  border-radius: 8px;
  font-size: 13.5px;
}

.bag-total {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Responsive Mobile (< 820px) ---------- */
@media (max-width: 820px) {
  .bag-btn {
    display: none;
  }

  .story[data-scene="ritual"] .story-poster,
  .story[data-scene="ritual"] [data-story-videos] video {
    object-position: 24% 28%;
  }

  .panel-jar .callout {
    font-size: 16px;
  }
  .panel-jar .c1 { left: 16px; right: auto; top: 14%; }
  .panel-jar .c2 { right: 16px; left: auto; top: 19%; }
  .panel-jar .c3 { left: 16px; right: auto; top: 72%; }
  .panel-jar .c4 { right: 16px; left: auto; top: 76%; }
  .panel-jar .c5 { display: none; }

  .panel-ritual .story-column {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 72px;
    transform: none;
    width: auto;
    background: rgba(238, 226, 210, 0.92);
    backdrop-filter: blur(8px);
    padding: 16px 18px;
    border-radius: 14px;
  }

  .panel-ritual .story-body {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .panel-ritual .story-rule {
    margin: 12px 0 10px;
  }

  .panel-ritual .story-cta-wrap {
    margin-top: 14px;
  }

  .story-controls {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .chapter-dots {
    display: none;
  }

  .right-controls .ctrl-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
