:root { --c: #9D0208; --c2: #FFBA08; --bg: #1A0202; --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; }
/* Dồn Dập */
.logo h1 { color: #FFE8B0; text-shadow: 0 4px 0 #6b140c, 0 10px 26px rgba(0,0,0,.45); }
.logo p { color: #FFD39A; }
.spacer { height: max(250px, calc(52vh - 150px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.spacer .hint { color: #FFE8B0; font-weight: 800; font-size: 14px; background: rgba(40,6,2,.55); padding: 6px 12px; border-radius: 999px; transform: translateY(18px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.row2 .btn { margin: 0; min-height: 64px; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .75; }
.btn:disabled { opacity: .45; }
.home .link { background: rgba(255,240,215,.92); color: #4a1206; }
.panel h3 { margin: 16px 0 6px; }
.panel .mut, .mut { color: var(--mut); font-weight: 600; }
.lvl { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; margin: 6px 0; background: #FFF4DE; box-shadow: 0 3px 0 #E9C9A0; min-height: 56px; }
.lvl b { font-size: 16px; color: #5a1206; }
.lvl .st { color: #E09B00; font-size: 18px; letter-spacing: 1px; }
.lvl small { grid-column: 1 / -1; color: #7a4a30; font-weight: 600; font-size: 13px; }
.lvl.lock { opacity: .5; }
.speed { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; flex-wrap: wrap; }
.speed span { font-weight: 800; color: #5a1206; }
.speed button { border: 2px solid #E9C9A0; background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 800; min-height: 44px; }
.speed button.on { background: #9D0208; color: #fff; border-color: #9D0208; }
.rec { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.rec span { flex: 1; font-weight: 700; font-size: 14px; color: #5a1206; }
.rec button { border: 0; border-radius: 12px; padding: 10px 14px; min-height: 44px; font-weight: 800; background: #FFE8B0; }
.tapbig { display: block; width: 190px; height: 190px; margin: 14px auto; border-radius: 50%; border: 10px solid #8E1B12; background: radial-gradient(circle at 40% 35%, #FBF0D6, #D8B47A); font-weight: 900; font-size: 18px; color: #5a1206; touch-action: manipulation; }
.tapbig:active { transform: scale(.96); }
