/* THE COFFEE BAR (js/coffee/) — full-screen stages in the Smoothie / Pizza style.
   The shared stage base (.rms: world fade, hint rings, pop words, the big NEXT
   button, .rm-in arrivals) lives in ramen.css; the start boards (.rst), the cup
   pegboard (.chs) and the score card (.sdn) are shared with the Smoothie Bar
   (smoothie.css / mix.css); js/stagefit.js fits every step to the screen's shape. */

/* the scene shell hides while a stage is up; the top bar floats over it */
.cfbar { position: relative; width: 100%; height: 100%; }
.cfbar.mixing { background: #fff8fb; }
.cfbar.mixing > :not(.mixstage-wrap) { visibility: hidden; }
body.coffee-staged #topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 50;
  background: none; pointer-events: none; border-bottom: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.coffee-staged #topbar > * { pointer-events: auto; }
/* a phone in portrait: only back / hearts / coins / sound float over the game (as in the other games, hub.css) */
@media (max-width: 520px) {
  body:is(.scene-coffee, .coffee-staged) #topbar .back[data-go]:not([data-go="menu"]) { display: none; }
  body:is(.scene-coffee, .coffee-staged) #topbar::after { display: none; }
}
.cfbar .mixstage-wrap { transition: opacity .45s ease, transform .55s cubic-bezier(.3,1,.4,1); }
.cfbar .mixstage-wrap.entering { opacity: 0; transform: translateX(16%); }
.cfbar .mixstage-wrap.leaving { opacity: 0; transform: translateX(-16%); }

/* steam wisps rise from a hot drink */
.mxs .cf-steam path { animation: cfSteam 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.mxs .cf-steam path:nth-child(2n) { animation-delay: -1.1s; }
@keyframes cfSteam { 0% { opacity: .35; transform: translateY(6px) scaleY(.9); } 100% { opacity: .95; transform: translateY(-8px) scaleY(1.06); } }
.mxs svg { overflow: visible; }

/* ---------------- STEP 1: THE CUPS (shares the smoothie pegboard) ---------------- */
.cfc .ch-pan svg { overflow: visible; }
.cfc .ch-preview svg { overflow: visible; }

/* ---------------- STEP 2: BREW ---------------- */
.cfb .cfb-mach, .cfb .cfb-grinder, .cfb .cfb-pf, .cfb .cfb-cup, .cfb .cfb-tamper, .cfb .cfb-tin, .cfb .cfb-icebkt { position: absolute; }
.cfb .cfb-mach svg, .cfb .cfb-grinder svg, .cfb .cfb-pf svg, .cfb .cfb-tamper svg, .cfb .cfb-tin svg, .cfb .cfb-icebkt svg { display: block; overflow: visible; pointer-events: none; }
.cfb .cfb-mach { z-index: 4; cursor: pointer; }
.cfb .cfb-mach.giggle svg { animation: cfGiggle .45s ease-in-out; transform-origin: 50% 100%; }
@keyframes cfGiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-1.6deg) scale(1.01, .99); } 60% { transform: rotate(1.4deg); } }
.cfb .cfb-cup { left: 0; top: 0; z-index: 5; pointer-events: none; }
.cfb .cfb-cup > svg { position: absolute; left: 0; top: 0; }
.cfb .cfb-grinder { z-index: 6; cursor: pointer; touch-action: none; transition: opacity .35s, translate .5s cubic-bezier(.5,0,.7,.4); }
.cfb .cfb-grinder.busy svg { animation: cfBuzz .07s linear infinite alternate; }
@keyframes cfBuzz { from { transform: translate(-2px, 0) rotate(-.6deg); } to { transform: translate(2px, -1px) rotate(.6deg); } }
.cfb .cfb-grinder.gone { opacity: 0; translate: -260px 0; pointer-events: none; }
.cfb .cfb-pf { z-index: 8; touch-action: none; cursor: pointer; transition: opacity .35s; }
.cfb .cfb-pf.ready svg { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #ff9fc6); cursor: grab; }
.cfb .cfb-pf.lifted svg { filter: drop-shadow(0 14px 10px rgba(90,40,80,.28)); }
.cfb .cfb-pf.slide { transition: left .36s cubic-bezier(.3,1.2,.5,1), top .36s cubic-bezier(.3,1.2,.5,1), scale .36s; }
.cfb .cfb-pf.twist svg { animation: cfTwist .26s ease-in-out; transform-origin: 70% 40%; }
@keyframes cfTwist { 50% { transform: rotate(-9deg); } }
.cfb .cfb-pf.gone { opacity: 0; pointer-events: none; }
.cfb .cfb-tamper { z-index: 9; width: 120px; height: 130px; opacity: 0; pointer-events: none; translate: 0 -120px; transition: opacity .25s, translate .45s cubic-bezier(.3,1.5,.5,1); cursor: pointer; touch-action: none; }
.cfb .cfb-tamper.show { opacity: 1; pointer-events: auto; translate: 0 0; }
.cfb .cfb-tamper.show:not(.down) svg { animation: cfBob 1.2s ease-in-out infinite; }
.cfb .cfb-tamper.down svg { transform: translateY(26px) scaleY(.92); transition: transform .08s; }
.cfb .cfb-tamper.away { translate: 0 -300px; opacity: 0; }
@keyframes cfBob { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }
.cfb .cfb-bean { position: absolute; width: 18px; height: 15px; pointer-events: none; z-index: 7; animation: cfBean .5s cubic-bezier(.5,0,1,.6) forwards; }
@keyframes cfBean { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: .4; } }
.cfb .cfb-arrow { position: absolute; width: 190px; height: 50px; pointer-events: none; z-index: 7; animation: cfArrow 1.2s ease-in-out infinite; }
@keyframes cfArrow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.cfb .cfb-tin, .cfb .cfb-icebkt { width: 160px; height: 200px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 7; opacity: 0; pointer-events: none; translate: 0 40px; transition: opacity .3s, translate .5s cubic-bezier(.3,1.5,.5,1); }
.cfb .cfb-icebkt { height: 170px; }
.cfb .cfb-tin.show, .cfb .cfb-icebkt.show { opacity: 1; pointer-events: auto; translate: 0 0; }
.cfb .cfb-icebkt.done { pointer-events: none; }
.cfb .cfb-tin.give svg, .cfb .cfb-icebkt.give svg { animation: cfGive .35s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 100%; }
@keyframes cfGive { 40% { transform: scale(1.08, .9); } }
.cfb .cfb-cube, .cfb .cfb-scoop { position: absolute; pointer-events: none; z-index: 30; transition: left .42s cubic-bezier(.3,.6,.5,1), top .42s cubic-bezier(.5,-.6,.7,1); }
.cfb .cfb-cube { width: 44px; height: 44px; }
.cfb .cfb-scoop { width: 80px; height: 100px; }
.cfb .cfb-scoop.go svg { animation: cfTip .42s ease-in forwards; transform-origin: 50% 70%; }
@keyframes cfTip { 70% { transform: rotate(0); } 100% { transform: rotate(-80deg); } }
.cfb .cfb-cube svg, .cfb .cfb-scoop svg { display: block; overflow: visible; }

/* the gauge + the big hold button */
.cfb .cfb-gauge { position: absolute; z-index: 9; opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .3s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.cfb .cfb-gauge.show { opacity: 1; transform: none; }
.cfb .cfb-gauge.idle:not(.show), .cfb .cfb-btn.idle:not(.show) { opacity: .38; transform: scale(.9); filter: saturate(.5); }
.cfb .cfb-gauge svg { display: block; overflow: visible; }
.cfb .cfb-gauge.just svg { filter: drop-shadow(0 0 10px #8ee0a8); }
.cfb .cfb-needle { transition: transform .06s linear; }
.mxs .cfb-btn { position: absolute; z-index: 9; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .25s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.mxs .cfb-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.mxs .cfb-btn svg { display: block; overflow: visible; pointer-events: none; }
.mxs .cfb-btn.show:not(.down) svg { animation: cfPulse 1.3s ease-in-out infinite; }
.mxs .cfb-btn .cfb-btop { transition: transform .08s; }
.mxs .cfb-btn.down .cfb-btop { transform: translateY(10px); }
.mxs .cfb-btn b { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 3px 14px; border-radius: 14px; background: #fff; border: 3px solid #5a2d4c; font-size: 20px; font-weight: 900; color: #5a2d4c; white-space: nowrap; pointer-events: none; }
@keyframes cfPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* the drink menu board */
.cfb .cfb-menu { position: absolute; z-index: 20; opacity: 0; pointer-events: none; transform: translateY(-60px) rotate(-2deg); transition: opacity .3s, transform .55s cubic-bezier(.3,1.4,.5,1); }
.cfb .cfb-menu.show { opacity: 1; pointer-events: auto; transform: none; }
.cfb .cfb-board { position: relative; padding: 70px 22px 26px; border-radius: 30px; background: #4d4a5c; border: 12px solid #e9b07a; box-shadow: 0 0 0 4px #5a2d4c, 0 14px 0 rgba(90,45,76,.18); box-sizing: border-box; }
.cfb .cfb-mtitle { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); white-space: nowrap; font-size: 32px; font-weight: 900; color: #fff; letter-spacing: .5px; }
.cfb .cfb-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.cfb .cfb-tile { position: relative; width: var(--tw, 168px); height: calc(var(--tw, 168px) * .95); padding: 6px 0 0; border-radius: 22px; border: 4px solid #5a2d4c; background: radial-gradient(circle at 50% 38%, #fff, #fff1f6 70%); cursor: pointer; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 0 rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cfb .cfb-tile svg { display: block; overflow: visible; }
.cfb .cfb-tile span { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 18px; font-weight: 900; color: #5a2d4c; }
.cfb .cfb-tile:active { transform: scale(.95); }
.cfb .cfb-tile.wish { box-shadow: 0 0 0 5px #fff, 0 0 18px 8px #ffd23f; animation: cfWish 1.2s ease-in-out infinite; }
@keyframes cfWish { 0%, 100% { transform: none; } 50% { transform: translateY(-6px) rotate(-2deg); } }
.cfb .cfb-tile.sel { transform: scale(1.1); box-shadow: 0 0 0 6px #fff, 0 0 24px 10px #ff9fc6; z-index: 2; }

/* ---------------- STEP 3: THE MILK ---------------- */
.cfm .cfm-mach, .cfm .cfm-pitcher, .cfm .cfm-choc { position: absolute; }
.cfm .cfm-mach { z-index: 4; pointer-events: none; }
.cfm .cfm-mach svg, .cfm .cfm-pitcher svg, .cfm .cfm-choc svg { display: block; overflow: visible; pointer-events: none; }
.cfm .cfm-cup, .cfm .cfm-stream, .cfm .cfm-meter { position: absolute; left: 0; top: 0; pointer-events: none; }
.cfm .cfm-cup { z-index: 5; } .cfm .cfm-stream { z-index: 7; } .cfm .cfm-meter { z-index: 6; transition: opacity .3s; }
.cfm .cfm-cup > svg, .cfm .cfm-stream > svg, .cfm .cfm-meter > svg { position: absolute; left: 0; top: 0; }
.cfm .cfm-pitcher { z-index: 8; touch-action: none; cursor: pointer; transition: rotate .3s cubic-bezier(.3,1.3,.5,1); }
.cfm .cfm-pitcher.steaming svg { animation: cfBuzz .08s linear infinite alternate; }
.cfm .cfm-pitcher .cf-swirl { animation: cfSwirl .5s linear infinite; }
@keyframes cfSwirl { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.cfm .cfm-pitcher.ready svg { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #9fdcff); cursor: grab; }
.cfm .cfm-pitcher.lifted svg { filter: drop-shadow(0 16px 12px rgba(90,40,80,.28)); }
.cfm .cfm-pitcher.tilt { rotate: 62deg; }
.cfm .cfm-pitcher.slide { transition: left .4s cubic-bezier(.3,1.2,.5,1), top .4s cubic-bezier(.3,1.2,.5,1), rotate .3s; }
.cfm .cfm-choc { width: 100px; height: 140px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 7; transform-origin: 50% 100%; transition: opacity .3s; }
.cfm .cfm-choc span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 2px 10px; border-radius: 12px; background: #fff; border: 2.5px solid #5a2d4c; font-weight: 900; font-size: 14px; color: #5a2d4c; white-space: nowrap; }
.cfm .cfm-choc.squeeze svg { animation: cfSqueeze .4s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 100%; }
@keyframes cfSqueeze { 40% { transform: scale(1.12, .84); } }
.cfm .cfm-meter.away { opacity: .25; }
.cfm .gone { opacity: 0 !important; pointer-events: none !important; }

/* ---------------- STEP 4: LATTE ART + TOPPINGS ---------------- */
.cfa .cfa-cup { position: absolute; left: 0; top: 0; z-index: 5; touch-action: none; }
.cfa .cfa-cup > svg { position: absolute; left: 0; top: 0; pointer-events: none; }
.cfa .cfa-cup.bump > svg { animation: cfBump .3s cubic-bezier(.3,1.6,.5,1); transform-origin: 30% 55%; }
@keyframes cfBump { 40% { transform: scale(1.012, .988); } }
.cfa .cfa-cup.bloom .cf-artshape { animation: cfBloom .7s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: center; }
@keyframes cfBloom { 0% { transform: scale(.4); opacity: .3; } 100% { transform: none; opacity: 1; } }
.cfa .cf-guide .cf-gdot { animation: cfDot 1.2s ease-in-out infinite; }
@keyframes cfDot { 50% { opacity: .55; } }
.cfa .cfa-shapes { position: absolute; left: 0; top: 0; z-index: 7; transition: opacity .35s, translate .5s cubic-bezier(.5,0,.7,.4); }
.cfa .cfa-shapes.away { opacity: 0; translate: 400px 0; pointer-events: none; }
.cfa .cfa-shapes.gone { display: none; }
.cfa .cfa-shape { position: absolute; width: 124px; height: 124px; padding: 0; border-radius: 30px; border: 4px solid #5a2d4c; background: radial-gradient(circle at 50% 40%, #fff, #fff1e6 75%); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 rgba(90,45,76,.18); transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.cfa .cfa-shapes.in .cfa-shape { transform: none; }
.cfa .cfa-shape:nth-child(2) { transition-delay: .06s; } .cfa .cfa-shape:nth-child(3) { transition-delay: .12s; } .cfa .cfa-shape:nth-child(4) { transition-delay: .18s; } .cfa .cfa-shape:nth-child(5) { transition-delay: .24s; }
.cfa .cfa-shape svg { display: block; margin-top: -14px; }
.cfa .cfa-shape span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 2px 12px; border-radius: 12px; background: #fff; border: 3px solid #5a2d4c; font-weight: 900; font-size: 16px; color: #5a2d4c; white-space: nowrap; }
.cfa .cfa-shape.wish { box-shadow: 0 0 0 5px #fff, 0 0 18px 8px #ffd23f; }
.cfa .cfa-shapes.in .cfa-shape.wish { animation: cfWish 1.2s ease-in-out infinite; }
.cfa .cfa-shape.sel { box-shadow: 0 0 0 6px #fff, 0 0 22px 10px #ff9fc6; }
.cfa .cfa-shape.sel span { background: #ff8fb1; color: #fff; border-color: #fff; }
.cfa .cfa-jug { position: absolute; width: 140px; height: 140px; pointer-events: none; z-index: 20; opacity: 0; transition: opacity .2s; }
.cfa .cfa-jug.show { opacity: 1; }
.cfa .cfa-jug svg { display: block; overflow: visible; }
.cfa .cfa-cart { position: absolute; z-index: 7; transform: translateX(560px); }
.cfa .cfa-cart.in { transform: none; transition: transform .7s cubic-bezier(.3,1.2,.5,1); }
.cfa .cfa-cart.roll { animation: pztRoll .32s ease-in-out; }
.cfa .cfa-cart > svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; pointer-events: none; }
.cfa .cfa-item { position: absolute; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; border-radius: 18px; }
.cfa .cfa-item span { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) scale(var(--is, 1)); transform-origin: 50% 100%; padding: 1px 8px; border-radius: 10px; background: #fff; border: 2.4px solid #5a2d4c; font-weight: 900; font-size: 13px; color: #5a2d4c; white-space: nowrap; pointer-events: none; }
.cfa .cfa-item:active { background: rgba(255,255,255,.5); }
.cfa .cfa-page { position: absolute; right: -24px; top: 50%; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; border: 4px solid #5a2d4c; background: #ff8fb1; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(90,45,76,.2); animation: pztNudge 1.6s ease-in-out infinite; }
.cfa .cfa-page svg { display: block; }
.cfa .cfa-fly { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.cfa .cfa-live { position: absolute; left: 0; top: 0; pointer-events: none; }
.cfa .cfa-live svg { position: absolute; left: 0; top: 0; overflow: visible; }
.cfa .cfa-ghost { position: absolute; width: 120px; height: 120px; pointer-events: none; transform: scale(1.1) rotate(-6deg); filter: drop-shadow(0 14px 10px rgba(90,40,80,.28)); transition: transform .2s; }
.cfa .cfa-ghost svg { display: block; overflow: visible; }
.cfa .cfa-ghost.over { transform: scale(1.22) rotate(4deg); }
.cfa .cfa-ghost.land { transition: left .2s ease-in, top .2s ease-in, transform .2s, opacity .15s .08s; transform: scale(.6); opacity: 0; }
.cfa .cfa-ghost.gone { transform: scale(.2); opacity: 0; transition: transform .25s, opacity .25s; }
.cfa .cfa-tool { position: absolute; width: 140px; height: 180px; pointer-events: none; z-index: 31; opacity: 0; transition: opacity .2s; }
.cfa .cfa-tool.show { opacity: 1; }
.cfa .cfa-tool svg { display: block; overflow: visible; }
.cfa .cfa-tool.shaking svg { animation: pztShake .12s linear infinite alternate; }
.cfa .cfa-pump { position: absolute; width: 120px; height: 160px; pointer-events: none; animation: cfPump .7s ease-in-out forwards; }
.cfa .cfa-pump svg { display: block; overflow: visible; }
@keyframes cfPump { 0% { opacity: 0; transform: translateY(-40px); } 20% { opacity: 1; transform: none; } 45% { transform: translateY(10px) scaleY(.92); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---------------- STEP 5: SERVE ---------------- */
.cfv .cfv-cust { position: absolute; opacity: 0; transform: translateY(60px); transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.cfv .cfv-cust.in { opacity: 1; transform: none; }
.cfv .cfv-cust .puppet { display: block; width: 100%; height: auto; overflow: visible; }
.cfv .cfv-cust.shiver .cfv-pup { animation: cfShiver .07s linear 16 alternate; }
@keyframes cfShiver { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
.cfv .cfv-cust.zoom .cfv-pup { animation: cfZoom 1.3s cubic-bezier(.4,0,.3,1); transform-origin: 50% 80%; }
@keyframes cfZoom { 0% { transform: none; } 20% { transform: scale(1.08) translateY(-20px); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(8deg) translateY(-14px); } 100% { transform: none; } }
.cfv > .world > svg.cfv-counter { z-index: 2; }
.cfv .cfv-cup { position: absolute; width: 360px; height: 360px; z-index: 6; touch-action: none; cursor: grab; }
.cfv .cfv-cup svg { display: block; overflow: visible; pointer-events: none; }
.cfv .cfv-cup.lifted svg { filter: drop-shadow(0 14px 10px rgba(90,40,80,.22)); }
.cfv .cfv-cup.held { z-index: 9; }
.cfv .cfv-cup.slide { transition: left .55s cubic-bezier(.3,1.2,.5,1), top .55s cubic-bezier(.3,1.2,.5,1); }
.cfv .cfv-over { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 10; opacity: 0; transition: opacity .3s; }
.cfv .cfv-over.show { opacity: 1; }
.cfv .cfv-over svg { position: absolute; left: 0; top: 0; overflow: visible; }
.cfv .cfv-bubble { position: absolute; max-width: 320px; padding: 12px 18px; border-radius: 22px 22px 6px 22px; background: #fff; border: 3px solid #ffd1e6; box-shadow: 0 5px 12px rgba(90,40,80,.16); font-weight: 900; font-size: 22px; line-height: 1.25; color: #5a2d4c; opacity: 0; transform: scale(.7); transform-origin: 100% 100%; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; z-index: 20; }
.cfv[data-mode="tall"] .cfv-bubble { font-size: 30px; }
.cfv .cfv-bubble.show { opacity: 1; transform: none; }
.cfv .cfv-hint { position: absolute; width: 170px; pointer-events: none; z-index: 10; display: flex; flex-direction: column; align-items: center; animation: pzvHop 1.1s ease-in-out infinite; }
.cfv .cfv-hint span { padding: 6px 16px; border-radius: 18px; background: #fff; border: 4px solid #5a2d4c; font-weight: 900; font-size: 22px; color: #e0598a; white-space: nowrap; box-shadow: 0 4px 0 rgba(90,45,76,.18); }
@keyframes pzvHop { 0%, 100% { transform: none; } 50% { transform: translateY(-10px); } }

/* ---------------- THE COFFEE CARD (shares the smoothie card's .sdn look) ---------------- */
.cfn .cfn-bob { animation: cfnBob 2.6s ease-in-out infinite; }
@keyframes cfnBob { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }
.cfn .sdn-chips i svg { display: block; }
.cfn .sdn-chips b { white-space: nowrap; text-transform: none; }
.cfn .sdn-ribbon, .cfn .sdn-chips { transform-origin: 0 0; }
.cfn .sdn-wishes .w svg { display: block; }

/* ---------------- POLISH (Oct 2026): big tickable wish chips, tools, reward toppings ---------------- */
/* the Take-orders ticket: every wish a big chip (the drink = the pink-edged "wants" chip), no words / face */
.mxs .ticket.cf-tk { gap: 3px; padding: 0 8px; justify-content: flex-end; }
.mxs .ticket.cf-tk > small, .mxs .ticket.cf-tk > .tk-face { display: none; }
.mxs .ticket.cf-tk .chip { width: 44px; height: 44px; border-radius: 12px; }
.mxs .ticket.cf-tk .chip svg { width: 36px; height: 36px; }
.mxs .ticket.cf-tk .chip.cf-want { border-color: #ff8fb1; }
.mxs .ticket.cf-tk .chip.done { border-color: #5aa06f; }
.mxs .ticket.cf-tk .chip.done::after { content: ''; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #5aa06f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 L5.2 8.4 L9 4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border: 2px solid #fff; }
/* portrait: the ticket a size bigger (wish chips >= 36 px on a phone), the bubble leaves it room */
.mxs[data-mode="tall"] .ticket.cf-tk { scale: calc(var(--hud-k, 1) * 1.25); transform-origin: 0 0; left: calc(var(--ticket-x, 540px) - 214px * var(--hud-k, 1) * .25); }
.mxs[data-mode="tall"]:is(.cfc, .cfb, .cfm, .cfa) .mx-bubble { max-width: calc(var(--bubble-max, 176px) - 56px); }

/* the wished cup on the pegboard glows */
.cfc .ch-card.wish { box-shadow: 0 0 0 5px #fff, 0 0 18px 8px #ffd23f; border-radius: 22px; animation: cfWish 1.2s ease-in-out infinite; }

/* hot chocolate: the EQUIPPED spoon stands in the cup and stirs */
.cfb .cfb-spoon { position: absolute; z-index: 4; opacity: 0; pointer-events: none; translate: 0 -60px; transition: opacity .3s, translate .45s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 95%; }
.cfb .cfb-spoon.show { opacity: 1; translate: 0 0; pointer-events: auto; cursor: pointer; }
.cfb .cfb-spoon.away { opacity: 0; translate: 0 -80px; }
.cfb .cfb-spoon svg { display: block; overflow: visible; pointer-events: none; }
.cfb .cfb-spoon.stirring { animation: cfStirSide .5s ease-in-out 3; }
@keyframes cfStirSide { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-14px) rotate(-7deg); } 75% { transform: translateX(14px) rotate(7deg); } }

/* the toppings bar: wished toppings glow; the page arrow pulses when a wish is over there */
.cfa .cfa-item.wish { box-shadow: 0 0 0 4px #fff, 0 0 16px 7px #ffd23f; background: rgba(255,246,190,.45); }
.cfa .cfa-page.pulse { animation: cfPagePulse .8s ease-in-out infinite; box-shadow: 0 0 0 5px #fff, 0 0 18px 8px #ffd23f; }
@keyframes cfPagePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.cfa .cfa-page { min-width: 60px; min-height: 60px; }
/* the EQUIPPED spoon resting on the saucer (tap it: it stirs) */
.cfa .cfa-spoon { position: absolute; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .35s; touch-action: manipulation; }
.cfa .cfa-spoon.in { opacity: 1; pointer-events: auto; }
.cfa .cfa-spoon svg { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(3px 5px 0 rgba(90,45,76,.14)); }
.cfa .cfa-spoon.stir { animation: cfStir 1.5s ease-in-out; z-index: 9; }
@keyframes cfStir {
  0% { translate: 0 0; } 18% { translate: var(--sx) var(--sy); }
  32% { translate: calc(var(--sx) + 22px) calc(var(--sy) + 12px); } 46% { translate: var(--sx) calc(var(--sy) + 24px); }
  60% { translate: calc(var(--sx) - 22px) calc(var(--sy) + 12px); } 76% { translate: var(--sx) var(--sy); } 100% { translate: 0 0; }
}

/* the card: no score bar; "Every wish!" (or what to try next time) under the chips */
.cfn .sdn-wishes.cf-wishes { gap: 10px; }
.cfn .sdn-wishes.cf-wishes .w { width: 46px; height: 46px; border-radius: 13px; }
.cfn .sdn-wishes.cf-wishes .w svg { width: 36px; height: 36px; }
.cfn .cf-wishline { font-weight: 900; font-size: 18px; color: #3f8f5a; text-align: center; line-height: 1.2; }
.cfn .sdn-wishes.cf-wishes:has(.w.no) + .cf-wishline { color: #d9577f; font-size: 15px; }
