:root {
  --red: #b3141c;
  --red-deep: #7c0d13;
  --red-ink: #5a090e;
  --gold: #f4b63f;
  --gold-soft: #ffe2a3;
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #2b1a14;
  --muted: #7a6458;
  --line: #efdcc6;
  --ok: #1d8a4a;
  --warn-bg: #fde8e8;
  --warn: #b3141c;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(90, 9, 14, .10);
  --font: 'Nunito', system-ui, sans-serif;
  --display: 'Anton', 'Impact', sans-serif;
  --zh: 'Noto Serif TC', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--red); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); letter-spacing: .5px; color: var(--red-deep); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 800; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:active { transform: scale(.97); }
.btn-big { padding: 15px 26px; font-size: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-gold { background: var(--gold); color: var(--red-ink); box-shadow: 0 6px 0 #c98a17; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #c98a17; }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 3px 0 #c98a17; }
.btn-light { background: #fff; color: var(--red-deep); }
.btn-ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.icon-btn:hover { background: var(--gold-soft); }
.icon-btn svg, .cart-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--red-deep); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-size: 24px; letter-spacing: .5px; }
.brand-zh { font-family: var(--zh); font-size: 18px; color: var(--red); }
.status-chip { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.status-chip.open { background: #e3f6ea; color: var(--ok); }
.status-chip.closed { background: var(--warn-bg); color: var(--warn); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29, 138, 74, .5); } 50% { box-shadow: 0 0 0 6px rgba(29, 138, 74, 0); } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--red); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-weight: 800; }
.cart-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--gold); color: var(--red-ink); border-radius: 999px;
  min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.95) rotate(3deg); } }
.announcement { background: var(--gold); color: var(--red-ink); text-align: center; font-weight: 800; padding: 10px 16px; }

/* ---------- hero ---------- */
.hero { color: #fff; background:
  radial-gradient(circle at 85% 20%, rgba(244, 182, 63, .35), transparent 40%),
  radial-gradient(circle at 10% 110%, rgba(0, 0, 0, .25), transparent 50%),
  repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(255, 255, 255, .045) 22px 24px),
  linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); overflow: hidden; }
.hero-text, .hero-inner > * { min-width: 0; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 40px 16px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.hero-kicker { margin: 0; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-soft); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 112px); letter-spacing: 1px; margin: 0; }
.hero h1 .zh { font-family: var(--zh); color: var(--gold); font-size: .55em; vertical-align: middle; }
.hero-tag { font-size: 19px; opacity: .92; margin: 4px 0 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
#againBtn { flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; }
#againBtn small { font-weight: 700; opacity: .8; font-size: 14px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-logo { width: min(320px, 70%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
.lantern { position: absolute; width: 46px; height: 58px; border-radius: 45%; background: radial-gradient(circle at 50% 40%, #ffd36b, #e0471f 60%, #9c1010);
  box-shadow: 0 0 30px rgba(255, 190, 80, .6); animation: sway 4s ease-in-out infinite; transform-origin: 50% -60px; }
.lantern::before { content: ''; position: absolute; left: 50%; top: -60px; height: 60px; border-left: 2px solid rgba(255, 255, 255, .5); }
.lantern::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 4px; height: 16px; margin-left: -2px; background: var(--gold); }
.l1 { top: 30px; left: 6%; } .l2 { top: 0; right: 4%; width: 36px; height: 46px; animation-delay: -1.5s; }
@keyframes sway { 50% { transform: rotate(6deg); } }
.status-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.status-card { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 10px 14px; min-width: 210px; }
.status-card b { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.status-card .state { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.status-card.open .state { color: #b6f5cb; }
.status-card.closed .state { color: #ffd0d0; }

/* ---------- usuals ---------- */
.usuals, .menu, .info { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
.usual-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.usual { background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.usual:first-child { border-color: var(--gold); }
.usual ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.usual .meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.usual .row { display: flex; gap: 8px; margin-top: auto; }

/* ---------- menu ---------- */
.cat-bar { position: sticky; top: 61px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--cream); scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a { flex: none; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; white-space: nowrap; }
.cat-bar a.active { background: var(--red); border-color: var(--red); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 20px; }
.toolbar > * { min-width: 0; }
.toolbar input { flex: 1 1 260px; border: 2px solid var(--line); border-radius: 999px; padding: 11px 18px; font: inherit; background: #fff; }
.toolbar input:focus { border-color: var(--gold); outline: none; }
.spice-filter { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.spice-filter button { flex: none; white-space: nowrap; border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.spice-filter button[aria-checked="true"] { background: var(--red); color: #fff; }
.cat-section { margin-bottom: 28px; }
.cat-section h3 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--red-deep); display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.dish { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer; transition: transform .15s, box-shadow .15s; border: 0; padding: 0; text-align: left; }
.dish:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 14px 30px rgba(90, 9, 14, .18); }
.dish-img { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--gold-soft); }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dish:hover .dish-img img { transform: scale(1.06); }
.dish-img.art { display: grid; place-items: center; background:
  radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .15), transparent 50%),
  repeating-radial-gradient(circle at 100% 100%, transparent 0 14px, rgba(255, 255, 255, .06) 14px 16px),
  linear-gradient(135deg, var(--red), var(--red-deep)); }
.dish-img.art span { font-family: var(--zh); color: var(--gold); font-size: 44px; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); padding: 0 12px; text-align: center; line-height: 1.15; }
.dish-img.art.long span { font-size: 32px; }
.dish-img.art.drink span { font-family: var(--font); font-size: 48px; }
.num { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--red-deep); font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.dish-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish-name { font-weight: 800; line-height: 1.25; }
.dish-zh { font-family: var(--zh); color: var(--muted); font-size: 14px; }
.dish-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; color: var(--red-deep); }
.price small { font-weight: 600; color: var(--muted); }
.add-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: transform .15s; }
.dish:hover .add-btn { transform: rotate(90deg); background: var(--gold); color: var(--red-ink); }
.spice { letter-spacing: -3px; font-size: 14px; }
.no-results { text-align: center; color: var(--muted); font-size: 18px; padding: 30px; }

/* ---------- info ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.addr { font-size: 20px; font-weight: 800; margin-top: 0; }
.hours-card table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours-card th { text-align: left; font-family: var(--display); font-weight: 400; color: var(--red-deep); font-size: 20px; padding-bottom: 6px; }
.hours-card td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours-card td:last-child { text-align: right; }
.hours-card tr.today td { font-weight: 800; color: var(--red); }
.map-thumb { display: block; position: relative; border-radius: 14px; overflow: hidden; margin-top: 10px; }
.map-thumb img { height: 180px; width: 100%; object-fit: cover; }
.map-thumb span { position: absolute; bottom: 8px; left: 8px; background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 800; }
.card .btn { margin: 0 6px 6px 0; }
.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 16px 120px; border-top: 1px solid var(--line); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(43, 26, 20, .45); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 31; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 30px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: #fff; border-radius: 14px; padding: 12px; }
.line .lname { font-weight: 800; }
.line .ldetail { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.stepper { justify-self: start; display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; }
.stepper button { border: 0; background: none; width: 32px; height: 32px; font-size: 18px; font-weight: 800; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px; font-weight: 800; }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.sums { background: #fff; border-radius: 14px; padding: 12px 14px; }
.sums div { display: flex; justify-content: space-between; padding: 2px 0; }
.sums .grand { font-weight: 800; font-size: 20px; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 8px; }
.warning { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn); border-radius: 14px; padding: 12px 14px; font-weight: 800; display: flex; gap: 10px; }
.warning::before { content: '⏰'; font-size: 22px; }
.notice { background: #fff4d6; color: #7a5200; border-radius: 14px; padding: 10px 14px; font-weight: 700; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(43, 26, 20, .55); }
.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.modal-hero { position: relative; }
.modal-hero .dish-img { aspect-ratio: 16 / 9; }
.modal-close { position: absolute; top: 10px; right: 10px; background: #fff; z-index: 2; box-shadow: var(--shadow); }
.modal-content { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-content h3 { font-size: 24px; margin: 0; }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { font-weight: 800; margin-bottom: 6px; }
.opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--red); background: #fff3f3; }
.opt input { accent-color: var(--red); width: 18px; height: 18px; }
.opt .p { margin-left: auto; font-weight: 800; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 800; font-size: 14px; }
.field input, .field textarea, .field select { font: inherit; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.chips button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.error { color: var(--warn); font-weight: 800; }
.social { display: flex; flex-direction: column; gap: 8px; }
.social a { justify-content: flex-start; padding-left: 18px; }
.divider { text-align: center; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.linkish { background: none; border: 0; color: var(--red); font-weight: 800; text-decoration: underline; padding: 0; }
.wheel { font-size: 64px; text-align: center; animation: spin .9s cubic-bezier(.3, .1, .3, 1); }
@keyframes spin { from { transform: rotate(-720deg) scale(.3); } }

/* ---------- order view ---------- */
#orderView { max-width: 640px; margin: 0 auto; padding: 30px 16px; }
.order-hero { text-align: center; }
.order-code { font-family: var(--display); font-size: 54px; color: var(--red); letter-spacing: 4px; }
.steps { display: flex; justify-content: space-between; margin: 20px 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; border-top: 3px dashed var(--line); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); flex: 1; }
.step i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; }
.step.done i { background: var(--red); border-color: var(--red); color: #fff; }
.step.current i { background: var(--gold); border-color: var(--gold); animation: pulse 1.6s infinite; }

/* ---------- toast & confetti ---------- */
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-weight: 800; z-index: 60; transition: transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.flyer { position: fixed; z-index: 70; font-size: 28px; pointer-events: none; transition: transform .7s cubic-bezier(.5, -.4, .7, 1), opacity .7s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 14px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.mobile-cart { display: none; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-art { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .status-chip { font-size: 12px; padding: 5px 10px; }
  #cartTotal { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .dish-img.art span { font-size: 34px; }
  .mobile-cart { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; }
  .mobile-cart .btn { width: 100%; box-shadow: 0 10px 30px rgba(90, 9, 14, .35); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
