/* =====================================================================
   Xôi Long Vũ — trang thương hiệu (bản thử)
   Màu, chữ, độ bo: sửa ở :root là cả trang đổi theo.
   KHÔNG dùng: gradient, kính mờ, emoji làm biểu tượng.
   ===================================================================== */
:root {
  /* xanh lá chuối (màu chính) */
  --la: #3A9A3F;
  --la-dam: #26762B;
  --la-sau: #1D5A26;
  --la-sang: #6BBF5E;
  --la-nhat: #DDF0D2;
  /* nếp cái hoa vàng */
  --nep: #FFF7E3;
  --nep-trang: #FFFCF3;
  --nep-dam: #FBE8B5;
  --vang: #F6B92B;
  --vang-dam: #C98B10;
  /* đỏ lạp xưởng (nhấn) */
  --do: #D2412F;
  --do-chu: #B23624;
  --do-dam: #8E2A1C;
  /* mực vẽ + chữ */
  --muc: #2D2A1E;
  --muc-nhat: #5C5643;
  --hong: #F49C8B;
  --trang: #FFFFFF;

  --chu-to: "Baloo 2", "Nunito", system-ui, sans-serif;
  --chu: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vien: 3px;
  --bo: 22px;
  --bo-nho: 14px;
  --khung: 1120px;
  --le: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nep);
  color: var(--muc);
  font-family: var(--chu);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--chu-to); line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--do); outline-offset: 3px; border-radius: 6px; }

.bo-qua {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--muc); color: var(--nep); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.bo-qua:focus { top: 8px; }

.khung { width: 100%; max-width: var(--khung); margin: 0 auto; padding: 0 var(--le); }

/* ---------------- Thanh trên cùng ---------------- */
.dau {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--khung); margin: 0 auto; padding: 12px var(--le);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-hinh { width: 44px; height: 44px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo-hinh { transform: rotate(-10deg) scale(1.08); }
.logo-chu { font-family: var(--chu-to); font-weight: 800; font-size: 1.5rem; color: var(--la-sau); }
.menu-tren { display: none; gap: 6px; }
.menu-tren a {
  font-family: var(--chu-to); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: var(--vien) solid transparent;
  transition: border-color .2s, background .2s;
}
.menu-tren a:hover { border-color: var(--muc); background: var(--nep-trang); }

/* ---------------- Nút kiểu "bấm lún" ---------------- */
.nut {
  --mau-nut: var(--la);
  --mau-moi: var(--la-dam);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 10px 24px;
  font-family: var(--chu-to); font-weight: 800; font-size: 1.2rem; line-height: 1.1;
  color: var(--trang); background: var(--mau-nut);
  border: var(--vien) solid var(--muc); border-radius: 16px;
  box-shadow: 0 5px 0 var(--muc);
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.nut:hover { background: var(--mau-moi); }
.nut:active { transform: translateY(5px); box-shadow: 0 0 0 var(--muc); }
.nut-phu { background: var(--nep-trang); color: var(--muc); }
.nut-phu:hover { background: var(--nep-dam); }
.nut-vang { background: var(--vang); color: var(--muc); }
.nut-vang:hover { background: #FFCB4F; }
.nut-vien-sang {
  background: transparent; color: var(--nep); border-color: var(--nep); box-shadow: 0 5px 0 var(--nep);
}
.nut-vien-sang:hover { background: var(--la-dam); }
.nut-vien-sang:active { box-shadow: 0 0 0 var(--nep); }
.nut-hang { display: flex; flex-wrap: wrap; gap: 14px; }

/* nhãn dán nghiêng, bóng in lệch */
.nhan-dan {
  display: inline-block; transform: rotate(-4deg);
  background: var(--do); color: var(--trang);
  font-family: var(--chu-to); font-weight: 800; font-size: 1.05rem; line-height: 1;
  padding: 10px 16px 8px; border: var(--vien) solid var(--muc); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--muc);
}

/* ---------------- Đầu trang ---------------- */
.mo-dau {
  max-width: var(--khung); margin: 0 auto; padding: 8px var(--le) 40px;
  display: grid; gap: 8px;
  grid-template-areas: "chu" "hinh" "them";
}
.mo-dau-chu { grid-area: chu; position: relative; z-index: 2; }
.mo-dau-hinh { grid-area: hinh; position: relative; width: min(100%, 420px); margin-left: auto; aspect-ratio: 400 / 460; }
.mo-dau-them { grid-area: them; display: grid; gap: 22px; }

.mo-dau-chu .nhan-dan { margin: 6px 0 14px; }
.ten-quan {
  font-size: clamp(4.6rem, 25vw, 9.5rem); line-height: .82;
  color: var(--la-sau); letter-spacing: -0.03em;
  padding-top: .12em; /* chừa chỗ cho dấu "ũ" */
}
.ten-phu {
  font-family: var(--chu-to); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--do-chu); margin-top: 6px;
}
.khau-hieu { margin-top: 14px; }
.khau-hieu span {
  display: inline-block; font-family: var(--chu-to); font-weight: 800;
  font-size: clamp(1.45rem, 6.2vw, 2rem); line-height: 1.1;
  background: var(--vang); color: var(--muc);
  padding: 6px 14px 4px; border-radius: 12px; transform: rotate(-1.5deg);
  border: var(--vien) solid var(--muc);
}
.gioi-thieu-nep {
  font-size: 1.08rem; font-weight: 700; line-height: 1.4; max-width: 36ch;
  padding: 10px 14px; background: var(--nep-trang); border: 2px solid var(--muc); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--muc);
}
.gioi-thieu-nep strong { color: var(--la-sau); }
.mo-dau-loi { font-size: 1.12rem; max-width: 34ch; color: var(--muc); }
.the-nho { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.the-nho li {
  font-size: .95rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--muc); background: var(--nep-trang);
}

.nen-la { position: absolute; inset: 0; width: 100%; height: 100%; }
.be-nep-nut {
  position: absolute; left: 2%; bottom: 0; width: 96%;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.be-nep { width: 100%; height: auto; overflow: visible; }
.loi-nep {
  position: absolute; left: -2%; top: 10%;
  font-family: var(--chu-to); font-weight: 800; font-size: 1.15rem; line-height: 1;
  background: var(--nep-trang); border: var(--vien) solid var(--muc); border-radius: 16px;
  padding: 10px 14px 8px; transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--muc);
}
.loi-nep::after {
  content: ""; position: absolute; right: 18px; bottom: -12px; width: 18px; height: 18px;
  background: var(--nep-trang); border-right: var(--vien) solid var(--muc); border-bottom: var(--vien) solid var(--muc);
  transform: skewX(30deg) rotate(45deg);
}
.sao-lap-lanh { position: absolute; width: 26px; height: 26px; }
.sao-lap-lanh.s1 { right: 4%; top: 42%; }
.sao-lap-lanh.s2 { left: 6%; top: 58%; width: 18px; height: 18px; }
.sao-lap-lanh.s3 { right: 30%; top: 2%; width: 20px; height: 20px; }

/* ---- Bé Nếp: chuyển động (rồng con bằng xôi) ----
   Ảnh đứng yên (máy tắt hiệu ứng): Bé Nếp đang phun hơi. Có chuyển động: nảy, vẫy tay, chớp mắt,
   vỗ cánh, ve vẩy đuôi, cứ 6 giây phun một làn hơi xôi. */
.bn-nguoi, .bn-bong, .bn-tay-vay, .bn-mat, .bn-mat-vui, .bn-canh, .bn-duoi, .bn-ma { transform-box: fill-box; }
.bn-nguoi { transform-origin: 50% 100%; animation: nep-nay 2.6s cubic-bezier(.45,0,.55,1) infinite; }
.bn-bong { transform-origin: 50% 50%; animation: bong-nay 2.6s cubic-bezier(.45,0,.55,1) infinite; }
.bn-tay-vay { transform-origin: 50% 95%; animation: vay-tay 3.2s ease-in-out infinite; }
.bn-mat { transform-origin: 50% 50%; animation: chop-mat 4.6s infinite; }
.bn-mat-vui { opacity: 0; }
.bn-canh-trai { transform-origin: 100% 100%; animation: canh-trai 1.5s ease-in-out infinite alternate; }
.bn-canh-phai { transform-origin: 0% 100%; animation: canh-phai 1.5s ease-in-out infinite alternate; }
.bn-duoi { transform-origin: 0% 100%; animation: duoi-ve 2.2s ease-in-out infinite alternate; }
.bn-mieng-cuoi { opacity: 0; animation: mieng-cuoi 6s infinite; }
.bn-mieng-phun { opacity: 1; animation: mieng-phun 6s infinite; }
.bn-ma { transform-origin: 50% 50%; animation: ma-phong 6s infinite; }
.bn-hoi-phun { transform-box: view-box; transform-origin: 0 0; animation: hoi-phun 6s cubic-bezier(.2,.7,.3,1) infinite; }
.loi-nep { animation: loi-lac 3.2s ease-in-out infinite; }
.sao-lap-lanh { animation: sao-nhay 2.2s ease-in-out infinite; }
.sao-lap-lanh.s2 { animation-delay: -.8s; }
.sao-lap-lanh.s3 { animation-delay: -1.5s; }

/* bấm vào Bé Nếp: nhảy lên, mắt cười, phun ngay một làn hơi */
.be-nep-nut.vui .bn-nguoi { animation: nep-nhay .7s cubic-bezier(.34,1.56,.64,1) 1; }
.be-nep-nut.vui .bn-mat { opacity: 0; animation: none; }
.be-nep-nut.vui .bn-mat-vui { opacity: 1; }
.be-nep-nut.vui .bn-mieng-cuoi { opacity: 0; animation: none; }
.be-nep-nut.vui .bn-mieng-phun { opacity: 1; animation: none; }
.be-nep-nut.vui .bn-hoi-phun { animation: hoi-ngay 1.3s cubic-bezier(.2,.7,.3,1) 1 both; }

@keyframes nep-nay {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-12px) scale(.98, 1.03); }
  52% { transform: translateY(0) scale(1.04, .96); }
  62% { transform: translateY(0) scale(1, 1); }
}
@keyframes bong-nay {
  0%, 100% { transform: scale(1); opacity: .16; }
  30% { transform: scale(.82); opacity: .1; }
  52% { transform: scale(1.06); opacity: .18; }
}
@keyframes nep-nhay {
  0% { transform: translateY(0) scale(1.06, .92); }
  40% { transform: translateY(-46px) scale(.96, 1.06) rotate(-4deg); }
  75% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes vay-tay {
  0%, 55%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-22deg); }
  20% { transform: rotate(6deg); }
  30% { transform: rotate(-22deg); }
  40% { transform: rotate(6deg); }
}
@keyframes chop-mat {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(.1); }
  96% { transform: scaleY(1); }
}
@keyframes canh-trai { from { transform: rotate(6deg); } to { transform: rotate(-8deg); } }
@keyframes canh-phai { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes duoi-ve { from { transform: rotate(-4deg); } to { transform: rotate(7deg); } }
@keyframes mieng-cuoi { 0%, 44% { opacity: 1; } 46%, 82% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes mieng-phun { 0%, 44% { opacity: 0; } 46%, 82% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes ma-phong { 0%, 40%, 56%, 100% { transform: scale(1); } 46% { transform: scale(1.3, 1.15); } }
@keyframes hoi-phun {
  0%, 48% { opacity: 0; transform: scale(.05); }
  52% { opacity: 1; transform: scale(.45); }
  64% { opacity: 1; transform: scale(1); }
  84% { opacity: 0; transform: translate(14px, -16px) scale(1.06); }
  100% { opacity: 0; transform: scale(.05); }
}
@keyframes hoi-ngay {
  0% { opacity: 0; transform: scale(.05); }
  15% { opacity: 1; transform: scale(.5); }
  45% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: translate(14px, -16px) scale(1.1); }
}
@keyframes loi-lac {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-5px); }
}
@keyframes sao-nhay {
  0%, 100% { transform: scale(.7) rotate(0deg); }
  50% { transform: scale(1.15) rotate(20deg); }
}

/* khuất khỏi màn hình: dừng chuyển động cho máy yếu đỡ nặng (trang.js gắn lớp) */
.tam-dung, .tam-dung * { animation-play-state: paused !important; }

/* ---------------- Băng chữ chạy ---------------- */
/* khung bọc để băng nghiêng không làm trang cuộn ngang */
.bang-chay-boc { overflow: hidden; padding: 10px 0; margin-top: -10px; position: relative; z-index: 3; }
.bang-chay {
  background: var(--la); color: var(--trang);
  border-top: var(--vien) solid var(--muc); border-bottom: var(--vien) solid var(--muc);
  overflow: hidden; transform: rotate(-1.2deg); margin: 0 -12px;
}
.bang-chay-ruot {
  display: flex; align-items: center; gap: 16px; width: max-content;
  padding: 12px 0; animation: bang-chay 38s linear infinite;
  font-family: var(--chu-to); font-weight: 800; font-size: 1.3rem; white-space: nowrap;
}
.bang-chay-ruot svg { width: 22px; height: 22px; flex: none; }
@keyframes bang-chay { to { transform: translateX(-50%); } }

/* ---------------- Câu chuyện buổi sáng ---------------- */
.buoi-sang { background: var(--nep-trang); padding: 64px 0 56px; margin-top: -8px; }
.dau-muc h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); color: var(--la-sau); }
.dau-muc-co-nep { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 36px; }
.nep-dan-chuyen { width: 84px; height: 84px; flex: none; animation: nep-lac 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nep-lac { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
.bong-thoai {
  display: inline-block; margin-top: 10px; position: relative;
  background: var(--la-nhat); border: 2px solid var(--muc); border-radius: 14px; padding: 6px 12px;
  font-weight: 700;
}

.duong-sang { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 28px; }
.duong-sang::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 0;
  border-left: 4px dashed var(--muc); opacity: .35;
}
.buoc { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.buoc::before {
  content: ""; position: absolute; left: -28px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: var(--nep-trang); border: var(--vien) solid var(--muc); border-radius: 50%;
  transition: background .3s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.buoc.da-den::before { background: var(--vang); transform: scale(1.2); }
.buoc-hinh {
  width: 112px; height: 112px; border: var(--vien) solid var(--muc); border-radius: 28px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: 4px 4px 0 var(--muc);
}
.buoc:nth-child(odd) .buoc-hinh { transform: rotate(-3deg); }
.buoc:nth-child(even) .buoc-hinh { transform: rotate(3deg); }
.buoc-hinh-vang { background: var(--nep-dam); }
.buoc-hinh-la { background: var(--la-nhat); }
.buoc-hinh-nep { background: var(--la-dam); }
.buoc-hinh-do { background: #FAD9CF; }
.buoc.da-den .buoc-hinh { animation: o-nay .6s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes o-nay { 0% { scale: .92; } 60% { scale: 1.06; } 100% { scale: 1; } }
.lottie { width: 100%; height: 100%; position: relative; }
.lottie > svg.du-phong { width: 70%; height: 70%; margin: 15%; }
.lottie.da-tai > svg.du-phong { display: none; }
.nep-buoc { width: 78px; height: 78px; position: relative; z-index: 1; margin-top: 18px; }
.dia-buoc { width: 88%; height: auto; position: relative; z-index: 1; margin-top: 30px; }
.buoc-hinh-nep .lottie-hoi { position: absolute; left: 30%; top: -6%; width: 40%; height: 55%; z-index: 2; }
.dong-ho { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; z-index: 2; }
.gio {
  display: inline-block; font-family: var(--chu-to); font-weight: 800; font-size: 1.05rem; line-height: 1;
  background: var(--muc); color: var(--nep); padding: 6px 10px 4px; border-radius: 8px; margin-bottom: 8px;
}
.buoc-chu h3 { font-size: 1.45rem; margin-bottom: 6px; color: var(--muc); }
.buoc-chu p:not(.gio) { color: var(--muc-nhat); font-size: 1.02rem; }

.nguyen-lieu { margin-top: 56px; }
.nguyen-lieu h3 { font-size: 1.6rem; margin-bottom: 18px; color: var(--do-chu); }
.nguyen-lieu-ds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nguyen-lieu-ds li {
  display: flex; align-items: center; gap: 10px;
  background: var(--nep); border: 2px solid var(--muc); border-radius: 999px; padding: 6px 14px 6px 6px;
  font-weight: 800; font-size: .98rem; line-height: 1.15;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nguyen-lieu-ds li:nth-child(odd) { transform: rotate(-1.5deg); }
.nguyen-lieu-ds li:nth-child(even) { transform: rotate(1.5deg); }
.nguyen-lieu-ds li:hover { transform: rotate(0) scale(1.05); }
.nguyen-lieu-ds svg { width: 48px; height: 48px; flex: none; background: var(--nep-trang); border-radius: 50%; border: 2px solid var(--muc); padding: 3px; }

/* ---------------- Thực đơn ---------------- */
.thuc-don { padding: 64px 0 72px; }
.dau-muc-thuc-don { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 26px; }
.nhan-dan-nho { font-size: .95rem; transform: rotate(3deg); background: var(--vang); color: var(--muc); }
.nhom-mon { font-size: 1.7rem; color: var(--do-chu); margin: 8px 0 14px; }
.luoi-mon { display: grid; gap: 18px; }
.mon {
  position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px;
  padding: 14px 16px; border: var(--vien) solid var(--muc); border-radius: var(--bo);
  background: var(--nep-trang); box-shadow: 5px 5px 0 var(--muc);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  cursor: default; outline-offset: 4px;
}
.mon:nth-child(odd) { transform: rotate(-.8deg); }
.mon:nth-child(even) { transform: rotate(.8deg); }
.mon:hover, .mon:focus-visible { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 8px 10px 0 var(--muc); }
.mon:nth-child(even):hover, .mon:nth-child(even):focus-visible { transform: translateY(-5px) rotate(1.5deg); }
.mon-hinh { width: 112px; height: auto; transform-origin: 50% 80%; }
.mon:hover .mon-hinh, .mon:focus-visible .mon-hinh, .mon.cham .mon-hinh { animation: mon-nay .7s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes mon-nay {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.08, .92) rotate(-4deg); }
  60% { transform: scale(.96, 1.06) translateY(-6px) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.mon-chu h4 { font-size: 1.35rem; line-height: 1.1; margin-bottom: 4px; }
.mon-chu p { color: var(--muc-nhat); font-size: .98rem; line-height: 1.35; }
.gia {
  position: absolute; right: -10px; top: -14px;
  font-family: var(--chu-to); font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.gia span {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--do); color: var(--trang); border: var(--vien) solid var(--muc);
  transform: rotate(10deg); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.mon:hover .gia span, .mon:focus-visible .gia span, .mon.cham .gia span { transform: rotate(-12deg) scale(1.1); }
.gia-chua span { width: auto; height: auto; border-radius: 12px; padding: 8px 10px 6px; font-size: .95rem; background: var(--nep-dam); color: var(--muc); }
.mon-noi { background: var(--nep-dam); }
.mon-vang { background: #FFEFC2; }
.mon-la { background: var(--la-nhat); }
.mon-hong { background: #FBE1D8; }
.mon-uong { grid-template-columns: 76px 1fr; padding-right: 18px; }
.mon-uong .mon-hinh { width: 76px; }
.ghi-chu-mon {
  margin: 4px 0 40px; align-self: center; padding: 12px 16px; border: 2px dashed var(--muc); border-radius: var(--bo-nho);
  background: var(--nep-trang); font-size: 1.02rem;
}
.combo {
  margin-top: 34px; display: flex; align-items: center; gap: 18px;
  background: var(--la); color: var(--trang); border: var(--vien) solid var(--muc); border-radius: var(--bo);
  padding: 18px 20px; box-shadow: 5px 5px 0 var(--muc); transform: rotate(-1deg);
}
.combo h3 { font-size: 1.6rem; }
.combo p { font-size: 1.05rem; }
.combo-cong {
  flex: none; font-family: var(--chu-to); font-weight: 800; font-size: 2rem; line-height: 1;
  background: var(--vang); color: var(--muc); border: var(--vien) solid var(--muc); border-radius: 50%;
  width: 86px; height: 86px; display: grid; place-items: center; transform: rotate(-10deg);
}

/* ---------------- Điểm danh cùng Bé Nếp ---------------- */
.diem-danh {
  background: var(--la-sau); color: var(--nep); padding: 72px 0 80px;
  border-top: var(--vien) solid var(--muc); border-bottom: var(--vien) solid var(--muc);
}
.dd-khung { display: grid; gap: 28px; grid-template-areas: "tieu" "the" "luat"; }
.dd-tieu { grid-area: tieu; }
.dd-the { grid-area: the; }
.dd-luat { grid-area: luat; }
.diem-danh h2 { font-size: clamp(2.3rem, 9.5vw, 3.8rem); color: var(--nep); }
.khau-hieu-toi { margin: 14px 0 0; }
.dd-loi { margin-top: 18px; font-size: 1.1rem; color: #E9F1DF; max-width: 40ch; }
.luat { margin: 0; padding: 0; list-style: none; counter-reset: luat; display: grid; gap: 14px; }
.luat li {
  counter-increment: luat; position: relative; padding-left: 52px; font-size: 1.08rem; min-height: 38px;
  color: #E9F1DF;
}
.luat li strong { color: var(--trang); }
.luat li::before {
  content: counter(luat); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--chu-to); font-weight: 800; font-size: 1.3rem; line-height: 1;
  background: var(--vang); color: var(--muc); border: 2px solid var(--muc);
}
.chu-nho { font-size: .9rem; font-weight: 600; }
.diem-danh .chu-nho { margin-top: 12px; color: #C7E6B8; max-width: 52ch; }
.diem-danh .dd-gioi-han { margin-top: 20px; color: var(--vang); font-weight: 800; font-size: 1rem; }

/* thẻ tích hạt nếp */
.dd-the {
  position: relative;
  background: var(--la-dam); border: var(--vien) solid var(--muc); border-radius: 28px;
  padding: 20px 18px 22px; box-shadow: 6px 6px 0 var(--muc); display: grid; gap: 16px;
}
.dd-dau { display: flex; align-items: center; gap: 14px; }
.dd-nep { width: 92px; height: 92px; flex: none; transform-origin: 50% 100%; }
.dd-nep.bung { animation: nep-bung .5s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes nep-bung {
  0% { transform: scale(1); }
  35% { transform: scale(1.14, .9) translateY(3px); }
  70% { transform: scale(.95, 1.08) translateY(-6px); }
  100% { transform: scale(1); }
}
.dd-dem { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dd-so { font-family: var(--chu-to); font-weight: 800; font-size: 4.6rem; line-height: .9; color: var(--vang); display: inline-block; }
.dd-so.nay { animation: so-nay .45s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes so-nay { 0% { transform: scale(1); } 40% { transform: scale(1.35) translateY(-6px); } 100% { transform: scale(1); } }
.dd-don-vi { font-family: var(--chu-to); font-weight: 700; font-size: 1.35rem; }
.dd-muc { font-weight: 800; color: var(--vang); font-size: 1.05rem; }
.dd-nhan { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: .95rem; color: #E9F1DF; margin-bottom: 10px; }
.dd-nhan span:last-child { color: var(--vang); }
.dd-the[data-giai-doan="7"] .dd-o-30, .dd-the[data-giai-doan="30"] .dd-o-7 { display: none; }
.dd-hat {
  list-style: none; margin: 0; padding: 14px 12px; display: grid; gap: 8px;
  background: var(--la-sau); border: 2px dashed rgba(255, 247, 227, .45); border-radius: 18px;
}
.dd-hat-7 { grid-template-columns: repeat(7, 1fr); }
.dd-hat-30 { grid-template-columns: repeat(10, 1fr); gap: 7px 6px; padding: 12px 10px; }
/* mỗi ô là một hạt nếp: trống = viền đứt, đã điểm danh = hạt trắng ngà có viền mực */
.dd-hat li {
  aspect-ratio: 5 / 8; border-radius: 50%; position: relative;
  border: 3px dashed rgba(255, 247, 227, .55); transform: rotate(-14deg);
}
.dd-hat li:nth-child(even) { transform: rotate(12deg); }
.dd-hat li.co { background: var(--nep-trang); border: 3px solid var(--muc); }
.dd-hat li.co::after {
  content: ""; position: absolute; left: 22%; top: 15%; width: 28%; height: 22%;
  border-radius: 50%; background: #fff;
}
.dd-hat-30 li, .dd-hat-30 li.co { border-width: 2px; }
.dd-hat-30 li.moc { outline: 2px solid var(--vang); outline-offset: 2px; }
.dd-hat-30 li:nth-child(30) { outline: 3px solid var(--vang); outline-offset: 2px; }
.dd-hat li.moi { animation: dong-dau .5s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes dong-dau { 0% { scale: 1.7; } 60% { scale: .88; } 100% { scale: 1; } }
/* làn hơi nhỏ Bé Nếp phun vào ô (trang.js tạo rồi xoá) */
.hoi-bay { position: absolute; left: 0; top: 0; width: 44px; height: 32px; pointer-events: none; z-index: 5; }
.hoi-bay svg { width: 100%; height: 100%; display: block; }
.nut-hang-dd { gap: 12px; }
.nut-hang-dd .nut { min-height: 50px; padding: 8px 20px; font-size: 1.1rem; }
.qua {
  position: relative; min-height: 84px; display: flex; align-items: center; gap: 10px;
  background: var(--nep); color: var(--muc); border: var(--vien) solid var(--muc); border-radius: 18px;
  padding: 10px 14px 10px 8px;
}
.qua.co-qua { animation: o-nay .6s cubic-bezier(.34,1.56,.64,1) 1; background: var(--nep-trang); }
.lottie-phao { width: 88px; height: 88px; flex: none; }
.qua-chu { font-family: var(--chu-to); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }

/* ---- Đợt 2: hạt thật của khách + ô "Xem hạt nếp của bạn" ---- */
.dd-ban-co { width: 100%; font-family: var(--chu-to); font-weight: 700; font-size: 1.1rem; color: #E9F1DF; }
.dd-sdt { font-weight: 700; font-size: .95rem; color: #E9F1DF; font-variant-numeric: tabular-nums; margin-top: -8px; }
.dd-tra-cuu {
  display: grid; gap: 6px; padding: 14px; background: var(--la-sau); border: 2px solid var(--muc); border-radius: 18px;
}
.dd-tra-cuu-tieu { font-family: var(--chu-to); font-weight: 800; font-size: 1.3rem; color: var(--nep); }
.dd-tra-cuu label { margin-top: 6px; font-weight: 800; font-size: 1rem; color: var(--nep); }
.dd-tra-cuu label span { font-weight: 600; color: #C7E6B8; }
.dd-tra-cuu input {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: 10px 12px;
  border: var(--vien) solid var(--muc); border-radius: 14px; background: var(--nep-trang); color: var(--muc);
  font: 700 17px/1.3 var(--chu);
}
.dd-tra-cuu input:focus { outline: 3px solid var(--vang); outline-offset: 1px; }
.dd-tra-cuu .nut { margin-top: 10px; min-height: 52px; justify-content: center; }
.dd-tra-cuu-loi { padding: 8px 10px; border-radius: 10px; background: var(--nep); color: var(--do-chu); font-weight: 800; font-size: .95rem; }
.dd-tra-cuu-phu { margin-top: 4px; color: #C7E6B8; font-size: .88rem; font-weight: 600; }
.dd-quen {
  justify-self: start; min-height: 44px; padding: 6px 2px; border: 0; background: none; color: #E9F1DF;
  font: 700 .95rem/1 var(--chu); text-decoration: underline; cursor: pointer;
}
.dd-the[data-che-do="dang-tai"] .dd-o-7, .dd-the[data-che-do="dang-tai"] .dd-o-30 { opacity: .5; }

/* ---------------- Theo dõi ---------------- */
.theo-doi { background: var(--vang); padding: 64px 0 0; border-bottom: var(--vien) solid var(--muc); overflow: hidden; }
.theo-doi-khung { display: grid; gap: 10px; }
.theo-doi-khung > div { padding-bottom: 48px; }
.theo-doi h2 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); margin-bottom: 12px; }
.theo-doi p { font-size: 1.1rem; max-width: 40ch; margin-bottom: 22px; }
.nut-mxh { background: var(--nep-trang); color: var(--muc); }
.nut-mxh:hover { background: var(--nep); }
.nut-mxh svg { width: 22px; height: 22px; }
.nut-mxh[aria-disabled="true"] { cursor: default; }
.sap-co {
  font-family: var(--chu); font-size: .78rem; font-weight: 800; line-height: 1;
  background: var(--do); color: var(--trang); padding: 4px 7px 3px; border-radius: 8px; transform: rotate(-4deg);
}
.nep-vay-chao { width: 170px; height: 170px; justify-self: end; margin-bottom: -38px; animation: nep-lac 3s ease-in-out infinite; transform-origin: 50% 100%; }

/* ---------------- Chân trang ---------------- */
.chan { background: var(--muc); color: var(--nep); padding: 40px 0 48px; }
.chan .khung { display: grid; gap: 8px; }
.chan-ten { font-family: var(--chu-to); font-weight: 800; font-size: 1.6rem; }
.chan-ten span { color: var(--vang); }
.chan .chu-nho { color: #D9D3BE; }
.ghi-cong { max-width: 80ch; }


/* ---- chỉnh sau khi soi ảnh chụp ---- */
.mon-chu { padding-right: 46px; }
.luoi-xoi .mon:nth-child(even) { grid-template-columns: 1fr 120px; }
.luoi-xoi .mon:nth-child(even) .mon-hinh { order: 2; }
.luoi-xoi .mon:nth-child(even) .mon-chu { padding-right: 0; }
.luoi-xoi .mon { grid-template-columns: 120px 1fr; }
.luoi-xoi .mon-hinh { width: 120px; }
.luoi-uong { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.luoi-uong .mon { grid-template-columns: 1fr; justify-items: start; gap: 8px; padding: 14px 12px 16px; }
.luoi-uong .mon-chu { padding-right: 0; }
.luoi-uong .mon-chu h4 { font-size: 1.15rem; }
.luoi-uong .mon-hinh { width: 64px; }
.luoi-uong .gia span { width: 54px; height: 54px; font-size: 1.15rem; }
.luoi-uong .gia-chua span { width: auto; height: auto; font-size: .82rem; }
.nguyen-lieu-ds li:first-child { grid-column: 1 / -1; }
.nguyen-lieu-ds svg { width: 56px; height: 56px; }
.buoc-hinh-nep .lottie-hoi { left: 22%; top: -14%; width: 56%; height: 66%; }

/* =====================================================================
   Máy tính bảng / máy tính
   ===================================================================== */
@media (min-width: 560px) {
  .nguyen-lieu-ds { grid-template-columns: repeat(3, 1fr); }
  .nguyen-lieu-ds li:first-child { grid-column: auto; }
}
@media (min-width: 760px) {
  :root { --le: 28px; }
  .menu-tren { display: flex; }
  .mo-dau {
    grid-template-columns: 1.05fr 1fr; grid-template-areas: "chu hinh" "them hinh";
    align-items: center; column-gap: 32px; padding-top: 24px; padding-bottom: 64px;
  }
  .mo-dau-chu { align-self: end; }
  .mo-dau-them { align-self: start; margin-top: 18px; }
  .mo-dau-hinh { width: 100%; max-width: 500px; margin: 0 0 0 auto; }
  .luoi-xoi { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .duong-sang { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 34px 48px; }
  .duong-sang::before { display: none; }
  .buoc::before { display: none; }
  .buoc:nth-child(even) { transform: translateY(46px); }
  .buoc-hinh { width: 132px; height: 132px; }
  .buoc { grid-template-columns: 132px 1fr; }
  .nep-buoc { width: 92px; height: 92px; }
  .dd-khung { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "tieu the" "luat the"; align-items: start; gap: 28px 48px; }
  .theo-doi-khung { grid-template-columns: 1fr auto; align-items: end; }
  .nep-vay-chao { width: 220px; height: 220px; }
}
@media (min-width: 1040px) {
  .luoi-xoi { grid-template-columns: 1fr 1fr; }
  .luoi-xoi .ghi-chu-mon { margin: 0; }
  .luoi-xoi { margin-bottom: 36px; }
  .luoi-xoi .mon-noi { grid-row: span 2; grid-template-columns: 1fr; align-content: center; padding: 24px; }
  .luoi-xoi .mon-noi .mon-hinh { width: 100%; max-width: 280px; }
  .luoi-xoi .mon-noi h4 { font-size: 1.8rem; }
  .luoi-uong { grid-template-columns: repeat(4, 1fr); }
  .luoi-uong .mon { grid-template-columns: 1fr; justify-items: start; }
  .luoi-uong .mon-hinh { width: 84px; }
  .buoc-chu h3 { font-size: 1.6rem; }
  .gia span { width: 72px; height: 72px; font-size: 1.45rem; }
  /* buổi sáng: 4 bước nằm ngang như một trục thời gian */
  .duong-sang { grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
  .duong-sang::before { display: block; left: 66px; right: 66px; top: 66px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 4px dashed var(--muc); }
  .buoc { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .buoc:nth-child(even) { transform: translateY(28px); }
  .buoc-chu h3 { font-size: 1.45rem; }
  /* nguyên liệu: 5 ô dọc */
  .nguyen-lieu-ds { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .nguyen-lieu-ds li { flex-direction: column; align-items: flex-start; border-radius: 22px; padding: 14px; gap: 10px; font-size: 1.05rem; }
  .nguyen-lieu-ds svg { width: 72px; height: 72px; }
}

/* =====================================================================
   Người dùng chọn "giảm chuyển động": tắt hết, giữ nguyên nội dung
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:not(.ep-chuyen-dong) { scroll-behavior: auto; }
  html:not(.ep-chuyen-dong) *, html:not(.ep-chuyen-dong) *::before, html:not(.ep-chuyen-dong) *::after { animation: none !important; transition-duration: .01ms !important; }
  html:not(.ep-chuyen-dong) .bang-chay-ruot { width: auto; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; padding: 12px 20px; font-size: 1.15rem; }
  html:not(.ep-chuyen-dong) .bang-chay-ruot > :nth-child(n+13) { display: none; }
}

/* =====================================================================
   GỘP VỚI APP ĐẶT MÓN (08/10/2026): thực đơn đọc /api/menu, nút "+", giỏ dính đáy (gio.css)
   ===================================================================== */
[hidden] { display: none !important; }
.kho-hinh { position: absolute; width: 0; height: 0; overflow: hidden; }

/* nút quay lại đơn vừa đặt (đầu trang) */
.don-cua-ban {
  margin-left: auto;
  font-family: var(--chu-to); font-weight: 800; font-size: 1rem; line-height: 1; text-decoration: none;
  padding: 10px 14px 8px; border: var(--vien) solid var(--muc); border-radius: 999px;
  background: var(--vang); color: var(--muc); box-shadow: 0 3px 0 var(--muc); white-space: nowrap;
}

.td-trang-thai { padding: 18px 0; font-size: 1.05rem; }
.td-trang-thai .nut { margin-top: 12px; }
.td-km {
  margin: 18px 0 0; padding: 12px 16px; border: var(--vien) solid var(--muc); border-radius: var(--bo-nho);
  background: var(--vang); font-family: var(--chu-to); font-weight: 800; font-size: 1.15rem; line-height: 1.2;
}
.td-ban { margin-top: 30px; font-size: 1.02rem; }
.td-ban a { color: var(--la-sau); font-weight: 800; }

/* khối giới thiệu combo: nhãn dán "kèm đồ uống giảm 5k" thay cho "+10k" */
.combo { margin: 0 0 22px; }
.combo-cong {
  width: auto; height: auto; max-width: 9.5em; padding: 10px 12px 8px; border-radius: 16px;
  font-size: 1.15rem; line-height: 1.05; text-align: center; transform: rotate(-6deg);
}

/* ảnh món (tranh vẽ Bé Nếp hoặc ảnh thật public/anh/<MÃ>.jpg) */
img.mon-hinh {
  width: 112px; height: auto; aspect-ratio: 1; object-fit: cover;
  border: var(--vien) solid var(--muc); border-radius: 18px; background: var(--nep-dam);
}
.luoi-xoi img.mon-hinh { width: 120px; }
.luoi-uong img.mon-hinh { width: 76px; border-radius: 14px; }
.mon-chu { display: flex; flex-direction: column; align-self: stretch; }
.mon-them { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; min-height: 46px; }
.luoi-uong .mon-chu { width: 100%; }

/* combo dựng sẵn: ảnh ghép xôi + nước ở trên */
.luoi-combo { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
.mon-combo { grid-template-columns: 1fr; gap: 10px; background: var(--la-nhat); padding: 14px 14px 12px; }
.mon-combo img.mon-hinh { width: 100%; max-width: 360px; aspect-ratio: 3 / 2; }
.mon-combo .mon-chu { padding-right: 0; }
.mon-combo .mon-chu h4 { font-size: 1.5rem; }
.mon-combo .mon-them { justify-content: space-between; }
.td-tk {
  font-family: var(--chu-to); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 7px 10px 5px; border-radius: 10px; background: var(--trang); border: 2px solid var(--muc); color: var(--do-chu);
}

/* nhãn "Bé Nếp gợi ý" / "Bán chạy nhất tuần" (máy chủ chọn, không bịa) */
.nhan-goi-y {
  position: absolute; left: 14px; top: -16px; z-index: 2;
  font-family: var(--chu-to); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 8px 12px 6px; border: var(--vien) solid var(--muc); border-radius: 12px;
  background: var(--vang); color: var(--muc); box-shadow: 3px 3px 0 var(--muc); transform: rotate(-4deg);
}
.nhan-goi-y.ban-chay { background: var(--do); color: var(--trang); }
.mon-combo:has(.nhan-goi-y) { margin-top: 8px; }

/* món mẹ bấm "Hết món": xám, không bấm thêm được */
.mon.het img.mon-hinh { filter: grayscale(1); opacity: .6; }
.mon.het h4, .mon.het .mon-chu p, .mon.het .gia { opacity: .55; }
.nhan-het-rieng {
  font-family: var(--chu); font-weight: 800; font-size: .9rem; padding: 5px 12px; border-radius: 999px;
  background: #E7E2D3; color: var(--muc-nhat);
}

@media (min-width: 760px) {
  .luoi-combo { grid-template-columns: repeat(3, 1fr); }
  .mon-combo img.mon-hinh { max-width: none; }
}
@media (max-width: 559px) {
  .combo { flex-direction: column; align-items: flex-start; gap: 10px; }
}
