/* Lẩu Bà Mơ — trang công khai. Màu theo Palette trong game (DESIGN §8.1). */
:root {
  --cream: #FFF6EC;
  --peach: #FFCBA4;
  --rose: #F7B5C4;
  --mint: #B5E3D0;
  --butter: #FFE8A3;
  --sky: #AED9EC;
  --lavender: #CDB8E0;
  --coral: #F2998B;
  --stone: #C9C2BA;
  --cocoa: #5B4636;
  --dusk: #DEDAE8;
  --paper: #FFFDF8;
  --radius: 22px;
  --shadow: 0 5px 0 var(--cocoa);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 500 17px/1.6 'Quicksand', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .btn, .lang { font-family: 'Baloo 2', 'Quicksand', sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 21px; }
a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px;
}
img { max-width: 100%; }

/* Ngôn ngữ */
html[data-lang="vi"] .en, html[data-lang="en"] .vi { display: none !important; }

/* Thanh trên cùng */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100% - 1080px) / 2));
  background: rgba(255, 246, 236, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(91, 70, 54, .12);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 10px; border: 2px solid var(--cocoa); }
.bar nav { display: flex; gap: 18px; margin-left: auto; font-weight: 700; }
.bar nav a { text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent; transition: border-color .2s; }
.bar nav a:hover { border-color: var(--coral); }
.lang {
  display: flex; padding: 3px; border: 2px solid var(--cocoa); border-radius: 99px;
  background: var(--paper); color: var(--cocoa); cursor: pointer; font-size: 15px; font-weight: 800;
}
.lang span { padding: 2px 10px; border-radius: 99px; transition: background .25s; }
html[data-lang="vi"] .lang [data-l="vi"], html[data-lang="en"] .lang [data-l="en"] { background: var(--butter); }
@media (max-width: 560px) {
  .bar nav a:not(:last-child) { display: none; }
  .brand span { font-size: 19px; }
}

/* Nút */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border: 2.5px solid var(--cocoa); border-radius: 99px;
  font-size: 19px; font-weight: 800; text-decoration: none; color: var(--cocoa);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--cocoa); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--cocoa); }
.btn.mint { background: var(--mint); }
.btn.peach { background: var(--peach); }
.btn.butter { background: var(--butter); }

/* Bố cục chung */
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; padding: 4px 14px; margin-bottom: 12px;
  border: 2px solid var(--cocoa); border-radius: 99px; background: var(--paper);
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.lead { font-size: 19px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero: ngõ Mây chiều tối */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 110px;
  background: linear-gradient(180deg, #CFC8E2 0%, var(--dusk) 55%, #EFE3DA 100%);
  text-align: center;
}
.lanterns {
  position: absolute; top: 0; left: -2%; width: 104%; height: 90px;
  display: flex; justify-content: space-around; pointer-events: none;
}
.lanterns::before {
  content: ''; position: absolute; left: 0; right: 0; top: -30px; height: 70px;
  border-bottom: 2px solid rgba(91, 70, 54, .45); border-radius: 0 0 50% 50%;
}
.lanterns i {
  position: relative; top: 26px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(91, 70, 54, .6); background: var(--butter);
  box-shadow: 0 0 18px 6px rgba(255, 232, 163, .7);
  transform-origin: 50% -20px; animation: swing 3.2s ease-in-out infinite;
}
.lanterns i:nth-child(3n+2) { background: var(--rose); box-shadow: 0 0 18px 6px rgba(247, 181, 196, .6); animation-delay: -1s; }
.lanterns i:nth-child(3n) { background: var(--peach); box-shadow: 0 0 18px 6px rgba(255, 203, 164, .6); animation-delay: -2s; }
.lanterns i:nth-child(odd) { top: 34px; }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.cloud {
  position: absolute; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .7);
  animation: drift linear infinite;
}
.cloud.c1 { top: 150px; width: 110px; animation-duration: 48s; }
.cloud.c2 { top: 260px; width: 80px; animation-duration: 62s; animation-delay: -30s; }
.cloud.c3 { top: 90px; width: 140px; animation-duration: 75s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }

.sign {
  position: relative; display: inline-block; margin-top: 64px;
  padding: 8px 34px 12px; background: var(--peach);
  border: 3px solid var(--cocoa); border-radius: 18px; box-shadow: 0 7px 0 var(--cocoa);
  font-size: clamp(40px, 9vw, 76px); transform-origin: 50% -54px;
  animation: sway 5s ease-in-out infinite;
}
.sign::before, .sign::after {
  content: ''; position: absolute; top: -50px; width: 3px; height: 62px; background: var(--cocoa);
}
.sign::before { left: 30%; transform: rotate(32deg); transform-origin: bottom; }
.sign::after { right: 30%; transform: rotate(-32deg); transform-origin: bottom; }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.hero h1 { margin: 0; font-size: inherit; }

/* Mặt tiền quán, nồi lẩu bốc khói */
.shop {
  position: relative; width: min(420px, 86vw); margin: 34px auto 0;
  border: 3px solid var(--cocoa); border-top: 0; background: #F3DCC0;
  padding: 0 34px; border-radius: 0 0 6px 6px;
}
.awning {
  height: 46px; margin: 0 -40px; border: 3px solid var(--cocoa); border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 34px, var(--paper) 34px 68px);
  position: relative;
}
.awning::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: radial-gradient(circle at 17px 0, var(--coral) 13px, transparent 14px) 0 0 / 68px 14px repeat-x,
              radial-gradient(circle at 51px 0, var(--paper) 13px, transparent 14px) 0 0 / 68px 14px repeat-x;
}
.door {
  position: relative; height: 190px; margin-top: 22px;
  border: 3px solid var(--cocoa); border-bottom: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, #FFF1C2 0%, var(--butter) 45%, #F6CF85 100%);
}
.shutter {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(180deg, #B9B3C7 0 9px, #A8A1B8 9px 12px);
  animation: open 1.6s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}
@keyframes open { to { transform: translateY(-100%); } }
.table { position: absolute; left: 50%; bottom: 26px; width: 62%; height: 14px; transform: translateX(-50%); background: #C08A5B; border: 2.5px solid var(--cocoa); border-radius: 8px; }
.pot {
  position: absolute; left: 50%; bottom: 40px; width: 96px; height: 44px; transform: translateX(-50%);
  background: var(--coral); border: 2.5px solid var(--cocoa); border-radius: 0 0 48px 48px;
}
.pot::before { content: ''; position: absolute; left: -6px; right: -6px; top: -8px; height: 12px; background: #E8B86A; border: 2.5px solid var(--cocoa); border-radius: 50%; }
.steam { position: absolute; left: 50%; bottom: 92px; width: 0; }
.steam i {
  position: absolute; bottom: 0; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); opacity: 0; animation: rise 3s ease-out infinite;
}
.steam i:nth-child(1) { left: -26px; }
.steam i:nth-child(2) { left: -6px; animation-delay: 1s; }
.steam i:nth-child(3) { left: 14px; animation-delay: 2s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { opacity: .95; }
  100% { transform: translateY(-90px) translateX(10px) scale(1.8); opacity: 0; }
}
.stool { position: absolute; bottom: 0; width: 30px; height: 30px; background: var(--mint); border: 2.5px solid var(--cocoa); border-bottom: 0; border-radius: 6px 6px 0 0; }
.stool.l { left: 16%; } .stool.r { right: 16%; background: var(--coral); }

.hero .lead { margin: 30px auto 22px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badges > span { padding: 4px 14px; border-radius: 99px; background: rgba(255, 253, 248, .8); border: 2px solid rgba(91, 70, 54, .3); font-weight: 700; font-size: 14px; }

.street { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #CBBFB4; border-top: 3px solid var(--cocoa); }
.bike { position: absolute; bottom: 30px; left: -120px; width: 70px; height: 40px; animation: ride 14s linear infinite; }
.bike .body { position: absolute; left: 10px; bottom: 12px; width: 50px; height: 16px; background: var(--sky); border: 2.5px solid var(--cocoa); border-radius: 10px 14px 6px 6px; }
.bike .rider { position: absolute; left: 26px; bottom: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); border: 2.5px solid var(--cocoa); }
.bike .w { position: absolute; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--cocoa); }
.bike .w1 { left: 4px; } .bike .w2 { right: 4px; }
@keyframes ride { to { transform: translateX(calc(100vw + 240px)); } }

/* Thẻ tính năng */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); margin-top: 34px; }
.card {
  background: var(--paper); border: 2.5px solid var(--cocoa); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 9px 0 var(--cocoa); }
.card p { margin: 0; }
.icon {
  width: 64px; height: 64px; margin-bottom: 12px; display: grid; place-items: center;
  border: 2.5px solid var(--cocoa); border-radius: 18px;
}
.icon svg { width: 40px; height: 40px; }
.card:hover .icon svg { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* Ảnh màn hình */
.shots-bg { background: linear-gradient(180deg, var(--cream), #F8E9DA); }
.shots {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px 4px 30px; margin-top: 10px; scrollbar-width: thin;
}
.shots figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; text-align: center; }
.phone {
  width: 230px; aspect-ratio: 1206 / 2622; border: 4px solid var(--cocoa); border-radius: 34px;
  overflow: hidden; background: var(--paper); box-shadow: 0 8px 0 var(--cocoa);
  transition: transform .25s;
}
.shots figure:hover .phone { transform: translateY(-6px); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { margin-top: 16px; font-weight: 700; }
.arrows { display: flex; gap: 10px; justify-content: center; }
.arrows button {
  width: 48px; height: 48px; border: 2.5px solid var(--cocoa); border-radius: 50%;
  background: var(--butter); box-shadow: 0 4px 0 var(--cocoa); cursor: pointer;
  font: 800 22px/1 'Baloo 2', sans-serif; color: var(--cocoa);
}
.arrows button:active { transform: translateY(4px); box-shadow: none; }

/* Một ngày ở quán */
.day { position: relative; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); margin-top: 34px; }
.step { position: relative; padding: 20px; border-radius: var(--radius); border: 2.5px solid var(--cocoa); background: var(--paper); }
.step time {
  display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: 10px;
  background: var(--cocoa); color: var(--butter); font: 800 20px/1.3 'Baloo 2', sans-serif;
}
.step p { margin: 0; }
.step:nth-child(1) { background: #FFF4D6; }
.step:nth-child(2) { background: #FFE6D6; }
.step:nth-child(3) { background: #FCE0E6; }
.step:nth-child(4) { background: #E9E1F3; }

/* Câu thoại */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 34px; }
.bubble { position: relative; padding: 22px 22px 18px; border: 2.5px solid var(--cocoa); border-radius: var(--radius); background: var(--paper); }
.bubble::after {
  content: ''; position: absolute; left: 34px; bottom: -14px; width: 22px; height: 22px;
  background: inherit; border-right: 2.5px solid var(--cocoa); border-bottom: 2.5px solid var(--cocoa);
  transform: rotate(45deg);
}
.bubble p { margin: 0; font-size: 18px; }
.who { display: flex; align-items: center; gap: 10px; margin: 26px 0 0 18px; font-weight: 800; }
.who b { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--cocoa); }

/* Cam kết */
.promise { background: var(--mint); border-top: 3px solid var(--cocoa); border-bottom: 3px solid var(--cocoa); }
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.chips > span {
  padding: 10px 20px; border: 2.5px solid var(--cocoa); border-radius: 99px; background: var(--paper);
  font-weight: 700; box-shadow: 0 4px 0 var(--cocoa);
}

/* Trang chữ (hỗ trợ, quyền riêng tư) */
main.doc {
  width: min(780px, 100% - 32px); margin: 40px auto 60px; padding: 34px clamp(20px, 5vw, 48px);
  background: var(--paper); border: 2.5px solid var(--cocoa); border-radius: var(--radius); box-shadow: 0 6px 0 var(--cocoa);
}
main.doc h1 { font-size: clamp(30px, 6vw, 42px); }
main.doc h2 { font-size: 26px; margin-top: 1.4em; }
main.doc hr { border: 0; border-top: 2px dashed var(--stone); margin: 2em 0; }
main.doc li { margin: .3em 0; }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
  padding: 18px 22px; margin: 18px 0 8px; border-radius: 18px; background: var(--butter); border: 2.5px solid var(--cocoa);
}
.contact p { margin: 0; }
details {
  margin: 12px 0; border: 2.5px solid var(--cocoa); border-radius: 16px; background: var(--cream);
  overflow: hidden;
}
summary {
  list-style: none; cursor: pointer; padding: 14px 52px 14px 18px; position: relative;
  font: 800 19px/1.3 'Baloo 2', sans-serif;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; border-radius: 50%; background: var(--peach); border: 2px solid var(--cocoa);
  transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 18px 16px; }

/* Chân trang và mèo Mỡ đi dạo */
.foot { position: relative; padding: 46px 16px 30px; text-align: center; border-top: 3px solid var(--cocoa); background: #F3E3D3; overflow: hidden; }
.foot p { margin: 6px 0; font-weight: 700; }
.foot .small { font-size: 14px; font-weight: 500; opacity: .8; }
.cat { position: absolute; top: 8px; left: -60px; width: 46px; height: 26px; animation: walk 22s linear infinite; }
.cat i { position: absolute; left: 6px; bottom: 0; width: 34px; height: 18px; border-radius: 12px; background: #E8A05C; border: 2.5px solid var(--cocoa); }
.cat::before { content: ''; position: absolute; right: -6px; top: -2px; width: 18px; height: 18px; border-radius: 50%; background: #E8A05C; border: 2.5px solid var(--cocoa); }
.cat::after { content: ''; position: absolute; left: -2px; top: -4px; width: 4px; height: 18px; border-radius: 4px; background: var(--cocoa); transform: rotate(-30deg); }
@keyframes walk { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 120px)); } }

/* Hiện dần khi cuộn (chỉ khi có JS) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .day .reveal:nth-child(2), .quotes .reveal:nth-child(2) { transition-delay: .1s; }
.grid .reveal:nth-child(3), .day .reveal:nth-child(3), .quotes .reveal:nth-child(3) { transition-delay: .2s; }
.grid .reveal:nth-child(4), .day .reveal:nth-child(4) { transition-delay: .3s; }
.grid .reveal:nth-child(5) { transition-delay: .4s; }
.grid .reveal:nth-child(6) { transition-delay: .5s; }

/* Máy bật Giảm chuyển động: đứng yên, hiện ngay */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .shutter { display: none; }
  .bike, .cat, .cloud { display: none; }
}
