/* ============================================================
 * Menu — Book Spread excerpt (front page)
 * Bright Luxury / White marble + black ornament
 * Driven by StPageFlip — pages are absolutely positioned by the
 * library, so we keep typographic + ornamental styles on pages
 * but no flex/grid layout on the wrapper.
 * ============================================================ */

.section-menu {
  /* Layered background:
   *   1. Subtle paper grain (low-opacity fractal noise via inline SVG)
   *   2. Cream surface base
   * Gives the section a paper-like body. Menu now follows the light
   * Diary section, so the old dark top-edge shadow + centred gold rule
   * (holdovers from when Menu sat directly under the dark VIP block)
   * have been removed; the divider is now the shared bottom hairline. */
  position: relative;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    var(--color-surface);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.section-menu__header {
  text-align: center;
  max-width: 38em;
}

.section-menu__header .eyebrow {
  margin-bottom: 0.65rem;
}

.section-menu__header .section-lead {
  margin-inline: auto;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
 * Static price summary (digest)
 * ------------------------------------------------------------
 * モバイルでフリップブックを操作しないと価格が見えない問題への
 * 対策として、ブックの“前（上部）”に主要料金の静的ダイジェストを
 * 併設する。明背景上の上品な早見表として、点線リーダーやゴールド
 * 罫など既存 menu-book の語彙を流用しつつ AA コントラストを確保。
 * 価格表記は section-menu.php / inc/menu-data.php と一致させること。
 * ------------------------------------------------------------ */
.menu-book__summary {
  list-style: none;
  margin: 0;
  padding: clamp(1rem, 2.2vw, 1.4rem) clamp(1.1rem, 2.6vw, 1.75rem);
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  /* 明るいクリーム地に薄いゴールド罫で囲い、ブック本体と調和させる */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 182, 117, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 241, 222, 0.55) 100%);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 4px;
  box-shadow:
    0 10px 30px -22px rgba(42, 39, 35, 0.30),
    inset 0 0 30px rgba(150, 145, 140, 0.05);
}

.menu-book__summary-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  text-align: center;
  padding-inline: clamp(0.4rem, 1.2vw, 0.75rem);
}

/* 縦のゴールド区切り罫（PC、2 項目目以降の左側） */
.menu-book__summary-item + .menu-book__summary-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 169, 97, 0.45) 50%, transparent 100%);
}

.menu-book__summary-label {
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  letter-spacing: 0.12em;
  /* 本文色でしっかり読ませる（明背景で AA 以上） */
  color: var(--color-text);
}

.menu-book__summary-price {
  font-family: var(--font-serif-en);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-text);
  white-space: nowrap;
}

.menu-book__summary-tilde {
  font-size: 0.7em;
  margin-left: 0.05em;
  color: var(--color-text-mute);
}

.menu-book__summary-note {
  font-family: var(--font-serif-jp);
  font-size: clamp(0.66rem, 0.95vw, 0.74rem);
  letter-spacing: 0.08em;
  color: var(--color-text-mute);
}

/* SP: 横並びを縦積みにし、項目間を横罫（点線リーダー風）で区切る */
@media (max-width: 760px) {
  .menu-book__summary {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0.4rem;
  }
  .menu-book__summary-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2.5vw, 0.85rem) clamp(0.4rem, 2vw, 0.75rem);
  }
  /* 縦罫は使わず、横の点線リーダーで区切る */
  .menu-book__summary-item + .menu-book__summary-item::before {
    left: clamp(0.4rem, 2vw, 0.75rem);
    right: clamp(0.4rem, 2vw, 0.75rem);
    top: 0;
    transform: none;
    width: auto;
    height: 1px;
    background-image: radial-gradient(circle, rgba(201, 169, 97, 0.6) 0.5px, transparent 1px);
    background-size: 6px 1px;
    background-repeat: repeat-x;
    background-position: 0 50%;
  }
  /* ラベルを左、価格＋補足を右にまとめる */
  .menu-book__summary-label {
    flex: 0 0 auto;
  }
  .menu-book__summary-price {
    margin-left: auto;
    font-size: clamp(1.05rem, 5vw, 1.4rem);
  }
  .menu-book__summary-note {
    flex: 0 0 auto;
    order: 3;
  }
}

/* ------------------------------------------------------------
 * Book container
 * ------------------------------------------------------------ */
.menu-book {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  isolation: isolate;
  outline: none;
  perspective: 2200px;
  perspective-origin: 50% 45%;
}

.menu-book:focus-visible {
  box-shadow: 0 0 0 2px var(--color-gold);
  border-radius: 4px;
}

.menu-book__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, transparent 8%, transparent 92%, rgba(0, 0, 0, 0.04) 100%),
    /* marble veining */
    radial-gradient(ellipse 60% 40% at 25% 30%, rgba(150, 145, 140, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 75% 70%, rgba(150, 145, 140, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 60% 20%, rgba(110, 105, 100, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #fbfaf6 0%, #f4ede0 100%);
  border: 1px solid rgba(42, 39, 35, 0.15);
  box-shadow:
    0 30px 60px -30px rgba(42, 39, 35, 0.25),
    0 10px 30px -15px rgba(42, 39, 35, 0.15),
    inset 0 0 80px rgba(150, 145, 140, 0.08);
  overflow: visible;
  transform-style: preserve-3d;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

/* When viewing the hard cover (first or last page), the second half of
 * the stage is empty, which makes the marble panel look unbalanced.
 * In that state, fade out the panel so the single visible page floats
 * on the section background instead. */
.menu-book.is-cover-view .menu-book__stage {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.menu-book.is-cover-view .menu-book__edge,
.menu-book.is-cover-view .menu-book__shimmer {
  opacity: 0;
}

/* Give the hard cover its own shadow so it still feels grounded
 * even after the stage panel fades out. */
.menu-book__page--cover,
.menu-book__page--end {
  box-shadow:
    inset 0 0 60px rgba(150, 120, 60, 0.10),
    0 24px 48px -28px rgba(42, 39, 35, 0.35),
    0 8px 20px -12px rgba(42, 39, 35, 0.20);
}

/* StPageFlip container — fills the stage */
.menu-book__pages {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* StPageFlip will create a wrapper internally — make sure shadows
 * from the library are not clipped by the marble panel. */
.menu-book__pages .stf__parent {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

/* ------------------------------------------------------------
 * Decorative overlays — shimmer + edge gilding
 * ------------------------------------------------------------ */
.menu-book__shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(circle 360px at var(--mx, 50%) var(--my, 35%),
      rgba(212, 182, 117, 0.22) 0%,
      rgba(212, 182, 117, 0.08) 32%,
      transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}

.menu-book:hover .menu-book__shimmer,
.menu-book:focus-within .menu-book__shimmer {
  opacity: 1;
}

.menu-book__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  pointer-events: none;
  z-index: 3;
}

.menu-book__edge--top {
  top: 0;
  background:
    linear-gradient(180deg,
      rgba(212, 182, 117, 0.45) 0%,
      rgba(212, 182, 117, 0.12) 40%,
      transparent 100%),
    repeating-linear-gradient(90deg,
      rgba(150, 120, 60, 0.08) 0px,
      rgba(150, 120, 60, 0.08) 1px,
      transparent 1px,
      transparent 4px);
}

.menu-book__edge--bottom {
  bottom: 0;
  background:
    linear-gradient(0deg,
      rgba(212, 182, 117, 0.45) 0%,
      rgba(212, 182, 117, 0.12) 40%,
      transparent 100%),
    repeating-linear-gradient(90deg,
      rgba(150, 120, 60, 0.08) 0px,
      rgba(150, 120, 60, 0.08) 1px,
      transparent 1px,
      transparent 4px);
}

/* ------------------------------------------------------------
 * Individual page surface
 * ------------------------------------------------------------ */
.menu-book__page {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  color: var(--color-text);
  background:
    /* per-page subtle veining */
    radial-gradient(ellipse 80% 50% at 30% 25%, rgba(150, 145, 140, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 75%, rgba(150, 145, 140, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f4ede0 100%);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* ------------------------------------------------------------
 * Corner ornaments
 * ------------------------------------------------------------ */
.menu-book__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 1;
}

.menu-book__corner::before,
.menu-book__corner::after {
  content: '';
  position: absolute;
  background: var(--color-text);
}

.menu-book__corner::before {
  width: 28px;
  height: 1px;
}

.menu-book__corner::after {
  width: 1px;
  height: 28px;
}

.menu-book__corner--tl { top: 14px; left: 14px; }
.menu-book__corner--tl::before { top: 0; left: 0; }
.menu-book__corner--tl::after  { top: 0; left: 0; }

.menu-book__corner--tr { top: 14px; right: 14px; }
.menu-book__corner--tr::before { top: 0; right: 0; }
.menu-book__corner--tr::after  { top: 0; right: 0; }

.menu-book__corner--bl { bottom: 14px; left: 14px; }
.menu-book__corner--bl::before { bottom: 0; left: 0; }
.menu-book__corner--bl::after  { bottom: 0; left: 0; }

.menu-book__corner--br { bottom: 14px; right: 14px; }
.menu-book__corner--br::before { bottom: 0; right: 0; }
.menu-book__corner--br::after  { bottom: 0; right: 0; }

/* ------------------------------------------------------------
 * Page titles + divider
 * ------------------------------------------------------------ */
.menu-book__page-title {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  text-align: center;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 0.02em;
}

.menu-book__page-title--secondary {
  margin-top: clamp(0.9rem, 2.2vw, 1.4rem);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.menu-book__divider {
  display: block;
  width: clamp(120px, 22vw, 220px);
  height: auto;
  margin: 0.4rem auto clamp(0.75rem, 1.8vw, 1.25rem);
  color: var(--color-text);
}

/* ------------------------------------------------------------
 * Item rows
 * ------------------------------------------------------------ */
.menu-book__group {
  margin-bottom: clamp(0.6rem, 1.5vw, 1rem);
}

.menu-book__group:last-child {
  margin-bottom: 0;
}

.menu-book__group-name {
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.18em;
  margin: 0 0 0.45rem;
  color: var(--color-text);
  position: relative;
  padding-left: 0;
}

.menu-book__group-name--accent::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-right: 0.5em;
  background: radial-gradient(circle, var(--color-gold) 0%, var(--color-gold-strong) 60%, transparent 80%);
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(0.3px);
}

.menu-book__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-book__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.22rem 0;
  font-family: var(--font-serif-jp);
  font-size: clamp(0.74rem, 1.05vw, 0.88rem);
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.menu-book__item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-book__item-dots {
  height: 1px;
  background-image: radial-gradient(circle, currentColor 0.5px, transparent 1px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  opacity: 0.45;
  align-self: center;
}

.menu-book__item-price {
  font-family: var(--font-serif-en);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.menu-book__note {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-serif-jp);
  font-size: clamp(0.68rem, 0.95vw, 0.76rem);
  letter-spacing: 0.08em;
  color: var(--color-text-mute);
  text-align: center;
}

/* ------------------------------------------------------------
 * Dense page modifier (Wine + Shot 同居ページ)
 *   11 items + 2 titles + 2 dividers を 1 ページに収めるため
 *   行間・余白・タイトル間隔を更に詰める。
 * ------------------------------------------------------------ */
.menu-book__page--dense {
  padding-top: clamp(1rem, 2.4vw, 1.75rem);
  padding-bottom: clamp(1rem, 2.4vw, 1.75rem);
}

.menu-book__page--dense .menu-book__item {
  padding: 0.12rem 0;
  font-size: clamp(0.7rem, 1vw, 0.84rem);
}

.menu-book__page--dense .menu-book__page-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.menu-book__page--dense .menu-book__page-title--secondary {
  margin-top: clamp(0.6rem, 1.4vw, 0.9rem);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.menu-book__page--dense .menu-book__divider {
  margin: 0.25rem auto 0.5rem;
}

/* ------------------------------------------------------------
 * Cover page (hard)
 * ------------------------------------------------------------ */
.menu-book__page--cover {
  /* StPageFlip toggles display:block/none via inline style on hard
   * pages (the cover) to hide them while not flipping. We mustn't
   * override that with !important — instead, centre the content via
   * an absolute-positioned inner wrapper. */
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(212, 182, 117, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #f8f1de 0%, #e8d9b4 100%);
  box-shadow: inset 0 0 60px rgba(150, 120, 60, 0.10);
}

.menu-book__cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 3.5vw, 2.75rem);
}

.menu-book__cover-en {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: 0.18em;
  margin: 0;
  color: var(--color-text);
}

.menu-book__cover-jp {
  font-family: var(--font-brush-jp);
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: var(--color-text);
}

.menu-book__cover-divider {
  width: clamp(120px, 22vw, 200px);
  color: var(--color-text);
}

.menu-book__cover-label {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  letter-spacing: 0.55em;
  color: var(--color-text-mute);
  margin: 0;
  padding-right: 0;
  text-indent: 0.55em;
}

/* ------------------------------------------------------------
 * End page (hard CTA)
 * ------------------------------------------------------------ */
.menu-book__page--end {
  /* StPageFlip toggles display:block/none via inline style on hard
   * pages (the back cover) to hide them while not flipping. We mustn't
   * override that with !important — instead, centre the CTA via
   * an absolute-positioned inner wrapper. */
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 70%, rgba(212, 182, 117, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #f8f1de 0%, #e8d9b4 100%);
  box-shadow: inset 0 0 60px rgba(150, 120, 60, 0.10);
}

.menu-book__end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 3.5vw, 2.75rem);
}

.menu-book__end > * {
  max-width: 80%;
}

.menu-book__end-eyebrow {
  font-family: var(--font-serif-jp);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  letter-spacing: 0.18em;
  color: var(--color-text-mute);
  margin: 0;
}

.menu-book__end-link {
  margin-top: 0.5rem;
}

.menu-book__end-note {
  font-family: var(--font-serif-jp);
  font-size: clamp(0.75rem, 1.05vw, 0.85rem);
  letter-spacing: 0.1em;
  color: var(--color-text-mute);
  margin: 0;
}

/* ------------------------------------------------------------
 * Navigation
 * ------------------------------------------------------------ */
.menu-book__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.menu-book__btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  background: transparent;
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  isolation: isolate;
  transition:
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.menu-book__btn::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201, 169, 97, 0.35) 0%,
    rgba(201, 169, 97, 0.10) 45%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  z-index: -1;
}

.menu-book__btn:hover:not(:disabled)::before,
.menu-book__btn:focus-visible:not(:disabled)::before {
  opacity: 1;
}

.menu-book__btn svg {
  width: 16px;
  height: 16px;
}

.menu-book__btn:hover:not(:disabled),
.menu-book__btn:focus-visible:not(:disabled) {
  border-color: var(--color-gold);
  color: var(--color-gold-strong);
  background: rgba(201, 169, 97, 0.06);
}

.menu-book__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.menu-book__counter {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--color-text-mute);
  min-width: 64px;
  text-align: center;
}

.menu-book__counter-current {
  color: var(--color-text);
  font-weight: 500;
}

.menu-book__counter-sep {
  margin-inline: 0.4em;
}

/* ------------------------------------------------------------
 * Mobile: StPageFlip switches to portrait (single page) automatically
 * — we hide the inner-page corner ornaments on tiny screens to avoid
 * crowding, and tighten the padding.
 * ------------------------------------------------------------ */
@media (max-width: 760px) {
  .menu-book__stage {
    aspect-ratio: 52 / 75;
  }
  /* 内側の左右余白を詰めて項目行の表示幅を確保し、長い項目名が
   * white-space:nowrap の ellipsis で「…」と切れるのを防ぐ。縦は
   * 読みやすさを保てる範囲に留める。 */
  .menu-book__page {
    padding: clamp(1rem, 4vw, 1.5rem) clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .menu-book__page-title {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
  }
  .menu-book__page-title--secondary {
    margin-top: 0.65rem;
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }
  .menu-book__divider {
    width: clamp(112px, 38vw, 156px);
    margin: 0.25rem auto 0.65rem;
  }
  .menu-book__group {
    margin-bottom: 0.45rem;
  }
  .menu-book__group-name {
    margin-bottom: 0.28rem;
    font-size: clamp(0.82rem, 3.5vw, 0.94rem);
  }
  /* 名前｜点線｜価格 の列間隔と字間も詰めて、長い行も 1 行に収める。 */
  .menu-book__item {
    grid-template-columns: minmax(0, max-content) minmax(14px, 1fr) auto;
    gap: 0.3rem;
    padding: 0.16rem 0;
    font-size: clamp(0.7rem, 3.15vw, 0.8rem);
    line-height: 1.55;
    letter-spacing: 0.02em;
  }
  .menu-book__item-name {
    min-width: 0;
  }
  .menu-book__item-price {
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
  }
  .menu-book__page--dense .menu-book__item {
    padding: 0.1rem 0;
    font-size: clamp(0.68rem, 3vw, 0.76rem);
  }
  .menu-book__page--dense .menu-book__divider {
    margin: 0.2rem auto 0.42rem;
  }
}

/* ------------------------------------------------------------
 * Fallback when the StPageFlip CDN never loads
 * ------------------------------------------------------------
 * The library normally absolutely-positions each page inside
 * .stf__parent. Without it we'd stack pages on top of each other,
 * so we fall back to a vertical reading layout that still surfaces
 * all menu data — the section keeps working, just without the
 * page-turn affordance. */
.menu-book.is-flip-unavailable .menu-book__stage {
  aspect-ratio: auto;
  background: none;
  border: 0;
  box-shadow: none;
}

.menu-book.is-flip-unavailable .menu-book__pages {
  position: static;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  height: auto;
}

.menu-book.is-flip-unavailable .menu-book__page {
  position: static;
  width: 100%;
  height: auto;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(42, 39, 35, 0.15);
  background:
    radial-gradient(ellipse 80% 50% at 30% 25%, rgba(150, 145, 140, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f4ede0 100%);
}

.menu-book.is-flip-unavailable .menu-book__page--cover,
.menu-book.is-flip-unavailable .menu-book__page--end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-book.is-flip-unavailable .menu-book__edge,
.menu-book.is-flip-unavailable .menu-book__shimmer {
  display: none;
}

/* ------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .menu-book__stage,
  .menu-book__shimmer,
  .menu-book__btn::before {
    transition: none !important;
  }
}
