/* 金峰魯肉飯: standing at the door under the long painted signboard. Teal hills and red-on-yellow brush words on the
   sign, then a steel counter, the steel steamer cabinet, the pink takeaway slip on a wood-laminate table, the dishes on
   that table, the slips on the counter spike, the door. Sections are parted by the sign's hill ridge. */

:root {
  /* the signboard */
  --sky: #f6f4ec;
  --teal: #1f7a6d;
  --teal-dk: #0f4f4a;
  --teal-pale: #8cc0b5;
  --red: #c8201c;
  --red-dk: #9b1612;
  --yellow: #f5c518;
  /* the slip */
  --pink: #f4b6d2;
  --pink-lt: #f8cde0;
  --slip-ink: #3a2a33;
  --pen: #1d3a8a;
  /* steel */
  --steel: #c9ced3;
  --steel-dk: #8d959c;
  --steel-hi: #eef0f2;
  --steel-shine: #f7f8f9;
  --wall: #4c5459;
  --wall-dk: #3a4146;
  --cavity: #2b3135;
  /* the table */
  --wood: #e9d9bf;
  --wood-dk: #d6c09c;
  --spoon: #f2c200;
  /* text */
  --ink: #1d2729;
  --ink-2: #47545a;
  --on-dark: #f6f4ec;
  --focus: #1d3a8a;
  --shadow: rgb(20 30 32 / 0.28);

  --f-sign: "Potta One", "Chiron GoRound TC", "PingFang TC", sans-serif;
  --f-plaque: "Chiron GoRound TC", "Potta One", "PingFang TC", sans-serif;
  --f-body: "LXGW WenKai TC", "Noto Serif TC", "Kaiti TC", "BiauKai", serif;
  --f-mono: "Spline Sans Mono", "LXGW WenKai TC", ui-monospace, monospace;
  --f-ming: "Noto Serif TC", "Songti TC", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --brushed: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.16) 0 1px, transparent 1px 2px, rgb(0 0 0 / 0.035) 2px 3px, transparent 3px 5px);
  --counter-bg: var(--brushed), linear-gradient(90deg, var(--steel) 0%, var(--steel-hi) 28%, var(--steel) 55%, var(--steel-hi) 80%, var(--steel) 100%);
  --wood-bg: var(--grain) 0 0 / 100% 1200px, var(--wood);
  --spike-bg: var(--brushed), var(--steel-hi);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200' viewBox='0 0 1600 1200' preserveAspectRatio='none'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.12' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .14 .75 0 0 0 -.33'/%3E%3C/filter%3E%3Crect width='1600' height='1200' filter='url(%23w)'/%3E%3C/svg%3E");
}

@property --sheen {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.75 var(--f-body);
  color: var(--ink);
  background: var(--sky);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--teal-dk); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dk); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.snt { display: inline-block; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--on-dark); }
.skip:focus { top: 12px; }

.h2 {
  font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.1 var(--f-sign);
  color: var(--red);
  overflow-wrap: break-word;
  min-width: 0;
}
.fb { font-family: var(--f-plaque); font-weight: 900; }
.sec-copy { margin-top: 0.6rem; max-width: 34em; font-size: 1.125rem; }

/* ---------- buttons ---------- */

.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  min-height: 48px; padding: 0 1.1em;
  border: 2px solid var(--teal-dk); border-radius: 6px;
  background: var(--sky); color: var(--teal-dk);
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--teal-dk); color: var(--sky); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--sky); }
.btn.primary:hover { background: var(--red-dk); border-color: var(--red-dk); color: var(--sky); }
.btn:active { translate: 0 1px; }

/* ---------- the signboard ---------- */

.sign-sky {
  position: relative; overflow: clip;
  min-height: clamp(210px, 25vw, 300px);
  display: grid; place-items: center;
  padding: clamp(18px, 2.6vw, 34px) var(--gutter) clamp(56px, 7vw, 96px);
  background: var(--sky);
  border-bottom: 6px solid var(--teal-dk);
}
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; }
.hl-3 { fill: var(--teal-pale); }
.hl-2 { fill: var(--teal); }
.hl-1 { fill: var(--teal-dk); }
.sign-words {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.1em 0.5em;
}
.sign-main { display: flex; gap: 0.25em; font: 400 clamp(56px, 8.6vw, 128px)/1 var(--f-sign); color: var(--red); white-space: nowrap; }
.sw { display: inline-flex; }
.ch, .pq { display: inline-grid; }
.ch > *, .pq > * { grid-area: 1 / 1; }
/* the yellow edge is a fat stroke on a copy behind the red letter */
.ch-y { color: var(--yellow); -webkit-text-stroke: 0.15em var(--yellow); text-shadow: 0 0.05em 0 var(--teal-dk); }
.ch-r { color: var(--red); }
.sign-side { display: flex; gap: 0.5em; font: 900 clamp(30px, 4.2vw, 60px)/1 var(--f-plaque); }
.pw { display: inline-flex; gap: 0.14em; }
/* 鐤邊趖 and 肉焿: a plaque per character, painted the same red and yellow */
.pq {
  place-items: center;
  width: 1.36em; aspect-ratio: 1;
  background: var(--sky);
  border: 0.06em solid var(--teal-dk);
  border-radius: 0.08em;
  box-shadow: 0 0.06em 0 var(--teal-dk);
  rotate: -1.5deg;
}
.pq:nth-child(even) { rotate: 1.6deg; }
.pq .ch-y { -webkit-text-stroke-width: 0.13em; text-shadow: none; }

/* ---------- the steel counter ---------- */

.counter {
  padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 60px);
  background: var(--counter-bg);
}
.counter-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.hero-dish { justify-self: center; width: min(80%, 440px); }
/* a paper placemat: the picture's white is cut out, so it needs a light ground */
.mat {
  padding: clamp(10px, 2vw, 22px);
  background: var(--sky);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--steel-dk), 0 18px 30px -18px var(--shadow);
  rotate: -2deg;
}
.mat img { display: block; width: 100%; }
.counter-txt { display: grid; gap: 14px; justify-items: start; }
.bowls { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 22px); margin-bottom: 6px; }
.bowl { --s: clamp(76px, 12vw, 150px); display: grid; place-items: center; width: var(--s); aspect-ratio: 1; }
.b-1 { --s: clamp(64px, 9.8vw, 122px); }
.b-2 { --s: clamp(54px, 7.9vw, 98px); }
.bowl > * { grid-area: 1 / 1; }
/* a steel bowl seen from above: bright rim, swirled inner wall, flat floor */
.bowl-face {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--steel-hi) 0 33%, transparent 34%),
    conic-gradient(from var(--sheen), var(--steel-shine), var(--steel-dk) 14%, var(--steel-hi) 30%, var(--steel) 46%, var(--steel-shine) 58%, var(--steel-dk) 74%, var(--steel-hi) 88%, var(--steel-shine));
  box-shadow: inset 0 0 0 3px var(--steel-shine), inset 0 0 0 5px var(--steel-dk), inset 0 0 14px 4px rgb(0 0 0 / 0.18), 0 8px 12px -6px var(--shadow);
}
.bowl-t { position: relative; display: grid; justify-items: center; line-height: 1; }
.bowl-z { font: 400 calc(var(--s) * 0.26)/1 var(--f-sign); color: var(--red); }
.bowl-p { margin-top: 0.15em; font-size: max(0.95rem, calc(var(--s) * 0.15)); font-weight: 700; color: var(--ink); }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 700; line-height: 1.55; max-width: 22em; }
.near, .status { display: flex; align-items: center; gap: 0.4em; color: var(--ink-2); }
.status { font-weight: 700; color: var(--ink); }
.status.is-open { color: var(--teal-dk); }
.status.is-closed { color: var(--red-dk); }
.rating { display: inline-flex; align-items: center; gap: 0.35em; color: var(--ink); }
.rating .star { width: 1.1em; height: 1.1em; fill: var(--spoon); stroke: var(--ink); stroke-width: 1.2; }

@media (min-width: 820px) {
  .counter-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero-dish { width: min(100%, 440px); }
}

/* ---------- hill ridges between sections ---------- */

.ridge { background: var(--above); line-height: 0; }
.ridge svg { display: block; width: 100%; height: clamp(38px, 5.5vw, 80px); }
.rg-b { fill: var(--teal-pale); }

/* ---------- 蒸櫃: the steamer cabinet ---------- */

.steamer {
  padding-block: clamp(36px, 6vw, 80px);
  background: var(--brushed), linear-gradient(180deg, var(--wall-dk), var(--wall) 40%, var(--wall-dk));
  color: var(--on-dark);
}
.steamer-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.cabinet {
  padding: 12px 12px 0;
  border-radius: 10px 10px 4px 4px;
  background: var(--brushed), linear-gradient(90deg, var(--steel-dk), var(--steel-hi) 12%, var(--steel) 50%, var(--steel-hi) 88%, var(--steel-dk));
  box-shadow: inset 0 2px 0 var(--steel-shine), 0 30px 50px -24px rgb(0 0 0 / 0.6);
  color: var(--ink);
}
.cab-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 8px 18px; }
.cab-plate {
  padding: 0.12em 0.45em 0.18em;
  background: var(--sky);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--steel-dk), 0 2px 0 var(--steel-dk);
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.cab-copy { flex: 1 1 16em; font-weight: 700; }
.drawers { display: grid; gap: 10px; }
.drawer { display: grid; }
.tray { display: grid; grid-template-rows: 1fr; }
.tray-in {
  position: relative; min-height: 0; overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--cavity), var(--wall) 85%);
  box-shadow: inset 0 16px 20px -10px rgb(0 0 0 / 0.7), inset 10px 0 0 var(--steel-dk), inset -10px 0 0 var(--steel-dk);
}
.cups { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; padding: 20px 16px 18px; }
.cup { display: grid; place-items: center; width: clamp(84px, 13vw, 116px); aspect-ratio: 1; }
.cup > * { grid-area: 1 / 1; }
.cup-rim {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--cavity) 0 52%, transparent 53%),
    conic-gradient(from 200deg, var(--steel-shine), var(--steel-dk) 20%, var(--steel-hi) 40%, var(--steel) 60%, var(--steel-shine) 75%, var(--steel-dk) 90%, var(--steel-shine));
  box-shadow: inset 0 0 0 2px var(--steel-shine), 0 6px 8px -3px rgb(0 0 0 / 0.55);
}
/* a paper label across each cup */
.cup-lab {
  display: grid; justify-items: center;
  padding: 0.2em 0.45em 0.25em;
  background: var(--sky); color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.35);
  line-height: 1.25; font-weight: 700; white-space: nowrap;
  rotate: -3deg;
}
.cup:nth-child(even) .cup-lab { rotate: 2.5deg; }
.cup-p { font-size: 0.95rem; color: var(--ink-2); }
.steam { position: absolute; left: 50%; top: 4px; width: min(70%, 260px); translate: -50% 0; pointer-events: none; }
.steam path { fill: none; stroke: var(--steel-shine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.32 1; stroke-dashoffset: 1; opacity: 0; }
.front {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 78px; padding: 0 18px;
  border: 0; border-radius: 3px;
  background: var(--brushed), linear-gradient(180deg, var(--steel-shine), var(--steel) 55%, var(--steel-dk));
  box-shadow: inset 0 1px 0 var(--steel-shine), 0 2px 0 var(--steel-dk);
  color: var(--ink); font: inherit; text-align: left;
}
button.front { cursor: pointer; }
.plate {
  display: grid; place-items: center; width: 2em; height: 2em;
  background: var(--sky); border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--steel-dk);
  font: 400 1.15rem/1 var(--f-sign); color: var(--red);
}
.handle {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(36%, 180px); height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, var(--steel-shine), var(--steel-dk));
  box-shadow: 0 3px 4px rgb(0 0 0 / 0.35), inset 0 -1px 0 rgb(0 0 0 / 0.2);
}
.pull { font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
button.front:hover .handle { background: linear-gradient(180deg, var(--steel-shine), var(--steel)); }
.drawer.is-shut .tray { grid-template-rows: 0fr; }
.drawer.is-shut .cups { translate: 0 -40%; }
.drawer:not(.is-shut) button.front { box-shadow: inset 0 1px 0 var(--steel-shine), 0 12px 18px -8px rgb(0 0 0 / 0.6); }
.cab-foot { height: 26px; margin-inline: -12px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, var(--steel-dk), var(--wall-dk)); }

.shelf {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; gap: 22px 16px;
  padding: clamp(14px, 2vw, 22px);
  background: var(--steel-hi);
  border-radius: 6px;
  box-shadow: inset 0 -6px 0 var(--steel), 0 24px 40px -24px rgb(0 0 0 / 0.6);
  color: var(--ink);
}
.shelf-it { display: grid; justify-items: center; align-content: end; gap: 8px; }
.shelf-it img { display: block; width: 100%; }


@media (min-width: 1024px) {
  .steamer-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .shelf { margin-top: 40px; }
}

/* the steel number plate under a dish */
.tag {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  padding: 0.22em 1.1em 0.28em;
  background: linear-gradient(180deg, var(--steel-shine), var(--steel));
  border: 1px solid var(--steel-dk); border-radius: 3px;
  box-shadow: inset 0 1px 0 var(--steel-shine), 0 2px 3px rgb(0 0 0 / 0.22);
  color: var(--ink); font-weight: 700; line-height: 1.35; text-align: center;
  position: relative;
}
.tag::before, .tag::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--steel-dk); translate: 0 -50%; }
.tag::before { left: 0.4em; }
.tag::after { right: 0.4em; }
.tag-p { color: var(--red-dk); }

/* ---------- 劃單: the pink slip on the table ---------- */

.slip-sec, .dishes { background: var(--wood-bg); }
.slip-sec { padding-block: clamp(36px, 6vw, 80px); }
.slip-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.menu-meta { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.95rem; }
.slip-stack { min-width: 0; }
.slip {
  position: relative;
  max-width: 880px;
  padding: 26px clamp(12px, 2.4vw, 26px) 22px;
  background: var(--pink);
  color: var(--slip-ink);
  rotate: -1deg;
  filter: drop-shadow(0 14px 16px rgb(70 40 20 / 0.28));
  /* perforated top edge, torn off the pad */
  mask: radial-gradient(circle 3.5px at 7px 0, transparent 97%, #000 100%) 0 0 / 14px 100% repeat-x;
}
.slip-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; }
.slip-name { font: 900 clamp(2.1rem, 4.6vw, 2.9rem)/1 var(--f-ming); letter-spacing: 0.06em; }
.slip-addr { display: grid; font-size: 0.95rem; line-height: 1.45; padding-top: 4px; }
.serial { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; line-height: 1; color: var(--red-dk); letter-spacing: 0.06em; }
.serial-n { display: inline-flex; }
.wheel { display: inline-block; height: 1em; overflow: hidden; }
.reel { display: flex; flex-direction: column; translate: 0 calc(var(--d, 0) * -1em); }
.reel > span { height: 1em; line-height: 1; }
.slip-lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin: 16px 0 14px; font-size: 1.05rem; }
.blank { display: inline-block; min-width: 3.2em; margin-inline: 0.25em; border-bottom: 1.5px solid currentColor; text-align: center; }
.total-b { min-width: 5.5em; min-height: 1.6em; vertical-align: -0.2em; }
.hand { display: inline-block; font: 700 1.6rem/1 var(--f-body); color: var(--pen); rotate: -4deg; }
.sq, .dia { position: relative; display: inline-flex; align-items: center; gap: 0.3em; cursor: pointer; }
.sq input, .dia input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.box-g, .dia-g { width: 1.15em; height: 1.15em; fill: none; stroke: var(--slip-ink); stroke-width: 1.6; }
.box-t, .dia-t { stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
input:checked + .box-g .box-t, input:checked ~ .dia-g .dia-t { stroke-dashoffset: 0; }
.sq:has(input:focus-visible), .dia:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dia-k { margin-right: 0.15em; }

.slip-cols { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
.slip-t { width: 100%; border-collapse: collapse; }
.slip-t + .slip-t thead { display: none; }
.slip-t th, .slip-t td { border: 1.5px solid var(--slip-ink); padding: 0; }
.c-lab { width: 2.4em; }
.c-qty { width: 6em; }
.slip-t thead th { height: 2em; font-weight: 700; font-size: 0.95rem; }
.lab { font-weight: 700; }
.lab span { display: inline-block; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.25em; padding-block: 0.4em; }
.it-w { display: flex; align-items: stretch; }
.it, .add {
  display: flex; align-items: baseline; gap: 0.4em;
  flex: 1; min-height: 44px; padding: 0.45em 0.7em;
}
.add { border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.add:hover { background: rgb(255 255 255 / 0.32); }
.add:focus-visible { outline-offset: -3px; }
.it-n { font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.it-note { font-size: 0.9rem; white-space: nowrap; }
.it-p { margin-left: auto; padding-left: 0.6em; }
.dia { justify-content: center; width: 40px; flex: none; }
tr.has .it-c { background: rgb(255 255 255 / 0.28); }
.qty { position: relative; }
.qty .marks { display: flex; flex-wrap: wrap; gap: 1px 3px; padding: 6px 34px 6px 6px; }
.zheng { width: 26px; height: 26px; fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; }
.zheng path { stroke-dasharray: 1; }
.sub {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1.5px solid var(--slip-ink); border-radius: 50%;
  background: var(--pink-lt); color: var(--slip-ink); cursor: pointer;
}
.sub .ic { width: 16px; height: 16px; }
.sub[aria-disabled="true"] { opacity: 0.3; cursor: default; }
.slip-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.slip-note { font-size: 0.95rem; color: var(--ink-2); }

@media (min-width: 700px) {
  .slip-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip-t + .slip-t thead { display: table-header-group; }
  .slip-t + .slip-t { margin-left: -1.5px; }
}
@media (min-width: 1100px) {
  .c-qty { width: 7.2em; }
  .slip-in { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
  .slip-h { position: sticky; top: 32px; }
}

/* ---------- 菜色: dishes on the table ---------- */

.dishes { padding-block: clamp(36px, 6vw, 80px); }
.track {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px);
}
.plate-it { display: grid; justify-items: center; gap: 10px; }
.plate-it img { display: block; width: 100%; }
.pi-kong { width: 76%; justify-self: start; rotate: -2deg; }
.pi-table { width: 100%; }
.pi-set { width: 84%; justify-self: end; rotate: 1.5deg; }
.pi-dongfen { width: 68%; justify-self: start; margin-left: 8%; rotate: -1deg; }
@media (min-width: 700px) {
  .track { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .dishes-h { grid-column: 1 / span 4; }
  .pi-kong { grid-column: 5 / span 4; width: 100%; }
  .pi-dongfen { grid-column: 9 / span 4; grid-row: 1; width: 92%; margin-left: 0; margin-top: 30%; }
  .pi-table { grid-column: 1 / span 7; }
  .pi-set { grid-column: 8 / span 5; width: 100%; margin-top: 12%; }
}
/* desktop, scroll-driven: one long table that pans sideways while the page scrolls past */
@media (min-width: 1024px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .sda .dishes { --dist: 96vw; padding-block: 0; height: calc(100vh + var(--dist)); view-timeline: --pan; }
  .sda .pan { position: sticky; top: 0; height: 100vh; overflow: clip; display: flex; align-items: center; }
  .sda .track {
    display: flex; align-items: center; gap: 4vw;
    width: max-content; margin: 0; padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2) 6vw;
    animation: pan linear both;
    animation-timeline: --pan;
    animation-range: contain 0% contain 100%;
  }
  .sda .dishes-h { width: 24vw; flex: none; }
  .sda .plate-it { flex: none; margin: 0; }
  .sda .pi-kong { width: 28vw; align-self: flex-start; margin-top: 4vh; }
  .sda .pi-table { width: 42vw; align-self: flex-end; margin-bottom: 6vh; }
  .sda .pi-set { width: 34vw; margin-top: 0; }
  .sda .pi-dongfen { width: 27vw; align-self: flex-end; margin-bottom: 12vh; }
  @keyframes pan { to { translate: calc(-100% + 100vw) 0; } }
}

/* ---------- 評論: slips on the counter spike ---------- */

.spike-sec {
  padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px);
  background: var(--spike-bg);
}
.rv-h { margin-bottom: clamp(40px, 5vw, 64px); }
.rv-list { columns: 3 290px; column-gap: clamp(24px, 3vw, 44px); }
.rv {
  position: relative;
  break-inside: avoid;
  margin: 34px 0 44px;
  padding: 36px 20px 22px;
  background: var(--pink);
  color: var(--slip-ink);
  rotate: var(--r);
  transform-origin: 50% 18px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 16px 22px -16px var(--shadow);
}
.rv-w { background: var(--sky); color: var(--ink); }
/* the hole the spike went through, and the spike */
.rv::before { content: ""; position: absolute; left: 50%; top: 14px; width: 9px; height: 9px; translate: -50% 0; border-radius: 50%; background: var(--steel-dk); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5); }
.pin {
  position: absolute; left: 50%; top: -38px; width: 6px; height: 56px; translate: -50% 0;
  background: linear-gradient(90deg, var(--steel-dk), var(--steel-shine) 45%, var(--steel-dk));
  clip-path: polygon(50% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.rv-pic { display: grid; place-items: center; margin-bottom: 12px; }
.rv-pic img { display: block; max-height: 210px; width: auto; max-width: 100%; }
.rv-by { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 1.05rem; }
.rv-when { font-size: 0.9rem; font-weight: 400; color: inherit; opacity: 0.85; }
.stars { display: flex; gap: 2px; margin: 4px 0 8px; }
.stars .star { width: 16px; height: 16px; fill: var(--spoon); stroke: var(--slip-ink); stroke-width: 1.2; }
.rv-t { font-size: 1rem; line-height: 1.8; }

/* ---------- 位置: the door ---------- */

.visit { padding-block: clamp(36px, 6vw, 80px); background: var(--sky); }
.stairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 26px 0 clamp(32px, 5vw, 56px); }
.step {
  display: flex; align-items: flex-start; gap: 14px;
  margin-left: calc(var(--i) * 10%);
  padding: 14px 18px 16px;
  background: var(--teal);
  color: var(--on-dark);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 -6px 0 var(--teal-dk);
  font-weight: 700; font-size: 1.08rem;
}
.step-n { font: 400 2.2rem/1 var(--f-sign); color: var(--yellow); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.v-info { display: grid; gap: 22px; align-content: start; }
.week { border-collapse: collapse; width: 100%; max-width: 420px; }
.week caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding-bottom: 6px; }
.week th, .week td { padding: 7px 0; border-bottom: 1px solid var(--steel); text-align: left; }
.week th { width: 4.5em; font-weight: 400; }
.week td { position: relative; }
.week tr.is-today th, .week tr.is-today td { font-weight: 700; }
.ring { position: absolute; left: -14px; top: -2px; width: calc(100% + 4px); max-width: 260px; height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.facts { display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--ink-2); }
.v-links a { display: inline-flex; align-items: center; gap: 0.35em; }
.v-map iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: 6px; box-shadow: 0 0 0 6px var(--steel-hi), 0 0 0 8px var(--steel); }
@media (min-width: 820px) {
  .stairs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; }
  .step { margin-left: 0; flex-direction: column; min-height: calc(130px + var(--i) * 46px); }
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- footer ---------- */

.foot { --focus: var(--yellow); padding-block: 8px 48px; background: var(--teal-dk); color: var(--on-dark); font-size: 0.95rem; }
.foot-in { display: grid; gap: 10px; max-width: 60em; }
.foot a { color: var(--yellow); }
.foot a:hover { color: var(--sky); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.foot-links a { display: inline-flex; align-items: center; gap: 0.4em; }

/* ================= motion: only with .mo (motion allowed, not a screenshot) ================= */

@media (prefers-reduced-motion: no-preference) {
  /* sign words brushed on one character at a time: the yellow edge, then the red */
  .mo .ch-y, .mo .ch-r { animation: brush 0.42s cubic-bezier(0.3, 0.6, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 0.11s + 0.15s); }
  .mo .ch-r { animation-delay: calc(var(--i, 0) * 0.11s + 0.42s); }
  .mo .pq .ch-y, .mo .pq .ch-r { animation-delay: calc(var(--i) * 0.11s + 0.15s); }
  .mo .pq .ch-r { animation-delay: calc(var(--i) * 0.11s + 0.42s); }
  @keyframes brush { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  /* the sign's hills drift at three speeds as the page scrolls */
  .sda .hl { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  .sda .hl-3 { --dy: 46px; }
  .sda .hl-2 { --dy: 26px; }
  .sda .hl-1 { --dy: 10px; }
  @keyframes drift { to { translate: 0 var(--dy); } }

  /* three bowls land on the counter, turn, settle; a highlight sweeps once */
  .mo .bowl { animation: land 0.6s cubic-bezier(0.25, 1.3, 0.5, 1) both; animation-delay: calc(0.9s + var(--i) * 0.16s); }
  .mo .bowl-face { animation: turn 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both, sheen 1.3s ease-in-out both; animation-delay: calc(0.9s + var(--i) * 0.16s), calc(1.6s + var(--i) * 0.16s); }
  @keyframes land { from { translate: 0 -46px; scale: 1.12; opacity: 0; } 60% { opacity: 1; } }
  @keyframes turn { from { rotate: -70deg; } }
  @keyframes sheen { from { --sheen: 0deg; } to { --sheen: 360deg; } }

  /* the first drawer pulls out as the cabinet scrolls in */
  /* the timeline is the first drawer itself: its size never changes, the cabinet's does when other drawers open */
  .sda .d-auto { view-timeline: --cab; }
  .sda .d-auto .tray-in { animation: tray-open linear both; animation-timeline: --cab; animation-range: entry 70% cover 50%; }
  .sda .d-auto .cups { animation: cups-out linear both; animation-timeline: --cab; animation-range: entry 70% cover 50%; }
  .sda .d-auto .front { animation: front-out linear both; animation-timeline: --cab; animation-range: entry 70% cover 50%; }
  .io.ready .cabinet:not(.in) .d-auto .tray-in { clip-path: inset(100% 0 0 0); }
  .io.ready .cabinet.in .d-auto .tray-in { animation: tray-open 0.8s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
  .io.ready .cabinet.in .d-auto .cups { animation: cups-out 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
  .io.ready .cabinet.in .d-auto .front { animation: front-out 0.8s both; }
  @keyframes tray-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes cups-out { from { translate: 0 -110%; } }
  @keyframes front-out { to { scale: 1.015; box-shadow: inset 0 1px 0 var(--steel-shine), 0 12px 18px -8px rgb(0 0 0 / 0.6); } }
  /* drawers opened by hand */
  .mo .tray { transition: grid-template-rows 0.55s cubic-bezier(0.3, 0.7, 0.3, 1); }
  .mo .d-btn .cups { transition: translate 0.6s cubic-bezier(0.3, 0.7, 0.3, 1); }
  .mo button.front { transition: box-shadow 0.4s, scale 0.4s; }
  .mo .drawer:not(.is-shut) button.front { scale: 1.015; }
  /* steam: three wisps rise twice, then stop */
  .mo .steaming .steam path { animation: wisp 2.2s ease-out 2 both; }
  .mo .steaming .steam path:nth-child(2) { animation-delay: 0.35s; }
  .mo .steaming .steam path:nth-child(3) { animation-delay: 0.7s; }
  @keyframes wisp { 0% { stroke-dashoffset: 1; opacity: 0; translate: 0 10px; } 30% { opacity: 0.85; } 100% { stroke-dashoffset: -0.32; opacity: 0; translate: 0 -8px; } }

  /* tally strokes are written, the total is written, the number machine rolls, slips are torn off */
  .mo .zheng path.new { animation: write 0.32s ease-out both; }
  .mo .hand.write { animation: pen 0.4s ease-out both; }
  @keyframes write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  .mo .box-t, .mo .dia-t { transition: stroke-dashoffset 0.25s ease-out; }
  .mo .reel { transition: translate 1.1s cubic-bezier(0.2, 0.85, 0.25, 1.12); }
  .mo .wheel:nth-child(2) .reel { transition-delay: 0.08s; }
  .mo .wheel:nth-child(3) .reel { transition-delay: 0.16s; }
  .mo .wheel:nth-child(4) .reel { transition-delay: 0.24s; }
  .mo .slip.tearing { animation: tear 0.42s cubic-bezier(0.5, 0, 0.8, 0.4) both; }
  .mo .slip.fresh { animation: fresh 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  @keyframes tear { to { translate: 0 -60px; rotate: -7deg; opacity: 0; } }
  @keyframes fresh { from { translate: 0 22px; opacity: 0; } }

  /* the dishes, without scroll-driven support: each set down once */
  .io.ready .plate-it:not(.in) { opacity: 0; scale: 0.94; }
  .io.ready .plate-it.in { animation: set-down 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  @keyframes set-down { from { opacity: 0; scale: 0.94; } }

  /* review slips come down onto the spike, sway, stop */
  .mo.ready .rv:not(.in) { opacity: 0; }
  .mo.ready .rv.in { animation: spike 1s cubic-bezier(0.3, 0.7, 0.4, 1) both; animation-delay: calc(var(--i) * 0.12s); }
  @keyframes spike {
    0% { translate: 0 -80px; rotate: 0deg; opacity: 0; }
    40% { translate: 0 0; rotate: 0deg; opacity: 1; }
    62% { rotate: calc(var(--r) * -1.8); }
    82% { rotate: calc(var(--r) * 1.35); }
    100% { translate: 0 0; rotate: var(--r); }
  }

  /* the stairs build up from the floor, step by step */
  .mo.ready .stairs:not(.in) .step { clip-path: inset(100% 0 0 0); }
  .mo.ready .stairs.in .step { animation: rise 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) both; animation-delay: calc(var(--i) * 0.18s); }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

  /* today's hours get circled in red pen */
  .mo .week:not(.in) .ring path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .mo .week.in .ring path { stroke-dasharray: 1; animation: write 0.8s ease-out 0.2s both; }
}
