:root {
  color-scheme: light;
  --paper: #f8f1e7;
  --ink: #2a1d17;
  --muted: #745b4e;
  --accent: #a63120;
  --line: #e4d6c7;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button, .choice { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible + span { outline: 2px solid #bd6a3b; outline-offset: 4px; }
h1, h2, p, dl, dd { margin: 0; }
.store { width: min(1100px, 100% - 48px); margin: auto; padding-bottom: 42px; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.moon { background: var(--accent); color: #fff3df; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 25px/1 Georgia, serif; }
.store-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.store-label i { background: #a63120; width: 6px; height: 6px; border-radius: 50%; }
.hero {
  isolation: isolate; position: relative; display: flex; align-items: center;
  min-height: 305px; overflow: hidden; border-radius: 24px; color: #fff4e4;
  background: #231a17;
}
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 36%; background: url("./assets/soft-light/chicken-0.webp") 55% 51% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #231a17 10%, #231a17 32%, #231a1766 60%, #231a1700 80%); }
.hero-copy { padding: 32px 46px; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 66px)/1.15 "Songti SC", "Noto Serif CJK SC", "SimSun", serif; letter-spacing: .03em; }
.hero-action { margin-top: 24px; border: 0; border-radius: 99px; background: #fff1dd; padding: 11px 15px; min-height: 44px; color: #4b2417; font-size: 13px; font-weight: 750; }
.hero-action span, .primary span { margin-left: 5px; }
.catalog { margin-top: 31px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.catalog-head h2 { font-size: 24px; letter-spacing: .03em; }
#dish-count { font-size: 12px; color: var(--muted); }
.categories { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 13px -4px 16px; padding: 4px; }
.categories button { flex: none; padding: 8px 15px; min-height: 41px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 13px; }
.categories button[aria-pressed="true"] { background: var(--ink); color: #fff4e6; border-color: var(--ink); }
.dishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dish { width: 100%; text-align: left; border: 1px solid var(--line); background: #fffbf5; padding: 0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) { .dish:hover { transform: translateY(-3px); box-shadow: 0 7px 18px #3f210e17; } }
.dish img { display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; background: #382317; }
.dish-copy { padding: 12px; width: 100%; display: grid; gap: 5px; flex: 1; }
.dish-name { font-size: 17px; font-weight: 800; }
.dish-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.dish-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
.price { color: var(--accent); font-size: 17px; font-weight: 800; }
.price small { font-weight: 500; font-size: 11px; margin-left: 4px; }
.add { background: var(--accent); color: #fff7ec; font-size: 21px; line-height: 1; border-radius: 50%; width: 29px; height: 29px; display: grid; place-items: center; }

dialog { width: min(100% - 28px, 480px); max-height: 94dvh; padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: #fffbf5; box-shadow: 0 12px 60px #1d0e0c55; }
dialog::backdrop { background: #20130dc0; }
.sheet { position: relative; padding: 22px; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding-right: 35px; margin-bottom: 18px; }
.sheet-head img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: #382317; }
.sheet-head h2 { font-size: 21px; }
.sheet-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.icon-button { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: transparent; width: 44px; height: 44px; padding: 0; font-size: 27px; line-height: 1; }
.close { position: absolute; right: 13px; top: 13px; border: 0; background: #f2e7dc; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
legend { font-weight: 750; font-size: 14px; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: block; padding: 10px 13px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.choice input:checked + span { background: #f9e8db; color: #8c291b; border-color: #a63120; }
.sheet-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.sheet-footer strong { color: var(--accent); display: block; font-size: 24px; line-height: 1.05; }
.sheet-footer small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.primary { border: 0; border-radius: 12px; background: var(--accent); color: #fff9ef; min-height: 46px; padding: 10px 17px; font-weight: 750; font-size: 14px; }
.primary:hover, .add:hover { background: #8c291b; }

.tasting { min-height: 100dvh; color: #fff1e0; background: radial-gradient(ellipse at 50% 34%, #3b2c25, #201815 72%); padding-bottom: max(26px, env(safe-area-inset-bottom)); touch-action: manipulation; }
.taste-head { width: min(680px, 100% - 40px); margin: auto; padding: max(14px, env(safe-area-inset-top)) 0 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.taste-head .icon-button { border-color: #ffffff45; }
.taste-brand { color: #f0c3a1; font-size: 14px; font-weight: 700; letter-spacing: .09em; }
.sound { justify-self: end; min-height: 44px; border: 1px solid #ffffff45; border-radius: 99px; background: transparent; padding: 0 11px; font-size: 12px; }
.table { width: min(100% - 36px, 540px); margin: auto; display: grid; justify-items: center; text-align: center; }
.serving { margin: 10px 0 15px; }
.serving h1 { font: 800 clamp(25px, 6vw, 35px)/1.25 "Songti SC", "SimSun", serif; }
.serving p { color: #dfbca4; font-size: 13px; margin-top: 7px; }
.plate { width: min(100%, 48dvh, 440px); aspect-ratio: 1; padding: 0; position: relative; overflow: hidden; border: 1px solid #be886c44; border-radius: 28px; background: #322117; box-shadow: 0 14px 42px #130a07a0; }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bite-ripple { position: absolute; left: var(--bite-x, 50%); top: var(--bite-y, 50%); width: 40px; height: 40px; border: 2px solid #fff0ceba; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); pointer-events: none; }
.plate.bitten .bite-ripple { animation: ripple .3s ease-out; }
@keyframes ripple { from { opacity: .95; scale: .35; } to { opacity: 0; scale: 1.6; } }
.taste-progress { margin: 21px 0 0; }
#remaining { font-size: 19px; font-weight: 750; }
.progress-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 12px; }
.progress-dots i { border-radius: 50%; width: 7px; height: 7px; background: #eeab76; }
.progress-dots .done { background: #765443; }
.tap-tip { color: #dfbca4; font-size: 13px; }
.tasting.finished .plate { width: min(54%, 175px); border-radius: 18px; cursor: default; }
.tasting.finished .serving { display: none; }
.receipt { margin: 18px 0 0; width: min(100%, 390px); color: var(--ink); background: #fff5e5; border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px #130a0750; }
.receipt-mark { display: grid; place-items: center; margin: 0 auto 8px; width: 36px; height: 36px; border-radius: 50%; color: var(--accent); background: #f8dfca; }
.receipt h2 { font-size: 24px; }
#receipt-order { margin: 6px 0 15px; font-size: 13px; color: var(--muted); }
.totals { display: grid; grid-template-columns: 1fr 1fr; padding: 13px 0; border-block: 1px dashed #dac2a9; }
.totals div + div { border-left: 1px solid var(--line); }
.totals dt { color: var(--muted); font-size: 12px; }
.totals dd { color: var(--accent); font-size: 25px; font-weight: 800; }
.totals small { font-size: 12px; }
.receipt-note { margin: 11px 0 14px; font-size: 11px; color: var(--muted); }
.receipt .primary { width: 100%; }

@media (max-width: 760px) {
  .store { width: min(570px, 100% - 32px); }
  .masthead { min-height: 62px; padding-top: env(safe-area-inset-top); }
  .hero { min-height: clamp(184px, 52vw, 260px); border-radius: 18px; }
  .hero-copy { padding: 20px 18px; }
  .hero h1 { font-size: clamp(30px, 8vw, 49px); }
  .hero::before { left: 28%; background-position: 55% 50%; }
  .hero::after { background: linear-gradient(90deg, #231a17 7%, #231a17 27%, #231a1775 62%, #231a1700 95%); }
  .hero-action { margin-top: 13px; padding-inline: 11px; font-size: 12px; }
  .catalog { margin-top: 23px; }
  .catalog-head h2 { font-size: 21px; }
  .categories { flex-wrap: wrap; gap: 6px; }
  .categories button { padding-inline: 12px; }
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dish-copy { padding: 9px; }
  .dish-name { font-size: 15px; }
  .dish-desc { font-size: 11px; }
  dialog { margin: auto auto 0; width: min(100%, 520px); max-width: none; border-radius: 22px 22px 0 0; }
  .sheet { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .plate { width: min(100%, 58dvh); border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
