/* Annapurna OS – live kitchen scene on the customer's order page (track.html)
   Pure CSS + emoji: chef, tawa with a flipping roti, flames, bubbling pot,
   steam, stage props (chopping / tadka / plating) and "on the way" scenes. */
.ck-wrap { margin: 18px auto 0; max-width: 380px; }
.ck-scene { position: relative; height: 200px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #fff8ee 0%, #ffeedd 72%, #8b5a3c 72%, #7a4b30 100%); box-shadow: 0 18px 40px -18px rgba(60, 20, 0, .55), inset 0 0 0 4px rgba(255, 255, 255, .55); color: var(--ink); text-align: left; }
.ck-scene::before { content: ''; position: absolute; inset: 0 0 28% 0; background-image: linear-gradient(rgba(240, 200, 160, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 200, 160, .35) 1px, transparent 1px); background-size: 26px 26px; }
.ck-scene::after { content: ''; position: absolute; left: 0; right: 0; top: 72%; height: 7px; background: #c58a5c; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.ck-hood { position: absolute; left: 50%; top: 0; width: 150px; height: 26px; transform: translateX(-30%); background: linear-gradient(#cfd6dd, #9aa5ae); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; opacity: .9; }
.ck-lamp { position: absolute; left: 18%; top: 0; width: 2px; height: 26px; background: #9b8a7a; }
.ck-lamp::after { content: ''; position: absolute; left: -11px; top: 24px; width: 24px; height: 12px; background: #ffb300; border-radius: 12px 12px 3px 3px; box-shadow: 0 10px 30px 10px rgba(255, 200, 80, .45); animation: ckLamp 4s ease-in-out infinite; transform-origin: 12px -24px; }

/* chef */
.ck-chef { position: absolute; left: 8%; bottom: 25%; font-size: 74px; line-height: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .18)); animation: ckBob 1.6s ease-in-out infinite; transform-origin: 50% 100%; z-index: 3; }
.ck-bubble { position: absolute; left: 4%; top: 10px; max-width: 46%; background: #fff; border-radius: 14px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); z-index: 5; animation: popIn .5s both; }
.ck-bubble::after { content: ''; position: absolute; left: 30px; bottom: -6px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* stove: tawa + pot on burners */
.ck-stove { position: absolute; right: 5%; bottom: 22%; width: 58%; height: 64px; display: flex; justify-content: space-around; align-items: flex-end; z-index: 2; }
.ck-burner { position: relative; width: 84px; height: 64px; }
.ck-flames { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 3px; }
.ck-flames i { width: 10px; height: 18px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: radial-gradient(circle at 50% 75%, #fff59d 0 20%, #ffb300 45%, #ff5722 80%); animation: ckFlame .35s ease-in-out infinite alternate; transform-origin: 50% 100%; box-shadow: 0 0 10px rgba(255, 120, 0, .6); }
.ck-flames i:nth-child(2) { height: 22px; animation-delay: -.12s; }
.ck-flames i:nth-child(3) { animation-delay: -.24s; }
.ck-tawa { position: absolute; left: 50%; bottom: 18px; width: 80px; height: 12px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 30%, #555 0, #222 70%); border-radius: 50%; box-shadow: 0 3px 0 #111; }
.ck-tawa::after { content: ''; position: absolute; right: -22px; top: 4px; width: 26px; height: 4px; background: #5d4037; border-radius: 3px; }
.ck-roti { position: absolute; left: 50%; bottom: 22px; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: radial-gradient(circle at 30% 35%, #a0642a 0 3px, transparent 4px), radial-gradient(circle at 65% 30%, #9a5a22 0 4px, transparent 5px), radial-gradient(circle at 55% 68%, #a86a30 0 3px, transparent 4px), radial-gradient(circle at 28% 66%, #b07434 0 2px, transparent 3px), radial-gradient(circle at 50% 50%, #f6dca6 0 55%, #e7bd76 100%); box-shadow: inset 0 0 0 2px rgba(160, 100, 40, .25); animation: ckFlip 2.4s cubic-bezier(.5, 0, .5, 1) infinite; transform: rotateX(72deg); }
.ck-pot { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 64px; height: 40px; background: linear-gradient(#b0bec5, #607d8b); border-radius: 6px 6px 26px 26px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.ck-pot::before { content: ''; position: absolute; left: -6px; right: -6px; top: -5px; height: 9px; border-radius: 6px; background: linear-gradient(#cfd8dc, #90a4ae); }
.ck-pot::after { content: ''; position: absolute; left: 6px; right: 6px; top: -2px; height: 7px; border-radius: 50%; background: radial-gradient(ellipse, #ff8a3d, #d84315); }
.ck-bub { position: absolute; bottom: 34px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 170, 80, .9); animation: ckBubble 1.4s ease-in infinite; }
.ck-bub:nth-of-type(2) { left: 26px; animation-delay: -.5s; width: 6px; height: 6px; }
.ck-bub:nth-of-type(3) { left: 42px; animation-delay: -.9s; }
.ck-bub:nth-of-type(1) { left: 16px; }
.ck-steam { position: absolute; left: 50%; bottom: 52px; width: 60px; height: 70px; transform: translateX(-50%); pointer-events: none; }
.ck-steam i { position: absolute; bottom: 0; width: 14px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); filter: blur(5px); animation: ckSteam 2.6s ease-out infinite; }
.ck-steam i:nth-child(1) { left: 6px; }
.ck-steam i:nth-child(2) { left: 24px; animation-delay: -.9s; }
.ck-steam i:nth-child(3) { left: 40px; animation-delay: -1.7s; }

/* stage props (only one visible at a time) */
.ck-prop { position: absolute; left: 30%; bottom: 22%; z-index: 4; opacity: 0; transform: translateY(10px) scale(.8); transition: .5s var(--ease); pointer-events: none; }
.stage-0 .ck-prop.p0, .stage-1 .ck-prop.p1, .stage-2 .ck-prop.p2, .stage-3 .ck-prop.p3 { opacity: 1; transform: none; }
.ck-board { width: 74px; height: 16px; background: linear-gradient(#d7a86e, #b07d48); border-radius: 6px; position: relative; top: 34px; }
.ck-knife { position: absolute; left: 30px; top: -6px; font-size: 30px; animation: ckChop .35s ease-in-out infinite alternate; transform-origin: 80% 80%; }
.ck-veg { position: absolute; left: 4px; top: 12px; font-size: 18px; letter-spacing: -4px; }
.ck-spice { position: relative; font-size: 30px; top: 6px; animation: ckShake .5s ease-in-out infinite alternate; transform-origin: 50% 0; }
.ck-dust { position: absolute; left: 22px; top: 36px; width: 30px; height: 40px; }
.ck-dust i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #e65100; animation: ckDust 1s linear infinite; }
.ck-dust i:nth-child(2) { left: 9px; background: #ffb300; animation-delay: -.3s; }
.ck-dust i:nth-child(3) { left: 17px; background: #c62828; animation-delay: -.6s; }
.ck-dust i:nth-child(4) { left: 24px; background: #2e7d32; animation-delay: -.8s; }
.ck-plate { font-size: 40px; position: relative; top: 14px; }
.ck-plate b { position: absolute; left: 6px; top: -30px; font-size: 28px; animation: ckDrop 1.6s ease-in infinite; }

/* progress + countdown */
.ck-meter { margin-top: 14px; }
.ck-time { font-size: 44px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.ck-time.any { font-size: 26px; animation: blink 1.4s infinite; }
.ck-sub { font-size: 12.5px; opacity: .92; margin-top: 4px; }
.ck-track { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); margin: 18px 6px 4px; }
.ck-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, #fff59d, #fff); box-shadow: 0 0 12px rgba(255, 255, 255, .8); transition: width 1s linear; }
.ck-marker { position: absolute; top: 50%; font-size: 24px; transform: translate(-50%, -58%); transition: left 1s linear; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.ck-steps { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .85; padding: 0 2px; }
.ck-steps span.on { font-weight: 700; opacity: 1; }

/* ready / on the way / served */
.ck-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: repeating-linear-gradient(90deg, #a0704a 0 40px, #94643f 40px 80px); }
.ck-walker { position: absolute; bottom: 20%; left: -20%; font-size: 64px; animation: ckWalk 5s linear infinite; z-index: 3; }
.ck-walker .tray { position: absolute; left: 34px; top: -14px; font-size: 30px; animation: ckBob .5s ease-in-out infinite; }
.ck-dest { position: absolute; right: 6%; bottom: 22%; font-size: 52px; z-index: 2; }
.ck-road { position: absolute; left: 0; right: 0; bottom: 18%; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 24px, transparent 24px 48px); animation: ckRoad .6s linear infinite; }
.ck-scooter { position: absolute; bottom: 24%; left: 30%; font-size: 64px; animation: ckRide 1.2s ease-in-out infinite; z-index: 3; transform: scaleX(-1); }
.ck-center { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); font-size: 78px; z-index: 3; animation: ckBob 1.8s ease-in-out infinite; }
.ck-heart { position: absolute; bottom: 45%; font-size: 20px; animation: ckHeart 3s ease-out infinite; opacity: 0; }
.ck-ticket { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%) rotate(-4deg); width: 110px; height: 120px; background: #fff; border-radius: 6px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); padding: 14px 12px; z-index: 2; }
.ck-ticket i { display: block; height: 7px; border-radius: 4px; background: #f1e1d2; margin-bottom: 9px; animation: growX 1.8s ease-out infinite; transform-origin: left; }
.ck-ticket i:nth-child(2) { width: 70%; animation-delay: .3s; } .ck-ticket i:nth-child(3) { width: 85%; animation-delay: .6s; } .ck-ticket i:nth-child(4) { width: 50%; animation-delay: .9s; }
.ck-pencil { position: absolute; left: 58%; bottom: 46%; font-size: 34px; z-index: 3; animation: ckWrite 1.2s ease-in-out infinite; }
.ck-who { position: absolute; left: 12px; top: 10px; background: rgba(255, 255, 255, .92); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 700; z-index: 5; }
.ck-sparkle { position: absolute; font-size: 16px; animation: ckTwinkle 1.6s ease-in-out infinite; z-index: 4; }

@keyframes ckBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes ckLamp { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ckFlame { from { transform: scaleY(.8) scaleX(1.05); } to { transform: scaleY(1.15) scaleX(.9); } }
@keyframes ckFlip { 0%, 30% { transform: translateY(0) rotateX(72deg); } 45% { transform: translateY(-46px) rotateX(250deg); } 60%, 100% { transform: translateY(0) rotateX(432deg); } }
@keyframes ckBubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-26px) scale(1.1); opacity: 0; } }
@keyframes ckSteam { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-60px) scale(1.6); opacity: 0; } }
@keyframes ckChop { from { transform: rotate(-28deg); } to { transform: rotate(6deg) translateY(4px); } }
@keyframes ckShake { from { transform: rotate(150deg); } to { transform: rotate(175deg); } }
@keyframes ckDust { from { transform: translateY(0); opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
@keyframes ckDrop { 0% { transform: translateY(-30px); opacity: 0; } 40%, 80% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }
@keyframes ckWalk { 0% { left: -22%; } 100% { left: 110%; } }
@keyframes ckRoad { to { background-position: -48px 0; } }
@keyframes ckRide { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-4px) rotate(2deg); } }
@keyframes ckHeart { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-90px) scale(1.2); opacity: 0; } }
@keyframes ckWrite { 0%, 100% { transform: translate(0, 0) rotate(-10deg); } 25% { transform: translate(-20px, 6px) rotate(-14deg); } 50% { transform: translate(-6px, 14px) rotate(-8deg); } 75% { transform: translate(-26px, 20px) rotate(-14deg); } }
@keyframes ckTwinkle { 0%, 100% { transform: scale(.4); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ck-scene *, .ck-scene *::before, .ck-scene *::after { animation-duration: 6s !important; } }

.ck-walker .body { display: inline-block; animation: ckStep .5s ease-in-out infinite; }
.ck-roadscene { background: linear-gradient(180deg, #e0f2fe 0 66%, #4b5563 66%) !important; }
.ck-roadscene::after { display: none; }
.ck-roadscene::before { inset: 0 0 34% 0; }
.ck-roadscene .ck-road { bottom: 15%; }
.ck-roadscene .ck-scooter { bottom: 22%; }
.ck-roadscene .ck-dest { bottom: 33% !important; }
@keyframes ckStep { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
