#menu-dialog { width:min(880px,94vw); max-height:90svh; padding:clamp(21px,4vw,52px); border:1px solid #b29b77; background:#f4eddf; overflow:auto; }
#menu-dialog::backdrop { background:#211618ad; backdrop-filter:blur(7px); }
.edition-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.edition-head h2 { margin:0; font:500 clamp(42px,6.4vw,80px)/1 var(--serif); letter-spacing:-.065em; }
.edition-head h2 em { color:var(--wine); }
.edition-head button { border:1px solid #b7a58b; border-radius:50%; width:44px; height:44px; font:300 30px/1 var(--sans); }
.edition-shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,3vw,38px); padding:32px 0 23px; }
.edition { display:grid; gap:13px; perspective:950px; }
.book-object { position:relative; display:block; aspect-ratio: .74; margin:0 4px 0 0; transform:rotate(-3deg); box-shadow:5px 8px 11px #412c272e; background:repeating-linear-gradient(90deg,#cabcab 0 1px,#faf4e7 1px 3px); border-radius:2px 4px 4px 2px; }
.edition-kids .book-object { transform:rotate(2deg); }
.edition-bar .book-object { transform:rotate(-1deg); }
.book-page,.book-face { position:absolute; inset:0 4px 0 0; width:calc(100% - 4px); height:100%; border-radius:2px; }
.book-page { object-fit:fill; }
.book-face { display:flex; flex-direction:column; justify-content:space-between; padding:10% 9% 12%; background-size:cover; background-position:center; transform-origin:0 50%; box-shadow:inset 5px 0 5px #170d0b55; transform:rotateY(-6deg); transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.book-face::after { content:""; position:absolute; inset:0 auto 0 5%; width:1px; background:#eee0c573; }
.book-face img { width:62%; filter:brightness(0) invert(1); }
.book-face b { color:#fff8e8; font:italic 500 clamp(20px,3.1vw,40px)/1.04 var(--serif); letter-spacing:-.05em; }
.edition-main .book-face { background-image:linear-gradient(0deg,#361c18ed,transparent 78%),url('/assets/dishes/2507_zelyonyy-zavtrak-kafe-8.webp'); }
.edition-bar .book-face { background-image:linear-gradient(0deg,#26130cef,transparent 78%),url('/assets/lamp.webp'); }
.edition-kids .book-face { background:#fffdf8 url('/assets/editions/kids.webp') center/contain no-repeat; }
.edition-kids .book-face img { filter:none; }
.edition-kids .book-face b { color:#563333; font-size:clamp(19px,2.7vw,34px); background:#fffdf8eb; }
.edition:focus-visible .book-face { transform:rotateY(-32deg); }
@media(hover:hover) { .edition:hover .book-face { transform:rotateY(-32deg); } }
.book-legend { display:grid; gap:2px; }
.book-legend strong { font:500 clamp(18px,2vw,26px)/1.25 var(--serif); }
.book-legend small { color:#68594e; font:500 13px/1.5 var(--sans); }
.edition-catalog { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #b5a58d; padding-top:15px; color:#593736; font-weight:650; }
@keyframes book-arrival { from { opacity:0; translate:0 16px; } }
@media(prefers-reduced-motion:no-preference) {
  dialog[open] .edition { animation:book-arrival .42s backwards; }
  dialog[open] .edition-kids { animation-delay:.08s; }
  dialog[open] .edition-bar { animation-delay:.15s; }
}
@media(max-width:570px) {
  .edition-shelf { grid-template-columns:1fr; gap:12px; padding:20px 0; }
  .edition { grid-template-columns:clamp(67px,10svh,98px) 1fr; align-items:center; gap:24px; }
  .book-face b { font-size:14px; }
  .edition-kids .book-face b { font-size:14px; }
  .book-legend strong { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { .book-face { transition:none; } }
