/* Ten Sushi · Menu (お品書き). The menu only: ordering lives on order.html (each dish's "Order this" goes there with the dish).
   Builds on site.css (tokens, header, footer, buttons). Shrine-first, paper page. This page's own objects (none of them used on Home or
   Our Story): the menu as one long paper scroll with a wooden rod, two hanging cloth strips (風帯) that sway in the scroll's wind, a roller
   at the bottom of the paper that unrolls as you read and gets thinner near the end, a stack of plates seen from the side (the six groups,
   in the home belt's rim colours), three filter stamps, rows that unfold like a paper tab, and for all-you-can-eat a table you set place
   by place, with the bill. See Extra/menu-page-design.md. */

/* ---------- page layout: the rail of plates beside the scroll ---------- */
.mwrap{ max-width:1180px; margin:0 auto; padding:38px var(--pad) 30px; display:grid; grid-template-columns:200px minmax(0,1fr); gap:clamp(20px,3.4vw,44px); align-items:start; }

/* jump targets clear the sticky header (and on phones the plate bar) */
#scroll,.menu-body,.sheet-end,#ayce{ scroll-margin-top:calc(var(--hh,70px) + var(--rh,0px) + 12px); }

/* ---------- the rail ---------- */
.mrail{ position:sticky; top:calc(var(--hh,70px) + 22px); z-index:20; display:grid; gap:18px; }
.stack{ display:grid; gap:2px; padding:12px 10px 14px; background:var(--shiro); border:3px solid var(--sumi); box-shadow:4px 4px 0 var(--sumi); position:relative; }
/* a plate seen from the side: a white top, the rim's colour band, a foot */
.pl8{ display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:44px; padding:0 2px; color:var(--sumi); text-decoration:none; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.pl8 i{ position:relative; display:block; width:58px; height:22px; transition:translate .25s cubic-bezier(.3,1.6,.5,1), rotate .25s; }
.pl8 i::before{ content:""; position:absolute; left:0; right:0; top:0; height:13px; border:3px solid var(--sumi); border-radius:50%; background:var(--shiro); z-index:1; }
.pl8 i::after{ content:""; position:absolute; left:4px; right:4px; top:6px; height:16px; border:3px solid var(--sumi); border-top:0; border-radius:0 0 14px 14px / 0 0 10px 10px; background:var(--rim); }
.pl8 span{ font:900 11.5px/1.15 var(--f-sans); letter-spacing:.08em; text-transform:uppercase; }
.pl8 small{ font:400 12px/1 var(--f-dot); color:var(--sumi-usu); }
.pl8[aria-current="true"] i{ translate:6px -4px; rotate:-4deg; }
.pl8[aria-current="true"] span{ color:var(--beni); }
.pl8.slide i{ animation:slideoff .55s cubic-bezier(.3,.7,.3,1); }
@keyframes slideoff{ 35%{ translate:30px -2px; rotate:6deg; } 70%{ translate:-3px 0; rotate:-2deg; } }
@media (hover:hover){ .pl8:hover i{ translate:3px -2px; } }
.pl8:focus-visible{ outline:3px solid var(--sumi); outline-offset:2px; }
.rail-q{ display:none; }

.findbox{ display:grid; gap:14px; }
.find{ display:flex; align-items:center; gap:8px; border:3px solid var(--sumi); background:var(--shiro); padding:0 10px; height:46px; box-shadow:3px 3px 0 var(--sumi); }
.find svg,.rail-q svg{ width:20px; height:20px; flex:none; fill:none; stroke:var(--sumi); stroke-width:2.6; stroke-linecap:round; }
.find input{ flex:1; min-width:0; border:0; background:none; font:500 16px/1 var(--f-sans); color:var(--sumi); outline:0; }
.find:focus-within{ outline:3px solid var(--sumi); outline-offset:2px; }
/* the stamps: unpressed, a dashed ring waiting for ink; pressed, the hanko's impression */
.stamps{ display:flex; justify-content:space-between; gap:6px; }
.stp{ display:grid; justify-items:center; gap:6px; padding:0; background:none; border:0; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; color:var(--sumi); }
.stp b{ display:grid; place-items:center; width:52px; height:52px; border-radius:50%; border:2.5px dashed rgba(19,18,17,.45); font:800 21px/1 var(--f-mincho); color:rgba(19,18,17,.5); transition:color .15s, border-color .15s; }
.stp[data-f="classic"] b{ font-size:15px; }
.stp span{ font:900 10.5px/1 var(--f-sans); letter-spacing:.1em; text-transform:uppercase; }
.stp[aria-pressed="true"] b{ border:3px solid var(--beni); color:var(--beni); background:rgba(179,18,42,.06); rotate:-8deg; box-shadow:inset 0 0 0 3px var(--shiro), inset 0 0 0 4.5px var(--beni); }
.stp.inked b{ animation:ink .42s cubic-bezier(.2,1.4,.4,1); }
@keyframes ink{ 0%{ scale:1.45; opacity:.2; } 60%{ scale:.94; opacity:1; } 100%{ scale:1; } }
.stp:focus-visible{ outline:none; } .stp:focus-visible b{ outline:3px solid var(--sumi); outline-offset:3px; }
.found{ margin:0; min-height:1.3em; font:400 13px/1.3 var(--f-dot); }

/* ---------- the scroll ---------- */
.scroll{ position:relative; min-width:0; }
/* the wooden rod at the top, its two knobs, and the two cloth strips (風帯) hanging from it */
.rod{ position:relative; z-index:4; height:26px; margin:0 -10px; background:var(--kuri); border:3px solid var(--sumi); border-radius:6px; box-shadow:4px 4px 0 var(--sumi); }
.rod::after{ content:""; position:absolute; left:10px; right:10px; top:4px; height:3px; border-radius:2px; background:rgba(255,255,255,.18); }
.knob{ position:absolute; top:-6px; left:-20px; width:20px; height:32px; background:var(--sumi); border-radius:6px 3px 3px 6px; }
.knob.k2{ left:auto; right:-20px; border-radius:3px 6px 6px 3px; }
.futai{ position:absolute; top:20px; left:24px; width:16px; height:clamp(70px,9vw,104px); background:var(--ai); border:2.5px solid var(--sumi); border-top:0; transform-origin:50% 0; rotate:var(--er,0deg); cursor:pointer; touch-action:manipulation; }
.futai::before{ content:""; position:absolute; left:3px; right:3px; top:0; bottom:10px; border-left:1.5px solid rgba(247,244,236,.55); border-right:1.5px solid rgba(247,244,236,.55); }
.futai::after{ content:""; position:absolute; left:-2.5px; right:-2.5px; bottom:-7px; height:7px; background:radial-gradient(circle at 25% 0,var(--shiro) 2.5px,transparent 3px),radial-gradient(circle at 75% 0,var(--shiro) 2.5px,transparent 3px); }
.futai.f2{ left:auto; right:24px; }
.paper{ position:relative; margin-top:-6px; background:var(--shiro) url("../img/paper.png"); border-left:3px solid var(--sumi); border-right:3px solid var(--sumi); box-shadow:5px 0 0 var(--sumi); padding:0 clamp(16px,3.4vw,44px) 46px; }

/* the title sheet: the menu's name in brush on the right, with a small seal (落款), the English on the left */
.sheet{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:clamp(18px,3vw,40px); align-items:start; padding:clamp(40px,6vw,64px) clamp(8px,4vw,46px) 34px; border-bottom:4px double var(--sumi); }
.brush{ margin:0; writing-mode:vertical-rl; font:400 clamp(56px,7vw,86px)/1.04 var(--f-brush); color:var(--sumi); position:relative; padding-bottom:40px; cursor:pointer; -webkit-user-select:none; user-select:none; }
.brush::after{ content:"天"; position:absolute; bottom:0; left:50%; translate:-50% 0; writing-mode:horizontal-tb; width:30px; height:30px; display:grid; place-items:center; background:var(--beni); color:var(--shiro); font:800 18px/1 var(--f-mincho); border-radius:3px; box-shadow:inset 0 0 0 2px var(--beni), inset 0 0 0 3.5px var(--shiro); }
.brush .ch{ display:inline-block; }
.sheet-tag{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:0 0 16px; font:900 12px/1.25 var(--f-sans); letter-spacing:.12em; text-transform:uppercase; }
.sheet-tag .no{ font:400 14px/1 var(--f-dot); background:var(--sumi); color:var(--yamabuki); padding:7px 9px 6px; border:3px solid var(--sumi); box-shadow:3px 3px 0 var(--sumi); letter-spacing:.08em; }
.sheet-tag b{ font:400 15px/1 var(--f-dot); letter-spacing:.02em; }
.sheet-loc{ display:inline-flex; align-items:center; gap:7px; font-weight:700; letter-spacing:.06em; text-transform:none; font-size:13px; }
.sheet-loc::before{ content:""; width:10px; height:10px; border-radius:50%; border:2px solid var(--sumi); background:var(--nezumi); }
[data-open="true"] .sheet-loc::before{ background:var(--rokusho); }
.sheet h1{ margin:0 0 16px; font:400 clamp(34px,4.6vw,58px)/1 var(--f-marquee); text-transform:uppercase; color:var(--h1,var(--sumi)); }
.sheet-lede{ margin:0 0 22px; max-width:46ch; font:500 clamp(16px,1.35vw,18px)/1.65 var(--f-sans); }
.sheet-ctas{ display:flex; flex-wrap:wrap; gap:12px; margin:0 0 20px; }
.lunch{ display:flex; align-items:center; gap:9px; margin:0; font:700 13px/1.4 var(--f-sans); cursor:pointer; }
.lamp-dot{ width:16px; height:16px; flex:none; border-radius:50%; border:3px solid var(--sumi); background:#2F4D42; }
.lunch.on .lamp-dot{ background:var(--rokusho); box-shadow:0 0 0 3px rgba(61,143,116,.3); }
.lunch.blink .lamp-dot{ animation:lampblink .5s steps(2) 3; }
@keyframes lampblink{ 50%{ background:var(--yamabuki); } }

/* a group: its plate, its name and kanji, how many dishes */
.mg{ padding-top:34px; scroll-margin-top:calc(var(--hh,70px) + var(--rh,0px) + 16px); }
.mg + .mg{ margin-top:18px; border-top:4px double var(--sumi); }
.mg-h{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin:0 0 6px; }
.mg-plate{ position:relative; width:66px; height:25px; flex:none; padding:0; border:0; background:none; cursor:pointer; touch-action:manipulation; }
.mg-plate::before{ content:""; position:absolute; left:0; right:0; top:0; height:15px; border:3px solid var(--sumi); border-radius:50%; background:var(--shiro); z-index:1; }
.mg-plate::after{ content:""; position:absolute; left:5px; right:5px; top:7px; height:18px; border:3px solid var(--sumi); border-top:0; border-radius:0 0 15px 15px / 0 0 11px 11px; background:var(--rim); }
.mg-plate.spin{ animation:platehop .6s cubic-bezier(.3,.7,.3,1); }
@keyframes platehop{ 30%{ translate:0 -14px; rotate:-10deg; } 60%{ translate:0 0; rotate:4deg; } 80%{ translate:0 -3px; rotate:0deg; } }
.mg-h h2{ margin:0; font:400 clamp(25px,3vw,34px)/1.05 var(--f-marquee); text-transform:uppercase; }
.mg-jp{ font:800 19px/1 var(--f-mincho); color:var(--beni); }
.mg-n{ margin-left:auto; font:400 13px/1 var(--f-dot); color:var(--sumi-usu); }
/* a category */
.mc{ margin:22px 0 0; scroll-margin-top:calc(var(--hh,70px) + var(--rh,0px) + 16px); }
.mc-h{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin:0 0 2px; padding-bottom:7px; border-bottom:3px solid var(--sumi); }
.mc-h h3{ margin:0; font:900 13.5px/1.2 var(--f-sans); letter-spacing:.16em; text-transform:uppercase; }
.mc-h small{ font:500 13px/1.45 var(--f-sans); color:var(--sumi-usu); }
.mc-lamp{ display:inline-flex; align-items:center; gap:6px; font:400 11.5px/1 var(--f-dot); letter-spacing:.04em; padding:4px 7px 3px; border:2px solid var(--sumi); background:var(--kinari); }
.mc-lamp i{ width:9px; height:9px; border-radius:50%; background:var(--nezumi); border:1.5px solid var(--sumi); }
.mc-lamp.on{ background:var(--yamabuki); } .mc-lamp.on i{ background:var(--rokusho); }
.mc ul{ list-style:none; margin:0; padding:0; }

/* a dish: [drawing] name ·········· price, with its pieces, a line of description and the tag pictograms; tap it to unfold */
.mi{ border-bottom:1px dashed rgba(19,18,17,.24); scroll-margin-top:calc(var(--hh,70px) + var(--rh,0px) + 70px); }
.mi-row{ width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"art top pr" "art sub sub"; align-items:center; gap:3px 12px; padding:11px 4px 11px 0; background:none; border:0; text-align:left; font:inherit; color:inherit; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.mi-row:focus-visible{ outline:3px solid var(--sumi); outline-offset:2px; }
.mi-art{ grid-area:art; width:60px; height:46px; display:grid; place-items:center; }
.mi-art:empty{ width:0; margin-right:-12px; }
.has-art .mi-art:empty{ width:60px; margin-right:0; }
.mi-art img{ display:block; width:60px; height:46px; transition:rotate .2s; }
.mi-top{ grid-area:top; display:flex; align-items:baseline; gap:4px 9px; min-width:0; }
.mi-en{ font:900 16px/1.3 var(--f-sans); }
.mi-jp{ font:700 12px/1 var(--f-mincho); color:var(--sumi-usu); white-space:nowrap; }
.mi-pc{ font:400 11.5px/1 var(--f-dot); color:var(--sumi-usu); white-space:nowrap; }
.mi-top::after{ content:""; flex:1; min-width:16px; border-bottom:2px dotted rgba(19,18,17,.38); translate:0 -4px; }
.mi-pr{ grid-area:pr; font:400 17px/1 var(--f-dot); white-space:nowrap; padding:4px 0 4px 2px; }
.mi-sub{ grid-area:sub; display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font:500 13.5px/1.45 var(--f-sans); color:var(--sumi-usu); }
.mi-sub:empty{ display:none; }
.mi-tags{ display:inline-flex; gap:5px; }
.tg{ width:25px; height:25px; display:inline-grid; place-items:center; border:2px solid var(--sumi); border-radius:50%; background:var(--shiro); }
.tg svg{ width:17px; height:17px; fill:none; stroke:var(--sumi); stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }
.tg.spicy svg{ stroke:var(--beni); } .tg.veg svg{ stroke:var(--rokusho); } .tg.raw svg{ stroke:var(--ai); } .tg.shell svg{ stroke:#C2410C; }
.tg.spicy{ background:#FBE9E6; } .tg.veg{ background:#E5F2EC; } .tg.raw{ background:#E6EAF4; } .tg.shell{ background:#FCEBDD; }
.mi mark{ background:linear-gradient(transparent 38%,rgba(255,198,26,.8) 38%); color:inherit; padding:0 1px; }
@media (hover:hover){ .mi-row:hover .mi-en{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; } .mi-row:hover .mi-art img{ rotate:-4deg; } }
.mi.open > .mi-row .mi-en{ color:var(--beni); }
.mi.hide,.mc.hide,.mg.hide{ display:none; }
.mi.flash > .mi-row{ animation:miflash .9s; }
@keyframes miflash{ 0%,30%{ background:rgba(255,198,26,.55); } 100%{ background:transparent; } }

/* the fold: a paper tab with a perforated top edge, the drawing large, the tags in words, and the way to order it */
.mi-fold{ position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px 18px; margin:0 0 14px 72px; padding:16px; background:var(--kinari) url("../img/paper.png"); border:3px solid var(--sumi); box-shadow:4px 4px 0 var(--sumi); transform-origin:50% 0; }
.mi-fold::before{ content:""; position:absolute; left:-3px; right:-3px; top:-9px; height:6px; background:radial-gradient(circle at 5px 6px,var(--sumi) 2px,transparent 2.5px) 0 0 / 12px 6px repeat-x; }
.mi-fold[hidden]{ display:none; }
.mi-fold.unfold{ animation:unfold .38s cubic-bezier(.2,.9,.3,1); }
@keyframes unfold{ from{ clip-path:inset(0 0 100% 0); translate:0 -6px; } to{ clip-path:inset(-12px -12px -12px -12px); translate:0 0; } }
.mf-art{ width:150px; }
.mf-art:empty{ display:none; }
.mf-art .dish{ width:150px; --ow:3px; }
.mf-txt{ display:grid; gap:8px; justify-items:start; }
.mf-txt p{ margin:0; font:500 14px/1.5 var(--f-sans); }
.mf-words{ display:flex; flex-wrap:wrap; gap:6px; }
.mf-words span{ display:inline-flex; align-items:center; gap:6px; font:900 11px/1 var(--f-sans); letter-spacing:.1em; text-transform:uppercase; padding:5px 8px 5px 5px; border:2px solid var(--sumi); background:var(--shiro); }
.mf-words .tg{ width:20px; height:20px; border-width:1.5px; } .mf-words .tg svg{ width:14px; height:14px; }
.mf-txt .mf-lunch{ font:400 13px/1.3 var(--f-dot); }
.mf-go{ margin-top:2px; }

.sc-none{ margin:26px 0 0; font:700 16px/1.6 var(--f-sans); }
.lnk{ background:none; border:0; padding:0; font:inherit; color:var(--beni); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }

/* the end of the scroll: the 完 seal lands when you get here */
.sheet-end{ margin-top:40px; padding-top:30px; border-top:4px double var(--sumi); display:grid; justify-items:center; text-align:center; gap:14px; }
.sheet-end h2{ margin:0; font:400 clamp(24px,3vw,32px)/1.1 var(--f-marquee); text-transform:uppercase; }
.kan{ display:grid; place-items:center; width:84px; height:84px; border-radius:50%; border:3px dashed rgba(19,18,17,.3); font:800 40px/1 var(--f-mincho); color:transparent; cursor:pointer; }
.kan.done{ border:5px solid var(--beni); color:var(--beni); rotate:-12deg; box-shadow:inset 0 0 0 3px var(--shiro), inset 0 0 0 5px var(--beni); background:rgba(179,18,42,.05); }
.kan.land{ animation:kan .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes kan{ 0%{ scale:2.4; rotate:-2deg; opacity:0; } 60%{ scale:.94; opacity:1; } 100%{ scale:1; rotate:-12deg; } }
.ways{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.src{ margin:6px 0 0; max-width:62ch; font:500 12.5px/1.55 var(--f-sans); color:var(--sumi-usu); }

/* the roller: what is still rolled up. Sticks to the bottom of the screen, spins as you scroll, thins as you near the end */
.roll{ position:sticky; z-index:5; bottom:calc(var(--tb,0px) + 10px); height:var(--rd,34px); margin:-3px -10px 0; border:3px solid var(--sumi); border-radius:999px; box-shadow:0 4px 0 var(--sumi); cursor:grab; touch-action:none; overflow:hidden;
  background:linear-gradient(180deg,rgba(19,18,17,.22),transparent 34%,transparent 62%,rgba(19,18,17,.3)), repeating-linear-gradient(180deg,var(--shiro) 0 7px,#E6DFCD 7px 9px);
  background-position:0 0, 0 calc(var(--spin,0) * 1px); transition:height .3s; }
.roll i{ position:absolute; top:0; bottom:0; left:0; width:16px; background:var(--kuri); border-right:3px solid var(--sumi); }
.roll::after{ content:""; position:absolute; top:0; bottom:0; right:0; width:16px; background:var(--kuri); border-left:3px solid var(--sumi); }
.roll.is-dragging{ cursor:grabbing; }

/* ---------- all you can eat: set the table, the bill ---------- */
/* small text never sits on vermilion (style guide §3.3): this page's section number is the LED's yellow on black */
.mayce .sec-head .no{ background:var(--sumi); color:var(--yamabuki); }
.mayce{ padding-top:58px; padding-bottom:30px; }
.ay-lede{ margin:-12px 0 24px; max-width:62ch; font:500 17px/1.65 var(--f-sans); }
.ay-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,420px); gap:clamp(22px,4vw,48px); align-items:start; }
/* the table from above: hinoki boards, one place setting per guest */
.ay-table{ position:relative; max-width:600px; padding:16px; background:var(--sumi); border:4px solid var(--sumi); box-shadow:8px 8px 0 var(--shu); }
.tabletop{ min-height:300px; display:grid; grid-template-rows:auto 1fr auto; gap:6px; padding:16px 18px; border:3px solid var(--sumi); border-radius:10px; background:var(--hinoki); background-image:repeating-linear-gradient(90deg,transparent 0 46px,rgba(106,68,38,.16) 46px 48px), repeating-linear-gradient(0deg,transparent 0 9px,rgba(106,68,38,.07) 9px 10px); }
.side{ display:flex; flex-wrap:wrap; justify-content:center; align-content:flex-start; gap:6px 18px; min-height:84px; }
#side-b{ align-content:flex-end; }
#side-a .seat{ transform:rotate(180deg); }   /* across the table, facing you */
.mid{ display:flex; align-items:center; justify-content:center; gap:26px; min-height:44px; }
.soy{ position:relative; width:28px; height:28px; border-radius:50%; background:#3B1D12; border:3px solid var(--sumi); box-shadow:2px 2px 0 rgba(19,18,17,.3); }
.soy::after{ content:""; position:absolute; inset:6px; border-radius:50%; background:var(--beni); border:1.5px solid var(--sumi); }
.gari{ position:relative; width:50px; height:32px; border-radius:50%; background:var(--shiro); border:3px solid var(--sumi); box-shadow:2px 2px 0 rgba(19,18,17,.3); }
.gari::before,.gari::after{ content:""; position:absolute; top:7px; width:16px; height:11px; border-radius:50%; background:#F2B8B0; border:1.5px solid #C97F76; }
.gari::before{ left:7px; rotate:-14deg; } .gari::after{ right:7px; rotate:18deg; }
.tabletop.empty .mid::before{ content:"空席"; font:800 30px/1 var(--f-mincho); color:rgba(19,18,17,.24); letter-spacing:.2em; }
.tabletop.empty .soy,.tabletop.empty .gari{ display:none; }
.seat{ position:relative; width:82px; height:82px; flex:none; cursor:pointer; padding:0; border:0; background:none; touch-action:manipulation; }
.seat .plt{ position:absolute; left:6px; top:12px; width:58px; height:58px; border-radius:50%; background:var(--shiro); border:3px solid var(--sumi); box-shadow:inset 0 0 0 7px var(--rim), 2px 3px 0 rgba(19,18,17,.35); }
.seat .plt::after{ content:""; position:absolute; inset:14px; border-radius:50%; border:2px solid rgba(19,18,17,.12); }
.seat .hashi{ position:absolute; right:2px; top:6px; width:9px; height:70px; rotate:8deg; transform-origin:50% 90%; transition:rotate .2s; }
.seat .hashi::before,.seat .hashi::after{ content:""; position:absolute; top:0; width:3.5px; height:66px; background:var(--kuri); border:1.5px solid var(--sumi); border-radius:2px 2px 1px 1px; }
.seat .hashi::before{ left:0; } .seat .hashi::after{ right:0; }
.seat .rest{ position:absolute; right:-2px; top:50px; width:17px; height:8px; background:var(--ai); border:2px solid var(--sumi); border-radius:5px; }
.seat.kid .plt{ width:48px; height:48px; left:10px; top:17px; box-shadow:inset 0 0 0 6px var(--rim), 2px 3px 0 rgba(19,18,17,.35); }
.seat.baby .plt{ width:40px; height:40px; left:14px; top:21px; box-shadow:inset 0 0 0 5px var(--rim), 2px 3px 0 rgba(19,18,17,.35); }
.seat.baby .hashi{ display:none; }
.seat.baby .rest{ right:10px; top:58px; width:12px; background:var(--yamabuki); }
.seat.in{ animation:seatin .42s cubic-bezier(.2,1.5,.4,1); }
@keyframes seatin{ from{ scale:.2; rotate:-30deg; opacity:0; } }
.seat.out{ animation:seatout .3s ease-in forwards; pointer-events:none; }
@keyframes seatout{ to{ scale:.3; translate:0 30px; opacity:0; } }
.seat.snap .hashi{ animation:snap .32s; }
@keyframes snap{ 40%{ rotate:-6deg; } }
.ay-more{ align-self:center; font:400 20px/1 var(--f-dot); color:var(--sumi); background:var(--shiro); border:3px solid var(--sumi); padding:8px 10px 7px; }
.tabletop.bump{ animation:r-shake .4s; }
/* guests and their prices */
.ay-rows{ list-style:none; margin:0 0 14px; padding:0; border-top:3px solid var(--sumi); }
.ay-row{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 0; border-bottom:1px dashed rgba(19,18,17,.3); }
.ay-row .lb{ display:flex; align-items:center; gap:10px; font:900 15px/1.25 var(--f-sans); }
.ay-row .lb i{ width:18px; height:18px; flex:none; border-radius:50%; background:var(--shiro); border:2.5px solid var(--sumi); box-shadow:inset 0 0 0 4px var(--rim); }
.ay-row .pr{ font:400 16px/1 var(--f-dot); white-space:nowrap; }
.ay-row .pr.flip{ animation:r-flip .5s ease-in-out; }
.stepper{ display:inline-flex; align-items:center; border:3px solid var(--sumi); background:var(--shiro); box-shadow:2px 2px 0 var(--sumi); }
.stepper button{ width:40px; height:40px; border:0; background:none; font:900 19px/1 var(--f-sans); cursor:pointer; touch-action:manipulation; color:var(--sumi); }
.stepper button:disabled{ color:rgba(19,18,17,.25); cursor:default; }
.stepper output{ min-width:30px; text-align:center; font:400 18px/1 var(--f-dot); }
.ay-day{ display:grid; grid-template-columns:1fr 1fr; border:3px solid var(--sumi); margin:0 0 16px; }
.ay-day button{ padding:11px 6px; border:0; background:var(--shiro); font:900 12px/1.2 var(--f-sans); letter-spacing:.08em; text-transform:uppercase; cursor:pointer; touch-action:manipulation; color:var(--sumi); }
.ay-day button + button{ border-left:3px solid var(--sumi); }
.ay-day button small{ font:400 12px/1 var(--f-dot); letter-spacing:0; }
.ay-day button[aria-checked="true"]{ background:var(--sumi); color:var(--yamabuki); }
/* the bill: a strip of register paper with a torn edge */
.ay-bill{ position:relative; background:var(--kinari) url("../img/paper.png"); border:3px solid var(--sumi); border-bottom:0; padding:14px 16px 12px; margin:0 0 24px; }
.ay-bill::after{ content:""; position:absolute; left:-3px; right:-3px; bottom:-11px; height:11px; background:linear-gradient(135deg,var(--sumi) 33%,transparent 33%) 0 0 / 14px 11px repeat-x, linear-gradient(225deg,var(--sumi) 33%,transparent 33%) 0 0 / 14px 11px repeat-x; }
.ay-bh{ display:flex; align-items:center; gap:10px; margin:0 0 10px; font:900 12px/1 var(--f-sans); letter-spacing:.16em; text-transform:uppercase; }
.ay-bh span{ font:800 16px/1 var(--f-mincho); letter-spacing:.06em; background:var(--beni); color:var(--shiro); padding:5px 6px; }
.ay-sum{ display:grid; grid-template-columns:1fr auto; gap:5px 0; margin:0; font:400 14px/1.25 var(--f-dot); }
.ay-sum dt,.ay-sum dd{ margin:0; } .ay-sum dd{ text-align:right; padding-left:10px; }
.ay-sum .tot{ font-size:21px; padding-top:7px; border-top:3px solid var(--sumi); }
.ay-sum dd.tot.ring{ animation:r-pop .42s cubic-bezier(.3,1.6,.5,1); }
.ay-note{ margin:0 0 16px; font:500 13px/1.55 var(--f-sans); color:var(--sumi-usu); }

/* ---------- narrower screens ---------- */
@media (max-width:1100px){ .mwrap{ grid-template-columns:184px minmax(0,1fr); } .pl8{ grid-template-columns:50px minmax(0,1fr) auto; } .pl8 i{ width:50px; } }
@media (max-width:900px){
  .mwrap{ grid-template-columns:minmax(0,1fr); padding-top:0; gap:0; }
  /* the rail becomes a bar under the header: the plates in a row, and a search button that opens the search and stamps */
  .mrail{ top:var(--hh,60px); margin:0 calc(var(--pad) * -1); gap:0; grid-template-columns:minmax(0,1fr) auto; align-items:center; background:var(--shiro) url("../img/paper.png"); border-bottom:3px solid var(--sumi); padding:6px var(--pad); }
  .stack{ display:flex; gap:0; padding:0; border:0; box-shadow:none; background:none; overflow-x:auto; scrollbar-width:none; margin:0 -4px; }
  .stack::-webkit-scrollbar{ display:none; }
  .pl8{ flex:1 0 64px; grid-template-columns:1fr; grid-template-rows:20px auto; justify-items:center; gap:4px; padding:4px 2px 2px; min-height:52px; }
  .pl8 i{ width:44px; height:14px; }
  .pl8 span{ font-size:9.5px; letter-spacing:.04em; text-align:center; }
  .pl8 small{ display:none; }
  .pl8[aria-current="true"] i{ translate:0 -4px; rotate:-4deg; }
  .rail-q{ position:relative; display:grid; place-items:center; width:46px; height:46px; margin-left:8px; border:3px solid var(--sumi); background:var(--shiro); box-shadow:2px 2px 0 var(--sumi); cursor:pointer; }
  .rail-q[aria-expanded="true"]{ background:var(--sumi); } .rail-q[aria-expanded="true"] svg{ stroke:var(--shiro); }
  .rail-q.lit::after{ content:""; position:absolute; top:-6px; right:-6px; width:12px; height:12px; border-radius:50%; background:var(--beni); border:2px solid var(--shiro); }
  .findbox{ grid-column:1 / -1; display:none; padding:10px 0 4px; gap:10px; }
  .mrail.open .findbox{ display:grid; }
  .stamps{ justify-content:flex-start; gap:18px; }
  .stp{ grid-auto-flow:column; align-items:center; gap:8px; }
  .stp b{ width:44px; height:44px; font-size:18px; }
  .stp[data-f="classic"] b{ font-size:13px; }
  .scroll{ margin-top:22px; }
  .rod{ margin:0 -4px; }
  .knob{ left:-8px; width:12px; } .knob.k2{ right:-8px; }
  .roll{ margin:-3px -4px 0; }
  .paper{ box-shadow:none; }
  .ay-grid{ grid-template-columns:minmax(0,1fr); }
  .tabletop{ min-height:240px; }
}
@media (max-width:560px){
  .paper{ padding:0 14px 40px; border-left-width:2px; border-right-width:2px; }
  /* the brush title lies down above the English, its seal after it */
  .sheet{ grid-template-columns:minmax(0,1fr); padding:40px 14px 26px; gap:8px; }
  .brush{ writing-mode:horizontal-tb; display:flex; align-items:center; gap:12px; font-size:42px; padding-bottom:0; justify-self:start; }
  .brush::after{ position:static; translate:none; width:26px; height:26px; font-size:15px; }
  .sheet h1{ font-size:clamp(26px,7.6vw,36px); }
  .futai{ height:58px; width:12px; left:8px; } .futai.f2{ left:auto; right:8px; }
  .mi-row{ grid-template-areas:"art top top" "art sub pr"; padding-right:0; gap:3px 10px; }
  .mi-art{ width:48px; height:40px; } .mi-art img{ width:48px; height:40px; }
  .mi-art:empty{ margin-right:-10px; }
  .has-art .mi-art:empty{ width:48px; margin-right:0; }
  .mi-en{ font-size:15px; }
  .mi-top{ flex-wrap:wrap; }
  .mi-top::after{ display:none; }
  .mi-pr{ align-self:end; }
  .mi-fold{ margin-left:0; grid-template-columns:minmax(0,1fr); }
  .mf-art{ width:120px; } .mf-art .dish{ width:120px; }
  .tabletop{ padding:12px 8px; gap:4px; }
  .side{ gap:4px 8px; min-height:72px; }
  .seat{ width:70px; height:72px; }
  .seat .plt{ width:50px; height:50px; left:4px; top:12px; }
  .seat .hashi{ height:62px; } .seat .hashi::before,.seat .hashi::after{ height:58px; }
  .seat .rest{ top:44px; }
  .ay-row{ grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"lb st" "pr st"; gap:4px 12px; }
  .ay-row .lb{ grid-area:lb; } .ay-row .pr{ grid-area:pr; padding-left:28px; } .ay-row .stepper{ grid-area:st; }
}
@media (prefers-reduced-motion:reduce){ .pl8 i,.mg-plate,.mi-fold,.kan,.seat,.stp b,.roll,.ay-sum .tot,.ay-row .pr,.mi > .mi-row{ animation:none !important; transition:none !important; } }
html.rm .pl8.slide i,html.rm .mg-plate.spin,html.rm .mi-fold.unfold,html.rm .kan.land,html.rm .seat.in,html.rm .stp.inked b,html.rm .ay-sum dd.tot.ring,html.rm .ay-row .pr.flip,html.rm .mi.flash > .mi-row,html.rm .tabletop.bump{ animation:none !important; }
html.rm .seat.out{ display:none; }
