/* ===== MÀN BÁN HÀNG ===== */
.sell { position: relative; padding: 4px 8px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 100%; background:
  linear-gradient(#ffeadb 0 62%, #f4d7b9 62%); }
.sell::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 130px; background: repeating-linear-gradient(90deg, rgba(255, 190, 200, .35) 0 36px, rgba(255, 255, 255, .25) 36px 72px); pointer-events: none; }
.queue-row { display: flex; gap: 5px; min-height: 48px; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.queue-row::-webkit-scrollbar { display: none; }
.q-empty { font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 6px; }
.qav { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.qav .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#4fbf7a calc(var(--p) * 1%), #e5d9cf 0); -webkit-mask: radial-gradient(circle, transparent 17px, #000 18px); mask: radial-gradient(circle, transparent 17px, #000 18px); }
.qav b { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 22px; box-shadow: var(--sh-sm); position: relative; }
.qav.on .ring { background: conic-gradient(var(--pink) calc(var(--p) * 1%), #e5d9cf 0); } .qav.on b { outline: 2px solid var(--pink); }

.cust-zone { display: flex; align-items: flex-start; gap: 6px; position: relative; z-index: 2; min-height: 96px; }
.cust-av { flex: none; width: 82px; display: grid; place-items: center; position: relative; padding-top: 8px; }
.cust-av .face { font-size: 68px; line-height: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); animation: floaty 3s ease-in-out infinite; }
.cust-av .idle { font-size: 56px; opacity: .7; }
.bubble { flex: 1; min-width: 0; background: var(--card2); border-radius: 18px; padding: 8px 10px; box-shadow: var(--sh-sm); position: relative; margin-top: 4px; }
.bubble::before { content: ''; position: absolute; left: -9px; top: 28px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.b-row { display: flex; gap: 8px; align-items: flex-start; }
.b-row .cup { flex: none; margin-top: 2px; }
.atag { display: inline-block; background: #f5873a; color: #fff; border-radius: 6px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.btxt { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--text); margin-top: 2px; } .btxt.dim { color: var(--muted); }
.pat { display: flex; align-items: center; gap: 6px; margin-top: 6px; } .pat span { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; } .pat .bar { flex: 1; height: 12px; }
.hint { align-self: center; background: linear-gradient(#5aa7e6, #3e86cc); color: #fff; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 7px 18px; text-align: center; box-shadow: var(--sh-sm); position: relative; z-index: 2; max-width: 94%; }

.tag-w { align-self: flex-start; background: #e6c9a2; border: 2px solid #c9a678; color: var(--brown); font-weight: 800; font-size: 12px; padding: 2px 12px; border-radius: 8px; box-shadow: var(--sh-sm); letter-spacing: .5px; }
.tag-w.sm { font-size: 11px; padding: 1px 10px; }
.shelf { position: relative; z-index: 2; background: linear-gradient(#f6e3c8, #ead0ae); border-radius: 14px; padding: 6px 6px 8px; box-shadow: var(--sh-sm); border-bottom: 5px solid #c9a678; }
.shelf-row { display: flex; align-items: flex-end; gap: 4px; margin-top: 4px; }
.stacks { display: flex; gap: 4px; flex: none; }
.stack { position: relative; width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding: 0 0 2px; border-radius: 10px; border: 2px solid transparent; }
.stack.big { width: 48px; }
.stack:active { transform: scale(.94); }
.stack .cups { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.stack .cups i { width: 34px; height: 6px; background: var(--card2); border: 1.5px solid #cfc6ba; border-radius: 3px 3px 7px 7px; }
.stack .cups.l i { width: 40px; }
.stack b { font-size: 15px; color: var(--brown); }
.cnt { position: absolute; top: -4px; right: -3px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; background: #f9e1b3; border: 2px solid #c9a678; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: var(--brown); z-index: 2; }
.cnt.empty, .empty > .cnt { background: #ffd4d4; border-color: var(--red); color: var(--red); }
.disps { display: flex; gap: 3px; flex: 1; justify-content: space-between; min-width: 0; }
.disp { position: relative; width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; }
.jar { position: relative; width: 40px; height: 60px; border-radius: 9px 9px 7px 7px; background: rgba(255, 255, 255, .55); border: 2px solid #fff; overflow: hidden; box-shadow: var(--sh-sm), inset 0 0 6px rgba(255,255,255,.7); }
.jar .jl { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; opacity: .92; }
.jar .lab { position: absolute; left: 2px; right: 2px; top: 42%; background: #fff6e8; border: 1px solid #c9a678; border-radius: 3px; font-size: 7.5px; font-weight: 800; text-align: center; line-height: 1.1; padding: 2px 0; color: var(--brown); z-index: 2; }
.jar .lk { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 16px; z-index: 3; }
.disp .tap { width: 12px; height: 12px; background: linear-gradient(#999, #666); border-radius: 3px 3px 6px 6px; margin-top: 2px; }
.disp.locked, .disp.off { opacity: .5; filter: grayscale(.7); }
.disp.pouring .tap { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.disp:active:not(.locked) .jar { transform: scale(.95); }
.disp .cnt { top: -6px; right: -4px; }
.sealer { position: relative; flex: none; width: 64px; height: 86px; margin-left: 2px; }
.sl-lid { position: absolute; left: 6px; right: 6px; top: 0; height: 22px; background: linear-gradient(#e89a5c, #c9703a); border-radius: 8px 8px 3px 3px; transition: transform .25s; z-index: 2; }
.sl-body { position: absolute; left: 0; right: 0; top: 18px; bottom: 0; background: linear-gradient(#d8d8d8, #9a9a9a); border-radius: 8px; box-shadow: var(--sh-sm); display: flex; justify-content: center; padding-top: 8px; }
.sl-led { background: #2f3a2f; color: #7cf08a; font-size: 8px; font-weight: 800; border-radius: 3px; padding: 1px 5px; height: 13px; line-height: 1.5; }
.sl-slot { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 22px; background: #3a3a3a; border-radius: 4px; }
.sealer.press .sl-lid { animation: lidPress .5s ease .3s; } .sealer.press .sl-led { color: #ffb347; }
.sealer.ding .sl-led { color: #fff; background: #2f9e44; }
@keyframes lidPress { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(14px) } }
.flav-row { display: flex; gap: 5px; margin-top: 5px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.fbtn { position: relative; flex: none; width: 36px; height: 40px; border-radius: 8px 8px 12px 12px; background: var(--card2); border: 2px solid #e7d6bd; display: grid; place-items: center; overflow: hidden; }
.fbtn i { position: absolute; inset: 40% 0 0 0; opacity: .6; } .fbtn b { position: relative; font-size: 18px; } .fbtn .cnt { top: -4px; right: -4px; }

.work { display: grid; grid-template-columns: 46% 1fr; gap: 6px; position: relative; z-index: 2; }
.work-l { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.phone { position: absolute; top: -2px; right: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--card2); box-shadow: var(--sh-sm); display: grid; place-items: center; font-size: 20px; z-index: 3; }
.phone b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 99px; background: #9aa; color: #fff; font-size: 10px; display: grid; place-items: center; }
.phone.has { animation: ring .6s ease infinite; } .phone.has b { background: var(--red); }
@keyframes ring { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-8deg) } 75% { transform: rotate(8deg) } }
.board { position: relative; height: 150px; border-radius: 12px; background: repeating-linear-gradient(90deg, #e3b676 0 14px, #dba965 14px 28px); border: 4px solid #c58f50; box-shadow: var(--sh-sm); display: flex; align-items: center; justify-content: center; }
.cupslot { position: relative; width: 100%; height: 108px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.cupslot.ready { cursor: pointer; } .cupslot.ready .cup { animation: floaty 1.2s ease-in-out infinite; filter: drop-shadow(0 0 8px #fff); }
.cupslot.plop .cup { animation: plop .35s ease; }
@keyframes plop { 0% { transform: scale(1) } 40% { transform: scale(1.1, .92) } 100% { transform: scale(1) } }
.board-txt { position: absolute; left: 0; right: 0; top: 36px; text-align: center; font-weight: 800; font-size: 17px; color: #8a5f33; line-height: 1.25; opacity: .8; pointer-events: none; }
.pourbar { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 14px; background: #5a3f26; border-radius: 99px; overflow: hidden; display: block; opacity: .55; }
.pourbar.on { opacity: 1; }
.pb-zone { position: absolute; left: 68%; width: 12%; top: 0; bottom: 0; background: rgba(255, 215, 80, .75); border-left: 2px solid #fff; border-right: 2px solid #fff; }
.pourbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #7ad39a, #3da35f); transition: width .08s linear; }
.pourbar i.ok { background: linear-gradient(90deg, #ffd97a, #f8b93c); } .pourbar i.over { background: linear-gradient(90deg, #ff8a95, var(--red)); }
.trash { align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; background: #c9ced3; display: grid; place-items: center; font-size: 22px; box-shadow: var(--sh-sm); margin-top: -2px; }
.trays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #bdc1c6; border-radius: 10px; padding: 5px; box-shadow: inset 0 0 6px rgba(0,0,0,.25); align-content: start; }
.tray { position: relative; aspect-ratio: 1 / .92; border-radius: 7px; background: linear-gradient(#e9ebed, #d3d6d9); border: 1.5px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.tray:active:not(.locked) { transform: scale(.93); }
.tray .pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; width: 88%; max-height: 62%; overflow: hidden; } .tray .pile i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset -1px -1px 2px rgba(0,0,0,.3); }
.tray small { font-size: 7.5px; font-weight: 800; color: #4a4a4a; line-height: 1; margin-top: 1px; max-width: 98%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray .lk { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.55); font-style: normal; font-size: 16px; }
.tray.locked .pile, .tray.off .pile { opacity: .35; } .tray.off { opacity: .55; }
.tray .cnt { top: -2px; right: -1px; min-width: 16px; height: 16px; font-size: 9px; border-width: 1.5px; }
.foot { display: flex; justify-content: flex-start; position: relative; z-index: 2; margin-top: 2px; }
.lobby-go { min-height: 34px; padding: 4px 16px; font-size: 13px; background: linear-gradient(#5ed08a, #34a35a); box-shadow: 0 3px 0 #207a40; }
.lobby-go.alert { animation: shake .6s ease infinite; }
.stream { position: absolute; display: none; width: 7px; border-radius: 4px; z-index: 6; pointer-events: none; opacity: .9; background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px); animation: streamMove .4s linear infinite; }
@keyframes streamMove { to { background-position: 0 12px; } }

/* ===== Ly ===== */
.cup { position: relative; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.c-body { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); border-radius: 0 0 14px 14px; background: rgba(255, 255, 255, .6); border: 2px solid rgba(255, 255, 255, .95); overflow: hidden; }
.c-liq { position: absolute; left: 0; right: 0; bottom: 0; opacity: .92; transition: height .1s linear; }
.c-flav { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; opacity: .6; }
.c-tops { position: absolute; left: 6%; right: 6%; bottom: 2px; display: flex; flex-wrap: wrap-reverse; gap: 1px; justify-content: center; align-content: flex-start; max-height: 45%; overflow: hidden; }
.c-top { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset -1px -1px 2px rgba(0,0,0,.35); }
.c-lid { position: absolute; left: -4%; right: -4%; top: -5px; height: 9px; border-radius: 6px; background: linear-gradient(var(--card), #e5d8c6); border: 1px solid #d3c5b0; z-index: 2; }
.c-straw { position: absolute; left: 56%; top: -22px; width: 7px; height: 52px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--pink2) 0 6px, #fff 6px 12px); transform: rotate(8deg); z-index: 1; }
.c-stamp { position: absolute; left: 50%; top: 36%; transform: translate(-50%, 0); z-index: 3; opacity: .95; }
.cup.sealing { animation: wob .3s ease infinite; } @keyframes wob { 50% { transform: rotate(3deg) } }

/* ===== Sảnh ===== */
.lobby { padding: 8px 10px 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#fff3e6, #ffe9d8); min-height: 100%; }
.lobby-top { display: flex; gap: 8px; align-items: center; } .lobby-top .btn { min-width: 108px; line-height: 1.1; }
.lobby-stat { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; background: var(--card2); border-radius: 18px; padding: 8px 14px; font-weight: 700; box-shadow: var(--sh-sm); font-size: 14px; }
.lcard { background: #fff9ef; border-radius: 18px; padding: 12px; box-shadow: var(--sh); border: 2px solid #f1e0c8; }
.lc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; } .lc-h h4 { color: var(--pink-d); font-size: 17px; }
.pill { background: var(--pink-soft); color: var(--pink-d); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; border: 1.5px solid #f4a8b8; } .pill.y { background: #fff1c2; color: #7a5312; border-color: #f0c455; }
.lobby-q { display: flex; gap: 6px; margin-top: 8px; min-height: 52px; align-items: center; flex-wrap: wrap; } .lq { font-size: 34px; } .lq.dim { opacity: .35; } .lobby-q em { color: var(--muted); font-weight: 700; }
.tables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
.tbl { border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; border: 2px solid transparent; background: var(--card2); box-shadow: var(--sh-sm); }
.tbl .t-ico { font-size: 34px; } .tbl small { font-size: 12px; }
.tbl.free { background: #e9f8ee; border-color: #8fd1a1; } .tbl.busy { background: #fff1c2; border-color: #f0c455; } .tbl.dirty { background: #ffe0e0; border-color: var(--red); animation: shake .8s ease infinite; }

@media (max-width: 400px) {
  .shelf-row { gap: 2px; }
  .stack { width: 36px; } .stack.big { width: 40px; } .stack .cups i { width: 28px; } .stack .cups.l i { width: 33px; }
  .disps { gap: 2px; } .disp { width: 34px; } .jar { width: 32px; height: 54px; } .jar .lab { font-size: 6.5px; }
  .sealer { width: 50px; height: 78px; } .sl-lid { left: 4px; right: 4px; }
  .cust-av { width: 66px; } .cust-av .face { font-size: 54px; }
}

/* ======================================================================
   NÂNG CẤP GIAO DIỆN QUẦY (v3.1): ly, bình trà, máy đóng nắp, khay topping
   ====================================================================== */
.shelf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px; margin-top: 4px; padding: 2px 2px 0; }
.shelf-row::after { content: ''; grid-column: 1 / -1; height: 6px; margin-top: -2px; border-radius: 3px; background: linear-gradient(#d2a874, #b88a58); box-shadow: 0 2px 3px rgba(80, 40, 10, .25); }

/* --- Chồng ly M / L: ly nhựa trong suốt xếp chồng --- */
.stacks { display: flex; gap: 8px; align-items: flex-end; }
.stack { width: 44px; padding-bottom: 2px; }
.stack.big { width: 50px; }
.cupstack { position: relative; width: 38px; height: 56px; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .95) 0 3px, rgba(190, 215, 232, .75) 3px 6px),
    linear-gradient(90deg, rgba(255,255,255,.9), rgba(200,225,240,.55) 45%, rgba(255,255,255,.85)); }
.cupstack.l { width: 46px; height: 68px; }
.cupstack .rim { position: absolute; left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(#fff, #d6e6f0); border-bottom: 1.5px solid rgba(120, 160, 190, .6); }
.stack b { font-size: 15px; color: var(--brown); line-height: 1; margin-top: 1px; text-shadow: 0 1px 0 #fff; }
.stack:active .cupstack { transform: translateY(-4px); transition: transform .1s; }

/* --- Bình trà: bình thủy tinh có nắp, vòi, giọt nhỏ --- */
.disps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; min-width: 0; justify-content: initial; }
.disp { width: auto; min-width: 0; }
.jlid { display: block; width: 62%; height: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#f4f4f4, #bfc4c8); box-shadow: 0 1px 2px rgba(0,0,0,.25); position: relative; z-index: 2; }
.jlid::before { content: ''; position: absolute; left: 38%; right: 38%; top: -4px; height: 5px; border-radius: 4px 4px 0 0; background: #9aa0a5; }
.jar { width: 100%; max-width: 46px; height: 58px; border-radius: 8px 8px 12px 12px; background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.3) 40%, rgba(255,255,255,.65)); border: 2px solid rgba(255,255,255,.95); box-shadow: 0 2px 5px rgba(80, 50, 20, .25), inset 0 0 8px rgba(255,255,255,.8); }
.jar::after { content: ''; position: absolute; left: 12%; top: 6%; width: 14%; height: 60%; border-radius: 6px; background: rgba(255,255,255,.55); pointer-events: none; z-index: 3; }
.jar .jl { height: 74%; opacity: .95; background-image: linear-gradient(180deg, rgba(255,255,255,.35), transparent 22%); }
.jar .lab { left: 3px; right: 3px; top: 38%; font-size: 7px; letter-spacing: -.1px; padding: 2px 0; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
.disp .tap { position: relative; width: 14px; height: 13px; margin-top: 1px; background: linear-gradient(90deg, #b9bec3, #7d8388 60%, #a9afb4); border-radius: 3px 3px 7px 7px; }
.disp .tap::before { content: ''; position: absolute; left: -5px; top: 1px; width: 7px; height: 4px; border-radius: 3px; background: #8d9398; }
.disp .tap .drip { position: absolute; left: 50%; bottom: -6px; width: 5px; height: 6px; margin-left: -2.5px; border-radius: 50% 50% 60% 60%; opacity: 0; }
.disp.pouring .tap .drip { animation: dripDown .35s linear infinite; }
.disp.pouring .jar .jl { animation: liqWave 1s ease-in-out infinite; }
@keyframes dripDown { 0% { opacity: 1; transform: translateY(-2px) } 100% { opacity: 0; transform: translateY(10px) } }
@keyframes liqWave { 50% { filter: brightness(1.12) } }
.disp:active:not(.locked) .jar { transform: scale(.96); }
.disp.pouring .tap { background: linear-gradient(90deg, #ffc4d3, var(--pink) 60%, #ffb3c6); box-shadow: 0 0 8px var(--pink); }

/* --- Máy đóng nắp --- */
.sealer { width: 60px; height: 88px; margin: 0; }
.sl-head { position: absolute; left: 10px; right: 10px; top: 0; height: 14px; border-radius: 7px 7px 2px 2px; background: linear-gradient(#f2b27a, #d07a3e); box-shadow: 0 2px 3px rgba(0,0,0,.25); z-index: 3; }
.sl-lid { left: 14px; right: 14px; top: 12px; height: 12px; border-radius: 3px 3px 7px 7px; background: linear-gradient(#a7acb1, #6f757a); z-index: 2; }
.sl-body { left: 0; right: 0; top: 24px; bottom: 0; padding-top: 6px; flex-direction: column; align-items: center; gap: 4px; border-radius: 10px 10px 8px 8px; background: linear-gradient(90deg, #c9ced3, #f1f3f5 35%, #a9aeb3); border: 1.5px solid #8b9095; }
.sl-led { font-size: 7.5px; height: 12px; line-height: 1.5; letter-spacing: .3px; }
.sl-knobs { display: flex; gap: 6px; } .sl-knobs i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e0583d 55%, #8f2a18); box-shadow: 0 1px 2px rgba(0,0,0,.4); } .sl-knobs i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #fff, #f3b53c 55%, #9a6a10); }
.sl-slot { left: 14px; right: 14px; bottom: 5px; height: 17px; border-radius: 3px 3px 6px 6px; background: linear-gradient(#262a2e, #4a4f54); box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.sealer.press .sl-lid, .sealer.press .sl-head { animation: lidPress .5s ease .3s; }
.sealer.press .sl-led { color: #ffb347; }

/* --- Khay topping: hộp inox có đống topping bóng --- */
.trays { gap: 5px; padding: 6px; background: linear-gradient(#c6cacf, #a9aeb4); border-radius: 12px; box-shadow: inset 0 0 8px rgba(0,0,0,.28), 0 2px 4px rgba(0,0,0,.18); }
.tray { aspect-ratio: 1 / .95; border-radius: 8px; background: linear-gradient(#f4f6f7, #d4d8db); border: 2px solid #fff; box-shadow: inset 0 -4px 6px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.2); justify-content: flex-end; padding-bottom: 2px; }
.tray .pile { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 20%; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 0; width: auto; max-height: none; overflow: hidden; border-radius: 40% 40% 6px 6px; }
.tray .pile i { width: 11px; height: 11px; margin: -1.5px; border-radius: 50%; box-shadow: inset -1.5px -2px 3px rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.25); background-image: radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 18%, rgba(255,255,255,0) 45%); }
.tray small { position: relative; z-index: 2; font-size: 7.5px; background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 4px; }
.tray:active:not(.locked) .pile i { animation: bounceTop .3s ease; }
@keyframes bounceTop { 50% { transform: translateY(-3px) } }

/* --- Ly trên thớt --- */
.cup { filter: drop-shadow(0 3px 3px rgba(0,0,0,.28)); }
.c-body { background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.3) 40%, rgba(255,255,255,.6)); }
.c-liq { background-image: linear-gradient(180deg, rgba(255,255,255,.35), transparent 18%); }
.c-liq::before { content: ''; position: absolute; left: -10%; right: -10%; top: -3px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); animation: surfaceWave 1.2s ease-in-out infinite; }
@keyframes surfaceWave { 50% { transform: translateX(4px) scaleY(1.3) } }
.c-top { background-image: radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 18%, rgba(255,255,255,0) 45%); }
.fx-ball { width: 14px; height: 14px; background-image: radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 18%, rgba(255,255,255,0) 45%); }
.fx-ripple { position: fixed; z-index: 86; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 3px solid #fff; border-radius: 50%; pointer-events: none; animation: ripple .5s ease-out forwards; }
@keyframes ripple { to { transform: scale(7, 2.2); opacity: 0; } }
.stream { width: 8px; box-shadow: 0 0 6px rgba(255,255,255,.7); }

@media (max-width: 400px) {
  .stack { width: 38px; } .stack.big { width: 44px; }
  .cupstack { width: 32px; height: 50px; } .cupstack.l { width: 40px; height: 62px; }
  .disps { gap: 2px; } .jar { height: 54px; } .jar .lab { font-size: 6px; }
  .sealer { width: 52px; height: 82px; }
}
