.build-entry {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.7rem 1.2rem;
  margin: 0.85rem 0 1.05rem;
  background: linear-gradient(105deg, #fbda96, #ffe8b7 65%, #f7ce8c);
  border: 1px solid #dcb87a;
  border-radius: 15px;
  text-decoration: none;
  color: #392b21;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.build-entry strong,
.build-entry small {
  display: block;
}
.build-entry strong {
  font-size: 1.28rem;
}
.build-entry small {
  color: #584230;
}
.entry-arrow {
  margin-inline-start: auto;
  font-size: 1.6rem;
}
.entry-stack {
  width: 84px;
  height: 75px;
  display: block;
  position: relative;
  flex: none;
}
.entry-stack img {
  width: 81px;
  height: 36px;
  object-fit: contain;
  position: absolute;
  left: 0;
  bottom: 1px;
  filter: drop-shadow(0 2px 2px #56351145);
}
.entry-stack img:nth-child(2) {
  bottom: 12px;
}
.entry-stack img:nth-child(3) {
  bottom: 20px;
}
.entry-stack img:nth-child(4) {
  bottom: 37px;
}
#builder {
  width: min(850px, 96vw);
  max-height: 92dvh;
  overflow: auto;
}
#builder .sheet-head {
  flex: none;
}
.build-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.build-stage {
  align-self: start;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  min-height: 255px;
  background: radial-gradient(ellipse at 42% 35%, #fff4d9, #f7d29a 65%, #dcad71);
  border: 1px solid #dec39c;
  isolation: isolate;
}
.build-plate {
  position: absolute;
  bottom: 8%;
  left: 10%;
  width: 80%;
  height: 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e0c4a4 0%, #f9ecdc 57%, #fff9ea 64%, #d6bca1 70%);
  box-shadow: 0 8px 10px #6a46313b;
}
#food-stack {
  position: absolute;
  inset: 0;
}
#food-stack img {
  position: absolute;
  left: 18%;
  width: 64%;
  height: 31%;
  bottom: calc(12% + var(--lift));
  object-fit: fill;
  filter: drop-shadow(0 4px 3px #59362038);
  transition: bottom 0.32s ease;
  animation: drop-in 0.38s cubic-bezier(0.2, 0.8, 0.3, 1.12) both;
}
#food-stack img[data-layer='cheddar'],
#food-stack img[data-layer='mozzarella'],
#food-stack img[data-layer='lettuce'],
#food-stack img[data-layer='tomato'],
#food-stack img[data-layer='pickle'],
#food-stack img[data-layer='onion'],
#food-stack img[data-layer='mushroom'],
#food-stack img[data-layer='jalapeno'] {
  height: 23%;
}
#stage-empty {
  position: absolute;
  inset: 32% 0 auto;
  text-align: center;
  color: #755434;
  font-weight: 650;
}
@keyframes drop-in {
  from {
    transform: translate(4px, -22px) rotate(-4deg);
    opacity: 0.25;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.build-work {
  min-width: 0;
}
.build-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.build-steps button {
  font: inherit;
  border: 0;
  background: #eee8dd;
  color: #4b463e;
  padding: 0.28rem 0.55rem;
  border-radius: 1em;
  font-size: 0.78rem;
}
.build-steps [aria-current] {
  background: #293e61;
  color: #fff;
}
.build-steps button:disabled:not([aria-current]) {
  opacity: 0.67;
}
#build-question {
  margin: 0.85rem 0 0.2rem;
  font-size: 1.18rem;
}
#build-hint {
  margin: 0 0 0.8rem;
  color: #555750;
  font-size: 0.88rem;
}
#build-options {
  display: grid;
  gap: 0.4rem;
}
.ingredient-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.55rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ingredient-row.selected {
  border-color: #8798c1;
  background: #f0f3fa;
}
.ingredient-row img {
  width: 2.75rem;
  height: 2.4rem;
  object-fit: contain;
}
.ingredient-row strong,
.ingredient-row small {
  display: block;
}
.ingredient-row strong {
  font-size: 0.91rem;
}
.ingredient-row small {
  font-size: 0.76rem;
  color: #535760;
}
.portion-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.portion-controls button {
  width: 44px;
  min-height: 44px;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.portion-controls button[data-delta='1'] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.portion-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.portion-controls output {
  min-width: 1.3em;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 365px) {
  .ingredient-row {
    gap: 0.25rem;
    padding: 0.25rem;
  }
  .ingredient-row img {
    width: 1.9rem;
  }
}
@media (max-width: 420px) {
  .ingredient-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .portion-controls {
    gap: 0;
  }
}
#build-options.review {
  display: block;
}
.review > div {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
  font-size: 0.88rem;
}
.build-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  background: #fffcf6;
}
.build-bar div {
  margin-inline-end: auto;
}
.build-bar small,
.build-bar strong {
  display: block;
}
.build-bar .primary {
  width: auto;
}
.build-bar button:disabled {
  opacity: 0.5;
}
#build-error {
  margin: 0;
  padding: 0 1rem;
  color: #873f23;
}
#build-error:empty {
  display: none;
}
.price-admin {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.price-admin h1 {
  font-size: 1.65rem;
}
.price-admin .primary {
  width: auto;
}
.admin-row,
.admin-head,
.admin-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}
.admin-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 130px) auto;
}
.admin-row label {
  padding: 0;
}
.admin-row input[type='checkbox'] {
  display: inline;
  width: auto;
}
.admin-actions {
  flex-wrap: wrap;
}
.price-admin fieldset {
  padding: 1rem;
}
.price-admin legend {
  font-weight: bold;
}
@media (max-width: 650px) {
  .build-body {
    display: block;
    padding: 0.65rem;
  }
  .build-stage {
    min-height: 183px;
    margin-bottom: 0.65rem;
  }
  .build-plate {
    width: 200px;
    max-width: 84%;
    left: 50%;
    transform: translateX(-50%);
  }
  #food-stack {
    max-width: 220px;
    margin: auto;
  }
  #food-stack img {
    height: 29%;
    bottom: calc(12% + var(--lift) * 0.77);
  }
  .build-bar {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .build-bar .primary,
  .build-bar .line-button {
    padding: 0.55rem 0.7rem;
  }
  .build-bar strong {
    font-size: 0.87rem;
  }
  .build-entry {
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
  }
  .entry-stack {
    width: 78px;
  }
}
@media (max-width: 365px) {
  #build-options {
    grid-template-columns: 1fr;
  }
  .build-bar {
    flex-wrap: wrap;
  }
  .build-body {
    min-height: 65px;
  }
  .build-stage {
    min-height: 165px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #food-stack img {
    animation: none;
    transition: none;
  }
}

#food-stack.long-roll img {
  left: 11%;
  width: 78%;
}
#food-stack img[data-layer='dog'] {
  height: 16%;
  width: 72%;
  left: 14%;
}
#food-stack img[data-layer='roll-base'],
#food-stack img[data-layer='roll-lid'] {
  height: 23%;
}
.build-steps {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fffcf6;
  padding-block: 0.15rem;
}
@media (max-width: 650px), (max-height: 600px) {
  .build-steps {
    position: static;
  }
}

/* The menu tile demonstrates the same assembly used by the builder. */
.build-entry {
  justify-content: flex-start;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 150px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  color: #fff9df;
  border: 1px solid #6d3526;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 84% 72%, #a74923 0%, transparent 39%),
    linear-gradient(110deg, #311d25, #5e2523 68%, #813721);
}
.build-entry:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background: repeating-linear-gradient(-46deg, transparent 0 24px, #f2bb6d 25px, transparent 26px 47px);
  mask-image: linear-gradient(90deg, #000, transparent 63%);
}
.entry-copy strong {
  color: #fff4cf;
  font-size: clamp(1.42rem, 3vw, 2rem);
  line-height: 1.5;
}
.entry-copy small {
  color: #ffdfad;
}
.entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.36rem 0.85rem;
  margin-top: 0.5rem;
  background: #ffdb8a;
  color: #472417;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
}
.entry-stack {
  position: relative;
  width: clamp(96px, 14vw, 146px);
  height: 122px;
  isolation: isolate;
}
.entry-stack i {
  position: absolute;
  bottom: 4px;
  left: 1%;
  width: 98%;
  height: 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #b78659 10%, #ffdfaa 55%, #f4c289 66%, #8e522f 74%);
  box-shadow: 0 6px 13px #21111877;
}
.entry-stack img:nth-of-type(n) {
  width: 86%;
  height: 46px;
  left: 7%;
  bottom: calc(8px + var(--deck) * 9px);
  filter: drop-shadow(0 3px 2px #37170b65);
}
.build-entry.in-view .entry-stack img:nth-of-type(n) {
  animation: stack-demo 2.3s cubic-bezier(0.22, 0.82, 0.3, 1) 2 both;
  animation-delay: calc(var(--deck) * 105ms);
}
.entry-stack img:nth-of-type(1) {
  --deck: 0;
}
.entry-stack img:nth-of-type(2) {
  --deck: 1;
}
.entry-stack img:nth-of-type(3) {
  --deck: 2;
}
.entry-stack img:nth-of-type(4) {
  --deck: 3;
}
.entry-stack img:nth-of-type(5) {
  --deck: 4;
}
@keyframes stack-demo {
  0% {
    transform: translateY(calc(-10px - var(--deck) * 7px)) rotate(-5deg);
    opacity: 0;
  }
  19% {
    opacity: 1;
  }
  48% {
    transform: translateY(2px) scaleY(0.95);
  }
  60%,
  100% {
    transform: none;
    opacity: 1;
  }
}
.build-entry:hover .entry-stack img,
.build-entry:focus-visible .entry-stack img {
  translate: 0 calc(var(--deck) * -4px);
  transition: translate 0.3s;
}
.gallery-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #432d25;
  text-decoration: none;
  padding: 0.68rem 1rem;
  margin: -0.5rem 0 1rem;
  border: 1px solid #d4bb99;
  border-radius: 12px;
  background: #fff5dd;
  font-weight: 750;
}
.gallery-entry span {
  font-size: 0.83rem;
  font-weight: 550;
}
.build-stage {
  background: radial-gradient(ellipse at 52% 69%, #ffdb89 0%, #eead5e 43%, #c06c3e 81%, #914930);
  border-color: #c58959;
}
.build-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from -9deg at 50% 78%, transparent 0 14deg, #fff2c615 15deg 21deg);
  pointer-events: none;
}
#stage-empty {
  color: #552910;
}
.ingredient-row.selected {
  border-color: #b16a40;
  background: #fff2df;
}
#builder .primary,
.portion-controls button[data-delta='1'] {
  background: #853a23;
  border-color: #853a23;
}
#builder .build-steps [aria-current] {
  background: #673621;
}
#keep-recipe {
  border-top: 1px dashed #d3b999;
  margin: 0.8rem 0 0;
  padding: 0.6rem 0 0;
}
#keep-recipe label {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}
#keep-recipe div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
#keep-recipe input {
  min-width: 6em;
  flex: 1;
  width: auto;
}
.dish-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  background: #fff8e9;
  border: 1px solid #dfceb3;
  border-radius: 14px;
}
.dish-photo {
  position: relative;
  align-self: center;
  height: 76px;
  border-radius: 10px;
  background: radial-gradient(ellipse at bottom, #e6ae69, #f5dba7);
}
.dish-photo img {
  position: absolute;
  left: 8%;
  width: 84%;
  height: 40%;
  object-fit: fill;
  filter: drop-shadow(0 2px 1px #62352130);
}
.dish-info h4 {
  font-size: 1.05rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.dish-info p {
  font-size: 0.82rem;
  color: #605241;
  margin: 0.15rem 0;
}
.dish-info strong {
  font-size: 0.9rem;
  color: #6b321b;
}
.dish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  grid-column: 1/-1;
}
.admin-row {
  grid-template-columns: minmax(0, 1fr) minmax(6em, 8em) minmax(4em, 5em) auto;
}
.admin-row label:has(input[inputmode='numeric']) {
  font-size: 0.78rem;
}
@media (max-width: 460px) {
  .admin-row {
    grid-template-columns: 1fr 1fr;
  }
  .build-entry {
    gap: 1rem;
    min-height: 135px;
  }
  .entry-stack {
    height: 112px;
  }
  .gallery-entry {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .build-entry.in-view .entry-stack img:nth-of-type(n),
  .build-entry:is(:hover, :focus-visible) .entry-stack img {
    animation: none;
    transition: none;
    translate: none;
  }
}

@media (min-width: 700px) {
  .build-entry::after {
    background:
      linear-gradient(90deg, transparent, #421e20 62%),
      url('/shop/hero.webp') left 48% / cover;
    mask-image: linear-gradient(90deg, #000 4%, transparent 68%);
    opacity: 0.82;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .build-stage.assembled .build-plate {
    animation: plate-arrival 0.5s ease-out;
  }
  @keyframes plate-arrival {
    45% {
      box-shadow: 0 4px 22px #fff3ce;
    }
  }
}

.gallery-sort {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #584233;
  font-size: 0.9rem;
}
.gallery-sort select,
#weekly-choice {
  background: #fffdf8;
  color: #4c2c1e;
  border: 1px solid #cab99d;
  border-radius: 10px;
  font: inherit;
  min-height: 44px;
  padding: 0.25rem 0.65rem;
  max-width: 100%;
}
.weekly-dish {
  border: 2px solid #a66129;
  background: linear-gradient(115deg, #fff0cc, #fffaf1);
}
.weekly-label {
  display: inline-block;
  background: #66321b;
  color: #ffdf9b;
  border-radius: 16px;
  padding: 0.13rem 0.65rem;
  font-weight: 700;
  font-size: 0.76rem;
}
.dish-stats {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #60432f;
}
.dish-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  min-height: 44px;
  color: #813526;
  font-variant-numeric: tabular-nums;
}
.dish-like[aria-pressed='true'] {
  color: #842d21;
  background: #ffdfd5;
  border-color: #aa6557;
}
