/* Order Up */
.ou-room { width: 100%; height: 100%; max-width: 680px; margin: 0 auto; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.ou-top { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.ou-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--w-crust); color: var(--w-pan); font: 400 14px/1.2 var(--font-display); white-space: nowrap; }
.ou-status { flex: 1 1 auto; min-width: 0; margin: 0; text-align: center; color: var(--w-butter); font: 400 17px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ou-lives { flex: none; display: flex; gap: 3px; direction: ltr; }
.ou-heart { width: 22px; height: 22px; color: var(--w-tomato); transition: transform 0.3s, color 0.3s, opacity 0.3s; }
.ou-heart svg { display: block; width: 100%; height: 100%; }
.ou-heart.is-lost { color: var(--mist-dim); opacity: 0.4; transform: scale(0.8); }

/* the dining room */
.ou-floor { --cols: 2; --cw: 120px; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); justify-content: center; align-content: center; gap: 6px; direction: ltr; }
.ou-table { position: relative; width: var(--cw); height: calc(var(--cw) * 1.2); padding: 0; border: 0; border-radius: 16px; background: rgba(255, 246, 227, 0.04); color: #171C12; cursor: default; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background 0.2s, box-shadow 0.2s; }
.ou-table > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 50% 80%; }
.ou-floor.is-serving .ou-table:not(.is-done) { cursor: pointer; background: rgba(255, 212, 92, 0.10); box-shadow: inset 0 0 0 2px rgba(255, 212, 92, 0.35); }
@media (hover: hover) { .ou-floor.is-serving .ou-table:not(.is-done):hover { background: rgba(255, 212, 92, 0.2); } }
.ou-floor.is-serving .ou-table:not(.is-done):active { background: rgba(255, 212, 92, 0.3); }
.ou-table:focus-visible { outline: 3px solid var(--w-butter); outline-offset: 2px; }
.ou-num { position: absolute; left: 5%; top: 4%; min-width: 26%; padding: 1px 6px; box-sizing: border-box; border-radius: 8px; background: var(--w-butter); color: var(--w-pan); font: 400 calc(var(--cw) * 0.17)/1.15 var(--font-display); text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.ou-f-h, .ou-f-s { display: none; }
.ou-table.is-happy .ou-f-n, .ou-table.is-sad .ou-f-n { display: none; }
.ou-table.is-happy .ou-f-h, .ou-table.is-sad .ou-f-s { display: inline; }
.ou-table.is-happy > svg { animation: ou-hop 0.5s ease-out; }
.ou-table.is-sad > svg { animation: ou-shake 0.4s ease-in-out; }

/* speech bubble with the order */
.ou-bubble { position: absolute; top: 0; left: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--w-cream); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); transform: scale(0); transform-origin: 10% 95%; transition: transform 0.25s cubic-bezier(.3, 1.5, .6, 1); pointer-events: none; }
.ou-bubble::after { content: ""; position: absolute; left: 4%; bottom: 2%; width: 22%; height: 22%; background: var(--w-cream); clip-path: polygon(100% 0, 0 100%, 60% 30%); transform: translate(-30%, 30%); }
.ou-bubble svg { position: absolute; inset: 10%; width: 80%; height: 80%; }
.ou-floor.is-ordering .ou-bubble { transform: scale(1); }
.ou-table.is-reveal .ou-bubble { animation: ou-reveal 1.5s ease-out; }
.ou-table.is-reveal { animation: ou-glow 1.5s ease-out; }

/* the dish on the table and the hearts of a happy guest */
.ou-dish { position: absolute; left: 50%; top: 74%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.ou-dish svg { display: block; width: 100%; height: 100%; }
.ou-love { position: absolute; left: 30%; top: 22%; width: 40%; height: 20%; pointer-events: none; color: var(--w-tomato); }
.ou-love svg { position: absolute; width: 36%; height: auto; opacity: 0; }
.ou-love svg:nth-child(1) { left: 0; }
.ou-love svg:nth-child(2) { left: 32%; color: var(--w-berry); }
.ou-love svg:nth-child(3) { left: 64%; }
.ou-table.is-happy .ou-love svg { animation: ou-love 1s ease-out both; }
.ou-table.is-happy .ou-love svg:nth-child(2) { animation-delay: 0.12s; }
.ou-table.is-happy .ou-love svg:nth-child(3) { animation-delay: 0.24s; }

/* the pass: bell, the dish waiting, dishes still to come */
.ou-pass { flex: none; height: clamp(66px, 13vh, 100px); display: flex; align-items: center; gap: 10px; padding: 6px 12px; direction: ltr; border-radius: 18px; background: linear-gradient(180deg, var(--w-crust) 0 12%, #B5803F 12% 100%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.25); box-sizing: border-box; }
.ou-bell { flex: none; height: 82%; aspect-ratio: 80 / 72; transform-origin: 50% 85%; }
.ou-bell svg { display: block; width: 100%; height: 100%; }
.ou-bell.is-ring { animation: ou-ring 0.6s ease-out; }
.ou-window { flex: 1 1 auto; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.ou-plate { flex: 1 1 auto; min-height: 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 233, 166, 0.55) 0, rgba(255, 233, 166, 0) 70%); }
.ou-plate svg { display: block; width: 100%; height: 100%; }
.ou-plate.is-in svg { animation: ou-slide 0.35s cubic-bezier(.3, 1.4, .6, 1); }
.ou-cook { flex: none; width: 60%; height: 6px; border-radius: 3px; background: rgba(23, 28, 18, 0.35); overflow: hidden; visibility: hidden; }
.ou-cook.is-on { visibility: visible; }
.ou-cook i { display: block; height: 100%; width: 0; background: var(--w-tomato); border-radius: 3px; }
.ou-queue { flex: none; width: 64px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-content: center; }
.ou-q { width: 12px; height: 12px; border-radius: 50%; background: var(--w-cream); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); transition: opacity 0.3s, transform 0.3s; }
.ou-q.is-out { opacity: 0.25; transform: scale(0.7); }
.ou-fly { position: fixed; z-index: 60; pointer-events: none; transition: transform 0.36s cubic-bezier(.4, 0, .3, 1); }
.ou-fly svg { display: block; width: 100%; height: 100%; }

@keyframes ou-hop { 0% { transform: none; } 35% { transform: translateY(-7%) scale(1.04); } 70% { transform: translateY(1%); } 100% { transform: none; } }
@keyframes ou-shake { 0%, 100% { transform: none; } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes ou-reveal { 0% { transform: scale(0); } 15%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes ou-glow { 0%, 80% { box-shadow: inset 0 0 0 3px var(--w-mint); background: rgba(155, 211, 176, 0.18); } 100% { box-shadow: none; } }
@keyframes ou-love { 0% { opacity: 0; transform: translateY(40%) scale(0.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160%) scale(1.1); } }
@keyframes ou-ring { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-5deg); } }
@keyframes ou-slide { 0% { transform: translateX(-60%) scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ou-table > svg, .ou-bell, .ou-plate svg, .ou-love svg { animation: none !important; }
  .ou-bubble { transition: none; }
}
