:root { --c: #FF7EB6; --c2: #7AE7C7; --bg: #2A1A2E; --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; }
/* Tranh Xinh */
html, body { background: #2A1A2E; }
#menu { background: linear-gradient(180deg, #ff9ec4 0%, #ffcf9e 55%, #9fe8cf 100%); }
.logo canvas { width: 260px; height: 177px; display: block; margin: 0 auto -6px; }
.logo h1 { color: #fff; text-shadow: 0 4px 0 #e0558e, 0 8px 20px rgba(120,20,60,.35); }
.logo p { color: #6a1f45; text-shadow: none; }
.btn.main { background: linear-gradient(180deg, #ff9fca, #ff4f94); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.md { min-height: 96px; border: 0; border-radius: 20px; text-align: left; padding: 12px; display: flex; flex-direction: column; gap: 4px; justify-content: center; box-shadow: 0 6px 16px rgba(90,20,50,.25); color: #fff; }
.md b { font-size: 17px; font-weight: 900; }
.md span { font-size: 12.5px; font-weight: 700; opacity: .95; line-height: 1.3; }
.md.book { background: linear-gradient(160deg, #ff8fb1, #d6457a); }
.md.free { background: linear-gradient(160deg, #a58bff, #6a4fd0); }
.md.day { background: linear-gradient(160deg, #ffe07a, #f2a900); color: #4a2a00; }
.md.gall { background: linear-gradient(160deg, #5fd3b0, #1f8f78); }
.sec { color: #fff; margin: 4px 0 0; font-size: 24px; font-weight: 900; align-self: flex-start; text-shadow: 0 2px 8px rgba(120,20,60,.4); }
.set { width: 100%; background: rgba(255,255,255,.88); border-radius: 22px; padding: 12px; border-top: 8px solid var(--sc); box-shadow: 0 6px 16px rgba(90,20,50,.18); }
.set.lock { opacity: .8; filter: grayscale(.5); }
.sethd { display: flex; flex-direction: column; margin: 0 4px 8px; }
.sethd b { font-size: 19px; font-weight: 900; color: #3a2b33; }
.sethd span { font-size: 13px; font-weight: 700; color: #8a5a70; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { position: relative; border: 0; background: #fff; border-radius: 16px; padding: 6px 6px 8px; box-shadow: 0 3px 8px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; }
.card canvas, .card img { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; background: #fffdf8; }
.card span { font-size: 12.5px; font-weight: 800; color: #4a3040; line-height: 1.2; text-align: center; }
.card i { position: absolute; top: 4px; right: 4px; background: #5cc75f; color: #fff; font-style: normal; font-weight: 900; border-radius: 12px; padding: 2px 7px; font-size: 13px; }
.card i.dr { background: #ff9f43; }
.card:disabled { opacity: .55; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.gal .pic { border: 0; background: #fff; border-radius: 12px; padding: 6px 6px 8px; box-shadow: 0 6px 14px rgba(0,0,0,.2); border: 6px solid #c98a55; display: flex; flex-direction: column; gap: 2px; }
.gal .pic img { width: 100%; aspect-ratio: 1; display: block; border-radius: 4px; }
.gal .pic span { font-size: 12px; font-weight: 800; color: #4a3040; line-height: 1.2; }
.gal .pic small { font-size: 11px; color: #9a6a80; font-weight: 700; }
.note { color: #5a2a45; font-weight: 700; font-size: 14px; text-align: center; margin: 0; }
.story { color: #4a1f35; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.opt { border: 3px solid transparent; background: #fff4f8; border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; color: #4a3040; min-height: 52px; }
.opt.on { border-color: #ff4f94; background: #fff; }
.opt canvas { width: 64px; height: 64px; border-radius: 10px; }
.opt.bgc i { width: 56px; height: 40px; border-radius: 10px; display: block; border: 2px solid #e0d0d8; }
.panel h3 { margin: 6px 0 0; color: #3a2b33; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.bd { background: #f4eef1; border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px; filter: grayscale(1); opacity: .55; }
.bd.on { background: linear-gradient(160deg, #fff4c2, #ffd6ea); filter: none; opacity: 1; }
.bd i { font-style: normal; font-size: 30px; }
.bd b { font-size: 13px; color: #3a2b33; line-height: 1.2; }
.bd span { font-size: 11px; color: #8a6a78; line-height: 1.25; font-weight: 700; }
.howto { padding-left: 20px; }
#acts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: none; flex-wrap: wrap; gap: 8px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; }
#acts.on { display: flex; }
#acts .btn { flex: 1 1 40%; margin: 0; min-height: 56px; }
#acts .btn.main { flex-basis: 100%; min-height: 64px; font-size: 21px; }
