@font-face {
  font-family: "Geologica";
  src: url("./geologica-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #e4e7ee;
  --sheet: #f5f6f1;
  --surface: #ffffff;
  --surface-soft: #ebece7;
  --ink: #171a25;
  --ink-soft: #656a78;
  --line: rgba(23, 26, 37, 0.1);
  --line-strong: rgba(23, 26, 37, 0.19);
  --map: #202438;
  --map-panel: rgba(22, 25, 40, 0.88);
  --map-line: rgba(205, 212, 238, 0.22);
  --lime: #c8ff5c;
  --lime-dark: #9bd730;
  --lime-soft: #efffd0;
  --coral: #ff735f;
  --success: #3fba83;
  --danger: #d64b5e;
  --shadow: 0 24px 70px rgba(19, 22, 35, 0.18), 0 5px 18px rgba(19, 22, 35, 0.08);
  --shadow-soft: 0 10px 30px rgba(19, 22, 35, 0.09);
  --font: "Geologica", "Aptos", "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
  --page: #10131f;
  --sheet: #171a27;
  --surface: #202434;
  --surface-soft: #272b3d;
  --ink: #f3f5ef;
  --ink-soft: #b0b5c4;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --lime-soft: #2d3825;
  --danger: #ff8493;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 5px 18px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-variation-settings: "CRSV" 0.25, "SHRP" 35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lime-dark) 72%, transparent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 150;
  top: calc(8px + var(--safe-top));
  left: 12px;
  padding: 10px 14px;
  color: #131624;
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  width: 100%;
}

.map-hero {
  position: relative;
  min-height: 355px;
  padding: calc(16px + var(--safe-top)) 16px 42px;
  overflow: hidden;
  color: #f8faef;
  background: var(--map);
}

.city-map {
  position: absolute;
  inset: -10% -8%;
  width: 116%;
  height: 120%;
  transform: rotate(-3deg) scale(1.03);
}

.map-district {
  fill: url("#map-glow");
  stroke: rgba(222, 228, 252, 0.09);
  stroke-width: 2;
}

.map-district-alt {
  fill: #303650;
}

.map-road {
  fill: none;
  stroke: rgba(215, 222, 247, 0.16);
  stroke-linecap: round;
  stroke-width: 14;
}

.map-road-wide {
  stroke: rgba(221, 228, 251, 0.2);
  stroke-width: 24;
}

.map-road-thin {
  stroke: rgba(215, 222, 247, 0.12);
  stroke-width: 7;
}

.map-route {
  fill: none;
  stroke: var(--coral);
  stroke-dasharray: 5 10;
  stroke-linecap: round;
  stroke-width: 4;
  animation: route-flow 16s linear infinite;
}

.map-speck {
  fill: var(--lime);
  opacity: 0.68;
}

.map-speck-coral {
  fill: var(--coral);
}

@keyframes route-flow {
  to { stroke-dashoffset: -180; }
}

.map-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  gap: 9px;
  align-items: center;
  color: #f8faef;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #161927;
  background: var(--lime);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.brand-mark span {
  width: 11px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
  transform: rotate(-7deg);
}

.open-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(248, 250, 239, 0.84);
  background: rgba(10, 12, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: 0.68rem;
  font-weight: 560;
}

.service-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 255, 92, 0.12);
}

.map-weather {
  position: absolute;
  z-index: 2;
  top: 92px;
  left: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: rgba(244, 247, 239, 0.56);
  font-size: 0.66rem;
  font-weight: 500;
}

.cafe-beacon {
  position: absolute;
  z-index: 2;
  top: 44%;
  left: 57%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.beacon-orbit {
  position: absolute;
  border: 1px solid rgba(200, 255, 92, 0.35);
  border-radius: 50%;
  animation: beacon-pulse 2.8s ease-out infinite;
}

.orbit-one {
  inset: 7px;
}

.orbit-two {
  inset: -14px;
  animation-delay: 1.2s;
}

@keyframes beacon-pulse {
  0% { opacity: 0; transform: scale(0.55); }
  28% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.25); }
}

.beacon-pin {
  position: relative;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #111522;
  background: var(--lime);
  border: 4px solid #f8faef;
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 14px 30px rgba(4, 7, 17, 0.38);
  transform: rotate(-45deg);
}

.beacon-pin svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: rotate(45deg);
}

.location-card {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 42px;
  left: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 11px 12px;
  background: var(--map-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(7, 9, 18, 0.25);
  backdrop-filter: blur(18px);
}

.location-main {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.location-main > span:last-child,
.prep-status {
  display: grid;
  gap: 3px;
}

.location-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #161927;
  background: var(--coral);
  border-radius: 15px;
}

.location-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.location-card small {
  color: rgba(244, 247, 239, 0.58);
  font-size: 0.61rem;
  font-weight: 500;
}

.location-card strong {
  overflow: hidden;
  font-size: 0.81rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-status {
  flex: 0 0 auto;
  padding-left: 13px;
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.prep-status strong {
  color: var(--lime);
}

.content-shell {
  position: relative;
  z-index: 6;
  min-height: 62dvh;
  margin-top: -26px;
  padding: 23px 16px calc(122px + var(--safe-bottom));
  background: var(--sheet);
  border-radius: 28px 28px 0 0;
}

.demo-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  margin-bottom: 22px;
  padding: 13px 14px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--coral) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--coral) 25%, transparent);
  border-radius: 18px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.demo-banner p {
  margin: 0;
}

.demo-copy {
  display: grid;
  gap: 10px;
}

.telegram-login {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #151824;
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 680;
  text-decoration: none;
}

.telegram-login:hover {
  background: color-mix(in srgb, var(--lime) 86%, white);
}

.demo-banner strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 660;
}

.demo-pulse {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 12%, transparent);
}

.catalog-composer {
  max-width: 720px;
  margin: 0 auto;
}

.composer-heading {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.welcome-note {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 530;
}

.composer-heading h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(1.72rem, 7vw, 2.55rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.menu-count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 550;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(22, 25, 36, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--lime-dark) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 14%, transparent);
}

.search-box svg {
  width: 20px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.82rem;
}

.search-box input::placeholder {
  color: var(--ink-soft);
  opacity: 0.78;
}

.search-key {
  padding: 4px 7px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 7px;
  font-size: 0.58rem;
  font-weight: 580;
}

.category-tabs {
  display: flex;
  gap: 7px;
  margin: 14px -16px 0;
  padding: 0 16px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 570;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.category-tab[aria-selected="true"] {
  color: #151824;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--lime-dark) 22%, transparent);
}

.category-tab:active {
  transform: scale(0.97);
}

.composer-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.61rem;
  line-height: 1.45;
}

.menu-section {
  max-width: 720px;
  margin: 18px auto 0;
}

.menu-grid {
  display: grid;
  gap: 10px;
}

.menu-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "art meta"
    "art title"
    "art description"
    "art footer";
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 2px 13px;
  min-height: 126px;
  padding: 8px 12px 8px 8px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(22, 25, 36, 0.045);
  cursor: pointer;
  animation: menu-in 360ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
  animation-delay: calc(var(--card-index) * 38ms);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  border-color: color-mix(in srgb, var(--lime-dark) 36%, var(--line));
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.menu-card:active {
  transform: scale(0.99);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-art {
  position: relative;
  grid-area: art;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 108px;
  overflow: hidden;
  place-items: center;
  background: var(--art-background, #dedfd8);
  border-radius: 16px;
}

.menu-art::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--art-ink, #4f463e) 15%, transparent);
  border-radius: 12px;
}

.menu-art::after {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--art-ink, #4f463e);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--art-ink, #4f463e) 10%, transparent);
}

.tone-latte { --art-background: #e7d8c9; --art-ink: #75533f; }
.tone-plum { --art-background: #d8d2e6; --art-ink: #554469; }
.tone-apricot { --art-background: #f1d6b8; --art-ink: #8e5530; }
.tone-berry { --art-background: #ead0da; --art-ink: #8d4058; }
.tone-matcha { --art-background: #d7e3bd; --art-ink: #4c6537; }
.tone-citrus { --art-background: #eee0aa; --art-ink: #80601e; }
.tone-sand { --art-background: #e9d9ba; --art-ink: #755829; }
.tone-sky { --art-background: #cfe1e4; --art-ink: #3e636b; }

.art-shape {
  position: relative;
  z-index: 1;
  display: block;
  width: 44%;
  height: 50%;
  color: var(--art-ink);
}

.art-shape::before,
.art-shape::after {
  position: absolute;
  content: "";
}

[data-art="cappuccino"] .art-shape,
[data-art="filter"] .art-shape {
  bottom: -7%;
  height: 37%;
  background: color-mix(in srgb, var(--art-background) 60%, white);
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 18px 18px;
}

[data-art="cappuccino"] .art-shape::before,
[data-art="filter"] .art-shape::before {
  top: 2px;
  right: -23%;
  width: 28%;
  height: 52%;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 20px 20px 0;
}

[data-art="cappuccino"] .art-shape::after,
[data-art="filter"] .art-shape::after {
  top: -44%;
  left: 18%;
  width: 9%;
  height: 29%;
  border-left: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 17px -5px 0 -7px var(--art-background), 17px -5px 0 -5px currentColor;
  opacity: 0.7;
}

[data-art="matcha"] .art-shape,
[data-art="tonic"] .art-shape {
  width: 31%;
  height: 60%;
  background: linear-gradient(to bottom, transparent 18%, color-mix(in srgb, var(--art-ink) 52%, white) 19%);
  border: 3px solid currentColor;
  border-top-width: 2px;
  border-radius: 5px 5px 14px 14px;
  transform: rotate(2deg);
}

[data-art="matcha"] .art-shape::before,
[data-art="tonic"] .art-shape::before {
  top: 27%;
  left: 19%;
  width: 13px;
  height: 13px;
  border: 2px solid color-mix(in srgb, currentColor 70%, white);
  border-radius: 3px;
  transform: rotate(22deg);
  box-shadow: 13px 17px 0 -2px color-mix(in srgb, currentColor 60%, white);
}

[data-art="matcha"] .art-shape::after,
[data-art="tonic"] .art-shape::after {
  top: -12%;
  left: 65%;
  width: 2px;
  height: 81%;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(11deg);
}

[data-art="sandwich"] .art-shape,
[data-art="croissant"] .art-shape {
  top: 10%;
  width: 55%;
  height: 41%;
  background: color-mix(in srgb, var(--art-background) 70%, white);
  border: 3px solid currentColor;
  border-radius: 55% 55% 18% 18% / 68% 68% 25% 25%;
  transform: rotate(-6deg);
}

[data-art="sandwich"] .art-shape::before,
[data-art="croissant"] .art-shape::before {
  right: 8%;
  bottom: 29%;
  left: 8%;
  height: 3px;
  background: currentColor;
  box-shadow: 0 9px 0 color-mix(in srgb, currentColor 55%, transparent);
  transform: rotate(2deg);
}

[data-art="croissant"] .art-shape::after {
  top: 4%;
  left: 27%;
  width: 40%;
  height: 84%;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}

[data-art="syrniki"] .art-shape,
[data-art="granola"] .art-shape {
  top: 11%;
  width: 54%;
  height: 26%;
  background: color-mix(in srgb, var(--art-background) 68%, white);
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 13px 0 -2px color-mix(in srgb, var(--art-background) 68%, white), 0 15px 0 0 currentColor;
}

[data-art="syrniki"] .art-shape::before,
[data-art="granola"] .art-shape::before {
  top: -45%;
  left: 35%;
  width: 28%;
  height: 58%;
  background: color-mix(in srgb, currentColor 48%, white);
  border-radius: 70% 45% 65% 40%;
  transform: rotate(24deg);
}

.menu-card-meta {
  grid-area: meta;
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding-top: 3px;
}

.card-category {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 540;
}

.card-badge {
  padding: 3px 6px;
  color: #151824;
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 680;
}

.menu-card-title {
  grid-area: title;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-card-description {
  grid-area: description;
  display: -webkit-box;
  align-self: start;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-card-footer {
  grid-area: footer;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 5px;
}

.menu-card-price {
  font-size: 0.73rem;
  font-weight: 680;
}

.card-add {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #151824;
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.12rem;
  font-weight: 460;
  line-height: 1;
}

.state-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.state-panel > div {
  display: grid;
  gap: 4px;
}

.state-panel strong {
  font-size: 0.79rem;
  font-weight: 650;
}

.state-panel span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.4;
}

.loading-panel {
  display: grid;
  gap: 10px;
  min-height: 446px;
}

.menu-card-skeleton {
  display: block;
  min-height: 142px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, white 48%, transparent), transparent),
    var(--surface);
  background-size: 220% 100%, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  animation: skeleton-shimmer 1.2s linear infinite;
}

@keyframes skeleton-shimmer {
  to { background-position: -220% 0, 0 0; }
}

.state-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 750;
}

.text-button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 650;
}

.trust-note {
  display: flex;
  max-width: 720px;
  gap: 11px;
  align-items: center;
  margin: 18px auto 0;
  padding: 14px 15px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  line-height: 1.45;
}

.trust-note p {
  margin: 0;
}

.trust-note strong {
  color: var(--ink);
  font-weight: 640;
}

.trust-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: #151824;
  background: var(--lime);
  border-radius: 50%;
}

.trust-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.order-rail {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  pointer-events: none;
}

.rail-card {
  width: min(600px, 100%);
  margin: 0 auto;
  overflow: hidden;
  color: #f8faef;
  background: rgba(20, 23, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(10, 12, 20, 0.32);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: rail-in 240ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes rail-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rail-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 67px;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.rail-count {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #151824;
  background: var(--lime);
  border-radius: 15px;
  font-size: 0.76rem;
  font-weight: 720;
}

.rail-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rail-copy small {
  color: rgba(248, 250, 239, 0.55);
  font-size: 0.57rem;
}

.rail-copy strong {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-total {
  font-size: 0.82rem;
  font-weight: 690;
  white-space: nowrap;
}

.rail-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #151824;
  background: var(--coral);
  border-radius: 50%;
}

.rail-arrow svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.sheet::backdrop {
  background: rgba(11, 13, 23, 0.62);
  backdrop-filter: blur(5px);
}

.sheet[open] {
  display: grid;
  align-items: end;
}

.sheet-card {
  width: min(640px, 100%);
  max-height: min(93dvh, 900px);
  margin: 0 auto;
  padding: 11px clamp(18px, 5vw, 32px) calc(22px + var(--safe-bottom));
  overflow-y: auto;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-grabber {
  width: 40px;
  height: 4px;
  margin: 0 auto 6px;
  background: var(--line-strong);
  border-radius: 999px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 5px 0 12px;
}

.sheet-label,
.product-category {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 540;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

#product-art-slot .menu-art {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 2.05;
  margin: 3px 0 22px;
  border-radius: 24px;
}

#product-art-slot .menu-art::before {
  inset: 14px;
  border-radius: 18px;
}

#product-art-slot .art-shape {
  width: 22%;
}

.product-intro {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.product-category {
  margin-bottom: 6px;
}

.product-intro h2,
.cart-header h2 {
  margin: 0;
  font-weight: 690;
  letter-spacing: -0.05em;
}

.product-intro h2 {
  font-size: clamp(1.8rem, 7vw, 2.65rem);
  line-height: 1;
}

.product-price {
  flex: 0 0 auto;
  padding-top: 18px;
  font-size: 0.8rem;
  font-weight: 660;
}

.product-description {
  max-width: 470px;
  margin: 12px 0 25px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.variant-fieldset,
.fulfillment-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.variant-fieldset legend,
.fulfillment-fieldset legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 560;
}

.variant-options {
  display: grid;
  gap: 7px;
}

.variant-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 53px;
  padding: 10px 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.71rem;
}

.variant-option:has(input:checked) {
  color: var(--ink);
  background: var(--lime-soft);
  border-color: color-mix(in srgb, var(--lime-dark) 45%, transparent);
}

.variant-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-option b {
  font-size: 0.68rem;
}

.variant-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.variant-option input:checked + .variant-copy + .variant-check {
  color: #151824;
  background: var(--lime);
  border-color: var(--lime);
}

.variant-option input:focus-visible + .variant-copy {
  outline: 3px solid color-mix(in srgb, var(--lime-dark) 60%, transparent);
  outline-offset: 5px;
  border-radius: 4px;
}

.variant-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sheet-action-row {
  position: sticky;
  bottom: calc(-22px - var(--safe-bottom));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin: 25px calc(-1 * clamp(18px, 5vw, 32px)) calc(-22px - var(--safe-bottom));
  padding: 11px clamp(18px, 5vw, 32px) calc(16px + var(--safe-bottom));
  background: color-mix(in srgb, var(--sheet) 95%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 44px 32px 44px;
  min-height: 55px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.quantity-stepper button {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.18rem;
}

.quantity-stepper output {
  font-size: 0.72rem;
  font-weight: 700;
}

.primary-button {
  display: flex;
  min-height: 55px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #151824;
  background: var(--lime);
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 680;
  transition: background 150ms ease, transform 150ms ease;
}

.primary-button:hover {
  background: color-mix(in srgb, var(--lime) 86%, white);
}

.primary-button:active {
  transform: scale(0.985);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.primary-button strong {
  font-size: 0.8rem;
  font-weight: 720;
}

.cart-sheet .sheet-card {
  width: min(700px, 100%);
}

.cart-header {
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header .sheet-label {
  margin-bottom: 6px;
}

.cart-header h2 {
  font-size: 1.9rem;
  line-height: 1;
}

.cart-lines {
  display: grid;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-main {
  min-width: 0;
}

.cart-line-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.cart-line-title strong {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line-title span {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 670;
}

.cart-line-main > p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.cart-line-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.cart-line-actions button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.cart-line-actions output {
  min-width: 24px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.checkout-form {
  padding-top: 25px;
}

.fulfillment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fulfillment-options label {
  cursor: pointer;
}

.fulfillment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fulfillment-options span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  min-height: 86px;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.fulfillment-options input:checked + span {
  background: var(--lime-soft);
  border-color: color-mix(in srgb, var(--lime-dark) 42%, transparent);
}

.fulfillment-options input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--lime-dark) 60%, transparent);
  outline-offset: 3px;
}

.fulfillment-options i {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #151824;
  background: var(--lime);
  border-radius: 50%;
  font-style: normal;
}

.fulfillment-options b {
  align-self: end;
  font-size: 0.72rem;
}

.fulfillment-options small {
  color: var(--ink-soft);
  font-size: 0.59rem;
  line-height: 1.35;
}

.address-group {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.address-group label {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 560;
}

.address-group input {
  width: 100%;
  min-height: 53px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
}

.address-group input:focus {
  border-color: var(--lime-dark);
}

.address-group input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  color: var(--danger);
  font-size: 0.65rem;
}

.order-total-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 25px;
  padding: 17px 0 14px;
  border-top: 1px solid var(--line);
}

.order-total-row > span {
  display: grid;
  gap: 3px;
}

.order-total-row small {
  color: var(--ink-soft);
  font-size: 0.63rem;
}

.order-total-row b {
  font-size: 0.71rem;
}

.order-total-row > strong {
  font-size: 1.5rem;
  font-weight: 710;
  letter-spacing: -0.04em;
}

.checkout-message {
  margin-bottom: 11px;
  padding: 12px 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.67rem;
  line-height: 1.5;
}

.checkout-message[data-kind="demo"] {
  color: #87511a;
  background: #fff1d7;
  border-color: #edce95;
}

html[data-theme="dark"] .checkout-message[data-kind="demo"] {
  color: #f4c67a;
  background: #372b1b;
  border-color: #624b28;
}

.checkout-message[data-kind="error"] {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.checkout-message[data-kind="success"] {
  color: #246d4e;
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--success) 34%, transparent);
}

html[data-theme="dark"] .checkout-message[data-kind="success"] {
  color: #8be1ba;
}

.checkout-button {
  width: 100%;
}

.checkout-caption {
  margin: 9px 0 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.61rem;
}

.toast {
  position: fixed;
  z-index: 120;
  top: calc(14px + var(--safe-top));
  left: 50%;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 14px;
  color: #f8faef;
  background: #171a28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.68rem;
  font-weight: 580;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-message {
  position: fixed;
  z-index: 160;
  inset: 20px;
  display: grid;
  padding: 24px;
  place-items: center;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .map-hero {
    min-height: 430px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .location-card {
    right: 28px;
    bottom: 48px;
    left: auto;
    width: min(430px, calc(100% - 56px));
  }

  .map-weather {
    left: 32px;
  }

  .content-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .category-tabs {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  body {
    padding: 22px;
  }

  .app-frame {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1.18fr);
    gap: 18px;
    width: min(1220px, 100%);
    margin: 0 auto;
    align-items: start;
  }

  .map-hero {
    position: sticky;
    top: 22px;
    height: calc(100dvh - 44px);
    min-height: 680px;
    padding: 20px;
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
  }

  .map-weather {
    top: 104px;
    left: 24px;
  }

  .cafe-beacon {
    top: 48%;
    left: 53%;
  }

  .location-card {
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
  }

  .content-shell {
    min-height: calc(100dvh - 44px);
    margin: 0;
    padding: 34px 32px 130px;
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 142px;
  }

  .order-rail {
    right: max(28px, calc((100vw - 1220px) / 2));
    left: auto;
    width: min(690px, calc(100vw - 470px));
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .map-hero {
    min-height: 345px;
  }

  .open-pill {
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .location-card {
    gap: 8px;
  }

  .location-icon {
    width: 39px;
    height: 39px;
  }

  .prep-status {
    padding-left: 9px;
  }
}

@media (max-width: 360px) {
  .map-hero {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .location-card {
    right: 12px;
    left: 12px;
  }

  .location-card small {
    font-size: 0.55rem;
  }

  .location-card strong {
    font-size: 0.72rem;
  }

  .content-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .category-tabs {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .menu-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .search-key,
  .composer-note {
    display: none;
  }

  .rail-main {
    gap: 8px;
  }

  .rail-copy small {
    display: none;
  }

  .fulfillment-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
