/* The lunch box seat stage (yakusou-ressha-r2.md section 4). Loads after round2.css. */
.bento-section { position:relative; }
.stage-head {
  position:absolute; z-index:6; top:calc(var(--journal-svh,1svh) * 22 + 1.25rem); left:calc(var(--gutter) * .5);
  max-width:29rem; padding:1.2rem 1.4rem 1.3rem; border-radius:var(--radius-card,1.3rem);
  background:rgba(255,250,240,.94); box-shadow:0 18px 40px rgba(40,30,10,.18); transform:rotate(-1.2deg);
}
.chapter-bar { font-size:.8125rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--color-pop,#d2452f); margin:0 0 .3rem; }
.stage-head .title-editorial { font-family:var(--font-sans); font-size:clamp(2rem,3.4vw,3.1rem); font-weight:300; letter-spacing:-.045em; line-height:1.02; margin:0; }
.stage-head .title-editorial em { font-style:normal; font-weight:800; color:var(--color-accent-ink,#1a6577); }
.stage-lead { font-size:1.0625rem; line-height:1.5; margin:.7rem 0 0; }

.seat-stage { --lift:0; height:calc(var(--journal-svh,1svh) * 220); position:relative; }
.stage-sticky { position:sticky; top:0; height:calc(var(--journal-svh,1svh) * 100); overflow:hidden; isolation:isolate; background:#e9e4da; }
.stage-sticky::before {
  content:''; position:absolute; inset:-30px; z-index:-1;
  background:url(../images/s-table-1280.webp) center 70% / cover no-repeat; filter:blur(22px) saturate(.7) brightness(1.08);
}
/* The carriage window: the valley keeps moving while you eat. */
.stage-window {
  position:absolute; top:12px; left:12px; right:12px; height:calc(var(--journal-svh,1svh) * 22 - 18px);
  border-radius:28px; overflow:hidden; background:#22332f;
  box-shadow:inset 0 0 0 6px #2b3a36, inset 0 0 30px rgba(0,0,0,.5), 0 10px 26px rgba(0,0,0,.25);
}
.stage-window video { width:100%; height:100%; object-fit:cover; display:block; }
.stage-table { position:absolute; left:0; right:0; top:calc(var(--journal-svh,1svh) * 22); bottom:0; }

/* The box */
.box-wrap {
  position:absolute; left:clamp(12px,2vw,32px); bottom:6px; aspect-ratio:16 / 10;
  width:min(1120px, calc((var(--journal-svh,1svh) * 78 - 12px) * 1.6), calc(100vw - 316px));
}
.box-canvas, .box-still { position:absolute; inset:0; width:100%; height:100%; border-radius:22px; object-fit:cover; }
.box-canvas { box-shadow:0 calc(16px + var(--lift) * 26px) calc(34px + var(--lift) * 30px) rgba(40,25,10,calc(.22 + var(--lift) * .14)); transition:box-shadow .2s; }
.box-still { box-shadow:0 16px 34px rgba(40,25,10,.22); }
.box-canvas:not(.has-frame) { opacity:0; }
.box-spots { position:absolute; inset:0; }
.box-wrap.is-shaking { animation:box-shake .32s ease-in-out; }
@keyframes box-shake { 20% { transform:translateX(-3px); } 45% { transform:translateX(3px); } 70% { transform:translateX(-2px); } 90% { transform:translateX(1px); } }
.box-note { position:absolute; left:42%; top:-2.6rem; z-index:3; color:var(--color-second,#a3482a); text-shadow:0 1px 0 rgba(255,255,255,.7); pointer-events:none; white-space:nowrap; }
.box-note.is-new { animation:note-in .5s var(--ease-out-cinematic,ease); }
@keyframes note-in { from { opacity:0; transform:rotate(-3deg) translateY(8px); } }

/* Compartments: the whole compartment is the target. */
.comp { position:absolute; border:2px solid transparent; border-radius:18px; background:transparent; cursor:pointer; padding:0; transition:border-color .2s, background .2s, box-shadow .3s; }
.comp:hover, .comp:focus-visible { border-color:rgba(255,255,255,.9); background:rgba(255,255,255,.1); outline:none; box-shadow:0 0 0 3px rgba(20,32,31,.35); }
.comp-ring { position:absolute; left:50%; top:50%; width:22px; height:22px; margin:-11px 0 0 -11px; border-radius:50%; border:3px solid var(--color-sun,#f2c14e); box-shadow:0 0 0 3px rgba(20,32,31,.3); animation:find-pulse 2.4s ease-in-out infinite; }
.comp.is-done .comp-ring { border-color:#fff; background:var(--color-pop,#d2452f); animation:none; }
.comp.is-glow { border-color:var(--color-sun,#f2c14e); background:rgba(242,193,78,.22); box-shadow:0 0 0 4px rgba(242,193,78,.35), 0 0 40px rgba(242,193,78,.6); }
.comp-drinks { border-radius:50%; }

/* Handles: only they block the page scroll on touch. */
.lift-handle { position:absolute; z-index:4; display:flex; align-items:center; gap:.5rem; border:0; padding:0; background:none; cursor:grab; touch-action:none; color:var(--color-ink,#14201f); }
.lift-handle:active { cursor:grabbing; }
.lh-tab {
  width:72px; height:56px; border-radius:18px; display:grid; place-items:center; flex:none;
  background:var(--color-surface,#fffaf0); box-shadow:0 8px 20px rgba(0,0,0,.28), inset 0 -3px 0 rgba(0,0,0,.08);
  animation:handle-pulse 2.2s ease-in-out infinite;
}
.lift-handle.is-up .lh-tab { color:var(--color-pop,#d2452f); }
.lift-handle.is-down .lh-tab { color:var(--color-accent-ink,#1a6577); animation:none; }
.lh-label { padding:.4rem .8rem; border-radius:2rem; background:rgba(20,32,31,.82); color:#fff; font-weight:700; font-size:.875rem; white-space:nowrap; }
.lift-handle:hover .lh-tab, .lift-handle:focus-visible .lh-tab { transform:translateY(-2px); }
.lift-handle:focus-visible { outline:none; }
.lift-handle:focus-visible .lh-tab { outline:3px solid var(--color-accent-ink,#1a6577); outline-offset:3px; }
.lift-handle.is-active .lh-tab { animation:none; transform:scale(1.06); }
.lift-handle.is-active .lh-label { opacity:0; }
@keyframes handle-pulse { 0%,100% { box-shadow:0 8px 20px rgba(0,0,0,.28), 0 0 0 0 rgba(210,69,47,.45); } 50% { box-shadow:0 8px 20px rgba(0,0,0,.28), 0 0 0 10px rgba(210,69,47,0); } }

/* The menu card: a real object on the table. */
.bento-menu { position:absolute; z-index:5; right:clamp(12px,2.4vw,40px); top:50%; width:300px; margin:0; transform:translate(calc(var(--lift) * 6px), -52%) rotate(3deg); transition:transform .25s ease; }
.bento-menu-inner { position:relative; border-radius:8px; overflow:hidden; box-shadow:0 18px 36px rgba(40,25,10,.28); background:#fff; }
.bento-menu-inner img { width:100%; height:auto; display:block; }
.bento-menu.is-wiggle { animation:card-wiggle .5s ease-in-out; }
@keyframes card-wiggle { 25% { transform:translate(0,-52%) rotate(6deg); } 60% { transform:translate(0,-52%) rotate(0deg); } }
.menu-zones { position:absolute; inset:0; }
.menu-zone { position:absolute; border:2px dashed transparent; border-radius:10px; background:transparent; cursor:pointer; padding:0; min-width:28px; min-height:28px; }
.menu-zone:hover, .menu-zone:focus-visible { border-color:var(--color-pop,#d2452f); background:rgba(210,69,47,.08); outline:none; }
.menu-zone.is-pulse { border-color:var(--color-pop,#d2452f); animation:zone-pulse 1.4s ease-in-out infinite; }
@keyframes zone-pulse { 50% { background:rgba(210,69,47,.16); } }
.menu-ticks { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.menu-ticks path { fill:none; stroke:var(--color-pop,#d2452f); stroke-width:1.1; stroke-linecap:round; stroke-linejoin:round; }
.menu-ticks path.is-drawing { stroke-dasharray:1; stroke-dashoffset:1; animation:tick-draw .5s ease-out .1s forwards; }
@keyframes tick-draw { to { stroke-dashoffset:0; } }
.menu-note { font-size:1.55rem; margin:.8rem 0 0 .4rem; transform:rotate(-2deg); }
.menu-dots { display:flex; gap:6px; margin:.55rem 0 0 .5rem; }
.menu-dots i { width:12px; height:12px; border-radius:50%; border:1.5px solid var(--color-pop,#d2452f); background:rgba(255,255,255,.6); transition:background .3s, transform .3s; }
.menu-dots i.is-on { background:var(--color-pop,#d2452f); transform:scale(1.1); }
.menu-stamp {
  position:absolute; left:50%; top:50%; width:150px; height:150px; margin:-75px 0 0 -75px; border-radius:50%;
  border:5px double var(--color-pop,#d2452f); color:var(--color-pop,#d2452f); background:rgba(255,255,255,.55);
  display:grid; place-content:center; text-align:center; gap:.2rem; pointer-events:none;
  opacity:0; transform:scale(2.2) rotate(-24deg);
}
.menu-stamp [lang=ja] { font-family:var(--font-ja); font-weight:700; font-size:1.25rem; letter-spacing:.04em; }
.menu-stamp small { font-size:.8125rem; font-weight:700; line-height:1.2; padding:0 .8rem; }
.menu-stamp.is-down { opacity:.9; transform:scale(1) rotate(-12deg); transition:transform .28s cubic-bezier(.3,1.6,.5,1), opacity .15s; }

/* Close-up plate: opens inside the stage, never below the fold. */
.plate { position:absolute; inset:0; z-index:20; display:grid; place-items:center; background:rgba(14,20,20,.45); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.plate[hidden] { display:none; }
.plate-frame { position:relative; width:min(calc(var(--journal-svh,1svh) * 70), 600px); aspect-ratio:1; border-radius:28px; overflow:visible; transform-origin:top left; }
.plate-frame > img { width:100%; height:100%; object-fit:cover; border-radius:28px; box-shadow:0 26px 60px rgba(0,0,0,.4); border:6px solid var(--color-surface,#fffaf0); }
.plate-rings { position:absolute; inset:6px; }
.item-ring { width:52px; height:52px; margin:-26px 0 0 -26px; }
.note-ring { border-style:dashed; border-color:#fff; background:rgba(255,255,255,.15); }
.plate-back {
  position:absolute; top:calc(50% - min(calc(var(--journal-svh,1svh) * 35), 300px) - 10px); right:calc(50% - min(calc(var(--journal-svh,1svh) * 35), 300px) - 20px);
  min-height:44px; padding:.5rem 1.1rem; border-radius:2rem; border:0; background:var(--color-surface,#fffaf0); color:var(--color-ink,#14201f);
  font-weight:700; font-size:.9375rem; box-shadow:0 8px 20px rgba(0,0,0,.3); cursor:pointer; z-index:3;
}
.magnifier {
  position:absolute; z-index:6; border-radius:50%; border:5px solid #fff; box-shadow:0 16px 36px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.1);
  background-repeat:no-repeat; pointer-events:none; opacity:0; transform:translateY(24px) scale(.5);
}
.magnifier.is-up { opacity:1; transform:none; transition:opacity .2s, transform .42s cubic-bezier(.3,1.5,.5,1); }
.item-tag {
  position:absolute; z-index:7; width:250px; padding:1rem 1.1rem 1rem 1.4rem; border-radius:6px 14px 14px 6px;
  background:#fbf3df; color:var(--color-ink,#14201f); box-shadow:0 14px 30px rgba(0,0,0,.3); transform:rotate(-3deg);
  display:grid; gap:.15rem; animation:tag-out .45s cubic-bezier(.3,1.4,.5,1);
}
.item-tag[hidden] { display:none; }
.item-tag::before { content:''; position:absolute; left:.55rem; top:1.1rem; width:10px; height:10px; border-radius:50%; background:var(--color-paper,#f6f0e2); box-shadow:inset 0 0 0 2px rgba(20,32,31,.25); }
.item-tag::after { content:''; position:absolute; left:-34px; top:1.4rem; width:40px; height:2px; background:#b69b6b; transform:rotate(-8deg); transform-origin:right; }
.item-tag.from-left::after { left:auto; right:-34px; transform:rotate(8deg); transform-origin:left; }
@keyframes tag-out { from { opacity:0; transform:rotate(-8deg) translateX(-14px); } }
.tag-ja { font-family:'Yomogi',var(--font-ja); font-size:1.75rem; line-height:1.1; }
.tag-reading { font-family:var(--font-script); font-size:1.35rem; color:var(--color-second,#a3482a); line-height:1.1; }
.tag-line { font-family:var(--font-script); font-size:1.4rem; line-height:1.15; }
.item-tag.is-note .tag-line { font-size:1.55rem; }
.tag-chips { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.5rem; }
.chip { font-size:.875rem; font-weight:600; padding:.25rem .55rem; border-radius:2rem; background:#e3efd6; color:#24401a; animation:chip-in .4s calc(var(--i) * 90ms + .2s) both cubic-bezier(.3,1.5,.5,1); }
.chip [lang=ja] { font-family:'Yomogi',var(--font-ja); font-size:1rem; }
@keyframes chip-in { from { opacity:0; transform:translateY(-10px) rotate(calc(var(--i) * 6deg - 12deg)) scale(.6); } }

/* Ticket: the lunch stamp, and the tab hides while the stage is pinned. */
html.stage-pinned .ticket.is-enhanced { opacity:0; pointer-events:none; }
.has-lunch.ticket .ticket-tab::after, .hero-ticket.has-lunch::after {
  content:'弁'; font-family:var(--font-ja); font-weight:700; position:absolute; width:24px; height:24px; border-radius:6px;
  display:grid; place-items:center; background:var(--color-pop,#d2452f); color:#fff; font-size:.8rem; transform:rotate(-8deg);
}
.has-lunch.ticket .ticket-tab { position:relative; }
.has-lunch.ticket .ticket-tab::after { right:-8px; top:-8px; }
.hero-ticket.has-lunch::after { right:16px; top:12px; }

/* Without JavaScript the stage is not built: the stills and the list. */
.bento-static { padding:2rem var(--gutter); display:grid; gap:1.5rem; }
.bento-static-pics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.bento-static-pics img { border-radius:1rem; aspect-ratio:4 / 3; }
.bento-static-list { display:grid; gap:.4rem; padding-left:1.2rem; max-width:46rem; }
html.bento-ready .bento-static { display:none; }
html:not(.bento-ready) .seat-stage { display:none; }
html:not(.bento-ready) .stage-head { position:static; transform:none; margin:2rem var(--gutter) 0; }

/* Motion off: no sequence; the buttons switch the stills at once. The stage is not pinned. */
.motion-off .seat-stage { height:auto; }
.motion-off .stage-sticky { position:relative; height:calc(var(--journal-svh,1svh) * 100); }
.motion-off .lh-tab, .motion-off .comp-ring { animation:none; }

/* Phone */
@media (max-width:760px) {
  .stage-head { position:relative; top:auto; left:auto; margin:0 20px -1.2rem; z-index:6; transform:rotate(-1deg); padding:1rem 1.1rem 1.1rem; }
  .stage-head .title-editorial { font-size:2.1rem; }
  .stage-lead { font-size:1rem; }
  .seat-stage { height:calc(var(--journal-svh,1svh) * 200); }
  .stage-window { height:calc(var(--journal-svh,1svh) * 16 - 14px); top:10px; left:10px; right:10px; border-radius:20px; }
  .stage-table { top:calc(var(--journal-svh,1svh) * 16); }
  .box-wrap { left:0; right:0; width:100%; top:2.6rem; bottom:auto; aspect-ratio:6 / 5; }
  .box-canvas, .box-still { border-radius:0; }
  .box-note { left:20px; top:-2.3rem; font-size:1.45rem; }
  .lh-tab { width:88px; height:64px; }
  .lh-label { font-size:.8125rem; }
  .bento-menu { position:absolute; top:3rem; right:0; width:72vw; transform:translateX(105%) rotate(0); transition:transform .4s var(--ease-out-cinematic,ease); z-index:22; }
  .bento-menu.is-open { transform:translateX(-12px) rotate(1.5deg); }
  .bento-menu.is-wiggle { animation:none; }
  .menu-note { font-size:1.3rem; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.6); }
  .plate { place-items:start center; padding-top:.8rem; }
  .plate-frame { width:100%; height:calc(var(--journal-svh,1svh) * 52); aspect-ratio:auto; }
  .plate-frame > img { border-radius:0; border-width:0; }
  .plate-back { top:auto; right:12px; bottom:calc(var(--journal-svh,1svh) * 30 + 10px); }
  .item-tag { left:0 !important; right:0; top:auto !important; bottom:0; width:auto; max-height:calc(var(--journal-svh,1svh) * 30); overflow:auto; border-radius:18px 18px 0 0; transform:none; padding:1rem 1.25rem 1.2rem; animation:sheet-up .35s ease-out; }
  .item-tag::before, .item-tag::after { display:none; }
  @keyframes sheet-up { from { transform:translateY(100%); } }
  .bento-static-pics { grid-template-columns:1fr; }
}

/* Once the box is open the heading shrinks into a small chapter label (plan 3.4). */
.stage-head { transition:transform .6s var(--ease-out-cinematic,ease), padding .6s, max-width .6s; transform-origin:top left; }
.stage-lead { transition:opacity .4s, max-height .6s; max-height:12rem; overflow:hidden; }
.box-open .stage-head { transform:rotate(-1.2deg) scale(.62); }
.box-open .stage-lead { opacity:0; max-height:0; margin:0; }
/* The waiting note is a sticky note on the lace, top right of the box picture. */
.box-note { left:auto; right:3%; top:3%; padding:.45rem .9rem .5rem; border-radius:.4rem; background:var(--color-sun,#f2c14e); color:var(--color-ink,#14201f); text-shadow:none; box-shadow:0 8px 18px rgba(0,0,0,.18); white-space:normal; max-width:15em; font-size:1.5rem; }
.lift-handle.label-left { flex-direction:row-reverse; }
@media (max-width:760px) {
  .box-open .stage-head { transform:rotate(-1deg); }
  .box-note { right:10px; top:-2.6rem; font-size:1.25rem; }
}

/* Phone, revised after the first look: the menu card stays on the table under the box
   (no empty band, always visible); handles carry a short word inside the tab. */
.lh-short { display:none; }
@media (max-width:760px) {
  .bento-menu { top:calc(2.6rem + 100vw * 5 / 6 + 1.1rem); left:20px; right:auto; width:62vw; transform:rotate(2deg); transition:none; }
  .bento-menu.is-open { transform:rotate(2deg); }
  .bento-menu.is-wiggle { animation:card-wiggle-m .5s ease-in-out; }
  @keyframes card-wiggle-m { 30% { transform:rotate(5deg); } 65% { transform:rotate(0); } }
  .menu-note { color:var(--color-second,#a3482a); text-shadow:none; font-size:1.2rem; }
    .lh-tab { width:72px; height:60px; flex-direction:column; gap:0; display:flex; align-items:center; justify-content:center; }
  .lh-short { display:block; font-weight:800; font-size:.8125rem; line-height:1; margin-top:1px; }
  .lh-label { display:none; }
}
@media (max-width:760px) {
  /* Square, so ring positions (% of the square close-up) stay on their items. */
  .plate-frame { width:min(100%, calc(var(--journal-svh,1svh) * 50)); height:auto; aspect-ratio:1; }
  .plate-back { bottom:auto; top:calc(min(100vw, var(--journal-svh,1svh) * 50) + 1.2rem); right:16px; }
}
@media (max-width:760px) { .bento-menu { z-index:5; } }

/* ===== Review of phase A, fixes P8/P9: one large menu card on a paper panel, no blurred filler ===== */
.stage-sticky { background:var(--color-paper,#f6f0e2); }
.stage-sticky::before { display:none; }
.stage-head { display:none; }            /* desktop: the heading lives in the panel */
.stage-panel {
  position:absolute; z-index:5; top:0; bottom:6px; right:12px;
  left:calc(clamp(12px,2vw,32px) + min(1120px, calc((var(--journal-svh,1svh) * 78 - 12px) * 1.6), calc(100vw - 316px)) + 14px);
  display:flex; flex-direction:column; gap:.9rem; padding:1.1rem 1rem 1rem; border-radius:22px;
  background:var(--color-surface,#fffaf0); box-shadow:0 10px 26px rgba(40,25,10,.1); overflow:auto;
}
.panel-head .title-editorial { font-family:var(--font-sans); font-size:clamp(1.7rem,2.3vw,2.2rem); font-weight:300; letter-spacing:-.04em; line-height:1.02; margin:0; }
.panel-head .title-editorial em { font-style:normal; font-weight:800; color:var(--color-accent-ink,#1a6577); }
.panel-head .stage-lead { font-size:1rem; line-height:1.5; margin:.55rem 0 0; }
.box-open .panel-head .stage-lead { opacity:1; max-height:none; margin:.55rem 0 0; }
.stage-panel .bento-menu { position:static; width:100%; margin:0; transform:none; display:flex; flex-direction:column; gap:.5rem; }
.stage-panel .bento-menu.is-wiggle { animation:card-wiggle-p .5s ease-in-out; }
@keyframes card-wiggle-p { 30% { transform:rotate(3deg); } 65% { transform:rotate(-1deg); } }
.stage-panel .bento-menu-inner { transform:rotate(1.5deg) translateX(calc(var(--lift) * 4px)); }
.stage-panel .menu-note { order:-1; margin:0; color:var(--color-ink,#14201f); font-size:1.45rem; transform:rotate(-2deg); text-shadow:none; }
.stage-panel .menu-dots { margin:.35rem 0 0; flex-wrap:wrap; }
@media (max-width:760px) {
  .stage-head { display:block; }
  .panel-head { display:none; }
  .stage-panel { left:12px; right:12px; top:calc(2.6rem + 100vw * 5 / 6 + .8rem); bottom:auto; padding:.8rem .9rem .9rem; gap:.5rem; overflow:visible; }
  .stage-panel .bento-menu { width:100%; top:auto; left:auto; right:auto; }
  .stage-panel .menu-note { font-size:1.2rem; }
  .bento-menu { transform:none; }
}
/* B2 (cheap part): a menu zone lights its compartment. */
.comp.is-hint { border-color:var(--color-sun,#f2c14e); background:rgba(242,193,78,.18); }
/* B6: the finish lands big in the middle, then flies to the card. */
.big-stamp { position:absolute; z-index:30; left:50%; top:50%; width:300px; height:300px; margin:-150px 0 0 -150px; border-radius:50%;
  border:9px double var(--color-pop,#d2452f); color:var(--color-pop,#d2452f); background:rgba(255,250,240,.82);
  display:grid; place-content:center; text-align:center; gap:.4rem; pointer-events:none; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.big-stamp [lang=ja] { font-family:var(--font-ja); font-weight:700; font-size:2.6rem; }
.big-stamp small { font-weight:700; font-size:1rem; padding:0 2rem; }

/* ===== Round 4 =====
   Phone: the whole picture of the box is shown (aspect 8:5), so the drinks at its right edge are in the frame, and the menu card
   is a button that opens a <dialog> (js/bento.js moves the same figure in and back). Desktop keeps the card in the panel. */
.menu-open-row { display:none; }
.menu-dialog { padding:0; border:0; background:transparent; color:var(--color-ink,#14201f); width:min(92vw,520px); max-width:92vw; max-height:92vh; max-height:92svh; overflow:visible; }
.menu-dialog::backdrop { background:rgba(14,20,20,.62); }
.menu-dialog-body { position:relative; background:var(--color-surface,#fffaf0); border-radius:18px; padding:3.6rem .9rem 1.1rem; max-height:92vh; max-height:92svh; overflow:auto; box-shadow:0 24px 60px rgba(0,0,0,.45); }
.menu-dialog-close { position:absolute; z-index:3; top:.55rem; right:.55rem; min-width:44px; min-height:44px; padding:.5rem 1.1rem; border-radius:2rem; border:0; background:var(--color-ink,#14201f); color:#fff; font-weight:700; font-size:.9375rem; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.3); }
.menu-dialog-close:focus-visible, .menu-open:focus-visible { outline:3px solid var(--color-accent-ink,#1a6577); outline-offset:3px; }
.menu-dialog .bento-menu { position:static; width:100%; margin:0; transform:none; display:flex; flex-direction:column; gap:.5rem; }
.menu-dialog .bento-menu-inner { transform:none; }
.menu-dialog .menu-note { order:-1; margin:0; color:var(--color-ink,#14201f); font-size:1.2rem; transform:rotate(-2deg); text-shadow:none; }
.menu-dialog .menu-dots { flex-wrap:wrap; margin:.35rem 0 0; }
.menu-open-count { margin:0; font-size:.875rem; font-weight:700; color:var(--color-muted,#4a5a58); }
@media (max-width:760px) {
  .box-wrap { aspect-ratio:8 / 5; }
  .stage-panel { top:calc(2.6rem + 100vw * 5 / 8 + 1rem); }
  .stage-panel .bento-menu { display:none; }
  .menu-open-row { display:flex; flex-direction:column; align-items:flex-start; gap:.5rem; }
  .menu-open { min-height:48px; }
  .plate.tag-open .plate-back { top:auto; bottom:calc(var(--tag-h, 0px) + 10px); }
}
