:root {
  --bg: #12100f;
  --surface: #1d1a18;
  --ink: #f6f1ea;
  --muted: #b3aaa3;
  --line: #322c28;
  --accent: #e31937;
  --accent-dark: #c4122c;
  --soft: #3a221e;
  --green: #7dcea5;
  --green-soft: #173226;
  --gold: #ffc72c;
  --gold-deep: #c8922a;
  --holly: #1f8a4c;
  --holly-deep: #0e5c32;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --map: #1a2420;
  --map-road: #2c3833;
  --map-minor: #24302b;
  --scrim: rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 28% at 100% 0%, rgba(255, 199, 44, 0.28), transparent 62%),
    radial-gradient(ellipse 70% 24% at 0% 6%, rgba(227, 25, 55, 0.26), transparent 58%),
    radial-gradient(ellipse 55% 22% at 85% 24%, rgba(31, 138, 76, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 20% at 8% 42%, rgba(227, 25, 55, 0.18), transparent 58%),
    radial-gradient(ellipse 75% 22% at 92% 62%, rgba(31, 138, 76, 0.16), transparent 62%),
    radial-gradient(ellipse 50% 18% at 12% 78%, rgba(227, 25, 55, 0.16), transparent 58%),
    radial-gradient(ellipse 80% 20% at 70% 96%, rgba(255, 199, 44, 0.14), transparent 60%),
    linear-gradient(180deg, #241810 0%, #12100f 16%, #1c1216 38%, #12100f 55%, #1a160f 74%, #16110f 100%),
    repeating-linear-gradient(118deg, rgba(255, 199, 44, 0.035) 0 1px, transparent 1px 11px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 0;
}
.header::after {
  content: "";
  display: block;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #f6f1ea 14px 18px, var(--holly) 18px 32px, #f6f1ea 32px 36px);
}
.holiday-bar {
  margin: 0;
  padding: 6px 16px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #f6f1ea;
  background: linear-gradient(90deg, #7a1020, var(--accent) 42%, var(--holly-deep));
}
.holiday-bar span { color: var(--gold); }
.lights {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0 12px 8px;
  padding-top: 7px;
  border-top: 2px solid rgba(246, 241, 234, 0.35);
  pointer-events: none;
}
.lights i {
  width: 9px;
  height: 13px;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: twinkle 1.4s ease-in-out infinite;
}
.lights i:nth-child(3n) { background: var(--holly); box-shadow: 0 0 10px var(--holly); animation-delay: 0.25s; }
.lights i:nth-child(3n + 1) { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation-delay: 0.5s; }
@keyframes twinkle { 50% { opacity: 0.35; filter: saturate(0.6); } }
.grove {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 46vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grove i {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 108px solid var(--holly-deep);
  filter: drop-shadow(0 -34px 0 var(--holly)) drop-shadow(0 -62px 0 #0b3d22);
}
.grove i::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 108px;
  width: 10px;
  height: 26px;
  background: #6b3e22;
}
.grove i:nth-child(1) { left: 1%; transform: scale(1.15); }
.grove i:nth-child(2) { left: 8%; transform: scale(0.72); opacity: 0.85; }
.grove i:nth-child(3) { left: 14%; transform: scale(0.5); opacity: 0.7; }
.grove i:nth-child(4) { right: 1%; transform: scale(1.2); }
.grove i:nth-child(5) { right: 9%; transform: scale(0.78); opacity: 0.85; }
.grove i:nth-child(6) { right: 16%; transform: scale(0.48); opacity: 0.7; }
main { position: relative; z-index: 1; }
.holiday-entrance { z-index: 80; overflow: hidden; }
.holiday-entrance .snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.flake {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  margin-left: calc(var(--s) / -2);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M32 4v56M8 18l48 28M8 46l48-28'/%3E%3Cpath d='M32 14l-6 8M32 14l6 8M32 50l-6-8M32 50l6-8M16 24l8 2M16 24l2 8M48 40l-8-2M48 40l-2-8M16 40l8-2M16 40l2-8M48 24l-8 2M48 24l-2 8'/%3E%3C/g%3E%3C/svg%3E");
  opacity: var(--o);
  animation: flake-fall var(--d) linear var(--delay) 1 forwards;
}
@keyframes flake-fall {
  0% { transform: translate3d(0, -16vh, 0); }
  18% { transform: translate3d(var(--drift), 14vh, 0); }
  42% { transform: translate3d(var(--sway), 42vh, 0); }
  68% { transform: translate3d(calc(var(--drift) * -0.65), 72vh, 0); }
  100% { transform: translate3d(var(--sway), 120vh, 0); }
}
.holiday-card {
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(165deg, #9b1428, #4a0d16 58%, #123d24);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(31, 138, 76, 0.35), var(--shadow);
}
.holiday-card h2 {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 64px);
  line-height: 0.95;
  color: var(--gold);
  margin: 6px 0 12px;
}
.holiday-card p { color: #f6f1ea; }
.holiday-card .btn.primary { margin-top: 16px; }
.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.mark {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffe08a, var(--gold) 45%, var(--gold-deep));
  color: #9b1428;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.logo { font-size: 16px; min-width: 0; }
.logo .word { line-height: 1.05; color: var(--gold); }
.origin {
  margin-top: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #241c18, var(--surface));
  border: 1px solid rgba(255, 199, 44, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
}
.origin h2 { font-size: 22px; letter-spacing: -0.03em; margin: 2px 0 6px; }
.origin p { color: var(--muted); }
.origin-line { color: var(--muted); margin-top: 6px; }
.address { position: relative; flex: 0 0 auto; }
.delivery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  background: #152433;
  border: 1px solid #2c4d6e;
  border-radius: 16px;
  padding: 6px 8px 6px 12px;
}
.btn.check {
  background: #1d6fbf;
  border-color: #1d6fbf;
  color: white;
}
.btn.check:hover { background: #185fa6; border-color: #185fa6; }
.fields .delivery-bar { width: 100%; }
.fields .delivery-bar .field { flex: 1 1 180px; }
.delivery-field { display: grid; gap: 2px; font-size: 11px; font-weight: 650; color: var(--muted); flex: 1 1 180px; }
.delivery-field input { font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 10px; }
.delivery-note { margin: 0; flex: 1 1 100%; font-size: 13px; font-weight: 650; }
.delivery-note[hidden] { display: none; }
.delivery-note.ok { color: var(--green); }
.delivery-note.confirm { color: var(--ink); }
.delivery-note.out, .delivery-note.miss { color: var(--accent); }
.address-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 100%; }
.address-confirm[hidden] { display: none; }
.address-confirm .hint { color: var(--muted); font-size: 13px; font-weight: 650; }
.address-btn, .icon-btn, .cart-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  height: 44px;
}
.address-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 14px 0 36px;
  position: relative;
  line-height: 1.1;
  max-width: 180px;
}
.address-btn .pin {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}
.addr-kicker { font-size: 11px; color: var(--muted); font-weight: 600; }
.address-btn strong { font-size: 14px; }
.addr-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 50;
}
.addr-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.addr-list button span { color: var(--muted); font-size: 13px; }
.addr-list button.on, .addr-list button:hover { background: var(--soft); }
.icon-btn, .cart-btn {
  width: 44px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
}
.orders-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
  height: 44px;
  display: grid;
  place-items: center;
}
.orders-link[aria-current="page"] { color: var(--gold); }
.count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.count[hidden] { display: none; }

.livebar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
}
.livebar strong { color: #ffd0c8; }

main { padding: 22px 0 48px; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 12px 0 8px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
h1, h2 {
  color: var(--gold);
}
h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lede { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.collage { display: grid; grid-template-columns: 1.3fr 0.9fr; grid-template-rows: 150px 150px; gap: 12px; }
.collage .photo { border-radius: 18px; height: 100%; }
.collage .photo:first-child { grid-row: span 2; }

.cuisines {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 6px;
  scrollbar-width: none;
}
.cuisines::-webkit-scrollbar { display: none; }
.chip, .btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}
.chip { white-space: nowrap; }
.chip.on, .btn.primary, .hero-actions .btn.on, .menu-nav button.on {
  background: linear-gradient(165deg, #ffe08a, var(--gold) 42%, var(--gold-deep));
  color: #1c1208;
  border-color: #ffe7a3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 16px rgba(0, 0, 0, 0.28);
}
.btn.primary:hover, .chip.on:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; border-radius: 14px; min-height: 48px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.chip:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0 18px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type="text"], input[type="search"], textarea, .field input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
select { padding: 8px 12px; border-radius: 999px; }

.block { margin-top: 8px; }
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}
.block-head h2 { font-size: 22px; letter-spacing: -0.03em; }
.row-btns { display: flex; gap: 6px; }
.row-btns button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
}
.scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { height: 0; }
.scroller .card, .scroller .dish { min-width: 240px; scroll-snap-align: start; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media { height: 156px; }
.card-media img, .photo img { transition: transform 0.45s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 12px 14px 14px; }
.card-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card h3 { font-size: 16px; letter-spacing: -0.02em; }
.rating { font-size: 13px; font-weight: 700; white-space: nowrap; }
.star { color: var(--gold); }
.meta { margin-top: 3px; color: var(--muted); font-size: 13px; }
.meta.open { color: var(--green); font-weight: 650; }
.meta.shut { color: var(--accent); font-weight: 650; }
.hint { margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
.is-closed .card-media img { filter: grayscale(0.75); }
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #1c1410;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.heart.on { color: var(--accent); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: white;
  color: #1c1410;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.badge.shut { top: auto; bottom: 10px; background: #1c1410; color: white; }

.photo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 100%;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo img[src*="sprite.jpg"] {
  object-fit: contain;
  padding: 10px;
  background: #fff;
}
.card:hover img[src*="sprite.jpg"] { transform: none; }
.ph-emoji { font-size: 40px; }

.dish {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  padding: 0 0 12px;
}
.dish .photo { height: 120px; }
.dish strong, .dish span { display: block; padding: 0 12px; }
.dish strong { margin-top: 10px; }
.dish span { color: var(--muted); font-size: 13px; }

.query-banner, .note, .gap, .demo-note { color: var(--muted); font-size: 14px; }
.query-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.gap {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 650;
}

.site-footer { padding: 28px 0 12px; color: var(--muted); font-size: 14px; }
.site-footer strong { color: var(--ink); }
.site-footer .surcharge-note { font-size: 11px; line-height: 1.35; }
.site-footer .hotline { margin: 8px 0 6px; color: var(--ink); font-weight: 700; font-size: 17px; }
.fee-disclaimer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  z-index: 44;
}
.checkout { padding-bottom: 36px; }
.site-footer .hotline a { color: var(--gold); font-weight: 800; text-decoration: underline; }
.price-free { color: var(--green); }

.back { display: inline-flex; margin-bottom: 12px; text-decoration: none; font-weight: 650; color: var(--muted); }
.cover { border-radius: 22px; overflow: hidden; height: 280px; position: relative; }
.cover.logo-banner { height: auto; background: #fff; display: grid; }
.cover.logo-banner .photo { height: 168px; background: #fff; }
.cover.logo-banner .photo img { object-fit: contain; background: #fff; }
.cover.logo-banner .cover-copy { position: static; background: none; color: var(--ink); padding: 16px 4px 0; }
.cover.logo-banner .cover-copy h1 { color: var(--ink); }
.cover.logo-banner .cover-copy .eyebrow { color: var(--gold) !important; }
.cover.logo-banner .cover-copy .meta { color: var(--muted); }
.cover .photo { height: 100%; }
.cover-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: white;
}
.cover-copy h1 { font-size: clamp(36px, 4vw, 56px); }
.cover-copy .meta { color: rgba(255, 255, 255, 0.86); }
.rest-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.banner-closed, .banner-promo {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-weight: 650;
}
.banner-closed { background: var(--soft); color: var(--accent); }
.radius-banner {
  margin: 0;
  background: linear-gradient(90deg, #2a1216, #3a2210 50%, #2a1216);
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 199, 44, 0.55);
  text-align: center;
  font-weight: 650;
  padding: 12px 16px;
  letter-spacing: -0.01em;
}
.radius-banner[hidden] { display: none; }
.banner-promo { background: var(--green-soft); color: var(--green); }
.menu-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  padding: 10px 0;
}
.menu-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-sec { scroll-margin-top: 150px; }
.menu-sec h2 { font-size: 20px; margin: 18px 0 4px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 16px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: inherit;
}
.item p { color: var(--muted); font-size: 14px; margin: 4px 0; }
.item-photo { height: 96px; border-radius: 14px; position: relative; }
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-right: 6px;
}
.plus {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #1c1410;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.scrim, .drawer-scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  z-index: 70;
}
.scrim { display: flex; align-items: center; justify-content: center; padding: 16px; }
.drawer-scrim { z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.drawer-scrim.show { opacity: 1; pointer-events: auto; }
.sheet, .dialog {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sheet { max-height: min(760px, 92vh); display: flex; flex-direction: column; position: relative; }
.sheet-photo { height: 180px; flex: 0 0 auto; }
.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #1c1410;
  font-size: 20px;
}
.sheet-body { overflow: auto; padding: 16px 18px 8px; }
.sheet-body h2 { font-family: var(--display); font-size: 32px; letter-spacing: -0.03em; }
.sheet-body .desc { color: var(--muted); margin: 6px 0 12px; }
fieldset.opt-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 12px 0;
  min-inline-size: 0;
}
.opt-group legend { padding: 0; }
.opt-name { font-weight: 700; }
.opt-hint { color: var(--muted); font-size: 13px; font-weight: 500; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.choice span:first-of-type, .choice .choice-name { flex: 1; }
.choice-price { color: var(--muted); font-size: 14px; }
.note-label { display: block; margin: 8px 0 14px; font-weight: 650; }
.note-label textarea { width: 100%; margin-top: 6px; min-height: 72px; resize: vertical; }
.sheet-bar {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 6px;
}
.stepper button {
  width: 36px; height: 44px; border: 0; background: transparent; font-size: 20px;
}
.dialog { padding: 22px; }
.dialog h2 { font-family: var(--display); font-size: 32px; letter-spacing: -0.03em; }
.dialog p { color: var(--muted); margin: 8px 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog.welcome {
  padding: 28px 26px 22px;
  color: #fff8ee;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 199, 44, 0.34), transparent 52%),
    linear-gradient(165deg, #5a1520 0%, #2a1216 48%, #141110 100%);
  border: 1px solid #ffc72c;
  box-shadow:
    0 0 0 1px rgba(227, 25, 55, 0.55),
    0 28px 70px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 226, 160, 0.45);
}
.dialog.welcome h2 {
  color: #ffc72c;
  font-size: 36px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.dialog.welcome p {
  color: #fff6ea;
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.dialog.welcome p + p {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 199, 44, 0.45);
}
.dialog.welcome p:last-of-type { margin-bottom: 20px; }
.dialog.welcome .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  filter: none;
  box-shadow: 0 8px 18px rgba(227, 25, 55, 0.45);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--surface);
  z-index: 61;
  transform: translateX(104%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 16px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-lines { overflow: auto; padding: 8px 16px; flex: 1; }
.line { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line h3 { font-size: 15px; }
.line p { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button, .trash {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
}
.summary { display: grid; gap: 6px; font-size: 14px; }
.summary div, .line-top { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-size: 18px; font-weight: 750; margin-top: 4px; }
.strike { text-decoration: line-through; color: var(--muted); margin-right: 6px; }
.drawer-foot { border-top: 1px solid var(--line); display: grid; gap: 10px; }
.linkish { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 650; }

.checkout, .track-grid, .split {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: linear-gradient(180deg, #26211e, var(--surface));
  border: 1px solid rgba(255, 199, 44, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.12), var(--shadow);
  border-radius: 18px;
  padding: 16px;
}
.panel h1, .page-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.fields { display: grid; gap: 12px; margin-top: 12px; }
.field { display: grid; gap: 6px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; font-weight: 500; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pay { display: grid; gap: 8px; }
.pay label, .tip-row button, .tip-custom {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pay label:has(input:checked), .tip-row button.on, .tip-custom.on { border-color: var(--ink); background: var(--soft); }
.pay label.soon { color: var(--muted); cursor: not-allowed; }
.pay label.soon span { margin-left: auto; font-size: 12px; font-weight: 700; }
.tip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.summary .surcharge span:last-child { font-weight: 700; }
.tip-row button { background: var(--surface); }
.tip-custom input { border: 0; width: 80px; padding: 0; outline: 0; background: transparent; }
.tip-custom[hidden] { display: none; }
.fine { color: var(--muted); font-size: 13px; }
.zelle-panel { display: grid; gap: 12px; }
.zelle-panel[hidden], #cash-note[hidden] { display: none; }
.zelle-send {
  margin: 0;
  background: linear-gradient(165deg, #ffe08a, var(--gold) 46%, var(--gold-deep));
  color: #1c1208;
  border: 1px solid #ffe7a3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}
.zelle-send strong { font-size: 22px; letter-spacing: 0.02em; }
.zelle-wait { margin: 0; font-weight: 700; color: #9b1428; }
.minimum-note { margin: 10px 0 0; font-weight: 700; color: var(--accent); }

.map { border-radius: 16px; overflow: hidden; margin: 12px 0; background: var(--map); }
.map svg { width: 100%; height: auto; display: block; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width 0.25s linear; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--muted); }
.step i {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 4px;
  border: 2px solid var(--line); display: block;
}
.step.done { color: var(--ink); }
.step.done i { background: var(--green); border-color: var(--green); }
.step.active { color: var(--ink); font-weight: 700; }
.step.active i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.18); }
.dasher { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750;
  background: var(--ink); color: var(--bg);
}
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars button { border: 0; background: transparent; font-size: 26px; color: var(--line); padding: 0 2px; }
.stars button.on, .stars button:hover, .stars button:hover ~ button { color: var(--gold); }
.order-rating { margin-top: 16px; }
.driver-review {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
}
.driver-review textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  font-weight: 500;
}
.order-rating .btn { margin-top: 8px; }

.order {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 12px;
}
.order-top { display: flex; justify-content: space-between; gap: 12px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.empty h2 { font-family: var(--display); font-size: 36px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 14px; }

.tabbar { display: none; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 90;
  max-width: min(420px, calc(100% - 32px));
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 800px) {
  :root { --header-h: 108px; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .orders-link { display: none; }
  .hero, .checkout, .track-grid { grid-template-columns: 1fr; }
  .collage { display: none; }
  .cover { height: 210px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 62px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 45;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    text-decoration: none;
    position: relative;
  }
  .tabbar .on { color: var(--gold); }
  .tabbar .count { top: 6px; right: calc(50% - 22px); }
  body { padding-bottom: 62px; }
  #toast { bottom: 78px; }
  .scrim { align-items: flex-end; padding: 0; }
  .scrim.center-dialog { align-items: center; justify-content: center; padding: 16px; }
  .fee-disclaimer { bottom: 62px; }
  .sheet { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 92vh; }
  .item { grid-template-columns: 1fr 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
