[hidden] { display: none !important; }
:root {
  --cream: #fff7f0; --paper: #ffffff; --ink: #1a0f0d; --muted: #7c6a64; --line: #f0e2d8; --hot: #f43f5e; --hot2: #fb7185; --amber: #f59e0b; --green: #10b981;
  --serif: "DM Serif Display", Georgia, serif; --sans: "Manrope", ui-sans-serif, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
body { margin: 0; font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--hot) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-hot { background: linear-gradient(135deg, var(--hot), #e11d48); color: #fff; box-shadow: 0 12px 26px -12px rgba(244, 63, 94, .9); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .2); }
.btn-ghost-dark { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-block { width: 100%; } .grow { flex: 1; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.err { color: #e11d48; font-weight: 700; margin: 8px 0 0; font-size: 14px; } .err:empty { display: none; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; }
.wordmark { font: 400 28px var(--serif); text-decoration: none; }
.wordmark span, .kds-brand span, .home-hero h1 span { color: var(--hot); }

/* ---------- home ---------- */
body.home { background: radial-gradient(900px 600px at 80% -10%, rgba(244, 63, 94, .35), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(245, 158, 11, .25), transparent 60%), var(--ink); color: #fff7f0; }
.home-wrap { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 60px 0 90px; }
.home-hero h1 { font: 400 clamp(90px, 18vw, 220px)/.85 var(--serif); margin: 20px 0; letter-spacing: -.02em; }
.home-hero .kicker { color: var(--hot2); }
.lede { font-size: 20px; max-width: 560px; color: #f3dfd6; }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 10px; }
.hint { color: #c8b2a8; font-size: 14px; }
.qr-wall { margin-top: 70px; }
.qr-wall h2 { font: 400 36px var(--serif); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.qr-card { display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 20px; background: #fff7f0; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.qr-card:hover { transform: translateY(-4px) rotate(-1deg); }
.qr-box { width: 104px; height: 104px; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 104px !important; height: 104px !important; }
.qr-card small { color: var(--muted); font-size: 12px; }

/* ---------- guest ---------- */
body.guest { background: var(--cream); color: var(--ink); }
.guest-app, .track { max-width: 640px; margin: 0 auto; padding-bottom: 130px; }
.g-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 8px; }
.g-head small { display: block; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px -6px rgba(26, 15, 13, .2); font-size: 12px; font-weight: 800; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
.live-pill.off i { background: #a8a29e; animation: none; }
@keyframes blink { 50% { opacity: .3; } }
.cat-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 18px; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); scrollbar-width: none; }
.cat-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border: 1.5px solid var(--line); transition: all .2s; }
.cat-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu { padding: 0 18px; }
.cat h2 { font: 400 30px var(--serif); margin: 26px 0 10px; scroll-margin-top: 70px; }
.dish { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; border: 0; border-radius: 22px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 8px 24px -16px rgba(26, 15, 13, .35); transition: transform .25s var(--ease); }
.dish:active { transform: scale(.98); }
.dish-emoji { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 36px; background: linear-gradient(135deg, #fff1e6, #ffe4e6); }
.dish-main small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin: 2px 0 6px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tags i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f5ede7; }
.tag-popular { background: #fef3c7 !important; color: #b45309; }
.sold { display: none; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #78716c; padding: 2px 8px; border-radius: 999px; }
.dish.out { opacity: .55; cursor: not-allowed; } .dish.out .sold { display: inline-block; } .dish.out .plus { display: none; }
.dish-price { font-weight: 800; display: grid; justify-items: end; gap: 6px; }
.plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; }
.cart-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(600px, calc(100% - 28px)); height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border: 0; border-radius: 20px; background: var(--ink); color: #fff; font-weight: 800; cursor: pointer; z-index: 50; box-shadow: 0 20px 40px -14px rgba(26, 15, 13, .7); animation: up .4s var(--ease); }
.cart-bar b { margin-left: auto; }
.cb-count { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: var(--hot); }
.cart-bar.bump { animation: bump .4s var(--ease); }
@keyframes up { from { transform: translate(-50%, 120%); } }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.04); } }
.sheet { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(26, 15, 13, .45); opacity: 0; transition: opacity .3s; }
.sheet-panel { position: absolute; left: 50%; bottom: 0; width: min(640px, 100%); max-height: 88svh; overflow: auto; transform: translate(-50%, 100%); transition: transform .45s var(--ease); background: var(--cream); border-radius: 28px 28px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet.open { pointer-events: auto; } .sheet.open .sheet-scrim { opacity: 1; } .sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: #e7d8cd; margin: 0 auto 12px; }
.sheet-hero { display: flex; gap: 14px; align-items: center; }
.sheet-hero > span { font-size: 64px; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 26px; background: linear-gradient(135deg, #fff1e6, #ffe4e6); flex: none; }
.sheet-hero h3 { font: 400 28px var(--serif); margin: 0; }
.sheet-hero p { margin: 4px 0 0; color: var(--muted); }
.sheet-panel h3 { font: 400 28px var(--serif); margin: 0 0 10px; }
.mod-group { border: 0; padding: 0; margin: 18px 0 0; }
.mod-group legend { font-weight: 800; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.mod-group legend em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.mod-group legend em.opt { background: #e7d8cd; color: var(--ink); }
.opt-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; margin-bottom: 6px; cursor: pointer; border: 2px solid transparent; }
.opt-row:has(input:checked) { border-color: var(--hot); }
.opt-row input { accent-color: var(--hot); width: 18px; height: 18px; }
.opt-row span { flex: 1; margin-left: 10px; font-weight: 700; }
.note-fld { display: grid; gap: 4px; margin-top: 16px; }
.note-fld span { font-size: 12px; font-weight: 800; color: var(--muted); }
.note-fld input { height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: #fff; }
.sheet-foot { display: flex; gap: 10px; margin-top: 18px; }
.stepper { display: flex; align-items: center; gap: 4px; border-radius: 16px; background: #fff; padding: 4px; }
.stepper button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f5ede7; font-size: 20px; cursor: pointer; }
.stepper b { min-width: 28px; text-align: center; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.lines small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.line-rm { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; }
.tips { border: 0; padding: 0; margin: 16px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tips legend { font-weight: 800; margin-bottom: 8px; }
.tips input { position: absolute; opacity: 0; }
.tips span { display: block; padding: 9px 14px; border-radius: 12px; background: #fff; font-weight: 800; cursor: pointer; border: 2px solid transparent; }
.tips input:checked + span { border-color: var(--hot); color: var(--hot); }
.tips input:focus-visible + span { outline: 2px solid var(--hot); }
.sum { margin: 16px 0; display: grid; gap: 4px; }
.sum div { display: flex; justify-content: space-between; } .sum dd { margin: 0; font-weight: 700; }
.sum .grand { font: 400 24px var(--serif); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }

/* track */
.track-card { margin: 10px 16px; padding: 24px 20px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -30px rgba(26, 15, 13, .35); }
.track-card .kicker { color: var(--hot); margin: 0; }
.track-card h1 { font: 400 clamp(34px, 8vw, 46px)/1.05 var(--serif); margin: 8px 0 4px; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 4px; border-radius: 2px; background: #f1e6de; }
.steps::after { content: ""; position: absolute; left: 12%; top: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--hot), var(--amber)); width: calc(var(--p, 0) * 76%); transition: width .8s var(--ease); }
.steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #b9a69d; }
.steps i { font-style: normal; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f1e6de; font-size: 22px; filter: grayscale(1); transition: all .4s var(--ease); }
.steps li.done i, .steps li.now i { background: #fff1f2; filter: none; box-shadow: 0 0 0 3px var(--hot); }
.steps li.now i { animation: pulse 1.4s infinite; }
.steps li.done, .steps li.now { color: var(--ink); }
@keyframes pulse { 50% { transform: scale(1.1); } }
.cook-anim { position: relative; height: 70px; display: grid; place-items: center; font-size: 46px; margin-bottom: 8px; }
.track[data-status="preparing"] .pan { animation: wobble .9s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-8deg) translateY(-3px); } }
.steam { position: absolute; top: 4px; width: 8px; height: 26px; border-radius: 8px; background: #e7d8cd; opacity: 0; }
.track[data-status="preparing"] .steam { animation: steam 1.6s ease-out infinite; }
.s1 { left: calc(50% - 22px); } .s2 { left: calc(50% - 4px); animation-delay: .4s !important; } .s3 { left: calc(50% + 14px); animation-delay: .8s !important; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px) scaleX(1.6); } }
.lines.readonly { margin-top: 10px; }
.track-card .btn { margin-top: 10px; }

/* ---------- staff: KDS / manager ---------- */
body.kds-body { background: #0d0907; color: #f5ebe6; }
.kds-head { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid #2a1f1b; flex-wrap: wrap; }
.kds-brand { font: 400 30px var(--serif); } .kds-brand small { font: 700 12px var(--sans); color: #a8968e; text-transform: uppercase; letter-spacing: .14em; margin-left: 6px; }
.kds-stats { display: flex; gap: 18px; align-items: center; margin-left: auto; font-weight: 700; color: #cdbbb3; }
.kds-stats b { color: #fff; font-family: var(--mono); }
.clock { font-family: var(--mono); color: #fff; }
.conn { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; } .conn em { font-style: normal; }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: #a8a29e; }
.conn.on i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.kds-actions { display: flex; gap: 8px; } .kds-actions form { margin: 0; }
.btn-k { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #3a2c27; background: #1c1411; color: #f5ebe6; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn-k[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; min-height: calc(100svh - 70px); }
.kds-col { background: #160f0c; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; }
.kds-col h2 { margin: 2px 4px 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .14em; display: flex; justify-content: space-between; }
.kds-col h2 span { font-family: var(--mono); padding: 0 10px; border-radius: 8px; background: #2a1f1b; }
.col-received h2 { color: #93c5fd; } .col-preparing h2 { color: var(--amber); } .col-ready h2 { color: #6ee7b7; }
.tickets { display: grid; gap: 10px; align-content: start; }
.ticket { border-radius: 14px; background: #f8efe9; color: var(--ink); overflow: hidden; animation: tin .5s var(--ease); box-shadow: 0 10px 24px -14px #000; }
.ticket.flash { animation: tin .5s var(--ease), flash 1.4s 2; }
@keyframes tin { from { transform: translateY(-14px) scale(.96); opacity: 0; } }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--hot); } }
.t-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #2a1f1b; color: #fff; }
.t-head b { font: 700 18px var(--mono); }
.t-age { font: 700 14px var(--mono); padding: 2px 8px; border-radius: 8px; background: #3a2c27; }
.t-age.warn { background: var(--amber); color: #1a0f0d; } .t-age.late { background: var(--hot); animation: blink 1s infinite; }
.t-items { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; }
.t-items li { font-weight: 800; font-size: 16px; }
.t-items small { display: block; font-weight: 600; font-size: 13px; color: #7c6a64; }
.t-items .t-note { color: #e11d48; }
.t-note-order { margin: 0 12px 8px; padding: 6px 10px; border-radius: 8px; background: #fff1f2; color: #be123c; font-weight: 700; font-size: 13px; }
.t-act { display: flex; gap: 6px; padding: 0 12px 12px; }
.t-act button { flex: 1; height: 44px; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; color: #fff; }
.a-preparing { background: var(--amber) !important; color: #1a0f0d !important; } .a-ready { background: var(--green) !important; } .a-served { background: #3b82f6 !important; } .a-cancelled { background: #57534e !important; flex: 0 0 auto !important; padding: 0 12px; }
.mgr-main { padding: 18px 20px 60px; max-width: 1300px; margin: 0 auto; }
.mgr-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.mgr-kpis div { padding: 16px; border-radius: 16px; background: #160f0c; display: grid; }
.mgr-kpis small { color: #a8968e; font-weight: 700; } .mgr-kpis b { font: 400 34px var(--serif); }
.mgr-kpis b.tick { animation: tick .8s var(--ease); }
@keyframes tick { 30% { color: var(--green); transform: scale(1.06); } }
.mgr-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.mgr-card { padding: 18px; border-radius: 18px; background: #160f0c; } .mgr-card.wide { grid-column: 1 / -1; }
.mgr-card h2 { margin: 0 0 14px; font-size: 17px; } .mgr-card h2 small { color: #a8968e; font-weight: 600; }
.live-dot { color: var(--green) !important; }
.hours { display: flex; align-items: end; gap: 6px; height: 200px; }
.hours div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: end; }
.hours span { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--hot), #be123c); min-height: 2px; transition: height .6s var(--ease); }
.hours small { color: #a8968e; font: 600 11px var(--mono); }
.top { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: n; }
.top li { display: flex; justify-content: space-between; counter-increment: n; } .top li::before { content: counter(n); width: 22px; color: #a8968e; font-family: var(--mono); }
.top li span { flex: 1; }
.avail { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #1c1411; cursor: pointer; }
.sw input { position: absolute; opacity: 0; }
.sw-ui { width: 40px; height: 24px; border-radius: 12px; background: #3a2c27; position: relative; transition: background .2s; flex: none; }
.sw-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.sw input:checked + .sw-ui { background: var(--green); } .sw input:checked + .sw-ui::after { transform: translateX(16px); }
.sw input:focus-visible + .sw-ui { outline: 2px solid var(--amber); }
.pin-wrap { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.pin-card { width: min(360px, 100%); padding: 30px; border-radius: 24px; background: #160f0c; display: grid; gap: 12px; text-align: center; }
.pin-card h1 { margin: 0; font: 400 32px var(--serif); }
.pin-input { height: 64px; border-radius: 16px; border: 1px solid #3a2c27; background: #0d0907; color: #fff; text-align: center; font: 700 32px var(--mono); letter-spacing: .5em; }

@media (max-width: 900px) { .kds-cols { grid-template-columns: 1fr; } .mgr-kpis { grid-template-columns: 1fr 1fr; } .mgr-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
