/* PHƯƠNG ÁN 2 TRANG CHỦ — "mẹt xoay" (20/11/2026). Trang đứng riêng, không dùng chung CSS trang chủ.
   Màu theo thương hiệu (không xanh, không đen): kem nền · nâu mực · đỏ son · đỏ đậm · vàng nghệ · nâu kraft. */
/* 22/11/2026 anh Long: "màu đậm quá, không chuyên nghiệp" → bỏ viền nâu dày + bóng đổ cứng, dùng viền mảnh + bóng mờ; nền kem nhạt hơn.
   Vẫn đúng bảng màu (đỏ son, vàng, nâu; không xanh, không đen). */
:root {
  --nen: #FFF8EC; --the: #FFFDF8; --muc: #4A2511; --muc-phu: #6B4630; --vien-nhat: #EEDCBC;
  --do: #B23624; --do-dam: #7F1D12; --vang: #F2B705; --kraft: #8B4A1F; --vang-nhat: #FCEFC9;
  --bong: 0 2px 10px rgba(74, 37, 17, .08); --bong-lon: 0 14px 36px rgba(74, 37, 17, .16);
  --to: "Baloo 2", "Nunito", system-ui, sans-serif; --chu: "Nunito", system-ui, "Segoe UI", Roboto, sans-serif;
  --r: clamp(200px, 62vw, 330px);   /* bán kính mẹt */
  --d: clamp(196px, 56vw, 300px);   /* đường kính đĩa */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--muc); font: 600 17px/1.45 var(--chu); overflow-x: hidden; }
a { color: var(--do-dam); }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--do); outline-offset: 3px; }

/* ---------- đầu trang ---------- */
.dau { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 12px 16px; }
.thuong-hieu { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muc); min-width: 0;
  padding: 3px 14px 3px 3px; border: 1px solid var(--vien-nhat); border-radius: 999px; background: var(--the); box-shadow: var(--bong); }
.thuong-hieu img { width: 36px; height: 36px; }
.thuong-hieu span { display: flex; flex-direction: column; line-height: 1.05; }
.thuong-hieu b { font: 800 22px/1 var(--to); color: var(--do-dam); white-space: nowrap; }
.thuong-hieu small { font-size: 14px; font-weight: 700; color: var(--muc-phu); white-space: nowrap; }
@media (max-width: 600px) { .thuong-hieu small { display: none; } }
.dau-nut { display: flex; align-items: center; gap: 8px; }
.nut-vien { min-height: 44px; padding: 0 16px; border: 1px solid var(--vien-nhat); border-radius: 999px; background: var(--the);
  font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: var(--bong); }
.nut-tron { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--vien-nhat); border-radius: 50%;
  background: var(--the); color: var(--muc); cursor: pointer; box-shadow: var(--bong); }
.nut-tron svg { width: 20px; height: 20px; }
.nut-vien:active, .nut-tron:active, .nut-chuyen:active { transform: scale(.96); }

/* ---------- sân khấu: mẹt tre treo + đĩa xôi ---------- */
.san-khau { position: relative; height: calc(var(--r) + var(--d) * .2 + 24px); margin-top: -68px; overflow: hidden; }
/* Mặt bàn gỗ tròn (22/11 thay mẹt tre): vân gỗ thẳng → lúc bàn quay (kieu-2.js toi) nhìn rõ cả mặt bàn xoay.
   Không dùng transform ở đây — JS đặt rotate(). */
.met { position: absolute; left: calc(50% - var(--r)); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 calc(var(--r) - 18px), rgba(74, 37, 17, .14) calc(var(--r) - 18px) calc(var(--r) - 16px), transparent calc(var(--r) - 16px)),
    repeating-linear-gradient(94deg, transparent 0 18px, rgba(90, 48, 20, .07) 18px 20px, transparent 20px 31px, rgba(255, 236, 205, .10) 31px 37px, rgba(90, 48, 20, .05) 37px 38px),
    linear-gradient(160deg, #D2A776, #BE8C58);
  box-shadow: 0 18px 44px rgba(74, 37, 17, .18), inset 0 -5px 0 rgba(74, 37, 17, .10); will-change: transform; }
.loi-moi, .gio-mo { display: none; }
.dia-khung { position: absolute; left: 50%; top: calc(var(--r) - var(--d) * .8); width: var(--d); height: var(--d); transform: translateX(-50%); }
.dia { width: 100%; height: 100%; padding: calc(var(--d) * .06); border-radius: 50%; background: #FFFDF8;
  box-shadow: 0 16px 30px rgba(74, 37, 17, .28), inset 0 0 0 1px rgba(74, 37, 17, .06); }
.dia img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--vien-nhat); background: #FBEFD3; }
/* đĩa giả gắn trên mặt bàn lúc quay — tâm bàn ở giữa .met, JS đặt rotate(góc) translateY(bán kính) */
.dia-gia { position: absolute; left: calc(50% - var(--d) / 2); top: calc(50% - var(--d) / 2); width: var(--d); height: var(--d); will-change: transform; }
/* hơi nóng bốc lên từ đĩa (tắt lúc bàn quay) */
.hoi { position: absolute; left: 50%; top: calc(var(--d) * -.3); width: calc(var(--d) * .5); transform: translateX(-50%);
  color: var(--the); stroke-width: 5; opacity: .9; transition: opacity .25s; }
.dang-quay .hoi { opacity: 0; }
.hoi path { animation: hoi 2.8s ease-in-out infinite; }
.hoi path:nth-child(2) { animation-delay: .9s; }
.hoi path:nth-child(3) { animation-delay: 1.8s; }
@keyframes hoi { 0% { transform: translateY(14px); opacity: 0; } 40% { opacity: .95; } 100% { transform: translateY(-14px); opacity: 0; } }
/* Bé Nếp ngồi cạnh đĩa, nhún nhẹ */
.be-nep { position: absolute; right: calc(var(--d) * -.22); bottom: calc(var(--d) * -.04); width: calc(var(--d) * .36); height: auto;
  animation: nhun 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nhun { 50% { transform: translateY(-5px) rotate(4deg); } }
.nut-chuyen { position: absolute; z-index: 2; top: calc(var(--r) - var(--d) * .45); display: grid; place-items: center;
  width: 48px; height: 48px; border: 1px solid var(--vien-nhat); border-radius: 50%; background: rgba(255, 253, 248, .92); color: var(--muc);
  box-shadow: var(--bong); cursor: pointer; }
.nut-chuyen svg { width: 22px; height: 22px; stroke-width: 2.4; }
.nut-chuyen.truoc { left: 10px; }
.nut-chuyen.sau { right: 10px; }

/* ---------- tên món ---------- */
.mon-chu { max-width: 640px; margin: 0 auto; padding: 4px 20px 0; text-align: center; }
.nhan { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kraft); }
.ten { margin: 2px 0 0; font: 700 clamp(34px, 9vw, 54px)/1.05 var(--to); color: var(--muc); letter-spacing: -.01em; }
.mo-ta { margin: 8px auto 0; max-width: 34ch; color: var(--muc-phu); }
.tang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.tang-nhan { font-weight: 800; font-size: 15px; color: var(--muc); }
.tang-chon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--vien-nhat); border-radius: 999px; background: var(--the);
  font-weight: 800; font-size: 15px; cursor: pointer; }
.chip[aria-checked="true"] { border-color: #D9A520; background: var(--vang-nhat); }
.mua { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.gia { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.gia b { font: 800 32px/1 var(--to); color: var(--do); }
.gia small { margin-top: 4px; font-size: 14px; color: var(--muc-phu); }
.nut-chinh { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--do); color: #FFF; font: 800 18px/1 var(--chu);
  text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px rgba(178, 54, 36, .28); }
.nut-chinh:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(178, 54, 36, .28); }
.nut-chinh:disabled { background: var(--vien-nhat); color: var(--muc-phu); box-shadow: none; cursor: not-allowed; }

/* ---------- hàng đĩa nhỏ ---------- */
.hang-dia { display: flex; justify-content: center; gap: 6px; max-width: 560px; margin: 24px auto 0; padding: 4px 10px 12px; }
.dia-nho { flex: 1 1 0; min-width: 0; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--muc); text-align: center; }
.dia-nho { color: var(--muc-phu); }
.dia-nho img { width: min(64px, 15vw); height: auto; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--the); background: #FBEFD3; object-fit: cover;
  box-shadow: var(--bong); transition: transform .25s, box-shadow .25s; }
.dia-nho[aria-current="true"] { color: var(--muc); }
.dia-nho[aria-current="true"] img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--do), 0 8px 16px rgba(74, 37, 17, .18); }

.cuoi { margin: 24px 0 120px; text-align: center; font-size: 15px; color: var(--muc-phu); }

/* ---------- thanh giỏ + báo ---------- */
.thanh-gio { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; width: min(560px, calc(100% - 24px)); padding: 8px 8px 8px 20px;
  background: var(--the); color: var(--muc); border: 1px solid var(--vien-nhat); border-radius: 999px; box-shadow: var(--bong-lon); font-weight: 800; }
.thanh-gio[hidden] { display: none; }
.thanh-gio span { flex: 1; }
.thanh-gio .nut-chinh { min-height: 46px; box-shadow: none; }
.bao { position: fixed; left: 50%; top: 16px; z-index: 6; transform: translate(-50%, calc(-100% - 24px)); margin: 0; padding: 10px 18px;
  background: var(--muc); color: var(--the); border-radius: 999px; font-weight: 800; transition: transform .25s; pointer-events: none; }
.bao.hien { transform: translate(-50%, 0); }

/* ---------- hộp thực đơn ---------- */
.hop-thuc-don { width: min(640px, calc(100% - 24px)); max-height: calc(100% - 48px); padding: 0 20px 16px; border: 0;
  border-radius: 24px; background: var(--nen); color: var(--muc); box-shadow: 0 24px 60px rgba(74, 37, 17, .25); }
.hop-thuc-don::backdrop { background: rgba(74, 37, 17, .38); }
.hop-dau { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 0 8px; background: var(--nen); }
.hop-dau h2 { margin: 0; font: 800 28px/1 var(--to); color: var(--do-dam); }
.nhom-tieu { margin: 16px 0 8px; font: 800 20px/1.1 var(--to); color: var(--muc); }
.luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.o-mon { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--vien-nhat); border-radius: 16px; background: var(--the); text-align: left; cursor: pointer; }
.o-mon img { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--vien-nhat); background: #FBE8B5; object-fit: cover; }
.o-mon b { font-size: 15px; line-height: 1.2; }
.o-mon span { font: 800 16px/1.2 var(--to); color: var(--do); }
.o-mon.het { opacity: .55; cursor: not-allowed; }
.hop-phu { margin: 16px 0 0; font-size: 14px; color: var(--muc-phu); }

/* ---------- laptop: lời mời trái, giờ mở cửa phải (như reel) ---------- */
@media (min-width: 900px) {
  .san-khau { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .loi-moi { display: block; position: absolute; left: 32px; top: calc(var(--r) * .55); margin: 0; font: 700 26px/1.15 var(--to); color: var(--muc-phu); }
  .loi-moi b { display: block; font-size: 34px; color: var(--do-dam); }
  .gio-mo:not([hidden]) { display: flex; position: absolute; right: 32px; top: calc(var(--r) * .6); max-width: 220px; gap: 8px;
    margin: 0; font-size: 15px; font-weight: 800; color: var(--muc-phu); }
  .gio-mo svg { flex: none; width: 20px; height: 20px; color: var(--do); }
  .nut-chuyen.truoc { left: calc(50% - var(--d) * .5 - 130px); }
  .nut-chuyen.sau { right: calc(50% - var(--d) * .5 - 130px); }
}
@media (prefers-reduced-motion: reduce) {
  .dia, .hoi path, .be-nep { animation: none !important; }
}

/* 20/11/2026 — làm trang chủ: trang.css (nạp trước, để vẽ mục Điểm danh) có vài lớp trùng tên → trả lại kiểu của mẹt xoay */
.mon-chu { display: block; }
.gia { font: inherit; white-space: normal; color: inherit; }
.diem-danh { margin-top: 40px; }
/* Dải vàng "Bản chạy thử" (che-do-thu.js, giống gio.css — trang này không nạp gio.css) */
.bang-thu { position: relative; z-index: 60; margin: 0; padding: 6px 12px; background: var(--vang); color: var(--muc);
  border-bottom: 2px solid var(--muc); font: 800 15px/1.3 var(--chu); text-align: center; }

/* 20/11/2026 — bấm đĩa xôi → đĩa bay ra giữa, nở thành thẻ chi tiết (theo reel). Hoạt hình chạy bằng JS (kieu-2.js: moThe / dongThe). */
.dia[role="button"] { cursor: pointer; transition: transform .2s; }
@media (hover: hover) and (pointer: fine) { .dia[role="button"]:hover { transform: translateY(-4px); } }
.hop-mon { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: transparent; color: var(--muc); overflow: auto; overscroll-behavior: contain; }
.hop-mon[open] { display: grid; place-items: center; }
.hop-mon::backdrop { background: transparent; }
.man-mo { position: fixed; inset: 0; background: rgba(74, 37, 17, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dia.bay { position: fixed; z-index: 2; margin: 0; pointer-events: none; }
.the-mon { position: relative; z-index: 1; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px 20px 18px; border: 0; border-radius: 24px; background: var(--the); box-shadow: 0 24px 60px rgba(74, 37, 17, .25); }
.tm-dong { position: absolute; right: 14px; top: 14px; }
.tm-nhan { margin: 0 52px 2px 0; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kraft); }
.tm-ten { margin: 0 52px 6px 0; font: 700 28px/1.1 var(--to); color: var(--muc); }
.tm-tieu { margin: 14px 0 8px; font: 800 17px/1.2 var(--to); color: var(--muc); }
.tm-phan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tm-phan li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 14px; background: #F8EEDC; font-size: 15px; font-weight: 700; }
.tm-phan li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--do); }
.tm-nuoc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-nuoc button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px;
  border: 1px solid var(--vien-nhat); border-radius: 14px; background: var(--the); font-size: 14px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.tm-nuoc button img { width: 40px; height: 40px; }
.tm-nuoc button[aria-checked="true"] { border-color: #D9A520; background: var(--vang-nhat); }
.tm-chan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--vien-nhat); }
.tm-gia { font: 800 28px/1 var(--to); color: var(--do); }

/* mẫu 051: món bay vào thanh giỏ (kieu-2.js bayVaoGio) */
.bay-gio { position: fixed; left: 0; top: 0; z-index: 7; width: 56px; height: 56px; border-radius: 50%; pointer-events: none;
  background: #FFFDF8 center / 88% no-repeat; box-shadow: 0 6px 16px rgba(74, 37, 17, .3); }
.bay-gio.tron { background: #F2B705; }

/* mẫu 313: cốc nước rót (kieu-2.js veCoc) */
.tm-nuoc-dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tm-coc { width: 34px; height: 48px; flex: none; overflow: visible; }
.tm-coc-vo { fill: none; stroke: #4A2511; stroke-width: 2.5; stroke-linejoin: round; }
.tm-coc-ong { fill: none; stroke: #B23624; stroke-width: 3; stroke-linecap: round; }
.tm-coc-nuoc { transform: translateY(36px); transition: transform .5s ease; }
.tm-coc.day .tm-coc-nuoc { transform: none; }
.tm-coc-tia { fill: #E3C46A; opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.tm-coc.rot .tm-coc-tia { animation: tm-rot .75s ease-out 1; fill: currentColor; }
@keyframes tm-rot { 0% { opacity: 0; transform: scaleY(0); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(40px) scaleY(0); } }

/* 22/11/2026 — dịu màu phần dưới trang chủ (trang.css vẽ băng đỏ đậm + viền nâu dày; chỉ trang này nạp kieu-2.css nên đè ở đây,
   không đụng trang khác): nền mục Điểm danh sáng, chỉ giữ thẻ hạt nếp màu đỏ; chân trang nâu nhạt. Dải "Bản chạy thử" nhạt lại. */
.bang-thu { background: var(--vang-nhat); border-bottom: 1px solid #EBD38F; font-weight: 700; }
.diem-danh { background: #F8EEDC; color: var(--muc); border: 0; padding: 48px 0 56px; }
.diem-danh h2 { color: var(--muc); font-weight: 700; }
.diem-danh .dd-loi, .diem-danh .luat li { color: var(--muc-phu); }
.diem-danh .luat li strong { color: var(--muc); }
.diem-danh .luat li::before { background: var(--the); color: var(--do); border: 1px solid var(--vien-nhat); box-shadow: var(--bong); }
.diem-danh .chu-nho { color: var(--muc-phu); }
.diem-danh .chu-nho a { color: var(--do); }
.diem-danh .dd-gioi-han { color: var(--do); }
.dd-the { color: #FFF4DC; border: 0; box-shadow: 0 18px 40px rgba(127, 29, 18, .22); }
.dd-the .qua { border: 0; }
.dd-the .dd-hat li.co { border-color: transparent; }
.chan { background: #F3E2C7; color: var(--muc); border-top: 1px solid var(--vien-nhat); }
.chan .gioi-thieu-nep { color: var(--muc); }
.chan .chan-ten span, .chan .gioi-thieu-nep strong { color: var(--do); }
.chan .chu-nho { color: var(--muc-phu); }
.chan a { color: var(--do-dam); }
.dd-the .dd-tra-cuu { border: 1px solid rgba(255, 244, 220, .22); }
.dd-the .dd-tra-cuu input { border: 1px solid transparent; }
.dd-the .nut { border: 0; box-shadow: 0 6px 14px rgba(74, 37, 17, .25); }

/* 25/11/2026 — cảm giác app thật trên điện thoại (skill mobile-native): bỏ chớp xám khi chạm, chạm ăn ngay, có độ lún khi bấm */
html { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { -webkit-user-select: none; user-select: none; }
.nut-vien, .nut-tron, .nut-chuyen, .nut-chinh, .o-mon, .tm-nuoc button { transition: transform .16s cubic-bezier(.23, 1, .32, 1), box-shadow .16s; }
.o-mon:not(.het):active, .tm-nuoc button:active { transform: scale(.97); }
.dia-nho:active img { transform: scale(.94); transition-duration: .1s; }
