.menu-book-shell {
  margin-top: 1.25rem;
}

.menu-book {
  --book-ink: #2b1810;
  --book-accent: #c85a32;
  --book-paper: #fffaf3;
  --book-edge: rgba(43, 24, 16, 0.18);
  position: relative;
  padding: 0.85rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(145deg, #3d251a 0%, #241610 100%);
  box-shadow: 0 18px 32px rgba(61, 37, 26, .18), inset 0 1px rgba(255,255,255,.1);
  color: var(--book-paper);
}

.menu-book__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem .25rem .75rem;
}

.menu-book__eyebrow {
  color: #efb39a;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.menu-book__hint {
  color: rgba(255, 250, 243, .7);
  font-size: .65rem;
  text-align: right;
}

.menu-book__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 595.5 / 842.25;
  border-radius: 1.15rem;
  background: #f2e7da;
  box-shadow: 0 14px 24px rgba(0,0,0,.22), 0 0 0 1px var(--book-edge);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.menu-book__stage:active {
  cursor: grabbing;
}

.menu-book__underlay,
.menu-book__page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.menu-book__underlay {
  background: var(--book-paper);
}

.menu-book__underlay img,
.menu-book__page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.menu-book__page {
  z-index: 2;
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: none;
  box-shadow: 8px 0 18px rgba(43, 24, 16, .2);
  transition: transform 320ms cubic-bezier(.22,.75,.22,1), opacity 260ms ease, filter 320ms ease, box-shadow 320ms ease;
}

.menu-book__page.is-exit-next {
  transform: translateX(-12%) scale(.975) rotate(-1deg);
  opacity: 0;
  filter: brightness(.94) saturate(.92);
  box-shadow: -12px 0 22px rgba(43, 24, 16, .12);
}

.menu-book__page.is-exit-prev {
  transform: translateX(12%) scale(.975) rotate(1deg);
  opacity: 0;
  filter: brightness(.94) saturate(.92);
  box-shadow: 12px 0 22px rgba(43, 24, 16, .12);
}

.menu-book__page.is-enter-next {
  transform: translateX(12%) scale(.975) rotate(1deg);
  opacity: 0;
  filter: brightness(.94) saturate(.92);
  box-shadow: 12px 0 22px rgba(43, 24, 16, .12);
}

.menu-book__page.is-enter-prev {
  transform: translateX(-12%) scale(.975) rotate(-1deg);
  opacity: 0;
  filter: brightness(.94) saturate(.92);
  box-shadow: -12px 0 22px rgba(43, 24, 16, .12);
}

.menu-book__spine {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: .38rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.8) 12%, rgba(43,24,16,.25) 50%, transparent 88%);
  pointer-events: none;
}

.menu-book__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem .15rem .15rem;
}

.menu-book__button {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fffaf3;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.menu-book__button:hover,
.menu-book__button:focus-visible {
  background: var(--book-accent);
  outline: none;
}

.menu-book__button:active {
  transform: scale(.94);
}

.menu-book__button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.menu-book__counter {
  color: #fffaf3;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.menu-book__counter small {
  display: block;
  margin-top: .18rem;
  color: rgba(255,250,243,.65);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.menu-book__dots {
  display: flex;
  justify-content: center;
  gap: .28rem;
  margin-top: .7rem;
}

.menu-book__dot {
  width: .34rem;
  height: .34rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.menu-book__dot.is-active {
  width: 1.25rem;
  background: #efb39a;
}

.menu-book__dot:focus-visible {
  outline: 2px solid #fffaf3;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .menu-book__stage {
    max-height: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-book__page,
  .menu-book__button,
  .menu-book__dot {
    transition: none;
  }
}
