:root {
  --cream: #f3ece0;
  --paper: #fffdf8;
  --paper-soft: #fbf6ed;
  --ink: #29231d;
  --ink-soft: #4d443b;
  --muted: #8f8376;
  --muted-light: #b4a99b;
  --line: #efe4d4;
  --line-strong: #e4d5c2;
  --yellow: #f7cf51;
  --yellow-deep: #e7b735;
  --yellow-soft: #fff5ce;
  --coral: #e98370;
  --coral-soft: #ffe8e0;
  --mint: #e7f1e2;
  --brown: #ad7a4c;
  --price: #d95f4b;
  --shadow-sm: 0 4px 14px rgba(96, 68, 38, 0.07);
  --shadow-md: 0 14px 34px rgba(96, 68, 38, 0.12);
  --shadow-lg: 0 30px 80px rgba(74, 50, 29, 0.2);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-round: "YouYuan", "幼圆", "Microsoft YaHei", "PingFang SC", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 221, 208, 0.9) 0, transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(255, 242, 188, 0.88) 0, transparent 28%),
    radial-gradient(circle at 84% 88%, rgba(218, 234, 210, 0.78) 0, transparent 26%),
    linear-gradient(145deg, #f2eadd 0%, #f7f0e6 46%, #f0e7da 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(140, 111, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 111, 79, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

[hidden] {
  display: none !important;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

:focus-visible {
  outline: 3px solid rgba(221, 167, 45, 0.8);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   Desktop atmosphere
----------------------------------------------------------------- */
.desk-decor {
  display: none;
}

.app-shell {
  position: relative;
  width: min(100%, 470px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
}

/* ----------------------------------------------------------------
   Hero
----------------------------------------------------------------- */
.hero {
  position: relative;
  height: clamp(160px, 42vw, 196px);
  overflow: hidden;
  background: #f8e6c8;
  isolation: isolate;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 38% 56%;
  transform: scale(1.015);
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(41, 30, 20, 0.24) 0%, transparent 31%),
    linear-gradient(0deg, rgba(41, 28, 17, 0.5) 0%, transparent 33%);
}

.hero-top {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-pill,
.day-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-pill {
  color: var(--ink);
  background: rgba(255, 252, 245, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(83, 51, 23, 0.12);
}

.brand-pill__heart {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 11px;
  line-height: 1;
}

.day-pill {
  color: #fff9ef;
  background: rgba(40, 29, 19, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.23);
}

.day-pill b {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.day-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.19);
}

.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 36px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 252, 245, 0.96);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(47, 29, 15, 0.28);
  white-space: nowrap;
}

.hero-caption__line {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-caption b {
  color: #ffe6a1;
  font-weight: 900;
}

.hero-caption > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-caption > span:not(:last-child) {
  flex: 0 0 auto;
}

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #83c46d;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(131, 196, 109, 0.6);
  border-radius: inherit;
  animation: livePulse 2s ease-out infinite;
}

/* ----------------------------------------------------------------
   Main paper sheet
----------------------------------------------------------------- */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: -29px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  box-shadow: 0 -12px 32px rgba(71, 44, 21, 0.08);
}

.intro {
  padding: 23px 20px 0;
}

.title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.title-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

h1 {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: clamp(23px, 6.4vw, 27px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 5px 8px 5px 6px;
  border-radius: 9px;
  color: #b97b2b;
  background: #fff6dd;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.share-btn:hover {
  background: #fff0c3;
  transform: translateY(-1px);
}

.share-btn .icon {
  width: 15px;
  height: 15px;
}

.love-bubble {
  min-width: 54px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #f0e4d3;
  border-radius: 16px;
  background: var(--paper-soft);
  box-shadow: 0 4px 12px rgba(93, 63, 34, 0.06);
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.love-bubble:hover {
  background: #fff4ea;
  transform: translateY(-2px) rotate(-2deg);
}

.love-bubble:active {
  transform: scale(0.94);
}

.love-bubble__heart {
  width: 18px;
  height: 18px;
  color: var(--coral);
  fill: var(--coral);
  stroke-width: 1.3;
}

.love-bubble span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.quote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 390px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.quote > span {
  text-wrap: balance;
}

.quote__icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #b9aca0;
  stroke-width: 1.55;
}

.quote mark {
  padding: 0 2px;
  color: #5e5144;
  background: linear-gradient(transparent 48%, rgba(247, 207, 81, 0.58) 48%);
}

/* ----------------------------------------------------------------
   Tabs & search
----------------------------------------------------------------- */
.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 18px 0 20px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 1px 12px;
  color: #a39689;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.tab::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 7px;
  left: 1px;
  height: 5px;
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0;
  transform: rotate(-1.2deg) scaleX(0.45);
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out);
}

.tab.is-active {
  color: var(--ink);
  font-weight: 900;
}

.tab.is-active::after {
  opacity: 0.75;
  transform: rotate(-1.2deg) scaleX(1);
}

.tab__count {
  position: relative;
  z-index: 1;
  display: inline-grid;
  min-width: 21px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #7a6d61;
  background: #f6f0e7;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tab.is-active .tab__count {
  color: #7c5b17;
  background: #fff3c5;
}

.round-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.round-btn:hover {
  background: var(--paper-soft);
}

.round-btn:active {
  transform: scale(0.92);
}

.round-btn .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 18px 12px;
  animation: slideDown 0.22s var(--ease-out) both;
}

.search-field {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #ecdfcd;
  border-radius: 14px;
  background: var(--paper-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
  border-color: #e5c56f;
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.18);
}

.search-field .icon {
  width: 18px;
  height: 18px;
  color: #a99b8c;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #b0a397;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-cancel {
  flex: 0 0 auto;
  padding: 8px 2px;
  color: #8f7d6a;
  font-size: 13px;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   Kitchen illustration card
----------------------------------------------------------------- */
.kitchen-card {
  position: relative;
  margin: 4px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(126, 90, 47, 0.1);
  border-radius: 23px;
  background: #f5e8ce;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.kitchen-card img {
  width: 100%;
  aspect-ratio: 3.09 / 1;
  display: block;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.kitchen-card:hover img {
  transform: scale(1.035);
}

.kitchen-card__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(54, 33, 17, 0.18) 0%, transparent 30%, transparent 48%, rgba(50, 31, 17, 0.66) 100%);
  color: #fffdf8;
}

.kitchen-card__top,
.kitchen-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  background: rgba(45, 30, 18, 0.35);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.live-pill .live-dot {
  width: 5px;
  height: 5px;
}

.kitchen-sticker {
  padding: 5px 8px;
  border-radius: 7px;
  color: #6b4c13;
  background: rgba(255, 240, 186, 0.93);
  font-size: 9px;
  font-weight: 800;
  transform: rotate(1.5deg);
}

.kitchen-card__bottom p {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.kitchen-card__bottom strong {
  color: #ffe48a;
  font-weight: 900;
}

.kitchen-card__bottom > span {
  color: rgba(255, 253, 247, 0.7);
  font-size: 8.5px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   Menu layout
----------------------------------------------------------------- */
.menu-layout {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 11px;
  padding: 0 14px;
}

.category-rail {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 5px;
  border: 1px solid #f0e6d8;
  border-radius: 20px;
  background: #f7f1e8;
}

.rail-item {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 3px;
  border-radius: 15px;
  color: #8e8173;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.rail-item:hover {
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.65);
}

.rail-item.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 6px 15px rgba(98, 68, 36, 0.1);
}

.rail-item.is-active::after {
  content: "♡";
  position: absolute;
  top: 5px;
  right: 7px;
  color: var(--coral);
  font-size: 8px;
  line-height: 1;
}

.rail-icon {
  display: block;
  font-size: 17px;
  line-height: 1;
  filter: saturate(0.9);
}

.rail-name {
  display: block;
  max-width: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.rail-count {
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
}

.rail-item.is-active .rail-count {
  color: #ad8842;
}

.menu-main {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px 10px;
}

.eyebrow {
  color: #ac9274;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-family: var(--font-round);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.count-chip {
  display: inline-grid;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #8a6a24;
  background: var(--yellow-soft);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 900;
  vertical-align: 2px;
  font-variant-numeric: tabular-nums;
}

.section-note {
  padding-bottom: 3px;
  color: #b4a696;
  font-size: 9px;
  white-space: nowrap;
}

.section-tools {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding-bottom: 2px;
}

.add-dish-btn {
  height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 0 8px 0 6px;
  border: 1px solid #ecd7a6;
  border-radius: 8px;
  color: #9d762d;
  background: #fff8e2;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(130, 92, 31, 0.06);
  transition: transform 0.18s var(--ease-out), background 0.18s ease, border-color 0.18s ease;
}

.add-dish-btn:hover {
  border-color: #dfbb5d;
  background: #fff3c8;
  transform: translateY(-1px);
}

.add-dish-btn:active {
  transform: scale(0.96);
}

.add-dish-btn .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dish-card {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #f1e6d7;
  border-radius: 21px;
  background:
    radial-gradient(circle at 102% -6%, rgba(247, 207, 81, 0.14) 0, transparent 42%),
    #fffaf3;
  box-shadow: 0 4px 13px rgba(97, 67, 35, 0.045);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease;
  animation: cardIn 0.35s var(--ease-out) both;
  animation-delay: calc(var(--index, 0) * 35ms);
}

.dish-card:hover {
  border-color: #ebd9c2;
  box-shadow: 0 9px 22px rgba(97, 67, 35, 0.08);
  transform: translateY(-2px);
}

.dish-card::after {
  content: "♡";
  position: absolute;
  right: 10px;
  bottom: -10px;
  color: rgba(233, 131, 112, 0.06);
  font-size: 54px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(12deg);
}

.dish-art {
  position: relative;
  width: 79px;
  height: 79px;
  flex: 0 0 auto;
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid rgba(100, 73, 42, 0.09);
  border-radius: 17px;
  background: #f7efe4;
}

.dish-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.dish-card:hover .dish-art img {
  transform: scale(1.055);
}

.dish-art__badge {
  position: absolute;
  top: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #98483b;
  background: rgba(255, 244, 238, 0.92);
  box-shadow: 0 2px 5px rgba(85, 48, 27, 0.1);
  font-size: 7.5px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.dish-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1px 0 0;
}

.dish-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.dish-name {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.005em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-action {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.mini-tag {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 5px;
  color: #a66337;
  background: #fff0d5;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
}

.dish-desc {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #97897a;
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--price);
  font-family: var(--font);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price__currency {
  font-size: 9px;
  font-weight: 800;
  transform: translateY(-1px);
}

.price b {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.price--large b {
  font-size: 28px;
}

.price--large .price__currency {
  font-size: 13px;
}

.coin {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1.4px solid #d7a158;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8dfa9, #edc27e);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transform: translateY(2px);
}

.coin::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #82613c;
  box-shadow: 4px 0 0 #82613c;
}

.coin::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 4px;
  height: 2px;
  border-bottom: 1px solid #82613c;
  border-radius: 50%;
}

.add-btn {
  min-width: 51px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #e4b632;
  border-radius: 9px;
  color: #493711;
  background: linear-gradient(180deg, #ffdc62, var(--yellow));
  box-shadow: 0 2px 0 #d5a42a, 0 3px 8px rgba(197, 145, 23, 0.16);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease, filter 0.18s ease;
}

.add-btn:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #d5a42a, 0 5px 12px rgba(197, 145, 23, 0.18);
}

.add-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #d5a42a;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #f0dda9;
  border-radius: 999px;
  background: #fffdf7;
  box-shadow: 0 2px 6px rgba(122, 88, 36, 0.07);
}

.stepper button {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #5d481d;
  background: var(--yellow-soft);
  transition: background 0.18s ease, transform 0.18s var(--ease-out);
}

.stepper button:hover {
  background: var(--yellow);
}

.stepper button:active {
  transform: scale(0.88);
}

.stepper .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.stepper b {
  min-width: 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.menu-end {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 2px 12px;
  color: #b4a595;
  font-size: 9.5px;
  text-align: center;
}

.menu-end span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #e9ddcd);
}

.menu-end span:last-child {
  background: linear-gradient(90deg, #e9ddcd, transparent);
}

.menu-end p {
  white-space: nowrap;
}

.menu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 18px 24px;
  border: 1px dashed #e5d6c2;
  border-radius: 21px;
  background: var(--paper-soft);
  text-align: center;
}

.menu-empty__face {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 29px;
  transform: rotate(-5deg);
}

.menu-empty h3 {
  font-size: 15px;
  font-weight: 900;
}

.menu-empty p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.menu-empty button {
  margin-top: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #6c5016;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 800;
}

/* ----------------------------------------------------------------
   About
----------------------------------------------------------------- */
.about-view {
  padding: 5px 16px 0;
}

.couple-card {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 17px;
  border: 1px solid #f2ddba;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 255, 255, 0.9) 0, transparent 30%),
    radial-gradient(circle at 94% 15%, rgba(255, 209, 198, 0.58) 0, transparent 34%),
    linear-gradient(150deg, #fff8e4 0%, #ffefe3 100%);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.couple-card::before,
.couple-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 150, 83, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.couple-card::before {
  top: -52px;
  left: -44px;
  width: 130px;
  height: 130px;
}

.couple-card::after {
  right: -30px;
  bottom: -48px;
  width: 118px;
  height: 118px;
}

.couple-card__doodle {
  position: absolute;
  top: 12px;
  right: 17px;
  color: rgba(233, 131, 112, 0.26);
  font-family: var(--font-round);
  font-size: 42px;
  line-height: 1;
  transform: rotate(13deg);
}

.couple-avatars {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto 11px;
}

.avatar {
  position: relative;
  width: 69px;
  height: 69px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #f5e9d5;
  box-shadow: 0 6px 16px rgba(111, 72, 35, 0.14);
}

.avatar--white {
  z-index: 1;
  transform: rotate(-5deg);
}

.avatar--brown {
  z-index: 2;
  margin-left: -11px;
  transform: rotate(5deg);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 4px 3px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(transparent, rgba(38, 26, 17, 0.62));
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-heart {
  position: relative;
  z-index: 3;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin: 24px -2px 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(177, 87, 71, 0.23);
}

.couple-kicker {
  color: #b18e5c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.couple-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
}

.couple-card .couple-name-row h2 {
  margin-top: 0;
  font-size: clamp(15px, 4.6vw, 22px);
  white-space: nowrap;
}

.edit-names-btn {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ebd6b9;
  border-radius: 50%;
  color: #a37a43;
  background: rgba(255, 252, 245, 0.78);
  box-shadow: 0 2px 6px rgba(129, 88, 36, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.edit-names-btn:hover {
  border-color: #d9b578;
  background: #fff6e4;
  transform: rotate(-5deg);
}

.edit-names-btn .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.couple-card h2 {
  margin-top: 4px;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.couple-card h2 .name-heart {
  display: inline-block;
  margin: 0 4px;
  color: var(--coral);
  font-size: 17px;
  transform: translateY(-1px);
}

.couple-days {
  margin-top: 5px;
  color: #8c7253;
  font-size: 11.5px;
}

.couple-days b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.milestone {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 5px;
  padding: 4px 8px 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #a06c3a;
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.milestone:hover {
  border-color: #ecdbc1;
  background: rgba(255, 253, 247, 0.96);
  transform: translateY(-1px);
}

.milestone:active {
  transform: scale(0.98);
}

.milestone.is-custom {
  color: #8d5c2b;
  border-color: #edd7ab;
  background: #fff1cd;
}

.milestone__edit {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  opacity: 0.55;
  stroke-width: 2;
}

.anniversary-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(209, 172, 119, 0.27);
  border-radius: 13px;
  background: rgba(255, 253, 247, 0.7);
  text-align: left;
}

.anniversary-field > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a7053;
  font-size: 10.5px;
  font-weight: 800;
}

.anniversary-field .icon {
  width: 13px;
  height: 13px;
  color: var(--coral);
  fill: var(--coral);
}

.anniversary-field input {
  width: 124px;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #6f5b44;
  background: transparent;
  font-size: 10.5px;
  font-weight: 700;
  text-align: right;
  color-scheme: light;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 5px 11px;
  border: 1px solid #f0e5d6;
  border-radius: 18px;
  background: var(--paper-soft);
  text-align: center;
}

.stat-card__icon {
  font-size: 15px;
  line-height: 1;
}

.stat-card__icon--coin {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1.4px solid #d7a158;
  border-radius: 50%;
  color: #82613c;
  background: linear-gradient(145deg, #f8dfa9, #edc27e);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.stat-card strong {
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-card strong.is-text {
  font-family: var(--font);
  font-size: 12px;
}

.stat-card > span:last-child {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.rules-card,
.love-quote-card,
.recent-orders {
  margin-top: 12px;
  border-radius: 23px;
}

.rules-card {
  padding: 17px;
  border: 1px solid #efe4d3;
  background: var(--paper-soft);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-heading h3 {
  margin-top: 2px;
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 900;
}

.card-heading__stamp {
  padding: 4px 6px;
  border: 1px solid rgba(216, 124, 105, 0.38);
  border-radius: 5px;
  color: #c67866;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}

.edit-rules-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #e8d3b3;
  border-radius: 8px;
  color: #a47a42;
  background: #fffaf1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.edit-rules-btn:hover {
  border-color: #d9b777;
  background: #fff4dd;
  transform: rotate(-1deg);
}

.edit-rules-btn .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.rules-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 13px;
  border: 1px dashed #e7d5bd;
  border-radius: 13px;
  color: #a59481;
  background: #fffaf3;
}

.rules-empty span {
  color: var(--coral);
  font-size: 18px;
  line-height: 1;
}

.rules-empty p {
  font-size: 10px;
  line-height: 1.6;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 10px;
  list-style: none;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed #e9ddcc;
}

.rules-list li:first-child {
  border-top: 0;
}

.rules-list li > span {
  flex: 0 0 auto;
  padding-top: 1px;
  color: #c3a574;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
}

.rules-list p {
  color: #65594c;
  font-size: 11px;
  line-height: 1.55;
}

.love-quote-card {
  position: relative;
  overflow: hidden;
  padding: 18px 17px 15px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 224, 138, 0.19) 0, transparent 34%),
    linear-gradient(145deg, #2b241d 0%, #403326 100%);
  box-shadow: 0 12px 24px rgba(58, 41, 24, 0.15);
}

.love-quote-card__mark {
  position: absolute;
  top: 2px;
  right: 15px;
  color: rgba(255, 222, 127, 0.23);
  font-family: Georgia, serif;
  font-size: 92px;
  line-height: 1;
}

.love-quote-card .eyebrow {
  color: #c4a982;
}

.love-quote {
  position: relative;
  max-width: 300px;
  margin-top: 9px;
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.quote-refresh {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 240, 208, 0.17);
  border-radius: 999px;
  color: #d8c3a2;
  font-size: 9px;
  font-weight: 700;
}

.quote-refresh:hover {
  color: #fff4d5;
  background: rgba(255, 255, 255, 0.06);
}

.quote-refresh .icon {
  width: 11px;
  height: 11px;
}

.recent-orders {
  padding: 16px;
  border: 1px solid #efe4d4;
  background: #fffaf4;
}

.recent-orders__count {
  color: #b3a291;
  font-size: 9px;
}

.recent-order {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #e9ddcd;
}

.recent-order:first-child {
  margin-top: 8px;
  border-top: 0;
}

.recent-order__main {
  min-width: 0;
}

.recent-order__main strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.recent-order__main p {
  margin-top: 2px;
  overflow: hidden;
  color: #a29484;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-order__price {
  flex: 0 0 auto;
  color: var(--price);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.clear-orders {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 0;
  color: #b2a293;
  font-size: 9px;
}

.clear-orders:hover {
  color: #b66a59;
}

.clear-orders .icon {
  width: 11px;
  height: 11px;
}

.about-cta-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}

.about-cta-row .about-cta {
  min-width: 0;
  flex: 1;
  margin-top: 0;
}

.about-cta-edit {
  width: 49px;
  height: 49px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #eadcc8;
  border-radius: 16px;
  color: #a17c48;
  background: #fffaf1;
  box-shadow: 0 6px 14px rgba(94, 64, 31, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.about-cta-edit:hover {
  border-color: #ddc092;
  background: #fff5e0;
  transform: rotate(-2deg);
}

.about-cta-edit .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.about-cta {
  width: 100%;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  border-radius: 16px;
  color: #fff8ea;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(43, 36, 28, 0.16);
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.about-cta:hover {
  background: #40362c;
  transform: translateY(-1px);
}

.about-cta .icon {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

/* ----------------------------------------------------------------
   Footer
----------------------------------------------------------------- */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px calc(112px + env(safe-area-inset-bottom));
  color: #b9aa9a;
  font-size: 8.5px;
  text-align: center;
}

.app-footer span {
  color: rgba(233, 131, 112, 0.55);
  font-size: 10px;
}

/* ----------------------------------------------------------------
   Floating cart bar
----------------------------------------------------------------- */
.cartbar-wrap {
  position: fixed;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 60;
  width: min(calc(100% - 24px), 444px);
  margin: 0 auto;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
}

.cartbar {
  position: relative;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(145deg, #26211c 0%, #171411 100%);
  box-shadow: 0 16px 38px rgba(39, 25, 13, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cartbar.is-bumping {
  animation: cartBump 0.35s var(--ease-out);
}

.cart-summary {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 7px 0 8px;
  border-radius: 999px;
  color: #fff;
  text-align: left;
}

.cart-icon-wrap {
  position: relative;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cart-icon-wrap .icon {
  width: 20px;
  height: 20px;
  color: #fffaf0;
  stroke-width: 1.7;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #211d18;
  border-radius: 999px;
  color: #402d11;
  background: var(--yellow);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cart-total-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cart-total {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff9ed;
}

.cart-total .coin {
  width: 16px;
  height: 16px;
  border-color: #c9903f;
  transform: translateY(1px);
}

.cart-total b {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.cart-hint {
  color: rgba(255, 248, 237, 0.43);
  font-family: Georgia, serif;
  font-size: 7.5px;
  font-style: italic;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.checkout-quick {
  height: 50px;
  flex: 0 0 auto;
  min-width: 108px;
  padding: 0 20px;
  border-radius: 999px;
  color: #3c2b10;
  background: linear-gradient(180deg, #ffdb64, var(--yellow));
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: filter 0.2s ease, transform 0.2s var(--ease-out);
}

.checkout-quick:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: scale(1.015);
}

.checkout-quick:active:not(:disabled) {
  transform: scale(0.98);
}

.checkout-quick:disabled {
  color: #706b63;
  background: #d7d4cd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ----------------------------------------------------------------
   Overlays and bottom sheets
----------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(42, 31, 21, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
}

.overlay.is-open .overlay-backdrop {
  opacity: 1;
}

.bottom-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  max-height: min(89dvh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 60px rgba(33, 23, 14, 0.25);
  transform: translateY(102%);
  transition: transform 0.34s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: #d9c7b2 transparent;
}

.overlay.is-open .bottom-sheet {
  transform: translateY(0);
}

.sheet-grip {
  position: sticky;
  top: 8px;
  z-index: 4;
  width: 38px;
  height: 4px;
  margin: 8px auto 3px;
  border-radius: 999px;
  background: #ded3c6;
  pointer-events: none;
}

.sheet-close {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #eee2d3;
  border-radius: 50%;
  color: #75685b;
  background: rgba(255, 251, 243, 0.9);
  box-shadow: 0 3px 9px rgba(75, 50, 29, 0.07);
  backdrop-filter: blur(8px);
}

.sheet-close:hover {
  background: #fff;
}

.sheet-close .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ----------------------------------------------------------------
   Dish sheet
----------------------------------------------------------------- */
.dish-sheet__art {
  position: relative;
  height: 210px;
  margin: 6px 14px 0;
  overflow: hidden;
  border-radius: 21px;
  background: #f5ecde;
}

.dish-sheet__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dish-sheet__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(46, 31, 18, 0.25), transparent 32%);
}

.dish-sheet__sticker {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 8px;
  color: #674b1c;
  background: rgba(255, 247, 219, 0.94);
  font-size: 9px;
  font-weight: 800;
  transform: rotate(-1.5deg);
}

.dish-sheet__body {
  padding: 15px 20px calc(20px + env(safe-area-inset-bottom));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid #f1dfca;
  border-radius: 999px;
  color: #a27642;
  background: #fffaf0;
  font-size: 8.5px;
  font-weight: 800;
}

.tag--love {
  color: #ae5c4e;
  border-color: #f5d8d1;
  background: #fff1ec;
}

.dish-sheet__body h2 {
  margin-top: 8px;
  font-family: var(--font-round);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}

.dish-sheet__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.dish-note {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px dashed #ead9c3;
  border-radius: 14px;
  background: #fdf8f0;
}

.dish-note span {
  color: #b29166;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dish-note p {
  margin-top: 3px;
  color: #756452;
  font-size: 10.5px;
  line-height: 1.65;
}

.dish-manage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #eadccb;
}

.dish-manage button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid #ecdfce;
  border-radius: 8px;
  color: #987e62;
  background: #fffaf3;
  font-size: 9px;
  font-weight: 800;
}

.dish-manage button:hover {
  border-color: #ddc6a7;
  background: #fff6e8;
}

.dish-manage button.is-danger {
  margin-left: auto;
  color: #bd6d5d;
  border-color: #f0d8d1;
  background: #fff6f3;
}

.dish-manage button.is-danger:hover {
  background: #ffede7;
}

.dish-manage .icon {
  width: 12px;
  height: 12px;
}

.dish-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.dish-sheet__footer .add-btn {
  min-width: 96px;
  height: 43px;
  border-radius: 13px;
  font-size: 13px;
}

.dish-sheet__footer .stepper {
  padding: 4px;
}

.dish-sheet__footer .stepper button {
  width: 34px;
  height: 34px;
}

.dish-sheet__footer .stepper b {
  min-width: 29px;
  font-size: 14px;
}

/* ----------------------------------------------------------------
   Cart sheet
----------------------------------------------------------------- */
.cart-sheet {
  padding: 0 18px calc(20px + env(safe-area-inset-bottom));
}

.sheet-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 12px;
}

.cart-view .sheet-heading {
  padding-right: 44px;
}

.sheet-heading h2 {
  margin-top: 2px;
  font-family: var(--font-round);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}

.clear-cart {
  padding: 7px 0 4px;
  color: #b2a292;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: #e3d6c6;
  text-underline-offset: 3px;
}

.clear-cart:hover {
  color: #bf6c5a;
}

.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #ebdfd0;
}

.cart-item:first-child {
  border-top: 0;
}

.cart-item__art {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid #f0e4d5;
}

.cart-item__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cart-item__main {
  min-width: 0;
  flex: 1;
}

.cart-item__main strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__main p {
  margin-top: 2px;
  color: #a39585;
  font-size: 9px;
}

.cart-item__side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__price {
  color: var(--price);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cart-item .stepper {
  gap: 0;
}

.cart-item .stepper button {
  width: 21px;
  height: 21px;
}

.cart-item .stepper b {
  min-width: 18px;
  font-size: 10px;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 25px;
  text-align: center;
}

.empty-cart__art {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 9px;
}

.empty-cart__art img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(87, 59, 31, 0.12);
  filter: grayscale(0.18);
}

.empty-cart__art span {
  position: absolute;
  right: -2px;
  bottom: 1px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
}

.empty-cart h3 {
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 900;
}

.empty-cart p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.empty-cart .primary-btn {
  width: auto;
  min-width: 116px;
  height: 38px;
  margin-top: 12px;
  padding: 0 18px;
  font-size: 11px;
}

.note-editor {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #f0e4d2;
  border-radius: 17px;
  background: #fdf8f0;
}

.note-editor__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-editor__heading label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.note-editor__heading span {
  color: #b7a595;
  font-size: 8px;
}

.note-chips {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.note-chips::-webkit-scrollbar {
  display: none;
}

.note-chips button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #f0dfc8;
  border-radius: 999px;
  color: #9d7540;
  background: #fffaf2;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.note-chips button:hover {
  border-color: #e7c47b;
  background: #fff5d9;
}

.note-editor textarea {
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 8px 9px;
  resize: none;
  border: 1px solid #eee1d1;
  border-radius: 10px;
  outline: 0;
  color: #645646;
  background: #fffdf9;
  font-size: 10.5px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-editor textarea:focus {
  border-color: #dfbd70;
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.15);
}

.note-editor textarea::placeholder {
  color: #bbaea0;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px 11px;
  color: #76695c;
  font-size: 11px;
}

.cart-total-row small {
  color: #b5a797;
  font-size: 8px;
}

.cart-total-row strong {
  color: var(--price);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cart-total-row strong b {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.primary-btn {
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 24px;
  border-radius: 14px;
  color: #3d2b0e;
  background: linear-gradient(180deg, #ffdc65, var(--yellow));
  box-shadow: 0 3px 0 #d6a52b, 0 8px 18px rgba(197, 145, 23, 0.14);
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #d6a52b;
}

.primary-btn .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.primary-btn--wide {
  width: 100%;
}

.primary-btn--dark {
  color: #fff8ea;
  background: linear-gradient(180deg, #383027, #211c17);
  box-shadow: 0 9px 18px rgba(36, 27, 19, 0.18);
}

.btn-price {
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffe79a;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 9px 0 2px;
  padding: 5px 0;
  color: #9d8f81;
  font-size: 10px;
  font-weight: 700;
}

.back-link .icon {
  width: 14px;
  height: 14px;
}

.confirm-stamp {
  margin-bottom: 5px;
  padding: 5px 7px;
  border: 1px solid #e5cdb0;
  border-radius: 7px;
  color: #ad8350;
  font-size: 8px;
  font-weight: 800;
  transform: rotate(2deg);
}

.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #eedfcb;
  border-radius: 16px;
  background: #fdf8f0;
}

.delivery-card__icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #a56b38;
  background: #f9e7c8;
}

.delivery-card__icon .icon {
  width: 15px;
  height: 15px;
}

.delivery-card strong {
  display: block;
  color: #5c4c3b;
  font-size: 11px;
  line-height: 1.4;
}

.delivery-card p {
  margin-top: 3px;
  color: #a29382;
  font-size: 9px;
  line-height: 1.5;
}

.confirm-list {
  margin-top: 11px;
  padding: 3px 12px;
  border: 1px solid #f0e5d6;
  border-radius: 16px;
  background: #fffaf4;
}

.confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed #ebdfcf;
  font-size: 10.5px;
}

.confirm-row:first-child {
  border-top: 0;
}

.confirm-row span {
  color: #7e6f60;
}

.confirm-row b {
  color: var(--price);
  font-size: 10.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.confirm-note {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #fbf2e4;
}

.confirm-note span {
  color: #b08d60;
  font-size: 8px;
  font-weight: 900;
}

.confirm-note p {
  margin-top: 3px;
  color: #6f5c49;
  font-size: 10px;
  line-height: 1.5;
}

.confirm-hint {
  margin-top: 8px;
  color: #b4a697;
  font-size: 8.5px;
  text-align: center;
}

/* ----------------------------------------------------------------
   Success
----------------------------------------------------------------- */
.success-overlay {
  align-items: center;
  padding: 18px;
}

.success-card {
  position: relative;
  z-index: 1;
  width: min(100%, 383px);
  max-height: 92dvh;
  overflow: hidden auto;
  padding: 26px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -12%, #fff4cf 0, transparent 34%),
    var(--paper);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}

.success-overlay.is-open .success-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.success-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-art__avatar {
  position: relative;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f6e8d2;
  box-shadow: 0 6px 14px rgba(101, 68, 34, 0.15);
  transform: rotate(-4deg);
}

.success-art__avatar:last-child {
  margin-left: -8px;
  transform: rotate(4deg);
}

.success-art__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.success-art__heart {
  position: relative;
  z-index: 2;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin: 23px -3px 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  box-shadow: 0 3px 9px rgba(194, 94, 78, 0.24);
}

.success-card .eyebrow {
  color: #b89763;
}

.success-card h2 {
  margin-top: 3px;
  font-family: var(--font-round);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.success-sub {
  max-width: 260px;
  margin: 5px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.success-receipt {
  position: relative;
  margin: 15px 0 14px;
  padding: 14px 14px 13px;
  border: 1px dashed #e5d3bd;
  border-radius: 16px;
  background: #fffaf1;
  text-align: left;
}

.success-receipt__tear {
  position: absolute;
  top: -1px;
  left: 15px;
  width: 52px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--yellow);
  opacity: 0.7;
}

.receipt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  color: #9d8e7d;
  font-size: 9px;
}

.receipt-row b {
  max-width: 68%;
  overflow: hidden;
  color: #5e5043;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-row--total {
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px dashed #e9dccb;
  color: #766756;
  font-size: 10px;
}

.receipt-row--total strong {
  color: var(--price);
  font-size: 12px;
  font-weight: 900;
}

.receipt-row--total strong b {
  color: inherit;
  font-size: 22px;
}

.coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: linear-gradient(120deg, #fff2b9, #ffe6a2);
}

.coupon__icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #e88b76;
  font-size: 12px;
}

.coupon strong {
  display: block;
  color: #71521c;
  font-size: 10px;
  font-weight: 900;
}

.coupon small {
  display: block;
  margin-top: 1px;
  color: #9a7839;
  font-size: 7.5px;
}

.success-card .primary-btn {
  height: 46px;
  font-size: 12px;
}

.text-btn {
  margin-top: 9px;
  padding: 5px 8px;
  color: #a79686;
  font-size: 9.5px;
  text-decoration: underline;
  text-decoration-color: #e5d9ca;
  text-underline-offset: 3px;
}

.text-btn:hover {
  color: #7e6e5d;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: 26%;
  left: 50%;
  color: var(--coral);
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  animation: confettiBurst 1.15s var(--ease-out) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ----------------------------------------------------------------
   Toast & floating hearts
----------------------------------------------------------------- */
.toast {
  position: fixed;
  right: 0;
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 400;
  width: max-content;
  max-width: calc(100% - 44px);
  margin: 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff9ed;
  background: rgba(42, 34, 27, 0.93);
  box-shadow: 0 10px 24px rgba(40, 26, 14, 0.2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
  backdrop-filter: blur(10px);
}

body.tab-about .toast {
  bottom: calc(22px + env(safe-area-inset-bottom));
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-heart {
  position: fixed;
  z-index: 500;
  color: var(--coral);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  animation: floatHeart 0.75s var(--ease-out) forwards;
}

/* ----------------------------------------------------------------
   Animations
----------------------------------------------------------------- */
@keyframes livePulse {
  0% {
    opacity: 0.75;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cartBump {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.018) translateY(-2px);
  }
  70% {
    transform: scale(0.995);
  }
}

@keyframes floatHeart {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.7) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 8px)), -48px) scale(1.25) rotate(16deg);
  }
}

@keyframes confettiBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.4) rotate(0deg);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 120px)) scale(var(--scale, 1)) rotate(var(--rot, 120deg));
  }
}

@keyframes quoteIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.love-quote.is-changing {
  animation: quoteIn 0.28s var(--ease-out) both;
}

/* ----------------------------------------------------------------
   Rule & dish editors
----------------------------------------------------------------- */
.editor-sheet {
  padding: 0 18px calc(18px + env(safe-area-inset-bottom));
}

.editor-sheet .sheet-heading {
  padding-right: 48px;
}

.editor-stamp {
  margin-bottom: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(197, 151, 79, 0.38);
  border-radius: 6px;
  color: #b0874e;
  background: #fffaf0;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.rules-editor-lead {
  margin: 1px 2px 12px;
  color: #978878;
  font-size: 10px;
  line-height: 1.7;
}

.rules-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-editor-empty {
  padding: 14px 10px;
  border: 1px dashed #e7d6bf;
  border-radius: 12px;
  color: #ad9b88;
  background: #fffaf2;
  font-size: 10px;
  text-align: center;
}

.rule-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #eddfcf;
  border-radius: 13px;
  background: #fdf8f0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rule-edit-row:focus-within {
  border-color: #e2bd6a;
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.14);
}

.rule-edit-index {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #ac874a;
  background: #f8efdf;
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
  font-weight: 700;
}

.rule-edit-row input {
  min-width: 0;
  flex: 1;
  height: 31px;
  border: 0;
  outline: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
}

.rule-edit-row input::placeholder {
  color: #b9aa9a;
}

.rule-remove-btn {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #c39a8d;
  background: transparent;
  transition: color 0.18s ease, background 0.18s ease;
}

.rule-remove-btn:hover {
  color: #b55f4e;
  background: #ffede8;
}

.rule-remove-btn .icon {
  width: 14px;
  height: 14px;
}

.add-rule-btn {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 9px;
  border: 1px dashed #dfc9a8;
  border-radius: 12px;
  color: #a17d48;
  background: #fffaf2;
  font-size: 10px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.add-rule-btn:hover {
  border-color: #cda95e;
  background: #fff5dc;
}

.add-rule-btn:disabled {
  opacity: 0.45;
}

.add-rule-btn .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.rules-editor-hint {
  margin-top: 7px;
  color: #b4a494;
  font-size: 8.5px;
  text-align: center;
}

.editor-actions {
  position: sticky;
  bottom: calc(-18px - env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px -18px -18px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.72), var(--paper) 28%);
  border-top: 1px solid rgba(239, 228, 213, 0.65);
}

.editor-actions .primary-btn {
  min-width: 142px;
  height: 45px;
  margin-left: auto;
  font-size: 12px;
}

.editor-actions .primary-btn .icon {
  width: 15px;
  height: 15px;
}

.editor-reset {
  flex: 0 0 auto;
  padding: 8px 2px;
  text-decoration: none;
  font-size: 10px;
}

.editor-reset:hover {
  color: #b56e5e;
}

.dish-editor-head {
  padding: 13px 4px 13px;
}

.dish-editor-head h2 {
  margin-top: 2px;
  font-family: var(--font-round);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
}

.dish-editor-head > p:last-child {
  margin-top: 3px;
  color: #a39381;
  font-size: 10px;
}

.names-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.names-form .form-field input {
  text-align: center;
  font-weight: 800;
}

.names-hint {
  margin-top: 5px;
  color: #b3a392;
  font-size: 8.5px;
  text-align: right;
}

.names-recipient-field {
  margin-top: 9px;
}

.auto-countdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eddfce;
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(247, 207, 81, 0.18) 0, transparent 42%),
    #fdf8f0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.auto-countdown:hover {
  border-color: #dfc596;
  background-color: #fffaf0;
}

.auto-countdown > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auto-countdown__switch {
  position: relative;
  width: 35px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e3d7c7;
  box-shadow: inset 0 1px 2px rgba(88, 61, 33, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.auto-countdown__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 4px rgba(83, 56, 29, 0.2);
  transition: transform 0.22s var(--ease-out);
}

.auto-countdown > input:checked + .auto-countdown__switch {
  background: #e7b735;
}

.auto-countdown > input:checked + .auto-countdown__switch::after {
  transform: translateX(14px);
}

.auto-countdown > input:focus-visible + .auto-countdown__switch {
  outline: 3px solid rgba(221, 167, 45, 0.6);
  outline-offset: 3px;
}

.auto-countdown__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-countdown__copy strong {
  color: #655443;
  font-size: 10.5px;
  font-weight: 900;
}

.auto-countdown__copy small {
  color: #a08f7c;
  font-size: 8.5px;
  line-height: 1.5;
}

.auto-countdown__copy b {
  color: #9c6b2c;
  font-weight: 900;
}

.countdown-date-field {
  margin-top: 12px;
}

.countdown-date-field input {
  height: 46px;
  color: #6e5d4b;
  font-size: 15px;
  font-weight: 800;
}

.countdown-date-field input:disabled {
  color: #b0a090;
  background: #f7f1e7;
  border-color: #eee3d4;
  cursor: not-allowed;
}

.countdown-preview {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px dashed #e9d5b0;
  border-radius: 13px;
  background: #fff8e5;
}

.countdown-preview > span {
  flex: 0 0 auto;
  color: #b18d56;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.countdown-preview p {
  min-width: 0;
  color: #7c6031;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.names-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px dashed #ead7bf;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.8) 0, transparent 34%),
    #fffaf2;
}

.names-preview__avatars {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.names-preview__avatars img {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(109, 75, 38, 0.13);
}

.names-preview__avatars img:first-child {
  transform: rotate(-4deg);
}

.names-preview__avatars img:last-child {
  margin-left: -5px;
  transform: rotate(4deg);
}

.names-preview__avatars span {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin: 17px -6px 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 8px;
  line-height: 1;
}

.names-preview p {
  color: #948270;
  font-size: 9.5px;
  line-height: 1.55;
}

.names-preview__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.names-preview__copy p {
  line-height: 1.45;
}

.names-preview__copy small {
  color: #b2946d;
  font-size: 8.5px;
  line-height: 1.4;
}

.names-preview__copy small b {
  color: #a2663e;
}

.names-preview b {
  color: var(--ink);
  font-weight: 900;
}

.dish-editor-media {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #efe2d0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(247, 207, 81, 0.16) 0, transparent 42%),
    #fdf8f0;
}

.dish-editor-preview {
  position: relative;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(108, 78, 43, 0.11);
  border-radius: 15px;
  background: #f5ecdf;
  box-shadow: 0 4px 10px rgba(91, 62, 31, 0.08);
}

.dish-editor-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dish-editor-preview > span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 3px 4px;
  border-radius: 5px;
  color: #fff9ee;
  background: rgba(42, 32, 22, 0.62);
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(3px);
}

.dish-editor-media__copy {
  min-width: 0;
  flex: 1;
}

.dish-editor-media__copy strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.dish-editor-media__copy p {
  margin-top: 2px;
  color: #a08f7c;
  font-size: 9px;
  line-height: 1.55;
}

.dish-editor-media__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.upload-label,
.revert-photo-btn {
  height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.upload-label {
  color: #72501d;
  background: var(--yellow);
  border: 1px solid #e0ae2f;
}

.upload-label:hover {
  background: #ffd95f;
}

.revert-photo-btn {
  color: #9f8a70;
  background: #fffaf1;
  border: 1px solid #e8d9c7;
}

.revert-photo-btn:hover {
  border-color: #d8be96;
  background: #fff5e5;
}

.upload-label .icon {
  width: 12px;
  height: 12px;
}

.dish-editor-media__copy small {
  display: block;
  margin-top: 5px;
  color: #b6a696;
  font-size: 7.5px;
}

.dish-form {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
  gap: 11px 9px;
  margin-top: 15px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  border: 0;
  padding: 0;
}

.form-field > span:first-child,
.form-field legend {
  color: #806e5b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.form-field input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #ecdfcf;
  border-radius: 11px;
  outline: 0;
  color: var(--ink-soft);
  background: #fffaf3;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input::placeholder {
  color: #b9aa9a;
  font-size: 11px;
  font-weight: 400;
}

.form-field input:focus {
  border-color: #dfbb68;
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.14);
}

.form-field--wide {
  grid-column: 1 / -1;
}

.money-field {
  display: flex;
  align-items: center;
  height: 42px;
  padding-left: 10px;
  border: 1px solid #ecdfcf;
  border-radius: 11px;
  color: var(--price);
  background: #fffaf3;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.money-field:focus-within {
  border-color: #dfbb68;
  box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.14);
}

.money-field input {
  height: 40px;
  padding: 0 8px 0 3px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--price);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.money-field input:focus {
  border: 0;
  box-shadow: none;
}

.category-field {
  gap: 6px;
}

.category-field legend {
  margin-bottom: 0;
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-pick {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  border: 1px solid #ecdfcf;
  border-radius: 8px;
  color: #8f7f6d;
  background: #fffaf3;
  font-size: 9px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.category-pick:hover {
  border-color: #dfc79d;
  background: #fff5e4;
}

.category-pick.is-active {
  color: #6f501b;
  border-color: #e4bc54;
  background: #fff1b8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.love-check {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px dashed #ead7c2;
  border-radius: 9px;
  color: #96775a;
  background: #fffaf3;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.love-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--coral);
}

.dish-form-error {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #f0d4cc;
  border-radius: 9px;
  color: #b65f4f;
  background: #fff4f0;
  font-size: 9.5px;
  line-height: 1.5;
}

.dish-editor-sheet .editor-actions {
  margin-top: 14px;
}

.dish-card.is-new {
  animation: newDishGlow 1.4s var(--ease-out);
}

@keyframes newDishGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(247, 207, 81, 0.62), 0 8px 24px rgba(168, 122, 48, 0.18);
  }
  100% {
    box-shadow: 0 4px 13px rgba(97, 67, 35, 0.045);
  }
}

/* ----------------------------------------------------------------
   Responsive refinements
----------------------------------------------------------------- */
@media (min-width: 540px) {
  .intro {
    padding-right: 24px;
    padding-left: 24px;
  }

  .tabs-row {
    padding-right: 22px;
    padding-left: 24px;
  }

  .menu-layout {
    grid-template-columns: 89px minmax(0, 1fr);
    gap: 13px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .kitchen-card {
    margin-right: 18px;
    margin-left: 18px;
  }

  .dish-card {
    padding: 10px;
  }

  .dish-art {
    width: 86px;
    height: 86px;
  }

  .dish-name {
    font-size: 16.5px;
  }

  .dish-desc {
    font-size: 11px;
  }

  .quote {
    font-size: 13px;
  }

  .about-view {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 30px 0 54px;
  }

  body::before {
    opacity: 0.52;
  }

  .app-shell {
    min-height: calc(100dvh - 84px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 38px;
    box-shadow: var(--shadow-lg);
  }

  .hero {
    height: 208px;
  }

  .sheet {
    border-radius: 32px 32px 0 0;
  }

  .cartbar-wrap {
    bottom: 30px;
    width: 420px;
  }

  .toast {
    bottom: 112px;
  }

  .desk-decor {
    position: fixed;
    inset: 0;
    display: block;
    pointer-events: none;
    overflow: hidden;
  }

  .desk-note {
    position: absolute;
    top: 31%;
    color: #c3a988;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    opacity: 0.75;
    transform: rotate(-8deg);
  }

  .desk-note::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -11px;
    width: 74%;
    height: 1px;
    background: #d6bea0;
    transform: rotate(-2deg);
  }

  .desk-note--left {
    left: calc(50% - 382px);
  }

  .desk-note--right {
    top: 57%;
    left: auto;
    right: calc(50% - 382px);
    color: #b59f88;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: 0.26em;
    text-align: right;
    transform: rotate(7deg);
  }

  .desk-note--right::after {
    right: auto;
    left: 0;
    width: 68%;
    background: #d8c4aa;
  }

  .desk-star {
    position: absolute;
    color: #d9b457;
    font-size: 18px;
    opacity: 0.65;
  }

  .desk-star--one {
    top: 18%;
    left: calc(50% - 330px);
    transform: rotate(12deg);
  }

  .desk-star--two {
    right: calc(50% - 346px);
    bottom: 21%;
    font-size: 13px;
    transform: rotate(-10deg);
  }

  .desk-heart {
    position: absolute;
    right: calc(50% - 320px);
    top: 42%;
    color: rgba(233, 131, 112, 0.4);
    font-size: 48px;
    transform: rotate(11deg);
  }

  .overlay {
    align-items: center;
    padding: 24px;
  }

  .bottom-sheet {
    max-height: min(86dvh, 820px);
    border-radius: 29px;
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
  }

  .overlay.is-open .bottom-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .sheet-grip {
    top: 8px;
  }

  .cart-sheet {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 374px) {
  .hero {
    height: 154px;
  }

  .hero-caption {
    font-size: 9.5px;
  }

  .intro {
    padding-right: 16px;
    padding-left: 16px;
  }

  .title-left {
    gap: 7px;
  }

  h1 {
    font-size: 22px;
  }

  .share-btn {
    padding-right: 6px;
    font-size: 10.5px;
  }

  .share-btn .icon {
    width: 13px;
    height: 13px;
  }

  .love-bubble {
    min-width: 48px;
    padding: 0 9px;
  }

  .quote {
    font-size: 11px;
  }

  .tabs-row {
    padding-right: 14px;
    padding-left: 16px;
  }

  .kitchen-card {
    margin-right: 12px;
    margin-left: 12px;
  }

  .menu-layout {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 0 11px;
  }

  .rail-item {
    min-height: 66px;
  }

  .rail-name {
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .section-note {
    display: none;
  }

  .section-tools {
    gap: 0;
    padding-bottom: 1px;
  }

  .add-dish-btn {
    height: 24px;
    padding: 0 7px 0 5px;
    font-size: 8.5px;
  }

  .editor-sheet {
    padding-right: 14px;
    padding-left: 14px;
  }

  .editor-sheet .sheet-heading {
    padding-right: 44px;
  }

  .editor-actions {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .editor-actions .primary-btn {
    min-width: 124px;
    font-size: 11.5px;
  }

  .dish-editor-head h2 {
    font-size: 23px;
  }

  .dish-editor-preview {
    width: 92px;
    height: 92px;
  }

  .dish-editor-media {
    gap: 9px;
    padding: 9px;
  }

  .dish-editor-media__copy p {
    font-size: 8.5px;
  }

  .dish-form {
    gap: 9px 7px;
  }

  .form-field input {
    padding: 0 9px;
  }

  .rule-edit-row {
    gap: 6px;
    padding-right: 5px;
    padding-left: 6px;
  }

  .rule-edit-row input {
    font-size: 13px;
  }

  .dish-card {
    gap: 8px;
    padding: 8px;
  }

  .dish-art {
    width: 69px;
    height: 69px;
    border-radius: 15px;
  }

  .dish-name {
    font-size: 14px;
  }

  .dish-desc {
    font-size: 9.5px;
  }

  .price b {
    font-size: 14px;
  }

  .coin {
    width: 15px;
    height: 15px;
  }

  .add-btn {
    min-width: 46px;
    height: 26px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .stepper button {
    width: 21px;
    height: 21px;
  }

  .stepper b {
    min-width: 17px;
    font-size: 11px;
  }

  .cartbar {
    height: 62px;
  }

  .checkout-quick {
    height: 48px;
    min-width: 96px;
    padding: 0 15px;
    font-size: 13px;
  }

  .cart-total b {
    font-size: 16px;
  }

  .cart-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .cart-hint {
    font-size: 7px;
  }

  .about-view {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
