:root { --c: #7B2CBF; --c2: #80FFDB; --bg: #10002B; --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; }
/* ---------- Huyền Ảo */
.home { gap: 10px; }
.logo h1 { color: #fff3c4; text-shadow: 0 4px 0 #3a1d5a, 0 8px 24px rgba(0,0,0,.4); }
.logo p { color: #d9c8ff; }
.spacer { width: 100%; height: max(200px, calc(42vh - 120px)); cursor: pointer; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .85; margin-top: 2px; }
.btn { color: #2a1450; padding: 10px 14px; }
.btn.day { background: linear-gradient(180deg, #fff3c4, #ffd166); }
.link { color: #2a1450; }
#hud { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 60px); z-index: 15; display: none; justify-content: center; gap: 8px; padding: 0 12px; pointer-events: none; }
#hud.on { display: flex; }
#hud button { pointer-events: auto; min-height: 44px; border: 0; border-radius: 22px; padding: 0 14px; font-weight: 800; font-size: 14px; background: rgba(255,248,230,.94); color: #3a1d5a; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.panel { max-height: none; }
.panel h2 { color: #3a1d5a; margin-top: 12px; }
.mut { color: var(--mut); }
.row { display: block; width: 100%; text-align: left; border: 0; background: #f5effd; border-radius: 14px; padding: 12px 14px; margin: 8px 0; min-height: 48px; color: #2a1450; }
.row b { display: block; }
.row small { display: block; color: #6a5a8a; font-weight: 600; margin-top: 2px; }
.row.lock { opacity: .55; background: #eee9f3; }
.st { color: #f2b705; letter-spacing: 1px; }
.mieu-h { display: flex; justify-content: space-between; color: #8a6a4a; font-weight: 800; }
.mieu-h span { color: #f2b705; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f5effd; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 800; color: #3a1d5a; }
.chip img { width: 36px; height: 36px; }
.fr { display: flex; gap: 12px; align-items: center; background: #f5effd; border-radius: 16px; padding: 8px 12px; margin: 8px 0; }
.fr img, .fr > span { width: 64px; height: 64px; flex: none; }
.fr > span { display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #b7a8d6; background: #e9e1f6; border-radius: 50%; }
.fr b { color: #2a1450; } .fr small { display: block; color: #6a5a8a; font-weight: 600; line-height: 1.35; }
.fr.lock { opacity: .6; }
.letter { max-width: 480px; margin: calc(var(--sat) + 80px) auto 24px; width: calc(100% - 32px); }
.paper { background: linear-gradient(180deg, #fbf1d6, #f1dfb0); border-radius: 10px; padding: 26px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.35); color: #4a3520; transform: rotate(-1deg); }
.paper small { color: #9a7a4a; font-weight: 800; }
.paper p { font-size: 18px; line-height: 1.6; font-weight: 600; margin: 10px 0; }
.paper i { display: block; text-align: right; font-weight: 700; }
