/* LifeQuest English — giao diện chính (mobile-first) */
:root {
  color-scheme: light;   /* trình duyệt / khung xem ở chế độ tối không đổi chữ ô nhập sang màu trắng */
  --bg: #f6f3ec;
  --card: #ffffff;
  --ink: #1d2a2f;
  --muted: #6b7a80;
  --line: #e4ded2;
  --brand: #1f6f5c;
  --brand-2: #2b8a72;
  --brand-soft: #e3f1ec;
  --gold: #e0a526;
  --gold-soft: #fbf1d6;
  --good: #2e8b57;
  --good-soft: #e3f4ea;
  --bad: #c2453b;
  --bad-soft: #fbe7e5;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(29, 42, 47, .08);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; font-size: inherit; color: inherit; }
.hidden { display: none !important; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#screen { flex: 1; padding: 12px 14px 150px; }

/* ---------- Thanh trên ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.tb-avatar { font-size: 30px; line-height: 1; }
.tb-name { font-weight: 800; font-size: 15px; }
.tb-sub { font-size: 12px; opacity: .85; }
.tb-right { text-align: right; font-size: 13px; font-weight: 700; }
.tb-right div { white-space: nowrap; }
.bar { height: 6px; background: rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 6px; transition: width .3s; }
.bar.energy > i { background: #7fd8a8; }
.bar.light { background: var(--line); }
.bar.light > i { background: var(--brand-2); }

/* ---------- Thanh dưới ---------- */
#nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 20;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
#nav button {
  background: none; border: 0; padding: 6px 2px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); font-weight: 700; cursor: pointer;
  position: relative;
}
#nav button .ic { font-size: 22px; line-height: 1; }
#nav button.on { color: var(--brand); background: var(--brand-soft); }
.dot {
  position: absolute; top: 2px; right: 18%;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ---------- Khối chung ---------- */
h1 { font-size: 24px; margin: 6px 0 4px; }
h2 { font-size: 19px; margin: 14px 0 8px; }
h3 { font-size: 16px; margin: 10px 0 6px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 10px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin: 10px 0;
}
.card.soft { background: var(--brand-soft); box-shadow: none; }
.card.gold { background: var(--gold-soft); box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 0;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 16px; cursor: pointer;
  transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.gold { background: var(--gold); color: #2a2208; }
.btn.light { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  border: 0; background: var(--brand-soft); color: var(--brand);
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: none;
}

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800;
}
.tag.gold { background: var(--gold-soft); color: #8a6200; }
.tag.gray { background: #eee; color: var(--muted); }

input[type=text] {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px;
  font-size: 17px; font-family: inherit; background: #fff; color: var(--ink);
}
input[type=text]::placeholder { color: #9aa6ab; opacity: 1; }
input[type=text]:focus { outline: none; border-color: var(--brand-2); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.choice {
  border: 2px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 8px; cursor: pointer; text-align: center; font-weight: 700;
}
.choice .big { font-size: 30px; display: block; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Mở đầu ---------- */
.hero { text-align: center; padding: 30px 6px 10px; }
.hero .logo { width: 112px; height: 112px; display: block; margin: 0 auto; border-radius: 26px; box-shadow: 0 4px 14px rgba(15,118,110,.18); }
.hero h1 { font-size: 30px; color: var(--brand); margin: 6px 0 0; }
.hero .slogan { font-size: 18px; font-weight: 800; color: var(--gold); margin: 2px 0 14px; font-style: italic; }

/* ---------- Bản đồ ---------- */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 10px; text-align: center; cursor: pointer; border: 0; position: relative;
}
.region .big { font-size: 40px; display: block; }
.region b { display: block; margin-top: 4px; }
.region .small { display: block; }
.region.locked { opacity: .55; cursor: default; }
.region.locked::after {
  content: "🔒"; position: absolute; top: 8px; right: 10px; font-size: 16px;
}

/* ---------- Đồng vàng (vẽ bằng CSS, luôn màu vàng trên mọi điện thoại) ---------- */
.coin {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.15em;
  background: radial-gradient(circle at 35% 30%, #fff6c2 0 12%, #ffd84d 30%, #e6a400 70%, #b77900 100%);
  box-shadow: inset 0 0 0 .08em #c98a00, 0 1px 1px rgba(0,0,0,.25);
}
.coin.big { width: 1.1em; height: 1.1em; }

/* ---------- Hầm mỏ ---------- */
.mine {
  position: relative; border-radius: var(--radius); padding: 10px 12px 26px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 196, 92, .35), transparent 60%),
    radial-gradient(circle at 15% 70%, rgba(0,0,0,.25) 0 8%, transparent 9%),
    radial-gradient(circle at 85% 40%, rgba(0,0,0,.2) 0 6%, transparent 7%),
    linear-gradient(#4a3424, #2b1d13 70%, #1f150e);
  box-shadow: inset 0 0 0 4px #5c4330, inset 0 0 30px rgba(0,0,0,.6);
}
.mine-top { display: flex; justify-content: space-between; align-items: center; color: #f3c977; font-weight: 900; letter-spacing: 2px; margin-bottom: 6px; }
.mine-top span:first-child, .mine-top span:last-child { font-size: 22px; filter: drop-shadow(0 0 6px #ffb84d); }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.mine-rail { position: absolute; left: 0; right: 0; bottom: 8px; height: 8px;
  background: repeating-linear-gradient(90deg, #7a5a3c 0 6px, transparent 6px 22px), linear-gradient(#8f8f8f, #5d5d5d);
  background-size: auto, 100% 3px; background-repeat: repeat, no-repeat; background-position: 0 0, 0 2px; opacity: .8; }
.rock {
  aspect-ratio: 1; border: 0; border-radius: 40% 46% 38% 44%;
  background: radial-gradient(circle at 35% 30%, #a99f94, #6d655c 65%, #4b453f);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.25), 0 4px 0 rgba(0,0,0,.35);
  font-size: 34px; cursor: pointer; position: relative; transition: transform .1s;
}
.rock::before { content: ""; position: absolute; left: 22%; top: 30%; width: 22%; height: 8%; border-radius: 4px; background: rgba(255, 215, 90, .55); transform: rotate(-20deg); }
.rock.sel { outline: 3px solid #ffd84d; outline-offset: 3px; }
.rock .hp { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 11px; color: #ffe9a8; font-weight: 800; }
.rock.shake { animation: shake .25s; }
.rock.gone { background: transparent; box-shadow: none; cursor: default; font-size: 30px; }
.rock.gone::before { display: none; }
.rock .found { display: inline-block; animation: pop .5s; }
@keyframes shake { 25% { transform: translateX(-4px) rotate(-3deg);} 75% { transform: translateX(4px) rotate(3deg);} }

.miner {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  font-size: 40px; line-height: 1; transition: transform .35s ease-in-out;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.5));
}
.miner.no-anim { transition: none; }
.miner .pick { display: inline-block; font-size: 26px; margin-left: -10px; transform-origin: 20% 80%; }
.miner.swing .pick { animation: swing .25s; }
.miner.walk .who { animation: bob .35s; display: inline-block; }
@keyframes swing { 0% { transform: rotate(-60deg); } 60% { transform: rotate(25deg); } 100% { transform: rotate(0); } }
@keyframes bob { 25%, 75% { transform: translateY(-5px); } 50% { transform: translateY(0); } }
.mine-pop {
  position: absolute; z-index: 4; transform: translate(-50%, 0); pointer-events: none;
  color: #fff; font-weight: 900; font-size: 16px; white-space: nowrap; text-shadow: 0 2px 3px #000;
  animation: rise 1.1s forwards;
}
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.dig-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: center; margin: 10px 0 4px; }
.dig-btn { min-height: 60px; font-size: 20px; letter-spacing: 1px; box-shadow: 0 4px 0 #b07c10; }
.dig-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b07c10; }
.streak { color: #c45a00; }

/* ---------- Ca làm nhập vai: khung cảnh ---------- */
.scene {
  position: relative; border-radius: var(--radius); margin: 8px 0; padding: 8px 12px 10px; min-height: 140px; overflow: hidden;
  background: linear-gradient(#f6e6c8, #e6c99a); box-shadow: inset 0 -26px 0 rgba(120, 80, 40, .18);
}
.scene.place-door { background: linear-gradient(#cfe8f5 0 55%, #b48a5a 55%); }
.scene.place-dining, .scene.place-table { background: linear-gradient(#f7e3c3 0 58%, #9c6b3f 58%); }
.scene.place-kitchen { background: linear-gradient(#e9eef0 0 58%, #a7b3b8 58%); }
.scene.place-sink { background: linear-gradient(#dff1f7 0 58%, #8fb3bf 58%); }
.scene.place-counter { background: linear-gradient(#f3ead8 0 58%, #7d5a3c 58%); }
.scene.place-shop { background: linear-gradient(#fde2c2 0 58%, #c08457 58%); }
.scene.place-street { background: linear-gradient(#bfe0f2 0 50%, #6f7477 50% 80%, #5c6366 80%); }
.scene.place-gate { background: linear-gradient(#c9e7f5 0 55%, #7fb069 55%); }
.scene.place-building { background: linear-gradient(#e7e3f0 0 58%, #9a93ad 58%); }
.scene.place-phone { background: linear-gradient(#2b3a42, #1d272c); color: #fff; }
.scene-label { font-weight: 900; font-size: 14px; background: rgba(255,255,255,.75); color: var(--ink); display: inline-block; padding: 2px 10px; border-radius: 999px; }
.scene-label span { font-weight: 600; color: var(--muted); }
.scene-props { font-size: 20px; letter-spacing: 3px; opacity: .9; margin-top: 6px; text-align: right; }
.scene-cast { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.actor { text-align: center; transition: transform .2s; }
.actor .face { font-size: 42px; display: block; line-height: 1; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.actor small { display: inline-block; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.85); color: var(--ink); padding: 1px 7px; border-radius: 999px; margin-top: 2px; }
.actor.you small { background: var(--brand); color: #fff; }
.actor.talk { transform: translateY(-6px) scale(1.08); }
.actor.talk .face { animation: talk .6s ease-in-out 2; }
.actor.enter { animation: walkin .7s ease-out; }
@keyframes walkin { from { transform: translateX(160px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes talk { 50% { transform: rotate(-6deg); } }
.say-box { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); margin: 8px 0 12px; position: relative; }
.say-box::before { content: ""; position: absolute; top: -8px; left: 40px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.say-box .who { font-size: 12px; font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.say-box b { font-size: 18px; }
.say-box .vi { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.say-box.narr { background: #fffbe9; }
.say-box.small-ctx { opacity: .85; padding: 8px 12px; }
.say-box.small-ctx b { font-size: 15px; }
.spk { font-size: 14px; }
.spk-btn { flex: none; border: 0; background: var(--brand-soft); color: var(--brand); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.say-box.asking { border: 2px solid var(--brand-2); }
.say-box.asking b { font-size: 19px; }
.opt-row { display: flex; gap: 6px; align-items: center; }
.opt-row .opt { flex: 1; }
.role-card .obj { align-items: center; }
.card.ask .q-prompt { font-size: 19px; margin: 4px 0; }
.opt.role { display: flex; gap: 10px; align-items: center; }
.opt.role .oe { font-size: 26px; flex: none; min-width: 30px; text-align: center; }
.opt.role .vi { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- Thao tác tay trong ca làm (js/screens/actions.js) ---------- */
.scene.compact { min-height: 0; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.scene.compact .scene-props { display: none; }
.scene.compact .scene-cast { margin: 0 0 0 auto; gap: 8px; }
.scene.compact .actor .face { font-size: 28px; }
.scene.compact .actor small { display: none; }
.scene.compact + .say-box { margin-top: 4px; }
.stage { background: #eef4f6; border-radius: var(--radius); padding: 12px; margin: 6px 0 4px; user-select: none; -webkit-user-select: none; }
.stage .hint { margin-top: 8px; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.zone {
  min-height: 92px; border-radius: 14px; padding: 8px 6px; text-align: center; cursor: pointer;
  background: linear-gradient(#cfe9f5, #8fc6de); border: 3px solid #6aa9c4; box-shadow: inset 0 6px 10px rgba(0,0,0,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; transition: transform .12s;
}
.zone .ze { font-size: 26px; line-height: 1.1; }
.zone b { font-size: 13px; }
.zone small { font-size: 11px; color: #355; }
.zone.z-soap { background: linear-gradient(#f3fbff, #bfe3f2); }
.zone.z-soap::after { content: "🫧🫧"; font-size: 14px; }
.zone.z-rinse { background: linear-gradient(#dff4ff, #9ad3ee); }
.zone.z-sanitize { background: linear-gradient(#e2f7ea, #93d4ad); border-color: #58a979; }
.zone.z-rack { background: repeating-linear-gradient(90deg, #d9d9d9 0 6px, #b8b8b8 6px 9px); border-color: #999; box-shadow: none; }
.zone.z-towel { background: #f6e7d4; border-color: #d4b28c; box-shadow: none; }
.zone.z-shelf { background: #ead9c2; border-color: #b9956b; box-shadow: none; }
.zone.z-big { min-height: 110px; }
.zone.over { transform: scale(1.05); border-color: var(--gold); }
.zone.ok { border-color: var(--good); }
.zone.no { animation: shake .3s; border-color: var(--bad); }
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; min-height: 70px; }
.token {
  width: 74px; padding: 6px 4px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-align: center;
  touch-action: none; cursor: grab; border: 2px solid transparent;
}
.token .te { font-size: 32px; display: block; line-height: 1.1; }
.token small { font-size: 11px; font-weight: 700; }
.token.sel { border-color: var(--gold); }
.token.lifted { opacity: .35; }
.token.placed { box-shadow: none; background: rgba(255,255,255,.7); width: 60px; margin-top: 4px; }
.token.placed .te { font-size: 24px; }
.token.ghost { position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -60%) scale(1.1); opacity: .95; }

.scrub-obj {
  position: relative; width: min(240px, 70vw); aspect-ratio: 1; margin: 4px auto; border-radius: 50%; touch-action: none; cursor: pointer;
  background: radial-gradient(circle, #ffffff 0 52%, #f1f1f1 53% 70%, #e2e2e2 71% 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.18), inset 0 0 0 3px #d6d6d6; overflow: hidden;
}
.scrub-obj.obj-pan { background: radial-gradient(circle, #4a4a4a 0 62%, #333 63% 100%); }
.scrub-obj.shiny { box-shadow: 0 0 0 4px var(--good), 0 0 24px rgba(46,139,87,.5); }
.dirt {
  position: absolute; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 46% 54% 50% 50%;
  background: radial-gradient(circle, rgba(168,112,40,.85), rgba(190,140,60,.55) 60%, transparent 72%); pointer-events: none;
}
.dirt.edge { width: 18%; background: radial-gradient(circle, rgba(140,90,30,.9), rgba(170,120,50,.5) 60%, transparent 72%); }
.bubble-fx { position: absolute; transform: translate(-50%, -50%); font-size: 18px; pointer-events: none; animation: rise .7s forwards; }
.scrub-meter { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.scrub-meter .bar { flex: 1; }

.hold-btn {
  display: block; width: 100%; margin-top: 12px; min-height: 64px; border: 0; border-radius: 16px; font-size: 18px; font-weight: 800;
  background: var(--brand); color: #fff; touch-action: none; box-shadow: 0 5px 0 #154d40; cursor: pointer;
}
.hold-btn.holding { transform: translateY(4px); box-shadow: 0 1px 0 #154d40; background: var(--brand-2); }
.hold-btn span { font-size: 15px; }

.order-done { display: grid; gap: 6px; margin-bottom: 10px; }
.slot { min-height: 38px; border: 2px dashed #b9c6cb; border-radius: 10px; padding: 6px 10px; font-weight: 800; color: var(--muted); }
.slot.filled { border-style: solid; border-color: var(--good); color: var(--ink); background: var(--good-soft); }
.order-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ocard { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; text-align: left; cursor: pointer; }
.ocard span { font-size: 22px; }
.ocard b { display: block; font-size: 14px; }
.ocard small { color: var(--muted); font-size: 12px; }
.ocard.good { opacity: .35; }
.ocard.bad { animation: shake .3s; border-color: var(--bad); }

.spot-count { text-align: center; font-weight: 800; margin-bottom: 8px; }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spot-obj { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; cursor: pointer; }
.spot-obj span { font-size: 30px; display: block; }
.spot-obj small { font-size: 11px; font-weight: 700; display: block; line-height: 1.2; }
.spot-obj.found { border-color: var(--bad); background: var(--bad-soft); }
.spot-obj.found::after { content: "⚠️ Found"; display: block; font-size: 11px; font-weight: 800; color: var(--bad); }
.spot-obj.fine { opacity: .5; }
.feedback.hint { background: var(--gold-soft); }

/* ---------- Ca phục vụ thật (js/screens/floor.js) ---------- */
.floor-card { border: 2px solid var(--gold); }
.fl-hud { display: flex; justify-content: space-between; font-weight: 800; margin: 4px 2px 6px; }
.floor {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(0deg, #d9b98d 0 22px, #d2b083 22px 44px);
  box-shadow: inset 0 0 0 4px #9c7346;
}
.floor > * { position: absolute; transform: translate(-50%, -50%); }
.fl-kitchen {
  left: 0; top: 0; transform: none; width: 100%; height: 22%; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: linear-gradient(#eef2f3, #cfd8dc); border-bottom: 6px solid #8d9ba1; color: #4a5a61; font-weight: 900; letter-spacing: 2px;
}
.fl-chef { font-size: 34px; }
.fl-stove { margin-left: auto; font-size: 22px; }
.fl-pass {
  min-width: 120px; padding: 4px 8px; background: #fff; border: 3px solid #8d9ba1; border-radius: 10px; text-align: center; cursor: pointer; z-index: 2;
}
.fl-pass b { font-size: 12px; }
.fl-pass-items { display: flex; gap: 4px; justify-content: center; min-height: 34px; flex-wrap: wrap; }
.fl-dish { font-size: 24px; position: relative; cursor: pointer; animation: pop .4s; }
.fl-dish small { position: absolute; right: -4px; bottom: -2px; font-size: 10px; background: var(--brand); color: #fff; border-radius: 6px; padding: 0 3px; font-weight: 800; }
.fl-door { transform: translate(0, -50%); font-size: 36px; }
.fl-station { text-align: center; font-size: 30px; background: rgba(255,255,255,.85); border-radius: 12px; padding: 2px 8px; cursor: pointer; box-shadow: var(--shadow); }
.fl-station small { display: block; font-size: 10px; font-weight: 800; }
.fl-table {
  width: 23%; aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #b07b4a, #8a5a30 70%); box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 0 0 7px rgba(255,255,255,.18);
}
.fl-table::before, .fl-table::after { content: "🪑"; position: absolute; font-size: 20px; top: 50%; transform: translateY(-50%); }
.fl-table::before { left: -26px; }
.fl-table::after { right: -26px; transform: translateY(-50%) scaleX(-1); }
.fl-table.seats-4 { width: 30%; }
.fl-tnum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff6e5; font-weight: 900; font-size: 18px; opacity: .8; }
.fl-dirt { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); font-size: 18px; }
.fl-group { transition: left .8s ease-in-out, top .8s ease-in-out; text-align: center; cursor: pointer; z-index: 3; }
.fl-faces { font-size: 26px; line-height: 1; white-space: nowrap; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.fl-bubble {
  display: inline-block; min-width: 30px; padding: 1px 6px; margin-bottom: 2px; border-radius: 12px; background: #fff; font-size: 15px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.fl-bubble.need { border: 2px solid var(--gold); animation: nudge 1.2s infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.fl-pat { width: 44px; height: 5px; margin: 2px auto 0; background: rgba(0,0,0,.2); border-radius: 3px; overflow: hidden; }
.fl-pat i { display: block; height: 100%; width: 100%; background: #3cb371; transition: width .25s; }
.fl-pat i.mid { background: var(--gold); }
.fl-pat i.low { background: var(--bad); }
.fl-group.angry .fl-faces { filter: drop-shadow(0 0 6px red); }
.fl-me { z-index: 4; transition: left .38s ease-in-out, top .38s ease-in-out; font-size: 34px; pointer-events: none; }
.fl-me.walk span { display: inline-block; animation: bob .38s; }
.fl-me i { position: absolute; right: -14px; top: -8px; font-style: normal; font-size: 20px; }
.fl-say { background: #fff; border-radius: 14px; padding: 8px 12px; margin-top: 8px; box-shadow: var(--shadow); min-height: 64px; }
.fl-say .who { color: var(--brand); font-weight: 800; }
.fl-say .vi { color: var(--muted); }
.fl-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 10px; }
.fl-mitem { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.fl-mitem span { font-size: 28px; }
.fl-mitem b { font-size: 13px; }
.fl-mitem small { font-size: 11px; color: var(--muted); }
.fl-mitem.on { border-color: var(--brand); background: var(--brand-soft); }
.fl-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.fl-note { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.fl-note small { color: var(--muted); font-weight: 400; }
.fl-note.on { border-color: var(--gold); background: var(--gold-soft); }
.fl-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl-mode { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fl-mode .big { font-size: 26px; }
.fl-mode small { font-size: 11px; color: var(--muted); }
.fl-mode[disabled] { opacity: .45; }
.fl-report .obj { align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.fl-report .obj small { color: var(--muted); }

/* ---------- Thuyết minh (phụ đề tiếng Anh + Việt) ---------- */
#narrator {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 45;
  bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 460px;
  display: flex; gap: 10px; align-items: center; cursor: pointer;
  background: rgba(20, 30, 34, .92); color: #fff; border-radius: 14px; padding: 9px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .4s, transform .4s;
}
#narrator.out { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
#narrator .n-ic { font-size: 20px; }
#narrator b { display: block; font-size: 15px; }
#narrator .vi { display: block; font-size: 12px; opacity: .8; }

/* ---------- Hướng dẫn ---------- */
.icon-btn.help { width: 36px; height: 36px; font-size: 16px; }
.guide-step { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.guide-step:last-child { border-bottom: 0; }
.guide-step .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.guide-step b { display: block; }
.guide-step .vi { display: block; color: var(--muted); font-size: 13px; }
.guide { margin: 8px 0 14px; }

/* ---------- Túi đồ / chợ ---------- */
.bag { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.item {
  aspect-ratio: 1; border: 2px solid var(--line); background: #fff; border-radius: 12px;
  font-size: 28px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px;
}
.item small { font-size: 10px; font-weight: 700; color: var(--muted); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.empty { border-style: dashed; cursor: default; opacity: .5; }
.item.good { border-color: var(--good); background: var(--good-soft); }
.item.bad { border-color: var(--bad); background: var(--bad-soft); }

.npc { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.npc .face { font-size: 42px; line-height: 1; flex: none; }
.bubble {
  background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow);
  position: relative; flex: 1; font-weight: 700;
}
.bubble .vi { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

.shop-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-item:last-child { border-bottom: 0; }
.shop-item .big { font-size: 32px; }

/* ---------- Câu hỏi ---------- */
.q-head { display: flex; align-items: center; gap: 10px; }
.q-progress { flex: 1; }
.q-prompt { font-size: 20px; font-weight: 800; margin: 12px 0; }
.q-prompt.big { font-size: 26px; text-align: center; }
.q-opts { display: grid; gap: 8px; }
.q-opts.emoji { grid-template-columns: 1fr 1fr; }
.opt {
  border: 2px solid var(--line); background: #fff; border-radius: 12px;
  min-height: 52px; padding: 10px 12px; text-align: left; font-weight: 700; cursor: pointer;
  font-size: 16px;
}
.q-opts.emoji .opt { text-align: center; min-height: 86px; }
.opt .big { font-size: 34px; display: block; }
.opt.good { border-color: var(--good); background: var(--good-soft); }
.opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.opt[disabled] { cursor: default; }
.feedback { border-radius: 12px; padding: 12px; margin-top: 12px; }
.feedback.good { background: var(--good-soft); }
.feedback.bad { background: var(--bad-soft); }

/* ---------- Thẻ từ ---------- */
.wordcard { text-align: center; }
.wordcard .big { font-size: 64px; }
.wordcard .w { font-size: 28px; font-weight: 900; margin-top: 4px; }
.wordcard .ipa { color: var(--muted); }
.wordcard .vi { font-size: 18px; font-weight: 700; color: var(--brand); margin: 4px 0; }
.wordcard .ex { background: var(--bg); border-radius: 12px; padding: 10px; margin-top: 10px; text-align: left; }

/* ---------- Sổ từ ---------- */
.wb-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wb-item:last-child { border-bottom: 0; }
.wb-item .e { font-size: 24px; width: 32px; text-align: center; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* ---------- Nhiệm vụ ---------- */
.quest { border-left: 5px solid var(--brand-2); }
.quest.done { border-left-color: var(--gold); }
.obj { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 3px 0; }
.obj.ok { color: var(--good); font-weight: 700; }

/* ---------- Nhà ---------- */
.room {
  background: linear-gradient(#fdf8ee, #efe3cc);
  border-radius: var(--radius); min-height: 150px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; font-size: 30px;
}
.room span { cursor: pointer; }

/* ---------- Hộp thoại ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(20, 30, 34, .5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s;
}
.modal {
  background: var(--card); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  animation: up .2s;
}
@media (min-width: 520px) {
  .modal-back { align-items: center; }
  .modal { border-radius: 20px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }

/* ---------- Thông báo ---------- */
#toast-root {
  position: fixed; bottom: calc(140px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 60; width: calc(100% - 28px); max-width: 452px; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 14px;
  margin-bottom: 8px; font-weight: 700; box-shadow: var(--shadow);
  animation: up .2s;
}
.toast.gold { background: var(--gold); color: #2a2208; }
.toast.good { background: var(--good); }

.float-reward { animation: pop .5s; display: inline-block; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } }
/* Ca phục vụ thật: số ghế mỗi bàn, mặt bàn khi lau */
.fl-seats { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 11px; font-weight: 800; background: rgba(255,255,255,.9); border-radius: 8px; padding: 0 4px; white-space: nowrap; }
.scrub-obj.obj-table { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #c08a58, #8a5a30 70%, #6e4524 71% 100%); }
/* Ca phục vụ thật: chọn loại quán */
.fl-cuisines { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.fl-cui { flex: 0 0 auto; min-width: 96px; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fl-cui span { font-size: 24px; }
.fl-cui b { font-size: 12px; }
.fl-cui small { font-size: 10px; color: var(--muted); }
.fl-cui.on { border-color: var(--brand); background: #eaf6f1; }
.fl-cui:disabled { opacity: .5; cursor: default; }
/* Ca rửa chén thật (js/screens/pit.js) */
.floor.pit { background: repeating-linear-gradient(0deg, #e9eef0 0 30px, #dfe6e9 30px 31px), #e9eef0; box-shadow: inset 0 0 0 4px #8d9ba1; }
.pit-wall { left: 0; top: 0; transform: none; width: 100%; height: 19%; background: linear-gradient(#cfd8dc, #b0bec5); border-bottom: 6px solid #78909c;
  color: #455a64; font-weight: 900; letter-spacing: 2px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.pit-req { z-index: 3; min-width: 74px; text-align: center; background: rgba(255,255,255,.92); border-radius: 12px; padding: 2px 6px 4px; cursor: pointer; box-shadow: var(--shadow); }
.pit-req .face { font-size: 26px; display: block; line-height: 1.1; }
.pit-req small { display: block; font-size: 10px; font-weight: 800; }
.pit-req .pit-want { position: absolute; right: -12px; top: -10px; font-size: 22px; background: #fff; border-radius: 50%; padding: 2px; box-shadow: var(--shadow); animation: pop .4s; }
.pit-req.need { outline: 3px solid var(--gold); }
.pit-req .fl-pat { margin-top: 2px; }
.pit-counter, .pit-rack { z-index: 2; text-align: center; background: #fff; border: 3px solid #90a4ae; border-radius: 12px; padding: 3px 6px; cursor: pointer; width: 34%; }
.pit-rack { width: 40%; background: repeating-linear-gradient(90deg, #fff 0 10px, #eceff1 10px 12px); }
.pit-counter b, .pit-rack b { font-size: 11px; display: block; }
.pit-counter small.vi, .pit-rack small.vi, .pit-st small.vi { display: block; font-size: 9px; color: var(--muted); font-weight: 600; }
.pit-items { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; min-height: 30px; }
.pit-item { font-size: 24px; position: relative; cursor: pointer; animation: pop .35s; }
.pit-item i { position: absolute; right: -5px; bottom: -3px; font-size: 11px; font-style: normal; }
.pit-item.wet { opacity: .75; }
.pit-item.ready { filter: drop-shadow(0 0 4px var(--good)); }
.pit-item.broken { filter: grayscale(.4); }
.pit-st { font-size: 26px; padding: 2px 6px; min-width: 64px; }
#pit-s1 { background: #e3f2fd; } #pit-s2 { background: #e0f7fa; } #pit-s3 { background: #e8f5e9; }
#pit-glassbin { background: #fff3e0; }
.pit-st.working { box-shadow: 0 0 0 5px var(--brand); filter: brightness(1.1); }
.pit-hint { box-shadow: 0 0 0 4px var(--gold), var(--shadow) !important; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(240,180,40,.35), var(--shadow); } }
/* Kệ cất đồ sạch: tấm ván gỗ, đồ sạch xếp lên trên */
.pit-shelf { z-index: 2; width: 34%; text-align: center; cursor: pointer; background: #fffaf3; border: 3px solid #8d6e63; border-radius: 8px; padding: 2px 4px 4px; }
.pit-shelf b { font-size: 11px; display: block; }
.pit-shelf small.vi { display: block; font-size: 9px; color: var(--muted); font-weight: 600; }
.pit-shelf .plank { min-height: 20px; border-bottom: 5px solid #a1887f; font-size: 16px; line-height: 20px; letter-spacing: -2px; }
.pit-req small.vi { display: block; font-size: 9px; color: var(--muted); font-weight: 600; }
.pit-req .pit-wname { font-size: 10px; font-weight: 800; color: var(--brand); max-width: 92px; line-height: 1.1; }
/* Ô "Đang cầm": tên món song ngữ cho người mới đọc theo */
.pit-hold { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 4px 12px; margin: 4px 0 6px; box-shadow: var(--shadow); min-height: 44px; }
.pit-hold.full { outline: 2px solid var(--gold); }
.pit-hold .big { font-size: 32px; }
.pit-hold b { font-size: 17px; }
.pit-hold .vi { color: var(--muted); }
/* Hình món đồ trong ca rửa chén: SVG (nồi, chảo, đĩa…) hoặc emoji + dấu tình trạng */
.pit-svg { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.pit-emo { position: relative; display: inline-block; line-height: 1; }
#pit .pit-emo i, .pit-hold .pit-emo i, .modal .pit-emo i { position: absolute; right: -5px; bottom: -3px; top: auto; font-style: normal; font-size: .45em; }
#pit .pit-emo i.grease, .pit-hold .pit-emo i.grease { width: .35em; height: .22em; border-radius: 50%; background: rgba(121, 85, 72, .6); right: 3px; bottom: 3px; }
.pit-hold .big .pit-svg { width: 40px; height: 40px; }
.pit-req .pit-want .pit-svg { width: 24px; height: 24px; }
.pit-item .pit-svg { width: 30px; height: 30px; }
.pit-shelf .pit-item .pit-svg { width: 20px; height: 20px; }
.fl-me .pit-svg { width: 24px; height: 24px; }
.pit-title { font-size: 22px; line-height: 1.1; }
.pit-title small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pit-title .pit-mode { display: block; font-size: 13px; color: var(--brand); }
/* Ký hiệu nhỏ phân biệt các món trùng hình */
.pit-art { position: relative; display: inline-block; line-height: 1; }
.pit-badge { position: absolute; left: -6px; top: -6px; font-size: 11px; line-height: 15px; min-width: 15px; height: 15px; text-align: center;
  background: #fff; border: 1.5px solid var(--brand); border-radius: 50%; font-style: normal; font-weight: 800; color: var(--brand); }
.pit-hold .pit-badge { font-size: 14px; line-height: 19px; min-width: 19px; height: 19px; }
/* ---------- Dish pit dạng lưới (vừa điện thoại, ô to dễ chạm) ---------- */
.pit-grid { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; user-select: none; -webkit-user-select: none;
  background: repeating-linear-gradient(0deg, #e9eef0 0 30px, #dfe6e9 30px 31px), #e9eef0; box-shadow: inset 0 0 0 4px #8d9ba1; }
.pit-grid .pit-wall { position: static; width: auto; height: auto; transform: none; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: linear-gradient(#cfd8dc, #b0bec5); border-bottom: 5px solid #78909c; border-radius: 10px; padding: 6px; }
.pit-kitchen { font-weight: 900; letter-spacing: 2px; color: #455a64; text-align: center; font-size: 13px; }
.pit-kitchen small { display: block; letter-spacing: 0; font-size: 10px; font-weight: 600; }
.pit-grid .pit-req { position: relative; transform: none; min-width: 96px; max-width: 42%; }
.pit-grid .pit-counter, .pit-grid .pit-rack, .pit-grid .pit-shelf { position: static; transform: none; width: auto; padding: 6px 8px; }
.pit-grid .pit-counter b, .pit-grid .pit-rack b, .pit-grid .pit-shelf b { font-size: 15px; }
.pit-grid small.vi { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.pit-grid .pit-items { gap: 6px; min-height: 48px; }
.pit-grid .pit-item { min-width: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 32px;
  background: rgba(255,255,255,.7); border-radius: 10px; }
.pit-grid .pit-item .pit-svg { width: 36px; height: 36px; }
.pit-grid .pit-shelf .plank { min-height: 30px; border-bottom: 6px solid #a1887f; font-size: 22px; line-height: 30px; letter-spacing: 0; }
.pit-grid .pit-shelf .pit-item { min-width: 30px; min-height: 30px; background: none; font-size: 22px; }
.pit-grid .pit-shelf .pit-item .pit-svg { width: 24px; height: 24px; }
.pit-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pit-sink { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #90a4ae; padding: 4px; border-radius: 12px; }
.pit-grid .pit-st { position: static; transform: none; min-width: 0; text-align: center; background: rgba(255,255,255,.9); border-radius: 10px;
  padding: 6px 2px; cursor: pointer; box-shadow: var(--shadow); font-size: 13px; line-height: 1.15; }
.pit-grid .pit-st .ic { display: block; font-size: 26px; line-height: 1.1; }
.pit-grid .pit-st b { display: block; font-size: 13px; }
.pit-grid .pit-st .pit-items { min-height: 0; }
.pit-grid .pit-st .pit-item { min-width: 34px; min-height: 34px; font-size: 22px; }
.pit-grid .pit-st .pit-item .pit-svg { width: 26px; height: 26px; }
.pit-grid .fl-me { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); transition: left .3s ease-in-out, top .3s ease-in-out; font-size: 30px; }
.pit-grid .pit-hint { box-shadow: 0 0 0 4px var(--gold), var(--shadow) !important; }
/* Câu nói luôn nằm sát thanh dưới, không phải cuộn xuống mới thấy */
#pit-say { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 6; }
.pit-bottom { display: grid; grid-template-columns: 1.7fr 1fr; gap: 6px; align-items: stretch; }
.pit-grid .pit-bottom .pit-shelf .plank { min-height: 24px; line-height: 24px; }
#pit-say { bottom: calc(6px + env(safe-area-inset-bottom)); }
.pit-grid { gap: 6px; padding: 6px; }
.pit-grid .pit-wall { padding: 4px 6px; }
.pit-grid .pit-req .face { font-size: 22px; }
.pit-grid .pit-req small i.vi { font-style: normal; font-weight: 600; color: var(--muted); }
#pit-say { padding: 6px 10px; min-height: 0; }
/* Lưu tiến độ bằng email, góp ý (js/core/cloud.js) */
input[type=email], textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
input[type=email]:focus, textarea:focus { outline: none; border-color: var(--brand-2); }
textarea { resize: vertical; }
.cl-code { text-align: center; font-size: 28px !important; letter-spacing: 8px; font-weight: 800; }
.cl-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; }
.cl-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.tiny { font-size: 11px; }
.btn.loading { opacity: .6; pointer-events: none; }
#topbar .icon-btn { font-size: 20px; }
#topbar { grid-template-columns: auto 1fr auto auto; }
#topbar .icon-btn { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Ca phụ bếp thật (js/screens/prep.js) ---------- */
.pr-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: var(--radius);
  background: repeating-linear-gradient(90deg, #eceff1 0 34px, #e3e7ea 34px 35px), #eceff1; box-shadow: inset 0 0 0 4px #90a4ae; user-select: none; -webkit-user-select: none; }
.pr-rail { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; align-items: stretch; background: #fdf3dc; border-bottom: 5px solid #b0bec5; border-radius: 10px; padding: 6px; min-height: 92px; }
.pr-rail-h { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; font-size: 12px; padding-right: 2px; }
.pr-rail-h .vi { color: var(--muted); font-size: 10px; }
.pr-task, .pr-ticket { flex: 0 0 auto; width: 92px; background: #fff; border-radius: 8px; border-top: 4px solid var(--gold); padding: 4px; text-align: center; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.pr-task .ic, .pr-ticket .ic { font-size: 24px; line-height: 1.1; }
.pr-task b, .pr-ticket b { font-size: 11px; line-height: 1.15; }
.pr-task small, .pr-ticket small { font-size: 10px; color: var(--muted); }
.pr-task.on, .pr-ticket.on { outline: 3px solid var(--brand); }
.pr-task.done { opacity: .5; border-top-color: var(--good); }
.pr-ticket.new { animation: nudge 1.2s infinite; border-top-color: var(--bad); }
.pr-ticket .fl-pat { width: 70px; }
.pr-st { position: relative; background: #fff; border-radius: 12px; padding: 6px 4px; text-align: center; cursor: pointer; box-shadow: var(--shadow); min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pr-st .ic { font-size: 28px; line-height: 1.1; }
.pr-st b { font-size: 12px; }
.pr-st .vi { font-size: 10px; color: var(--muted); }
.pr-st.working { box-shadow: 0 0 0 5px var(--brand); }
.pr-dirty { position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 16px; }
.pr-lowboy { background: #e8f4fb; }
.pr-stock { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
.pr-chip { font-size: 11px; font-weight: 800; background: #fff; border-radius: 6px; padding: 0 3px; }
.pr-chip.out { background: var(--bad-soft); color: var(--bad); }
.pr-stations { display: flex; flex-direction: column; gap: 4px; }
.pr-stations .pr-st { min-height: 0; padding: 3px; flex: 1; background: #fff4ec; }
.pr-stations .pr-st .ic { font-size: 22px; }
.pr-pass { background: #fff8e1; }
.pr-grid .pit-hint { box-shadow: 0 0 0 4px var(--gold), var(--shadow) !important; animation: pulse 1.2s infinite; }
.pr-behind { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); z-index: 5; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 18px; font-weight: 900;
  background: var(--bad); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: nudge .6s infinite; cursor: pointer; }
.pr-behind[hidden] { display: none; }
.pr-m small { font-weight: 400; }
.pr-m .btn { flex-direction: column; gap: 0; line-height: 1.15; }
.pr-m .btn small { font-size: 11px; opacity: .85; }
.pr-chip { display: inline-flex; align-items: center; gap: 2px; }
.pr-chip i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); border: 1px solid rgba(0,0,0,.25); }
.pr-walker { position: absolute; top: 30%; left: -40px; font-size: 30px; z-index: 4; pointer-events: none; }
.pr-walker i { font-style: normal; font-size: 18px; }
.pr-walker.go { animation: walkby 4.5s linear forwards; }
@keyframes walkby { to { left: 105%; } }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.no { animation: nope .3s; border-color: var(--bad) !important; }

/* Miếng đã cắt (js/screens/prep-art.js) */
.pc { position: absolute; display: block; background: var(--c); transform: translate(-50%, -50%) rotate(var(--r)); box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.22); }
.pc-cube { width: 7px; height: 7px; border-radius: 1.5px; }
.pc-strip { width: 22px; height: 5px; border-radius: 2px; }
.pc-slice { width: 17px; height: 5px; border-radius: 3px; }
.pc-meat { width: 20px; height: 8px; border-radius: 40%; background: linear-gradient(90deg, var(--c) 70%, #f3e1dc 70% 78%, var(--c) 78%); }
.pc-round { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #f6b39a 0 22%, #f1d27a 23% 30%, #f6b39a 31% 45%, var(--c) 46%); }
.pc-ring { width: 7px; height: 7px; border-radius: 50%; background: #e8f5c8; border: 2px solid var(--c); }
.pc-strand { width: 20px; height: 2.5px; border-radius: 2px; }
.pc-stick { width: 24px; height: 5px; border-radius: 1px; }
.pc-wedge { width: 18px; height: 11px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: radial-gradient(ellipse at 50% 0, #dcef9a 0 55%, var(--c) 56%); }
.pc-half { width: 16px; height: 9px; border-radius: 9px 9px 3px 3px; background: repeating-linear-gradient(90deg, var(--c) 0 3px, #f8c3a3 3px 4px); }
.pc-patty { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); background: radial-gradient(circle at 35% 35%, #e07a7d, var(--c)); }
.pc-leaf { width: 13px; height: 8px; border-radius: 0 100% 0 100%; }
.pc-leafbig { width: 24px; height: 18px; border-radius: 50% 50% 50% 10%; background: radial-gradient(circle at 40% 40%, #dcedc8, var(--c)); }
.pc-sprout { width: 20px; height: 3px; border-radius: 2px; background: #f7f5e6; }
.pc-sprout::after { content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #e3d36a; }
.pc-mince { width: 4px; height: 4px; border-radius: 1px; }

/* Hộp nhựa trong có nắp + nhãn băng keo */
.pr-tub { position: relative; display: inline-block; width: 70px; height: 58px; vertical-align: middle; }
.pr-tub .lid { position: absolute; left: -3px; right: -3px; top: 0; height: 9px; border-radius: 5px; background: #e7eef2; border: 1.5px solid #a9bcc7; z-index: 2; }
.pr-tub .body { position: absolute; left: 0; right: 0; top: 7px; bottom: 0; border-radius: 4px 4px 9px 9px; background: rgba(214,233,243,.55); border: 1.5px solid #a9bcc7; overflow: hidden; }
.pr-tub .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; transform: scale(.85); transform-origin: bottom; }
.pr-tub .tape { position: absolute; left: 6px; right: 6px; top: 22px; z-index: 3; background: #f6e7a3; color: #4b3b10; font-size: 9px; font-weight: 800; line-height: 1.1; padding: 2px 3px; text-align: center; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pr-tub.mini { transform: scale(.55); margin: -13px -16px; }
.pr-tub.big { transform: scale(1.5); margin: 16px 0; }
.pr-tub.fillin .fill { animation: fillin .6s ease-out; }
@keyframes fillin { from { transform: scale(.85) translateY(-70px); opacity: 0; } }
.pr-tub.stick .tape { animation: stick .45s ease-out; }
@keyframes stick { from { transform: translateY(-40px) rotate(-25deg) scale(1.4); opacity: 0; } }
.pr-tub.slidein { animation: slidein .5s ease-out; }
@keyframes slidein { from { transform: scale(.55) translateX(-60px); opacity: 0; } }

/* Kho lạnh */
.pr-walkin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 12px;
  background: linear-gradient(#e6f2f8, #d3e6ef); box-shadow: inset 0 0 0 3px #b8cdd8; }
.pr-bin { position: relative; border: 2px solid #9fb7c4; border-radius: 6px 6px 12px 12px; background: rgba(255,255,255,.65); padding: 6px 4px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.pr-bin .food { font-size: 24px; letter-spacing: -8px; padding-right: 8px; }
.pr-bin b { font-size: 13px; }
.pr-bin small { font-size: 11px; color: var(--muted); }
.pr-bin .sticker { position: absolute; top: -8px; right: -4px; background: #fff3c4; border: 1px solid #e0c060; border-radius: 4px; font-size: 11px; font-weight: 800; padding: 1px 4px; transform: rotate(4deg); display: flex; flex-direction: column; line-height: 1.1; }
.pr-bin .sticker small { font-size: 9px; font-weight: 400; }
.pr-bin.taken { animation: take .5s ease-in forwards; }
@keyframes take { to { transform: translateY(-40px) scale(.7); opacity: 0; } }

/* Giá thớt */
.pr-boards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 4px 0; border-bottom: 6px solid #90a4ae; }
.pr-cboard { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: transform .35s; }
.pr-cboard i { position: relative; display: block; width: 100%; height: 76px; border-radius: 8px 8px 3px 3px; background: var(--c); border: 1px solid rgba(0,0,0,.25); box-shadow: inset -4px 0 0 rgba(0,0,0,.08); }
.pr-cboard i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 12px; height: 7px; margin-left: -6px; border-radius: 4px; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.pr-cboard b { font-size: 11px; margin-top: 3px; }
.pr-cboard small { font-size: 10px; color: var(--muted); }
.pr-cboard.pulled { transform: translateY(-30px) rotate(-6deg); }
.pr-cboard.no i { border-color: var(--bad); }

/* Thớt đang cắt */
.pr-cutboard { position: relative; display: block; width: 100%; height: 150px; margin: 8px 0 4px; border: 0; padding: 0; border-radius: 14px; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); cursor: pointer; overflow: hidden; touch-action: manipulation; }
.pr-cutboard.hurt { animation: shake .35s; box-shadow: inset 0 0 0 5px var(--bad); }
.pr-work { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; }
.pr-pile { position: absolute; right: 6px; top: 10px; bottom: 10px; width: 40%; border-radius: 10px; background: rgba(255,255,255,.18); }
.pr-whole { position: absolute; left: 14px; top: 34px; width: 96px; height: 80px; font-size: 76px; line-height: 80px; text-align: center; transition: clip-path .15s, transform .2s, opacity .2s; }
.pr-block { background: repeating-linear-gradient(0deg, var(--c) 0 8px, rgba(0,0,0,.15) 8px 9px); border-radius: 6px; height: 60px; top: 44px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.pr-knife { position: absolute; top: 4px; font-size: 54px; transform: rotate(45deg); transform-origin: 50% 80%; transition: left .15s; z-index: 3; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.pr-knife.chop { animation: chop .2s ease-in; }
@keyframes chop { 0% { transform: translateY(-22px) rotate(45deg); } 70% { transform: translateY(14px) rotate(45deg); } 100% { transform: rotate(45deg); } }
.pr-ghand { position: absolute; top: 44px; font-size: 44px; z-index: 2; transition: left .15s; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.pr-ghand.flat { transform: rotate(90deg); filter: drop-shadow(0 0 6px #ff1744); }
.pr-ghand.claw { transform: rotate(-20deg); }
.pr-ghand.curl { animation: curl .35s ease-out; }
@keyframes curl { 0% { transform: rotate(90deg) scale(1.1); } 50% { transform: rotate(30deg) scale(.75); } 100% { transform: rotate(-20deg); } }
.pr-ghand.open, .pr-ghand.relax { animation: openhand .45s ease-out; }
@keyframes openhand { 0% { transform: rotate(-20deg) scale(.8); } 60% { transform: rotate(100deg) scale(1.15); } 100% { transform: rotate(90deg); } }
.pr-ghand.ouch { animation: shake .3s 2; }
.pr-ghand i { position: absolute; right: -6px; bottom: 0; font-size: 18px; font-style: normal; }
.pr-ghand b { position: absolute; left: -8px; top: -10px; font-size: 24px; }
.pr-ghand.pick { top: 4px; font-size: 40px; transform: none; filter: none; }
.pr-ghand.press { animation: press .25s; }
@keyframes press { 50% { transform: translateY(18px) scale(.9); } }
.pr-gripinfo { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 4px 8px; }
.pr-gripinfo.ok { background: var(--good-soft); color: var(--good); }
.pr-gripinfo.bad { background: var(--bad-soft); color: var(--bad); }

/* Dán nhãn */
.pr-labelscene { display: flex; justify-content: center; padding: 10px 0 14px; }
.pr-tapes { display: flex; flex-direction: column; gap: 6px; }
.pr-tapebtn { border: 0; background: #f6e7a3; color: #4b3b10; border-radius: 3px; padding: 7px 10px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline;
  box-shadow: 0 2px 3px rgba(0,0,0,.15); clip-path: polygon(0 4%, 3% 0, 97% 6%, 100% 0, 99% 96%, 96% 100%, 3% 94%, 0 100%); }
.pr-tapebtn b { font-size: 15px; }
.pr-tapebtn small { font-size: 11px; opacity: .75; }
.pr-tapebtn .date { margin-left: auto; }

/* Tủ mát dưới quầy */
.pr-inhand { display: flex; align-items: center; gap: 4px; justify-content: center; font-weight: 800; margin-bottom: 6px; }
.pr-fridge { display: flex; flex-direction: column; gap: 0; padding: 8px; border-radius: 12px; background: linear-gradient(90deg, #cfd8dc, #eceff1 40%, #cfd8dc); box-shadow: inset 0 0 0 3px #90a4ae; }
.pr-shelf { position: relative; min-height: 58px; border: 0; border-bottom: 5px solid #90a4ae; background: rgba(225,240,250,.7); cursor: pointer; display: flex; align-items: flex-end; gap: 6px; padding: 4px 6px 2px; text-align: left; }
.pr-shelf .tubs { display: flex; align-items: flex-end; min-width: 30px; }
.pr-shelf .name { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.pr-shelf .name small { font-size: 10px; color: var(--muted); text-align: right; }

/* Cảnh nấu */
.sc { position: relative; height: 140px; border-radius: 14px; margin: 8px 0 4px; overflow: hidden; }
.sc-food { position: absolute; inset: 0; }
.sc-food.flip { animation: flip .45s ease-in-out; }
@keyframes flip { 50% { transform: translateY(-26px) rotateX(90deg) scale(1.1); } }
.sc-food.lift { animation: lift .45s ease-in forwards; }
@keyframes lift { to { transform: translateY(-30px); } }
.sc-grill { background: repeating-linear-gradient(90deg, #2b2b2b 0 9px, #555 9px 13px), #2b2b2b; box-shadow: inset 0 0 30px rgba(255,90,0,calc(var(--heat) * .35)); }
.sc-fry { background: radial-gradient(circle at 50% 50%, #f6c453, #d99a22); box-shadow: inset 0 0 0 8px #78909c; }
.sc-blanch { background: radial-gradient(circle, #d8eef6, #a9d3e4); box-shadow: inset 0 0 0 8px #78909c; }
.sc-dip { background: radial-gradient(circle, #e3f4fb 0 60%, #b9dbe8 61%); }
.sc .basket { position: absolute; left: 18%; right: 18%; top: 14%; bottom: 14%; border-radius: 10px; border: 3px solid #607d8b;
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(96,125,139,.45) 5px 6px), repeating-linear-gradient(-45deg, transparent 0 5px, rgba(96,125,139,.45) 5px 6px); }
.ck { position: absolute; display: block; background: var(--f); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); transition: background .2s; }
.ck-patty { width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 3px 6px rgba(0,0,0,.4); }
.ck-pork { width: 46px; height: 26px; border-radius: 45%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.ck-chicken { width: 20px; height: 62px; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.5px); background-size: 5px 5px; }
.ck-fry { width: 52px; height: 9px; border-radius: 2px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.ck.marked { background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(40,20,10,.55) 9px 12px); }
.ck-noodles { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; color: var(--f); opacity: var(--a, 1); }
.ck-paper { width: 104px; height: 104px; left: 50%; top: 50%; border-radius: 50%; opacity: var(--a, 1); box-shadow: 0 2px 4px rgba(0,0,0,.15);
  background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.05) 4px 5px), repeating-linear-gradient(-45deg, transparent 0 4px, rgba(0,0,0,.05) 4px 5px); }
.ck-bun { width: 84px; height: 84px; left: 50%; top: 50%; border-radius: 50%; background: #e2a756; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.ck-cheese { width: 46px; height: 46px; left: 52%; top: 48%; background: rgba(255,196,0,.85); transform: translate(-50%, -50%) rotate(20deg); border-radius: 4px; }
.smoke, .steam { position: absolute; bottom: 20%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(4px); animation: rise2 1.6s infinite; opacity: calc(.3 + var(--heat) * .3); }
.smoke.s1, .steam.s1 { left: 30%; } .smoke.s2, .steam.s2 { left: 55%; animation-delay: .5s; } .smoke.s3 { left: 70%; animation-delay: 1s; }
.sc.burning .smoke { background: rgba(60,60,60,.8); }
@keyframes rise2 { from { transform: translateY(0) scale(.6); } to { transform: translateY(-110px) scale(1.4); opacity: 0; } }
.bub { position: absolute; width: 8px; height: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: pop2 .9s infinite; }
.bub.b1 { left: 22%; top: 30%; } .bub.b2 { left: 70%; top: 60%; animation-delay: .3s; } .bub.b3 { left: 45%; top: 75%; animation-delay: .6s; } .bub.b4 { left: 78%; top: 25%; animation-delay: .45s; }
@keyframes pop2 { from { transform: scale(.3); } to { transform: scale(1.6); opacity: 0; } }
.pr-gauge { position: relative; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #ffe0b2, #ffb74d); margin: 8px 0 4px; overflow: hidden; }
.pr-gauge .z { position: absolute; top: 0; bottom: 0; background: #43a047; }
.pr-gauge .burn { position: absolute; top: 0; bottom: 0; right: 0; width: 12%; background: #5d4037; }
.pr-gauge i { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #1d2a2f; border-radius: 2px; left: 0; }

/* Nhiệt kế que */
.sc-probe { background: #eceff1; box-shadow: inset 0 0 0 3px #cfd8dc; }
.pr-thermo { position: absolute; left: 50%; top: 4px; display: flex; flex-direction: column; align-items: center; z-index: 3; transform: translateX(-50%); }
.pr-thermo.insert { animation: insert .6s ease-out; }
@keyframes insert { from { transform: translate(-50%, -60px); } }
.pr-thermo .disp { background: #263238; color: #69f0ae; font-family: monospace; font-size: 15px; border-radius: 8px; padding: 3px 8px; border: 3px solid #ffb300; }
.pr-thermo .disp b { font-size: 22px; }
.pr-thermo .stem { width: 4px; height: 66px; background: linear-gradient(#b0bec5, #78909c); border-radius: 0 0 2px 2px; }

/* Bày món */
.pr-platescene { position: relative; display: flex; justify-content: center; padding: 6px 0; }
.ves { position: relative; width: 150px; height: 112px; }
.ves-in { position: absolute; inset: 0; }
.ves-plate { border-radius: 50%; background: radial-gradient(ellipse, #fff 0 62%, #eceff1 63% 70%, #fff 71%); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.ves-bowl { width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle, var(--b) 0 66%, #fff 67% 80%, #e0e0e0 81%); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.ves-basket { border-radius: 16px; background: repeating-conic-gradient(#e53935 0 25%, #fff 0 50%) 0 0 / 22px 22px; box-shadow: inset 0 0 0 7px #8d6e63; }
.ves .ck-patty { width: 50px; height: 50px; }
.ves .ck-bun { width: 70px; height: 70px; }
.ves .ck-paper { width: 84px; height: 84px; }
.ves .ck-noodles { left: 18%; top: 22%; width: 64%; height: 56%; }
.pl-main { position: absolute; inset: 0; }
.pl-pile { position: absolute; width: 50px; height: 44px; transform: translate(-50%, -50%) scale(1.25); }
.pr-platescene.done .ves { animation: pop .4s; }
.pr-up { position: absolute; top: 30%; font-size: 52px; animation: rise3 .8s ease-out forwards; }
@keyframes rise3 { from { transform: scale(.4); } 50% { transform: scale(1.3); } to { transform: translateY(-30px) scale(1); } }
.pr-tubrow { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pr-tubbtn { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 2px 2px; width: 74px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.pr-tubbtn b { font-size: 11px; line-height: 1.1; text-align: center; }
.pr-tubbtn small { font-size: 10px; color: var(--muted); line-height: 1.1; text-align: center; }
.pr-tubbtn.on { border-color: var(--brand); background: var(--brand-soft); }
.pr-tubbtn .pr-tub.mini { margin: -10px -16px -8px; }

/* Rửa tay */
.pr-sinkscene { position: relative; height: 130px; border-radius: 14px; margin: 6px 0 8px; overflow: hidden; background: linear-gradient(#eceff1 0 30%, #cfd8dc 30%); }
.pr-sinkscene::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 8px; height: 46px; border-radius: 0 0 40px 40px; background: #b0bec5; box-shadow: inset 0 6px 8px rgba(0,0,0,.2); }
.pr-sinkscene .faucet { position: absolute; left: 50%; top: 8px; width: 60px; height: 12px; margin-left: -50px; border-radius: 6px; background: linear-gradient(#cfd8dc, #78909c); z-index: 2; }
.pr-sinkscene .faucet::after { content: ""; position: absolute; right: 0; top: 4px; width: 14px; height: 24px; border-radius: 0 0 5px 5px; background: linear-gradient(90deg, #90a4ae, #cfd8dc); }
.pr-sinkscene .water { position: absolute; left: 50%; top: 36px; width: 8px; height: 60px; margin-left: -4px; background: linear-gradient(rgba(79,195,247,.9), rgba(79,195,247,.3)); border-radius: 4px; opacity: 0; z-index: 1; }
.pr-sinkscene.dirty .water, .pr-sinkscene.step-rinse .water { opacity: 1; }
.pr-sinkscene.rinsed .water { opacity: .3; }
.pr-sinkscene .hands { position: absolute; left: 50%; top: 52px; font-size: 48px; transform: translateX(-50%); z-index: 3; }
.pr-sinkscene .hands.rub { animation: rub .25s infinite; }
@keyframes rub { 50% { transform: translateX(-50%) rotate(12deg) scale(1.05); } }
.pr-sinkscene .suds { position: absolute; left: 50%; top: 52px; width: 90px; height: 60px; margin-left: -45px; z-index: 4; opacity: var(--s); transition: opacity .3s; pointer-events: none;
  background: radial-gradient(circle at 20% 40%, #fff 0 9px, transparent 10px), radial-gradient(circle at 50% 25%, #fff 0 11px, transparent 12px), radial-gradient(circle at 78% 50%, #fff 0 9px, transparent 10px),
    radial-gradient(circle at 35% 75%, #fff 0 8px, transparent 9px), radial-gradient(circle at 65% 80%, #fff 0 10px, transparent 11px); filter: drop-shadow(0 0 1px #4fc3f7); }
.pr-sinkscene .germs { position: absolute; left: 60%; top: 60px; font-size: 18px; z-index: 5; }
.pr-sinkscene .towel { position: absolute; left: 66%; top: 46px; font-size: 34px; z-index: 5; animation: pop .3s; }
.pr-washbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pr-washbtns .btn { position: relative; user-select: none; -webkit-user-select: none; touch-action: none; }
.pr-holdbar { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.15); overflow: hidden; }
.pr-holdbar i { display: block; height: 100%; width: 0; background: var(--brand); }
.pr-sub + .pr-sub { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.pr-sub.old { font-size: 13px; color: #44545a; line-height: 1.3; }
.pr-sub.old .vi { display: block; font-size: 12px; color: var(--muted); }
.pr-sub.old .who { font-weight: 800; }
.pr-msay { margin: 0 0 8px; min-height: 0; background: #f4faf7; box-shadow: none; border: 1px solid var(--brand-soft); }
.pr-msay .spk-btn { width: 32px; height: 32px; font-size: 14px; }
.pr-msay b { font-size: 15px; }
.pr-m h3 small { font-weight: 400; }
.pr-tip { margin-top: 5px; padding: 5px 8px; border-radius: 8px; background: #fff6d6; border: 1px solid #f0d77a; font-size: 13px; line-height: 1.35; }
.pr-ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.pr-cboard .for { font-size: 10px; font-weight: 700; line-height: 1.15; text-align: center; }
.pr-cboard small { line-height: 1.15; text-align: center; }
.pr-shelf .name .for { font-size: 11px; font-weight: 700; }
.pr-msay .pr-tip { font-size: 12px; padding: 4px 7px; }
.pr-msay .pr-tip + .pr-tip { display: none; }
.pr-tubbtn { padding-top: 8px; }
.pr-tubbtn .pr-tub.mini { transform: scale(.42); margin: -17px -20px -14px; }
.pr-platescene { padding: 2px 0; }
.token small.vi, .spot-obj small.vi { font-weight: 400; color: var(--muted); font-size: 10px; line-height: 1.15; display: block; }
.hold-btn span small.vi { display: block; font-size: 12px; font-weight: 400; opacity: .85; }
.ico { width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; }

/* ---------- Ca dọn bàn thật (js/screens/bus.js) ---------- */
.bs-floor { aspect-ratio: 1 / 1.04; }
.bs-floor .bs-back { left: 0; top: 0; transform: none; width: 100%; height: 21%; background: linear-gradient(#eef2f3, #cfd8dc); border-bottom: 6px solid #8d9ba1;
  display: flex; align-items: flex-end; justify-content: center; color: #4a5a61; font-weight: 900; letter-spacing: 2px; font-size: 11px; padding-bottom: 2px; }
.bs-floor .bs-back small { font-weight: 400; letter-spacing: 0; }
.bs-spot { z-index: 3; min-width: 60px; text-align: center; background: rgba(255,255,255,.93); border-radius: 12px; padding: 2px 5px 3px; cursor: pointer; box-shadow: var(--shadow);
  font-size: 21px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; }
.bs-spot b { font-size: 11px; }
.bs-spot .vi { font-size: 9px; color: var(--muted); line-height: 1.1; }
.bs-station { background: #fff8e1; border: 2px solid #f0d77a; }
.bs-st-ic { font-size: 20px; white-space: nowrap; }
.bs-pass-items { display: flex; gap: 2px; font-size: 18px; min-height: 0; }
.bs-pass-items span { position: relative; animation: pop .4s; }
.bs-pass-items small { position: absolute; right: -4px; bottom: -3px; font-size: 9px; background: var(--brand); color: #fff; border-radius: 6px; padding: 0 3px; font-weight: 800; }
.bs-queue { display: flex; flex-direction: column; gap: 0; font-size: 13px; white-space: nowrap; max-height: 34px; overflow: hidden; }
.bs-queue span { animation: walkin .5s; }
.bs-floor .bs-door { left: 4%; top: 95%; font-size: 22px; }
.bs-table { z-index: 2; cursor: pointer; width: 24%; height: 14%; border-radius: 10px; background: #8d6e63; border: 3px solid #6d4c41; box-shadow: 0 4px 0 rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center; flex-direction: column; }
.bs-table.seats-2 { width: 18%; }
.bs-table::before, .bs-table::after { content: ""; position: absolute; left: 50%; width: 40%; height: 12%; margin-left: -20%; background: #90a4ae; border-radius: 6px; }
.bs-table::before { top: -16%; } .bs-table::after { bottom: -16%; }
.bs-table.dirty { background: #a1887f; }
.bs-table.clean { background: #a1887f; }
.bs-tnum { position: absolute; left: 4px; top: 1px; color: #fff6e5; font-weight: 900; font-size: 12px; opacity: .85; }
.bs-faces { font-size: 15px; white-space: nowrap; line-height: 1; letter-spacing: -2px; }
.bs-mess { font-size: 14px; white-space: nowrap; }
.bs-clean { font-size: 16px; }
.bs-bubble { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 10px; padding: 2px 6px 3px; font-size: 18px; box-shadow: var(--shadow); z-index: 4; white-space: nowrap; }
.bs-bubble.need { border: 2px solid var(--gold); animation: nudge 1.2s infinite; }
.bs-bubble.dirty { top: -30px; border: 2px solid #8d6e63; }
.bs-bubble .fl-pat { width: 34px; }
.bs-table.pouring { box-shadow: 0 0 0 4px #4fc3f7, 0 4px 0 rgba(0,0,0,.2); }
.bs-floor .pit-hint { box-shadow: 0 0 0 4px var(--gold), var(--shadow) !important; animation: pulse 1.2s infinite; }
.bs-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bs-item { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 4px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bs-item .big { font-size: 24px; line-height: 1.1; }
.bs-item b { font-size: 11px; line-height: 1.1; text-align: center; }
.bs-item small { font-size: 10px; color: var(--muted); line-height: 1.15; text-align: center; }
.bs-opts { display: grid; gap: 6px; }
.bs-opts .opt .vi { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.bs-plate { display: flex; flex-direction: column; align-items: center; margin: 4px 0 8px; }
.bs-signal { position: relative; font-size: 54px; line-height: 1; }
.bs-signal i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-40deg); font-size: 26px; font-style: normal; }
.bs-plate small { font-size: 12px; color: var(--muted); text-align: center; }
.bs-rub { position: relative; height: 150px; border-radius: 14px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
  background: repeating-linear-gradient(90deg, #a1887f 0 18px, #9b8077 18px 19px); box-shadow: inset 0 0 0 4px #6d4c41; }
.bs-rub.shiny { box-shadow: inset 0 0 0 4px var(--good), 0 0 18px rgba(46,139,87,.5); }
.bs-dirt { position: absolute; width: 34px; height: 26px; margin: -13px 0 0 -17px; border-radius: 50%; transition: opacity .15s;
  background: radial-gradient(circle at 40% 40%, #d7ccc8 0 3px, #8d6e63 4px 6px, transparent 7px), radial-gradient(circle at 70% 60%, #6d4c41 0 3px, transparent 4px), radial-gradient(ellipse, rgba(121,85,72,.55), rgba(121,85,72,.25) 70%, transparent 72%); }
.bs-rub.spill .bs-dirt { width: 44px; height: 30px; margin: -15px 0 0 -22px; background: radial-gradient(ellipse, rgba(79,195,247,.75), rgba(79,195,247,.35) 70%, transparent 72%); }
.bs-steps { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.bs-steps span { font-size: 11px; border-radius: 999px; padding: 2px 7px; background: #eceff1; color: var(--muted); font-weight: 700; }
.bs-steps span.on { background: var(--gold-soft); color: #8a6200; outline: 2px solid var(--gold); }
.bs-steps span.done { background: var(--good-soft); color: var(--good); }
.bs-tabletop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 14px;
  background: repeating-linear-gradient(90deg, #a1887f 0 18px, #9b8077 18px 19px); box-shadow: inset 0 0 0 4px #6d4c41; }
.bs-thing { border: 2px solid transparent; background: rgba(255,255,255,.9); border-radius: 10px; padding: 4px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.bs-thing span { font-size: 22px; line-height: 1.1; }
.bs-thing b { font-size: 10px; line-height: 1.1; text-align: center; }
.bs-thing small { font-size: 10px; color: var(--muted); line-height: 1.1; text-align: center; }
.bs-thing.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); transform: translateY(-3px); }
.bs-bins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bs-bin { border: 2px dashed #b0bec5; background: #fff; border-radius: 10px; padding: 4px 1px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.bs-bin span { font-size: 22px; line-height: 1.1; }
.bs-bin b { font-size: 10px; line-height: 1.1; text-align: center; }
.bs-bin small { font-size: 9px; color: var(--muted); line-height: 1.1; text-align: center; }
.bs-reset { position: relative; height: 170px; margin: 4px auto; width: 220px; }
.bs-reset-table { position: absolute; left: 50%; top: 50%; width: 120px; height: 80px; transform: translate(-50%, -50%); border-radius: 10px; background: #8d6e63; border: 3px solid #6d4c41;
  color: #fff6e5; font-weight: 900; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.bs-seat { position: absolute; width: 54px; height: 44px; border-radius: 10px; border: 2px dashed #90a4ae; background: #fff; font-size: 24px; cursor: pointer; z-index: 2; }
.bs-seat.set { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.bs-reset .bs-seat:nth-child(1) { left: 50%; top: 0; margin-left: -27px; }
.bs-reset .bs-seat:nth-child(2) { left: 50%; bottom: 0; margin-left: -27px; }
.bs-reset.seats-4 .bs-seat:nth-child(3) { left: 0; top: 50%; margin-top: -22px; }
.bs-reset.seats-4 .bs-seat:nth-child(4) { right: 0; top: 50%; margin-top: -22px; }
.pr-m .bs-steps { margin-bottom: 4px; }
.pr-m .bs-steps span { font-size: 10px; padding: 1px 6px; }
input, textarea, select, button { color: inherit; }
input, textarea, select { color: var(--ink); }
[hidden] { display: none !important; }
.bs-foodtag { position: absolute; right: -10px; bottom: -12px; z-index: 4; background: #fff8e1; border: 2px solid var(--gold); border-radius: 10px; padding: 0 4px; font-size: 16px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; animation: nudge 1.2s infinite; }
.bs-foodtag small { font-size: 8px; font-weight: 800; color: #8a6200; }
.bs-msgs { margin-top: 3px; font-size: 12px; background: #e8f5e9; border-radius: 8px; padding: 3px 6px; display: flex; flex-direction: column; }
.bs-msgs small { color: var(--good); font-weight: 800; }

/* ---------- Trash to Treasure (js/screens/t2t.js) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.chip small { color: var(--muted); font-size: 11px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on small { color: #e6f3f0; }
.t2-hud { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.t2-hud small { color: var(--muted); font-size: 11px; }
.t2-routes, .t2-people { display: grid; gap: 8px; }
.t2-route, .t2-person, .t2-act { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow); width: 100%; }
.t2-route small, .t2-person small { display: block; font-size: 12px; }
.t2-route .vi, .t2-person .vi { color: var(--muted); }
.t2-flag { font-size: 32px; }
.t2-go { font-weight: 800; color: var(--brand); white-space: nowrap; }
.t2-c-US { border-left: 5px solid #3c6fd8; } .t2-c-UK { border-left: 5px solid #d33b3b; } .t2-c-AU { border-left: 5px solid #e8a317; }
.t2-c-CA { border-left: 5px solid #c62828; } .t2-c-NZ { border-left: 5px solid #1b5e20; } .t2-c-IE { border-left: 5px solid #2e7d32; }
.t2-face { font-size: 34px; }
.t2-person.done { opacity: .7; }
.t2-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.t2-lv { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: #eef3f2; white-space: nowrap; }
.t2-fit { font-size: 11px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.t2-yard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.t2-act { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
.t2-act small { color: var(--muted); font-size: 12px; }
.t2-act:disabled { opacity: .5; cursor: default; }

.t2-stage[hidden], .t2-chat[hidden], #t2-say[hidden] { display: none; }
.t2-stage { position: relative; height: 270px; border-radius: 16px; overflow: hidden; margin-top: 6px; border-left: 0;
  background: linear-gradient(#bfe3ff 0 46%, #d9d6cf 46% 100%); box-shadow: var(--shadow); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.t2-stage.t2-c-UK { background: linear-gradient(#c9d3dc 0 46%, #bdb8ae 46% 100%); }
.t2-stage.t2-c-AU { background: linear-gradient(#8fd3ff 0 40%, #4fb3e8 40% 52%, #f3dfa8 52% 100%); }
.t2-sky { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 34px; letter-spacing: 10px; opacity: .55; }
.t2-scname { position: absolute; top: 58px; left: 10px; background: rgba(255,255,255,.88); border-radius: 10px; padding: 4px 10px; max-width: 70%; }
.t2-scname b { display: block; font-size: 14px; } .t2-scname small { color: var(--muted); font-size: 12px; }
.t2-props { position: absolute; top: 60px; right: 12px; font-size: 40px; }
.t2-items { position: absolute; inset: 0; }
.t2-item { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; border: 0; background: rgba(255,255,255,.75);
  border-radius: 12px; padding: 4px 6px; font: inherit; color: inherit; cursor: pointer; max-width: 96px; line-height: 1.1; touch-action: none; }
.t2-item small { font-size: 10px; text-align: center; } .t2-item .vi { color: var(--muted); }
.t2-ie { font-size: 30px; }
.t2-item.hint { box-shadow: 0 0 0 3px #ffb300; animation: t2pulse 1s infinite; }
.t2-item.shake { animation: t2shake .3s; }
.t2-item .t2-ring { position: absolute; inset: -3px; border-radius: 14px; border: 3px solid var(--brand); opacity: 0; }
.t2-item.holding .t2-ring { opacity: 1; animation: t2hold .9s linear forwards; }
@keyframes t2pulse { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes t2shake { 25% { transform: translate(-56%, -50%) rotate(-8deg); } 75% { transform: translate(-44%, -50%) rotate(8deg); } }
@keyframes t2hold { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.t2-me { position: absolute; left: 6px; bottom: 6px; font-size: 38px; }
.t2-me i { font-style: normal; font-size: 22px; margin-left: -10px; }
.t2-me.got { animation: t2got .5s; }
@keyframes t2got { 50% { transform: translateY(-10px); } }
.t2-guest { position: absolute; right: 10px; bottom: 8px; font-size: 46px; animation: t2pulse 1.2s 2; }
.t2-panel { margin-top: 8px; }
.t2-q { margin: 6px 0; } .t2-q b { display: block; } .t2-q .vi { display: block; color: var(--muted); }
.t2-opts { display: grid; gap: 6px; }
.t2-opts.grid { grid-template-columns: 1fr 1fr; }
.t2-opt { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; font: inherit; color: inherit; cursor: pointer; }
.t2-opt b { display: block; } .t2-opt .vi { display: block; color: var(--muted); font-size: 12px; }
.t2-opt.bad { background: #fde8e8; border-color: #f2b8b8; }
.t2-opt.hint { box-shadow: 0 0 0 3px #ffb300; }
.t2-opt.done { background: #e8f6ef; border-color: #a9dcc2; }
.t2-oe { font-size: 26px; }
.t2-num { min-width: 22px; height: 22px; border-radius: 50%; background: #eef3f2; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.t2-hint { background: #fff8e1; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.t2-hint .vi { color: var(--muted); }
.t2-meet .t2-face { font-size: 44px; }
.t2-meet small.vi { display: block; color: var(--muted); }
.t2-oh .t2-big { font-size: 22px; }
.t2-lit { font-size: 13px; margin: 4px 0; } .t2-lit span { font-size: 11px; background: #eef3f2; border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.t2-w { padding: 4px 0; border-top: 1px dashed var(--line); align-items: center; }
.t2-w small { display: block; font-size: 12px; } .t2-w .vi { color: var(--muted); }
.t2-sum { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0; }
.card.gold small.vi { display: block; color: #6b5a2a; }
.card.soft small.vi { display: block; color: var(--muted); }
.t2-bins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.t2-bin { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 2px; font: inherit; color: inherit; cursor: pointer; }
.t2-bin span { font-size: 24px; } .t2-bin b { font-size: 12px; } .t2-bin small { font-size: 11px; color: var(--muted); }
.t2-bagitems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.t2-bi { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; font: inherit; color: inherit; cursor: pointer; text-align: center; }
.t2-bi span { font-size: 26px; } .t2-bi b { font-size: 12px; } .t2-bi small { font-size: 11px; color: var(--muted); }
.t2-bi.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.t2-dep { color: #2e7d32 !important; font-weight: 700; }
.t2-price { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.t2-price th, .t2-price td { padding: 4px; border-bottom: 1px solid var(--line); text-align: left; }
.t2-price small { color: var(--muted); }
#t2s-say .vi, #t2v-say .vi { display: block; }
.t2-fl { display: inline-block; width: 1.5em; height: 1em; vertical-align: -0.12em; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.t2-fl svg { width: 100%; height: 100%; display: block; }
.t2-route .t2-flag .t2-fl { width: 46px; height: 30px; }
.t2-face, .t2-portrait { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(#fff3d6, #ffd98a); flex: none; }
.t2-face { width: 50px; height: 50px; font-size: 30px; }
.t2-portrait { width: 72px; height: 72px; font-size: 46px; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.18); }
.t2-person { background: linear-gradient(90deg, #fff, #fffaf0); }
.t2-person b { font-size: 15px; }
.t2-chat { background: linear-gradient(#fff8ea, #fff); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; margin-top: 6px; }
.t2-chead { display: flex; gap: 12px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.t2-chead .vi { color: var(--muted); font-size: 13px; }
.t2-pname { font-size: 20px; }
.t2-log { max-height: 46vh; overflow-y: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.t2-bub { display: flex; align-items: flex-end; gap: 6px; max-width: 94%; }
.t2-bub .t2-bf { font-size: 26px; flex: none; }
.t2-bub .t2-bt { border-radius: 16px; padding: 8px 12px; line-height: 1.3; }
.t2-bub .t2-bt b { display: block; font-size: 15px; } .t2-bub .t2-bt .vi { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.t2-bub.them .t2-bt { background: #fff; border: 1px solid #f0e2c4; border-bottom-left-radius: 4px; }
.t2-bub.me { align-self: flex-end; flex-direction: row-reverse; }
.t2-bub.me .t2-bt { background: #dff3ec; border-bottom-right-radius: 4px; }
.t2-bub.sys { align-self: center; max-width: 100%; }
.t2-bub.sys .t2-bt { background: #eef3f2; font-size: 13px; }
.t2-bub.sys .t2-bt b { font-size: 13.5px; }
.t2-bub .spk-btn { flex: none; }
.t2-pics { float: right; font-size: 22px; margin-left: 6px; }
.t2-listen { display: flex; align-items: center; gap: 8px; background: #f1f7ff; border-radius: 12px; padding: 8px 10px; }
.t2-listen > span { font-size: 24px; } .t2-listen b { display: block; font-size: 14px; } .t2-listen .vi { display: block; color: var(--muted); font-size: 12px; }
.t2-pop { position: absolute; transform: translate(-50%, calc(-100% - 6px)); background: #263238; color: #fff; border-radius: 10px; padding: 5px 10px; text-align: center; z-index: 5; pointer-events: none; white-space: nowrap; animation: t2popin .18s; }
.t2-pop b { display: block; font-size: 14px; } .t2-pop span { display: block; font-size: 12px; color: #cfd8dc; }
@keyframes t2popin { from { opacity: 0; transform: translate(-50%, calc(-100% + 4px)); } }
.t2-fly { position: fixed; z-index: 50; font-size: 34px; transform: translate(0, 0); margin: -20px 0 0 -20px; transition: transform .6s cubic-bezier(.4,-0.2,.6,1), opacity .6s; pointer-events: none; }
.t2-fly .ico { width: 40px; height: 40px; }
.t2-ie .ico { width: 34px; height: 34px; }
.t2-bi .ico, .t2-oe .ico { width: 28px; height: 28px; }
.t2-hl { margin-top: 6px; padding: 6px 8px; background: #fff; border-radius: 10px; border-left: 4px solid #ffb300; }
.t2-hl b { font-size: 14px; } .t2-hl .vi { display: block; font-size: 12px; color: var(--muted); }
.card.soft small.vi, .card.soft .vi { display: block; color: var(--muted); }
.region .big .ico { width: 1.2em; height: 1.2em; }
h1 .ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
/* Listen & Answer (kiểu mini-story: câu kể → Ah!, câu hỏi xoáy trả lời nhanh, nhắc lại) */
.t2-txt { align-self: flex-start; flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.t2-bt.hid, .t2-cq .hid { position: relative; cursor: pointer; }
.t2-bt.hid > *, .t2-cq .hid > * { filter: blur(6px); opacity: .55; }
.t2-bt.hid::after, .t2-cq .hid::after { content: '👁 Chạm để xem chữ · Tap to see'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #37474f; }
.t2-bub.q .t2-bt { border-color: #ffcc80; background: #fff8e1; }
.t2-ahbar { display: flex; gap: 8px; align-items: center; }
.t2-ah { flex: 1; font: inherit; font-size: 24px; font-weight: 800; padding: 14px; border-radius: 16px; border: 0; color: #fff; cursor: pointer;
  background: linear-gradient(#ff9f43, #f57c00); box-shadow: 0 4px 0 #c45f00; }
.t2-ah:active { transform: translateY(3px); box-shadow: 0 1px 0 #c45f00; }
.t2-cq { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.t2-cq b { font-size: 17px; } .t2-cq .vi { display: block; color: var(--muted); font-size: 13px; }
.t2-qmark { font-size: 28px; }
.t2-timer { height: 6px; background: #eceff1; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.t2-timer i { display: block; height: 100%; background: linear-gradient(90deg, #66bb6a, #ffca28, #ef5350); animation: t2time 6s linear forwards; transform-origin: left; }
@keyframes t2time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.t2-ans { display: grid; gap: 8px; }
.t2-ans.yn { grid-template-columns: 1fr 1fr; }
.t2-a { font: inherit; border: 0; border-radius: 14px; padding: 12px 10px; cursor: pointer; background: #e3f2fd; box-shadow: 0 3px 0 #90caf9; text-align: center; }
.t2-a b { display: block; font-size: 18px; } .t2-a .vi { display: block; font-size: 12.5px; color: #546e7a; }
.t2-a.yes { background: #e8f5e9; box-shadow: 0 3px 0 #a5d6a7; } .t2-a.no { background: #ffebee; box-shadow: 0 3px 0 #ef9a9a; }
.t2-a:active { transform: translateY(2px); box-shadow: none; }
.t2-fb { border-radius: 14px; padding: 10px 12px; text-align: center; font-size: 16px; }
.t2-fb.ok { background: #e8f5e9; } .t2-fb.no { background: #fff3e0; }
.t2-fb .t2-hl { text-align: left; }
.t2-myq { display: block; font-size: 11.5px; color: #4e7d6c; margin-bottom: 2px; }
.t2-bub.me .t2-pics { display: none; }

/* Người chơi tắt phụ đề tiếng Việt (Hồ sơ → Phụ đề tiếng Việt) */
body.no-vi .vi, body.no-vi #narrator .vi { display: none !important; }
/* Trash to Treasure: nghe lại / xem lại hội thoại, danh dự, tiền bán */
.t2-tools { display: flex; gap: 6px; margin: 4px 0 6px; }
.t2-tools .btn { flex: 1; padding: 6px 4px; font-size: 12.5px; }
.t2-log-all { max-height: 60vh; overflow-y: auto; margin: 8px 0; padding-right: 2px; -webkit-overflow-scrolling: touch; }
.t2-lp { padding: 10px 0 4px; border-bottom: 1px solid #e0e0e0; margin-top: 6px; }
.t2-lp .btn { margin: 4px 4px 0 0; padding: 3px 8px; font-size: 12px; }
.t2-log-all .t2-w small.muted { display: block; font-size: 11px; }
.t2-honor { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.t2-amt { margin-top: 6px; font-size: 15px; color: #8d6e00; }
.t2-oen { display: block; font-weight: 400; font-size: 12.5px; color: #455a64; margin-top: 2px; }
.t2-big2 { font-size: 17px; margin: 6px 0; }

/* Hầm mỏ: tảng đá nứt dần sau mỗi nhát đập, đá vụn văng ra */
.rock .crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #2b2622; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1px 1px 0 rgba(255,255,255,.18)); }
.rock.dmg1 { border-radius: 38% 50% 34% 46%; background: radial-gradient(circle at 35% 30%, #a0968b, #665e55 65%, #46403a); }
.rock.dmg2 { border-radius: 30% 54% 26% 50% / 42% 36% 50% 40%; transform: scale(.92) rotate(-3deg); background: radial-gradient(circle at 38% 34%, #958b80, #5d554d 62%, #3d3833); }
.rock.dmg2 .crack { stroke-width: 3.6; }
.rock.dmg2.shake { animation: shake2 .25s; }
@keyframes shake2 { 25% { transform: scale(.92) translateX(-4px) rotate(-6deg);} 75% { transform: scale(.92) translateX(4px) rotate(0deg);} }
.rock-chip { position: absolute; z-index: 3; background: #7d746a; border-radius: 30% 60% 40% 50%; pointer-events: none; animation: chip .6s ease-out forwards; }
@keyframes chip { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.unl-btn { display: flex !important; align-items: center; gap: 12px; text-align: left; margin-top: 6px; }
.unl-btn .unl-ic { font-size: 30px; width: 40px; flex: none; display: flex; justify-content: center; }
.unl-btn .unl-ic svg, .unl-btn .unl-ic img { width: 34px; height: 34px; }
.unl-btn .unl-tx { flex: 1; display: block; }
.unl-btn .unl-tx small { display: block; font-weight: 400; margin-top: 2px; }

/* Hồ sơ: ảnh đại diện bấm để đổi */
.pf-avatar { position: relative; font-size: 72px; line-height: 1.1; background: none; border: 0; padding: 4px 10px; cursor: pointer; }
.pf-avatar i { position: absolute; right: 0; bottom: 6px; font-size: 18px; font-style: normal; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.av-grid .av { font-size: 32px; aspect-ratio: 1; border: 2px solid transparent; border-radius: 14px; background: #f3efe8; cursor: pointer; padding: 0; }
.av-grid .av.on { border-color: var(--primary, #1e6b5c); background: #e1efe9; }
/* Nút hai dòng: tiếng Anh trên, tiếng Việt dưới (thẳng hàng) */
.btn.two { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; gap: 2px; }
.btn.two small { font-weight: 500; font-size: 12.5px; opacity: .85; }

/* Đăng nhập với Google */
.cl-google { margin: 8px 0 4px; }
.wl-login { border: 2px solid var(--brand); }
.wl-login .cl-google { margin-top: 10px; }
.cl-google #g-btn { min-height: 44px; display: flex; justify-content: center; }
.cl-or { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; color: var(--muted); font-size: 12px; }
.cl-or::before, .cl-or::after { content: ""; flex: 1; height: 1px; background: #ddd; }
/* Kể lại: câu chọn sai rung nhẹ, viền đỏ */
.t2-opt.wrong { border-color: #e53935; background: #ffebee; animation: t2shake .35s; }
@keyframes t2shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.t2-fb small.vi { display: block; margin-top: 2px; }
/* Phân loại: báo đúng / sai rõ ràng */
.fl-say.t2s-ok { background: #e8f5e9; border: 2px solid #43a047; animation: t2glow .5s; }
.fl-say.t2s-no { background: #fff3e0; border: 2px solid #fb8c00; }
.t2s-mark { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.t2s-ok .t2s-mark { color: #2e7d32; } .t2s-no .t2s-mark { color: #e65100; }
.t2s-mark small { font-size: 13px; font-weight: 600; opacity: .8; }
@keyframes t2glow { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.t2-bin.pop { animation: t2pop .45s; border-color: #43a047; }
.t2-bin.shake { animation: t2shake .35s; border-color: #e53935; }
@keyframes t2pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.quiz-pick { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.2); }
.quiz-pick > div { margin-top: 3px; }
/* Ô giải thích từ viết tắt (NHS, A&E…) */
.t2-acr { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fff8e1; color: #5d4037; font-size: 12.5px; line-height: 1.4; text-align: left; }
/* Icon đồ nhặt có huy hiệu nhỏ ở góc (phân biệt các món cùng loại) */
.t2-ic { position: relative; display: inline-block; line-height: 1; }
.t2-bdg { position: absolute; right: -.35em; bottom: -.2em; font-size: .5em; line-height: 1; background: #fff; border-radius: 50%; padding: .12em;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.12); font-weight: normal; }

/* ---------- Bảng xếp hạng, Ủng hộ, Admin, cột hai bên (js/core/social.js) ---------- */
.map-social { gap: 8px; margin: 4px 0 8px; }
.tabs { display: flex; gap: 6px; margin: 8px 0; }
.tabs button { flex: 1; padding: 9px; border-radius: 10px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-weight: 700; }
.tabs button.on { background: var(--brand); color: #fff; }
.lb-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #eee; }
.lb-row:last-child { border-bottom: 0; }
.lb-row.me { background: #ECFDF5; border-radius: 8px; }
.lb-rank { width: 28px; text-align: center; font-weight: 800; }
.lb-av { font-size: 22px; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; color: var(--muted); font-size: 11px; }
.sp-link code { display: block; padding: 8px; background: #f3f4f6; border-radius: 8px; font-size: 12px; word-break: break-all; }
.sp-qr { display: block; width: 100%; max-width: 260px; margin: 8px auto; border-radius: 12px; }
.rail { position: fixed; top: 12px; bottom: 12px; width: min(300px, calc((100vw - 480px) / 2 - 36px)); overflow-y: auto; z-index: 5; }
#rail-l { right: calc(50vw + 256px); }
#rail-r { left: calc(50vw + 256px); }
.rail .card { margin-bottom: 12px; }
.rail .sp-qr { max-width: 200px; }
@media (max-width: 1099px) { .rail { display: none; } }
.ad-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-kpi div { background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ad-kpi b { display: block; font-size: 22px; color: var(--brand); }
.ad-kpi span { font-size: 11px; color: var(--muted); }
.ad-days { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.ad-days div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.ad-days i { display: block; width: 100%; background: #34D399; border-radius: 4px 4px 0 0; min-height: 2px; }
.ad-days b { font-size: 10px; } .ad-days small { font-size: 9px; color: var(--muted); }
.ad-days em { position: absolute; top: 0; font-size: 9px; color: #D97706; font-style: normal; }
.ad-bar { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 6px; font-size: 13px; margin: 4px 0; }
.ad-bar i { display: block; height: 10px; background: #10B981; border-radius: 5px; }
.ad-bar b { text-align: right; }
.ad-table { overflow-x: auto; padding: 6px; }
.ad-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ad-table th, .ad-table td { padding: 5px 4px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.ad-table small { display: block; color: var(--muted); font-size: 10px; }
.rail-qr { display: flex; gap: 6px; margin: 6px 0; }
.rail-qr figure { flex: 1; margin: 0; text-align: center; }
.rail-qr img { width: 100%; border-radius: 8px; display: block; }
.rail-qr figcaption { font-size: 11px; color: var(--muted); margin-top: 2px; }
