:root { --c: #C0392B; --c2: #F5D76E; --bg: #2A1B10; --ink: #3A2A1F; --mut: #6D5A44; --kem: #FFF3D6; --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; }
button:disabled { cursor: default; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: calc(var(--sat) + 70px) 16px 36px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.45); }
.logo .mark { display: block; margin: 0 auto 6px; transform: rotate(-6deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); animation: lac 5s ease-in-out infinite; }
@keyframes lac { 50% { transform: rotate(4deg) translateY(-3px); } }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 62px); font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--kem); }
.logo p { margin: 8px 0 0; font-weight: 800; font-size: 17px; color: var(--c2); }
.btn { display: block; width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--kem); font-weight: 800; font-size: 17px; margin: 2px 0; box-shadow: 0 6px 18px rgba(0,0,0,.3); padding: 8px 14px; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .85; margin-top: 2px; }
.btn.main { background: linear-gradient(180deg, #E0584A, var(--c)); color: #FFF8E8; }
.btn.big { min-height: 80px; font-size: 24px; font-weight: 900; }
.btn.big small { font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.mid { min-height: 76px; font-size: 19px; font-weight: 900; margin: 0; }
.btn.hot { background: linear-gradient(180deg, #FFE08A, #F2B53A); }
.card { background: rgba(255,248,232,.95); border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.card > b { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.card > b em { font-style: normal; color: var(--c); font-size: 14px; }
.card > small { display: block; color: var(--mut); font-weight: 600; font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
.viec { list-style: none; margin: 0; padding: 0; }
.viec li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed #E3D3B3; font-weight: 700; font-size: 14px; }
.viec li i { font-style: normal; color: var(--mut); white-space: nowrap; }
.viec li.ok span { text-decoration: line-through; opacity: .6; }
.viec li.ok i { color: #2E7D32; font-weight: 900; }
.hss { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hs { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; text-align: left; min-height: 64px; border: 0; border-radius: 14px; padding: 8px 10px; background: #F3E3C0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.hs b { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #8D6E63; color: #fff; font-weight: 900; }
.hs span { font-weight: 900; font-size: 14px; line-height: 1.2; }
.hs i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mut); }
.hs.done { background: #FFF; } .hs.done b { background: var(--c); } .hs.done i { color: #B8860B; letter-spacing: 1px; }
.hs.open { background: #FFE9A8; } .hs.open b { background: #E08E0B; }
.hs.khoa { opacity: .5; }
.ups { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.up { border: 0; border-radius: 12px; padding: 8px 6px; min-height: 56px; background: #FFE9A8; font-size: 14px; }
.up b { display: block; font-weight: 900; } .up small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.up:disabled { background: #EEE4CF; opacity: .75; }
.bans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ban-c { border: 2px solid transparent; border-radius: 12px; padding: 6px 4px; background: #F7ECD5; font-weight: 800; font-size: 13px; min-height: 76px; }
.ban-c.on { border-color: var(--c); }
.ban-c small { display: block; font-size: 11px; color: var(--mut); }
.sw { display: block; height: 22px; border-radius: 6px; margin: 0 auto 4px; width: 80%; }
.sw-go { background: linear-gradient(135deg, #6B4329, #4A2C1A); } .sw-ni { background: linear-gradient(135deg, #2F5D50, #1E3E35); } .sw-tre { background: repeating-linear-gradient(90deg, #B8955A 0 10px, #8C6D3C 10px 11px); } .sw-dem { background: linear-gradient(135deg, #2A2433, #16121C); }
.huy { display: flex; flex-wrap: wrap; gap: 6px; }
.huy span { padding: 6px 10px; border-radius: 999px; background: #EEE4CF; font-size: 13px; font-weight: 800; color: #9E9480; }
.huy span.on { background: var(--c); color: #FFF8E8; }
.link { border: 0; background: rgba(255,248,232,.9); border-radius: 14px; padding: 13px 16px; font-weight: 800; width: 100%; min-height: 48px; }
.panel { background: #FFF8E8; 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; }
.panel li { margin-bottom: 6px; }
.panel strong { color: var(--ink); }
.foot { color: #fff; font-size: 13px; text-align: center; opacity: .85; }
.foot a { color: #fff; }
