.chapter-navigation {
  position: relative;
  z-index: 4;
  width: min(420px, calc(100% - 32px));
  margin: 3.5rem auto 0;
  padding-bottom: 2rem;
  text-align: center;
}

.chapter-navigation__link {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  border: 1px solid rgba(255, 250, 235, 0.7);
  border-radius: 28px;
  background: rgba(255, 248, 231, 0.76);
  color: #493225;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(38, 27, 25, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.chapter-navigation__link span {
  font: 700 0.72rem/1.2 Arial, sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.72;
}

.chapter-navigation__link strong {
  font: 700 clamp(1.35rem, 3vw, 2rem)/1.08 Georgia, "Times New Roman", serif;
  text-align: center;
}

.chapter-navigation__link:hover,
.chapter-navigation__link:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 250, 238, 0.9);
  box-shadow: 0 18px 44px rgba(38, 27, 25, 0.25);
  outline: none;
}

.chapter-navigation__ornament {
  display: block;
  margin-top: 0.7rem;
  color: rgba(255, 246, 218, 0.9);
  font: 400 1.35rem/1 Georgia, "Times New Roman", serif;
  text-shadow: 0 2px 9px rgba(35, 27, 25, 0.55);
}

@media (max-width: 560px) {
  .chapter-navigation {
    width: min(340px, calc(100% - 24px));
    margin-top: 2.5rem;
  }

  .chapter-navigation__link {
    min-height: 94px;
    padding: 1rem 1.15rem;
    border-radius: 24px;
  }
}

/* One continuous collection scene from below the header through the final chapter. */
:root {
  --header-height: 72px;
}

html {
  min-height: 0;
  background-color: #f7efe7;
}

body {
  min-height: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.world-page {
  min-height: 0;
  background-color: transparent !important;
}

body.world-page::before {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.world-page::after {
  display: none !important;
  background: none !important;
}

body.world-page main,
body > .page-scroll > main {
  min-height: calc(100vh - var(--header-height));
  background: transparent !important;
}

.world-page .world-hero,
.world-page .world-hero::before,
.world-page .world-hero-copy,
.world-page .world-browser,
.world-page .storybook-footer,
.chapter-navigation {
  background: transparent !important;
}

.world-page .world-hero-copy,
.world-page .world-browser {
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.world-page .storybook-footer {
  border-top-color: transparent !important;
  box-shadow: none !important;
}

/* No fixed butterfly layer may become a separate bottom decoration. */
body:not(.world-exclusive) .site-butterfly-layer {
  display: none !important;
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }
}
