:root {
  --canvas: #f6f1e8;
  --canvas-soft: #fbfaf6;
  --ink: #171917;
  --ink-soft: #2f352f;
  --muted: #73766f;
  --faint: #a6a296;
  --surface: #fffefa;
  --surface-warm: #f2eadf;
  --line: rgba(23, 25, 23, 0.1);
  --line-strong: rgba(23, 25, 23, 0.2);
  --chili: #d94c35;
  --chili-dark: #a83224;
  --jade: #0f6b5b;
  --jade-soft: #dfeee7;
  --gold: #dfa64c;
  --stage: #121613;
  --stage-soft: #1b211d;
  --shadow-sm: 0 10px 28px rgba(27, 22, 17, 0.08);
  --shadow-md: 0 22px 60px rgba(27, 22, 17, 0.14);
  --shadow-stage: 0 28px 80px rgba(18, 22, 19, 0.26);
  --radius-card: 8px;
  --radius-panel: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(18, 22, 19, 0.04), rgba(18, 22, 19, 0) 220px),
    linear-gradient(135deg, #f6f1e8 0%, #fbfaf6 48%, #edf4ef 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 25, 23, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 23, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  pointer-events: none;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
}

img {
  max-width: 100%;
}

.app-shell {
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(23, 25, 23, 0.08);
  background: rgba(246, 241, 232, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fffefa;
  background: var(--stage);
  box-shadow: 0 8px 22px rgba(18, 22, 19, 0.16);
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  line-height: 1.1;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.64);
  box-shadow: 0 8px 28px rgba(27, 22, 17, 0.05);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #fffefa;
  background: var(--chili);
  font-size: 10px;
  line-height: 1;
}

.nav-badge[hidden] {
  display: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fffefa;
  background: var(--stage);
  box-shadow: 0 10px 22px rgba(18, 22, 19, 0.14);
}

.page {
  padding: 44px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5.7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.heading-note,
.catalog-count {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 140px;
  justify-content: flex-end;
  padding-bottom: 8px;
  color: var(--muted);
}

.heading-note strong,
.catalog-count strong {
  color: var(--chili);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 0.95;
}

.heading-note span,
.catalog-count span {
  max-width: 80px;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.lottery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.62fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 34px;
}

.wheel-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    var(--stage);
  box-shadow: var(--shadow-stage);
}

.wheel-wrap {
  position: relative;
  display: grid;
  width: min(100%, 500px);
  aspect-ratio: 1;
  place-items: center;
}

.wheel-wrap::before {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.wheel {
  --wheel-size: min(100%, 462px);
  --label-radius: clamp(112px, 27vw, 190px);
  position: relative;
  width: var(--wheel-size);
  aspect-ratio: 1;
  border: 10px solid #fff7e8;
  border-radius: 50%;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 0 32px rgba(18, 22, 19, 0.22);
  transition: transform 4.6s cubic-bezier(0.12, 0.74, 0.18, 1);
}

.wheel::after {
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 22px solid transparent;
  border-bottom: 52px solid var(--gold);
  border-left: 22px solid transparent;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.2));
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  margin: -9px 0 0 -31px;
  overflow: hidden;
  color: #fffefa;
  font-size: 10px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(18, 22, 19, 0.4);
  white-space: nowrap;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 124px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 8px solid #fff7e8;
  border-radius: 50%;
  color: rgba(255, 254, 250, 0.72);
  background: var(--stage);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.center-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  color: var(--stage);
  background: var(--gold);
  font-family: Georgia, serif;
  font-size: 22px;
}

.wheel-caption {
  margin: 20px 0 0;
  color: rgba(255, 254, 250, 0.6);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.main-nav a:focus-visible,
.filter-chip:focus-visible,
.back-link:focus-visible,
.text-action:focus-visible,
.food-card:focus-visible,
.home-function-card:focus-visible,
.home-category-chip:focus-visible,
.home-featured-card:focus-visible,
.quantity-control button:focus-visible,
.remove-order:focus-visible {
  outline: 3px solid rgba(217, 76, 53, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: #fffefa;
  background: var(--chili);
  box-shadow: 0 13px 28px rgba(217, 76, 53, 0.24);
}

.button-primary:hover {
  background: var(--chili-dark);
}

.button-secondary {
  color: var(--stage);
  border: 1px solid rgba(15, 107, 91, 0.2);
  background: var(--jade-soft);
}

.button-secondary:hover {
  border-color: rgba(15, 107, 91, 0.36);
  background: #d2e8dd;
}

.button-quiet {
  color: var(--ink);
  border: 1px solid rgba(23, 25, 23, 0.12);
  background: var(--surface-warm);
}

.home-view {
  padding-top: 30px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 34px;
  min-height: 560px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(23, 25, 23, 0.09);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 80% 18%, rgba(223, 166, 76, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(242, 234, 223, 0.9) 48%, rgba(223, 238, 231, 0.82));
  box-shadow: var(--shadow-md);
}

.home-hero::before {
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(217, 76, 53, 0.1);
  content: "";
}

.home-hero-copy,
.home-hero-visual {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  align-self: center;
}

.home-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(43px, 5vw, 72px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 32px;
}

.home-stats div {
  min-height: 96px;
  padding: 17px;
  border: 1px solid rgba(23, 25, 23, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.72);
}

.home-stats strong {
  display: block;
  color: var(--chili);
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.home-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-hero-visual {
  min-height: 470px;
}

.hero-photo {
  overflow: hidden;
  border: 8px solid rgba(255, 254, 250, 0.88);
  border-radius: var(--radius-panel);
  background: var(--surface-warm);
  box-shadow: var(--shadow-stage);
}

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

.hero-photo-main {
  width: min(88%, 420px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.hero-photo-small {
  position: absolute;
  width: min(42%, 190px);
  aspect-ratio: 1 / 1;
  border-width: 6px;
}

.hero-photo-one {
  bottom: 38px;
  left: 2px;
  transform: rotate(-4deg);
}

.hero-photo-two {
  right: 22px;
  bottom: -10px;
  transform: rotate(5deg);
}

.hero-float-card {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  gap: 5px;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  color: #fffefa;
  background: rgba(18, 22, 19, 0.92);
  box-shadow: 0 18px 44px rgba(18, 22, 19, 0.2);
}

.hero-float-card span {
  color: rgba(255, 254, 250, 0.68);
  font-size: 12px;
}

.home-function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-function-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px;
  border: 1px solid rgba(23, 25, 23, 0.09);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-function-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 25, 23, 0.2);
  box-shadow: var(--shadow-md);
}

.home-function-card span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.home-function-card strong {
  color: var(--ink);
  font-size: 21px;
}

.home-function-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.home-block {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(23, 25, 23, 0.09);
  border-radius: var(--radius-panel);
  background: rgba(255, 254, 250, 0.76);
  box-shadow: var(--shadow-sm);
}

.home-block-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.home-block-heading .eyebrow {
  margin-bottom: 8px;
}

.home-block-heading h2,
.home-order-panel h2 {
  margin-bottom: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.home-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(15, 107, 91, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: var(--jade-soft);
  font-size: 13px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.home-category-chip:hover {
  transform: translateY(-2px);
  background: #d2e8dd;
}

.home-category-chip strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fffefa;
  background: var(--jade);
  font-size: 11px;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-featured-card {
  overflow: hidden;
  border: 1px solid rgba(23, 25, 23, 0.09);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(27, 22, 17, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.home-featured-copy {
  padding: 15px;
}

.home-featured-copy span {
  color: var(--jade);
  font-size: 11px;
  font-weight: 900;
}

.home-featured-copy h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.home-featured-copy p {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.home-order-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius-panel);
  color: #fffefa;
  background:
    radial-gradient(circle at 84% 20%, rgba(223, 166, 76, 0.34), transparent 25%),
    linear-gradient(135deg, var(--stage) 0%, #20372f 100%);
  box-shadow: var(--shadow-stage);
}

.home-order-panel h2 {
  color: #fffefa;
}

.home-order-panel p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 254, 250, 0.72);
  line-height: 1.7;
}

.home-order-panel.is-empty {
  color: var(--ink);
  border: 1px solid rgba(23, 25, 23, 0.09);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-sm);
}

.home-order-panel.is-empty h2 {
  color: var(--ink);
}

.home-order-panel.is-empty p {
  color: var(--muted);
}

.spin-button {
  width: min(100%, 300px);
  min-height: 56px;
  margin-top: 24px;
  border-radius: 999px;
  font-size: 16px;
}

.lottery-aside {
  display: grid;
  gap: 14px;
}

.aside-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 136px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow-sm);
}

.aside-card.accent-card {
  color: #fffefa;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--stage) 0%, #1e302b 100%);
}

.aside-card > div {
  display: grid;
  gap: 6px;
}

.aside-card strong {
  font-size: 15px;
}

.aside-card span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.aside-card.accent-card span:last-child {
  color: rgba(255, 254, 250, 0.66);
}

.aside-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.aside-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--jade);
  background: var(--jade-soft);
  font-size: 25px;
}

.lottery-aside > .button {
  width: 100%;
  margin-top: 4px;
}

.catalog-heading {
  margin-bottom: 34px;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -12px 0 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 254, 250, 0.76);
  box-shadow: 0 7px 20px rgba(27, 22, 17, 0.04);
  font-size: 12px;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-chip strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--jade);
  background: var(--jade-soft);
  font-family: Georgia, serif;
  font-size: 12px;
}

.filter-chip.is-active {
  color: #fffefa;
  border-color: var(--stage);
  background: var(--stage);
}

.filter-chip.is-active strong {
  color: var(--stage);
  background: var(--gold);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.food-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.food-card:hover,
.food-card:focus-visible {
  border-color: rgba(23, 25, 23, 0.22);
  outline: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.food-card-image {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-warm);
  transition: transform 220ms ease, filter 220ms ease;
}

.food-card:hover .food-card-image,
.food-card:focus-visible .food-card-image {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.025);
}

.food-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 18px 16px;
}

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

.food-card h2 {
  min-height: 34px;
  margin-bottom: 11px;
  font-size: 20px;
  line-height: 1.28;
}

.food-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: var(--canvas-soft);
  font-family: Georgia, serif;
  font-size: 13px;
}

.tag-row,
.detail-tags,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span,
.meta-row span {
  padding: 5px 9px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  border-radius: 999px;
  color: var(--jade);
  background: var(--jade-soft);
  font-size: 11px;
  font-weight: 900;
}

.food-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 14px 0 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--faint);
  font-size: 12px;
}

.food-card-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.text-action {
  flex: 0 0 auto;
  color: var(--chili);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  padding: 0;
}

.add-order-link {
  color: var(--jade);
}

.detail-view {
  max-width: 1080px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.back-link:hover {
  color: var(--chili);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.detail-image-wrap {
  overflow: hidden;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: var(--radius-card);
  background: var(--surface-warm);
  box-shadow: var(--shadow-md);
}

.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
}

.detail-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 5.6vw, 72px);
}

.detail-description {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-facts {
  display: flex;
  gap: 42px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-facts div {
  display: grid;
  gap: 7px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.coming-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 46px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 107, 91, 0.18);
  border-radius: var(--radius-card);
  background: rgba(223, 238, 231, 0.78);
}

.coming-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fffefa;
  background: var(--jade);
  font-size: 24px;
}

.coming-card h2 {
  margin-bottom: 7px;
  font-size: 17px;
}

.coming-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.recipe-panel {
  display: grid;
  gap: 28px;
  margin-top: 46px;
}

.recipe-source-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(15, 107, 91, 0.16);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 92% 18%, rgba(223, 166, 76, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(239, 232, 218, 0.78));
  box-shadow: var(--shadow-sm);
}

.recipe-source-card h2,
.recipe-section-heading h2,
.recipe-prep-card h2,
.recipe-tips-card h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}

.recipe-source-card p {
  max-width: 680px;
  margin: 12px 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.recipe-section-heading {
  display: grid;
  gap: 8px;
}

.recipe-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recipe-info-card,
.recipe-prep-card,
.recipe-step,
.recipe-tips-card {
  border: 1px solid rgba(23, 25, 23, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 8px 24px rgba(27, 22, 17, 0.05);
}

.recipe-info-card {
  padding: 20px;
}

.recipe-info-card h3 {
  margin-bottom: 13px;
  color: var(--chili);
  font-size: 16px;
}

.recipe-info-card ul,
.recipe-prep-card ul,
.recipe-tips-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.recipe-info-card li::marker,
.recipe-prep-card li::marker,
.recipe-tips-card li::marker {
  color: var(--gold);
}

.recipe-prep-card {
  padding: clamp(22px, 3vw, 28px);
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 76, 53, 0.08), transparent 32%),
    rgba(255, 254, 250, 0.88);
}

.recipe-prep-card h2 {
  margin-bottom: 14px;
}

.recipe-steps {
  display: grid;
  gap: 14px;
}

.recipe-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.recipe-step-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fffefa;
  background: linear-gradient(135deg, var(--chili), #b83a28);
  box-shadow: 0 10px 20px rgba(217, 76, 53, 0.2);
  font-family: Georgia, serif;
  font-weight: 900;
}

.recipe-step h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.recipe-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.recipe-tips-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at 88% 10%, rgba(15, 107, 91, 0.16), transparent 30%),
    rgba(223, 238, 231, 0.76);
}

.empty-state {
  display: grid;
  min-height: 55vh;
  place-content: center;
  justify-items: start;
}

.empty-state h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 68px);
}

.empty-state p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--muted);
}

.order-count {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 170px;
  justify-content: flex-end;
  padding-bottom: 8px;
  color: var(--muted);
}

.order-count strong {
  color: var(--chili);
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 0.95;
}

.order-count span {
  max-width: 104px;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.order-heading {
  margin-bottom: 34px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-sm);
}

.order-item-image {
  display: block;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-warm);
}

.order-item-copy {
  min-width: 0;
}

.order-item-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.order-item-title-row h2 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.order-item-title-row span,
.order-item-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-item-copy p {
  display: -webkit-box;
  margin-bottom: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 23, 0.12);
  border-radius: 999px;
  background: var(--canvas-soft);
}

.quantity-control button,
.quantity-control span {
  display: grid;
  width: 100%;
  height: 38px;
  place-items: center;
}

.quantity-control button {
  color: var(--ink);
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.quantity-control button:hover {
  background: var(--jade-soft);
}

.quantity-control span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.remove-order {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(217, 76, 53, 0.22);
  border-radius: 999px;
  color: var(--chili);
  background: rgba(217, 76, 53, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.remove-order:hover {
  background: rgba(217, 76, 53, 0.14);
}

.order-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.shopping-summary,
.shopping-view {
  margin-top: 26px;
}

.shopping-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(15, 107, 91, 0.18);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 90% 0%, rgba(223, 166, 76, 0.18), transparent 34%),
    rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow-sm);
}

.shopping-summary-copy h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.shopping-summary-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.shopping-summary-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shopping-summary-stats span,
.shopping-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 25, 23, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(246, 241, 232, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.shopping-summary-stats strong,
.shopping-count strong {
  color: var(--jade);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.shopping-summary-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shopping-summary > .button {
  grid-column: 1 / -1;
  justify-self: end;
}

.shopping-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.shopping-count {
  min-width: 178px;
  justify-content: center;
  border-radius: var(--radius-card);
}

.shopping-count span {
  max-width: 96px;
  line-height: 1.35;
}

.shopping-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shopping-group {
  padding: 18px;
  border: 1px solid rgba(23, 25, 23, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow-sm);
}

.shopping-group.is-compact {
  padding: 14px;
  background: rgba(251, 250, 246, 0.82);
  box-shadow: none;
}

.shopping-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.shopping-group-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.28;
}

.shopping-group.is-compact .shopping-group-header h2 {
  font-size: 16px;
}

.shopping-group-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shopping-group-header strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--chili-dark);
  background: rgba(217, 76, 53, 0.1);
  font-size: 12px;
}

.shopping-ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shopping-ingredient-list li {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(15, 107, 91, 0.16);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(223, 238, 231, 0.72);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.shopping-ingredient-list li.is-more {
  color: var(--jade);
  background: rgba(223, 166, 76, 0.16);
}

.shopping-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.order-empty {
  min-height: 58vh;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(23, 25, 23, 0.08);
  color: var(--muted);
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 22, 19, 0.64);
  backdrop-filter: blur(12px);
}

picture {
  display: block;
}

.result-modal {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.result-modal .eyebrow,
.result-modal h2,
.result-modal .meta-row,
.result-modal .result-description,
.result-modal .result-actions {
  margin-right: 28px;
  margin-left: 28px;
}

.result-modal .eyebrow {
  margin-top: 30px;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: #fffefa;
  background: rgba(19, 24, 21, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.modal-close:focus-visible,
.modal-close:hover {
  background: var(--chili);
  color: #fffefa;
}

.result-modal h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 38px;
  line-height: 1.15;
}

.result-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-warm);
}

.meta-row {
  margin-top: 18px;
}

.meta-row span {
  color: var(--ink-soft);
  background: var(--surface-warm);
}

.result-description {
  margin-top: 17px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
}

.result-actions .button {
  flex: 1 1 130px;
}

.result-close-secondary {
  flex-basis: 100%;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero-visual {
    min-height: 440px;
  }

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

  .lottery-layout {
    grid-template-columns: 1fr;
  }

  .wheel-panel {
    min-height: 0;
  }

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

  .lottery-aside > .button {
    grid-column: 1 / -1;
  }

  .food-grid {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(calc(100% - 28px), 560px);
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
    min-height: 72px;
    padding: 12px 0 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 430px;
    gap: 2px;
    padding: 3px;
    overflow: hidden;
    justify-self: start;
  }

  .main-nav a {
    min-width: 0;
    width: 100%;
    padding: 7px 4px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .nav-badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .page {
    padding: 34px 0 54px;
  }

  .section-heading {
    display: block;
  }

  h1 {
    font-size: 45px;
  }

  .lede {
    font-size: 15px;
  }

  .heading-note,
  .catalog-count,
  .order-count {
    justify-content: flex-start;
    margin-top: 20px;
    padding-bottom: 0;
  }

  .home-view {
    padding-top: 22px;
  }

  .home-hero {
    gap: 24px;
    padding: 20px;
    border-radius: 12px;
  }

  .home-actions {
    margin-top: 22px;
  }

  .home-actions .button {
    flex: 1 1 150px;
  }

  .home-stats {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .home-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 14px;
    padding: 14px 16px;
  }

  .home-stats span {
    margin-top: 0;
    text-align: right;
  }

  .home-hero-visual {
    min-height: 330px;
  }

  .hero-photo-main {
    width: 82%;
  }

  .hero-photo-small {
    width: min(42%, 150px);
  }

  .hero-photo-one {
    bottom: 36px;
  }

  .hero-photo-two {
    right: 6px;
    bottom: 0;
  }

  .hero-float-card {
    right: 4px;
    bottom: 58px;
    min-width: 168px;
    padding: 13px 14px;
  }

  .home-function-grid,
  .home-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-function-card {
    min-height: 112px;
    padding: 18px;
  }

  .home-block,
  .home-order-panel {
    padding: 18px;
    border-radius: 12px;
  }

  .home-block-heading,
  .home-order-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-category-grid {
    flex-wrap: nowrap;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-category-grid::-webkit-scrollbar {
    display: none;
  }

  .home-category-chip {
    flex: 0 0 auto;
  }

  .home-order-panel .button {
    width: 100%;
  }

  .lottery-layout {
    margin-top: 30px;
  }

  .wheel-panel {
    padding: 18px 14px 22px;
    border-radius: 12px;
  }

  .wheel {
    --label-radius: clamp(106px, 31vw, 158px);
    border-width: 8px;
  }

  .wheel-label {
    width: 48px;
    margin-left: -24px;
    font-size: 9px;
  }

  .wheel-center {
    width: 104px;
    border-width: 7px;
    font-size: 10px;
  }

  .center-mark {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    font-size: 18px;
  }

  .wheel-pointer {
    border-right-width: 17px;
    border-bottom-width: 38px;
    border-left-width: 17px;
  }

  .lottery-aside {
    grid-template-columns: 1fr;
  }

  .lottery-aside > .button {
    grid-column: auto;
  }

  .aside-card {
    min-height: 104px;
    padding: 18px;
  }

  .food-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-filter {
    flex-wrap: nowrap;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .catalog-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .food-card {
    overflow: hidden;
  }

  .food-card-image {
    aspect-ratio: 16 / 9;
  }

  .food-card-body {
    padding: 12px 11px 12px;
  }

  .food-card h2 {
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 15px;
    word-break: break-word;
  }

  .food-index {
    min-width: 28px;
    height: 22px;
    font-size: 11px;
  }

  .tag-row {
    gap: 5px;
  }

  .tag-row span {
    max-width: 68px;
    overflow: hidden;
    padding: 4px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .food-card-body p {
    display: -webkit-box;
    min-height: auto;
    font-size: 12px;
  }

  .food-card-footer {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    font-size: 10px;
  }

  .food-card-footer > span {
    width: 100%;
    white-space: nowrap;
  }

  .food-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .text-action {
    font-size: 11px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-copy h1 {
    font-size: 48px;
  }

  .detail-facts {
    margin-top: 26px;
  }

  .detail-actions .button {
    flex: 1 1 150px;
  }

  .order-list {
    gap: 10px;
  }

  .order-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .order-item-image {
    width: 76px;
    align-self: start;
  }

  .order-item-copy {
    overflow: hidden;
  }

  .order-item-title-row {
    display: block;
  }

  .order-item-title-row h2 {
    margin-bottom: 5px;
    font-size: 17px;
  }

  .order-item-copy p {
    margin-top: 9px;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .quantity-control {
    grid-column: 1 / 2;
    grid-template-columns: 34px 34px 34px;
    justify-self: start;
  }

  .quantity-control button,
  .quantity-control span {
    height: 34px;
  }

  .remove-order {
    grid-column: 2 / 3;
    justify-self: end;
    min-height: 34px;
  }

  .order-toolbar {
    flex-direction: column;
  }

  .order-toolbar .button {
    width: 100%;
  }

  .shopping-summary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .shopping-summary-copy h2 {
    font-size: 24px;
  }

  .shopping-summary-stats {
    justify-content: flex-start;
  }

  .shopping-summary-preview,
  .shopping-group-grid {
    grid-template-columns: 1fr;
  }

  .shopping-summary > .button,
  .shopping-toolbar .button {
    width: 100%;
  }

  .shopping-heading {
    align-items: stretch;
  }

  .shopping-count {
    width: 100%;
    justify-content: flex-start;
  }

  .shopping-group {
    padding: 16px;
  }

  .shopping-group-header {
    gap: 10px;
  }

  .shopping-toolbar {
    flex-direction: column;
  }

  .coming-card {
    align-items: flex-start;
    margin-top: 34px;
    padding: 18px;
  }

  .site-footer {
    gap: 12px;
    line-height: 1.5;
  }

  .result-modal .eyebrow,
  .result-modal h2,
  .result-modal .meta-row,
  .result-modal .result-description,
  .result-modal .result-actions {
    margin-right: 20px;
    margin-left: 20px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .result-modal {
    width: 100%;
    max-height: calc(100svh - 28px);
    overflow-y: auto;
    border-radius: 28px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .result-modal h2 {
    font-size: 32px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .app-shell {
    width: min(calc(100% - 20px), 360px);
  }

  .brand strong {
    font-size: 15px;
  }

  .main-nav a {
    padding-right: 9px;
    padding-left: 9px;
  }

  .wheel-label {
    width: 42px;
    margin-left: -21px;
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  .recipe-source-card,
  .recipe-tips-card {
    grid-template-columns: 1fr;
  }

  .recipe-source-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-info-grid {
    grid-template-columns: 1fr;
  }

  .recipe-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .recipe-step-index {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .recipe-step h3 {
    font-size: 17px;
  }
}
