/* ================================================================
   TRANG CHỦ YAUA'S HOUSE – giao diện "Bàn ăn liền mạch" (bản thử 09/11/2026)
   Màu đổi ở :root (sáng) và khối dark bên dưới (tối).
   ================================================================ */
:root {
  --canvas: #F7F8F4;
  --surface: #FFFFFF;
  --ink: #16231D;
  --ink-soft: #4F5E56;
  --accent: #1D6A4D;        /* xanh lá dứa */
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EEE7;
  --sun: #F2B33D;           /* vàng nắng – chỉ cho Góc Châu Đốc */
  --sun-ink: #2A1E05;
  --line: rgba(22, 35, 29, .12);
  --shadow: 0 1px 2px rgba(22, 40, 30, .06), 0 10px 28px -8px rgba(22, 40, 30, .16);
  --shadow-hi: 0 2px 4px rgba(22, 40, 30, .08), 0 24px 48px -12px rgba(22, 40, 30, .24);
  --close-bg: #143F2F;
  --close-ink: #EEF4EF;
  --close-soft: #B6CBBF;
  /* nền đổi dần theo phần đang xem */
  --g-hero: #F7F8F4; --g-menu: #FBFBF8; --g-gift: #FAF4F1; --g-story: #EEF4EF; --g-steps: #F7F8F4; --g-faq: #F7F8F4;
  --radius: 18px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0F1512;
    --surface: #18211C;
    --ink: #EAF1EC;
    --ink-soft: #A3B3A9;
    --accent: #72C79F;
    --accent-ink: #0B1A12;
    --accent-soft: #1D2E25;
    --sun: #F4BE55;
    --line: rgba(234, 241, 236, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -8px rgba(0, 0, 0, .55);
    --shadow-hi: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -12px rgba(0, 0, 0, .6);
    --close-bg: #0A231A;
    --close-ink: #EAF1EC;
    --close-soft: #9DB8A9;
    --g-hero: #0F1512; --g-menu: #111814; --g-gift: #161517; --g-story: #0E1A14; --g-steps: #0F1512; --g-faq: #0F1512;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65;
  color: var(--ink); background: var(--canvas); transition: background-color .6s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; font-weight: 500; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.kicker { margin: 0 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- Thanh trên ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.05; }
.brand img { border-radius: 50%; box-shadow: var(--shadow); }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; transition: background-color .2s; }
.nav a:hover { background: var(--accent-soft); }
.nav .nav-cd {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 6px;
  background: var(--sun); color: var(--sun-ink); font-weight: 700;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--sun) 80%, transparent);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.nav .nav-cd:hover { background: var(--sun); transform: translateY(-2px) rotate(-2deg); }
.cd-dot { width: 8px; height: 8px; border-radius: 50%; background: #D9452F; position: relative; }
.cd-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #D9452F; opacity: 0; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.nav .nav-cd { animation: wiggle 6s ease-in-out 2s infinite; }
@keyframes wiggle { 0%, 92%, 100% { transform: none; } 94% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } 98% { transform: rotate(-2deg); } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 1rem; transition: transform .2s, background-color .2s, box-shadow .2s; }
.btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-main:hover { transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- ĐẦU TRANG ---------- */
.hero { position: relative; padding: clamp(28px, 6vh, 72px) 0 clamp(40px, 8vh, 96px); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(78vh, 760px); }
.hero-copy { position: relative; z-index: 3; will-change: transform; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { display: block; color: var(--accent); font-weight: 600; font-style: normal; margin-top: .14em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 44ch; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.scene { position: relative; aspect-ratio: 1 / 1.08; max-width: 560px; justify-self: center; width: 100%; }
.plane { position: absolute; inset: 0; will-change: transform; }
.plane-back { z-index: 1; }
.halo { position: absolute; inset: 6% 2% 8% 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 0%, transparent)); }
.ghost { position: absolute; width: 30%; right: 0; top: 4%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: blur(3px); opacity: .5; }
.plane-peek { z-index: 2; }
.plane-mid { z-index: 3; display: grid; place-items: center; }
.arch {
  margin: 0; width: 70%; aspect-ratio: 3 / 4; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-hi); position: relative; top: -3%;
  outline: 8px solid var(--surface); outline-offset: -1px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .9s ease; }
.arch img.swap { opacity: 0; transform: scale(1.04); }
.feat {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 8px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); min-width: min(330px, 92%);
}
.feat-txt { flex: 1; text-align: center; line-height: 1.25; padding: 0 4px; min-width: 0; }
.feat-txt b { display: block; font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-txt span { font-size: .85rem; color: var(--accent); font-weight: 600; }
.feat-nav { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.feat-nav:hover { background: var(--accent); color: var(--accent-ink); }
.plane-front { z-index: 4; pointer-events: none; }
.coin { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-hi); outline: 6px solid var(--surface); }
.coin-a { width: 27%; aspect-ratio: 1; left: -3%; top: 50%; }
.coin-b { width: 21%; aspect-ratio: 1; right: 0; top: 16%; }

/* Hai bé ló đầu sau khung vòm */
.peeker { position: absolute; width: 22%; aspect-ratio: 1; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.peek-bunny { left: 18%; top: -5%; transform: rotate(-14deg); }
.peek-kitten { right: 18%; top: 1%; transform: rotate(12deg); }
.peeker.gone { opacity: 0; transform: translateY(40%) scale(.6); }

/* ---------- LỜI HỨA ---------- */
.promise { padding: 16px 0; border-block: 1px solid var(--line); }
.promise-line { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 1.1em; margin: 0; white-space: nowrap; font-size: min(1rem, 1.9vw); font-weight: 600; color: var(--ink-soft); }
.promise-line i { font-style: normal; color: var(--accent); font-size: .75em; }
@media (max-width: 600px) {
  .promise-line { font-size: min(.95rem, 3.6vw); gap: .8em; }
  .promise-line .px { display: none; }
}

/* ---------- TIÊU ĐỀ PHẦN ---------- */
.head { margin: 0 0 32px; max-width: 640px; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
.head p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.head-split p { margin: 0; }

/* ---------- THỰC ĐƠN ---------- */
.menu { padding-top: clamp(72px, 12vh, 128px); padding-bottom: clamp(48px, 8vh, 96px); }
.tabs {
  position: sticky; top: 68px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin-bottom: 28px; background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--canvas); box-shadow: none; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; }
.item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.item-img { position: relative; }
.item-img img { width: 132px; height: 132px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--accent-soft); }
.item-label { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--accent); font-size: .7rem; font-weight: 700; box-shadow: var(--shadow); }
.item-top { display: flex; align-items: baseline; gap: 10px; }
.item h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.leader { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.price { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 1.02rem; }
.price small { font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
.item p { margin: 6px 0 10px; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.item-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.variant { padding: 6px 12px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: .84rem; font-weight: 500; }
.variant[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.msg-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .86rem; transition: transform .2s; }
.msg-btn:hover { transform: translateY(-1px); }

/* Vết cắn của hai bé */
.dish.bitten {
  --bite: radial-gradient(circle at 100% 0, transparent 13%, #000 13.4%),
          radial-gradient(circle at 80.5% 4%, transparent 5%, #000 5.4%),
          radial-gradient(circle at 84.5% 13%, transparent 5%, #000 5.4%),
          radial-gradient(circle at 91.5% 18.5%, transparent 5%, #000 5.4%),
          radial-gradient(circle at 99% 21%, transparent 5%, #000 5.4%);
  -webkit-mask-image: var(--bite); mask-image: var(--bite);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ---------- QUÀ TẶNG ---------- */
.gift { padding: clamp(72px, 12vh, 128px) 0; }
.gift-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.gcard { background: var(--surface); border-radius: var(--radius); padding: 12px 12px 18px; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.gcard:nth-child(1) { transform: rotate(-1.6deg); }
.gcard:nth-child(2) { transform: rotate(1.2deg) translateY(18px); }
.gcard:nth-child(3) { transform: rotate(-.6deg); }
.gcard:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-hi); }
.gcard-img { position: relative; }
.gcard-img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 12px; }
.gcard .item-label { left: 10px; top: 10px; }
.gcard h3 { font-size: 1.08rem; margin: 14px 6px 4px; line-height: 1.3; }
.gcard p { margin: 0 6px 12px; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.gcard .item-act { margin: 0 6px; }
.gcard .price { margin-right: auto; }

/* ---------- CÂU CHUYỆN – ĐỔ TỪNG LỚP (đỉnh) ---------- */
.pour { position: relative; height: 270vh; }
.pour-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.pour-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.pour-title { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 800; }
.pour-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.pour-steps li { font-size: 1.08rem; color: var(--ink-soft); padding-left: 26px; position: relative; opacity: .35; transition: opacity .4s, color .4s; }
.pour-steps li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; transition: background-color .4s; }
.pour-steps li.on { opacity: 1; color: var(--ink); }
.pour-steps li.on::before { background: var(--accent); box-shadow: none; }
.pour-sign { margin: 26px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.pour-sign.on { opacity: 1; transform: none; }

.tray-box { position: relative; aspect-ratio: 590 / 388; width: 100%; }
.tray {
  position: absolute; left: 12%; right: 12%; top: 26%; bottom: 8%;
  border-radius: 14px 14px 22px 22px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent), inset 0 -10px 24px -10px rgba(0,0,0,.08), var(--shadow);
  transition: opacity .6s;
}
.tray::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, rgba(255,255,255,.35) 0 8%, transparent 14% 100%); pointer-events: none; }
.tray-fill { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column-reverse; }
.layer { height: 0; flex: none; transition: height .12s linear; }
.layer.coco { background: linear-gradient(#FFF8EA, #F4E7CC); }
.layer.cafe { background: linear-gradient(#6A3A22, #4A2414); }
.layer.top { background: linear-gradient(#B4471F, #8E3215); }
.stream { position: absolute; left: 50%; top: 0; width: 10px; height: 0; border-radius: 0 0 6px 6px; transform: translateX(-50%); opacity: 0; transition: background-color .3s; }
.tray-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-hi); clip-path: circle(0% at 50% 60%); }

/* ---------- Tường ảnh ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-bottom: clamp(72px, 12vh, 128px); }
.story-text h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.story-text p { color: var(--ink-soft); max-width: 58ch; }
.sign { font-weight: 600; color: var(--ink) !important; }
.sign span { display: block; font-weight: 500; font-style: italic; color: var(--accent); }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wall figure { margin: 0; background: var(--surface); padding: 8px 8px 12px; border-radius: 14px; box-shadow: var(--shadow); }
.wall .w2, .wall .w4 { transform: translateY(36px); }
.wall img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; border-radius: 9px; }
.wall figcaption { font-size: .82rem; color: var(--ink-soft); padding: 8px 4px 0; line-height: 1.35; }

/* ---------- ĐẶT HÀNG ---------- */
.steps { padding: clamp(72px, 12vh, 128px) 0 clamp(48px, 8vh, 96px); }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: s; }
.step-list::before, .step-list::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--line); }
.step-list::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--draw, 0)); }
.step-list li { position: relative; z-index: 1; counter-increment: s; }
.step-list li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--canvas); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; margin-bottom: 18px; transition: background-color .3s, color .3s, box-shadow .3s;
}
.step-list li.on::before { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.step-list b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.step-list span { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

/* ---------- HỎI ĐÁP ---------- */
.faq { padding: clamp(48px, 8vh, 96px) 0 clamp(72px, 12vh, 128px); display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- KHÉP LẠI ---------- */
.close { background: var(--close-bg); color: var(--close-ink); padding: clamp(72px, 12vh, 120px) 0 28px; border-radius: 36px 36px 0 0; }
.close-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.close h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
.close h2 em { font-style: normal; font-weight: 600; color: var(--close-soft); }
.btn-big { margin-top: 32px; min-height: 58px; padding: 0 32px; font-size: 1.1rem; background: var(--close-ink); color: var(--close-bg); }
.btn-big:hover { transform: translateY(-2px); }
.sleepers { position: relative; display: flex; align-items: flex-end; gap: 0; margin-top: 36px; height: 76px; }
.sleeper { width: 76px; height: 76px; margin-right: -14px; }
.zzz { align-self: flex-start; margin-left: 22px; font-weight: 700; color: var(--close-soft); letter-spacing: .3em; animation: zz 3s ease-in-out infinite; }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
.close-brand { display: flex; gap: 14px; align-items: flex-start; }
.close-brand img { border-radius: 50%; flex: none; }
.close-brand p { margin: 0; color: var(--close-soft); font-size: .92rem; line-height: 1.55; }
.close-brand b { color: var(--close-ink); }
.close-links { display: grid; gap: 4px; margin-top: 22px; }
.close-links a { color: var(--close-ink); text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .96rem; display: flex; justify-content: space-between; }
.close-links a::after { content: "→"; color: var(--close-soft); transition: transform .2s; }
.close-links a:hover::after { transform: translateX(4px); }
.close-links .cd-link { color: var(--sun); font-weight: 600; }
.copy { text-align: center; margin: 56px 0 0; font-size: .82rem; color: var(--close-soft); }

/* ---------- Nút nổi (điện thoại) ---------- */
.fab { display: none; }
.toast:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; z-index: 80; max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 16px; background: var(--ink); color: var(--canvas); font-weight: 500; box-shadow: var(--shadow-hi); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- HAI BÉ ĂN VỤNG ---------- */
.critters { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.critter { position: absolute; left: 0; top: 0; width: 64px; height: 64px; pointer-events: auto; cursor: pointer; will-change: transform; border: 0; padding: 0; background: none; }
.critter .flip { width: 100%; height: 100%; transition: transform .18s; }
.critter.left .flip { transform: scaleX(-1); }
.critter svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 4px rgba(20, 40, 30, .18)); }
.critter { transition: opacity .35s ease; }
.critter svg * { transform-box: fill-box; }
/* chớp mắt */
.critter .eyes, .peeker .eyes, .sleeper .eyes { transform-origin: center; animation: blink 4.6s var(--blink-delay, 0s) infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
/* thở nhẹ khi đứng yên */
.critter:not(.run):not(.eat) svg { animation: breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .97); } }
/* đi thong thả */
.critter.run svg { animation: hop .55s ease-in-out infinite; }
.critter.run .leg-a { animation: legA .55s ease-in-out infinite; }
.critter.run .leg-b { animation: legB .55s ease-in-out infinite; }
.critter.eat svg { animation: munch .45s ease-in-out infinite; transform-origin: 50% 100%; }
.critter.caught svg { animation: jump .8s cubic-bezier(.3, 1.5, .5, 1); }
.critter.act-hop svg { animation: happy .9s cubic-bezier(.3, 1.5, .5, 1) 2; transform-origin: 50% 100%; }
.critter.act-sway svg { animation: sway 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.critter.act-sleep .eyes { animation: none; transform: scaleY(.12); }
.critter.act-sleep svg { animation: breathe 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.critter.act-wag .tail { animation: wag .5s ease-in-out infinite; transform-origin: 100% 100%; }
.critter.act-wag .ear-r { animation: earflick 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes legA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes legB { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(0); } }
@keyframes munch { 0%, 100% { transform: rotate(0) scaleY(1); } 50% { transform: rotate(-3deg) scaleY(.96); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-8deg); } 100% { transform: none; } }
@keyframes happy { 0%, 100% { transform: translateY(0) scale(1); } 20% { transform: scale(1.06, .9); } 50% { transform: translateY(-12px) scale(.96, 1.05); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes wag { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
@keyframes earflick { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(6deg); } }
.heart, .zfloat, .spark { position: absolute; pointer-events: none; font-style: normal; font-weight: 700; opacity: 0; animation: floatup 1.9s ease-out forwards; }
.heart { color: #F07A92; font-size: 16px; }
.zfloat { color: var(--ink-soft); font-size: 13px; }
.spark { color: var(--sun); font-size: 14px; }
@keyframes floatup { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -46px) scale(1.1); } }
.crumb { position: absolute; width: 5px; height: 5px; border-radius: 2px; pointer-events: none; animation: crumb 1.2s ease-in forwards; }
@keyframes crumb { to { transform: translate(var(--dx), 50px) rotate(200deg); opacity: 0; } }
.caught {
  position: fixed; z-index: 70; max-width: 260px; padding: 14px 16px 12px; border-radius: 18px 18px 18px 6px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-hi); font-size: .92rem; line-height: 1.45;
  animation: pop .35s cubic-bezier(.3, 1.5, .5, 1);
}
.caught b { display: block; margin-bottom: 2px; }
.caught .msg-btn { margin: 10px 0 0; }
.caught-x { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 1.2rem; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- Hiện dần ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ================================================================
   ĐIỆN THOẠI
   ================================================================ */
@media (max-width: 960px) {
  .nav a:not(.nav-cd):not(:first-child) { display: none; }
  .menu-list { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .close-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .fab { display: block; position: fixed; right: 16px; bottom: 18px; z-index: 60; }
  .fab a { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #00B2FF, #006AFF 45%, #A033FF 80%, #FF5C87); box-shadow: 0 10px 24px -8px rgba(0, 80, 220, .55); }
  .toast { bottom: 90px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar-in { height: 60px; }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .nav a:first-child { display: none; }
  .nav .nav-cd { padding: 8px 12px; font-size: .88rem; margin: 0; }
  .tabs { top: 60px; }
  html { scroll-padding-top: 66px; }

  .hero { padding-top: 12px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .scene { order: -1; width: 88%; max-width: 380px; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .lead { font-size: 1.02rem; margin: 14px 0 22px; }
  .hero-cta .btn { flex: 1; padding: 0 14px; white-space: nowrap; }

  .head-split { grid-template-columns: 1fr; }
  .item { grid-template-columns: 96px 1fr; gap: 14px; }
  .item-img img { width: 96px; height: 96px; border-radius: 14px; }
  .leader { display: none; }
  .item-top { flex-direction: column; gap: 2px; }
  .msg-btn { margin-left: 0; }
  .item-act { gap: 6px; }
  .gift-row { grid-template-columns: 1fr; }
  .gcard:nth-child(n) { transform: none; }

  .pour { height: 240vh; }
  .pour-in { grid-template-columns: 1fr; gap: 18px; }
  .pour-copy { order: 2; }
  .pour-title { font-size: 1.9rem; }
  .pour-steps { margin-top: 14px; gap: 4px; }
  .pour-steps li { font-size: .98rem; }
  .pour-sign { margin-top: 12px; font-size: 1rem; }
  .kicker { margin-bottom: 8px; }

  .story { grid-template-columns: 1fr; }
  .wall { gap: 12px; }
  .wall .w2, .wall .w4 { transform: translateY(24px); }

  .step-list { grid-template-columns: 1fr; gap: 22px; }
  .step-list::before, .step-list::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .step-list::after { transform-origin: top; transform: scaleY(var(--draw, 0)); }
  .step-list li { padding-left: 64px; }
  .step-list li::before { position: absolute; left: 0; top: -2px; margin: 0; }

  .close { border-radius: 26px 26px 0 0; padding-bottom: 96px; }
  .critter { width: 50px; height: 50px; }
  .caught { max-width: 230px; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .pour { height: auto; }
  .pour-stage { position: relative; height: auto; padding: 72px 0; }
  .tray, .stream { display: none; }
  .tray-photo { position: relative; clip-path: none; }
  .pour-steps li { opacity: 1; color: var(--ink); }
  .pour-sign { opacity: 1; transform: none; }
}
