@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f9f5;
  --bg-2: #f8fbff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --surface-3: #dfeaff;
  --line: #d6e3f3;
  --line-2: #b4c8e4;
  --text: #0b2545;
  --muted: #46607f;
  --faint: #64799a;
  --accent: #1d5fd6;
  --accent-2: #1548ad;
  --accent-ink: #ffffff;
  --accent-soft: #e4eeff;
  --green: #2e9a5e;
  --green-2: #1f7a48;
  --green-soft: #e3f4e8;
  --leaf: #23794a;
  --ok: #1f8a52;
  --ok-bg: #e3f4e8;
  --warn: #a86400;
  --warn-bg: #fff3d9;
  --late: #cf2d44;
  --late-bg: #ffe7ea;
  --blue: #1d5fd6;
  --blue-bg: #e4eeff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(11, 37, 69, .14);
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease: var(--ease-out);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(180deg, #e6f0ff 0, #eef6f4 320px, var(--bg) 560px) no-repeat var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, label.btn, summary, [role="button"] { cursor: pointer; }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"], .pill { user-select: none; -webkit-user-select: none; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.accent { color: var(--accent); }
.green { color: var(--green-2); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(29, 95, 214, .55); outline-offset: 2px; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease-out), background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(29, 95, 214, .28); }
.btn-ok { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(46, 154, 94, .26); }
.btn-blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { background: var(--surface); border-color: #f0a9b4; color: var(--late); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { border-color: var(--accent); }
  .btn-primary:hover:not(:disabled), .btn-blue:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
  .btn-ok:hover:not(:disabled) { background: var(--green-2); border-color: var(--green-2); }
  .btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: transparent; }
}

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(29, 95, 214, .16); }
.input::placeholder { color: var(--faint); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill-accent { background: var(--accent-soft); border-color: #bcd2fb; color: var(--accent-2); }
.pill-ok { background: var(--ok-bg); border-color: #b5dfc4; color: var(--green-2); }
.pill-warn { background: var(--warn-bg); border-color: #f0d59a; color: var(--warn); }
.pill-late { background: var(--late-bg); border-color: #f5b8c1; color: var(--late); }
.pill-blue { background: var(--blue-bg); border-color: #bcd2fb; color: var(--accent-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); font-size: 22px; line-height: 1; display: grid; place-items: center; color: var(--accent-2); box-shadow: var(--shadow-sm); transition: transform .12s var(--ease-out), background-color .12s ease; }
.stepper button:active { transform: scale(.9); background: var(--surface-3); }
.stepper button.plus { background: var(--accent); color: #fff; }
.stepper button.plus:active { background: var(--accent-2); }
.stepper button:disabled { opacity: .4; }
.stepper output { min-width: 28px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.add-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid #bcd2fb; background: var(--accent-soft); color: var(--accent-2); font-weight: 750; transition: transform .12s var(--ease-out), background-color .12s ease; }
.add-btn:active { transform: scale(.95); background: var(--surface-3); }
.soldout { font-size: 13px; font-weight: 700; color: var(--faint); padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 999px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--shadow); font-weight: 600; animation: toast-in .25s var(--ease-out); }
.toast.err { background: #a81f33; }
.toast.ok { background: var(--green-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- dialogs ---------- */
dialog.sheet { border: 1px solid var(--line); border-radius: 24px; padding: 0; background: var(--surface); color: var(--text); width: min(94vw, 520px); max-height: 90vh; max-height: 90dvh; box-shadow: var(--shadow); }
dialog.sheet[open] { animation: sheet-in .22s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: scale(.96); } }
dialog.sheet::backdrop { background: rgba(11, 37, 69, .45); }
.sheet-body { padding: 20px; display: grid; gap: 14px; overflow: auto; max-height: calc(90dvh - 2px); overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ================= food art and scenes ================= */
.art { position: relative; overflow: hidden; display: grid; place-items: center; isolation: isolate;
  background:
    repeating-linear-gradient(112deg, rgba(255,255,255,.055) 0 2px, rgba(255,255,255,0) 2px 15px),
    linear-gradient(101deg, rgba(0,0,0,0) 49.2%, rgba(196,232,160,.5) 49.6% 50.4%, rgba(0,0,0,0) 50.8%),
    radial-gradient(130% 100% at 28% 18%, #43a968 0%, #23794a 55%, #155a37 100%); }
.art .dish, .art .scene { width: 100%; height: 100%; display: block; }
.art .dish-photo { width: 100%; height: 100%; object-fit: cover; }
.steam { opacity: 0; animation: steam 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.steam.s2 { animation-delay: 1.2s; } .steam.s3 { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleX(.8); } 30% { opacity: .78; } 100% { opacity: 0; transform: translateY(-26px) scaleX(1.25); } }
.art.still .steam { animation: none; opacity: 0; }

/* chiya being poured */
.sc-kettle { transform-box: view-box; transform-origin: 90px 90px; animation: sc-kettle 5.2s var(--ease-in-out) infinite; }
@keyframes sc-kettle { 0%, 70%, 100% { transform: rotate(-6deg); } 12%, 58% { transform: rotate(24deg); } }
.sc-stream { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sc-stream 5.2s linear infinite; }
@keyframes sc-stream { 0%, 12% { stroke-dashoffset: 100; } 18%, 55% { stroke-dashoffset: 0; } 61%, 100% { stroke-dashoffset: -100; } }
.sc-liquid { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-liquid 5.2s linear infinite; }
@keyframes sc-liquid { 0%, 16% { transform: scaleY(0); opacity: 1; } 58%, 92% { transform: scaleY(1); opacity: 1; } 98%, 100% { transform: scaleY(1); opacity: 0; } }
.sc-teasteam { animation: sc-fade-late 5.2s linear infinite; }
@keyframes sc-fade-late { 0%, 56% { opacity: 0; } 64%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* momo steamer */
.sc-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-lid 2.4s var(--ease-out) infinite; }
@keyframes sc-lid { 0%, 58%, 100% { transform: translateY(0) rotate(0); } 68% { transform: translateY(-7px) rotate(-3deg); } 78% { transform: translateY(-1px) rotate(2deg); } 88% { transform: translateY(-4px) rotate(-1deg); } }
.sc-puff { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sc-puff 2.4s ease-out infinite; }
.sc-puff.p0 { --dx: -18px; } .sc-puff.p1 { --dx: 18px; } .sc-puff.p2 { --dx: 0px; animation-delay: .15s; }
@keyframes sc-puff { 0%, 60% { opacity: 0; transform: translate(0, 0) scale(.4); } 72% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 0), -24px) scale(1.7); } }
.sc-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-flame .5s ease-in-out infinite alternate; }
.sc-flame.f1 { animation-delay: .17s; } .sc-flame.f2 { animation-delay: .33s; }
@keyframes sc-flame { from { transform: scaleY(.78) scaleX(1.05); } to { transform: scaleY(1.16) scaleX(.94); } }

/* order sent: slip arrives, bell rings */
.sc-slip { animation: sc-slip 3.6s var(--ease-out) infinite; }
@keyframes sc-slip { 0% { transform: translate(-90px, 70px) rotate(-12deg); opacity: 0; } 12% { opacity: 1; } 40%, 86% { transform: translate(56px, 50px) rotate(-5deg); opacity: 1; } 100% { transform: translate(56px, 50px) rotate(-5deg); opacity: 0; } }
.sc-bell { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-bell 3.6s ease-in-out infinite; }
@keyframes sc-bell { 0%, 42%, 76%, 100% { transform: rotate(0); } 48% { transform: rotate(-9deg); } 54% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 66% { transform: rotate(4deg); } 71% { transform: rotate(-2deg); } }
.sc-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sc-ring 3.6s ease-out infinite; }
.sc-ring.r2 { animation-delay: .08s; }
@keyframes sc-ring { 0%, 44% { opacity: 0; transform: scale(.7); } 54% { opacity: .95; } 78%, 100% { opacity: 0; transform: scale(1.25); } }

/* ready: the cloche lifts */
.sc-cloche { animation: sc-cloche 3.8s var(--ease-in-out) infinite; }
@keyframes sc-cloche { 0%, 10%, 94%, 100% { transform: translateY(0) rotate(0); } 34%, 76% { transform: translateY(-70px) rotate(-7deg); } }
.sc-cloche { transform-box: fill-box; transform-origin: 50% 100%; }
.sc-readysteam { animation: sc-readysteam 3.8s linear infinite; }
@keyframes sc-readysteam { 0%, 28% { opacity: 0; } 40%, 74% { opacity: 1; } 84%, 100% { opacity: 0; } }
.sc-spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sc-spark 1.9s ease-in-out infinite; }
.sc-spark.k1 { animation-delay: .6s; } .sc-spark.k2 { animation-delay: 1.2s; }
@keyframes sc-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }

/* served: leaves drift */
.sc-leaf { transform-box: fill-box; transform-origin: center; animation: sc-leaf 6s ease-in-out infinite; }
.sc-leaf.l1 { animation-delay: -2s; } .sc-leaf.l2 { animation-delay: -4s; }
@keyframes sc-leaf { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(8px, 12px) rotate(14deg); } }

/* ================= customer ================= */
.c-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 130px; }
.c-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); height: 60px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; display: flex; align-items: center; }
.c-top-in { width: 100%; max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.table-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #bcd2fb; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 14px; transition: transform .12s var(--ease-out); }
.table-btn:active { transform: scale(.96); }
.table-btn svg { width: 14px; height: 14px; }
.c-hero { padding: 22px 0 6px; }
.c-hero h1 { font-family: var(--serif); font-size: clamp(32px, 9vw, 44px); letter-spacing: -.02em; }
.c-hero h1 em { font-style: italic; color: var(--green-2); font-weight: 500; }
.c-hero p { margin: 8px 0 0; color: var(--muted); }
.cats { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; margin: 0 -16px; background: linear-gradient(rgba(244, 249, 245, .96), rgba(244, 249, 245, .96)); scrollbar-width: none; overscroll-behavior-x: contain; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 650; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.cats a.on { background: var(--text); color: #fff; border-color: var(--text); }
.c-section { padding-top: 20px; scroll-margin-top: 126px; }
.c-section > h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.c-section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dish-card { position: relative; display: grid; gap: 0; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s var(--ease-out), box-shadow .16s ease; }
.dish-card:active { transform: scale(.97); }
.dish-card .art { aspect-ratio: 1 / 1; }
.dish-card .art .dish { transition: transform .5s var(--ease-out); }
.dish-meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.dish-name { font-weight: 750; font-size: 16px; line-height: 1.25; }
.dish-price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.dish-count { position: absolute; top: 10px; right: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(11, 37, 69, .35); border: 2px solid #fff; }
.dish-card.out .art { filter: grayscale(.85) brightness(.9); }
.dish-out { position: absolute; top: 10px; left: 10px; }
@media (hover: hover) and (pointer: fine) {
  .dish-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .dish-card:hover .art .dish { transform: scale(1.04); }
}

/* loading: the shape of what is coming, so nothing jumps when it arrives */
.skel { display: block; border-radius: 22px; background: linear-gradient(100deg, var(--surface-3) 20%, #f3f8ff 40%, var(--surface-3) 60%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
.skel-card { aspect-ratio: 1 / 1.32; }
.skel-chip { width: 88px; height: 40px; border-radius: 999px; }
.skel-row { display: flex; gap: 8px; padding: 10px 0 30px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* legacy list (staff "New order") */
.item { padding: 16px; margin-bottom: 12px; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item-name { font-size: 18px; font-weight: 750; }
.item-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.item.out { opacity: .6; }
.vars { margin-top: 10px; display: grid; }
.var { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); min-height: 58px; }
.var:first-child { border-top: 0; }
.var-name { font-weight: 650; }
.var-price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.var.out .var-name, .var.out .var-price { color: var(--faint); }

/* dish detail: full screen */
.detail { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: screen-in .34s var(--ease-drawer); }
@keyframes screen-in { from { transform: translateY(28px); opacity: 0; } }
.detail-in { max-width: 720px; margin: 0 auto; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.detail-art { position: relative; height: min(100vw, 46dvh, 460px); border-radius: 0 0 32px 32px; box-shadow: 0 16px 36px rgba(21, 90, 55, .28); }
.detail-art .dish { transition: opacity .18s ease; }
.detail-art.swap .dish { opacity: 0; }
.round-btn { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--text); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(11, 37, 69, .25); transition: transform .12s var(--ease-out); }
.round-btn:active { transform: scale(.92); }
.round-btn svg { width: 22px; height: 22px; }
.detail-body { padding: 20px 16px 0; display: grid; gap: 14px; }
.detail-body h1 { font-family: var(--serif); font-size: 32px; letter-spacing: -.02em; }
.types { display: grid; gap: 10px; }
.type { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.type.on { border-color: var(--accent); background: #f7faff; }
.type .art { width: 58px; height: 58px; border-radius: 14px; }
.type-pick { display: contents; }
.type-main { text-align: left; background: none; border: 0; padding: 6px 0; min-height: 46px; display: grid; }
.type-name { font-weight: 750; }
.type-price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.type.out { opacity: .6; }
.fly { position: fixed; z-index: 60; left: 0; top: 0; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; pointer-events: none; box-shadow: 0 6px 16px rgba(29, 95, 214, .4); }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(244, 249, 245, 0), var(--bg) 34%); pointer-events: none; }
.cartbar .btn { pointer-events: auto; width: 100%; max-width: 688px; margin: 0 auto; display: flex; justify-content: space-between; min-height: 58px; font-size: 17px; padding: 10px 22px; }
.cartbar .count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--accent-2); font-size: 14px; font-weight: 800; margin-right: 10px; }
.detail .cartbar, .review .cartbar { z-index: 45; }

.review { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: screen-in .34s var(--ease-drawer); }
.review-in { max-width: 720px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 150px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; border: 0; background: transparent; color: var(--accent-2); font-weight: 650; padding: 0; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .art { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 750; }
.line-sub { color: var(--muted); font-size: 14px; }
.totals { display: grid; gap: 6px; padding: 16px 0; }
.totals .row { display: flex; justify-content: space-between; }
.totals .grand { font-size: 21px; font-weight: 800; }
.table-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 8px 0 4px; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.table-grid button { min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 750; font-size: 16px; transition: transform .12s var(--ease-out), border-color .15s ease, background-color .15s ease; }
.table-grid button:active { transform: scale(.95); }
.table-grid button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-2); }
.notice.info { background: var(--accent-soft); border-color: #bcd2fb; }
.notice.warn { background: var(--warn-bg); border-color: #f0d59a; }
.notice.err { background: var(--late-bg); border-color: #f5b8c1; color: #8f1d2e; }

/* order status */
.o-head { padding: 18px 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.o-num { font-family: var(--serif); font-size: clamp(54px, 16vw, 76px); font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.o-title { font-family: var(--serif); font-size: 34px; margin-top: 12px; letter-spacing: -.02em; }
.stage { margin: 16px 0 6px; height: min(60vw, 280px); border-radius: 28px; box-shadow: 0 16px 36px rgba(21, 90, 55, .25); }
.stage.pulse { animation: stage-pulse 1s var(--ease-out) 2; }
@keyframes stage-pulse { 50% { box-shadow: 0 0 0 8px rgba(46, 154, 94, .35), 0 16px 36px rgba(21, 90, 55, .25); } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 8px; }
.steps div { display: grid; gap: 8px; font-size: 13px; font-weight: 650; color: var(--faint); }
.steps div::before { content: ""; height: 6px; border-radius: 99px; background: var(--surface-3); transition: background-color .4s ease; }
.steps div.done { color: var(--text); }
.steps div.done::before { background: var(--green); }
.steps div.now { color: var(--accent-2); }
.steps div.now::before { background: linear-gradient(90deg, var(--surface-3) 0 35%, var(--accent) 50%, var(--surface-3) 65%); background-size: 300% 100%; animation: progress 1.6s linear infinite; }
@keyframes progress { from { background-position: 100% 0; } to { background-position: 0 0; } }
.play-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; margin: 14px 0; text-decoration: none; color: inherit; transition: transform .14s var(--ease-out); }
.play-card:active { transform: scale(.98); }
.play-card .art { width: 64px; height: 64px; border-radius: 16px; }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

/* home */
.home-hero { display: grid; gap: 18px; padding: 26px 0 8px; }
.home-hero h1 { font-family: var(--serif); font-size: clamp(40px, 11vw, 68px); letter-spacing: -.03em; line-height: 1.02; }
.home-hero h1 em { font-style: italic; color: var(--green-2); font-weight: 500; }
.home-hero .stage { height: min(64vw, 380px); margin: 0; }
.home-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 14px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-row::-webkit-scrollbar { display: none; }
.home-row .dish-card { flex: none; width: min(62vw, 240px); scroll-snap-align: start; text-decoration: none; color: inherit; }
.how { display: grid; gap: 10px; counter-reset: how; padding: 0; margin: 0; list-style: none; }
.how li { counter-increment: how; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px; }
.how li::before { content: counter(how); width: 40px; height: 40px; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-weight: 800; display: grid; place-items: center; }
.foot { margin-top: 36px; padding: 18px 0 8px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (min-width: 860px) {
  .home-hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 44px; }
  .home-row { flex-wrap: wrap; overflow: visible; }
  .home-row .dish-card { width: calc(25% - 9px); }
  .how { grid-template-columns: repeat(2, 1fr); }
}

/* game */
.game-wrap { max-width: 520px; margin: 0 auto; padding: 12px 16px 28px; display: grid; gap: 12px; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.game-stage { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 36px rgba(21, 90, 55, .28); touch-action: none; aspect-ratio: 3 / 4; margin: 0 auto; width: min(100%, calc(72dvh * 3 / 4));
  background:
    repeating-linear-gradient(112deg, rgba(255,255,255,.055) 0 2px, rgba(255,255,255,0) 2px 15px),
    radial-gradient(130% 100% at 28% 18%, #43a968 0%, #23794a 55%, #155a37 100%); }
.arena { position: absolute; inset: 0; }
.arena canvas { width: 100%; height: 100%; display: block; }
.game-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(11, 37, 69, .55); padding: 20px; text-align: center; }
.game-over .card { padding: 20px; display: grid; gap: 10px; min-width: min(100%, 280px); animation: sheet-in .25s var(--ease-out); }
.game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-tile { display: grid; gap: 0; padding: 0; overflow: hidden; border-radius: 22px; text-decoration: none; color: inherit; transition: transform .16s var(--ease-out), box-shadow .16s ease; }
.game-tile:active { transform: scale(.97); }
.game-tile .art { aspect-ratio: 16 / 11; }
.game-tile-text { padding: 10px 12px 12px; display: grid; gap: 2px; }
@media (hover: hover) and (pointer: fine) { .game-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
@media (min-width: 560px) { .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* inside the games */
.g-pad { height: 100%; padding: 14px; display: grid; gap: 12px; align-content: center; }
.g-msg { margin: 0; color: #fff; font-weight: 750; font-size: 18px; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); min-height: 27px; }
.g-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.g-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; }
.shake { animation: shake .32s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } }

.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pop-cell { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #1b6b41, #0f3f26); box-shadow: inset 0 8px 16px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .18); }
.pop-cell span { position: absolute; inset: 10%; display: block; transform: translateY(115%); transition: transform .14s var(--ease-out); }
.pop-cell span svg { width: 100%; height: 100%; }
.pop-cell.up span { transform: none; }

.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem-card { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #f8fbff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transition: transform .18s var(--ease-out), background-color .18s ease; }
.mem-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #e4eeff 0 30%, #cfe0ff 31% 34%, #f8fbff 35%); transition: opacity .18s ease; }
.mem-card .dish { width: 100%; height: 100%; opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity .18s ease, transform .26s var(--ease-out); }
.mem-card.open, .mem-card.done { background: #23794a; }
.mem-card.open::before, .mem-card.done::before { opacity: 0; }
.mem-card.open .dish, .mem-card.done .dish { opacity: 1; transform: none; }
.mem-card.done { box-shadow: 0 0 0 3px #b9e3c6, 0 3px 8px rgba(0, 0, 0, .25); }
.mem-card:active { transform: scale(.95); }

.mix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mix-bowl { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 750; padding: 8px; transition: transform .12s var(--ease-out), background-color .1s ease, color .1s ease; }
.mix-bowl svg { width: 62%; height: auto; }
.mix-bowl.lit { background: #fff; color: var(--text); border-color: #fff; transform: scale(1.05); }

.rush-order { background: #fff; color: var(--text); border-radius: 18px; padding: 12px 16px; text-align: center; font-size: 16px; line-height: 1.3; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.rush-order .serif { font-size: 26px; }
.rush-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 84%; margin: 0 auto; }
.rush-opt, .odd-cell { aspect-ratio: 1; border: 3px solid rgba(255, 255, 255, .2); padding: 0; border-radius: 20px; overflow: hidden; background: rgba(0, 0, 0, .14); transition: transform .12s var(--ease-out), border-color .12s ease; }
.rush-opt:active, .odd-cell:active { transform: scale(.95); }
.rush-opt .dish, .odd-cell .dish { width: 100%; height: 100%; }
.rush-opt.right, .odd-cell.right { border-color: #b9f0c9; box-shadow: 0 0 0 4px rgba(185, 240, 201, .5); }
.rush-opt.wrong, .odd-cell.wrong { border-color: #ff9aa6; animation: shake .32s var(--ease-out); }
.odd-grid { display: grid; gap: 6px; }
.odd-cell { border-width: 2px; border-radius: 14px; }

.slide-top { display: flex; align-items: center; gap: 12px; }
.slide-goal { width: 84px; height: 84px; border-radius: 16px; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.slide-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; background: #0f3f26; box-shadow: inset 0 4px 12px rgba(0, 0, 0, .4); }
.slide-tile { position: absolute; left: 0; top: 0; width: 33.3333%; height: 33.3333%; padding: 2px; border: 0; background: none; transition: transform .16s var(--ease-out); }
.slide-tile svg { width: 100%; height: 100%; border-radius: 10px; background: #2f8f58; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
.slide-board.solved .slide-tile { padding: 0; }
.slide-board.solved .slide-tile svg { border-radius: 0; box-shadow: none; }

/* ================= staff ================= */
.s-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.s-top .brand { font-size: 20px; }
.s-top .where { font-weight: 750; color: var(--muted); }
.s-top .grow { flex: 1; }
.s-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.s-nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: 14px; padding: 8px 11px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; }
.s-nav a.on { color: var(--accent-2); background: var(--accent-soft); }
.live-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--faint); display: inline-block; }
.live-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 154, 94, .2); }
.live-dot.poll { background: #e39b12; }
.s-main { padding: 16px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; box-shadow: var(--shadow-sm); }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; margin-right: 4px; }
.stat.alert { border-color: var(--late); color: var(--late); }

.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.gate .card { width: min(100%, 400px); padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.gate h1 { font-family: var(--serif); font-size: 28px; }

/* kitchen */
.k-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.k-col > h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 2px 10px; }
.k-col > h2 .n { background: var(--surface-3); color: var(--text); border-radius: 99px; padding: 1px 9px; font-size: 13px; }
.k-list { display: grid; gap: 12px; }
.ticket { padding: 14px; border-left: 6px solid var(--line-2); display: grid; gap: 10px; transition: border-color .3s ease, box-shadow .3s ease; }
.ticket.new { border-left-color: var(--accent); }
.ticket.preparing { border-left-color: #58a6ff; }
.ticket.ready { border-left-color: var(--green); }
.ticket.warn { box-shadow: 0 0 0 2px #f0c35a inset, var(--shadow-sm); }
.ticket.late { border-left-color: var(--late); box-shadow: 0 0 0 2px var(--late) inset, var(--shadow-sm); animation: late-pulse 1.6s ease-in-out infinite; }
@keyframes late-pulse { 50% { background: var(--late-bg); } }
.ticket.fresh { animation: fresh 1s var(--ease-out) 2; }
@keyframes fresh { 50% { background: var(--accent-soft); } }
.t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.t-no { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; }
.t-table { font-size: 18px; font-weight: 800; }
.t-timer { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t-timer.warn { color: var(--warn); }
.t-timer.late { color: var(--late); }
.t-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.t-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.t-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width 1s linear, background-color .3s; }
.t-bar.warn i { background: #e39b12; }
.t-bar.late i { background: var(--late); }
.t-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.t-items li { display: flex; gap: 10px; font-size: 17px; }
.t-items .q { font-weight: 800; min-width: 34px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.t-note { padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 650; font-size: 15px; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t-actions .btn { flex: 1; min-height: 50px; font-size: 16px; }
.empty { padding: 26px 14px; text-align: center; color: var(--faint); border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .5); }
.startcover { position: fixed; inset: 0; z-index: 100; background: rgba(244, 249, 245, .97); display: grid; place-items: center; padding: 24px; text-align: center; }
.startcover .btn { min-height: 64px; font-size: 20px; padding: 14px 32px; }

/* counter */
.c-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ready-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.ready-card { flex: none; width: min(86vw, 420px); padding: 10px 12px; display: flex; align-items: center; gap: 12px; border-color: #9fd6b5; background: var(--ok-bg); }
.ready-card > div { flex: 1; min-width: 0; }
.ready-card .btn { flex: none; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tcard { text-align: left; padding: 12px; min-height: 104px; display: grid; gap: 6px; align-content: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .12s var(--ease-out), border-color .15s ease; }
.tcard:active { transform: scale(.97); }
.tcard.busy { border-color: var(--line-2); background: var(--surface-2); }
.tcard.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 95, 214, .2); }
.tcard .tl { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.tcard .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.bill { padding: 16px; position: sticky; top: 76px; display: grid; gap: 12px; }
.bill-order { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.bill-order.cancelled { opacity: .5; }
.bill-lines { display: grid; gap: 2px; font-size: 15px; }
.bill-lines div { display: flex; justify-content: space-between; gap: 10px; }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.methods button { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; }
.methods button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }

/* admin / history */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 650; font-size: 13px; }
.tbl-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 650; }
.tabs button.on { background: var(--text); color: #fff; border-color: var(--text); }
.a-section { display: grid; gap: 14px; max-width: 1100px; }
.a-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.a-item { padding: 14px; display: grid; gap: 10px; }
.a-item-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.a-item-top .art { width: 96px; height: 96px; border-radius: 18px; }
.a-vars { display: grid; gap: 8px; }
.a-var { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto auto; gap: 8px; align-items: center; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qr-card { padding: 16px; display: grid; gap: 8px; justify-items: center; text-align: center; background: #fff; color: #0b2545; border-radius: 16px; }
.qr-card img { width: 180px; height: 180px; }
.qr-card .ql { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kpi { padding: 14px; }
.kpi b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: 140px 1fr 70px; gap: 8px; align-items: center; font-size: 14px; }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--accent); min-width: 2px; }

/* receipt (printed) */
.receipt { display: none; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff !important; color: #000 !important; }
  body > *:not(.receipt) { display: none !important; }
  .receipt { display: block !important; font: 12px/1.4 ui-monospace, Menlo, monospace; color: #000; width: 72mm; }
  .receipt h3 { font-size: 15px; text-align: center; }
  .receipt .r-row { display: flex; justify-content: space-between; gap: 6px; }
  .receipt hr { border: 0; border-top: 1px dashed #000; }
  .print-qr .qr-card { break-inside: avoid; }
}
.s-collapse { display: contents; }
.s-more { display: none; }
@media (max-width: 760px) {
  .s-more { display: inline-flex; }
  .s-collapse { display: none; width: 100%; flex-wrap: wrap; gap: 8px; align-items: center; }
  .s-top.open .s-collapse { display: flex; }
  .s-collapse .grow { display: none; }
}
.no-sticky .s-top { position: static; }
.no-sticky .cats { top: 0; }
body.print-qr-mode > *:not(.print-qr) { display: none !important; }
@media print { body.print-qr-mode .print-qr { display: grid !important; } body.print-qr-mode .print-qr .qr-card { border: 1px solid #000; } }

@media (max-width: 980px) {
  .k-cols { grid-template-columns: 1fr; }
  .c-grid { grid-template-columns: 1fr; }
  .bill { position: static; }
}
@media (max-width: 560px) {
  .a-var { grid-template-columns: 1fr 96px; }
  .bars div { grid-template-columns: 100px 1fr 56px; }
  .s-top { gap: 8px; }
  .a-item-top { grid-template-columns: 72px minmax(0, 1fr); }
  .a-item-top .art { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .steam { opacity: .5; }
  .sc-liquid { transform: none; }
  .sc-stream { stroke-dashoffset: 0; }
}
