:root { --c: #FF8FA3; --c2: #5BC0EB; --bg: #2A1E3A; --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; }
/* ===== Hình Dạng ===== */
.logo h1 { font-size: clamp(44px, 13vw, 66px); }
.logo h1 .t1 { color: #fff; } .logo h1 .t2 { color: #FFF27A; }
.logo p { color: #fff; }
.spacer { height: 170px; width: 100%; flex: none; cursor: pointer; }
.btn.big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.btn.big small img { width: 28px; height: 28px; vertical-align: middle; background: #fff; border-radius: 8px; }
.card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; border: 0; border-radius: 20px; background: rgba(255,255,255,.93); padding: 10px 14px; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.card .ge { font-size: 36px; line-height: 1; }
.card b { display: block; font-size: 17px; font-weight: 900; }
.card small { display: block; color: var(--mut); font-weight: 700; font-size: 13px; }
.card.gift { background: linear-gradient(135deg, #FFF27A, #FFB627); }
.card.gift.got { background: rgba(255,255,255,.85); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.room { position: relative; border: 0; border-radius: 22px; min-height: 112px; padding: 10px 8px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.14); border-bottom: 6px solid var(--rc); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.room .re { font-size: 40px; line-height: 1.1; }
.room b { font-size: 16px; font-weight: 900; }
.room .dots { display: flex; gap: 4px; }
.room .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e0ee; }
.room .dots i.on { background: var(--rc); }
.room small { font-size: 11px; color: var(--mut); font-weight: 700; }
.room.lock { opacity: .72; background: #f3f0f8; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.row3 .btn { min-height: 72px; font-size: 30px; }
.panel .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel .ph h2 { margin: 0; font-size: 22px; }
.back { border: 0; border-radius: 14px; background: #efeaf8; font-weight: 900; min-height: 48px; padding: 0 14px; }
.note { color: var(--mut); font-weight: 600; font-size: 14px; line-height: 1.5; }
.mut { color: var(--mut); font-weight: 600; font-size: 13px; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.act { position: relative; border: 0; border-radius: 20px; background: #FFF8EE; padding: 6px 4px 8px; min-height: 120px; box-shadow: inset 0 0 0 3px #f0e6d8; display: flex; flex-direction: column; align-items: center; }
.act img { width: 84px; height: 84px; }
.act small { font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.2; text-align: center; }
.act .k { position: absolute; top: 4px; left: 6px; font-size: 18px; }
.act .ok { position: absolute; top: 2px; right: 6px; font-size: 20px; }
.act.done { box-shadow: inset 0 0 0 3px var(--rc); background: #fff; }
.panel h3 { margin: 16px 0 8px; font-size: 17px; }
.stk { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.st { border: 0; border-radius: 50%; aspect-ratio: 1; background: #f1edf7; display: grid; place-items: center; padding: 0; position: relative; }
.st span { font-size: 26px; color: #c9c0dc; font-weight: 900; }
.st img { width: 100%; height: 100%; }
.st.on { background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.15), inset 0 0 0 3px #FF8FA3; }
.st.gold { background: linear-gradient(135deg, #FFF27A, #FFB627); }
.st.gold span { color: #fff; font-size: 28px; }
.st.gold small { position: absolute; bottom: 6px; font-size: 11px; font-weight: 800; color: #7a4a00; }
.math { font-size: 44px; font-weight: 900; text-align: center; margin: 8px 0 14px; color: var(--ink); }
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi div { background: #f6f2fc; border-radius: 16px; padding: 10px; }
.kpi b { display: block; font-size: 28px; font-weight: 900; }
.kpi span { font-size: 12px; color: var(--mut); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #f1edf7; border-radius: 99px; padding: 6px 10px; font-weight: 800; font-size: 13px; color: #9a92ad; }
.chip.on { background: #FFE3EA; color: var(--ink); }
.tg { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 10px 0; line-height: 1.4; }
.tg input { width: 24px; height: 24px; flex: none; }
.panel ul { padding-left: 20px; }
