:root { --c: #8D5524; --c2: #F4A259; --bg: #1E140C; --ink: #14203d; --mut: #5d6a8a; --sat: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; touch-action: none; display: block; }
#menu { position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#menu.on { display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: calc(var(--sat) + 76px) 16px 32px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.logo .mark { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 24px; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, var(--c2), var(--c)); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: rotate(-8deg); }
.logo h1 { margin: 0; font-size: clamp(40px, 11vw, 60px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 4px 0 0; font-weight: 800; font-size: 18px; }
.story { color: #fff; text-align: center; font-weight: 600; margin: 0; opacity: .92; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 8px 0; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn.main { background: linear-gradient(180deg, var(--c2), var(--c)); color: #fff; }
.btn.big { min-height: 72px; font-size: 24px; font-weight: 900; }
.btn.big small { display: block; font-size: 14px; font-weight: 700; opacity: .9; }
.link { border: 0; background: rgba(255,255,255,.88); border-radius: 14px; padding: 12px 16px; font-weight: 800; width: 100%; }
.panel { background: #fff; border-radius: 22px; padding: 20px; max-width: 480px; margin: calc(var(--sat) + 70px) auto 24px; width: calc(100% - 32px); }
.panel h2 { margin: 0 0 8px; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.foot { color: #fff; font-size: 13px; text-align: center; opacity: .85; }
.foot a { color: #fff; }
/* ---- Chế Tác ---- */
.home { padding-top: calc(var(--sat) + 64px); gap: 10px; }
.logo .mark { background: linear-gradient(135deg, #F4A259, #8D5524); }
.logo h1 { color: #fff7ea; }
.logo p { color: #fff0d6; }
.spacer { height: max(230px, calc(44vh - 140px)); width: 100%; cursor: pointer; }
.btn.big small { font-size: 15px; }
.btn.card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; background: #fff4e3; color: #3a2416; min-height: 76px; }
.btn.card img { width: 84px; height: 64px; object-fit: contain; flex: none; background: #f2dcc0; border-radius: 12px; }
.btn.card .ic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-size: 34px; background: #f2dcc0; border-radius: 14px; }
.btn.card span { display: flex; flex-direction: column; }
.btn.card b { font-size: 17px; }
.btn.card small { font-weight: 700; color: #8a5a3a; font-size: 14px; }
.btn.card.day { background: linear-gradient(180deg, #fff7d6, #ffe7a8); }
.btn.lock { opacity: .7; }
.row2 { display: flex; gap: 10px; width: 100%; }
.row2 .link { flex: 1; min-height: 52px; }
.link small { display: block; font-size: 12px; font-weight: 700; color: #8a5a3a; }
.panel.wide { max-width: 680px; }
.panel .mut, .mut { font-size: 14px; }
.lang { border-radius: 18px; background: #fbf3e6; padding: 12px; margin: 12px 0; border-left: 6px solid var(--mc); }
.lang.lock { opacity: .62; }
.lh b { font-size: 19px; color: #3a2416; display: block; }
.lh small { color: var(--mc); font-weight: 800; }
.lang p { margin: 6px 0; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.capb { border: 0; border-radius: 14px; background: #fff; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 150px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.capb img { width: 100%; max-width: 120px; aspect-ratio: 9/7; object-fit: contain; }
.capb b { font-size: 14px; color: #3a2416; }
.capb i { font-style: normal; color: #E9A23B; letter-spacing: 1px; }
.capb small { font-size: 11px; color: #8a6a4a; font-weight: 700; line-height: 1.3; }
.capb.lock { opacity: .55; }
.tu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.slot { border: 0; border-radius: 14px; background: linear-gradient(180deg, #4a2a1a, #2e1a10); color: #fff; padding: 6px; display: flex; flex-direction: column; align-items: center; min-height: 140px; }
.slot img { width: 100%; aspect-ratio: 9/7; object-fit: contain; }
.slot b { font-size: 13px; text-align: center; }
.slot i { font-style: normal; color: #ffd24a; }
.slot small { font-size: 11px; opacity: .8; }
.slot.empty { background: #efe2cf; color: #8a6a4a; justify-content: center; }
.slot.empty span { font-size: 34px; font-weight: 900; opacity: .5; }
.panel img.big { width: 100%; background: radial-gradient(#5a3a24, #2a1810); border-radius: 18px; }
.meo { background: #FFF4D6; border-radius: 14px; padding: 8px 12px; margin: 10px 0; }
.meo p { margin: 4px 0; color: #6B4A10 !important; font-size: 14px; }
.offers { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.offer { border: 0; border-radius: 16px; background: #fff4e3; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; text-align: left; min-height: 92px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.offer img { width: 92px; height: 72px; object-fit: contain; flex: none; background: #f2dcc0; border-radius: 12px; }
.offer span { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.offer b { font-size: 17px; color: #3a2416; }
.offer small { font-size: 13px; color: #8a5a3a; font-weight: 700; }
.offer em { font-style: normal; font-weight: 900; font-size: 22px; color: #2e8b57; text-align: center; }
.offer em small { display: block; font-size: 11px; color: #5d6a8a; }
.recp { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.recp img { width: 150px; height: 112px; object-fit: contain; background: radial-gradient(#5a3a24, #2a1810); border-radius: 14px; }
.recp p { margin: 4px 0; }
.nang { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.nrow { display: flex; align-items: center; gap: 10px; background: #fbf3e6; border-radius: 14px; padding: 8px 10px; }
.nrow .ic { font-size: 30px; width: 46px; text-align: center; }
.nrow span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.nrow b { color: #3a2416; }
.nrow small { font-size: 12px; color: #8a6a4a; font-weight: 700; }
.nrow em { font-style: normal; font-weight: 900; color: #2e8b57; }
.buy { border: 0; border-radius: 12px; background: linear-gradient(180deg, #F4A259, #8D5524); color: #fff; font-weight: 900; padding: 10px 12px; min-height: 46px; }
.buy:disabled { opacity: .45; }
.nrow.co { opacity: .8; }
