:root { --c: #F4A261; --c2: #264653; --bg: #1E1A14; --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; }
/* Trốn Tìm */
html, body { background: #2b1d14; }
.home { justify-content: flex-start; background: radial-gradient(120% 60% at 50% 0%, #6b3d1f 0%, #2b1d14 70%); min-height: 100vh; }
.logo canvas { width: 300px; height: 150px; display: block; margin: 0 auto -6px; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .92; margin-top: 2px; }
.btn.main { background: linear-gradient(180deg, #ffb46b, #e07a10); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.md { min-height: 92px; border: 0; border-radius: 18px; text-align: left; padding: 12px; display: flex; flex-direction: column; gap: 4px; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); color: #fff; }
.md b { font-size: 17px; font-weight: 900; }
.md span { font-size: 12.5px; font-weight: 700; opacity: .92; line-height: 1.3; }
.md.hide { background: linear-gradient(160deg, #3d8b7d, #264653); }
.md.day { background: linear-gradient(160deg, #ffd66b, #e9a100); color: #3a2400; }
.md.quick { background: linear-gradient(160deg, #ff8fb1, #c2416b); }
.md.album { background: linear-gradient(160deg, #9b5de5, #5a2d91); }
.md.lock { filter: grayscale(.7); opacity: .7; }
.sec { color: #ffd9a0; margin: 8px 0 0; font-size: 18px; font-weight: 900; align-self: flex-start; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.chaps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.chp { min-height: 92px; border: 0; border-radius: 18px; color: #3a2414; background: linear-gradient(160deg, #fff6e2, #f2d7a8); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 10px 12px; text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.chp b { font-size: 15px; font-weight: 900; line-height: 1.2; }
.chp span { font-size: 12.5px; font-weight: 700; color: #8a5a2a; line-height: 1.3; }
.chp i { font-style: normal; color: #e07a10; font-size: 16px; letter-spacing: 1px; }
.chp.lock { background: rgba(40,28,18,.85); color: #9c8a74; box-shadow: none; }
.chp.lock span { color: #8a7a64; }
.panel.tight { margin: 0; width: 100%; padding: 12px 16px; }
.story-card { text-align: center; }
.story-card .chap { color: #c06a1a; font-weight: 900; letter-spacing: .5px; }
.story-card h2 { font-size: 30px; color: #3a2414; margin: 4px 0; }
.story-card p { color: #4a3a2a; font-size: 17px; margin: 0 0 10px; }
.newidea { background: #fff1d6; color: #a0521a; border-radius: 14px; padding: 10px 12px; font-weight: 900; font-size: 16px; }
.howto { text-align: left; padding-left: 20px; }
.howto li { margin: 4px 0; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; width: 100%; }
.album .pic { background: #fff6e2; border-radius: 14px; padding: 4px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.album .pic canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 10px; }
.album .pic span { font-size: 11px; font-weight: 800; color: #8a5a2a; }
