/* Yuan's Hot Pot · Valley · table ordering prototype
   Light, high-contrast, glare-friendly. Designed for landscape iPad (1024–1366 px wide). */
@font-face { font-family: "InterV"; src: url("inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
:root {
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --ink: #1B1411;
  --ink2: #574A42;
  --ink3: #7A6C62;
  --line: #E7DDD2;
  --line2: #D9CCBF;
  --red: #C8161D;
  --red-ink: #9E0F15;
  --red-soft: #FCEBEA;
  --gold: #F2B62B;
  --gold-soft: #FFF4D6;
  --green: #17703D;
  --green-soft: #E5F4EA;
  --numb: #6B3FA8;
  --numb-soft: #F1EAFB;
  --blue: #1F5FA8;
  --ph: #B26A00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 4px 14px rgba(60, 30, 10, .06);
  --shadow-lg: 0 10px 40px rgba(40, 15, 5, .22);
  --rail: 236px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "InterV", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; padding: 0; }
input, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; }

#app { display: grid; grid-template-columns: var(--rail) 1fr; height: 100vh; height: 100dvh; }

/* ---------- Rail ---------- */
.rail { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; gap: 12px; align-items: center; padding: 18px 16px 14px; }
.brand img { width: 54px; height: 54px; border-radius: 12px; }
.brand .bn { font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.brand .bb { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.25; }
.tablechip span { white-space: nowrap; }
.tablechip { margin: 0 16px 12px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 14px; color: var(--ink2); font-weight: 600; }
.tablechip b { font-size: 22px; color: var(--ink); font-weight: 800; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 0 16px 8px; }
.seg button { height: 44px; border-radius: 10px; font-weight: 700; font-size: 16px; color: var(--ink2); }
.seg button.on { background: var(--ink); color: #fff; }
.cats { flex: 1; overflow-y: auto; padding: 4px 10px 8px; min-height: 0; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink2); line-height: 1.2; gap: 10px; }
.cats button .n { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.cats button.on { background: var(--red-soft); color: var(--red-ink); font-weight: 800; }
.cats .sep { height: 1px; background: var(--line); margin: 8px 12px; }
.railbtns { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; }
.railbtns button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 700; font-size: 16px; background: var(--bg); border: 1px solid var(--line); }
.railbtns button:active { transform: scale(.98); }
.railbtns button .tag { margin-left: auto; font-size: 12px; font-weight: 800; background: var(--gold); color: var(--ink); border-radius: 99px; padding: 3px 8px; }
.railbtns button.called { background: var(--gold-soft); border-color: var(--gold); }

/* ---------- Main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tb { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 16px; background: #fff; border: 1.5px solid var(--line2); white-space: nowrap; }
.tb:active { transform: scale(.97); }
.tb.primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 14px rgba(200, 22, 29, .28); }
.tb.primary .i { stroke: #fff; }
.tb .cnt { background: var(--ink); color: #fff; font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.tb.active { border-color: var(--ink); }
.spacer { flex: 1; }
.lang { display: flex; background: #fff; border: 1.5px solid var(--line2); border-radius: 99px; padding: 3px; }
.lang button { white-space: nowrap; height: 42px; min-width: 50px; padding: 0 12px; border-radius: 99px; font-weight: 700; font-size: 15px; color: var(--ink2); }
.lang button.on { background: var(--ink); color: #fff; }
.proto { height: 30px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ph); border: 1.5px dashed #E3B76B; background: #FFF9EC; }

.offline-banner { display: flex; align-items: center; gap: 10px; background: #FFF2CC; color: #5C3D00; font-weight: 700; padding: 10px 22px; border-bottom: 1px solid #F0D58A; font-size: 15px; }
.offline-banner[hidden] { display: none; }

.menu { flex: 1; overflow-y: auto; padding: 4px 22px 140px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; outline: none; }
.sec { padding-top: 18px; }
.sec h2 { font-size: 26px; font-weight: 800; letter-spacing: -.015em; margin: 6px 2px 4px; display: flex; align-items: baseline; gap: 12px; }
.sec h2 small { font-size: 16px; color: var(--ink3); font-weight: 600; }
.sec .hint { margin: 0 2px 12px; color: var(--ink2); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* ---------- Card ---------- */
.card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: transform .12s, box-shadow .12s, opacity .2s; contain: layout paint; }
.card:active { transform: scale(.985); }
.card.match { border: 2px solid var(--gold); }
.card.dim { opacity: .38; }
.card.hidden { display: none; }
.card-hit { position: absolute; inset: 0; z-index: 1; }
.pic { position: relative; aspect-ratio: 4 / 3; background: #fff; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.grid.wide .pic { aspect-ratio: 16 / 10; }
.grid.wide .pic img { object-fit: cover; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(0, 0, 0, .55); letter-spacing: .04em; text-align: center; padding: 10px; line-height: 1.2; }
.tile.soft, .tile.beer, .tile.wine, .tile.coffee, .tile.soup, .tile.meat { background: linear-gradient(135deg, var(--t1), var(--t2)); }
.tile.soft { --t1: #FFE9D6; --t2: #FFD3C2; }
.tile.beer { --t1: #FFF1C9; --t2: #FBDD8E; }
.tile.wine { --t1: #F7E1E6; --t2: #EBC3CE; }
.tile.coffee { --t1: #F2E7DC; --t2: #E2CDB8; }
.tile.soup { --t1: #FFE1DC; --t2: #F9C2B7; }
.tile.meat { --t1: #FBE3D7; --t2: #F4C9B3; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--ink); color: #fff; letter-spacing: .01em; display: inline-flex; gap: 5px; align-items: center; }
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.green { background: var(--green); }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 17px; line-height: 1.22; margin: 0; font-weight: 750; letter-spacing: -.005em; }
.card .sub { font-size: 14px; color: var(--ink3); margin: 0; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; align-items: center; min-height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; height: 26px; padding: 0 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.chip svg.i { width: 15px; height: 15px; }
.chip.heat { color: #B3170F; background: #FFF0EE; border-color: #F7CFC9; gap: 0; padding: 0 7px; }
.chip.heat svg.i { width: 15px; height: 15px; stroke: none; }
.chip.numb { color: var(--numb); background: var(--numb-soft); border-color: #DCCDF3; }
.chip.diet { color: var(--green); background: var(--green-soft); border-color: #C3E5CF; }
.chip.halal { color: #0F5E62; background: #E3F4F4; border-color: #B9E0E0; }
.foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.price span { font-size: 13px; font-weight: 600; color: var(--ink3); margin-left: 2px; }
.card .price { display: flex; flex-direction: column; line-height: 1.05; }
.card .price span { margin: 3px 0 0; }
.qty-slot { position: relative; z-index: 2; }
.add { width: 52px; height: 52px; border-radius: 99px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(200, 22, 29, .3); }
.add svg.i { width: 26px; height: 26px; stroke-width: 2.6; }
.add:active { transform: scale(.9); }
.step { display: flex; align-items: center; background: var(--ink); color: #fff; border-radius: 99px; height: 52px; padding: 0 4px; }
.step button { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; }
.step button:active { background: rgba(255, 255, 255, .18); }
.step svg.i { width: 22px; height: 22px; stroke-width: 2.6; }
.step b { min-width: 24px; text-align: center; font-size: 18px; }
.step.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line2); height: 46px; }
.step.light button { width: 40px; height: 40px; }
.step.light button:active { background: var(--bg); }
.dimwhy { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 0; font-size: 13px; font-weight: 800; color: #fff; background: #3A2E28; border-radius: 10px; padding: 6px 10px; text-align: center; }
.bump { animation: bump .32s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* placeholders (presenter toggle) */
body.ph-on .ph { outline: 2px dashed #E39A1B; outline-offset: 1px; border-radius: 6px; position: relative; }
body.ph-on .price.ph::after { content: "?"; font-size: 12px; color: #fff; background: #E39A1B; border-radius: 99px; padding: 1px 6px; margin-left: 6px; vertical-align: 3px; }
.phnote { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #7A4B00; background: #FFF6E3; border: 1px dashed #E8B65A; border-radius: 12px; padding: 9px 12px; line-height: 1.35; }

/* ---------- Bottom bar ---------- */
.bottombar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 22px 16px; background: linear-gradient(to top, var(--bg) 70%, rgba(251, 247, 242, 0)); pointer-events: none; }
.bottombar > * { pointer-events: auto; }
.guests { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 6px 5px 16px; box-shadow: var(--shadow); }
.guests .lbl { font-size: 14px; font-weight: 700; color: var(--ink2); margin-right: 4px; white-space: nowrap; }
.gchip { height: 46px; min-width: 46px; border-radius: 99px; font-weight: 800; font-size: 16px; display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.gchip.on { color: #fff; border-color: transparent; background: var(--gc, var(--ink)); }
.gchip.addg { color: var(--ink3); border-style: dashed; }
.gdot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: var(--gc, var(--ink)); flex: none; }
.cartbtn { margin-left: auto; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 10px 0 22px; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 17px; }
.cartbtn:active { transform: scale(.98); }
.cartbtn .ct { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 99px; background: var(--red); font-size: 15px; font-weight: 800; padding: 0 8px; }
.cartbtn .tot { font-size: 20px; font-weight: 800; }
.cartbtn .go { background: var(--red); height: 48px; border-radius: 99px; padding: 0 20px; display: flex; align-items: center; gap: 6px; }
.cartbtn.empty { background: #fff; color: var(--ink2); border: 1.5px solid var(--line2); box-shadow: var(--shadow); }
.cartbtn.empty .ct { display: none; }
.cartbtn.empty .go { background: var(--bg); color: var(--ink2); }
.cartbtn.pulse { animation: bump .4s ease; }

/* ---------- Timers dock ---------- */
.timers { position: fixed; left: calc(var(--rail) + 22px); bottom: 96px; display: flex; gap: 8px; z-index: 30; flex-wrap: wrap; max-width: calc(100vw - var(--rail) - 44px); }
.timer { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line2); border-radius: 99px; height: 52px; padding: 0 6px 0 8px; box-shadow: var(--shadow-lg); font-weight: 700; }
.timer .ring { width: 38px; height: 38px; }
.timer .ring circle { fill: none; stroke-width: 4; }
.timer .ring .bg { stroke: var(--line); }
.timer .ring .fg { stroke: var(--red); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; }
.timer .lab { font-size: 14px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer .tm { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 52px; }
.timer button { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; color: var(--ink3); }
.timer.done { background: var(--green); color: #fff; border-color: var(--green); animation: bump .6s ease infinite; }
.timer.done button { color: #fff; }

/* ---------- Layer: modals, sheets, drawers ---------- */
#layer > .scrim { position: fixed; inset: 0; background: rgba(27, 20, 17, .45); z-index: 50; display: flex; align-items: center; justify-content: center; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
#layer > .scrim.swap { animation: none; }
#layer > .scrim.noanim, .noanim > .modal, .noanim > .drawer { animation: none; }
.modal { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); width: min(920px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: rise .2s ease; overflow: hidden; }
.modal.sm { width: min(560px, calc(100vw - 48px)); }
.modal.md { width: min(720px, calc(100vw - 48px)); }
.modal.lg { width: min(1060px, calc(100vw - 40px)); }
.mhead { display: flex; align-items: center; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.mhead h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.mhead p { margin: 2px 0 0; color: var(--ink2); font-size: 15px; }
.mclose { margin-left: auto; width: 50px; height: 50px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.mbody { padding: 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mfoot { padding: 14px 24px 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.btn { height: 58px; padding: 0 26px; border-radius: 99px; font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--line2); white-space: nowrap; }
.btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.block { width: 100%; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; }

.drawer-scrim { justify-content: flex-end !important; align-items: stretch !important; }
.drawer { background: #fff; width: min(500px, 92vw); height: 100%; display: flex; flex-direction: column; animation: slide .2s ease; box-shadow: var(--shadow-lg); }

/* ---------- Detail sheet ---------- */
.detail { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 0; }
.detail .dpic { background: #fff; display: grid; place-items: center; border-right: 1px solid var(--line); position: relative; min-height: 380px; }
.detail .dpic img { width: 100%; height: 100%; object-fit: contain; max-height: 520px; }
.detail .dinfo { padding: 24px 26px 20px; overflow-y: auto; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; gap: 14px; }
.dinfo h2 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.dinfo .zh { font-size: 18px; color: var(--ink2); margin-top: 4px; }
.dinfo .desc { font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0; }
.drow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dsec h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); }
.cookbox { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.cookbox .big { font-size: 26px; font-weight: 800; }
.cookbox .where { font-size: 14px; color: var(--ink2); }
.cookbox .btn { height: 48px; margin-left: auto; font-size: 15px; padding: 0 16px; }
.alg { display: flex; flex-wrap: wrap; gap: 6px; }
.alg .chip { height: 32px; font-size: 14px; background: #FFF4EC; border-color: #F2D2BC; color: #7A3410; }
.alg .chip.ok { background: var(--green-soft); border-color: #C3E5CF; color: var(--green); }
.dbuy { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.dbuy .price { font-size: 30px; }
.dbuy .btn { margin-left: auto; }

/* ---------- Taste finder ---------- */
.tastes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.taste { min-height: 120px; border-radius: 20px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 14px 16px; text-align: left; gap: 4px; position: relative; transition: transform .1s; }
.taste:active { transform: scale(.97); }
.taste .ch { position: absolute; top: 12px; right: 14px; font-size: 36px; font-weight: 800; line-height: 1; color: var(--tc); opacity: .9; }
.taste b { font-size: 19px; }
.taste span { font-size: 14px; color: var(--ink2); line-height: 1.25; }
.taste .tick { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 99px; border: 2px solid var(--line2); display: grid; place-items: center; }
.taste.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 9%, #fff); }
.taste.on .tick { background: var(--tc); border-color: var(--tc); color: #fff; }
.taste .tick svg.i { width: 18px; height: 18px; stroke-width: 3; }
.trow { display: flex; gap: 18px; margin-top: 18px; align-items: stretch; }
.trow > div { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.trow h4 { margin: 0 0 10px; font-size: 16px; }
.heatsel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.heatsel button { height: 56px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line2); font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.heatsel button .ch { color: #C9241A; display: flex; height: 16px; }
.heatsel button .ch svg.i { width: 15px; height: 15px; stroke: none; }
.heatsel button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.heatsel button.on .ch { color: #FF8A7A; }
.switch { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.switch .sw { width: 64px; height: 38px; border-radius: 99px; background: var(--line2); position: relative; flex: none; transition: background .15s; }
.switch .sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on .sw { background: var(--green); }
.switch.on .sw::after { transform: translateX(26px); }
.switch b { display: block; font-size: 16px; }
.switch span { font-size: 14px; color: var(--ink2); }

.recs { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.broth { background: linear-gradient(160deg, #FFF6F2, #fff 60%); border: 2px solid var(--red); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.broth .pic { aspect-ratio: 4/3; }
.broth .bi { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.broth .kick { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--red); }
.broth h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.broth p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.35; }
.recgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rec { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.rec .pic { aspect-ratio: 4/3; }
.rec .ri { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rec h5 { margin: 0; font-size: 15px; line-height: 1.2; }
.rec .why { display: flex; flex-wrap: wrap; gap: 4px; }
.rec .why .chip { height: 22px; font-size: 12px; padding: 0 7px; }
.rec .foot { padding-top: 4px; }
.rec .price { font-size: 17px; }
.rec .add { width: 44px; height: 44px; }
.rec .step { height: 44px; }
.rec .step button { width: 30px; height: 36px; }
.rec .step b { min-width: 18px; font-size: 16px; }
.rec .step { padding: 0 2px; }
.also { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.also h4 { margin: 0 6px 0 0; font-size: 15px; color: var(--ink2); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px; border-radius: 99px; border: 1.5px solid var(--line2); background: #fff; font-weight: 700; font-size: 15px; }
.pill .add { width: 38px; height: 38px; box-shadow: none; }
.pill .add svg.i { width: 20px; height: 20px; }
.addall { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 66px; padding: 0 24px; border-radius: 20px; background: var(--red); color: #fff; text-align: left; box-shadow: 0 6px 18px rgba(200, 22, 29, .3); }
.addall b { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.addall span { font-size: 14px; opacity: .92; }
.addall.done { background: var(--green); box-shadow: none; }

/* ---------- Guide ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gstep { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.gstep .num { width: 42px; height: 42px; border-radius: 99px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.gstep b { font-size: 18px; line-height: 1.2; }
.gstep p { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.4; }
.cooktable { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ctile { background: #fff; border: 1.5px solid var(--line2); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 120px; }
.ctile .t { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ctile .t svg.i { color: var(--red); }
.ctile span { font-size: 14px; color: var(--ink2); line-height: 1.3; }
.ctile:active { transform: scale(.97); background: var(--bg); }
.srcnote { font-size: 13px; color: var(--ink3); margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* ---------- Welcome ---------- */
.welcome { position: fixed; inset: 0; z-index: 60; background: radial-gradient(1200px 600px at 20% 0%, #FFE9E2, transparent 60%), radial-gradient(900px 500px at 100% 100%, #FFF1CC, transparent 60%), var(--bg); display: grid; grid-template-columns: 1.05fr 1fr; animation: fade .2s ease; }
.welcome.leaving { opacity: 0; transition: opacity .24s ease; pointer-events: none; }
.welcome .wl { padding: 56px 56px 40px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.welcome .wl img { width: 104px; height: 104px; border-radius: 22px; box-shadow: 0 10px 30px rgba(200, 22, 29, .25); }
.welcome h1 { margin: 0; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; font-weight: 850; }
.wpots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; }
.wpots img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.welcome .wsub { font-size: 20px; color: var(--ink2); margin: 0; line-height: 1.4; }
.welcome .wmeta { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome .wmeta .chip { height: 36px; font-size: 15px; padding: 0 14px; background: #fff; }
.welcome .wr { padding: 40px 56px 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.wcard { background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.wcard h3 { margin: 0 0 14px; font-size: 20px; }
.party { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.party button { height: 60px; border-radius: 16px; border: 2px solid var(--line); font-size: 22px; font-weight: 800; background: var(--bg); }
.party button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.wcta { display: grid; gap: 10px; }
.wcta .btn { height: 66px; font-size: 19px; justify-content: flex-start; padding: 0 24px; }
.wcta .btn .i { width: 26px; height: 26px; }
.wcta .btn .chevr { margin-left: auto; }
.welcome .lang { align-self: flex-start; }

/* ---------- Basket ---------- */
.bgroup { margin-bottom: 14px; }
.bgroup h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; color: var(--ink2); }
.bline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bline .thumb { width: 54px; height: 54px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; flex: none; }
.bline .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bline .thumb .tile { font-size: 15px; padding: 4px; }
.bline .nm { flex: 1; min-width: 0; }
.bline .nm b { display: block; font-size: 16px; line-height: 1.2; }
.bline .nm span { font-size: 13px; color: var(--ink3); }
.bline .lp { font-weight: 800; font-size: 16px; min-width: 64px; text-align: right; }
.warn { display: flex; align-items: center; gap: 12px; background: var(--gold-soft); border: 1px solid #F2D58A; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: #5C3D00; }
.warn .btn { height: 42px; padding: 0 16px; font-size: 15px; margin-left: auto; background: #fff; }
.note textarea { width: 100%; min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line2); padding: 12px; font-size: 16px; resize: none; background: var(--bg); }
.qnotes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qnotes button { height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line2); font-size: 14px; font-weight: 600; background: #fff; }
.totals { display: grid; gap: 6px; width: 100%; }
.totals div { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink2); }
.totals div.big { font-size: 22px; font-weight: 800; color: var(--ink); }
.empty { text-align: center; color: var(--ink2); padding: 40px 10px; font-size: 17px; }
.empty svg.i { width: 48px; height: 48px; color: var(--line2); margin-bottom: 10px; }

/* sent */
.sent { text-align: center; padding: 34px 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sent .ok { width: 92px; height: 92px; border-radius: 99px; background: var(--green); color: #fff; display: grid; place-items: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.sent .ok svg.i { width: 48px; height: 48px; stroke-width: 3; }
.sent .ok.queued { background: var(--gold); color: var(--ink); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.sent h2 { margin: 6px 0 0; font-size: 28px; }
.sent p { margin: 0; color: var(--ink2); font-size: 17px; }

/* orders */
.round { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.round .rh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.round .rh b { font-size: 19px; }
.round .rh time { color: var(--ink3); font-size: 14px; }
.status { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.status .s { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; background: var(--bg); color: var(--ink3); border: 1px solid var(--line); }
.status .s.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.status .s.q { background: var(--gold-soft); color: #5C3D00; border-color: #F2D58A; }
.status .s.done { background: var(--green); color: #fff; border-color: var(--green); }
.rline { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 16px; }
.rline .q { font-weight: 800; min-width: 34px; }
.rline .nm { flex: 1; }
.rline .gs { display: flex; gap: 3px; }
.rline .gs .gdot { width: 22px; height: 22px; font-size: 11px; }
.rline .nm small { color: var(--ink3); margin-left: 6px; }
.rline .tbtn { height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rline .tbtn svg.i { width: 16px; height: 16px; }
.round .ract { display: flex; gap: 8px; margin-top: 8px; }
.round .ract .btn { height: 46px; font-size: 15px; padding: 0 16px; }
.round .rnote { font-size: 14px; color: var(--ink2); background: var(--bg); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }

/* bill */
.billgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.bl { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 16px; }
.bl .q { font-weight: 800; min-width: 34px; }
.bl .nm { flex: 1; }
.bl .p { font-weight: 700; }
.billside { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.billside .grand { font-size: 40px; font-weight: 850; letter-spacing: -.02em; }
.splitsel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.splitsel button { height: 44px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink2); }
.splitsel button.on { background: var(--ink); color: #fff; }
.splitrow { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 6px 0; }
.splitrow b { margin-left: auto; font-size: 19px; }
.splitrow small { color: var(--ink3); }
.paynote { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); line-height: 1.4; }

/* service */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc button { min-height: 120px; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 10px; text-align: center; }
.svc button svg.i { width: 34px; height: 34px; color: var(--red); }
.svc button:active { transform: scale(.97); border-color: var(--red); }

/* filters */
.fgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fgrid.al { grid-template-columns: repeat(4, 1fr); }
.fbtn { min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; text-align: center; line-height: 1.2; }
.fbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fbtn.gf { border-color: var(--green); color: var(--green); }
.fbtn.gf.on { background: var(--green); color: #fff; }
.fsec h4 { margin: 18px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); }
.fsec:first-child h4 { margin-top: 0; }

/* kitchen ticket */
.ticket { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #FFFEF8; border: 1px solid #E8E2CC; border-radius: 6px; padding: 18px 20px; width: 360px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.45; color: #111; }
.ticket .th { text-align: center; border-bottom: 2px dashed #999; padding-bottom: 8px; margin-bottom: 8px; }
.ticket .tno { font-size: 40px; font-weight: 800; }
.ticket .st { font-weight: 800; margin-top: 10px; border-bottom: 1px solid #333; }
.ticket .tl { display: flex; gap: 8px; }
.ticket .tl .q { min-width: 32px; font-weight: 800; }
.ticket .tl .g { margin-left: auto; color: #555; }
.ticket .tnote { margin-top: 10px; border: 2px solid #111; padding: 6px 8px; font-weight: 800; }
.tickets { display: flex; gap: 18px; overflow-x: auto; padding: 4px; }

/* presenter */
.plist { display: grid; gap: 10px; }
.plist .switch { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }

/* toasts */
#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 99px; padding: 14px 22px; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: rise .2s ease; }
.toast.ok svg.i { color: #7BE3A0; }
.toast.warn { background: #5C3D00; }

@media (max-width: 1100px) {
  :root { --rail: 212px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .tb { padding: 0 14px; }
  .brand img { width: 46px; height: 46px; }
  .brand .bn { font-size: 16px; }
  .tb { font-size: 15px; }
  .recgrid { grid-template-columns: repeat(3, 1fr); }
  .recs { grid-template-columns: 270px 1fr; }
  .cooktable { grid-template-columns: repeat(3, 1fr); }
  .welcome .wl { padding: 40px; }
  .welcome h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
