/* THE ORDER MOMENT (js/order/moment.js): the customer at the counter, full screen,
   before the first cooking step. Slides in from the right, out to the left. */
.om { position: fixed; inset: 0; z-index: 70; background: #ffe3ee; overflow: hidden; opacity: 0; transform: translateX(6%); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.2, .5, 1); -webkit-tap-highlight-color: transparent; touch-action: none; }
.om.in { opacity: 1; transform: none; }
.om.out { opacity: 0; transform: translateX(-8%); transition: opacity .4s, transform .5s cubic-bezier(.5, 0, .3, 1); }
.om-svg { position: absolute; left: 0; right: 0; bottom: 0; top: env(safe-area-inset-top, 0px); width: 100%; height: calc(100% - env(safe-area-inset-top, 0px)); display: block; }
/* the customer walks up, then the bubble pops, then the cards one by one */
.om .om-cust { transform: translateY(60px); opacity: 0; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1) .15s, opacity .3s .15s; }
.om.in .om-cust { transform: none; opacity: 1; }
.om .om-bubble { transform-box: fill-box; transform-origin: 85% 100%; transform: scale(.6); opacity: 0; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) .5s, opacity .25s .5s; }
.om.tall .om-bubble { transform-origin: 50% 100%; }
.om.in .om-bubble { transform: none; opacity: 1; }
.om .om-card { transform-box: fill-box; transform-origin: 50% 80%; transform: scale(.5); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) calc(.75s + var(--i) * .16s), opacity .2s calc(.75s + var(--i) * .16s); }
.om.in .om-card { transform: none; opacity: 1; }
/* the puppet: a smile, an open mouth while the line is spoken */
.om .puppet .pp-mouth > * { display: none; }
.om .puppet .m-smile { display: block; }
.om.talk .puppet .m-smile { display: none; }
.om.talk .puppet .m-open { display: block; transform-box: fill-box; transform-origin: 50% 0; animation: omTalk .17s ease-in-out infinite alternate; }
@keyframes omTalk { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.om .pp-body { animation: omBob 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes omBob { 0%, 100% { transform: none; } 50% { transform: translateY(-5px) rotate(-.6deg); } }
/* the big Got it! button */
.om-go { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 12px 22px 12px 26px; border: 4px solid #5a2d4c; border-radius: 999px; background: #ff5fa2; color: #fff; font: 900 26px/1 inherit; box-shadow: 0 6px 0 #c23f7c, 0 10px 18px rgba(90, 45, 76, .25); opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1); cursor: pointer; }
.om.ready .om-go { opacity: 1; transform: none; animation: omPulse 1.4s ease-in-out .4s infinite; }
.om-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #c23f7c; animation: none; }
@keyframes omPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
.om.tall .om-go { left: 50%; right: auto; transform: translateX(-50%) translateY(20px); }
.om.tall.ready .om-go { transform: translateX(-50%); animation: none; }
