/* ===== UI layer: game-like look, loaded after style.css ===== */
:root { --ink2: #6b4a32; --gold: #ffcf3f; --good: #46b07a; --bad: #e5484d; --pill: rgba(255,255,255,.75); }
body { background-attachment: fixed; }

/* ---------- chunky buttons ---------- */
button { border-radius: 16px; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); transition: transform .08s, box-shadow .08s, filter .15s; font-weight: 600; }
button:hover { filter: brightness(1.04); transform: translateY(-1px); }
button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
button.primary { background: linear-gradient(180deg, #ff6b6f, var(--accent)); border-color: #b92e33; box-shadow: 0 4px 0 #a8262b; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
button.primary:active { box-shadow: 0 1px 0 #a8262b; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 1.05rem; }

/* ---------- top bar: avatar+level, two chips, coins ---------- */
#topbar { display: flex; flex-wrap: nowrap; gap: 8px; padding: 6px 10px; background: var(--card); border-bottom: 3px solid var(--line); }
#whoPill { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: none; box-shadow: none; background: none; flex: 0 0 auto; }
#whoPill .ring { display: flex; width: 100%; height: 100%; border-radius: 50%; align-items: center; justify-content: center; padding: 4px;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), #e6d7bf 0); }
#whoPill .chef { width: 100%; height: 100%; margin: 0; font-size: 1.3rem; box-shadow: 0 0 0 3px var(--apron); background: var(--hat); }
#whoPill .lvl { position: absolute; right: -4px; bottom: -3px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.chips { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; }
.chip { border-radius: 99px; padding: 4px 11px; font-size: .82rem; background: var(--pill); border: 2px solid var(--line); box-shadow: none; white-space: nowrap; }
.chip.on { border-color: var(--good); background: #d7f3e1; color: #1b4d32; font-weight: 700; }
#topbar .right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.coinpill { background: linear-gradient(180deg, #fff3b8, #ffd84d); border: 2px solid #e0a800; border-radius: 99px; padding: 4px 14px; font-weight: 800; color: #6a4a00; font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 #c58f00; }
.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- profile screen ---------- */
.profile { border-radius: 28px; box-shadow: 0 6px 0 var(--line); transition: transform .15s; }
.profile:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent); }
.logo .sprite { animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ---------- hub: storefront scene ---------- */
#screen-hub.active { padding: 0; }
.scene { position: relative; border-radius: 24px; overflow: hidden; border: 3px solid var(--line); background: linear-gradient(180deg, var(--bg) 0 62%, transparent 62%), var(--card); min-height: min(640px, 78vh); display: flex; flex-direction: column; }
.scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; opacity: .9;
  background: repeating-linear-gradient(90deg, rgba(229,72,77,.35) 0 28px, transparent 28px 56px), repeating-linear-gradient(0deg, rgba(229,72,77,.35) 0 28px, transparent 28px 56px), #fff9ee; }
.shelf { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; align-items: flex-end; min-height: 56px; padding: 8px 12px 4px; border-bottom: 8px solid var(--shelf); margin: 0 24px; font-size: 34px; }
.shelf .sprite { height: 44px; min-width: 44px; }
.shelf small { opacity: .6; font-size: .75rem; padding-bottom: 8px; }
.hero { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 14px 8px; text-align: center; }
.hub-logo { height: 92px; font-size: 64px; } .hub-logo .sprite { height: 100%; animation: floaty 3s ease-in-out infinite; }
.hero h2 { margin: 0; font-size: 1.5rem; text-shadow: 0 2px 0 rgba(255,255,255,.8); }
.lvl-row { display: flex; align-items: center; gap: 8px; width: min(380px, 92%); background: var(--pill); border: 2px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 6px; }
.lvlbadge { background: var(--accent); color: #fff; border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.xpbar { position: relative; flex: 1; height: 14px; border-radius: 99px; background: #e6d7bf; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd84d, #ff9a3d); border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.lvl-row small { font-size: .72rem; white-space: nowrap; opacity: .8; }
.play { font-size: 1.5rem; padding: 16px 44px; border-radius: 22px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(460px, 100%); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 20px; background: linear-gradient(180deg, #fff, var(--card)); position: relative; }
.tile .ti { font-size: 2rem; line-height: 1; } .tile b { font-size: .95rem; } .tile small { font-size: .75rem; opacity: .85; }
.tile.hot::after { content: "!"; position: absolute; top: -6px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .8rem; animation: pulse 1.2s infinite; }
.weekly.mini { width: min(460px, 100%); background: var(--pill); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; text-align: left; font-size: .82rem; }
.dock { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; padding: 8px 10px 12px; }
.dock button { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 12px; min-width: 74px; border-radius: 18px; font-size: .68rem; background: var(--card); }
.dock button span { font-size: 1.35rem; line-height: 1.2; }

/* ---------- in-game HUD ---------- */
#g-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: nowrap; }
#g-head .pill { background: var(--pill); border: 2px solid var(--line); border-radius: 99px; padding: 4px 11px; font-size: .85rem; white-space: nowrap; }
.goal { position: relative; flex: 1; min-width: 80px; height: 22px; border-radius: 99px; background: #e6d7bf; border: 2px solid var(--line); overflow: visible; }
.goal .gfill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd84d, #ff9a3d); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.goal .gstar { position: absolute; top: 50%; transform: translate(-50%, -50%) scale(.85); font-size: 1.2rem; filter: grayscale(1) opacity(.55); transition: .3s; }
.goal .gstar.on { filter: none; transform: translate(-50%, -50%) scale(1.15); }
.goal .gpts { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 800; color: #5a3a00; }
.combo { padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: .85rem; background: #eee; color: #888; white-space: nowrap; }
.combo.on { background: linear-gradient(180deg, #ffb347, #ff6b35); color: #fff; animation: pulse .9s infinite; }

/* Dante, the helper cat */
.dantecat { display: inline-flex; height: 56px; min-width: 50px; align-items: flex-end; animation: dantebob 3s ease-in-out infinite; transform-origin: bottom; }
.dantecat .sprite { height: 100%; } .dantecat img { height: 100%; width: auto; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
@keyframes dantebob { 50% { transform: scaleY(1.04) translateY(-1px); } }
button.dante { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 12px 2px 4px; font-size: .8rem; border-radius: 99px; background: #fff1c9; border-color: #e0a800; box-shadow: 0 3px 0 #c58f00; }
button.dante .sprite { width: 30px; height: 30px; font-size: 22px; } button.dante img { width: 100%; height: 100%; object-fit: contain; }
button.dante:disabled { opacity: .55; }
#prepbar { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; flex-wrap: wrap; }
.prepbtn { padding: 4px 12px; font-size: .82rem; border-radius: 99px; background: #fff; }
.stockchip { display: inline-flex; align-items: center; gap: 3px; background: var(--pill); border: 2px solid var(--line); border-radius: 99px; padding: 2px 9px; font-size: .85rem; }
.stockchip b { font-variant-numeric: tabular-nums; }

/* ---------- customer waiting line ---------- */
#rail { display: flex; gap: 12px; padding: 6px 4px 12px; min-height: 84px; overflow-x: auto; }
.tk { width: 78px; padding: 0; background: none; border: none; position: relative; flex: 0 0 auto; text-align: center; box-shadow: none; }
.tk .ring { --c: var(--good); width: 76px; height: 76px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--c) calc(var(--p, 100) * 1%), #e6d7bf 0); transition: transform .15s; }
.tk .ring.warn { --c: #f0a030; } .tk .ring.bad { --c: var(--bad); }
.tk .face { display: flex; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff; align-items: flex-start; justify-content: center; font-size: 30px; }
.tk .face .sprite { width: 100%; height: 100%; } .tk .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tk.active { box-shadow: none; border: none; }
.tk.active .ring { transform: scale(1.12); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent); }
.tk .st { position: absolute; right: -2px; bottom: -2px; font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.tk.upset .ring { animation: shake .4s infinite; }
.tk .sprite img { border-radius: 0; filter: none; animation: none; }

/* ---------- counter scene: customer + speech bubble ---------- */
.counter { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 8px; padding: 6px 4px 0; border-bottom: 6px solid var(--shelf); }
.custwrap { position: relative; flex: 0 0 auto; padding-top: 62px; }
.say { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: max-content; max-width: 210px; box-sizing: border-box; background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 5px 13px; font-size: .84rem; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 3px 0 var(--line); z-index: 2; animation: pop .3s; }
.say::after { content: ""; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); border: 8px solid transparent; border-top: 11px solid var(--line); border-bottom: 0; }
.say::before { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top: 9px solid #fff; border-bottom: 0; z-index: 1; }
.say.angry { background: #ffe3e3; border-color: var(--bad); } .say.angry::after { border-top-color: var(--bad); }
.custwrap.enter { animation: slidein .6s cubic-bezier(.2,.9,.3,1.2); }
.counter .cust { flex: 0 0 auto; width: 190px; height: 240px; font-size: 110px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.counter .cust .sprite { width: 100%; height: 100%; animation: bob 2.6s ease-in-out infinite; transform-origin: bottom; }
.counter .cust img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; border-radius: 0; filter: drop-shadow(0 6px 4px rgba(0,0,0,.2)); }
.counter .cust.enter { animation: slidein .6s cubic-bezier(.2,.9,.3,1.2); }
.counter .cust.upset .sprite { animation: shake .3s infinite; filter: drop-shadow(0 0 8px #e5484d) saturate(1.3); }
@keyframes bob { 50% { transform: translateY(-4px) scaleY(1.015); } }
@keyframes slidein { from { transform: translateX(-120px); opacity: 0; } }
.bubble { position: relative; flex: 1; align-self: center; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 10px 14px 12px; margin-bottom: 14px; box-shadow: 0 4px 0 var(--line); }
.bubble::before { content: ""; position: absolute; left: -14px; bottom: 24px; border: 9px solid transparent; border-right: 14px solid var(--line); border-left: 0; }
.bubble::after { content: ""; position: absolute; left: -9px; bottom: 25px; border: 8px solid transparent; border-right: 12px solid #fff; border-left: 0; }
.ribbon { display: inline-block; background: var(--accent); color: #fff; border-radius: 99px; padding: 2px 12px; font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.notes { display: block; font-size: .75rem; opacity: .75; margin-bottom: 4px; }
.wants { display: flex; flex-wrap: wrap; gap: 8px; }
.want { position: relative; width: 56px; height: 56px; border-radius: 16px; background: #fff7e6; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 30px; transition: .2s; }
.want .sprite { width: 40px; height: 40px; font-size: 28px; }
.want b { position: absolute; right: -6px; bottom: -8px; font-size: .68rem; background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.want.done { background: #d7f3e1; border-color: var(--good); animation: pop .25s; }
.want.done b { background: var(--good); }
.mode { position: absolute; right: 10px; top: 8px; font-size: 1.3rem; }

/* ---------- step tracker ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 10px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .55; }
.step span { width: 34px; height: 34px; border-radius: 50%; background: #e6d7bf; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: .2s; }
.step small { font-size: .62rem; }
.step.cur { opacity: 1; } .step.cur span { background: var(--accent); box-shadow: 0 0 0 4px rgba(229,72,77,.25); transform: scale(1.15); }
.step.done { opacity: 1; } .step.done span { background: var(--good); color: #fff; }
.sline { width: 22px; height: 4px; border-radius: 4px; background: #e6d7bf; margin-bottom: 14px; }

/* ---------- ingredient tray as tiles ---------- */
.tray { gap: 10px; }
.ing { border-radius: 20px; background: linear-gradient(180deg, #fff, #fff4e0); padding: 8px 4px 6px; }
.ing .sprite { width: 52px; height: 52px; font-size: 40px; }
.ing > span:not(.sprite) { font-size: .74rem; font-weight: 700; }
.ing.sel { background: #fff1f1; }
.hint { font-size: .8rem; }

/* ---------- floating stuff ---------- */
.floaty { position: fixed; z-index: 60; transform: translate(-50%, -50%); font-weight: 800; font-size: 1.5rem; pointer-events: none; text-shadow: 0 2px 0 #fff, 0 0 8px #fff; animation: floatup 1.3s ease-out forwards; white-space: nowrap; }
.floaty.big { font-size: 3rem; }
.floaty.pts { color: #b36b00; }
@keyframes floatup { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -90px; } }
.flycoin { position: fixed; z-index: 70; font-size: 1.4rem; pointer-events: none; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: confetti 1.5s ease-out forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--rot)); opacity: 0; } }

/* ---------- pop-up cards ---------- */
.popup { position: fixed; inset: 0; z-index: 75; background: rgba(30,20,10,.6); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pcard { background: var(--card); border: 3px solid var(--gold); border-radius: 26px; padding: 22px 26px; text-align: center; width: min(360px, 100%); animation: pop .3s; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pcard h2 { margin: 6px 0; } .pcard p { margin: 4px 0 12px; }
.pop-emoji { font-size: 4.5rem; animation: bob 1.4s ease-in-out infinite; }
.chest { font-size: 5rem; animation: chestshake .5s infinite; display: inline-block; }
.chest.open { animation: pop .4s; }
@keyframes chestshake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* ---------- summary ---------- */
.sum h2 { text-align: center; margin: 0 0 4px; }
.bigstars { display: flex; justify-content: center; gap: 8px; font-size: 3rem; margin: 6px 0 10px; }
.bigstars .star { filter: grayscale(1) opacity(.35); transform: scale(.6); }
.bigstars .star.on { animation: starin .5s forwards; animation-delay: var(--d); }
@keyframes starin { 0% { transform: scale(.2) rotate(-90deg); } 70% { transform: scale(1.4) rotate(10deg); } 100% { transform: scale(1) rotate(0); filter: none; } }
.sum .lvl-row { margin: 10px auto; }
.sum .goalnote { text-align: center; font-size: .8rem; opacity: .8; }

/* ---------- missions modal ---------- */
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.mrow .mi { font-size: 1.8rem; } .mrow .grow { flex: 1; } .mrow .xpbar { height: 10px; margin-top: 4px; }
.mrow.done .xpbar i { background: var(--good); } .mrow .rw { font-size: .75rem; opacity: .8; white-space: nowrap; }

/* ---------- tap mechanic ---------- */
.board2 .slots, .board2 .items { position: absolute; inset: 0; pointer-events: none; }
.board2 .guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board2 .guide polygon, .board2 .guide line { fill: rgba(229,72,77,.08); stroke: rgba(150,30,50,.75); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.board2 .guide line { fill: none; }
.board2 .side { position: absolute; top: 44%; font-size: 9cqw; pointer-events: none; opacity: .75; } .board2 .side.l { left: 12%; } .board2 .side.r { right: 12%; }
.slot { position: absolute; transform: translate(-50%, -50%); border: 2px dashed rgba(90,58,10,.55); border-radius: 50%; background: rgba(255,255,255,.18); animation: slotpulse 1.3s ease-in-out infinite; }
@keyframes slotpulse { 50% { background: rgba(255,255,255,.4); border-color: rgba(90,58,10,.8); } }
.piece { cursor: pointer; }
.piece.pop { animation: poppiece .35s cubic-bezier(.2,1.6,.4,1); }
.piece.messy { filter: saturate(.85) brightness(.92); }
.piece.messy.pop { animation: tumble .55s cubic-bezier(.3,1.3,.5,1); }
@keyframes poppiece { from { scale: .2; opacity: 0; } 60% { scale: 1.3; opacity: 1; } to { scale: 1; } }
/* pieces are centred with translate:-50% -50%, so the animations keep that offset (scale/rotate never move them off their spot) */
@keyframes tumble { from { translate: -50% -310%; rotate: 220deg; opacity: 0; } 70% { translate: -50% -44%; opacity: 1; } to { translate: -50% -50%; rotate: 0deg; } }
.board2.shake { animation: bodyshake .35s; }
.ing { position: relative; }
.ing.tapped { animation: tilebounce .22s; }
@keyframes tilebounce { 40% { transform: scale(.92); } 70% { transform: scale(1.06); } }
.ing.over { border-color: var(--bad); background: #ffecec; }
.ing small.cnt { font-variant-numeric: tabular-nums; font-size: .8rem; }
.ing small.cnt.over { color: #c0262c; font-weight: 800; opacity: 1; }
.ing .minus { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; line-height: 1; opacity: .75; }
.ing .minus:hover { opacity: 1; background: #ffe3e3; }
.want.over { background: #ffe3e3; border-color: var(--bad); animation: shake .3s 2; }
.want.over b { background: var(--bad); }
.floaty.bad { color: #c0262c; font-size: 1.6rem; }
.memhide .tot { display: none; }
.memhide .want b .cur::after { content: ""; }
.peek { margin-left: 8px; padding: 3px 10px; font-size: .78rem; }
/* ---------- cooking stages: fold, pan, cut, plate ---------- */
.foldbox { display: flex; justify-content: center; margin: 6px 0 10px; }
.fold3d { position: relative; width: min(340px, 78vw); aspect-ratio: 1; perspective: 900px; touch-action: none; cursor: grab; user-select: none; }
.fbase, .ff { position: absolute; left: 0; right: 0; background-image: var(--photo); background-size: 100% 200%; background-repeat: no-repeat; }
.fbase { bottom: 0; height: 50%; background-position: bottom; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.fflap { --a: 0; position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; }
.ff { top: 0; height: 100%; background-position: top; backface-visibility: hidden; }
.fshade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); opacity: var(--a); }
.fb { position: absolute; inset: 0; backface-visibility: hidden; transform: rotateX(180deg); background: radial-gradient(ellipse at 50% 0%, #f2d9a4, #deb066); clip-path: ellipse(49% 98% at 50% 0%); }
.fgrip { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); background: rgba(255,255,255,.92); border: 2px solid var(--line); border-radius: 99px; padding: 3px 14px; font-size: .8rem; font-weight: 700; pointer-events: none; animation: bob 1.6s ease-in-out infinite; transition: opacity .2s; }

.panbox { text-align: center; }
.panwrap { --heat: 0; position: relative; width: min(320px, 78vw); margin: 10px auto 6px; }
.pan { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #54545c, #26262c 70%); box-shadow: 0 8px 0 #15151a, inset 0 0 24px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; transition: box-shadow .2s; }
.pan::after { content: ""; position: absolute; right: -12%; top: 46%; width: 16%; height: 8%; background: #3a2a1c; border-radius: 0 10px 10px 0; z-index: -1; }
.panrim { position: absolute; inset: 3%; border-radius: 50%; border: 6px solid #5c5c66; pointer-events: none; }
.panpiz { position: relative; width: 78%; cursor: pointer; touch-action: none; user-select: none; }
.panpiz img { width: 100%; display: block; pointer-events: none; filter: sepia(0) brightness(1.06); }
.grill { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: multiply; background: repeating-linear-gradient(115deg, rgba(40,20,5,.85) 0 7px, transparent 7px 26px);
  -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.panpiz.flip { animation: panflip .55s ease-out; }
@keyframes panflip { 0% { transform: rotateY(0) translateY(0) scale(1); } 50% { transform: rotateY(180deg) translateY(-34px) scale(1.12); } 100% { transform: rotateY(360deg) translateY(0) scale(1); } }
.steam { position: absolute; left: 0; right: 0; top: 18%; height: 40%; pointer-events: none; opacity: calc(var(--heat) * 1.6); }
.steam i { position: absolute; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(9px); animation: steam 2.2s ease-in infinite; }
.steam i:nth-child(1) { left: 28%; } .steam i:nth-child(2) { left: 46%; animation-delay: .7s; } .steam i:nth-child(3) { left: 62%; animation-delay: 1.4s; }
@keyframes steam { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-90px) scale(1.9); opacity: 0; } }
.smokeb { position: absolute; left: 25%; right: 25%; top: 4%; height: 40%; border-radius: 50%; background: radial-gradient(circle, rgba(40,40,40,.85), transparent 70%); filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; animation: steam 1.6s ease-in infinite; }
.panwrap.smoky .smokeb { opacity: .85; }
.flameb { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); font-size: 3.2rem; opacity: 0; pointer-events: none; }
.panwrap.flaming .flameb { opacity: 1; animation: flick .25s infinite alternate; }
@keyframes flick { from { transform: translateX(-50%) scale(1) rotate(-4deg); } to { transform: translateX(-50%) scale(1.2) rotate(4deg); } }
.panwrap.glow .pan { box-shadow: 0 8px 0 #15151a, 0 0 46px 10px rgba(255,210,80,.95), inset 0 0 24px rgba(0,0,0,.6); }
.acum { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: #ffd84d; color: #5a3a00; font-weight: 800; padding: 2px 16px; border-radius: 99px; border: 2px solid #e0a800; opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 2; }
.acum.on { opacity: 1; animation: pulse .5s infinite; }
.panhud { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0 10px; font-size: .85rem; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: #d9a441; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.donelbl { font-weight: 700; min-width: 110px; text-align: left; } .donelbl.good { color: #1b7a4a; } .donelbl.warn { color: #b36b00; } .donelbl.bad { color: #c0262c; }
.sidechip { background: #d7f3e1; border: 2px solid var(--good); border-radius: 99px; padding: 2px 10px; font-size: .78rem; }

.cutbox { text-align: center; }
.cutstage { margin: 6px auto; }
.simg { position: absolute; left: 10%; top: 28%; width: 80%; height: 40%; background-image: var(--img); background-size: 100% 100%; background-repeat: no-repeat; filter: var(--filt, none); }
.quote { display: block; font-size: .8rem; opacity: .8; margin: 2px 0 4px; }
.cutreq.modreq { background: #ffe3ec; border-color: #e5484d; }
.modpill { background: #fff1c9 !important; border-color: #e0a800 !important; }
@media (max-width: 560px) { .modpill b { display: none; } }
.cutreq { display: inline-block; margin-left: 6px; background: #fff1c9; border: 2px solid #e0a800; border-radius: 99px; padding: 0 8px; font-size: .75rem; font-weight: 700; }

.plateWrap { display: flex; justify-content: center; margin: 6px 0 12px; }
.plate { position: relative; width: min(300px, 76vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 60%, #f1e6d3 61% 65%, #fff 66%); box-shadow: 0 8px 16px rgba(0,0,0,.25), inset 0 0 0 4px #e8cfa6; animation: plateIn .45s cubic-bezier(.2,1.2,.4,1); }
.plate .platestage { position: absolute; inset: 0; }
.plate .slayers { position: absolute; inset: 0; }
.plate.glide { animation: glide .42s ease-in forwards; }
@keyframes plateIn { from { transform: translateY(40px) scale(.7); opacity: 0; } }
@keyframes glide { to { transform: translateY(-230px) scale(.45); opacity: 0; } }

#decor small { font-size: .75rem; padding-bottom: 6px; }
body.shake { animation: bodyshake .4s; }
@keyframes bodyshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  #topbar { gap: 6px; padding: 5px 8px; }
  .chip { padding: 3px 8px; font-size: .74rem; }
  .play { font-size: 1.25rem; padding: 14px 30px; }
  .hub-logo { height: 70px; }
  .counter .cust { width: 120px; height: 155px; font-size: 70px; }
  .custwrap { padding-top: 58px; } .say { max-width: 150px; font-size: .74rem; padding: 4px 9px; }
  .bubble { min-width: 0; }
  .want { width: 48px; height: 48px; } .want .sprite { width: 34px; height: 34px; }
  .dock { gap: 5px; padding: 8px 6px 12px; }
  .dock button { min-width: 56px; padding: 6px 5px; }
  #g-head .pill { padding: 3px 8px; font-size: .78rem; }
}

/* couple orders */
.tiles { grid-template-columns: repeat(4, 1fr) !important; }
.tile .badge { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #e5484d; color: #fff; font: 700 .72rem/20px system-ui; text-align: center; font-style: normal; animation: pulse 1.4s infinite; }
.ordform { display: grid; gap: 6px; } .ordform label { display: grid; gap: 2px; font-size: .8rem; } .ordform input, .ordform select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 2px solid #e8cfa6; background: #fff; }

.replyin { width: 100%; margin: 8px 0; padding: 8px 10px; font: inherit; border-radius: 12px; border: 2px solid #e8cfa6; box-sizing: border-box; }

/* chef's special */
.chefgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { padding: 5px 10px; border-radius: 99px; font-size: .78rem; background: #fff; border: 2px solid #e8cfa6; } .chip.on { background: #ffe9a8; border-color: #e0a800; font-weight: 700; }
.chefl { display: grid; gap: 2px; font-size: .8rem; } .chefl input { font: inherit; padding: 6px 8px; border-radius: 10px; border: 2px solid #e8cfa6; }
.chefq { display: flex; align-items: center; gap: 8px; margin: 3px 0; } .chefq span { flex: 1; } .chefq button { width: 30px; height: 30px; padding: 0; border-radius: 50%; } .chefq b { min-width: 1.4em; text-align: center; }
.harm { margin: 10px 0; display: grid; gap: 4px; } .hbar { height: 12px; border-radius: 99px; background: #eee2c8; overflow: hidden; } .hbar i { display: block; height: 100%; background: linear-gradient(90deg, #e5484d, #f2b632, #6ab04c); transition: width .25s; }

/* sign-in */
.loginbox { display: grid; gap: 10px; justify-items: center; width: min(320px, 90vw); margin: 10px auto; }
.loginbox input { width: 100%; font: inherit; padding: 10px 14px; border-radius: 14px; border: 3px solid #e8cfa6; text-align: center; box-sizing: border-box; }
.loginbox .lrow { display: flex; gap: 10px; } .loginbox .err { color: #c0392b; min-height: 1.2em; text-align: center; }
.loginbox .remember { display: flex; align-items: center; gap: 6px; font-size: .85rem; } .loginbox .remember input { width: auto; }

#partnerPill.pingable { cursor: pointer; animation: pingglow 2.4s ease-in-out infinite; }
#partnerPill.pingable:hover { transform: scale(1.06); }
@keyframes pingglow { 50% { box-shadow: 0 0 0 4px rgba(255,105,150,.35); } }
