:root { --c: #8E44AD; --c2: #F1C40F; --bg: #1E1030; --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; }
/* Cắt Ghép */
.logo .mark { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: linear-gradient(135deg, #5a2a18, #2b120a); border: 3px solid #d9b44a; }
.logo .mark i { display: block; width: 100%; height: 100%; border-radius: 6px; }
.logo .mark i:nth-child(1) { background: linear-gradient(135deg, #7cc8f5, #cfe06c); transform: translate(-3px, -3px) rotate(-6deg); }
.logo .mark i:nth-child(2) { background: linear-gradient(135deg, #ffcf9e, #e63946); }
.logo .mark i:nth-child(3) { background: linear-gradient(135deg, #f6c344, #d9572b); }
.logo .mark i:nth-child(4) { background: linear-gradient(135deg, #8e44ad, #1f4e9a); transform: translate(3px, 3px) rotate(8deg); }
.home .logo p, .home .story { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.card { border: 0; border-radius: 18px; background: rgba(255,255,255,.93); padding: 14px 12px; min-height: 76px; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.card b { display: block; font-size: 17px; font-weight: 900; }
.card small { display: block; margin-top: 3px; color: var(--mut); font-weight: 700; font-size: 13px; }
.panel.wide { max-width: 640px; }
.chap { margin: 14px 0 6px; }
.ch-h { display: flex; gap: 10px; align-items: center; }
.ch-h span { font-size: 30px; }
.ch-h b { display: block; }
.ch-h small { color: var(--mut); font-weight: 600; }
.lvs, .gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.gal { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.lvc, .gc { position: relative; border: 0; background: #f4eefa; border-radius: 16px; padding: 8px; text-align: center; min-height: 44px; }
.lvc img, .gc img, .lk { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; object-fit: cover; border: 3px solid #d9b44a; box-sizing: border-box; }
.lk { display: grid; place-items: center; font-size: 34px; background: #2a1838; color: #d9b44a; font-weight: 900; }
.lvc b, .gc b { display: block; margin-top: 6px; font-size: 15px; }
.lvc small, .gc small { display: block; color: #b8860b; font-weight: 800; font-size: 13px; }
.gc small { color: var(--mut); }
.lock { opacity: .75; }
.son { position: absolute; top: 14px; right: 14px; background: #c81e28; color: #fff3d0; font-style: normal; font-weight: 900; font-size: 12px; padding: 4px 6px; border-radius: 6px; transform: rotate(-10deg); }
