/* Neon Broth: a 2089 drone noodle bar. Dark = wet asphalt at night, light = dawn after the rain. */
:root { color-scheme: dark; --c: 10px; --font: 'Chakra Petch', system-ui, sans-serif; --neon: 'Tilt Neon', 'Chakra Petch', sans-serif; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1220; --bg-2: #0d1628; --panel: #111b2e; --panel-2: #16223a; --raise: #1b2944;
  --ink: #e9eefb; --muted: #a3afcb; --faint: #7c88a6;
  --line: rgba(34, 230, 255, .32); --line-soft: rgba(233, 238, 251, .11);
  --magenta: #ff2e88; --cyan: #22e6ff; --amber: #ffb547; --on-accent: #0a1220;
  --field: #0d1628; --danger: #ff7a98; --ok: #5cf2b0; --focus: #22e6ff; --tint-m: rgba(255, 46, 136, .12); --tint-c: rgba(34, 230, 255, .08); --tint-a: rgba(255, 181, 71, .1);
  --wallet-bg: #e9eefb; --wallet-ink: #0a1220;
  --sky-1: #02050c; --sky-2: #0a1330; --sky-3: #2b1442;
  --bld-1: #04070e; --bld-2: #080e1f; --bld-3: #111a36;
  --street-1: #0b1226; --street-2: #04070e; --rain: rgba(175, 215, 255, .62); --steam: #e6efff;
  --bowl-1: #2c3250; --bowl-2: #0e111d; --bowl-rim: #3c4466; --broth-1: #f0a347; --broth-2: #7a2f10;
  --counter-1: #1d2540; --counter-2: #0d1222; --sign-ink: #fff;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e3e6e8; --bg-2: #d8dde1; --panel: #f4f5f6; --panel-2: #eceef0; --raise: #ffffff;
  --ink: #141b29; --muted: #46516a; --faint: #5d6880;
  --line: rgba(0, 104, 125, .45); --line-soft: rgba(20, 27, 41, .14);
  --magenta: #c0105f; --cyan: #00687d; --amber: #8a4b00; --on-accent: #ffffff;
  --field: #ffffff; --danger: #b3123e; --ok: #0d7a4f; --focus: #00687d; --tint-m: rgba(192, 16, 95, .08); --tint-c: rgba(0, 104, 125, .08); --tint-a: rgba(138, 75, 0, .08);
  --wallet-bg: #141b29; --wallet-ink: #ffffff;
  --sky-1: #aebfd0; --sky-2: #dfd5d0; --sky-3: #f4d6bf;
  --bld-1: #4e5c70; --bld-2: #7d8ca0; --bld-3: #a4b0be;
  --street-1: #8f9cab; --street-2: #c3cad1; --rain: rgba(55, 70, 92, .55); --steam: #ffffff;
  --bowl-1: #ffffff; --bowl-2: #c9d1da; --bowl-rim: #f5f7f9; --broth-1: #e9a44c; --broth-2: #9a4a18;
  --counter-1: #6a7789; --counter-2: #556275; --sign-ink: #141b29;
  --shadow: 0 24px 60px rgba(20, 27, 41, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--panel); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { --bc: var(--cyan); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 600 16px/1.1 var(--font); letter-spacing: .01em; text-decoration: none; border: 0; background: none; color: var(--ink);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background-color .15s, color .15s, filter .15s; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -5px; }
.btn-primary { background: var(--magenta); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.12) saturate(1.1); }
.btn-primary:focus-visible { outline-color: var(--on-accent); }
.btn-primary:disabled { filter: grayscale(.8); opacity: .6; cursor: not-allowed; }
.btn-ghost { color: var(--cyan); min-height: 44px; padding: 0 18px;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + .6px), transparent calc(50% + .6px)) 0 0 / var(--c) var(--c) no-repeat,
    linear-gradient(135deg, transparent calc(50% - .6px), var(--bc) calc(50% - .6px) calc(50% + 1px), transparent calc(50% + 1px)) 100% 100% / var(--c) var(--c) no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--bc); }
.btn-ghost:hover { background-color: var(--tint-c); }
.btn-text { background: none; color: var(--muted); clip-path: none; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: var(--ink); }
.btn-wide { flex: 1; width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink); border-radius: 2px; }
.icon-btn:hover { background: var(--tint-c); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .ico-moon, :root[data-theme="light"] .ico-sun { display: none; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 400 22px/1 var(--neon); white-space: nowrap; }
.mark-glyph { width: 28px; height: 28px; fill: none; stroke: var(--magenta); stroke-width: 2; stroke-linecap: round; }
:root[data-theme="dark"] .mark-glyph { filter: drop-shadow(0 0 4px rgba(255, 46, 136, .7)); }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; padding: 10px 12px; font-weight: 500; }
.topnav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 0;
  background: var(--panel-2); color: var(--ink); font-weight: 600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.cart-btn:hover { background: var(--raise); }
.cart-btn:focus-visible { outline-offset: -4px; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.badge { min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--magenta); color: var(--on-accent);
  font: 700 13px/1 var(--font); font-variant-numeric: tabular-nums; border-radius: 12px; }
.badge.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.order-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--tint-c);
  color: var(--ink); font-weight: 600; font-size: 14px; border-radius: 22px; font-variant-numeric: tabular-nums; }
.order-chip-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.order-chip-dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.hero { position: relative; height: calc(100svh - 64px); min-height: 640px; max-height: 920px; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-3) 60%, var(--street-1) 60%, var(--street-2)); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, rgba(0, 0, 0, .16) 1px 3px),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .45)); }
:root[data-theme="light"] .hero::after { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, rgba(20, 27, 41, .025) 1px 3px),
  radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(20, 27, 41, .16)); }
.hero-inner { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  grid-template-rows: auto 1fr auto; padding: clamp(40px, 9vh, 104px) clamp(20px, 6vw, 96px) clamp(40px, 8vh, 80px); }
.sign { grid-column: 1 / -1; grid-row: 1; justify-self: start; font: 400 clamp(76px, 11.6vw, 184px)/.86 var(--neon); letter-spacing: .005em; }
.tube { --g: 1; display: inline-block; }
:root[data-theme="dark"] .tube[data-tube="0"] { --hue: var(--magenta); --core: #fff0f7; --glass: #3a1f31; }
:root[data-theme="dark"] .tube[data-tube="1"] { --hue: var(--cyan); --core: #effdff; --glass: #17323c; }
:root[data-theme="dark"] .tube {
  color: color-mix(in srgb, var(--core) calc(var(--g) * 100%), var(--glass));
  text-shadow:
    0 0 1px color-mix(in srgb, var(--core) calc(var(--g) * 100%), transparent),
    0 0 6px color-mix(in srgb, var(--hue) calc(var(--g) * 100%), transparent),
    0 0 16px color-mix(in srgb, var(--hue) calc(var(--g) * 95%), transparent),
    0 0 38px color-mix(in srgb, var(--hue) calc(var(--g) * 70%), transparent),
    0 0 80px color-mix(in srgb, var(--hue) calc(var(--g) * 50%), transparent),
    0 2px 0 rgba(0, 0, 0, .5);
}
:root[data-theme="light"] .tube[data-tube="0"] { color: var(--magenta); text-shadow: 1px 1px 0 #8e0b47, 2px 2px 0 #8e0b47, 3px 3px 0 #6b0835, 4px 4px 0 #6b0835, 6px 10px 16px rgba(20, 27, 41, .28); }
:root[data-theme="light"] .tube[data-tube="1"] { color: var(--cyan); text-shadow: 1px 1px 0 #004c5c, 2px 2px 0 #004c5c, 3px 3px 0 #003a47, 4px 4px 0 #003a47, 6px 10px 16px rgba(20, 27, 41, .28); }
.bowl-spot { grid-column: 2; grid-row: 3; justify-self: center; align-self: end; width: clamp(150px, 15vw, 230px); aspect-ratio: 1.15; margin-bottom: 2vh; }
.hero-panel { grid-column: 1; grid-row: 3; align-self: end; max-width: 540px; padding: 22px 24px 24px;
  background: color-mix(in srgb, var(--panel) 74%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-left: 3px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 46ch; }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 20px; }
.hero-note { color: var(--muted); font-size: 14px; }

/* ---------- menu ---------- */
.menu { padding: 96px 0 104px; position: relative; }
.menu::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 320px; pointer-events: none;
  background: radial-gradient(60% 100% at 20% 0, var(--tint-m), transparent 70%); }
.menu-head { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 48px; }
.menu-head h2, .shows h2 { font: 400 clamp(40px, 5vw, 60px)/1 var(--neon); letter-spacing: .005em; }
.menu-head p { color: var(--muted); max-width: 52ch; padding-bottom: 6px; }
.tabs { position: relative; display: flex; gap: 4px; margin-top: 40px; }
.tab { position: relative; min-height: 52px; padding: 0 22px; border: 0; background: transparent; color: var(--muted); font: 600 17px/1 var(--font);
  display: inline-flex; align-items: center; gap: 10px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.tab:hover { color: var(--ink); background: var(--tint-c); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--panel); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: var(--c); right: 0; top: 0; height: 3px; background: var(--magenta); }
:root[data-theme="dark"] .tab[aria-selected="true"]::after { box-shadow: 0 0 12px var(--magenta), 0 0 2px var(--magenta); }
.tab:focus-visible { outline-offset: -4px; }
.tab-count { font-size: 13px; color: var(--amber); font-variant-numeric: tabular-nums; }
.board { position: relative; background: var(--panel); border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.board::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, var(--magenta), var(--cyan) 55%, transparent); opacity: .7; }
/* menu cards: every photo one size (4:3, cover), in a neon-edged frame */
.items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.item { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); min-width: 0; }
.item-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--bg-2); border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 28px -14px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .item-photo { box-shadow: 0 0 0 1px rgba(34, 230, 255, .45), 0 0 22px -8px rgba(34, 230, 255, .7), 0 18px 30px -16px rgba(255, 46, 136, .55); }
.item-photo img, .bowl-photo, .k-photo, .kstep-pic img, .line-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-photo img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.item:hover .item-photo img { transform: scale(1.045); }
/* a light neon grade over the photo: magenta in one corner, cyan in the other, real food in the middle */
.item-photo::after, .bowl-frame::before, .k-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 46, 136, .16), transparent 32%, transparent 70%, rgba(34, 230, 255, .14)); }
:root[data-theme="light"] .item-photo::after, :root[data-theme="light"] .bowl-frame::before, :root[data-theme="light"] .k-frame::after { background: linear-gradient(135deg, rgba(192, 16, 95, .08), transparent 30%, transparent 72%, rgba(0, 104, 125, .08)); }
.item-text h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.item-text p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.item-text .item-tags { color: var(--faint); font-size: 13px; font-weight: 500; margin-top: 6px; }
.item-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-size: 20px; font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums; }
.photo-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- what this shows ---------- */
.shows { padding: 96px 0 112px; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.shows-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; }
.shows-intro { color: var(--muted); margin-top: 16px; max-width: 36ch; }
.shows-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.shows-list li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.5; }
.shows-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); }
.shows-list strong { color: var(--ink); font-weight: 600; }
.foot { padding: 36px 0 96px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--panel); max-width: 100vw; }
dialog::backdrop { background: rgba(3, 6, 14, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
:root[data-theme="light"] dialog::backdrop { background: rgba(40, 48, 64, .4); }
.sheet { margin: 0 0 0 auto; width: min(480px, 100vw); height: 100dvh; max-height: 100dvh; box-shadow: var(--shadow); border-left: 1px solid var(--line); }
.sheet[open] { animation: sheet-in .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { transform: translateX(48px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line-soft); flex: none; }
.sheet-title { font: 600 22px/1.2 var(--font); }
.sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 26px; }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--panel-2); }
.field-group > legend, .field-group > label, .heat-row label, .drop label, .custom-tip label, .field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
/* customise sheet: the photo reacts to what you pick */
/* the photo sits between the header and the scrolling options, so every tick shows on it */
.bowl-stage { position: relative; flex: none; padding: 16px 38px 14px 24px; border-bottom: 1px solid var(--line-soft); }
.bowl-stage .bowl-stack .ghost { left: 24px; right: 38px; top: 16px; bottom: 14px; }
.bowl-stage .qty-badge { right: 14px; top: 6px; }
.bowl-stage .toppings { left: 24px; right: 38px; bottom: 24px; }
.bowl-stage .broth-tag { left: 34px; top: 26px; }
.bowl-frame { position: relative; z-index: 2; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line), 0 16px 30px -12px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .bowl-frame { box-shadow: 0 0 0 1px rgba(255, 46, 136, .55), 0 0 28px -6px rgba(255, 46, 136, .6), 0 16px 30px -12px rgba(0, 0, 0, .7); }
.bowl-frame::before { z-index: 1; }
.bowl-glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 16, .35), transparent 30%, transparent 55%, rgba(5, 8, 16, .6)); }
.bowl-frame.splash::after { content: ''; position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%;
  border: 2px solid var(--cyan); opacity: 0; animation: splash .65s ease-out; pointer-events: none; }
@keyframes splash { from { transform: scale(.3); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.bowl-stack .ghost { position: absolute; z-index: 1; left: 0; right: 14px; top: 14px; bottom: 0; border-radius: 2px; background: var(--panel-2) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line); filter: brightness(.62) saturate(.85); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.bowl-stage[data-qty="2"] .g1, .bowl-stage[data-qty="3"] .g1 { opacity: 1; transform: translate(11px, -8px); }
.bowl-stage[data-qty="3"] .g2 { opacity: .85; transform: translate(22px, -15px); }
.bowl-stage[data-qty="3"] .g1 { z-index: 1; }
.bowl-stage[data-qty="3"] .g2 { z-index: 0; }
.qty-badge { position: absolute; z-index: 4; right: 0; top: 0; min-width: 48px; height: 34px; padding: 0 12px; display: grid; place-items: center; border-radius: 17px;
  background: var(--magenta); color: var(--on-accent); font: 700 17px/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.broth-tag { position: absolute; z-index: 3; left: 10px; top: 24px; display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 28px;
  background: color-mix(in srgb, var(--panel) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); max-width: calc(100% - 90px); }
.broth-tag.no-pic { padding-left: 14px; }
.broth-tag img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.broth-tag.no-pic img { display: none; }
.broth-tag small { display: block; font-size: 12px; line-height: 1.2; color: var(--muted); font-weight: 500; }
.broth-tag strong { display: block; font-size: 15px; line-height: 1.25; font-weight: 600; }
.toppings { position: absolute; z-index: 3; left: 0; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 8px; padding: 0 10px; pointer-events: none; }
.topping { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .topping { border-color: var(--cyan); box-shadow: 0 0 12px rgba(34, 230, 255, .55), 0 6px 14px rgba(0, 0, 0, .6); }
.item-intro { display: flex; flex-direction: column; gap: 6px; }
.item-desc { color: var(--muted); font-size: 15px; }
.item-base { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-note { color: var(--faint); font-size: 13px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt, .seg-opt, .chip, .addon { position: relative; display: flex; cursor: pointer; }
.opt input, .seg-opt input, .chip input, .addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 12px; background: var(--field); border: 1px solid var(--line-soft); border-radius: 2px; font-weight: 500; font-size: 15px; line-height: 1.25; }
.opt small, .seg-opt small { color: var(--muted); font-size: 13px; font-weight: 500; }
.opt input:checked + span, .seg-opt input:checked + span { border-color: var(--magenta); background: var(--tint-m); box-shadow: inset 3px 0 0 var(--magenta); }
.opt input:focus-visible + span, .seg-opt input:focus-visible + span, .chip input:focus-visible + span, .addon input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt:hover span, .seg-opt:hover span { border-color: var(--line); }

.heat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.heat-row label { margin: 0; }
.heat-readout { font-weight: 700; font-size: 16px; color: var(--heat, var(--amber)); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 4px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--amber), var(--magenta)); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; background: var(--ink); border: 3px solid var(--magenta);
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%); }
input[type="range"]::-moz-range-track { height: 6px; background: linear-gradient(90deg, var(--amber), var(--magenta)); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--ink); border: 3px solid var(--magenta); border-radius: 0; }
.heat-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 4px; }
.heat-bar span { height: 8px; background: var(--line-soft); transform: skewX(-20deg); transition: background-color .15s, box-shadow .15s; }
.heat-bar span.on { background: var(--heat, var(--amber)); }
:root[data-theme="dark"] .heat-bar span.on { box-shadow: 0 0 8px var(--heat, var(--amber)); }

.addon-list { display: flex; flex-direction: column; }
.addon { align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line-soft); }
.addon .box { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--muted); display: grid; place-items: center; border-radius: 2px; }
.addon .box svg { width: 16px; height: 16px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.addon input:checked + .box { background: var(--cyan); border-color: var(--cyan); }
.addon input:checked + .box svg { opacity: 1; }
.addon-pic { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-soft); }
.addon input:checked ~ .addon-pic { box-shadow: 0 0 0 2px var(--cyan); }
.addon .nm { flex: 1; font-weight: 500; }
.addon .pr { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }

.stepper { display: inline-flex; align-items: center; background: var(--field); border: 1px solid var(--line-soft); flex: none; }
.stepper .step { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.stepper .step:hover { background: var(--tint-c); }
.stepper .step:focus-visible { outline-offset: -3px; }
.stepper .step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.small .step { width: 44px; height: 44px; }

/* fly-to-cart */
.fly { position: fixed; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 2147483600; pointer-events: none; overflow: hidden;
  background: var(--panel); border: 2px solid var(--magenta); border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .fly { box-shadow: 0 0 18px var(--magenta), 0 0 40px rgba(255, 46, 136, .5); }
.fly img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-btn.pulse { animation: cart-pulse .75s ease-out; }
@keyframes cart-pulse { 0% { background-color: var(--panel-2); } 25% { background-color: color-mix(in srgb, var(--magenta) 38%, var(--panel-2)); } 100% { background-color: var(--panel-2); } }

/* ---------- cart ---------- */
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--muted); padding-top: 8px; }
#cart-full { display: flex; flex-direction: column; gap: 26px; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.line:first-child { padding-top: 6px; }
.line-photo { position: relative; width: 72px; height: 54px; grid-row: span 2; align-self: start; border-radius: 2px; overflow: visible; }
.line-photo img { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.line-qty { position: absolute; right: -6px; top: -6px; min-width: 24px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px;
  background: var(--magenta); color: var(--on-accent); font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.line.fresh { animation: line-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.line.fresh .line-photo { animation: photo-in .7s cubic-bezier(.2, .9, .25, 1.2) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes photo-in { from { opacity: 0; transform: translate(60px, -50px) scale(.35) rotate(14deg); } }
.line-name { font-weight: 600; line-height: 1.3; }
.line-opts { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.line-price { font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums; text-align: right; }
.line-ctl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-remove { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.line-remove:hover { color: var(--danger); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: 10px 14px; background: var(--field); border: 1px solid var(--line-soft); border-radius: 2px; }
.drop, .custom-tip { margin-top: 14px; }
.drop-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-grid; place-items: center; min-height: 44px; min-width: 64px; padding: 0 14px; background: var(--field); border: 1px solid var(--line-soft); border-radius: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip:hover span { border-color: var(--line); }
.chip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: var(--on-accent); }
input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; font-size: 16px; background: var(--field); border: 1px solid var(--line-soft); border-radius: 2px; color: var(--ink); }
input[type="text"]:hover { border-color: var(--line); }
input[type="text"]:focus { border-color: var(--cyan); outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger) !important; }
input::placeholder { color: var(--faint); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { text-transform: uppercase; }
.promo-msg { margin-top: 8px; font-size: 14px; color: var(--muted); }
.promo-msg.ok { color: var(--ok); font-weight: 600; }
.promo-msg.bad { color: var(--danger); font-weight: 600; }
.sums { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; font-variant-numeric: tabular-nums; }
.sums dt { color: var(--muted); }
.sums dd { text-align: right; padding-left: 16px; }
.sums .disc { color: var(--ok); }
.sums .total { font-weight: 700; font-size: 20px; color: var(--ink); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-soft); }

/* ---------- checkout ---------- */
.checkout { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.checkout[open] { animation: pop-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop-in { from { transform: translateY(16px) scale(.985); opacity: 0; } }
.co-head { position: sticky; top: 0; z-index: 2; background: var(--panel); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px 32px 32px; align-items: start; }
.co-card-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.card-stage { perspective: 1400px; }
.card3d { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1); --art: linear-gradient(135deg, #2a0f3d, #0a1a3a 55%, #05303d); }
.card3d.flipped { transform: rotateY(180deg); }
.card3d[data-brand="visa"] { --art: linear-gradient(135deg, #1b1060, #0c2a6b 55%, #3a0f52); }
.card3d[data-brand="mastercard"] { --art: linear-gradient(135deg, #3d1206, #5a1838 55%, #1f0b2d); }
.card3d[data-brand="amex"] { --art: linear-gradient(135deg, #033a3f, #0a4f5c 55%, #0b2034); }
.card3d[data-brand="discover"] { --art: linear-gradient(135deg, #3a2205, #4a1a10 55%, #1a1020); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; overflow: hidden; color: #f4f7ff;
  background: radial-gradient(circle at 88% 12%, rgba(255, 46, 136, .5), transparent 42%), radial-gradient(circle at 8% 100%, rgba(34, 230, 255, .4), transparent 50%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 10px), var(--art);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.card-front { padding: 7% 7.5%; display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.card-bank { font: 400 20px/1 var(--neon); letter-spacing: .02em; opacity: .9; }
.card-brand { font-weight: 700; font-size: 15px; padding: 5px 10px; background: rgba(255, 255, 255, .14); border-radius: 4px; transition: background-color .2s; }
.card-chip { margin-top: 9%; width: 15%; aspect-ratio: 1.35; border-radius: 6px; background: linear-gradient(135deg, #f7d58b, #b98a32 60%, #f2cf7e); position: relative; overflow: hidden; }
.card-chip i { position: absolute; left: 0; right: 0; height: 1px; background: rgba(80, 50, 10, .5); }
.card-chip i:nth-child(1) { top: 33%; } .card-chip i:nth-child(2) { top: 66%; } .card-chip i:nth-child(3) { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; }
.card-number { margin-top: auto; font-size: clamp(18px, 2.2vw, 25px); font-weight: 500; letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.card-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 6%; }
.card-bottom small { display: block; font-size: 11px; opacity: .75; font-weight: 500; }
.card-bottom span { display: block; font-weight: 600; font-size: 15px; letter-spacing: .04em; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-field] { border-radius: 4px; transition: box-shadow .2s; }
[data-field].on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 0 16px rgba(34, 230, 255, .6); }
.card-back { transform: rotateY(180deg); }
.card-stripe { height: 20%; margin-top: 8%; background: #05060a; }
.card-sig { display: flex; align-items: center; gap: 12px; margin: 7% 7% 0; }
.sig-lines { flex: 1; height: 42px; background: repeating-linear-gradient(170deg, #e9ecf3 0 6px, #cfd5e2 6px 9px); border-radius: 3px; }
.card-cvc { min-width: 64px; height: 42px; display: grid; place-items: center; background: #fff; color: #10131c; font-weight: 700; font-size: 18px; letter-spacing: .1em; }
.card-fine { position: absolute; left: 7%; bottom: 8%; font-size: 12px; opacity: .7; }
.demo-notice { padding: 14px 16px; background: var(--tint-a); border-left: 3px solid var(--amber); font-size: 15px; line-height: 1.5; }
.demo-notice strong { color: var(--amber); }
.co-form { display: flex; flex-direction: column; gap: 16px; }
.btn-wallet { background: var(--wallet-bg); color: var(--wallet-ink); width: 100%; }
.btn-wallet svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-wallet small { font-weight: 500; opacity: .75; font-size: 14px; }
.btn-wallet:focus-visible { outline-color: var(--wallet-ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.field label { margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { min-height: 0; color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 6px; }
.err:empty { display: none; }
.sums-compact { padding: 16px 0 4px; border-top: 1px solid var(--line-soft); }

.processing { min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px; text-align: center; }
.proc-ring { width: 140px; height: 140px; }
.proc-track { fill: none; stroke: var(--line-soft); stroke-width: 4; }
.proc-arc { fill: none; stroke: var(--magenta); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 80 235; transform-origin: 60px 60px; animation: spin 1s linear infinite; }
:root[data-theme="dark"] .proc-arc { filter: drop-shadow(0 0 6px var(--magenta)); }
.proc-bowl { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.proc-step { font-size: 22px; font-weight: 600; }
.proc-note { color: var(--muted); }

.done-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; padding: 28px 32px 36px; align-items: start; }
.receipt { --zz: 14px; background: #eef0f3; color: #161b26; padding: 34px 26px; font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .3)); }
.rc-head { text-align: center; padding-bottom: 14px; border-bottom: 2px dashed #b9c0cc; }
.rc-brand { font: 400 30px/1 var(--neon); color: #b0105a; }
.rc-sub { font-size: 13px; color: #4b5466; margin-top: 6px; }
.rc-order { font-size: 20px; font-weight: 700; margin-top: 16px; }
.rc-meta { font-size: 13px; color: #4b5466; margin-top: 2px; }
.rc-lines { margin-top: 14px; padding-top: 12px; border-top: 1px solid #cdd3dc; display: flex; flex-direction: column; gap: 10px; }
.rc-lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 15px; }
.rc-lines small { grid-column: 1; color: #4b5466; font-size: 12.5px; line-height: 1.35; }
.rc-sums { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #b9c0cc; font-size: 15px; }
.rc-sums dd { text-align: right; padding-left: 12px; }
.rc-sums .total { font-size: 19px; font-weight: 700; padding-top: 8px; border-top: 1px solid #cdd3dc; margin-top: 4px; }
.rc-paid { margin-top: 14px; font-size: 13.5px; color: #2d3445; }
.rc-fine { margin-top: 4px; font-size: 12.5px; color: #4b5466; }

.tracker { display: flex; flex-direction: column; gap: 22px; }
.trk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trk-title { font: 400 clamp(28px, 3vw, 38px)/1.05 var(--neon); }
.trk-eta { color: var(--muted); font-weight: 500; }
.trk-eta strong { font-size: 30px; color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 4px; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: st; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--faint); line-height: 1.25; }
.stage::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line-soft); z-index: 0; }
.stage:first-child::before { display: none; }
.stage[data-state="done"]::before, .stage[data-state="current"]::before { background: var(--cyan); }
.stage .node { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-soft); background: var(--panel);
  font-size: 13px; font-variant-numeric: tabular-nums; transition: background-color .3s, border-color .3s; }
.stage .node svg { width: 16px; height: 16px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-state="done"] { color: var(--muted); }
.stage[data-state="done"] .node { background: var(--cyan); border-color: var(--cyan); }
.stage[data-state="current"] { color: var(--ink); }
.stage[data-state="current"] .node { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 0 5px var(--tint-m); animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 9px transparent; } }
.trk-map { position: relative; border: 1px solid var(--line-soft); background: var(--bg-2); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.trk-map svg { width: 100%; height: auto; }
.map-block { fill: var(--panel-2); }
.map-river { fill: none; stroke: var(--tint-c); stroke-width: 18; }
.map-road { fill: none; stroke: var(--line-soft); stroke-width: 1.5; }
.map-route { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-dasharray: 4 6; }
.map-done { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round; }
:root[data-theme="dark"] .map-done { filter: drop-shadow(0 0 4px var(--cyan)); }
.map-kitchen { fill: var(--magenta); }
.map-home { fill: var(--amber); }
.map-label { fill: var(--muted); font: 600 11px var(--font); }
.map-drone { fill: var(--ink); }
.map-drone-ring { fill: none; stroke: var(--magenta); stroke-width: 1.5; }
.locker { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.qr { width: 160px; background: #fff; padding: 6px; }
.qr svg { width: 100%; height: auto; }
.locker-title { font-weight: 700; font-size: 18px; }
.locker-text { color: var(--muted); margin-top: 6px; font-size: 15px; }
.trk-note { color: var(--muted); font-size: 14px; }
.trk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rc-kitchen { width: 100%; min-height: 44px; margin-top: 16px; padding: 0 16px; border: 1.5px solid #161b26; border-radius: 2px; background: transparent; color: #161b26; font-weight: 700; }
.rc-kitchen:hover { background: #161b26; color: #eef0f3; }
.rc-kitchen:focus-visible { outline: 2px solid #0a5bd8; outline-offset: 2px; }

/* ---------- kitchen view ---------- */
.kitchen { padding: 28px 32px 36px; }
.k-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: start; }
.k-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 18px 36px -18px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .k-frame { box-shadow: 0 0 0 1px rgba(255, 46, 136, .6), 0 0 34px -8px rgba(255, 46, 136, .65), 0 18px 36px -18px rgba(0, 0, 0, .7); }
.k-live { position: absolute; z-index: 1; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 18px;
  background: var(--magenta); color: var(--on-accent); font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.k-live .live-dot { background: var(--on-accent); box-shadow: none; animation: pulse 1.4s ease-in-out infinite; }
.kitchen[data-final="true"] .k-live .live-dot { animation: none; }
.k-count { margin-top: 18px; color: var(--amber); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.k-title { font: 400 clamp(30px, 3.2vw, 42px)/1.08 var(--neon); margin-top: 4px; }
.k-text { color: var(--muted); margin-top: 8px; max-width: 54ch; }
.k-bar { position: relative; height: 10px; margin-top: 20px; overflow: hidden; background: var(--line-soft); transform: skewX(-20deg); }
.k-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width .5s linear; }
:root[data-theme="dark"] .k-bar span { box-shadow: 0 0 12px var(--magenta); }
.k-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.k-line-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.k-steps { display: flex; flex-direction: column; gap: 4px; }
.kstep { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 7px 10px 7px 7px; border-left: 3px solid transparent; transition: background-color .3s; }
.kstep-pic { position: relative; display: block; width: 84px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-soft); }
.kstep-name { display: block; font-weight: 600; line-height: 1.3; }
.kstep-time { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kstep-now { display: none; padding: 5px 10px; border-radius: 14px; background: var(--magenta); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.kstep[data-state="todo"] .kstep-name { color: var(--muted); font-weight: 500; }
.kstep[data-state="todo"] .kstep-pic img { filter: grayscale(1) brightness(.7); }
.kstep[data-state="current"] { background: var(--tint-m); border-left-color: var(--magenta); }
.kstep[data-state="current"] .kstep-pic { box-shadow: 0 0 0 2px var(--magenta); }
.kstep[data-state="current"] .kstep-now { display: inline-block; }
.kitchen[data-final="true"] .kstep[data-state="done"]:last-child .kstep-now { display: inline-block; background: var(--ok); }
.kstep[data-state="done"] .kstep-pic::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); }
.kstep[data-state="done"] .kstep-pic::before { content: ''; position: absolute; z-index: 1; right: 11px; bottom: 9px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.k-note { margin-top: 24px; color: var(--muted); font-size: 14px; }
.k-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ---------- wallet sheet ---------- */
.wallet { margin: auto auto 0; width: min(420px, 100vw); border-radius: 22px 22px 0 0; background: #f6f7fa; color: #10131c; box-shadow: 0 -20px 60px rgba(0, 0, 0, .4); }
.wallet[open] { animation: wallet-up .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes wallet-up { from { transform: translateY(60px); opacity: 0; } }
.wallet-inner { padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.wallet-grip { width: 44px; height: 5px; background: #c5cad4; border-radius: 3px; margin: 2px auto 6px; }
.wallet-title { font-size: 20px; font-weight: 700; }
.wallet-demo { font-size: 14px; color: #475066; margin-top: -8px; }
.wallet-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid #dde1e8; border-radius: 12px; }
.wallet-card strong { display: block; } .wallet-card small { color: #475066; }
.wc-art { width: 56px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, #2a0f3d, #0a1a3a 55%, #05303d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.wallet-sum { display: flex; justify-content: space-between; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.wallet-scan { height: 64px; display: grid; place-items: center; }
.wallet-scan span { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #0a7c5a; border-top-color: transparent; animation: spin .8s linear infinite; }
.wallet-status { font-weight: 600; text-align: center; color: #0a6b4d; min-height: 0; }
.wallet-status:empty { display: none; }
.wallet .btn-primary { background: #10131c; color: #fff; }
.wallet .btn-primary:focus-visible { outline-color: #fff; }
.wallet .btn-text { color: #475066; align-self: center; }
.wallet :focus-visible { outline-color: #0a5bd8; }

/* ---------- tablet + phone ---------- */
@media (max-width: 1040px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shows-grid { grid-template-columns: 1fr; }
  .co-grid, .done-grid, .k-grid { grid-template-columns: 1fr; }
  .co-card-col { position: static; }
  .card3d { margin: 0 auto; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 8px 0 12px; gap: 8px; }
  .topnav { display: none; }
  .mark { font-size: 20px; }
  .cart-label { display: none; }
  .cart-btn { padding: 0 10px; }
  .has-order .mark span { display: none; }
  .order-chip { padding: 0 12px; font-size: 13px; }
  .order-chip .order-chip-stage { display: none; }
  .wrap { padding: 0 16px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 36px 16px 28px; height: auto; min-height: 740px; }
  .sign { grid-column: 1; font-size: clamp(76px, 25vw, 112px); line-height: .9; }
  .tube { display: block; }
  .bowl-spot { grid-column: 1; grid-row: 2; justify-self: end; align-self: center; width: 150px; margin: 18px 18px 26px 0; }
  .hero-panel { grid-row: 3; padding: 18px 18px 20px; }
  .hero-status { font-size: 13px; align-items: flex-start; }
  .hero-status .live-dot { margin-top: 6px; }
  .menu { padding: 64px 0 72px; }
  .menu-head { grid-template-columns: 1fr; }
  .tabs { margin-top: 28px; gap: 2px; }
  .tab { flex: 1; padding: 0 8px; font-size: 15px; justify-content: center; }
  .tab-count { display: none; }
  .items { grid-template-columns: 1fr; }
  .item { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 14px; padding: 18px 16px; align-items: start; border-right: 0; }
  .item-photo { width: 112px; grid-row: 1 / span 2; }
  .item-buy { grid-column: 2; margin-top: 10px; }
  .item-text h3 { font-size: 18px; }
  .item-text p { font-size: 14.5px; }
  .bowl-stage { padding: 14px 28px 12px 16px; }
  .bowl-frame { aspect-ratio: 16 / 9; }
  .bowl-stage .bowl-stack .ghost { left: 16px; right: 28px; top: 14px; bottom: 12px; }
  .bowl-stage .qty-badge { right: 6px; top: 4px; }
  .bowl-stage .toppings { left: 16px; right: 28px; bottom: 20px; gap: 6px; }
  .topping { width: 46px; height: 46px; }
  .bowl-stage .broth-tag { top: 22px; left: 24px; }
  .broth-tag img { width: 38px; height: 38px; }
  .kitchen { padding: 18px 16px 28px; }
  .k-grid { gap: 26px; }
  .kstep { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .kstep-pic { width: 72px; }
  .k-actions .btn { flex: 1 1 auto; }
  .shows { padding: 64px 0 80px; }
  .shows-list { grid-template-columns: 1fr; gap: 18px; }
  .sheet { margin: auto 0 0; width: 100vw; height: auto; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
  .sheet-inner { height: auto; max-height: 92dvh; }
  .sheet-head { padding-left: 16px; }
  .sheet-body { padding: 18px 16px 24px; gap: 22px; }
  .sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .sheet-foot .btn { padding: 0 12px; font-size: 15px; }
  .checkout { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; clip-path: none; border: 0; }
  .co-grid, .done-grid { padding: 18px 16px 28px; gap: 22px; }
  .card3d { max-width: 358px; }
  .card-bank { font-size: 16px; }
  .card-number { font-size: 19px; letter-spacing: .07em; }
  .card-bottom span { font-size: 13px; }
  .card-brand { font-size: 13px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .chips { gap: 6px; flex-wrap: nowrap; }
  .chip { flex: 1 1 auto; }
  .chip span { min-width: 0; width: 100%; padding: 0 10px; }
  .receipt { padding: 30px 18px; }
  .done-grid .tracker { order: -1; }
  .stage { font-size: 12px; }
  .locker { grid-template-columns: 1fr; justify-items: start; }
  .wallet { width: 100vw; }
}
@media (max-width: 380px) {
  .sign { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .proc-arc { stroke-dasharray: 200 115; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
