/* ============================================================
   PIZZA HUT — Capa de animación  (extiende styles.css)
   Constructor de pizza viva: spin, drag, toppings spring,
   mitad y mitad, morph de tamaño, transiciones de página.

   NOTA: las animation-duration son FIJAS (sin calc(var)) porque
   calc() con custom properties en animation-duration se congela
   en el primer frame en algunos motores. La intensidad se controla
   por JS (giro) y por --orbit-show / --steam-show (opacidad).
   ============================================================ */

.app {
  --motion: 1;                         /* 0 = quieto · 1 = normal · 1.6 = expresivo */
  --pop-dur: 0.52s;
  --spring: cubic-bezier(.34, 1.62, .56, 1);
  --orbit-show: 1;
  --steam-show: 1;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --display-wght: 800;
  --display-tracking: -0.035em;
}

/* ============================================================
   PAGE / SCREEN TRANSITIONS
   ============================================================ */
.route-fade { animation: screenIn .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes screenIn {
  from { transform: translateY(14px) scale(.994); }
  to   { transform: none; }
}

.rise { animation: riseUp .55s cubic-bezier(.34, 1.62, .56, 1) both; }
@keyframes riseUp { from { transform: translateY(18px); } to { transform: none; } }

/* ============================================================
   BUILDER LAYOUT
   ============================================================ */
.builder {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 46px;
  padding-top: 14px;
  align-items: start;
}

.build-info { min-width: 0; padding-bottom: 30px; }

.stage-col { position: sticky; top: 86px; align-self: start; }

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: visible;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  box-shadow: none;
  touch-action: none;
  user-select: none;
}

/* size guide rings — concentric, proportional to real diameters (20/30/36 cm) */
.size-rings { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.6px dashed color-mix(in srgb, var(--primary) 30%, transparent);
  opacity: calc(.45 * var(--orbit-show));
  transition: border-color .4s ease, border-width .4s ease, opacity .4s ease, box-shadow .4s ease;
}
.sring.r-fam { width: 90%; height: 90%; }
.sring.r-med { width: 75%; height: 75%; }
.sring.r-ind { width: 60%; height: 60%; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage-glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent) 0%, transparent 66%);
  filter: blur(14px);
  opacity: calc(.85 * var(--orbit-show));
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(.96); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }

.steam { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); width: 46%; height: 46%; pointer-events: none; opacity: var(--steam-show); }
.steam i {
  position: absolute; bottom: 0; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  filter: blur(2px);
  animation: steamRise 3.2s ease-in infinite;
}
.steam i:nth-child(1) { left: 28%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 50%; animation-delay: .9s; transform: scale(1.25); }
.steam i:nth-child(3) { left: 70%; animation-delay: 1.7s; }
@keyframes steamRise {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: translateY(-130px) scale(1.5); opacity: 0; }
}

/* ---------- size morph wrapper ---------- */
.lp-size {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%) scale(0.8);
  will-change: transform;
  z-index: 2;
}
.lp-spin { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }

/* real-photo disc (scales with size via .lp-size box) */
.lp-photo-disc {
  position: absolute; inset: 0;
  animation: lpPhotoIn .5s var(--spring);
}
.lp-photo-disc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  transform: translateY(4%);
  filter: drop-shadow(0 22px 26px rgba(60,25,8,.34));
}
@keyframes lpPhotoIn { from { transform: scale(.93); } to { transform: none; } }

/* ---------- topping drop layer (real ingredient pieces rain in) ---------- */
.lp-one { position: absolute; inset: 0; }
/* overlay is portalled to <body> and pinned over the pizza stage, so the
   flying pieces paint above ALL page chrome (header, controls, rings) */
.tp-overlay { position: fixed; pointer-events: none; z-index: 2147483600; }
.tp-layer { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform;
  transition: transform .58s cubic-bezier(.34, 1.62, .56, 1); }
.tp-piece {
  position: absolute; width: 15%;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
  will-change: transform, opacity;
}
.tp-piece img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 7px 9px rgba(40,15,5,.5)) drop-shadow(0 2px 2px rgba(40,15,5,.35));
}
.tp-piece.in  { animation: tpDrop .72s cubic-bezier(.2, .85, .3, 1) backwards; }
.tp-piece.out { animation: tpLift .42s cubic-bezier(.45, 0, .75, .2) forwards; }
/* flies in from a window edge (var --dx/--dy), big & blurred → converges & settles on the pizza */
@keyframes tpDrop {
  0%   { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(calc(var(--r) - 40deg)) scale(calc(var(--s) * 3.6)); opacity: 0; filter: blur(9px); }
  22%  { opacity: 1; }
  82%  { transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--s) * .9)); filter: blur(0); }
  100% { transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); opacity: 1; filter: blur(0); }
}
/* removing: flies back out toward its window edge */
@keyframes tpLift {
  0%   { transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); opacity: 1; filter: blur(0); }
  100% { transform: translate(calc(-50% + var(--dx) * .5), calc(-50% + var(--dy) * .5)) rotate(calc(var(--r) + 20deg)) scale(calc(var(--s) * 2.4)); opacity: 0; filter: blur(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .tp-piece.in, .tp-piece.out { animation-duration: .01s; }
}

.lp-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-base[data-dough="pan"]     { box-shadow: inset 0 -8px 22px rgba(120,60,10,.34), inset 0 0 0 7px rgba(214,133,46,.55); }
.lp-base[data-dough="fina"]    { box-shadow: inset 0 -3px 10px rgba(120,60,10,.18); }
.lp-base[data-dough="rolling"] { box-shadow: inset 0 -6px 18px rgba(120,60,10,.25), inset 0 0 0 10px rgba(244,195,107,.85); }

/* topping spring */
.lp-base .topping {
  transform: translate(-50%, -50%) scale(0) rotate(-35deg);
  opacity: 0;
  transition:
    transform var(--pop-dur) var(--spring),
    opacity calc(var(--pop-dur) * .55) ease-out;
  will-change: transform, opacity;
}
.lp-base .topping.on {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
}

/* ---------- half & half ---------- */
.lp-half { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.lp-half.l { clip-path: inset(0 50% 0 0); }
.lp-half.r { clip-path: inset(0 0 0 50%); }
.lp-half .lp-base .topping { transition-delay: 0s !important; }

/* half photo fills its clipped side — same 4% downshift as the single pizza so
   the pizza recenters on the size rings (the source PNGs sit ~4% high) */
.lp-half .half-inner .half-img { width: 100%; height: 100%; object-fit: contain; display: block; transform: translateY(4%); }

/* each half is a stack: new layer enters from the top, old layer slides down & out */
.lp-half-stack { position: absolute; inset: 0; }
.lp-half .half-inner { position: absolute; inset: 0; }
.lp-half .half-inner.slide-in  { animation: halfIn  .52s cubic-bezier(.16, .84, .28, 1) forwards; }
.lp-half .half-inner.slide-out { animation: halfOut .52s cubic-bezier(.4, 0, .7, 1) forwards; }
@keyframes halfIn  { from { transform: translateY(-100%); opacity: .25; } to { transform: translateY(0); opacity: 1; } }
@keyframes halfOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: .25; } }

.lp-divider {
  position: absolute; left: 50%; top: 0; height: 100%; width: 3px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, #fff 0 8px, var(--primary) 8px 16px);
  border-radius: 3px; z-index: 4;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}
.lp-divider::before, .lp-divider::after {
  content: none;
}
.lp-divider::before { top: 8%; } .lp-divider::after { bottom: 8%; }

/* ---------- stage chrome ---------- */
.diam-badge {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 14px; font-weight: 800; font-size: 13px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.diam-badge .db-ico { color: var(--primary); display: grid; place-items: center; }
.diam-badge .db-num { font-variant-numeric: tabular-nums; }

.live-pill {
  position: absolute; left: 16px; top: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 13px 7px 11px; font-weight: 700; font-size: 12px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.live-pill .lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: livePulse 2s ease-out infinite; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 65%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.spin-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  opacity: .85; transition: opacity .3s ease; pointer-events: none;
}
.stage.grabbing { cursor: grabbing; }
.stage.grabbing .spin-hint { opacity: 0; }

/* size quick chips */
.size-chips { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 6; align-items: center; }
.size-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .15s ease, background .15s ease, transform .15s var(--spring);
}
.size-chip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.size-chip.active { border-color: var(--primary); background: var(--primary-soft); }
.size-chip .sc-disc {
  position: relative; border-radius: 50%; margin-bottom: 4px;
  background: var(--primary);
  display: grid; place-items: center;
  transition: width .35s var(--spring), height .35s var(--spring);
}
.size-chip .sc-disc .sc-hut {
  width: 56%; height: auto; display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
.size-chip .sc-name { font-weight: 800; font-size: 13.5px; }
.size-chip .sc-diam { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }

/* ============================================================
   BUILDER — INFO COLUMN
   ============================================================ */
.bld-head { margin-bottom: 8px; }
.bld-head h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 6px 0 8px; }
.bld-meta { color: var(--ink-2); font-weight: 600; font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bld-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.bld-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; margin: 14px 0 0; max-width: 52ch; }

.mode-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--tile); padding: 5px; border-radius: var(--radius); margin: 24px 0 6px;
  position: relative;
}
.mode-seg button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border-radius: calc(var(--radius) - 7px);
  font-weight: 800; font-size: 14.5px; color: var(--ink-2);
  transition: color .2s ease, transform .15s var(--spring);
  z-index: 2; white-space: nowrap;
}
.mode-seg button.active { color: var(--ink); }
.mode-seg button:active { transform: scale(.97); }
.mode-seg .seg-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--card); border-radius: calc(var(--radius) - 7px);
  box-shadow: var(--shadow-sm); z-index: 1;
  transition: transform .42s var(--spring);
}
.mode-seg[data-mode="half"] .seg-thumb { transform: translateX(calc(100% + 0px)); }

.opt-block { margin-top: 26px; }

.dough-row { display: flex; gap: 9px; flex-wrap: wrap; }
.dough-pill {
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card);
  transition: all .15s ease; text-align: left;
}
.dough-pill:hover { border-color: var(--line-2); }
.dough-pill.active { border-color: var(--primary); background: var(--primary-soft); }
.dough-pill .dp-name { font-weight: 800; font-size: 14px; white-space: nowrap; }
.dough-pill .dp-tag { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* ---------- live ingredient chips ---------- */
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
.ing-cell {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 8px 11px; background: var(--card); text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s var(--spring);
  overflow: hidden;
}
.ing-cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ing-cell.active { border-color: var(--primary); background: var(--primary-soft); }
.ing-cell .ic-disc {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px;
  display: grid; place-items: center; position: relative;
  transition: transform .3s var(--spring);
}
.ing-cell.active .ic-disc { transform: scale(1.06); }
.ing-cell .ic-disc .ing-ico { display: block; }
.ing-cell .ic-name { font-size: 12.5px; font-weight: 700; }
.ing-cell .ic-check {
  position: absolute; top: 7px; right: 7px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--spring);
}
.ing-cell.active .ic-check { transform: scale(1); }
.ing-cell .ic-ripple {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 60%);
  opacity: 0;
}
.ing-cell.pulse .ic-ripple { animation: icRipple .5s ease-out; }
@keyframes icRipple { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.1); } }

/* ---------- half & half pickers ---------- */
.half-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.half-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); }
.half-card .hc-label {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.half-card .hc-label .hc-side { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); }
.half-card .hc-label .hc-side.l { background: linear-gradient(90deg, var(--primary) 50%, transparent 50%); }
.half-card .hc-label .hc-side.r { background: linear-gradient(270deg, var(--primary) 50%, transparent 50%); }
.half-current { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.half-current .hcur-disc { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--tile); }
.half-current .hcur-disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.50); }
.half-current .hcur-name { font-weight: 800; font-size: 14.5px; line-height: 1.1; }
.half-current .hcur-sub { font-size: 11.5px; color: var(--ink-2); }
.half-scroll { display: flex; flex-direction: column; gap: 6px; max-height: 188px; overflow-y: auto; padding-right: 4px; }
.half-scroll::-webkit-scrollbar { width: 5px; }
.half-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.half-opt {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: var(--radius-sm);
  text-align: left; transition: background .14s ease; width: 100%;
}
.half-opt:hover { background: var(--tile); }
.half-opt.active { background: var(--primary-soft); }
.half-opt .ho-disc { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--tile); }
.half-opt .ho-disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.50); }
.half-opt .ho-name { font-weight: 700; font-size: 13px; flex: 1; min-width: 0; }
.half-opt .ho-price { font-size: 12px; color: var(--ink-2); font-weight: 700; }

/* ---------- sticky add bar ---------- */
.bld-addbar {
  position: sticky; bottom: 14px; margin-top: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; display: flex; align-items: center; gap: 14px;
  z-index: 10;
}
.bld-addbar .ab-total { font-variant-numeric: tabular-nums; }
.btn.added { background: var(--ok) !important; }

/* flying pizza clone */
.fly-pizza {
  position: fixed; z-index: 500; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 45% 40%, #F4C36B, #D8852E);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
.pcard .pcard-media .pizza, .bs-media .pizza { transition: transform .5s var(--spring); }
.pcard:hover .pcard-media .pizza { transform: rotate(18deg) scale(1.05); }
.bs-card:hover .bs-media .pizza { transform: rotate(14deg); }

.cart-btn.bump { animation: cartBump .5s var(--spring); }
@keyframes cartBump { 0%,100% { transform: none; } 35% { transform: scale(1.28) rotate(-8deg); } 65% { transform: scale(.92); } }

.add-btn:active { transform: scale(.86) rotate(-6deg); }

/* ============================================================
   PLP "EMPLATADA" — pizza que sobresale por arriba del card
   ============================================================ */
/* give the menu grid room for the pizzas that overflow upward */
.grid-3:has(.plate-card) {
  row-gap: 104px;
  padding-top: 96px;
  overflow: visible;
}

.plate-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 0 18px 18px;
  overflow: visible;
  transition: transform .3s var(--spring), box-shadow .3s ease, border-color .2s ease;
  box-shadow: 0 2px 10px rgba(40,15,5,.05);
}
.plate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }

/* badge stays on the card, above the pizza */
.plate-card .tag { top: 16px; left: 16px; z-index: 5; box-shadow: 0 3px 10px rgba(40,15,5,.18); }

/* the floating pizza — bigger, more presence */
.plate-photo {
  position: relative;
  width: 102%;
  aspect-ratio: 1;
  margin: -104px -8px -52px;
  cursor: pointer;
  z-index: 3;
}
.plate-photo img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 16px 18px rgba(60,25,8,.32));
  transition: transform .4s var(--spring);
  transform-origin: 50% 55%;
}
.plate-card:hover .plate-photo img { transform: scale(1.05) rotate(-6deg); }

/* soft contact shadow ellipse where the pizza meets the card */
.plate-shadow {
  position: absolute; z-index: 1;
  left: 50%; bottom: 18%; transform: translateX(-50%);
  width: 60%; height: 15%;
  background: radial-gradient(ellipse, rgba(60,25,8,.30) 0%, rgba(60,25,8,0) 70%);
  filter: blur(3px);
  transition: width .4s var(--spring), opacity .4s ease;
}
.plate-card:hover .plate-shadow { width: 56%; opacity: .85; }

/* quick spin when added */
.plate-photo.just-added img { animation: plateSpin .6s var(--spring); }
@keyframes plateSpin { 0% { transform: scale(1); } 45% { transform: scale(1.12) rotate(200deg); } 100% { transform: scale(1) rotate(360deg); } }

.plate-body { padding-top: 6px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.plate-title {
  font-family: var(--display); font-weight: var(--display-wght); font-size: 26px; line-height: 1.08;
  letter-spacing: var(--display-tracking); cursor: pointer; margin: 0;
}
.plate-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.plate-foot { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plate-price { font-weight: 800; font-size: 24px; font-family: var(--body); white-space: nowrap; line-height: 1; }
.plate-price .from { font-size: 10.5px; font-weight: 600; color: var(--ink-3); display: block; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.plate-add {
  flex: none; width: 56px; height: 56px; border-radius: 18px;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 38%, transparent);
  transition: transform .15s var(--spring), background .2s ease;
}
.plate-add:hover { background: color-mix(in srgb, var(--primary) 88%, #000); transform: translateY(-2px); }
.plate-add:active { transform: scale(.88); }

/* flying clone for plated quick-add */
.fly-plate { position: fixed; z-index: 500; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(60,25,8,.3)); }

@media (max-width: 680px) {
  .grid-3:has(.plate-card) { row-gap: 86px; padding-top: 78px; }
  .plate-photo { margin-top: -82px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .builder { grid-template-columns: 1fr; gap: 26px; }
  .stage-col { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
  .bld-addbar { position: sticky; bottom: 12px; }
}
@media (max-width: 680px) {
  .half-pick { grid-template-columns: 1fr; }
  .ing-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .mode-seg button { font-size: 13px; padding: 12px 8px; }
}
