/* Chim bay bay: giao diện bổ sung cho ChiaNè / Trò chơi nhóm (game.css). */
.bk-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.bk-code-in { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .5em; padding-left: calc(.5em + 14px); text-transform: uppercase; }
.bk-code-tag { display: inline-block; padding: 0 .5em; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); letter-spacing: .25em; font-weight: 800; }
.bk-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bk-wait { margin: 8px 0; color: var(--ink-2); }
.bk-room .card { margin-bottom: 14px; }
.bk-msg { text-align: center; }
.bk-bigcode { font-size: clamp(2.4rem, 12vw, 3.6rem); font-weight: 800; letter-spacing: .3em; padding-left: .3em; color: var(--teal-deep); line-height: 1.15; }
.bk-guest-code { text-align: center; }
.bk-invite-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 520px) { .bk-invite-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.bk-invite-info { min-width: 0; width: 100%; }
.bk-link { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.bk-link input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: .9rem; }
.bk-qr { width: 200px; height: 200px; line-height: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.bk-qr svg { width: 100%; height: 100%; display: block; }
.bk-pcount { font-weight: 600; color: var(--ink-3); font-size: .9em; }
.bk-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bk-prow.is-off { opacity: .6; }
.bk-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.bk-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bk-pname small { color: var(--ink-3); font-weight: 500; }
.bk-badge { padding: 2px 8px; border-radius: 99px; background: var(--khaki-soft); color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.bk-badge.is-off { background: var(--mahogany-soft); color: var(--mahogany); }
.bk-x { flex: none; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent; font: inherit; font-weight: 700; color: var(--mahogany); cursor: pointer; }
.bk-x:hover, .bk-x.is-arm { background: var(--mahogany); color: #fff; border-color: var(--mahogany); }
.bk-lobby-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bk-lobby-actions .btn-primary { margin-left: auto; min-width: 190px; }
.bk-lock-ico { font-size: 1.2rem; margin-right: 4px; }
#bkLock.is-locked { border-color: var(--mahogany); background: var(--mahogany-soft); color: var(--mahogany); }
.bk-msgs { margin: 12px 0; max-height: 220px; min-height: 80px; overflow-y: auto; display: grid; gap: 6px; align-content: start; }
.bk-audio { position: absolute; width: 0; height: 0; overflow: hidden; }

.bk-home { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 420px) { .bk-home { grid-template-columns: 1fr; } }


.bk-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 14, .55); }
.bk-modal[hidden] { display: none; }
.bk-modal-box { width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; padding: 22px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lift); }
.bk-modal-box h2 { margin: 0 0 6px; }
.bk-home { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 420px) { .bk-home { grid-template-columns: 1fr; } }
.bk-hint { margin: 0 0 14px; color: var(--ink-2); font-size: .9rem; }
.bk-modal-sub { margin: 0 0 14px; color: var(--ink-2); }


/* ---- Trang chủ: Trở về -> tiêu đề -> Chơi riêng -> (tách đôi) Tạo phòng / Vào phòng ---- */
.bk-vlink { width: 5px; height: 28px; border-radius: 3px; background: #e8962a; }
.bk-vlink + a.mp-solo { margin-top: 0; }
.bk-vlink.is-pink { background: #f0558c; }
.mp-links.bk-after-solo .t { stroke: #f0558c; }
a.mp-card.mp-solo { flex-direction: row; gap: 10px; width: 156px; height: 116px; min-height: 0; padding: 0 12px; border-radius: 26px; }
a.mp-card.mp-solo .mp-ico { flex: none; width: 52px; height: 52px; font-size: 1.6rem; border-width: 3px; }
a.mp-card.mp-solo h2 { margin: 0; font-size: 1.15rem; }
@media (max-width: 480px) {
  a.mp-card.mp-solo { width: 140px; height: 96px; padding: 0 8px; }
  a.mp-card.mp-solo .mp-ico { width: 40px; height: 40px; font-size: 1.2rem; }
  a.mp-card.mp-solo h2 { font-size: 1rem; }
}
.bk-hero-img { display: inline-block; width: 64px; height: 64px; margin-right: 10px; vertical-align: middle; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); object-fit: cover; animation: bkHop 2.2s ease-in-out infinite; }
@keyframes bkHop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .bk-hero-img { animation: none; } }

/* ---- Chọn quán ---- */
.bk-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .bk-levels { grid-template-columns: 1fr; } }
.bk-lv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border: 2.5px solid #f1e3cf; border-radius: 18px; background: #fffaf2; font: inherit; color: #3b2a1a; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s, box-shadow .12s; }
.bk-lv:hover { transform: translateY(-2px); }
.bk-lv[aria-pressed="true"] { border-color: #f08c3c; background: #fff1de; box-shadow: 0 0 0 4px rgba(240,140,60,.18); }
.bk-lv-ico { font-size: 2rem; line-height: 1.1; }
.bk-durs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bk-durs.bk-bots { grid-template-columns: repeat(4, 1fr); }
.bk-dur.is-cap:not([aria-pressed="true"]) { opacity: .5; }
.bk-dur.is-cap b { text-decoration: line-through; text-decoration-thickness: 2px; }
.bk-botpick { display: flex; align-items: center; gap: 12px; margin: 4px auto 14px; max-width: 460px; }
.bk-botpick-l { font-weight: 800; color: #7c2d12; white-space: nowrap; }
.bk-botpick .bk-durs { flex: 1; gap: 6px; }
.bk-botpick .bk-dur { padding: 6px 4px; font-size: .8rem; }
.bk-botpick .bk-dur b { font-size: 1.1rem; }
@media (max-height: 460px) { .bk-botpick { margin: 0 auto 8px; } .bk-botpick .bk-dur { padding: 3px 4px; } }
.bk-dur { padding: 10px 6px; border: 2.5px solid #f1e3cf; border-radius: 14px; background: #fffaf2; font: inherit; font-size: .9rem; color: #3b2a1a; cursor: pointer; transition: transform .12s, border-color .12s; }
.bk-dur b { display: block; font-size: 1.35rem; line-height: 1.1; color: #b45309; }
.bk-dur:hover:not(:disabled) { transform: translateY(-2px); }
.bk-dur[aria-pressed="true"] { border-color: #f08c3c; background: #fff1de; box-shadow: 0 0 0 4px rgba(240,140,60,.18); }
.bk-dur:disabled { cursor: default; }
.bk-dur:disabled:not([aria-pressed="true"]) { opacity: .55; }
.bk-sub-t { margin: 14px 0 8px; font-size: 1rem; color: #3b2a1a; }
.bk-lv b { font-size: .98rem; }
.bk-lv small { color: #8a6a4a; font-size: .78rem; line-height: 1.3; }
.bk-lv em { font-style: normal; font-size: .78rem; font-weight: 800; color: #b45309; min-height: 1em; }
@media (max-width: 560px) { .bk-lv { flex-direction: row; text-align: left; gap: 10px; padding: 9px 12px; } .bk-lv b { display: block; } .bk-lv small { display: block; } .bk-lv-ico { font-size: 1.6rem; } }
.bk-lv-txt { display: flex; flex-direction: column; }

/* ======================= Màn chơi ======================= */
html.bk-full, html.bk-full body { overflow: hidden; overscroll-behavior: none; }
html.bk-full .topbar, html.bk-full .site-footer, html.bk-full footer { visibility: hidden; }   /* thanh trên cùng của trang không che phiếu gọi món khi đang nấu */
.bk-app { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 0%, #fff3df 0%, #ffd9a8 60%, #f6bd83 100%); font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: #3b2a1a; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bk-app[hidden] { display: none; }
.bk-top { flex: none; display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 4px; min-height: 0; }
.bk-tools { flex: none; display: flex; flex-direction: column; gap: 6px; }
.bk-exit, .bk-tool { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; padding: 0 12px; border: 2px solid #fff; border-radius: 99px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.bk-exit { background: #b42318; color: #fff; }
.bk-tool { background: #fff; color: #3b2a1a; width: 34px; padding: 0; }
.bk-tool span { display: none; }
.bk-orders { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 8px 6px; scrollbar-width: none; align-items: flex-start; }
.bk-orders::-webkit-scrollbar { display: none; }
.bk-ord { flex: none; width: 158px; padding: 6px 7px 7px; border-radius: 14px; background: linear-gradient(#fffdf8, #fff4e0); border: 3px solid #4ade80; box-shadow: 0 4px 0 rgba(120,70,20,.2), 0 8px 16px rgba(120,70,20,.18); text-align: center; animation: bkOrdIn .35s cubic-bezier(.3,1.6,.5,1); position: relative; transition: border-color .3s; }
.bk-ord.is-warn { border-color: #f59e0b; }
.bk-ord.is-late { border-color: #ef4444; animation: bkShake .4s infinite; box-shadow: 0 4px 0 rgba(150,20,20,.25), 0 0 0 4px rgba(239,68,68,.25); }
.bk-ord-no { position: absolute; left: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: #1e3a8a; color: #fff; font-size: .78rem; line-height: 22px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
@keyframes bkOrdIn { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bkShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.bk-ord-bar { position: relative; height: 13px; margin-top: 7px; border-radius: 7px; background: #e5e7eb; overflow: hidden; }
.bk-ord-bar span { position: absolute; inset: 0; font-size: .64rem; font-weight: 900; line-height: 13px; color: #1f2937; text-shadow: 0 0 3px #fff; }
.bk-ord-bar i { display: block; height: 100%; width: 100%; background: #22c55e; border-radius: 3px; transition: width .25s linear, background .3s; }
.bk-ord-dish { display: block; width: 58px; height: 58px; margin: -6px auto -6px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.bk-ord-nm { font-size: .9rem; font-weight: 900; line-height: 1.1; color: #7c2d12; min-height: 1.3em; display: flex; align-items: center; justify-content: center; }
.bk-ord-ing { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.bk-step { display: flex; align-items: center; gap: 5px; padding: 2px 5px 2px 2px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px #f3dfc3; text-align: left; }
.bk-step img { flex: none; width: 30px; height: 30px; }
.bk-step span { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.bk-step b { font-size: .74rem; font-weight: 900; color: #3b2a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-step small { align-self: flex-start; margin-top: 1px; padding: 0 5px; border-radius: 6px; font-size: .62rem; font-weight: 800; color: #fff; white-space: nowrap; }
.bk-step .s-chop { background: #2f80ed; }
.bk-step .s-pot { background: #e8590c; }
.bk-step .s-pan { background: #c92a2a; }
.bk-step .s-take { background: #868e96; }
.bk-step em { flex: none; margin-left: -4px; font-style: normal; font-size: .74rem; font-weight: 900; color: #c2410c; }
.bk-stats { flex: none; display: flex; align-items: center; gap: 8px; }
.bk-coin { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px 0 8px; border: 3px solid #fff; border-radius: 99px; background: linear-gradient(#ffd54f, #f5a623); color: #5b3200; font-size: 1.15rem; box-shadow: 0 3px 0 #c27a12; }
.bk-coin span { font-size: 1.2rem; }
.bk-coin b { min-width: 2ch; font-variant-numeric: tabular-nums; }
.bk-coin.is-pop { animation: bkPop .35s ease-out; }
@keyframes bkPop { 40% { transform: scale(1.25); } }
.bk-clock { --p: 1; position: relative; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(#2bb5a6 calc(var(--p) * 360deg), #ffe1c2 0); box-shadow: 0 3px 0 rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.bk-clock::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.bk-clock b { position: relative; font-size: 1.05rem; font-weight: 900; color: #1e293b; font-variant-numeric: tabular-nums; }
.bk-clock.is-low { background: conic-gradient(#ef4444 calc(var(--p) * 360deg), #ffe1c2 0); animation: bkPop 1s infinite; }
.bk-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bk-stage canvas { display: block; border-radius: 14px; box-shadow: 0 10px 30px rgba(120,60,10,.3); }
.bk-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(3rem, 14vw, 7rem); font-weight: 900; color: #fff; text-shadow: 0 5px 0 #e8590c, 0 0 24px rgba(0,0,0,.25); pointer-events: none; z-index: 3; }
.bk-count[hidden] { display: none; }
.bk-count.is-pop { animation: bkCount .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes bkCount { from { transform: scale(2.2); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-keys { flex: none; margin: 4px 0 8px; text-align: center; font-size: .78rem; color: #8a5a2b; font-weight: 700; }
.bk-pad { display: none; }

/* ---- Điện thoại / máy tính bảng: cần điều khiển + nút ---- */
@media (pointer: coarse) {
  .bk-keys { display: none; }
  .bk-pad { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 6px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .bk-joy { position: relative; width: 150px; height: 150px; flex: none; touch-action: none; }
  .bk-joy-base { position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.25)); border: 3px solid rgba(255,255,255,.85); box-shadow: inset 0 3px 10px rgba(120,60,10,.25); }
  .bk-joy-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffd29a 60%, #f08c3c); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(120,60,10,.35); }
  .bk-joy.is-on .bk-joy-base { background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,255,255,.35)); }
  .bk-joy { opacity: .85; }       /* cần điều khiển cố định ở góc trái; chạm chỗ khác trên bếp = bấm để đi tới (tap.js) */
  .bk-joy.is-on { opacity: 1; }
  .bk-btns { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-left: auto; }   /* 2 nút xếp dọc sát mép phải: Thái/Rửa trên, Lấy/Đặt dưới */
  .bk-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 3px solid #fff; border-radius: 50%; font: inherit; font-weight: 800; color: #fff; touch-action: none; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
  .bk-b i { font-style: normal; font-size: 1.5rem; line-height: 1; }
  .bk-b span { font-size: .6rem; line-height: 1.1; white-space: nowrap; }
  .bk-b.is-down { transform: translateY(3px) scale(.95); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
  .bk-b-grab { order: 2; width: 84px; height: 84px; background: linear-gradient(#4ade80, #16a34a); }
  .bk-b-grab i { font-size: 2rem; }
  .bk-b-use { order: 1; width: 70px; height: 70px; background: linear-gradient(#60a5fa, #2563eb); }
  .bk-b-swap { order: 0; width: 58px; height: 58px; background: linear-gradient(#c084fc, #9333ea); }
  .bk-b[hidden] { display: none; }
}
/* cầm ngang: cần điều khiển và nút nổi hai bên trên bàn bếp */
@media (pointer: coarse) and (orientation: landscape) {
  .bk-pad { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 8px; pointer-events: none; z-index: 5; }
  .bk-pad > * { pointer-events: auto; }
  .bk-joy { width: 128px; height: 128px; }
  .bk-b-grab { width: 72px; height: 72px; }
  .bk-b-use { width: 60px; height: 60px; }
  .bk-b-swap { width: 50px; height: 50px; }
  .bk-top { padding-top: 4px; }
  .bk-ord { width: 132px; padding: 4px 5px 5px; }
  .bk-ord-dish { width: 36px; height: 36px; margin: -4px auto -4px; }
  .bk-ord-nm { font-size: .72rem; min-height: 0; }
  .bk-ord-ing { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .bk-step { padding: 1px 3px 1px 1px; }
  .bk-step img { width: 20px; height: 20px; }
  .bk-step b { display: none; }
  .bk-step small { font-size: .55rem; padding: 0 3px; }
  .bk-ord-bar { height: 11px; margin-top: 5px; }
  .bk-ord-bar span { line-height: 11px; font-size: .58rem; }
  .bk-clock { width: 52px; height: 52px; }
  .bk-coin { height: 34px; font-size: 1rem; }
}
@media (pointer: coarse) and (orientation: portrait) {
  .bk-ord { width: 128px; padding: 4px 5px 5px; }
  .bk-ord-dish { width: 42px; height: 42px; margin: -4px auto -4px; }
  .bk-ord-nm { font-size: .74rem; min-height: 0; }
  .bk-step img { width: 24px; height: 24px; }
  .bk-step b { font-size: .66rem; }
  .bk-step small { font-size: .56rem; padding: 0 4px; }
  .bk-ord-bar { height: 11px; margin-top: 5px; }
  .bk-ord-bar span { line-height: 11px; font-size: .58rem; }
  .bk-clock { width: 52px; height: 52px; }
  .bk-clock b { font-size: .9rem; }
  .bk-coin { height: 34px; font-size: 1rem; padding: 0 10px 0 6px; }
  .bk-exit span { display: none; }
  .bk-exit { width: 34px; padding: 0; }
  .bk-stats { flex-direction: column-reverse; gap: 4px; }
}

/* ---- Bảng nổi (chọn quán, cách chơi, kết quả) ---- */
.bk-over { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(60, 30, 10, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bk-over[hidden] { display: none; }
.bk-over-box { width: 100%; max-width: 640px; max-height: calc(100dvh - 28px); overflow: auto; padding: 20px 20px 18px; border: 4px solid #fff; border-radius: 26px; background: #fffaf2; box-shadow: 0 20px 50px rgba(80,40,10,.35); text-align: center; font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: #3b2a1a; animation: bkOrdIn .35s cubic-bezier(.3,1.5,.5,1); }
.bk-title { margin: 0; font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 900; color: #e8590c; text-shadow: 0 3px 0 #ffd43b; }
.bk-sub { margin: 6px 0 14px; color: #6b4b2b; font-size: .92rem; line-height: 1.5; }
.bk-over-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.bk-go { min-width: 170px; font-size: 1.05rem; }
.bk-help { text-align: left; }
.bk-help h2 { text-align: center; margin: 0 0 8px; }
.bk-help ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .92rem; line-height: 1.45; }
.bk-keys-help { margin: 10px 0 0; font-size: .82rem; color: #8a6a4a; }
@media (pointer: coarse) { .bk-keys-help { display: none; } }
.bk-res-stars { display: flex; justify-content: center; gap: 6px; font-size: 3.2rem; line-height: 1; }
.bk-star { color: #e5d5bf; animation: bkStar .5s cubic-bezier(.3,1.8,.5,1) both; }
.bk-star.is-on { color: #fbbf24; text-shadow: 0 3px 0 #d97706; }
@keyframes bkStar { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.bk-res-t { margin: 6px 0 4px; font-size: 1.4rem; font-weight: 900; color: #e8590c; }
.bk-res-score { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 4px 16px; border-radius: 99px; background: linear-gradient(#ffd54f, #f5a623); color: #5b3200; font-size: 1.2rem; font-weight: 800; }
.bk-res-score b { font-size: 1.6rem; }
.bk-res-list { list-style: none; margin: 0 auto; padding: 0; max-width: 300px; display: grid; gap: 4px; text-align: left; }
.bk-res-list li { display: flex; justify-content: space-between; padding: 5px 12px; border-radius: 10px; background: #fff1de; font-weight: 700; font-size: .92rem; }
.bk-res-goal { margin: 8px 0 0; color: #8a6a4a; font-size: .82rem; font-weight: 700; }
.bk-res-new { margin: 8px 0 0; color: #16a34a; font-weight: 900; }
.bk-res-rank { list-style: none; margin: 8px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bk-res-rank li { padding: 4px 10px; border-radius: 99px; color: #fff; font-weight: 800; font-size: .82rem; }
.bk-alone { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 99; padding: 8px 14px; border-radius: 12px; background: #fff4c7; border: 1px solid #e6c84a; font-weight: 700; font-size: .85rem; }
.bk-alone[hidden] { display: none; }
.bk-room .bk-levels .bk-lv[disabled] { cursor: default; opacity: .75; }
.bk-room .bk-levels .bk-lv[disabled][aria-pressed="true"] { opacity: 1; }

/* ---- Máy tính bảng (màn cảm ứng lớn): nút hành động to hơn cho dễ bấm ---- */
@media (pointer: coarse) and (min-width: 700px) and (min-height: 560px) {
  /* cần điều khiển giữ cỡ như điện thoại */
  .bk-btns { gap: 14px; }
  .bk-b i { font-size: 2.2rem; }
  .bk-b span { font-size: .85rem; }
  .bk-b-grab { width: 128px; height: 128px; }
  .bk-b-grab i { font-size: 3rem; }
  .bk-b-use { width: 108px; height: 108px; }
  .bk-b-swap { width: 86px; height: 86px; }
}

/* ---- Màn rộng (máy tính bảng, máy tính): mỗi yêu cầu của phiếu nằm trên MỘT dòng (ảnh, tên, bước cần làm), không xuống dòng ---- */
@media (min-width: 700px) and (min-height: 560px) {
  .bk-ord { width: auto; min-width: 150px; max-width: 300px; padding: 6px 8px 7px; }
  .bk-ord-nm { white-space: nowrap; font-size: .9rem; }
  .bk-ord-dish { width: 52px; height: 52px; }
  .bk-ord-ing { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .bk-step { white-space: nowrap; padding: 2px 8px 2px 2px; }
  .bk-step img { width: 28px; height: 28px; }
  .bk-step span { flex-direction: row; align-items: center; gap: 6px; }
  .bk-step b { display: inline; font-size: .78rem; overflow: visible; }
  .bk-step small { margin-top: 0; font-size: .66rem; padding: 1px 6px; }
}


/* ---- Bấm vào ô: 2 nút tròn hiện ngay trên quầy khi có 2 việc làm được ---- */
.bk-ring { position: absolute; z-index: 6; display: flex; gap: 10px; transform: translate(-50%, -100%); padding-bottom: 6px; pointer-events: none; animation: bkRingIn .16s ease-out; }
.bk-ring[hidden] { display: none; }
.bk-rb { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; font-weight: 800; font-size: .72rem; line-height: 1.05; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.22), 0 6px 14px rgba(0,0,0,.25); touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.bk-rb i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.bk-rb-grab { background: linear-gradient(#4ade80, #16a34a); }
.bk-rb-use { background: linear-gradient(#60a5fa, #2563eb); }
.bk-rb.is-down, .bk-rb:active { transform: translateY(2px) scale(.96); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
@media (max-height: 460px) { .bk-rb { width: 54px; height: 54px; font-size: .66rem; } .bk-rb i { font-size: 1.25rem; } }
@media (pointer: coarse) and (min-width: 700px) and (min-height: 560px) { .bk-rb { width: 80px; height: 80px; font-size: .85rem; } .bk-rb i { font-size: 1.9rem; } }
@keyframes bkRingIn { from { opacity: 0; transform: translate(-50%, -80%) scale(.8); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
