/* PASTA (js/pasta/, js/scenes/pasta.js) — full-screen stages in the Smoothie /
   Ramen style. The shared stage base (.rms: world fade, hint rings, pop words,
   the big NEXT button, .rm-in arrivals) lives in ramen.css; js/stagefit.js fits
   every step to the screen's shape. Every Pasta stage class starts .pt. */

/* the scene shell hides while a stage is up; the top bar floats over it */
.ptbar { position: relative; width: 100%; height: 100%; }
.ptbar.mixing { background: #fff8fb; }
.ptbar.mixing > :not(.mixstage-wrap) { visibility: hidden; }
body.pasta-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.pasta-staged #topbar > * { pointer-events: auto; }
.ptbar .mixstage-wrap { transition: opacity .45s ease, transform .55s cubic-bezier(.3,1,.4,1); }
.ptbar .mixstage-wrap.entering { opacity: 0; transform: translateX(16%); }
.ptbar .mixstage-wrap.leaving { opacity: 0; transform: translateX(-16%); }
/* (a narrow portrait phone's one-row top bar for .scene-pasta lives in hub.css; the string lights twinkle via italian.css) */

/* ================= shared bits ================= */
/* four wishes squeeze onto the ticket (shape, sauce, topping, style) */
.mxs .ticket.pt-tk4 { gap: 4px; padding: 0 8px; }
.mxs .ticket.pt-tk4 > small:first-of-type, .mxs .ticket.pt-tk4 > .chip:not([data-kind]) { display: none; }
.mxs .ticket.pt-tk4 .chip { width: 28px; height: 28px; }
/* a phone: the wish chips are big (>= 36 px on the screen); the face + words step aside and
   the ticket grows leftwards from the screen's edge (the badge row keeps its place) */
.mxs .ticket.pt-big { width: auto; height: auto; min-height: 56px; padding: 6px 8px; gap: 6px; translate: calc((214px - 100%) * var(--hud-k, 1)) 0; }
.mxs .ticket.pt-big > small, .mxs .ticket.pt-big > .tk-face, .mxs .ticket.pt-big > .chip:not([data-kind]) { display: none; }
.mxs .ticket.pt-big .chip { width: 54px; height: 54px; flex: none; border-radius: 14px; }
.mxs:not([data-mode="tall"]) .ticket.pt-big .chip { width: 76px; height: 76px; border-radius: 18px; }
.mxs .ticket.pt-big .chip > svg { width: 76%; height: 76%; }
.mxs[data-mode="tall"] .layer.hud .mx-bubble { max-width: calc(var(--bubble-max, 176px) - var(--pt-xt, 0px)); }
.mxs:not([data-mode="tall"]) .layer.hud .mx-badge, .mxs:not([data-mode="tall"]) .layer.hud .mx-bubble { margin-left: calc(-1 * var(--pt-xw, 0px)); }
/* the thing the customer wished for glows (and bobs) wherever it waits */
.mxs.rms .wish { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 10px #ffd23f) drop-shadow(0 0 4px #ffd23f); animation: ptWish 1.2s ease-in-out infinite; }
@keyframes ptWish { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.rms .pt-steam { animation: rmSteam 2.6s ease-in-out infinite alternate; }
.rms .pt-new { transform-box: fill-box; transform-origin: 50% 70%; animation: ptPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptPop { from { transform: scale(.2); } 60% { transform: scale(1.18); } to { transform: none; } }
@keyframes ptBob { from { translate: 0 4px; } to { translate: 0 -8px; } }
@keyframes ptHop { 0% { translate: 0 0; } 40% { translate: 0 -34px; } 100% { translate: 0 0; } }
@keyframes ptSwing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* a white glove that shows the move, with its word */
.rms .pt-swipe { position: absolute; width: 160px; pointer-events: none; z-index: 45; display: flex; flex-direction: column; align-items: center; animation: ptSwipe 1.2s ease-in-out infinite; }
.rms .pt-swipe.up { animation-name: ptSwipeUp; }
.rms .pt-swipe span { padding: 6px 16px; border-radius: 18px; background: #fff; border: 4px solid #5a2d4c; font-weight: 900; font-size: 24px; color: #e0598a; white-space: nowrap; box-shadow: 0 4px 0 rgba(90,45,76,.18); }
.rms .pt-swipe svg { display: block; }
@keyframes ptSwipe { 0%, 100% { transform: translateX(-70px); } 50% { transform: translateX(70px); } }
@keyframes ptSwipeUp { 0% { transform: translateY(40px); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(-70px); opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }

/* ================= Free Pasta: the dough + plate pegboard ================= */
.ptd .ch-pan svg { width: 112px; height: 112px; }
.ptd .ptd-ball { transform-box: fill-box; transform-origin: 50% 100%; }
.ptd .ptd-ball.hop { animation: ptBallHop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptBallHop { 0% { transform: translateY(-60px) scale(.8, 1.15); } 60% { transform: translateY(0) scale(1.12, .88); } 100% { transform: none; } }

/* ================= step 1: the choice (two heroes) ================= */
.ptc .ptc-side { position: absolute; width: 470px; height: 580px; padding: 0; border: 0; background: none; cursor: pointer; color: #5a2d4c; opacity: 0; transition: opacity .35s, transform .65s cubic-bezier(.3,1.3,.5,1); }
.ptc .ptc-side.left { transform: translateX(-540px) rotate(-7deg); }
.ptc .ptc-side.right { transform: translateX(540px) rotate(7deg); }
.ptc .ptc-side.in { opacity: 1; transform: none; }
.ptc .ptc-side > svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ptc .ptc-side.in .ptc-hero { animation: ptBob 2.6s ease-in-out infinite alternate; }
.ptc .ptc-side.right.in .ptc-hero { animation-delay: -1.3s; }
.ptc .ptc-side.hop .ptc-hero { animation: ptHop .6s cubic-bezier(.3,1.6,.5,1), ptBob 2.6s ease-in-out .6s infinite alternate; }
.ptc .ptc-tag { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-radius: 28px; background: #fff; border: 4px solid #5a2d4c; box-shadow: 0 5px 0 rgba(90,45,76,.18); font-weight: 900; font-size: 31px; white-space: nowrap; transition: background .2s, color .2s; }
.ptc .ptc-tag svg { display: block; width: 30px; height: 30px; }
.ptc .ptc-side small { position: absolute; left: 50%; top: 68px; transform: translateX(-50%); padding: 3px 14px; border-radius: 12px; background: rgba(255,255,255,.92); font-weight: 800; font-size: 18px; color: #8a6a86; white-space: nowrap; }
.ptc .ptc-side.pick { transform: scale(1.06); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.ptc .ptc-side.pick .ptc-tag { background: #ff8fb1; color: #fff; border-color: #fff; }
.ptc .ptc-side.away.left { transform: translateX(-560px) rotate(-8deg); opacity: 0; }
.ptc .ptc-side.away.right { transform: translateX(560px) rotate(8deg); opacity: 0; }
.ptc .ptc-or { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 4px solid #5a2d4c; box-sizing: border-box; box-shadow: 0 5px 0 rgba(90,45,76,.18); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; color: #e0598a; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.8,.5,1), opacity .3s; pointer-events: none; z-index: 2; }
.ptc .ptc-or.in { transform: none; }
.ptc .ptc-or.away { opacity: 0; }

/* ================= step 1: the jars ================= */
.ptj .ptj-jar { position: absolute; touch-action: none; cursor: grab; z-index: 9; transform-origin: 50% 62%; opacity: 0; transform: translateY(-30px) scale(.6); transition: left .4s cubic-bezier(.3,1.3,.5,1), top .4s cubic-bezier(.3,1.3,.5,1), transform .3s cubic-bezier(.3,1.5,.5,1), opacity .3s; filter: drop-shadow(0 3px 2px rgba(90,40,80,.2)); }
.ptj .ptj-jar svg { display: block; pointer-events: none; overflow: visible; }
.ptj .ptj-jar.in { opacity: 1; transform: none; }
.ptj .ptj-jar.lifted { transition: transform .22s cubic-bezier(.3,1.4,.5,1); transform: scale(1.08); z-index: 20; filter: drop-shadow(0 14px 10px rgba(90,40,80,.28)); cursor: grabbing; }
.ptj .ptj-jar.fly { z-index: 30; transition: left .4s cubic-bezier(.3,1.2,.5,1), top .4s cubic-bezier(.3,1.2,.5,1), transform .3s cubic-bezier(.3,1.4,.5,1); }
.ptj .ptj-jar.tilt { transform: scale(1.08) rotate(118deg); }
.ptj .ptj-jar.tiltl { transform: scale(1.08) rotate(-118deg); }
.ptj .ptj-jar.tilt svg, .ptj .ptj-jar.tiltl svg { animation: ptRattle .12s linear infinite alternate; }
@keyframes ptRattle { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.ptj .ptj-tag { position: absolute; width: 120px; display: flex; justify-content: center; pointer-events: none; transform-origin: 50% 0; z-index: 8; font-weight: 900; font-size: 15px; color: #5a2d4c; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
.ptj .ptj-fly, .ptx .ptx-fly { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
.ptj .ptj-bit { position: absolute; width: 40px; height: 40px; pointer-events: none; transition: left .42s cubic-bezier(.4,0,.8,.6), top .42s cubic-bezier(.6,0,1,.6), transform .42s; }
.ptj .ptj-bit svg, .ptx .ptx-bit svg { display: block; overflow: visible; }
.ptj .ptj-bit.go { transform: rotate(220deg) scale(.8); }

/* ================= step 1: the pasta machine ================= */
.ptm .ptm-ball { position: absolute; width: 120px; height: 120px; touch-action: none; cursor: grab; z-index: 9; opacity: 0; transform: scale(.5); transition: left .45s cubic-bezier(.3,1.3,.5,1), top .45s cubic-bezier(.3,1.3,.5,1), transform .35s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.ptm .ptm-ball svg { display: block; pointer-events: none; overflow: visible; }
.ptm .ptm-ball.in { opacity: 1; transform: none; animation: ptJiggle 2.4s ease-in-out calc(var(--i) * -.5s) infinite; }
.ptm .ptm-ball.lifted { animation: none; transform: scale(1.14); z-index: 20; transition: transform .2s; filter: drop-shadow(0 14px 10px rgba(90,40,80,.28)); cursor: grabbing; }
.ptm .ptm-ball.dim { opacity: 0; transform: translateY(20px) scale(.5); pointer-events: none; animation: none; transition: opacity .4s, transform .4s; }
.ptm .ptm-ball.in-go { animation: none; z-index: 20; transform: scale(.72); transition: left .42s cubic-bezier(.4,0,.6,1), top .42s cubic-bezier(.3,-.8,.6,1), transform .42s; }
.ptm .ptm-ball.gone { opacity: 0; transform: translateY(46px) scale(.25); transition: transform .3s ease-in, opacity .3s .1s; }
@keyframes ptJiggle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.05, .95) translateY(2px); } }
.ptm .ptm-hit { position: absolute; border-radius: 50%; touch-action: none; z-index: 8; cursor: grab; }
/* the equipped rolling pin on the counter: it hops over and rolls the finished sheet smooth */
.ptm .ptm-pin { position: absolute; width: 220px; height: 80px; pointer-events: none; z-index: 7; filter: drop-shadow(0 6px 4px rgba(90,40,80,.22)); }
.ptm .ptm-pin svg { display: block; overflow: visible; }
.ptm .ptm-pin.roll { animation: ptPinRoll 1.6s cubic-bezier(.4,0,.4,1) .2s; }
@keyframes ptPinRoll { 0% { translate: 0 0; } 18% { translate: calc(var(--roll) * .3) -50px; } 36% { translate: var(--roll) 0; } 52% { translate: calc(var(--roll) + 60px) 0; } 68% { translate: calc(var(--roll) - 60px) 0; } 82% { translate: var(--roll) -30px; } 100% { translate: 0 0; } }
.ptm .ptm-arrow { position: absolute; width: 180px; height: 140px; pointer-events: none; opacity: 0; transition: opacity .3s; transform-origin: 90px 110px; }
.ptm .ptm-arrow svg { display: block; overflow: visible; }
.ptm .ptm-arrow.show { opacity: 1; animation: ptSpinHint 1.3s ease-in-out infinite; }
@keyframes ptSpinHint { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
.ptm .ptm-sheet.whoa { animation: ptWhoa .9s cubic-bezier(.3,1.2,.5,1); }
@keyframes ptWhoa { 0% { transform: none; } 35% { transform: translateX(-300px) scaleX(1.1); } 62% { transform: translateX(30px); } 100% { transform: none; } }
.ptm .ptm-body { transform-box: fill-box; transform-origin: 50% 100%; }
.ptm .ptm-mach.ptm-open .ptm-body { animation: ptMachWait .5s ease-in-out infinite alternate; }
@keyframes ptMachWait { from { transform: none; } to { transform: scale(1.03, .97); } }

/* ================= step 1: the cutters ================= */
.ptx .ptx-tool { position: absolute; width: 140px; height: 140px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(-30px); transform-origin: 70px 10px; transition: opacity .3s, transform .45s cubic-bezier(.3,1.5,.5,1), filter .2s; -webkit-tap-highlight-color: transparent; }
.ptx .ptx-tool svg { display: block; pointer-events: none; overflow: visible; filter: drop-shadow(0 4px 3px rgba(90,40,80,.2)); }
.ptx .ptx-tool.in { opacity: 1; transform: none; animation: ptSwing 2.8s ease-in-out calc(var(--i) * -.41s) infinite alternate; }
.ptx .ptx-tool.sel { animation: none; transform: scale(1.12); }
.ptx .ptx-tool.sel svg { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #ff5fa2); }
.ptx .ptx-tool.dim { opacity: .45; }
.ptx .ptx-tool.away { opacity: 0; pointer-events: none; transform: translateY(-40px) scale(.6); }
.ptx .ptx-tag { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 2px 10px; border-radius: 11px; background: #fff; border: 2px solid #f4b8d0; font-weight: 900; font-size: 14px; color: #5a2d4c; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 0 rgba(90,40,80,.12); }
.ptx .ptx-tool.sel .ptx-tag { background: #ff8fb1; color: #fff; border-color: #fff; }
.ptx .ptx-hit { position: absolute; touch-action: none; z-index: 8; }
.ptx .ptx-hand { position: absolute; left: 0; top: 0; width: 160px; height: 160px; pointer-events: none; z-index: 14; opacity: 0; transition: opacity .2s, transform .07s linear; filter: drop-shadow(0 10px 8px rgba(90,40,80,.28)); }
.ptx .ptx-hand.show { opacity: 1; }
.ptx .ptx-hand svg { display: block; overflow: visible; }
.ptx .ptx-hand.active svg { animation: ptComb .14s linear infinite alternate; }
@keyframes ptComb { from { transform: translateY(6px); } to { transform: translateY(14px); } }
.ptx .ptx-hand.press svg { animation: ptPress .3s ease-out; }
@keyframes ptPress { 40% { transform: translateY(58px) scale(1.04, .9); } }
.ptx .ptx-hand.zip svg { animation: ptZip .5s cubic-bezier(.5,0,.5,1) forwards; }
@keyframes ptZip { from { transform: translate(0, 40px); } to { transform: translate(var(--zw, 520px), 40px); } }
.ptx .ptx-sheet.ptx-cut { animation: ptCutPop .4s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes ptCutPop { from { transform: scale(.94); } to { transform: none; } }
.ptx .ptx-bit { position: absolute; width: 80px; height: 80px; pointer-events: none; transition: left .5s cubic-bezier(.3,.1,.5,1), top .5s cubic-bezier(.5,-.7,.6,1), transform .5s; }
.ptx .ptx-bit.go { transform: rotate(360deg) scale(.6); }
.ptx .ptx-keys { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 10; }
.ptx .ptx-key { position: absolute; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 24%; background: #fff; border: 3px solid #5a2d4c; box-sizing: border-box; box-shadow: 0 4px 0 rgba(90,45,76,.18); font-weight: 900; color: #5a2d4c; cursor: pointer; opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1), background .2s; transition-delay: calc(var(--i) * 18ms); -webkit-tap-highlight-color: transparent; }
.ptx .ptx-keys.show .ptx-key { opacity: 1; transform: none; pointer-events: auto; }
.ptx .ptx-key.tap { animation: ptKey .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptKey { 0% { background: #ffe28c; } 40% { transform: translateY(6px) scale(.9); background: #ffe28c; } 100% { background: #fff; } }
.ptx .ptx-key.want { background: #fff6a8; box-shadow: 0 0 0 5px #ffd23f, 0 4px 0 rgba(90,45,76,.18); animation: ptWant 1s ease-in-out infinite; }
@keyframes ptWant { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.ptx .ptx-undo { position: absolute; width: 64px; height: 64px; border-radius: 50%; padding: 0; border: 3px solid #fff; background: linear-gradient(180deg,#d8c8ff,#a98be8); box-shadow: 0 4px 0 #8a6ac8, 0 8px 12px rgba(90,40,80,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ptx .ptx-undo.show { opacity: 1; transform: none; pointer-events: auto; }
.ptx .ptx-undo svg { display: block; }
.ptx .ptx-want { position: absolute; min-width: 140px; padding: 6px 12px 8px; border-radius: 18px; background: #fff8d6; border: 3px dashed #e6c86a; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; z-index: 10; opacity: 0; transform: rotate(-4deg) scale(.5); transition: opacity .3s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.ptx .ptx-want.show { opacity: 1; transform: rotate(-4deg); }
.ptx .ptx-want small { font-weight: 900; font-size: 13px; color: #a98a3a; }
.ptx .ptx-want b { display: flex; gap: 3px; }
.ptx .ptx-want i { font-style: normal; font-weight: 900; font-size: 26px; color: #c9a8b8; width: 24px; text-align: center; border-bottom: 3px solid transparent; transition: color .2s; }
.ptx .ptx-want i.ok { color: #5aa06f; }
.ptx .ptx-want i.now { color: #e0598a; border-bottom-color: #ff8fb1; animation: ptWant 1s ease-in-out infinite; }

/* ================= step 2: boil (+ drain, the steam, the shake) ================= */
.ptb .ptb-knob { position: absolute; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; z-index: 9; transform: rotate(-40deg); transition: transform .35s cubic-bezier(.3,1.6,.5,1); -webkit-tap-highlight-color: transparent; }
.ptb .ptb-knob svg { display: block; pointer-events: none; }
.ptb .ptb-knob.on { transform: rotate(70deg); }
.ptb .ptb-knob.wig { animation: ptKnobWig .3s ease-in-out; }
@keyframes ptKnobWig { 50% { transform: rotate(84deg); } }
.ptb .ptb-knob.pulse::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #ff8fb1, 0 0 16px #ff9fc6; animation: ptRing 1s ease-in-out infinite; }
@keyframes ptRing { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.12); opacity: 1; } }
.ptb .ptb-salt { position: absolute; width: 80px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 10; transform-origin: 40px 70px; opacity: 0; transition: left .38s cubic-bezier(.3,1.2,.5,1), top .38s cubic-bezier(.3,1.2,.5,1), transform .3s cubic-bezier(.3,1.4,.5,1), opacity .3s; filter: drop-shadow(0 3px 2px rgba(90,40,80,.2)); -webkit-tap-highlight-color: transparent; }
.ptb .ptb-salt svg { display: block; overflow: visible; pointer-events: none; }
.ptb .ptb-salt.in { opacity: 1; }
.ptb .ptb-salt.fly { z-index: 30; filter: drop-shadow(0 12px 9px rgba(90,40,80,.28)); }
.ptb .ptb-salt.shake { transform: rotate(155deg); }
.ptb .ptb-salt.shake svg { animation: ptShakeY .17s ease-in-out infinite alternate; }
@keyframes ptShakeY { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
.ptb .ptb-bowl { position: absolute; touch-action: none; cursor: grab; z-index: 9; opacity: 0; transform-origin: 50% 45%; transition: left .4s cubic-bezier(.3,1.2,.5,1), top .4s cubic-bezier(.3,1.2,.5,1), transform .35s cubic-bezier(.3,1.3,.5,1), opacity .3s; }
.ptb .ptb-bowl.in { opacity: 1; }
.ptb .ptb-bowl svg { display: block; overflow: visible; pointer-events: none; }
.ptb .ptb-bowl.lifted { transition: transform .2s; transform: scale(1.06); z-index: 20; filter: drop-shadow(0 14px 10px rgba(90,40,80,.26)); cursor: grabbing; }
.ptb .ptb-bowl.over { transform: scale(1.06) rotate(-14deg); }
.ptb .ptb-bowl.fly { z-index: 30; }
.ptb .ptb-bowl.tip { transform: rotate(-78deg); }
.ptb .ptb-bowl.empty { opacity: .55; pointer-events: none; }
.ptb .ptb-spoon { position: absolute; left: 0; top: 0; width: 140px; height: 260px; pointer-events: none; z-index: 12; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 6px 5px rgba(90,40,80,.22)); }
.ptb .ptb-spoon svg { display: block; overflow: visible; }
.ptb .ptb-spoon.show { opacity: 1; }
.ptb .ptb-spoon.dipped { clip-path: inset(0 0 36px 0); -webkit-clip-path: inset(0 0 36px 0); }
.ptb .ptb-hit, .ptb .ptb-colhit { position: absolute; touch-action: none; z-index: 8; }
.ptb .ptb-foams { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 11; }
.ptb .ptb-foam { position: absolute; width: 80px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer; animation: ptFoamIn .5s cubic-bezier(.3,1.6,.5,1), ptFoamWob 1.4s ease-in-out .5s infinite alternate; -webkit-tap-highlight-color: transparent; }
.ptb .ptb-foam svg { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(90,40,80,.15)); }
.ptb .ptb-foam.pop { animation: ptFoamPop .26s ease-out forwards; pointer-events: none; }
@keyframes ptFoamIn { from { transform: translateY(20px) scale(.2); } to { transform: none; } }
@keyframes ptFoamWob { from { transform: scale(1, 1); } to { transform: scale(1.08, .94) translateY(-4px); } }
@keyframes ptFoamPop { 40% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.ptb .ptb-drips { opacity: 0; transition: opacity .3s; pointer-events: none; }
.ptb .rb-scene.over .ptb-drips { opacity: 1; }
.ptb .ptb-potgrp { transform-box: fill-box; transform-origin: 50% 100%; }
.ptb .rb-scene.over .ptb-potgrp { animation: ptPotRattle .09s linear infinite alternate; }
@keyframes ptPotRattle { from { transform: translateX(-3px) rotate(-.8deg); } to { transform: translateX(3px) rotate(.8deg); } }
.ptb .ptb-stream { position: absolute; width: 28px; border-radius: 14px; background: linear-gradient(90deg,#d9f2ff,#9fd6f5); border: 3px solid #5a2d4c; box-sizing: border-box; transform-origin: 50% 0; animation: ptStream .9s ease-out forwards; z-index: 6; }
@keyframes ptStream { 0% { transform: scaleY(0); } 20% { transform: scaleY(1); } 80% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(30px); opacity: 0; } }
.ptb .ptb-fly { position: absolute; inset: 0; pointer-events: none; z-index: 13; }
.ptb .ptb-fog { position: absolute; z-index: 55; pointer-events: auto; touch-action: none; opacity: 0; transition: opacity .3s; cursor: grab; }
.ptb .ptb-fog.in { opacity: 1; }
.ptb .ptb-fog.gone { opacity: 0; transition: opacity .7s; pointer-events: none; }
.ptb .ptb-col { transform-box: fill-box; transform-origin: 50% 100%; }
.ptb .ptb-col.jig { animation: ptJig .34s ease-out; }
@keyframes ptJig { 0% { transform: none; } 30% { transform: translateY(-22px) rotate(-3deg); } 62% { transform: translateY(8px) rotate(2deg); } 100% { transform: none; } }
.ptb .ptb-tomato { transform-box: fill-box; transform-origin: 50% 80%; }
.ptb .ptb-tomato.ring { animation: ptTomRing .1s ease-in-out infinite alternate; }
@keyframes ptTomRing { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-3px); } }
.ptb .ptb-arrow { position: absolute; inset: 0; pointer-events: none; }
.ptb .ptb-arrow svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ptb .ptb-arrow path { animation: ptDash 1s linear infinite; }
@keyframes ptDash { to { stroke-dashoffset: -40; } }
.rms .pt-swipe.circle { animation-name: ptCircle; animation-duration: 1.4s; animation-timing-function: linear; }
@keyframes ptCircle { 0% { transform: translate(60px, 0); } 25% { transform: translate(0, 22px); } 50% { transform: translate(-60px, 0); } 75% { transform: translate(0, -22px); } 100% { transform: translate(60px, 0); } }

/* ================= step 3: the sauce pan (pour, plop, FLIP, flambe) ================= */
.pts .pts-pot { position: absolute; touch-action: none; cursor: grab; z-index: 9; transform-origin: 50% 60%; opacity: 0; transform: translateY(-30px) scale(.6); transition: left .4s cubic-bezier(.3,1.3,.5,1), top .4s cubic-bezier(.3,1.3,.5,1), transform .3s cubic-bezier(.3,1.5,.5,1), opacity .3s; filter: drop-shadow(0 3px 2px rgba(90,40,80,.18)); }
.pts .pts-pot svg { display: block; overflow: visible; pointer-events: none; }
.pts .pts-pot.in { opacity: 1; transform: none; }
.pts .pts-pot.lifted { transition: transform .22s cubic-bezier(.3,1.4,.5,1); transform: scale(1.1); z-index: 20; filter: drop-shadow(0 14px 10px rgba(90,40,80,.28)); cursor: grabbing; }
.pts .pts-pot.fly { z-index: 30; }
.pts .pts-pot.tilt { transform: scale(1.1) rotate(100deg); }
.pts .pts-pot.tiltl { transform: scale(1.1) rotate(-100deg); }
.pts .pts-tag { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; padding: 1px 8px; border-radius: 10px; background: #fff; border: 2px solid #f4b8d0; font-weight: 900; font-size: 12px; color: #5a2d4c; white-space: nowrap; pointer-events: none; transform-origin: 50% 0; transition: opacity .2s; }
.pts .pts-pot.lifted .pts-tag, .pts .pts-pot.fly .pts-tag { opacity: 0; }
.pts .pts-stream { position: absolute; width: 18px; border-radius: 9px; border: 2.5px solid #5a2d4c; box-sizing: border-box; transform-origin: 50% 0; transition: transform .15s; pointer-events: none; z-index: 8; }
.pts .pts-col { position: absolute; touch-action: none; cursor: grab; z-index: 9; opacity: 0; transform-origin: 50% 40%; transition: left .38s cubic-bezier(.3,1.2,.5,1), top .38s cubic-bezier(.3,1.2,.5,1), transform .3s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.pts .pts-col.in { opacity: 1; }
.pts .pts-col svg { display: block; overflow: visible; pointer-events: none; }
.pts .pts-col.lifted { transform: scale(1.06); z-index: 20; filter: drop-shadow(0 14px 10px rgba(90,40,80,.26)); cursor: grabbing; }
.pts .pts-col.fly { z-index: 30; }
.pts .pts-col.flip { transform: rotate(150deg); }
.pts .pts-col.empty { opacity: .5; pointer-events: none; }
.pts .pts-hit { position: absolute; touch-action: none; z-index: 8; }
/* the equipped ladle: dips in and stirs while the sauce pours, out of the way once the pasta's in */
.pts .pts-ladle { position: absolute; width: 160px; height: 220px; pointer-events: none; z-index: 7; opacity: 0; translate: 40px -40px; transition: opacity .3s, translate .4s cubic-bezier(.3,1.3,.5,1); filter: drop-shadow(0 6px 4px rgba(90,40,80,.2)); }
.pts .pts-ladle svg { display: block; transform-origin: 36px 202px; }
.pts .pts-ladle.show { opacity: 1; translate: 0 0; }
.pts .pts-ladle.stir svg { animation: ptLadle .42s ease-in-out infinite alternate; }
.pts .pts-ladle.rest { opacity: 0; translate: 90px -70px; }
@keyframes ptLadle { from { transform: translateX(-16px) rotate(-6deg); } to { transform: translateX(16px) rotate(6deg); } }
.pts .pts-fly { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
.pts .pts-pan { transform-box: fill-box; transform-origin: 50% 70%; }
.pts .pts-pan.jerk { animation: ptsJerk .36s ease-out; }
@keyframes ptsJerk { 30% { transform: translateY(-16px) rotate(-3deg); } 60% { transform: translateY(6px); } }
.pts .pts-pasta { transform-box: fill-box; transform-origin: 50% 55%; }
.pts .pts-pasta.plop { animation: ptsPlop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptsPlop { from { transform: translateY(-120px) scale(.9, 1.1); } 60% { transform: translateY(0) scale(1.15, .85); } to { transform: none; } }
.pts .pts-pasta.flip { animation: ptsFlip .7s cubic-bezier(.3,.1,.5,1); }
.pts .pts-pasta.flipbig { animation: ptsFlipBig .9s cubic-bezier(.3,.1,.5,1); }
@keyframes ptsFlip { 0% { transform: none; } 40% { transform: translateY(-190px) rotate(170deg); } 75% { transform: translateY(-30px) rotate(340deg); } 88% { transform: translateY(4px) rotate(360deg) scale(1.1, .88); } 100% { transform: rotate(360deg); } }
@keyframes ptsFlipBig { 0% { transform: none; } 40% { transform: translateY(-300px) rotate(260deg) scale(1.1); } 75% { transform: translateY(-40px) rotate(560deg); } 88% { transform: translateY(6px) rotate(720deg) scale(1.15, .85); } 100% { transform: rotate(720deg); } }
.pts .pts-flame { position: absolute; width: 300px; height: 280px; pointer-events: none; z-index: 14; transform-origin: 50% 100%; animation: ptsFlame 1.2s ease-out forwards; }
.pts .pts-flame svg { display: block; overflow: visible; }
@keyframes ptsFlame { 0% { transform: scale(.2, .1); opacity: 0; } 15% { transform: scale(1.1, 1.15); opacity: 1; } 30% { transform: scale(.95, 1); } 45% { transform: scale(1.05, 1.1); } 70% { transform: none; opacity: 1; } 100% { transform: scale(.6, 1.3) translateY(-60px); opacity: 0; } }
.pts .pts-noodle { position: absolute; width: 140px; height: 70px; pointer-events: none; z-index: 70; transition: left .65s cubic-bezier(.3,.2,.5,1), top .65s cubic-bezier(.5,-.8,.6,1), transform .65s; }
.pts .pts-noodle.go { transform: rotate(540deg) scale(.6); }
.pts .pts-noodle svg { display: block; overflow: visible; }
.mxs .mx-badge .pts-hat { position: absolute; left: 4%; top: -4%; width: 92%; height: 46%; z-index: 2; pointer-events: none; overflow: visible; animation: ptsHat .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptsHat { from { transform: translateY(-20px) scale(.6); } to { transform: none; } }

/* ================= step 4: the toppings (the twirl + the topping cart) ================= */
.ptp .ptp-cart { position: absolute; left: 0; top: 0; width: 1024px; height: 768px; pointer-events: none; transform: translateX(460px); }
.ptp .ptp-cart.tall { width: 100%; height: 100%; transform: translateY(700px); }
.ptp .ptp-cart.arrive { transform: none; transition: transform .72s cubic-bezier(.22,1.16,.4,1); }
.ptp .ptp-cart.arrive.out { transform: translateX(460px); transition: transform .42s cubic-bezier(.6,0,.9,.4); }
.ptp .ptp-cart.tall.arrive.out { transform: translateX(820px); }
.ptp .ptp-cart-art, .ptp .ptp-items { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ptp .ptp-cart-art svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.ptp .pt-spoke { transform-box: fill-box; transform-origin: 50% 50%; }
.ptp .ptp-cart.rolling .pt-spoke { animation: ptSpin .26s linear infinite; }
@keyframes ptSpin { to { transform: rotate(360deg); } }
.ptp .ptp-item { position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: grab; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.ptp .ptp-item svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; filter: drop-shadow(0 3px 2px rgba(90,40,80,.2)); transition: opacity .15s; }
.ptp .ptp-item.bump svg { animation: ptBump .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes ptBump { 40% { transform: translateY(-8px) scale(1.06); } }
.ptp .ptp-item.lifted svg { opacity: .3; }
.ptp .ptp-tag { position: absolute; left: 50%; bottom: -15px; translate: -50% 0; transform-origin: 50% 0; padding: 1px 7px; border-radius: 9px; background: #fff; border: 2px solid #f4b8d0; font-weight: 900; font-size: 10.5px; line-height: 1.3; color: #5a2d4c; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 0 rgba(90,40,80,.12); }
.ptp .ptp-more { position: absolute; width: 70px; height: 70px; border-radius: 50%; padding: 0; border: 4px solid #fff; background: linear-gradient(180deg,#ffb6cf,#ff5fa2); box-shadow: 0 5px 0 #d9689a, 0 10px 16px rgba(90,40,80,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ptp .ptp-more.in { opacity: 1; transform: none; }
.ptp .ptp-more svg { display: block; }
.ptp .ptp-more.nudge { animation: ptNudge 1.1s ease-in-out 3; }
@keyframes ptNudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px) scale(1.1); } }
.ptp .ptp-dots { position: absolute; width: 54px; display: flex; justify-content: center; gap: 6px; opacity: 0; transition: opacity .3s; }
.ptp .ptp-dots.in { opacity: 1; }
.ptp .ptp-dots i { width: 11px; height: 11px; border-radius: 50%; background: #f3d3e3; border: 2px solid #fff; box-shadow: 0 1px 0 rgba(90,40,80,.2); transition: background .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ptp .ptp-dots i.on { background: #ff5fa2; transform: scale(1.2); }
.ptp .ptp-undo { position: absolute; width: 54px; height: 54px; border-radius: 50%; padding: 0; border: 3px solid #fff; background: linear-gradient(180deg,#d8c8ff,#a98be8); box-shadow: 0 4px 0 #8a6ac8, 0 8px 12px rgba(90,40,80,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ptp .ptp-undo svg { display: block; }
.ptp .ptp-hand { position: absolute; left: 0; top: 0; width: 160px; height: 160px; pointer-events: none; opacity: 0; transition: opacity .15s; filter: drop-shadow(0 12px 9px rgba(90,40,80,.3)); z-index: 5; }
.ptp .ptp-hand.show { opacity: 1; }
.ptp .ptp-hand svg { display: block; overflow: visible; }
.ptp .ptp-hand.home { opacity: 0; transition: transform .32s cubic-bezier(.3,1.3,.5,1), opacity .25s .1s; }
.ptp .ptp-hand.shake.active svg, .ptp .ptp-hand.oil.active svg { animation: ptShakeY .1s ease-in-out infinite alternate; }
.ptp .ptp-hand.grate.active svg { animation: ptGrate .12s linear infinite alternate; }
@keyframes ptGrate { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
.ptp .ptp-hit { position: absolute; touch-action: none; z-index: 6; }
.ptp .ptp-fork { position: absolute; left: 0; top: 0; width: 120px; height: 260px; pointer-events: none; z-index: 7; transform-origin: 60px 230px; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 6px 5px rgba(90,40,80,.2)); }
.ptp .ptp-fork svg { display: block; overflow: visible; transform-origin: 60px 230px; }
.ptp .ptp-fork.in { opacity: 1; }
.ptp .ptp-fork.in.gone { opacity: 0; }
.ptp .ptp-fork.wig svg { animation: ptForkWig .4s ease-in-out; }
@keyframes ptForkWig { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.ptp .ptp-roll { position: absolute; width: 80px; height: 80px; pointer-events: none; z-index: 30; transition: left .6s cubic-bezier(.4,0,.6,1), top .6s cubic-bezier(.4,0,.6,1); }
.ptp .ptp-roll svg { display: block; overflow: visible; }
.ptp .ptp-roll.roll svg { animation: ptSpin .4s linear infinite; }
.ptp .ptp-roll.fly { transition: left .6s cubic-bezier(.3,.1,.5,1), top .6s cubic-bezier(.5,-.9,.6,1), transform .6s; transform: scale(.6); }

/* ================= step 5: serve (the one-noodle slurp, the spoon + cheese string) ================= */
.ptv .ptv-cust { position: absolute; opacity: 0; transform: translateY(60px); transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.ptv .ptv-cust.in { opacity: 1; transform: none; }
.ptv .ptv-cust .puppet { display: block; width: 100%; height: auto; overflow: visible; }
.ptv .ptv-pup { transform-origin: 50% 60%; }
.ptv .ptv-cust.hop .pp-body { animation: ppHop .5s cubic-bezier(.3,1.4,.5,1) 2; }
.ptv .ptv-cust.chew .puppet .pp-mouth > * { display: none; }
.ptv .ptv-cust.chew .puppet .m-open { display: block; transform-box: fill-box; transform-origin: 50% 0; animation: ppTalk .26s ease-in-out infinite alternate; }
.ptv .ptv-cust.chew .pp-head { animation: ppChew .26s ease-in-out infinite alternate; }
.ptv .ptv-cust.slurp .pp-head { animation: ptvSlurp .2s ease-in-out infinite alternate; }
@keyframes ptvSlurp { from { transform: translateY(0); } to { transform: translateY(-5px) scale(1.02); } }
.ptv .ptv-cust.spin .ptv-pup { animation: ptvSpin 1.1s cubic-bezier(.4,0,.4,1); }
@keyframes ptvSpin { 0% { transform: none; } 50% { transform: rotate(180deg) scale(.9); } 100% { transform: rotate(360deg); } }
.ptv .ptv-overlay, .ptv .ptv-eatsvg, .ptv .ptv-counter { pointer-events: none; }
.ptv .ptv-dish { position: absolute; width: 520px; height: 520px; touch-action: none; cursor: grab; z-index: 4; opacity: 0; transition: opacity .3s; }
.ptv .ptv-dish.in { opacity: 1; }
.ptv .ptv-dish.slide { transition: left .6s cubic-bezier(.3,1.2,.5,1), top .6s cubic-bezier(.3,1.2,.5,1); }
.ptv .ptv-dish svg { display: block; overflow: visible; pointer-events: none; }
.ptv .ptv-dish.lifted { filter: drop-shadow(0 14px 10px rgba(90,40,80,.25)); }
.rms .world > svg.ptv-eatsvg { z-index: 5; }
.ptv .ptv-grab { position: absolute; width: 120px; height: 120px; border-radius: 50%; touch-action: none; z-index: 6; display: none; cursor: grab; }
.ptv .ptv-grab.on { display: block; }
.ptv .ptv-grab.on::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 3px rgba(255,143,177,.85), 0 0 18px 4px rgba(255,143,177,.55); animation: ptRing 1s ease-in-out infinite; }
.ptv .ptv-bubble { position: absolute; max-width: 320px; padding: 12px 18px; border-radius: 22px 22px 22px 6px; 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(.6); transform-origin: 0 100%; transition: transform .4s cubic-bezier(.3,1.6,.5,1), opacity .2s; z-index: 20; }
.ptv .ptv-bubble.show { opacity: 1; transform: none; }
.mxs[data-mode="tall"] .ptv-bubble { scale: var(--hud-k, 1); }
.ptv .ptv-burst { position: absolute; width: 200px; height: 180px; pointer-events: none; z-index: 12; animation: ptvBurst 1.8s cubic-bezier(.3,1.6,.5,1) forwards; }
.ptv .ptv-burst svg { position: absolute; left: 0; top: 0; }
.ptv .ptv-burst b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: #e0598a; transform: rotate(-8deg); }
@keyframes ptvBurst { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 15% { transform: scale(1.1); opacity: 1; } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.ptv .ptv-frk { transform-box: fill-box; transform-origin: center; animation: ptvFrk .35s cubic-bezier(.3,1.8,.5,1) var(--d, 0s) backwards; }
@keyframes ptvFrk { from { transform: scale(0); } }
.ptv .ptv-fire { transform-box: fill-box; transform-origin: 100% 50%; animation: ptvFire 1.2s ease-out forwards; }
@keyframes ptvFire { 0% { transform: scale(.1); opacity: 0; } 20% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.ptv .ptv-garlic { animation: ptvGarlic 1.2s ease-out forwards; }
@keyframes ptvGarlic { 0% { opacity: 0; transform: translate(0, 10px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-30px, -40px); } }

/* ================= the score card / the Free Pasta photo card ================= */
.ptn .ptn-rays { animation: ptnSpin 18s linear infinite; }
@keyframes ptnSpin { to { transform: rotate(360deg); } }
.ptn .ptn-ribbon { position: absolute; display: flex; align-items: center; gap: 10px; padding: 7px 22px; border-radius: 30px; background: linear-gradient(180deg, #ffb6cf, #ff8fb1); border: 4px solid #5a2d4c; box-shadow: 0 6px 0 rgba(90,45,76,.2); color: #fff; font-weight: 900; font-size: 26px; white-space: nowrap; text-shadow: 0 2px 0 rgba(90,45,76,.25); translate: -50% 0; transform: scale(.3); transform-origin: 50% 0; opacity: 0; transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .3s; z-index: 4; }
.ptn .ptn-ribbon.in { transform: none; opacity: 1; }
.ptn .ptn-dice { width: 40px; height: 40px; padding: 0; border: 3px solid #5a2d4c; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 0 rgba(90,45,76,.2); }
.ptn .ptn-dice:active { transform: rotate(40deg) scale(.92); }
.ptn .ptn-chips { position: absolute; translate: -50% 0; transform: translateY(20px); transform-origin: 50% 0; opacity: 0; display: flex; gap: 8px; align-items: center; transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .3s; z-index: 4; }
.ptn .ptn-chips.in { transform: none; opacity: 1; }
.ptn .ptn-chips i { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid #5a2d4c; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ptn .ptn-chips i svg { display: block; }
.ptn .ptn-chips b { padding: 4px 12px; border-radius: 16px; background: #fff; border: 3px solid #5a2d4c; font-size: 15px; font-weight: 900; color: #5a2d4c; text-transform: capitalize; white-space: nowrap; }
.ptn .ptn-side { position: absolute; width: 340px; height: 440px; opacity: 0; transform: translateX(80px); transform-origin: 0 0; transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .35s; z-index: 3; }
.ptn .ptn-side.in { opacity: 1; transform: none; }
.ptn .ptn-coins { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 22px; background: #fff8d6; border: 3px solid #e6c86a; font-weight: 900; font-size: 26px; color: #5a2d4c; white-space: nowrap; box-shadow: 0 4px 0 rgba(90,45,76,.14); }
.ptn .ptn-hearts { display: flex; gap: 4px; margin-left: 6px; }
.ptn .ptn-hearts svg { display: block; }
.ptn .ptn-card { position: absolute; left: 20px; top: 70px; width: 300px; padding: 24px 20px 70px; border-radius: 26px; background: #fff; border: 4px solid #5a2d4c; box-shadow: 0 8px 0 rgba(90,45,76,.16); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-sizing: border-box; }
.ptn .ptn-card > b { font-size: 30px; font-weight: 900; color: #5a2d4c; }
.ptn .ptn-card > span { font-size: 18px; font-weight: 800; color: #8a6a86; }
.ptn .ptn-card .ptn-coins { position: static; transform: none; margin-top: 8px; }
.ptn .ptn-album { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); height: 52px; padding: 0 26px; border-radius: 26px; border: 3px solid #fff; background: linear-gradient(180deg, #d9c8ff, #b39cf0); box-shadow: 0 5px 0 #8f78d0; color: #fff; font-weight: 900; font-size: 20px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ptn .ptn-score { position: absolute; left: 10px; top: 0; width: 330px; padding: 16px 18px 20px; border-radius: 26px; background: #fff; border: 4px solid #5a2d4c; box-shadow: 0 8px 0 rgba(90,45,76,.16); display: flex; flex-direction: column; align-items: center; gap: 8px; box-sizing: border-box; }
.ptn .ptn-head { width: 96px; height: 96px; margin-top: -58px; border-radius: 50%; background: #fff; border: 4px solid #ff8fb1; overflow: hidden; box-shadow: 0 4px 10px rgba(90,40,80,.18); }
.ptn .ptn-head .puppet { width: 116%; margin-left: -8%; margin-top: 2%; height: auto; display: block; }
.ptn .ptn-who { font-weight: 800; font-size: 15px; color: #8a6a86; }
.ptn .ptn-badge { padding: 4px 16px; border-radius: 14px; background: linear-gradient(90deg, #ffb4a4, #ffd166); font-weight: 900; font-size: 20px; letter-spacing: 1px; color: #5a2d4c; }
.ptn .ptn-stars { display: flex; gap: 6px; }
.ptn .ptn-stars i { display: block; transform: scale(0); animation: ptnStar .5s cubic-bezier(.3,1.7,.5,1) var(--d) forwards; }
.ptn .ptn-stars i svg { display: block; }
@keyframes ptnStar { to { transform: scale(1); } }
.ptn .ptn-wishes { display: flex; align-items: center; gap: 7px; }
.ptn .ptn-wishes small { font-weight: 900; font-size: 16px; color: #e0598a; white-space: nowrap; }
.ptn .ptn-wishes .w { position: relative; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; border: 2.5px solid #ecd9a0; background: #fff; box-sizing: border-box; }
.ptn .ptn-wishes .w svg { width: 26px; height: 26px; display: block; }
.ptn .ptn-wishes .w.ok { border-color: #5aa06f; background: #e3f7e8; }
.ptn .ptn-wishes .w.no { opacity: .6; }
.ptn .ptn-wishes .w em { position: absolute; right: -7px; top: -8px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 11px; color: #fff; background: #5aa06f; }
.ptn .ptn-wishes .w.no em { background: #d9577f; }
.ptn .ptn-bar { position: relative; width: 100%; height: 22px; border-radius: 11px; background: #f7e3ee; border: 2.5px solid #5a2d4c; overflow: hidden; box-sizing: border-box; }
.ptn .ptn-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffb6cf, #ff5fa2); transition: width 1.2s cubic-bezier(.3,1,.4,1); }
.ptn .ptn-num { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; font-weight: 900; font-size: 13px; color: #5a2d4c; }
.ptn .ptn-score .ptn-coins { position: static; transform: none; }
.ptn .ptn-unlock { padding: 4px 12px; border-radius: 12px; font-weight: 900; font-size: 14px; background: #fff3c8; color: #a0701a; text-align: center; }
.ptn .ptn-new { position: absolute; translate: -50% 0; padding: 10px 26px; border-radius: 22px; background: linear-gradient(180deg, #fff6a8, #ffd23f); border: 4px solid #5a2d4c; box-shadow: 0 6px 0 rgba(90,45,76,.2); text-align: center; z-index: 30; animation: ptnNew .9s cubic-bezier(.3,1.6,.5,1) both; }
.ptn .ptn-new small { display: block; font-weight: 900; font-size: 14px; letter-spacing: 2px; color: #e0598a; }
.ptn .ptn-new b { display: block; font-weight: 900; font-size: 28px; color: #5a2d4c; white-space: nowrap; }
@keyframes ptnNew { 0% { transform: scale(.3); opacity: 0; } 40% { transform: scale(1.1); opacity: 1; } 70%, 100% { transform: scale(1); opacity: 1; } }
.mxs[data-mode="tall"] .ptn-new { scale: var(--hud-k, 1); transform-origin: 50% 0; }

/* ================= a phone: round buttons a finger can hit (>= 44 pt on the screen) ================= */
.ptb .ptb-knob.big { scale: 1.5; }
.ptx .ptx-undo.big { scale: 1.4; }
.ptp .layer.hud.pt-phone .ptp-more { scale: 1.3; }
.ptp .layer.hud.pt-phone .ptp-undo { scale: 1.65; }
