:root { --c: #E84A5F; --c2: #FFD166; --bg: #1A1424; --ink: #2A1830; --mut: #6E5A70; --kem: #FFF6E6; --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: stretch; gap: 12px; padding: calc(var(--sat) + 70px) 16px 32px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.logo .mark { width: 74px; height: auto; display: block; margin: 0 auto 8px; transform: rotate(-8deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); animation: lac 4s ease-in-out infinite; }
@keyframes lac { 50% { transform: rotate(6deg) translateY(-4px); } }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 62px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 6px 0 0; font-weight: 800; font-size: 18px; color: var(--c2); }
.story { color: #fff; text-align: center; font-weight: 600; margin: 0 4px; opacity: .9; line-height: 1.45; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 4px 0; box-shadow: 0 6px 18px rgba(0,0,0,.2); padding: 8px 14px; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .8; margin-top: 2px; }
.btn.main { background: linear-gradient(180deg, #FF7A8C, var(--c)); color: #fff; }
.btn.big { min-height: 78px; font-size: 25px; font-weight: 900; }
.btn.big small { font-size: 14px; opacity: .92; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.mid { min-height: 74px; font-size: 19px; font-weight: 900; margin: 0; }
.btn.hot { background: linear-gradient(180deg, #FFE08A, #F7B733); }
.btn.done { background: #EFE6F7; }
.btn:disabled { opacity: .45; }
.card { background: rgba(255,255,255,.94); border-radius: 20px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.card > b { display: block; font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.card > small { display: block; color: var(--mut); font-weight: 600; font-size: 13px; line-height: 1.4; margin-top: 6px; }
.bochips { display: flex; flex-wrap: wrap; gap: 6px; }
.bochips span { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; background: var(--kem); border-radius: 12px; border: 2px solid #F3D9A8; }
.last ul { list-style: none; margin: 8px 0 0; padding: 0; }
.last li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #F0E4EE; font-weight: 700; font-size: 14px; }
.last li img { width: 34px; height: 34px; border-radius: 50%; }
.last li span { flex: 0 0 auto; }
.last li em { flex: 1; font-style: normal; color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last li b { font-weight: 900; }
.cdchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cdchips span { background: var(--kem); border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; }
.cdchips span.khoa { opacity: .55; background: #EEE; }
.cdchips i { font-style: normal; font-weight: 700; font-size: 12px; color: var(--mut); }
.hhs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hh { display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; align-items: center; background: #F2EEF4; border-radius: 12px; padding: 6px 8px; opacity: .55; filter: grayscale(1); }
.hh.on { opacity: 1; filter: none; background: #FFF3D0; }
.hh i { grid-row: span 2; font-style: normal; font-size: 26px; text-align: center; }
.hh b { font-size: 13px; font-weight: 900; line-height: 1.2; }
.hh small { font-size: 11px; color: var(--mut); font-weight: 600; line-height: 1.25; }
.link { border: 0; background: rgba(255,255,255,.88); border-radius: 14px; padding: 12px 16px; font-weight: 800; width: 100%; min-height: 48px; }
.panel { background: #fff; border-radius: 22px; padding: 20px; max-width: 480px; margin: calc(var(--sat) + 70px) auto 24px; width: calc(100% - 32px); }
.panel.wide { max-width: 560px; }
.panel h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.panel h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 900; }
.panel h3 small { font-weight: 600; color: var(--mut); font-size: 12px; margin-left: 4px; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.panel .sub { margin-top: 0; }
.note { font-size: 13px; background: #F7F1FA; border-radius: 12px; padding: 8px 12px; }
.nhom { display: flex; flex-direction: column; gap: 6px; }
.ng { display: flex; align-items: center; gap: 8px; }
.ng .av { border: 0; background: none; padding: 0; width: 48px; height: 48px; flex: 0 0 48px; }
.ng .av img { width: 48px; height: 48px; border-radius: 50%; display: block; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ng input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 2px solid #EADCEB; padding: 0 12px; font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); background: #FCF9FD; }
.ng input:focus { outline: none; border-color: var(--c); }
.ng .bot { border: 0; background: #F2EEF4; border-radius: 12px; height: 44px; padding: 0 12px; font-weight: 800; font-size: 14px; }
.ng .bot:disabled { opacity: .35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid #EADCEB; background: #fff; border-radius: 14px; min-height: 44px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.chip.on { border-color: var(--c); background: #FFE9EC; color: #9E1F35; }
.chip:disabled { opacity: .45; }
.tg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #F7F1FA; margin: 6px 0; font-size: 14px; line-height: 1.4; color: var(--mut); font-weight: 600; min-height: 44px; }
.tg input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c); flex: 0 0 22px; }
.tg b { color: var(--ink); }
.hoso { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.hs { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; border-radius: 16px; background: #F7F1FA; padding: 10px 12px; min-height: 64px; }
.hs i { font-style: normal; font-weight: 900; font-size: 18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.hs span { display: flex; flex-direction: column; }
.hs b { font-weight: 900; font-size: 15px; }
.hs small { color: var(--mut); font-weight: 600; font-size: 12px; line-height: 1.35; }
.hs em { font-style: normal; color: #E0A100; font-size: 16px; letter-spacing: 1px; }
.hs.qua { background: #FFF6DE; }
.hs.khoa { opacity: .5; }
.hs.khoa i { background: #9A8AA0; }
.tk .podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 14px 0 6px; }
.pd { position: relative; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #FFF3D0, #FFE08A); border-radius: 16px 16px 6px 6px; padding: 10px 6px 34px; width: 31%; }
.pd.p0 { min-height: 190px; } .pd.p1 { min-height: 160px; background: linear-gradient(180deg, #F2F2F6, #D9DAE6); } .pd.p2 { min-height: 140px; background: linear-gradient(180deg, #FCE7DA, #F2C1A1); }
.pd img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.pd b { font-weight: 900; margin-top: 6px; text-align: center; word-break: break-word; }
.pd span { font-size: 13px; font-weight: 700; color: var(--mut); }
.pd i { position: absolute; bottom: 4px; font-style: normal; font-weight: 900; font-size: 18px; color: var(--ink); }
.dh { list-style: none; padding: 0; margin: 10px 0; }
.dh li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #F0E4EE; }
.dh img { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; }
.dh div { flex: 1; display: flex; flex-direction: column; }
.dh b { color: var(--ink); font-weight: 900; }
.dh small { font-size: 13px; line-height: 1.35; }
.dh small strong { color: #9E1F35; }
.dh em { font-style: normal; font-weight: 900; font-size: 22px; color: var(--ink); }
.lich { margin: 6px 0 12px; color: var(--mut); font-weight: 700; }
.lich summary { cursor: pointer; padding: 8px 0; }
.foot { color: #fff; font-size: 13px; text-align: center; opacity: .85; }
.foot a { color: #fff; }
