/* 小猫餐厅 · 网页版：照小屋小猫餐厅（public/bar/bar.css）的样子，白信纸、粉丝带、按时辰换天色 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

@font-face { font-family: "Bar Bodoni"; src: url(assets/fonts/bodoni-moda/BodoniModa28pt-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bar Bodoni Small"; src: url(assets/fonts/bodoni-moda/BodoniModa11pt-Regular.woff2) format("woff2"); font-display: swap; }
:root {
  --font: "LXGW WenKai Screen", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --serif: "Bar Bodoni", "Noto Serif SC", "Songti SC", "LXGW WenKai Screen", serif;
  --hand: "Long Cang", "LXGW WenKai Screen", cursive;
  --bg: #FDF4F4;
  --halo: #F9DCE2;
  --halo2: #FDEBDD;
  --card: #FFFEFD;
  --ink: #64444F;
  --soft: #A07F8B;
  --rose: #C96F86;
  --line: #EBB9C5;
  --on-bg: #64444F;
  --shadow: 0 3px 12px -3px rgba(120, 70, 85, .26);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
body[data-period="morning"] { --bg: #F5F7F8; --halo: #DDEAF0; --halo2: #FBE9EA; }
body[data-period="sunset"] { --bg: #F8E6E4; --halo: #F3BFC4; --halo2: #D9C3E2; --card: #FFFCFA; }
body[data-period="night"] {
  --bg: #4A3D52; --halo: #8A5F78; --halo2: #3B3550; --card: #FBF3F0;
  --on-bg: #F8E7E6; --shadow: 0 6px 22px -6px rgba(20, 10, 25, .6);
}

html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: url(assets/ui/paper.webp) 0 0 / 390px, var(--bg);
  background-blend-mode: multiply;
  transition: background-color .8s ease;
}
.halo {
  position: fixed; inset: 0; pointer-events: none; opacity: .85;
  background: radial-gradient(60% 42% at 50% 34%, var(--halo), transparent 72%), radial-gradient(70% 34% at 18% 92%, var(--halo2), transparent 75%);
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; }
.grow { flex: 1; }
:is(button, input):focus-visible { outline: 2px dashed var(--rose); outline-offset: 2px; }

.app { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: var(--st); }

/* ── 顶上：左边客人的名字，右边三个小图标（和小屋一样） ── */
.bar-top { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 12px 4px; position: relative; z-index: 3; }
.seat-tag { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--on-bg); font-family: var(--serif); font-size: 15px; letter-spacing: .08em; transition: transform .15s; }
.seat-tag img { width: 34px; height: 34px; object-fit: contain; }
.seat-tag:active { transform: scale(.95); }
.top-icon { position: relative; min-width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: var(--on-bg); font-size: 12px; line-height: 1.2; opacity: .72; transition: transform .18s ease, opacity .3s; }
.top-icon[aria-current="page"] { opacity: 1; }
.top-icon[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 32%, #fff 22%, #F6E3E6 60%, #E0B9C4); box-shadow: 0 0 0 .7px #D9AEBA; }
@media (hover: hover) { .top-icon:hover { opacity: 1; } }
.top-icon img { width: 34px; height: 34px; object-fit: contain; }
.top-icon:active { transform: scale(.93); }
.top-badge { position: absolute; right: 4px; top: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #BF6079; color: #fff; font-style: normal; font-size: 11px; line-height: 17px; text-align: center; box-shadow: 0 0 0 1.5px var(--card); }
.top-badge[hidden] { display: none; }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: page-in .32s ease both; }
.view[hidden] { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

.bow { position: absolute; left: 50%; top: 0; width: 92px; transform: translate(-50%, -32%); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 2px rgba(150, 80, 100, .18)); }

/* ── 菜单：一张纸，分类是右边探出来的书签 / 菜单册 ── */
.view-menu { padding: 38px 18px calc(18px + var(--sb)); align-items: center; }
.menu-paper {
  position: relative; flex: 1; min-height: 0; width: 100%; max-width: 520px; border-radius: 4px; box-shadow: var(--shadow);
  --paper: #FBF4EE; --accent: #B4607A; --edge: #EBC3CD;
  display: flex; padding: 0; overflow: visible; background: var(--paper) url(assets/ui/paper.webp); background-size: 256px; background-blend-mode: multiply; transition: background-color .45s ease;
}
.menu-paper::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--edge); pointer-events: none; transition: border-color .45s; }
.menu-paper[data-cat="drinks"] { --paper: #E5F1E9; --accent: #5F9180; --edge: #C9E0D5; }
.menu-paper[data-cat="sushi"] { --paper: #E4EDF7; --accent: #5A7FA3; --edge: #C8D6E7; }
.menu-paper[data-cat="sweet"] { --paper: #FBE4EB; --accent: #C2607E; --edge: #F0C5D1; }
.menu-paper[data-cat="meal"] { --paper: #FBEDCC; --accent: #B0813A; --edge: #EAD3A6; }
.menu-paper[data-cat="home"] { --paper: #FAE2D3; --accent: #B8644A; --edge: #EDC8B5; }
.menu-paper[data-cat="snack"] { --paper: #F0E5D2; --accent: #957450; --edge: #DFCCAF; }
.menu-paper[data-cat="night"] { --paper: #E5DFF3; --accent: #7365A4; --edge: #D1CAE8; }
.menu-paper > .bow { width: 58px; transform: translate(-50%, -60%); }

.menu-scroll { flex: 1; width: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 32px 20px 10px; }
@media (min-width: 900px) { .menu-paper { max-width: 600px; } }
.menu-paper h1 { flex: none; margin: 0; text-align: center; font-size: 22px; font-weight: 400; letter-spacing: .5em; text-indent: .5em; color: var(--ink); }
.mp-sub { flex: none; text-align: center; font-family: "Bar Bodoni", serif; font-size: 10.5px; letter-spacing: .32em; color: color-mix(in srgb, var(--accent) 55%, #C9B3B9); }
.mp-look { position: absolute; z-index: 3; right: 16px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); opacity: .75; }
.mp-look:hover { opacity: 1; background: color-mix(in srgb, var(--edge) 40%, transparent); }
.mp-look svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
[data-look="a"] .mp-look .ic-grid, [data-look="b"] .mp-look .ic-list { display: none; }

/* 一页的菜：行数由 app.js 按纸的高度算（--rows），一页刚好放满 */
.k-grid { flex: 1; min-height: 0; display: grid; gap: 0; touch-action: pan-y; }
.dish { min-height: 0; padding: 0; color: var(--ink); transition: transform .15s; }
.dish:active { transform: scale(.96); }
.mi-pic { position: relative; display: block; min-height: 0; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .dish:hover .mi-pic { transform: translateY(-4px); } }
.mi-pic img.mi-img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; filter: drop-shadow(0 3px 3px rgba(120, 70, 60, .14)); }
.is-drink .mi-img { object-position: center bottom; transform-origin: center bottom; }
img[data-photo]:not([src]) { visibility: hidden; }
.mi-text { display: block; min-width: 0; }
.mi-line { display: flex; align-items: baseline; gap: 6px; }
.mi-line b { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .06em; line-height: 1.35; color: #5E2F3E; }
.mi-line i { display: none; }
.mi-text small { display: none; }
.mi-badge { display: none; }

.price { display: inline-flex; align-items: center; gap: 4px; font-family: var(--serif); color: #A27A3F; font-size: 12px; letter-spacing: .1em; line-height: 1.2; white-space: nowrap; }
.price img { width: 18px; height: 18px; object-fit: contain; margin-right: 2px; }
.price em { font-style: normal; font-size: 14px; letter-spacing: .04em; }

/* 盘子边上摆着挑好的蘸酱 */
.sauce-on, .sauce-in, .mi-sauce { position: absolute; inset: 0; pointer-events: none; }
.sauce-in img, .mi-sauce img { position: absolute; width: 38%; height: 38%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 3px rgba(120, 70, 60, .2)); animation: sauce-in .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.mi-sauce img { width: 34%; height: 34%; }
.sauce-in img:nth-child(1) { right: -15%; bottom: -2%; }
.sauce-in img:nth-child(2) { left: -15%; bottom: -2%; }
.sauce-in img:nth-child(3) { right: -18%; bottom: 34%; }
.mi-sauce img:nth-child(1), .mi-sauce img:nth-child(3) { right: -4%; bottom: -2%; }
.mi-sauce img:nth-child(2) { left: -4%; bottom: -2%; }
.mi-sauce img:nth-child(3) { bottom: 34%; }
@keyframes sauce-in { from { opacity: 0; transform: translateY(8px) scale(.8); } }

/* 翻页：新的一页从翻过去的那边滑进来 */
.k-grid.flip-next .dish { animation: mp-next .38s ease both; }
.k-grid.flip-prev .dish { animation: mp-prev .38s ease both; }
.k-grid[class*="flip-"] .dish:nth-child(2) { animation-delay: .04s; } .k-grid[class*="flip-"] .dish:nth-child(3) { animation-delay: .08s; }
.k-grid[class*="flip-"] .dish:nth-child(4) { animation-delay: .12s; } .k-grid[class*="flip-"] .dish:nth-child(n+5) { animation-delay: .16s; }
@keyframes mp-next { from { opacity: 0; transform: translateX(28px) rotate(1deg); } }
@keyframes mp-prev { from { opacity: 0; transform: translateX(-28px) rotate(-1deg); } }
.mp-foot { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; margin-top: 2px; }
.mp-turn { width: 34px; height: 30px; font-size: 22px; line-height: 1; color: var(--accent); transition: opacity .2s; }
.mp-turn:disabled { opacity: .2; }
.mp-turn[hidden] { display: none; }
.mp-dots { display: flex; gap: 7px; }
.mp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--edge); transition: background .25s, transform .25s; }
.mp-dots i.on { background: var(--accent); transform: scale(1.25); }

/* A：分类是纸右边探出来的书签；菜两道一排，画大，名字下面一行价格 */
[data-look="a"] .menu-scroll { padding-right: 46px; }
[data-look="a"] .k-cats { position: absolute; z-index: 2; right: 8px; top: 96px; bottom: 56px; margin: 0; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 5px; overflow: hidden; }
[data-look="a"] .k-cats button { min-height: 0; flex: 0 1 auto; writing-mode: vertical-rl; padding: 9px 5px 9px 6px; border-radius: 9px 0 0 9px; background: color-mix(in srgb, var(--edge) 45%, #fff); font-size: 12.5px; letter-spacing: .16em; line-height: 1.1; color: color-mix(in srgb, var(--accent) 80%, #8a6a74); transition: background .3s, color .3s, padding .2s; }
[data-look="a"] .k-cats [aria-current="true"] { background: var(--accent); color: #fff; padding-right: 9px; margin-left: -4px; }
[data-look="a"] .mp-cat { flex: none; display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-family: var(--serif); font-size: 14px; letter-spacing: .3em; text-indent: .3em; color: var(--accent); }
[data-look="a"] .mp-cat::before, [data-look="a"] .mp-cat::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
[data-look="a"] .k-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); column-gap: 10px; }
[data-look="a"] .dish { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
[data-look="a"] .mi-pic { flex: 1 1 0; width: 100%; max-width: 230px; }
[data-look="a"] .mi-text { flex: none; padding-bottom: 4px; }
[data-look="a"] .mi-line { flex-direction: column; align-items: center; gap: 1px; }
[data-look="a"] .mi-line b { text-wrap: balance; }

/* B：菜单册，小画在左，菜名和价格中间一串小点点，下面一句介绍 */
[data-look="b"] .k-cats { flex: none; display: flex; flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; gap: 0; margin: 10px -6px 4px; }
[data-look="b"] .k-cats button { min-height: 30px; padding: 0 clamp(4px, 1.3vw, 8px); white-space: nowrap; font-size: clamp(12.5px, 3.4vw, 13.5px); color: #A88A92; }
[data-look="b"] .k-cats [aria-current="true"] { color: #5E2F3E; box-shadow: inset 0 -1.5px var(--accent); }
[data-look="b"] .mp-cat { display: none; }
[data-look="b"] .k-grid { grid-template-columns: 1fr; grid-template-rows: repeat(var(--rows, 5), minmax(0, 1fr)); }
[data-look="b"] .dish { display: grid; grid-template-columns: minmax(64px, 27%) 1fr; align-items: center; gap: 12px; padding: 4px; text-align: left; border-bottom: 1px dashed var(--edge); }
[data-look="b"] .dish:last-child { border-bottom: 0; }
[data-look="b"] .mi-pic { height: 100%; max-height: 110px; }
[data-look="b"] .mi-line i { display: block; flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--edge); transform: translateY(-4px); }
[data-look="b"] .mi-line b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-look="b"] .mi-line .price { flex: none; font-size: 0; }
[data-look="b"] .mi-line .price em { font-size: 14px; margin: 0; }
[data-look="b"] .mi-text small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 12px; line-height: 1.5; color: #9C7D86; }

/* ── 来客录：一张张斜着贴的小票 ── */
.guests-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 26px calc(40px + var(--sb)); }
.income { display: flex; justify-content: center; gap: 22px; color: var(--on-bg); font-size: 14px; letter-spacing: 1px; }
.income b { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-right: 2px; }
.top-dish { margin: 4px 0 0; text-align: center; font-family: var(--hand); font-size: 18px; color: var(--on-bg); opacity: .85; min-height: 1em; }
.guests-search { display: block; max-width: 260px; margin: 10px auto 30px; }
.guests-search input { width: 100%; border: 0; border-bottom: 1.3px solid var(--line); border-radius: 0; background: none; padding: 4px 2px; font: 15px/1.5 var(--font); color: var(--on-bg); text-align: center; }
.guests-search input::placeholder { color: var(--on-bg); opacity: .45; }
.guests-search input:focus { outline: none; border-color: var(--rose); }
.storage-mode { display: block; margin: -24px 0 18px; text-align: center; font-size: 11px; color: var(--on-bg); opacity: .5; }
.storage-mode[hidden] { display: none; }
.guests-wall { display: flex; flex-direction: column; align-items: center; }
.guest-ticket {
  position: relative; width: 100%; max-width: 320px; margin: 0 0 14px; left: -4%; transform: rotate(-2deg);
  isolation: isolate;
}
/* 影子单独画一层：drop-shadow 套在字外面时，网页字体换上来会不重画 */
.guest-ticket::before { content: ""; position: absolute; inset: 3px 0 -3px; z-index: -1; background: rgba(120, 70, 85, .2); filter: blur(4px); }
.gt-in {
  background: var(--card); padding: 18px 18px 24px;
  --m: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 10px 5px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat;
  -webkit-mask: var(--m); mask: var(--m);
}
.guest-ticket:nth-child(even) { left: 5%; transform: rotate(2.2deg); }
.guest-ticket:nth-child(3n) { transform: rotate(-3deg); }
.gt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed #EFC9D2; }
.gt-name { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; color: #5E2F3E; }
.gt-seat { font-size: 12px; color: var(--soft); white-space: nowrap; }
.gt-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gt-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gt-item > img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.gt-item-info { flex: 1; min-width: 0; }
.gt-item-name { display: block; font-family: var(--serif); color: #5E2F3E; }
.gt-item-sauces { display: block; font-size: 11.5px; color: var(--soft); }
.gt-same-btn { flex: none; min-height: 30px; padding: 0 4px; font-size: 12.5px; color: var(--rose); }
.gt-note { margin: 8px 0 0; font-family: var(--hand); font-size: 17px; line-height: 1.3; color: #96636E; }
.gt-chef { margin: 6px 0 0; font-size: 12px; color: var(--soft); }
.gt-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11px; color: #B3969F; }
@media (min-width: 900px) {
  .guests-wall { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 6px 28px; max-width: 760px; margin: 0 auto; }
  .guest-ticket, .guest-ticket:nth-child(even) { left: 0; flex: 0 1 320px; }
}
.guests-empty { padding: 30px 0; text-align: center; color: var(--on-bg); opacity: .7; }
.guests-empty img { width: 84px; margin: 0 auto 6px; }
.guests-empty p { margin: 0; font-size: 14px; }
.refresh { display: block; margin: 10px auto 0; color: var(--on-bg); opacity: .6; }

/* ── 信纸弹窗 ── */
.letter-dialog { width: min(350px, calc(100vw - 40px)); max-height: calc(100dvh - 60px); border: 0; border-radius: 4px; background: var(--card); color: var(--ink); padding: 66px 30px 22px; box-shadow: 0 24px 60px -24px rgba(90, 40, 60, .6); overflow: visible; }
.letter-dialog::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); pointer-events: none; }
.letter-dialog[open] { animation: page-in .25s ease both; }
.letter-dialog::backdrop { background: rgba(94, 60, 74, .34); }
.letter-dialog .bow { width: 88px; transform: translate(-50%, -34%); }
.letter-dialog form { position: relative; }
.dialog-title { margin: 0 0 2px; text-align: center; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .3em; text-indent: .3em; color: #5E2F3E; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--soft); }
.field input { width: 100%; border: 0; border-bottom: 1.3px solid var(--line); border-radius: 0; background: none; font: 17px/1.5 var(--font); color: var(--ink); padding: 4px 2px; }
.field input:focus { outline: none; border-color: var(--rose); }
.dialog-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.text-btn { font-size: 15px; color: var(--soft); min-height: 44px; padding: 0 4px; }
.text-btn[hidden] { display: none; }
.ribbon-btn {
  position: relative; flex: none; min-height: 36px; padding: 5px 22px; color: #fff; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; transition: transform .15s;
  background: linear-gradient(100deg, #D07A91, #BF6079 60%, #CA7089);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}
.ribbon-btn.light { color: #9A4A62; background: linear-gradient(100deg, #F9E2E7, #F4D3DB 60%, #F8DFE4); }
.ribbon-btn:active { transform: scale(.94); }
.ribbon-btn:disabled { opacity: .4; }

/* 分款 / 座位小签：选中的下面一颗小珍珠 */
.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin: 4px 0 5px; }
.kinds[hidden] { display: none; }
.kinds button { position: relative; min-height: 34px; padding: 4px 8px; font-family: var(--serif); font-size: 14px; letter-spacing: .06em; color: #A98792; }
.kinds [aria-pressed="true"] { color: #8A3B54; }
.kinds [aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 7px; height: 7px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 32%, #fff 22%, #F6E3E6 60%, #E0B9C4); box-shadow: 0 0 0 .7px #D9AEBA; }
.kinds.chips { justify-content: flex-start; gap: 6px; margin: 6px 0 0; }
.kinds.chips button { min-height: 32px; padding: 3px 14px; border-radius: 99px; font-family: var(--font); font-size: 14px; box-shadow: 0 0 0 1px var(--line) inset; transition: background .2s, color .2s, box-shadow .2s; }
.kinds.chips [aria-pressed="true"] { background: #FBE6EB; box-shadow: 0 0 0 1.3px #D98DA2 inset; }
.kinds.chips [aria-pressed="true"]::after { display: none; }

/* 预约入座 */
.reserve-dialog { text-align: left; }
.reserve-dialog { padding-top: 66px; }
.reserve-cat { width: 64px; height: 64px; object-fit: contain; margin: 0 auto; }
.reserve-title { margin: 0 0 14px; text-align: center; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .3em; text-indent: .3em; color: #5E2F3E; }

/* 一道菜 */
.dish-dialog { text-align: center; padding-top: 66px; width: min(380px, calc(100vw - 32px)); }
.dish-body { max-height: calc(100dvh - 160px); overflow-y: auto; margin: 0 -14px; padding: 0 14px; }
.dish-stage { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.dish-big { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(120, 70, 60, .18)); }
.dish-big.is-drink-img { object-position: center bottom; }
.dish-name { margin: 6px 0 4px; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .08em; color: #5E2F3E; }
.dish-it { margin: -2px 0 4px; font-family: "Bar Bodoni", var(--serif); font-style: italic; font-size: 14px; letter-spacing: .04em; color: #A27A3F; }
.dish-it[hidden], .dish-meta[hidden] { display: none; }
.dish-about { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.dish-meta { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #B49AA3; }
.dish-price-wrap { display: flex; justify-content: center; }
.dish-dialog .dialog-actions { gap: 8px; }
.dish-dialog .ribbon-btn { padding: 5px 16px; }
.sauce-block[hidden] { display: none; }
.sauce-pick { position: relative; }
.sauce-row { display: flex; gap: 2px; margin: 6px -22px 2px; padding: 4px 18px 10px; overflow-x: auto; -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.sauce-turn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sauce-pick { display: flex; align-items: center; margin: 0 -24px; }
  .sauce-pick .sauce-row { flex: 1; min-width: 0; margin: 6px 0 2px; padding: 4px 8px 10px; scroll-behavior: smooth; }
  .sauce-turn { display: block; flex: none; width: 24px; color: var(--rose); }
}
.sauce-row button { position: relative; flex: none; width: 50px; height: 50px; padding: 3px; transition: transform .2s; }
.sauce-row img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(120, 70, 60, .16)); }
.sauce-row [aria-pressed="true"] { transform: translateY(-3px) scale(1.08); }
.sauce-row [aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 7px; height: 7px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 32%, #fff 22%, #F6E3E6 60%, #E0B9C4); box-shadow: 0 0 0 .7px #D9AEBA; }

/* 餐盘 */
.tray-guest-info { margin: 0 0 10px; text-align: center; font-size: 12.5px; color: var(--soft); }
.tray-list { max-height: 40dvh; overflow-y: auto; margin: 0 -6px 8px; padding: 0 6px; }
.tray-empty { padding: 26px 0; text-align: center; font-family: var(--hand); font-size: 20px; color: var(--soft); }
.tray-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #EFC9D2; }
.tray-row > img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.tray-row-info { flex: 1; min-width: 0; }
.tray-row-info strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 15px; color: #5E2F3E; }
.tray-row-info small { display: block; font-size: 11.5px; color: var(--soft); }
.qty-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.qty-ctrl button { width: 28px; height: 28px; border-radius: 50%; color: var(--rose); font-size: 17px; line-height: 1; box-shadow: 0 0 0 1px var(--line) inset; }
.qty-ctrl span { min-width: 18px; text-align: center; font-size: 15px; }
.r-qty { font-family: var(--font); font-style: normal; font-size: 13px; color: var(--soft); }
.tray-note-field[hidden] { display: none; }
.tray-total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--soft); }
.tray-total .price em { font-size: 17px; }

/* 做菜 & 小票 */
.receipt-dialog { padding: 28px 24px 18px; }
.receipt-dialog::before { display: none; }
.cooking-view { text-align: center; padding: 16px 0 10px; }
.cooking-view[hidden], .receipt-view[hidden] { display: none; }
.cooking-cat { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 6px; }
.cooking-view p { margin: 0; font-family: var(--hand); font-size: 20px; color: var(--soft); }
.receipt-paper {
  position: relative; background: #FFFDF8; padding: 18px 18px 26px; box-shadow: 0 0 0 1px #F3E3E6 inset;
  --m: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 10px 5px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat;
  -webkit-mask: var(--m); mask: var(--m);
}
.receipt-seal { position: absolute; right: 10px; bottom: 22px; width: 62px; opacity: .85; transform: rotate(-12deg); pointer-events: none; }
.receipt-chef { padding-right: 56px; }
.receipt-head { text-align: center; border-bottom: 1px dashed #EFC9D2; padding-bottom: 8px; margin-bottom: 10px; }
.r-shop { font-family: var(--serif); font-size: 17px; letter-spacing: .4em; text-indent: .4em; color: #5E2F3E; }
.r-no { font-size: 11px; color: var(--soft); margin-top: 2px; }
.receipt-guest { font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.receipt-items { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed #EFC9D2; }
.r-line { display: flex; justify-content: space-between; gap: 10px; font-family: var(--serif); font-size: 14px; color: #5E2F3E; }
.r-line small { display: block; font-family: var(--font); font-size: 11px; color: var(--soft); }
.receipt-note { margin-top: 8px; font-family: var(--hand); font-size: 17px; color: #96636E; }
.receipt-note[hidden] { display: none; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 14px; }
.receipt-chef { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.receipt-chef img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.receipt-chef p { margin: 0; font-family: var(--hand); font-size: 16px; line-height: 1.35; color: #96636E; }
.receipt-time { font-size: 11px; color: #B3969F; margin-top: 6px; }
.receipt-actions { margin-top: 12px; }

/* 账单 */
.bill-view[hidden] { display: none; }
.bill-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 14px; color: var(--soft); }
.bill-total { color: var(--ink); }
.bill-total .price em { font-size: 18px; }
.bill-tip { margin: 12px 0 4px; }
.receipt-total { display: block; }

/* ── 上菜：一大屏摆着这一份 + 小卡（照小屋中屏 public/bar/serve.css 的 .dish-show） ── */
.dine { position: fixed; inset: 0; z-index: 10; container-type: size; display: grid; place-items: center; overflow: hidden; font-family: var(--serif); color: #5E2F3E; opacity: 0; transition: opacity .26s ease;
  background: radial-gradient(ellipse 70% 62% at 50% 44%, #FFFBF4 0%, #FBF1E8 55%, #F1DFD6 100%); }
.dine[hidden] { display: none; }
.dine.on { opacity: 1; }
.dine::before { content: ""; position: absolute; inset: 14px; border: 1px solid #EFD3D9; border-radius: 3px; pointer-events: none; }
.ds-in { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 8cqh; }
.ds-stage { position: relative; margin: 0; flex: none; width: min(78cqw, 50cqh, 600px); aspect-ratio: 1; }
.ds-mat { position: absolute; left: 50%; bottom: 4%; width: 92%; transform: translateX(-50%); opacity: .95; }
.ds-mat[data-k="stem"] { width: 46%; }
.ds-mat[data-k="paw"], .ds-mat[data-k="flower"], .ds-mat[data-k="cork"], .ds-mat[data-k="square"] { width: 62%; }
.ds-food { position: absolute; left: 8%; top: 4%; width: 84%; height: 86%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 14px rgba(120, 80, 60, .2)); }
.dine[data-kind="dish"] .ds-food { left: 4%; top: 6%; width: 92%; height: 86%; object-position: center; }
.ds-sauce { position: absolute; inset: 0; pointer-events: none; }
.ds-sauce img { position: absolute; width: 26%; height: 26%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 3px rgba(120, 80, 60, .2)); }
.ds-sauce img:nth-child(1) { right: -2%; bottom: 6%; }
.ds-sauce img:nth-child(2) { left: -2%; bottom: 6%; }
.ds-sauce img:nth-child(3) { right: -5%; bottom: 33%; }
.ds-card { position: relative; width: min(84cqw, 480px); margin-top: -2cqh; padding: clamp(22px, 3.4cqh, 32px) clamp(20px, 3cqw, 34px) clamp(14px, 2cqh, 20px); text-align: center; background: #FFFCF7; border-radius: 2px; box-shadow: 0 6px 18px -6px rgba(90, 55, 45, .3); transform: rotate(-1.2deg); }
.ds-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid #F0CFD6; pointer-events: none; }
.ds-bow { position: absolute; left: 50%; top: -22px; width: 58px; transform: translateX(-50%); }
.ds-from { display: block; font-size: 12px; letter-spacing: .18em; color: #A98792; }
.ds-name { margin: .3em 0 0; font-weight: 400; font-size: clamp(20px, 3.3cqh, 30px); line-height: 1.3; letter-spacing: .1em; text-wrap: balance; }
.ds-kind { display: inline-block; margin-top: 6px; padding: 1px 12px; border: 1px solid #EBC3CD; border-radius: 99px; font-size: 13px; color: #B4486A; }
.ds-kind[hidden], .ds-about[hidden] { display: none; }
.ds-about { margin: 1.2cqh auto 0; max-width: 24em; font-family: var(--font); font-size: clamp(13px, 1.8cqh, 15px); line-height: 1.7; color: #7A5560; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ds-price { display: inline-flex; align-items: center; gap: 6px; margin-top: 1.2cqh; font-size: 13px; color: #A98792; }
.ds-price img { width: 22px; height: 22px; }
.ds-price em { font-style: normal; font-size: 19px; color: #8A6A3A; letter-spacing: .04em; }
.dine-turn { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; --accent: #C96F86; --edge: #F0CFD6; }
.dine-turn[hidden] { display: none; }
.dine-done { position: absolute; left: 50%; bottom: calc(6cqh + var(--sb)); transform: translateX(-50%); min-height: 42px; padding: 6px 34px; font-size: 15px; }
.dine-done:active { transform: translateX(-50%) scale(.94); }
@container (min-width: 600px) {
  .ds-in { flex-direction: row; gap: 2cqw; }
  .ds-stage { width: min(50cqw, 62cqh, 520px); }
  .ds-card { width: min(38cqw, 380px); margin: 4cqh 0 0 -1cqw; transform: rotate(2deg); }
  .ds-about { -webkit-line-clamp: 5; }
  .dine.on .ds-card { animation-name: ds-card-side; }
}
@container (min-aspect-ratio: 5/4) and (min-width: 600px) {
  .ds-stage { width: min(50cqw, 70cqh, 640px); }
  .ds-card { width: min(32cqw, 420px); }
  .ds-name { font-size: clamp(22px, 3.6cqh, 34px); }
}
.dine.on .ds-food { animation: ds-serve .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.dine.on .ds-mat { animation: ds-fade .5s ease both; }
.dine.on .ds-sauce img { animation: ds-serve .7s .25s cubic-bezier(.2, .9, .3, 1.15) both; }
.dine.on .ds-card { animation: ds-card .55s .18s ease both; }
@keyframes ds-serve { from { opacity: 0; transform: translateY(-26px) scale(.92); } }
@keyframes ds-fade { from { opacity: 0; } }
@keyframes ds-card { from { opacity: 0; transform: translateY(14px) rotate(-1.2deg); } }
@keyframes ds-card-side { from { opacity: 0; transform: translateX(18px) rotate(2deg); } }

.toast { position: fixed; left: 50%; top: calc(72px + var(--st)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 48px); padding: 8px 20px; background: var(--card); color: var(--ink); font-size: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 99px; z-index: 20; pointer-events: none; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
