:root { --c: #7FD8BE; --c2: #FFB4A2; --bg: #1B2430; --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; }
/* Thoả Mãn: trang chủ, chọn món, danh sách màn */
#menu { background: linear-gradient(180deg, #2a3550 0%, #3d4f6e 45%, #7fd8be 130%); }
.home .btn.big { margin-top: 6px; }
.daily { width: 100%; border: 0; border-radius: 22px; padding: 14px 16px; text-align: left; background: linear-gradient(135deg, #fff6e0, #ffe0e8); box-shadow: 0 8px 22px rgba(0,0,0,.2); display: grid; gap: 4px; }
.dl-h { font-weight: 900; font-size: 18px; color: #7a3a12; }
.dl-i { font-size: 34px; letter-spacing: 6px; }
.dl-i b { font-weight: 400; }
.dl-s { font-size: 14px; font-weight: 700; color: #5d4a3a; }
.dl-f { font-size: 13px; font-weight: 800; color: #c2410c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tile { border: 0; border-radius: 18px; background: rgba(255,255,255,.94); padding: 12px; min-height: 64px; text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.tile b { display: block; font-size: 16px; font-weight: 900; }
.tile small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); margin-top: 2px; }
.tile.wide { width: 100%; }
.row2 .link { font-size: 14px; padding: 12px 8px; }
.panel.wide { max-width: 640px; }
.ph { display: flex; align-items: center; gap: 10px; }
.ph h2 { margin: 0; }
.back { border: 0; background: #1d2340; color: #fff; border-radius: 14px; min-height: 44px; padding: 0 14px; font-weight: 800; }
.sub { margin: 8px 0 4px; }
.panel h3 { margin: 16px 0 8px; font-size: 16px; color: #1d2340; }
.panel h3 em { font-style: normal; font-weight: 700; color: var(--mut); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { border: 0; border-radius: 16px; background: #f4f6fb; padding: 10px 6px; min-height: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.06); }
.card .em { font-size: 32px; line-height: 1.1; }
.card b { font-size: 13px; font-weight: 800; line-height: 1.2; text-align: center; }
.card small { font-size: 11.5px; color: var(--mut); font-weight: 700; text-align: center; }
.card.lock { opacity: .45; filter: grayscale(.6); }
.pips { display: flex; gap: 4px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: #d9deea; }
.pips i.on { background: #ffc93c; }
.grid.lv .card { min-height: 92px; }
.card .num { font-size: 22px; font-weight: 900; color: #3fbf9b; }
.card .stars { color: #ffc93c; font-size: 16px; letter-spacing: 1px; }
.card .stars i { color: #d9deea; font-style: normal; }
.agt-racts .agt-a:not(.big) { flex: 1 1 40%; }
