:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ink: #47302b;
  --cream: #fff8df;
  --paper: rgba(255, 250, 229, 0.94);
  --red: #e65a46;
  --orange: #f78f45;
  --yellow: #ffd65a;
  --green: #68a853;
  --blue: #59a9d8;
  --shadow: 0 12px 30px rgba(76, 41, 26, 0.2);
  --soft-shadow: 0 6px 16px rgba(76, 41, 26, 0.16);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: #9edc71;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
}

button:focus-visible {
  outline: 5px solid #2477bb;
  outline-offset: 3px;
}

.app {
  position: relative;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("assets/woodland-pizzeria.webp") center / cover no-repeat;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(45, 77, 28, 0.08), rgba(81, 43, 22, 0.12));
}

.kitchen-scene::before,
.order-scene::before {
  background: linear-gradient(180deg, rgba(255, 248, 217, 0.18), rgba(71, 44, 31, 0.22));
}

.topbar {
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 12px;
}

.brand-chip,
.step-chip,
.counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 15px;
  border: 3px solid rgba(106, 63, 34, 0.18);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  font-size: clamp(0.86rem, 2vw, 1.05rem);
  font-weight: 900;
}

.step-chip {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.round-button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid rgba(106, 63, 34, 0.18);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-size: 1.42rem;
}

.round-button:active,
.primary-button:active,
.ingredient-button:active,
.recipe-card:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 3px 8px rgba(76, 41, 26, 0.18);
}

.title-stage {
  flex: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  padding-bottom: clamp(34px, 9vh, 84px);
}

.title-card {
  width: min(680px, 92vw);
  padding: clamp(18px, 4vw, 36px);
  text-align: center;
  border: 5px solid rgba(255, 255, 255, 0.78);
  border-radius: 38px;
  background: rgba(255, 246, 209, 0.9);
  box-shadow: 0 18px 0 rgba(113, 62, 30, 0.2), var(--shadow);
  backdrop-filter: blur(4px);
}

.title-card h1 {
  margin: 0;
  color: #c94735;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(146, 69, 42, 0.18);
}

.title-card h1 span {
  display: block;
  margin-top: 12px;
  color: #5a923f;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-card p {
  max-width: 540px;
  margin: 18px auto;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.primary-button {
  min-width: min(300px, 74vw);
  min-height: 66px;
  padding: 12px 28px;
  border: 4px solid #b63e31;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(#f87556, #e34e3d);
  box-shadow: 0 8px 0 #a83c31, var(--soft-shadow);
  cursor: pointer;
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  font-weight: 1000;
  text-shadow: 0 2px rgba(106, 39, 28, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.primary-button.green {
  border-color: #417532;
  background: linear-gradient(#83c963, #5ba247);
  box-shadow: 0 8px 0 #3f7831, var(--soft-shadow);
}

.primary-button.small {
  min-width: 180px;
  min-height: 56px;
  font-size: 1.1rem;
}

.primary-button:disabled {
  filter: grayscale(0.55);
  cursor: not-allowed;
  opacity: 0.66;
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.promise-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
  font-weight: 900;
}

.order-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(320px, 1.3fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  width: min(960px, 94vw);
  margin: auto;
}

.customer-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: min(68vh, 520px);
  padding: 18px;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  background: linear-gradient(rgba(255, 250, 224, 0.92), rgba(255, 235, 180, 0.92));
  box-shadow: var(--shadow);
}

.customer-face {
  position: relative;
  display: grid;
  width: clamp(150px, 24vw, 240px);
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid rgba(108, 65, 40, 0.14);
  border-radius: 45% 45% 48% 48%;
  background: var(--fur, #d99b5d);
  box-shadow: inset 0 -22px rgba(91, 54, 34, 0.08), var(--soft-shadow);
  font-size: clamp(5rem, 13vw, 9rem);
  animation: bob 2.2s ease-in-out infinite;
}

.customer-name {
  margin: 14px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 1000;
}

.order-ticket {
  padding: clamp(20px, 4vw, 34px);
  border: 5px solid #e9b54c;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 12px 0 rgba(133, 80, 37, 0.16), var(--shadow);
  text-align: center;
}

.order-ticket .eyebrow {
  margin: 0;
  color: #a44d36;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-ticket h2 {
  margin: 7px 0 12px;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  line-height: 1;
}

.topping-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 24px;
}

.topping-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 3px solid rgba(91, 61, 40, 0.12);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.topping-pill b {
  font-size: 1.5rem;
}

.game-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 0.38fr);
  min-height: 0;
  gap: clamp(12px, 2vw, 22px);
  padding-top: 6px;
}

.workbench,
.tool-panel {
  min-height: 0;
  border: 4px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background: rgba(255, 246, 216, 0.9);
  box-shadow: var(--shadow);
}

.workbench {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(12px, 2vw, 22px);
  text-align: center;
  overflow: auto;
}

.tool-panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1;
}

.tool-panel p {
  margin: 0;
  max-width: 280px;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 800;
  line-height: 1.35;
}

.hint-icon {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  filter: drop-shadow(0 5px 3px rgba(79, 47, 30, 0.18));
}

.progress-track {
  width: min(230px, 100%);
  height: 22px;
  padding: 3px;
  border: 3px solid #684a34;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #7fc75e, #d5db54);
  transition: width 180ms ease;
}

.pizza-board {
  position: relative;
  width: min(61vh, 59vw, 520px);
  aspect-ratio: 1;
  border: clamp(18px, 3vw, 30px) solid #b9753c;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 27%, rgba(255, 255, 255, 0.42) 0 2%, transparent 3%),
    repeating-radial-gradient(circle, #d7954e 0 3px, #c98242 4px 7px);
  box-shadow: inset 0 0 0 8px #eab263, 0 14px 24px rgba(89, 46, 25, 0.26);
}

.pizza {
  position: absolute;
  inset: 7%;
  overflow: hidden;
  border: clamp(9px, 1.5vw, 15px) solid #d8943e;
  border-radius: 50%;
  background: #efc46c;
  box-shadow: inset 0 0 20px rgba(132, 70, 30, 0.2);
  transition: transform 220ms ease, filter 400ms ease;
}

.pizza.dough-flat {
  transform: scale(1.08);
}

.pizza.sauced::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, #ec6b4b, #d94e3c 70%);
  opacity: var(--sauce-opacity, 1);
  transform: scale(var(--sauce-scale, 1));
  transition: opacity 200ms, transform 200ms;
}

.cheese-layer {
  position: absolute;
  inset: 10%;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 20% 30%, #fff0a2 0 4%, transparent 5%),
    radial-gradient(ellipse at 65% 20%, #ffe584 0 5%, transparent 6%),
    radial-gradient(ellipse at 45% 65%, #fff2a6 0 5%, transparent 6%),
    radial-gradient(circle, #ffdf74, #f7cc55);
  opacity: var(--cheese-opacity, 0);
  transform: scale(var(--cheese-scale, 0.3));
  transition: opacity 180ms ease, transform 180ms ease;
}

.topping-piece {
  position: absolute;
  z-index: 5;
  display: grid;
  width: clamp(30px, 5vw, 50px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%) rotate(var(--spin, 0deg));
  filter: drop-shadow(0 3px 2px rgba(71, 37, 22, 0.2));
  font-size: clamp(1.4rem, 4vw, 2.7rem);
  animation: topping-pop 280ms cubic-bezier(0.2, 0.9, 0.4, 1.5) both;
}

.rolling-pin {
  position: absolute;
  z-index: 10;
  width: clamp(170px, 32vw, 330px);
  height: clamp(34px, 6vw, 58px);
  border: 6px solid #93502c;
  border-radius: 999px;
  background: linear-gradient(#f2bd67, #d78c3f);
  box-shadow: var(--soft-shadow), inset 0 4px rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-8deg);
  cursor: grab;
  touch-action: none;
}

.rolling-pin::before,
.rolling-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22%;
  height: 42%;
  border: 5px solid #804326;
  border-radius: 999px;
  background: #c97938;
  transform: translateY(-50%);
}

.rolling-pin::before { right: 94%; }
.rolling-pin::after { left: 94%; }

.tool-cursor {
  position: absolute;
  z-index: 15;
  display: grid;
  place-items: center;
  width: clamp(70px, 12vw, 110px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 5px rgba(74, 38, 22, 0.23));
  font-size: clamp(3.2rem, 8vw, 6rem);
  cursor: grab;
  touch-action: none;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr));
  width: 100%;
  gap: 8px;
}

.ingredient-button {
  position: relative;
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 7px;
  border: 3px solid rgba(107, 67, 40, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(110, 64, 36, 0.15);
  cursor: pointer;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.ingredient-button.required::after {
  content: "★";
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #8a6921;
  border-radius: 50%;
  color: #7c5b15;
  background: #ffe063;
  font-size: 0.78rem;
}

.ingredient-button.done {
  border-color: #61a34c;
  background: #ecffe4;
}

.ingredient-button span {
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
}

.oven {
  position: relative;
  display: grid;
  width: min(70vh, 70vw, 640px);
  aspect-ratio: 1.35;
  place-items: center;
  border: clamp(18px, 4vw, 34px) solid #d8c095;
  border-bottom-width: clamp(34px, 7vw, 62px);
  border-radius: 50% 50% 20px 20px;
  background: radial-gradient(circle at 50% 78%, #ffb53f, #ce4c2d 45%, #3c1d1b 72%);
  box-shadow: inset 0 0 50px #381b18, 0 18px 28px rgba(74, 41, 26, 0.28);
  overflow: hidden;
}

.oven .pizza-board {
  width: 48%;
  border-width: 11px;
  transform: perspective(380px) rotateX(58deg) translateY(32%);
  animation: oven-glow 1.2s ease-in-out infinite alternate;
}

.oven-flame {
  position: absolute;
  bottom: 4%;
  font-size: clamp(3rem, 10vw, 7rem);
  filter: drop-shadow(0 0 20px #ffc342);
  animation: flame 500ms ease-in-out infinite alternate;
}

.baked .pizza {
  filter: saturate(1.1) sepia(0.15);
}

.delivery-scene {
  background: linear-gradient(#77cdf0 0 46%, #7ac45b 46% 100%);
}

.delivery-scene::before {
  background:
    radial-gradient(circle at 15% 18%, white 0 4%, transparent 4.5%),
    radial-gradient(circle at 22% 18%, white 0 5%, transparent 5.5%),
    radial-gradient(circle at 78% 24%, white 0 4%, transparent 4.5%),
    linear-gradient(180deg, transparent 0 48%, rgba(34, 103, 45, 0.22) 100%);
}

.road-wrap {
  position: relative;
  flex: 1;
  width: min(700px, 92vw);
  min-height: 0;
  margin: 8px auto 0;
  overflow: hidden;
  border: 8px solid #fff1bd;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background:
    linear-gradient(90deg, transparent 47%, #fff6c5 47% 53%, transparent 53%) 0 0 / 100% 110px,
    #6e6e70;
  box-shadow: 0 0 0 8px rgba(79, 108, 43, 0.3), var(--shadow);
  touch-action: none;
}

.road-wrap.moving {
  animation: road-move 700ms linear infinite;
}

.delivery-van,
.road-object {
  position: absolute;
  z-index: 10;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 7px 4px rgba(38, 37, 32, 0.32));
}

.delivery-van {
  bottom: 2%;
  left: 50%;
  width: 100px;
  height: 82px;
  border: 5px solid #9f352b;
  border-radius: 24px 24px 15px 15px;
  color: white;
  background: #ef654d;
  font-size: 2.9rem;
  transition: left 90ms linear, transform 150ms ease;
}

.delivery-van::before,
.delivery-van::after {
  content: "";
  position: absolute;
  bottom: -13px;
  width: 24px;
  height: 24px;
  border: 6px solid #313233;
  border-radius: 50%;
  background: #a8c2ce;
}

.delivery-van::before { left: 8px; }
.delivery-van::after { right: 8px; }

.delivery-van.bump {
  transform: translate(-50%, -50%) rotate(-9deg) scale(0.9);
}

.road-object {
  top: -80px;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
}

.delivery-hud {
  position: absolute;
  inset: 8px 8px auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hud-pill {
  padding: 7px 13px;
  border: 3px solid rgba(90, 58, 37, 0.14);
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.94);
  box-shadow: var(--soft-shadow);
  font-weight: 1000;
}

.cut-line {
  position: absolute;
  z-index: 15;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 5px;
  border-radius: 999px;
  background: rgba(112, 50, 34, 0.72);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.56);
  transform: translate(-50%, -50%) rotate(var(--angle));
  transform-origin: center;
  animation: cut-appear 260ms ease both;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(300px, 1.28fr);
  align-items: center;
  width: min(880px, 94vw);
  margin: auto;
  padding: clamp(20px, 4vw, 42px);
  border: 6px solid rgba(255, 255, 255, 0.76);
  border-radius: 40px;
  background: rgba(255, 246, 211, 0.94);
  box-shadow: 0 18px 0 rgba(91, 52, 31, 0.2), var(--shadow);
  text-align: center;
}

.result-card .customer-face {
  width: clamp(135px, 22vw, 220px);
}

.result-copy h2 {
  margin: 0;
  color: #c94735;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.stars {
  margin: 8px 0;
  color: #ffc928;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  text-shadow: 0 4px 0 #a96722;
}

.result-copy p {
  margin: 8px 0 20px;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 900;
}

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

.confetti i {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: 13px;
  height: 25px;
  border-radius: 4px;
  background: var(--color);
  animation: confetti-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.parent-note {
  position: absolute;
  left: 50%;
  bottom: max(6px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: 90vw;
  transform: translateX(-50%);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.73);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.toast {
  position: absolute;
  z-index: 100;
  left: 50%;
  bottom: 16%;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border: 3px solid rgba(83, 50, 34, 0.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(54, 48, 40, 0.92);
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  animation: toast 1.25s ease both;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes topping-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-18deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--spin)); }
}

@keyframes oven-glow {
  from { filter: brightness(0.95); }
  to { filter: brightness(1.18); }
}

@keyframes flame {
  from { transform: scale(0.92) rotate(-2deg); }
  to { transform: scale(1.07) rotate(2deg); }
}

@keyframes road-move {
  to { background-position-y: 110px; }
}

@keyframes cut-appear {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) scaleX(0); }
}

@keyframes confetti-fall {
  to { transform: translateY(120vh) rotate(720deg); }
}

@keyframes toast {
  15%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -15px); }
}

@media (orientation: portrait) {
  .scene {
    background-position: 62% center;
  }

  .order-stage,
  .result-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: center;
    width: min(94vw, 620px);
    gap: 10px;
  }

  .customer-card {
    grid-template-columns: auto 1fr;
    min-height: 0;
    width: 100%;
    padding: 10px 18px;
  }

  .customer-face,
  .result-card .customer-face {
    width: clamp(100px, 28vw, 155px);
  }

  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .tool-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 118px;
    overflow: visible;
  }

  .tool-panel > div:first-child:not(.hint-icon),
  .tool-panel .progress-track,
  .tool-panel > .primary-button {
    grid-column: 1 / -1;
  }

  .tool-panel > .primary-button {
    justify-self: center;
  }

  .tool-panel .hint-icon {
    font-size: 2.5rem;
  }

  .ingredient-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(50px, 1fr));
    max-height: 170px;
    overflow: auto;
  }

  .ingredient-button {
    min-height: 60px;
  }

  .pizza-board {
    width: min(52vh, 87vw, 470px);
  }

  .step-chip {
    position: static;
    transform: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .scene { padding-top: 7px; padding-bottom: 7px; }
  .topbar { min-height: 46px; }
  .round-button { width: 44px; height: 44px; }
  .brand-chip, .step-chip, .counter-chip { min-height: 42px; padding-block: 4px; }
  .title-stage { padding-bottom: 5px; }
  .title-card { padding: 10px 22px 12px; border-radius: 28px; }
  .title-card p { margin: 10px auto; }
  .title-card .primary-button { min-height: 54px; }
  .promise-row { margin-top: 10px; }
  .promise-row span { padding: 5px 9px; font-size: 0.76rem; }
  .parent-note { display: none; }
  .game-layout { gap: 9px; }
  .workbench, .tool-panel { border-radius: 24px; }
  .tool-panel { gap: 7px; padding: 10px; }
  .tool-panel p { font-size: 0.86rem; }
  .hint-icon { font-size: 2.6rem; }
  .primary-button.small { min-height: 49px; }
  .ingredient-grid { grid-template-columns: repeat(3, minmax(52px, 1fr)); }
  .ingredient-button { min-height: 58px; }
  .customer-card { min-height: min(66vh, 390px); }
}

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