:root { --c: #E76F51; --c2: #2A9D8F; --bg: #120f33; --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; }
/* Đồng Nghĩa — trang chủ trong suốt để thấy sông hoa đăng phía sau */
.home { gap: 10px; }
.logo h1 { background: linear-gradient(180deg, #fff6d8, #ffc46b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.logo p { color: #ffe0b8; }
.spacer { width: 100%; height: 30vh; min-height: 170px; max-height: 300px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.grid2 .btn { margin: 0; min-height: 72px; font-size: 16px; line-height: 1.2; padding: 8px 6px; }
.grid2 .link { margin: 0; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .75; margin-top: 3px; }
.btn.main small { opacity: .92; }
.panel.wide { max-width: 560px; }
.panel ul { padding-left: 20px; }
.panel .btn { width: 100%; }
.ben { margin: 14px 0; border-radius: 18px; background: #fbf6ee; border-left: 6px solid var(--bc); padding: 10px; }
.bh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bh b { font-size: 17px; color: var(--ink); } .bh span { font-size: 13px; color: var(--mut); font-weight: 700; }
.lvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.08); min-height: 84px; padding: 8px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.lv em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--bc); }
.lv b { font-size: 15px; color: var(--ink); line-height: 1.2; }
.lv i { font-style: normal; color: #f4a259; font-size: 15px; letter-spacing: 1px; }
.lv.lock { opacity: .5; } .lv.lock i { color: var(--mut); font-size: 13px; letter-spacing: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tab { border: 0; border-radius: 12px; background: #f1ece4; padding: 8px 10px; min-height: 44px; font-weight: 800; font-size: 13px; color: var(--ink); }
.tab small { display: block; font-size: 11px; color: var(--mut); }
.tab.on { background: var(--c); color: #fff; } .tab.on small { color: #ffe9df; }
.words .w { padding: 10px 2px; border-bottom: 1px solid #eee5d8; }
.words .w b { display: block; color: var(--ink); font-size: 16px; }
.words .w span { display: block; color: var(--mut); font-size: 14px; font-weight: 600; line-height: 1.4; margin-top: 2px; }
.empty { color: var(--mut); font-weight: 700; text-align: center; padding: 10px 0; }
