:root { --c: #6F1D1B; --c2: #FFE6A7; --bg: #1A0807; --ink: #3b2414; --mut: #6b5040; --paper: #f8ebc9; --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: 12px; padding: calc(var(--sat) + 70px) 16px 32px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.6); }
.logo .mark { width: 88px; height: 88px; margin: 0 auto 8px; display: block; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 62px); font-weight: 900; letter-spacing: -1px; line-height: 1; color: #ffe6a7; }
.logo p { margin: 6px 0 0; font-weight: 800; font-size: 17px; color: #f6e7c3; }
.story { color: #fff3d6; text-align: center; font-weight: 600; margin: 0; line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 17px; margin: 8px 0; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.btn:disabled { opacity: .5; }
.btn.main { background: linear-gradient(180deg, #c0503a, #7a1e1a); color: #fff; }
.btn.big { min-height: 78px; font-size: 26px; font-weight: 900; border: 3px solid #f2c27a; }
.btn small { display: block; font-size: 14px; font-weight: 700; opacity: .95; margin-top: 2px; }
.btn.hintb { background: linear-gradient(180deg, #f6d27a, #d9a441); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.card { position: relative; text-align: left; border: 0; border-radius: 16px; padding: 12px 12px 12px 14px; min-height: 78px; background: linear-gradient(180deg, #f8ebc9, #ead39f); box-shadow: 0 6px 16px rgba(0,0,0,.3); color: var(--ink); }
.card b { display: block; font-size: 16px; font-weight: 900; }
.card span { display: block; font-size: 13px; font-weight: 700; color: var(--mut); margin-top: 3px; }
.card i { position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 900; background: #b5342a; color: #fff; border-radius: 10px; padding: 2px 8px; }
.link { border: 0; background: rgba(248,235,201,.92); border-radius: 14px; padding: 13px 16px; font-weight: 800; width: 100%; min-height: 48px; }
.link.sm { width: auto; min-height: 44px; padding: 8px 14px; margin-top: 6px; background: #2f5a4a; color: #fff; }
.panel { background: linear-gradient(180deg, #f8ebc9, #efdcae); border-radius: 22px; padding: 20px 18px; max-width: 520px; margin: calc(var(--sat) + 60px) auto 24px; width: calc(100% - 28px); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.panel h2 { margin: 0 0 6px; font-weight: 900; color: #6F1D1B; }
.panel h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 900; color: #6b3a1e; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.panel .sub { margin: 0 0 10px; font-size: 14px; }
.hint, .clue { background: rgba(255,255,255,.6); border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.hint b, .clue b { font-weight: 900; } .hint p, .clue p { margin: 4px 0 0; color: var(--ink); }
.hint.off { opacity: .5; }
.trip { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; background: rgba(255,255,255,.55); border-radius: 14px; padding: 10px 12px; margin: 7px 0; min-height: 60px; }
.trip.khoa { opacity: .55; }
.trip em { font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #6F1D1B; color: #ffe6a7; font-weight: 900; flex: none; }
.trip span { flex: 1; } .trip b { display: block; font-weight: 900; } .trip small { color: var(--mut); font-weight: 700; }
.trip i { font-style: normal; color: #c98a1a; font-weight: 900; letter-spacing: 1px; }
.letter { background: #fffaf0; border-radius: 14px; padding: 14px 16px; border: 2px solid #d9a441; }
.letter .ln { margin: 4px 0; font-style: italic; color: #3a1a0a; font-weight: 700; }
.letter .ln.chua { color: #b8a080; font-weight: 600; }
.items { display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.55); border-radius: 14px; padding: 10px 12px; }
.item .e { font-size: 30px; width: 42px; text-align: center; flex: none; }
.item b { display: block; font-weight: 900; } .item small { display: block; color: var(--mut); font-weight: 600; line-height: 1.4; }
.item.chua { opacity: .55; }
.foot { color: #f6e7c3; font-size: 13px; text-align: center; opacity: .9; }
.foot a { color: #ffe6a7; }
