:root { --c: #0F766E; --c2: #F97316; --bg: #0B1F1E; --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; }
/* ---- Tác Vụ ---- */
img.mark { display: block; width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.home { gap: 12px; }
.logo p { color: #FDE68A; }
.chip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip span { background: rgba(11,31,30,.62); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.chip b { color: #FDE68A; }
.btn.main { background: linear-gradient(180deg, #FB923C, #EA580C); color: #fff; }
.btn.tra { background: linear-gradient(180deg, #FDE68A, #F59E0B); color: #451A03; }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.2); }
.btn.ghost.do { background: rgba(185,28,28,.85); }
.btn[disabled] { opacity: .5; }
.modes { width: 100%; display: grid; gap: 10px; }
.mbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 66px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 12px 16px; text-align: left; color: #fff; background: rgba(11,31,30,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mbtn b { font-size: 19px; font-weight: 900; }
.mbtn span { font-size: 14px; font-weight: 700; opacity: .88; }
.mbtn.vuon { border-color: #86EFAC; } .mbtn.vuon b { color: #BBF7D0; }
.mbtn.xep { border-color: #7DD3FC; } .mbtn.xep b { color: #BAE6FD; }
.mbtn.ngay { border-color: #FDE68A; } .mbtn.ngay b { color: #FDE68A; }
.row { display: flex; gap: 8px; width: 100%; }
.row .link { flex: 1; }
.link { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); min-height: 48px; padding: 10px 8px; }
.pn { background: rgba(11,31,30,.96); color: #fff; border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 22px; padding: 18px; max-width: 480px; margin: calc(var(--sat) + 66px) auto 24px; width: calc(100% - 24px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.pn h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; color: #FDE68A; }
.pn h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 900; color: #99F6E4; }
.pn ul { padding-left: 18px; } .pn li { margin: 8px 0; line-height: 1.5; font-weight: 600; opacity: .94; }
.pn label { display: block; margin: 14px 0 6px; font-weight: 800; font-size: 14px; color: #99F6E4; }
.mut { color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; line-height: 1.5; margin: 6px 0; }
.bao { color: #FDBA74; font-weight: 800; margin: 8px 0; }
.ok { color: #FDE68A; font-weight: 900; }
.tx { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff; font: 600 16px "Be Vietnam Pro", system-ui, sans-serif; padding: 10px 12px; }
.tx.big { font-size: 19px; font-weight: 800; }
.tx::placeholder { color: rgba(255,255,255,.45); }
.mini { min-height: 44px; border: 0; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.mini.vang { background: linear-gradient(180deg, #FB923C, #EA580C); color: #fff; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-top: 8px; }
.acts3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.them { display: flex; gap: 8px; margin-top: 8px; }
.loai { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.loai button { min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--m); background: transparent; color: #fff; font-weight: 800; font-size: 14px; }
.loai button.on { background: var(--m); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font-weight: 800; font-size: 14px; }
.chips button.on { background: #F97316; border-color: #F97316; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.tabs button { min-height: 60px; border-radius: 16px; border: 2px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; text-align: left; padding: 8px 12px; display: flex; flex-direction: column; }
.tabs button.on { border-color: #F97316; background: rgba(249,115,22,.16); }
.tabs b { font-size: 16px; font-weight: 900; } .tabs small { font-size: 12px; opacity: .75; font-weight: 700; }
.viec { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 6px 0; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-align: left; min-height: 60px; }
.viec[disabled] { opacity: .5; }
.viec > i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; }
.viec > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viec b { font-size: 15px; font-weight: 800; } .viec small { font-size: 12px; font-weight: 700; opacity: .72; }
.viec.xong b { text-decoration: line-through; opacity: .8; }
.buoc { display: grid; gap: 6px; }
.b1 { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.06); min-height: 56px; }
.b1 .tick { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 900; font-size: 15px; }
.b1.xong .tick { background: #14B8A6; border-color: #14B8A6; }
.b1.xong span { text-decoration: line-through; opacity: .7; }
.b1 span { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.35; }
.hoa { border-radius: 18px; padding: 14px; background: linear-gradient(135deg, rgba(20,184,166,.28), rgba(249,115,22,.22)); border: 1px solid rgba(153,246,228,.5); margin: 8px 0; }
.hoa small { display: block; font-size: 12px; font-weight: 800; color: #99F6E4; letter-spacing: .3px; }
.hoa b { display: block; font-size: 20px; font-weight: 900; margin: 6px 0 8px; line-height: 1.35; }
.hoa p { margin: 6px 0 0; color: #FDE68A; font-weight: 700; }
.hoa.xong { background: linear-gradient(135deg, rgba(251,191,36,.3), rgba(20,184,166,.2)); border-color: #FDE68A; }
.bar { height: 12px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #FDE68A, #F97316); border-radius: 6px; }
.huy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.huy div { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.05); opacity: .55; display: flex; flex-direction: column; gap: 2px; }
.huy div.on { opacity: 1; background: rgba(253,230,138,.12); border: 1px solid rgba(253,230,138,.5); }
.huy i { font-style: normal; font-size: 22px; color: #FDE68A; } .huy b { font-size: 15px; } .huy small { font-size: 12px; opacity: .8; font-weight: 600; }
.chang { display: grid; gap: 8px; margin: 10px 0; }
.chang button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-align: left; min-height: 64px; }
.chang button[disabled] { opacity: .4; }
.chang i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 900; background: linear-gradient(180deg, #14B8A6, #0F766E); }
.chang span { flex: 1; display: flex; flex-direction: column; } .chang b { font-size: 16px; font-weight: 900; } .chang small { font-size: 12px; opacity: .78; font-weight: 600; }
.chang em { font-style: normal; color: #FDE68A; letter-spacing: 1px; font-size: 15px; }
.pn img.the { width: 100%; height: auto; border-radius: 18px; display: block; margin: 8px 0 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
