:root { --c: #E63946; --c2: #F4A261; --bg: #191233; --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; }
/* Biến Hình */
.logo .mark { background: radial-gradient(circle at 50% 45%, #ffd27a 0%, #e63946 70%, #9b2230 100%); transform: rotate(0); border: 3px solid #e8b04a; }
.home { gap: 12px; padding-top: calc(var(--sat) + 70px); }
.home .logo p, .home .story { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.stage { width: 100%; height: min(42vh, 330px); min-height: 230px; position: relative; display: flex; align-items: flex-start; justify-content: center; cursor: pointer; }
.stage span { margin-top: -4px; color: rgba(255,240,210,.8); font-weight: 800; font-size: 13px; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 99px; }
.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; }
.chap.lock { opacity: .6; }
.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 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.lvc { border: 0; background: #fbefdc; border-radius: 14px; padding: 8px 4px; min-height: 64px; text-align: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.lvc b { display: block; font-size: 22px; font-weight: 900; color: #3a1a10; }
.lvc small { display: block; color: #b8860b; font-weight: 800; font-size: 12px; }
.lvc.art { background: linear-gradient(180deg, #ffe0b0, #ffb88a); }
.lvc.lock { opacity: .55; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.gc { background: #f4eefa; border-radius: 16px; padding: 8px; text-align: center; }
.gc img { width: 100%; border-radius: 10px; display: block; border: 3px solid #d9b44a; box-sizing: border-box; image-rendering: pixelated; }
.gc b { display: block; margin-top: 6px; font-size: 15px; }
.gc small { display: block; color: var(--mut); font-weight: 700; font-size: 12px; }
.gc.lock img { border-color: #6b5a7a; }
