/* The restaurant: room scenery (room.js) and the playable layer (game.js). */

.game-cam { position: absolute; inset: 0; transform-origin: center; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.game-cam.shake { animation: game-shake .25s linear; }
@keyframes game-shake { 0% { translate: 6px 0; } 25% { translate: -6px 0; } 50% { translate: 4px 0; } 75% { translate: -3px 0; } 100% { translate: 0 0; } }

/* ---------- Room */
.game-room { position: absolute; inset: 0; overflow: hidden; background: #B9834F; }
.game-wall {
  position: absolute; left: -8px; right: -8px; top: -6px; padding: 0; overflow: hidden; will-change: transform;
  background:
    radial-gradient(ellipse 420px 420px at 50% 50%, transparent 28%, rgba(0,0,0,.12)),
    radial-gradient(circle, rgba(255,255,255,.25) 2.5px, transparent 3px) 0 0 / 71px 113px,
    repeating-linear-gradient(90deg, rgba(246,201,160,.35) 0 16px, transparent 16px 32px),
    linear-gradient(#FFF1DC, #FFE3C4);
}
.game-wall > * { position: absolute; translate: 8px 6px; }

.game-window { border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.game-window-glass { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; border: 8px solid #C98F5D; border-image: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); background-clip: padding-box; }
.game-window::before { content: ""; position: absolute; inset: 0; border-radius: 12px; z-index: 2; pointer-events: none;
  border: 8px solid transparent; background: linear-gradient(#d9aa81, #a1724a) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.game-window::after { content: ""; position: absolute; inset: 8px; border-radius: 5px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), inset 0 4px 10px rgba(0,0,0,.12); z-index: 2; pointer-events: none; }
.game-mullion { position: absolute; z-index: 1; }
.game-mullion.v { left: 50%; top: 0; bottom: 0; width: 7px; margin-left: -3.5px; background: linear-gradient(90deg, #d4a57d, #ab7a4f); }
.game-mullion.h { top: 50%; left: 0; right: 0; height: 7px; margin-top: -3.5px; background: linear-gradient(#d4a57d, #ab7a4f); }
.game-glint { position: absolute; left: -20%; top: -20%; width: 50%; height: 140%; transform: rotate(25deg); background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0)); z-index: 1; }
.game-sill { position: absolute; left: -8px; right: -8px; bottom: -10px; height: 10px; border-radius: 3px; background: linear-gradient(#d9b08e, #C98F5D); box-shadow: 0 4px 6px rgba(0,0,0,.25); z-index: 3; }

/* A bird flits past the window every so often (14 s period, in view for the first third). */
.game-bird { position: absolute; left: 0; top: 32%; width: 100%; animation: game-bird-fly 14s linear infinite; z-index: 1; }
.game-bird i { display: block; width: 16px; height: 8px; margin-left: -8px; animation: game-bird-bob .5s ease-in-out infinite alternate; }
.game-bird i::before, .game-bird i::after { content: ""; position: absolute; top: 0; width: 8px; height: 6px; border-top: 2px solid rgba(51,39,43,.7); border-radius: 50% 50% 0 0; animation: game-flap .35s ease-in-out infinite alternate; }
.game-bird i::before { left: 0; transform-origin: 100% 100%; } .game-bird i::after { left: 8px; transform-origin: 0 100%; animation-name: game-flap-r; }
@keyframes game-bird-fly { 0% { transform: translateX(115%); } 32% { transform: translateX(-15%); } 100% { transform: translateX(-15%); } }
@keyframes game-bird-bob { to { transform: translateY(6px); } }
@keyframes game-flap { from { transform: rotate(-24deg); } to { transform: rotate(22deg); } }
@keyframes game-flap-r { from { transform: rotate(24deg); } to { transform: rotate(-22deg); } }

.game-clock { width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #EDE6DA); box-shadow: inset 0 0 0 5px #c99263, inset 0 0 0 6px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.2); }
.game-clock::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 5px solid transparent; background: linear-gradient(#E0AA75, #B07A4A) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.game-clock-tick { position: absolute; left: 50%; top: 50%; width: 2px; height: 3px; margin: -1.5px -1px; border-radius: 1px; background: #6B4A3A; }
.game-clock-tick.big { height: 6px; margin-top: -3px; }
.game-clock-hand { position: absolute; left: 50%; bottom: 50%; border-radius: 2px; background: #33272B; transform-origin: 50% 100%; transition: transform 1.2s ease-in-out; }
.game-clock-hand.hour { width: 3px; height: 13px; margin-left: -1.5px; } .game-clock-hand.minute { width: 2px; height: 17px; margin-left: -1px; }
.game-clock-pin { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #E0473A; }

.game-board { padding: 8px 12px; border-radius: 8px; background: linear-gradient(#36664F, #27503E); box-shadow: inset 0 0 0 6px #c89262, inset 0 0 0 7.5px rgba(0,0,0,.2), 0 5px 8px rgba(0,0,0,.22); }
.game-board::before { content: ""; position: absolute; inset: 0; border-radius: 8px; border: 6px solid transparent; background: linear-gradient(#E0AA75, #B07A4A) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.game-board-title { color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; padding: 2px 2px 0; }
.game-board-dots { display: flex; gap: 3px; margin: 4px 2px 2px; }
.game-board-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .4s, box-shadow .4s; }
.game-board-dots i.on { background: #FFD94F; box-shadow: 0 0 5px rgba(255,217,79,.8); }

.game-lamp { top: -3px; width: 0; height: 0; }
.game-lamp-cord { position: absolute; left: -1px; top: 0; width: 2px; height: 101px; background: #6B4A3A; }
.game-lamp-glow { position: absolute; left: -70px; top: 76px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,233,168,.85), rgba(255,233,168,0) 70%); animation: game-lamp-breathe 5s ease-in-out infinite alternate; }
@keyframes game-lamp-breathe { from { opacity: .82; } to { opacity: 1; } }
.game-lamp-shade { position: absolute; left: -22px; top: 101px; width: 44px; height: 30px; border-radius: 6px 6px 14px 14px; background: linear-gradient(135deg, #FF8FA3, #E0607A); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 3px 5px rgba(0,0,0,.2); }
.game-lamp-bulb { position: absolute; left: -6px; top: 126px; width: 12px; height: 12px; border-radius: 50%; background: #FFF3B0; box-shadow: 0 0 10px 3px #FFE38A; }

.game-sparkles { left: 0; pointer-events: none; }
.game-sparkles i { position: absolute; top: 0; border-radius: 50%; background: #fff; animation: game-mote-fall linear infinite, game-mote-glow ease-in-out infinite alternate; }
@keyframes game-mote-fall { from { transform: translate(0, -10px); } 50% { transform: translate(30px, 160px); } to { transform: translate(-10px, 340px); } }
@keyframes game-mote-glow { from { opacity: .25; } to { opacity: .6; } }

.game-door { width: 84px; height: 132px; perspective: 260px; }
.game-door-way { position: absolute; left: 10%; bottom: 0; width: 80%; height: 88%; border-radius: 22px 22px 0 0; background: linear-gradient(#2A1E2E, #4A3448); }
.game-door-frame { position: absolute; left: 4%; bottom: 0; width: 92%; height: 95%; border-radius: 26px 26px 0 0; border: 7px solid transparent; border-bottom: 0; background: linear-gradient(#d7ab86, #a1724a) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.game-door-panel { position: absolute; left: 10%; bottom: 0; width: 80%; height: 88%; border-radius: 22px 22px 0 0; transform-origin: 0 50%; background: linear-gradient(135deg, #cf9c6f, #C98F5D 50%, #ab7a4f); box-shadow: inset 0 0 0 3px #8d6441, 0 0 6px rgba(0,0,0,.1); transition: transform .6s cubic-bezier(.3, 1.35, .5, 1), box-shadow .5s; }
.game-door.open .game-door-panel { transform: rotateY(-95deg); box-shadow: inset 0 0 0 3px #8d6441, 10px 0 8px rgba(0,0,0,.3); }
.game-door-inset { position: absolute; left: 10px; right: 10px; top: 34px; bottom: 12px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(151,107,70,.6); }
.game-door-porthole { position: absolute; left: 50%; top: 12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6f3fb, #BFD9EA); box-shadow: inset 0 0 0 2px #8d6441; }
.game-door-knob { position: absolute; right: 10px; top: 50%; margin-top: 3px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1a8, #FFD94F); box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.game-door-bell { position: absolute; left: 50%; top: -12px; font-size: 14px; translate: -50% 0; transform-origin: 50% 0; transition: transform .3s; }
.game-door.open .game-door-bell { animation: game-bell .9s ease-in-out; }
@keyframes game-bell { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(22deg); } 35% { transform: rotate(-18deg); } 55% { transform: rotate(14deg); } 75% { transform: rotate(-8deg); } }

.game-plant { width: 44px; height: 60px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.game-plant-leaves { position: absolute; left: 50%; bottom: 22px; animation: game-sway 2.2s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.game-plant-leaves i { position: absolute; left: -7px; bottom: 0; width: 14px; height: 30px; border-radius: 50%; background: linear-gradient(#8FCB6F, #5FA84A); transform-origin: 50% 100%; transform: rotate(var(--a)); }
@keyframes game-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.game-plant-pot { position: absolute; left: 7px; bottom: 0; width: 30px; height: 26px; border-radius: 4px 4px 8px 8px; background: linear-gradient(#F0A07A 0 5px, transparent 5px), linear-gradient(#E58B5E, #B85E38); }

.game-floor-wrap { position: absolute; left: -12px; right: -12px; will-change: transform; }
.game-rail { display: block; height: 7px; background: linear-gradient(#E0AA75, #B07A4A); box-shadow: 0 3px 5px rgba(0,0,0,.25); position: relative; z-index: 1; }
.game-floor { position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1.5px, transparent 1.5px 140px),
    repeating-linear-gradient(180deg, #DDAB74 0, #DDAB74 calc(25% - 2px), #B9834F calc(25% - 2px), #B9834F 25%, #D3A069 25%, #D3A069 calc(50% - 2px), #B9834F calc(50% - 2px), #B9834F 50%); }
.game-floor-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.22), transparent 50%, rgba(0,0,0,.08)); }
.game-pool { position: absolute; border-radius: 50%; background: rgba(255,227,138,.35); filter: blur(22px); translate: 12px 0; }
.game-pool.lamp { width: 150px; height: 60px; background: rgba(255,233,168,.4); filter: blur(18px); }

.game-counter { position: absolute; left: -16px; right: -16px; display: flex; flex-direction: column; will-change: transform; }
.game-counter-top { flex: 1; position: relative; overflow: hidden; background: linear-gradient(#fff, #F2EBE0 50%, #E9E0D2); box-shadow: 0 -6px 12px rgba(0,0,0,.3); border-top: 3px solid rgba(255,255,255,.9); }
.game-marble { position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(172deg, transparent 0 38px, #C9BBA8 38px 39.5px, transparent 39.5px 61px), repeating-linear-gradient(8deg, transparent 0 53px, #C9BBA8 53px 54px, transparent 54px 90px); }
.game-counter-top::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(rgba(255,255,255,.6), transparent); }
.game-counter-front { height: 64px; flex: none; display: flex; align-items: center; justify-content: center; gap: 18px; overflow: hidden; background: linear-gradient(#D9A56E, #B9834F 50%, #9E6B3F); box-shadow: inset 0 6px 0 rgba(0,0,0,.18); }
.game-counter-front i { flex: none; width: 30px; height: 30px; border-radius: 3px; background: rgba(0,0,0,.08); box-shadow: inset 0 1px 0 rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.12); }

.game-pot { position: absolute; width: 70px; height: 60px; pointer-events: none; will-change: transform; }
.game-steam { position: absolute; left: 50%; top: 55%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; opacity: 0; animation: game-steam 2.86s linear infinite; filter: blur(1px); }
@keyframes game-steam { 0% { transform: translate(0, 0) scale(1); opacity: .55; } 50% { transform: translate(var(--dx), -17px) scale(2); opacity: .28; } 100% { transform: translate(calc(var(--dx) * -1), -33px) scale(3); opacity: 0; } }
.game-pot-body { position: absolute; left: 13px; bottom: 0; width: 44px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #E6ECF0, #A9B8C6); box-shadow: 0 3px 5px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.7); }
.game-pot-body i { position: absolute; border-radius: 999px; }
.game-pot-body .lid { left: -4px; top: -1px; width: 52px; height: 6px; background: linear-gradient(#dfe7ee, #b5c3d0); }
.game-pot-body .knob { left: 17px; top: -6px; width: 10px; height: 5px; background: #E0473A; }
.game-pot-body .ear { top: 10px; width: 8px; height: 5px; background: #8797A6; } .game-pot-body .ear.l { left: -8px; } .game-pot-body .ear.r { right: -8px; }

/* Time-of-day grading over the whole room. */
.game-grade { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; transition: opacity 1.2s; }

/* ---------- Floor: tables, dishwasher, Daisy */
.game-floor-row { position: absolute; left: 0; right: 0; height: 120px; display: flex; will-change: transform; }
.game-slot { flex: 1; display: flex; justify-content: center; align-items: flex-end; }
.game-table { position: relative; width: 96px; height: 120px; display: flex; justify-content: center; align-items: flex-end; }
.game-table:disabled { pointer-events: none; }
.game-table-glow { position: absolute; left: 3px; bottom: -6px; width: 90px; height: 30px; border-radius: 50%; background: rgba(255,227,138,.55); filter: blur(4px); opacity: 0; transition: opacity .3s; }
.game-table.active .game-table-glow { opacity: 1; }
.game-table-art { position: relative; }
.game-seat { position: absolute; left: 50%; bottom: 40px; width: 74px; margin-left: -37px; height: 74px; pointer-events: none; }
.game-seat-walk, .game-seat-hop, .game-seat-squish { position: absolute; inset: 0; }
.game-seat-squish { transform-origin: 50% 100%; }
.game-mad { position: absolute; left: 50%; bottom: 86px; margin-left: -42px; font-size: 18px; animation: game-throb .5s ease-in-out infinite alternate; }
@keyframes game-throb { to { transform: scale(1.25) rotate(8deg); } }
.game-hearts { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); padding: 2px 4px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 9px; letter-spacing: 1px; white-space: nowrap; line-height: 1.2; }
.game-antic { position: absolute; left: 50%; bottom: 102px; transform: translateX(-50%); padding: 3px 6px; border-radius: 999px; background: #fff; color: var(--cabbage-dark); font-size: 9px; font-weight: 900; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,.12); animation: game-pop-in .3s var(--spring) both; z-index: 3; }
.game-antic.out { animation: game-pop-out .2s ease-out both; }
@keyframes game-pop-in { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
@keyframes game-pop-out { to { transform: translateX(-50%) scale(.4); opacity: 0; } }
.game-dirty { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; font-size: 10px; }
.game-dirty .plate + .plate { margin-left: -6px; }
.game-tag { position: absolute; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; animation: game-bob 0.7s ease-in-out infinite alternate; box-shadow: 0 2px 4px rgba(0,0,0,.18); }
@keyframes game-bob { to { translate: 0 -4px; } }
.game-tag.tap { bottom: 66px; background: var(--strawberry); } .game-tag.wash { bottom: 70px; background: var(--cabbage); }

.game-dw-btn { position: relative; width: 80px; height: 120px; display: flex; justify-content: center; align-items: flex-end; }
.game-dw { position: relative; width: 58px; height: 62px; }
.game-dw-shadow { position: absolute; left: -9px; right: -9px; bottom: -12px; height: 21px; border-radius: 50%; background: rgba(0,0,0,.22); filter: blur(4px); }
.game-dw-body { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(#F0F4F8, #C9D5E0); box-shadow: inset 0 0 0 2px #A9B8C6, inset 0 0 0 4px rgba(255,255,255,.7); }
.game-dw-panel { position: absolute; left: 0; right: 0; top: 6px; display: flex; gap: 4px; justify-content: center; align-items: center; }
.game-dw-led { width: 6px; height: 6px; border-radius: 50%; background: #B9C7D4; transition: background .3s, box-shadow .3s; }
.game-dw.running .game-dw-led:first-child { background: #6FD26F; box-shadow: 0 0 6px 1px #6FD26F; }
.game-dw-bar { width: 14px; height: 4px; border-radius: 2px; background: #B9C7D4; }
.game-dw-glass { position: absolute; left: 16%; top: 33%; width: 68%; height: 50%; border-radius: 8px; display: flex; justify-content: center; align-items: center; gap: 3px; overflow: hidden; background: linear-gradient(#fff, #E8EEF3); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.1), inset 0 3px 5px rgba(0,0,0,.08); transition: background .4s; }
.game-dw.running .game-dw-glass { background: linear-gradient(#BDE6FA, #7EC4EE); }
.game-dw-suds { border-radius: 50%; background: rgba(255,255,255,.85); animation: game-suds .5s ease-in-out infinite alternate; }
@keyframes game-suds { from { transform: translateY(6px); } to { transform: translateY(-8px); } }
.game-dw-plate { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #C9D2DA; } .game-dw-plate + .game-dw-plate { margin-left: -9px; }
.game-dw-handle { position: absolute; left: 25%; right: 25%; bottom: 5px; height: 3px; border-radius: 2px; background: #A9B8C6; }
.game-dw.running { animation: game-rumble .12s linear infinite alternate; }
@keyframes game-rumble { from { transform: translateX(-.6px) rotate(-.4deg); } to { transform: translateX(.6px) rotate(.4deg); } }
.game-dw-count { position: absolute; right: 5px; top: 52px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--strawberry); color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 2px 3px rgba(0,0,0,.2); }

.game-daisy { position: absolute; top: 84px; left: 0; display: flex; align-items: center; margin: -26px 0 0 -26px; pointer-events: none; transition: transform .45s ease-in-out; z-index: 4; }
.game-daisy .plate { margin-left: -6px; margin-top: 16px; }
.game-ghost { position: absolute; top: 68px; left: 0; margin: -37px 0 0 -37px; pointer-events: none; z-index: 4; }
.game-ghost-flip { transform: scaleX(-1); }

/* ---------- Order bubble */
.game-bubble { position: absolute; width: 236px; padding: 10px; border-radius: 18px; background: linear-gradient(#fff, #FFF8EE); box-shadow: inset 0 0 0 3px var(--rim, #E8DFD0), inset 0 0 0 4.5px rgba(255,255,255,.7), 0 5px 10px rgba(0,0,0,.15); transform-origin: var(--tail, 50%) 100%; animation: game-bubble-in .4s var(--spring) both; z-index: 6; transition: left .35s var(--spring); }
.game-bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: #FFF8EE; transform: rotate(45deg); border-radius: 2px; box-shadow: 3px 3px 0 0 var(--rim, #E8DFD0); }
@keyframes game-bubble-in { from { transform: scale(.5); opacity: 0; } }
.game-bubble-name { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.game-bubble.vip .game-bubble-name { color: var(--strawberry); }
.game-vip { font-size: 10px; padding: 1px 5px; border-radius: 999px; background: rgba(246,196,83,.6); color: var(--ink); letter-spacing: 0; text-transform: none; }
.game-line { font-size: 15px; font-weight: 900; line-height: 1.2; color: var(--ink); margin-bottom: 4px; animation: game-fade .25s ease both; }
.game-line.mad { color: var(--strawberry); } .game-line.big { font-size: 17px; color: var(--cabbage-dark); }
.game-silly { font-size: 12px; font-style: italic; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.game-sub { font-size: 12px; font-weight: 900; color: var(--muted); }
@keyframes game-fade { from { opacity: 0; transform: translateY(3px); } }
.game-wants { display: flex; align-items: center; gap: 6px; }
.game-want { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; flex: none; }
.game-want-name { font-size: 9px; font-weight: 900; max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.game-times { position: absolute; right: 2px; top: -4px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 3px; background: var(--strawberry); color: #fff; font-size: 10px; font-weight: 900; }
.game-please { font-size: 12px; font-weight: 900; white-space: nowrap; }

.game-hint { position: absolute; left: 16px; width: 200px; padding: 10px; text-align: center; font-size: 12px; font-weight: 900; color: var(--cabbage-dark); animation: game-fade .4s ease both; z-index: 5; }

/* ---------- Counter column: tray, tabs, belt, serve */
.game-controls { position: absolute; left: 12px; right: 12px; bottom: calc(6px + env(safe-area-inset-bottom) * 0); display: flex; flex-direction: column; gap: 8px; z-index: 8; }
.game-tray { min-height: 54px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 14px; background: linear-gradient(#E2B07A, #C48A5A); box-shadow: inset 0 0 0 3px #A9754A, inset 0 0 0 7.5px rgba(240,210,168,.35), inset 0 14px 12px -6px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.22); }
.game-tray-hint { color: #fff; font-size: 12px; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.game-tray-note { margin-left: auto; color: rgba(255,255,255,.9); font-size: 9px; font-weight: 900; text-align: right; line-height: 1.2; }
.game-tray-item { animation: game-plop .3s var(--spring) both; }
@keyframes game-plop { from { transform: scale(.3); opacity: 0; } }

.game-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 3px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.game-tabs::-webkit-scrollbar, .game-belt::-webkit-scrollbar { display: none; }
.game-tab { flex: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; white-space: nowrap; color: var(--cabbage-dark); background: linear-gradient(#fff, #f6f1e7); box-shadow: inset 0 0 0 2.5px #E8DFD0, 0 2px 3px rgba(0,0,0,.08); transition: transform .2s var(--spring), background .2s; }
.game-tab.on { color: #fff; background: linear-gradient(#6d9a5d, var(--cabbage)); box-shadow: inset 0 0 0 2.5px rgba(63,99,53,.5), 0 2px 5px rgba(63,99,53,.35); }
.game-tab:active { transform: scale(.92); }

.game-belt { height: 104px; display: flex; gap: 10px; overflow-x: auto; padding: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.game-dish { flex: none; width: 96px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: game-plop .3s var(--spring) both; }
.game-dish.sticker-card { transition: transform .2s var(--spring); }
.game-dish:active { transform: scale(.92); transition-duration: .07s; }
.game-dish-name { width: 84px; font-size: 11px; font-weight: 900; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.game-serve { padding: 0 30px; }

/* ---------- HUD */
.game-hud { position: absolute; left: 12px; right: 12px; top: 8px; display: flex; align-items: center; gap: 8px; z-index: 20; }
.game-hud .spacer { flex: 1; }
.game-streak { animation: game-plop .35s var(--spring) both; }
.game-show-btn canvas { margin-top: 6px !important; }
.game-show-btn:disabled { filter: saturate(.2) brightness(1.05); }
.game-perfect { position: absolute; left: 50%; top: 36%; z-index: 30; pointer-events: none; transform: translate(-50%, -50%) rotate(-6deg); animation: game-perfect-in .4s var(--spring) both; }
.game-perfect.out { animation: game-perfect-out .25s ease-in both; }
@keyframes game-perfect-in { from { transform: translate(-50%, -50%) rotate(-6deg) scale(.2); opacity: 0; } }
@keyframes game-perfect-out { to { transform: translate(-50%, -50%) rotate(-6deg) scale(.2); opacity: 0; } }
.game-flyer { position: absolute; z-index: 30; pointer-events: none; margin: -14px 0 0 -40px; width: 80px; text-align: center; }
.game-banner { position: absolute; left: 50%; top: 60px; max-width: 86%; z-index: 40; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--cabbage-dark); font-size: 15px; font-weight: 900; text-align: center; box-shadow: inset 0 0 0 3px #9ED4F4, 0 4px 12px rgba(0,0,0,.12); animation: toast-in .45s var(--spring) both; width: max-content; }
.game-banner.out { animation: toast-out .28s ease-in both; }

/* ---------- Chipmunk stage */
.game-stage { position: absolute; left: 6px; right: 6px; top: -16px; bottom: 16px; border-radius: 18px; overflow: hidden; background: linear-gradient(#5E2A6E, #2E1040); animation: game-stage-in .35s var(--spring) both; z-index: 9; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.game-stage.out { animation: game-stage-out .25s ease-in both; }
@keyframes game-stage-in { from { transform: scale(.6); opacity: 0; } }
@keyframes game-stage-out { to { transform: scale(.6); opacity: 0; } }
.game-curtain { position: absolute; left: 0; right: 0; top: -8px; height: 18px; display: flex; }
.game-curtain i { flex: 1; border-radius: 50%; background: radial-gradient(ellipse at 50% 20%, #ef5468, #DB3A4E 60%, #b82c3f); }
.game-disco { position: absolute; left: 50%; top: 13px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.5) 0 25%, transparent 0 50%) 0 0 / 8.8px 8.8px, linear-gradient(135deg, #fff, #B9C7D4); box-shadow: 0 0 12px rgba(255,255,255,.6); animation: game-disco .24s ease-in-out infinite alternate; }
@keyframes game-disco { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.game-dancers { position: absolute; left: 0; right: 0; top: 50%; margin-top: -24px; display: flex; justify-content: center; gap: 22px; }
.game-dancer { position: relative; width: 60px; height: 60px; }
.game-dancer::before { content: ""; position: absolute; left: -2px; top: 46px; width: 64px; height: 22px; border-radius: 50%; background: rgba(255,235,59,.35); }
.game-dancer > div { position: absolute; inset: 0; transform-origin: 50% 100%; animation: game-dance .24s ease-in-out infinite alternate; }
.game-dancer:nth-child(2) > div { animation-name: game-dance-mid; }
@keyframes game-dance { from { transform: translateY(2px) rotate(-8deg) scale(1.06, .92); } to { transform: translateY(-10px) rotate(8deg) scale(.94, 1.08); } }
@keyframes game-dance-mid { from { transform: translateY(-10px) rotate(-8deg) scale(-.94, 1.08); } to { transform: translateY(2px) rotate(8deg) scale(-1.06, .92); } }
.game-stage-title { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.game-note { position: absolute; top: 100px; font-size: 14px; pointer-events: none; animation: game-note 1.4s ease-out forwards; }
@keyframes game-note { to { transform: translateY(-110px); opacity: 0; } }

/* ---------- Closing card and pause */
.game-closing { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; animation: game-fade .5s ease both; }
.game-closing-card { position: relative; margin: 28px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: game-card-in .5s var(--spring) both; }
@keyframes game-card-in { from { transform: scale(.8); opacity: 0; } }
.game-sleepers { display: flex; } .game-sleepers > * + * { margin-left: -10px; }
.game-closing-card p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; } .game-closing-card b { font-weight: 900; }
.game-closing-card .soft { font-size: 15px; color: var(--muted); } .game-closing-card .great { font-size: 17px; font-weight: 900; color: var(--cabbage-dark); }
.game-closing-card .candy { margin-top: 8px; }
.game-zzz { position: absolute; right: 22%; top: 8px; font-size: 18px; animation: game-zzz 2.4s ease-in-out infinite; }
@keyframes game-zzz { from { transform: translate(0, 10px) scale(.6); opacity: 0; } 40% { opacity: 1; } to { transform: translate(16px, -22px) scale(1.1); opacity: 0; } }

.game-pause { background: rgba(0,0,0,.45); display: grid; place-items: center; animation: game-fade .2s ease both; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.game-pause-card { width: 300px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: game-card-in .35s var(--spring) both; }
