:root { --c: #F2A541; --c2: #5BC0EB; --bg: #120f1a; --pn: #1f1b2b; --pn2: #2a2538; --ink: #f4efe4; --mut: #b8b0c4; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 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; -webkit-user-select: none; user-select: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; 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; }
#menu.nen { background: rgba(10, 8, 16, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
button { font: inherit; cursor: pointer; color: inherit; }

/* ---------- màn chính: trại 3D phía sau, bảng phía dưới (cuộn được) ---------- */
.home { min-height: 100%; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; padding: calc(var(--sat) + 62px) 14px calc(var(--sab) + 18px); }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,.7); }
.logo img { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.logo h1 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1; background: linear-gradient(180deg, #ffe7a8, #f2a541); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.logo p { margin: 3px 0 0; font-weight: 800; font-size: 14px; opacity: .95; }
.home .mo { flex: 1; min-height: 36vh; }
.sheet { background: rgba(26, 22, 36, .93); border: 1px solid rgba(242,165,65,.25); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 9px; }
.sheet h3 { margin: 6px 2px 0; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.sheet h3 small { font-size: 13px; color: var(--c); }
.cs1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bochip { background: linear-gradient(90deg, #6a3a9a, #a0469a); color: #fff; border-radius: 10px; padding: 3px 9px; font-size: 12.5px; font-weight: 800; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: var(--pn2); color: var(--ink); font-weight: 800; font-size: 17px; box-shadow: 0 5px 14px rgba(0,0,0,.25); margin: 6px 0; }
.btn.main { background: linear-gradient(180deg, #ffc66a, #f2a541 55%, #c97a1e); color: #2a1604; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.big { min-height: 72px; font-size: 26px; font-weight: 900; margin: 0; }
.btn small { display: block; font-size: 13.5px; font-weight: 700; opacity: .9; }
.btn.ngay { background: linear-gradient(180deg, #23364a, #182434); color: #fff; text-align: left; padding: 10px 16px; margin: 0; border: 1px solid rgba(91,192,235,.35); }
.btn.ngay b { font-size: 17px; }
.btn.ngay small { opacity: .85; line-height: 1.35; margin-top: 2px; }
.btn.thieu { opacity: .55; }
.btn.do { background: #4a2228; color: #ffd8d8; }
.xp { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.xp .o { flex: 1 0 auto; min-width: 84px; min-height: 52px; border: 2px solid transparent; border-radius: 14px; background: var(--pn2); color: var(--ink); text-align: left; padding: 6px 10px; }
.xp .o b { display: block; font-size: 14px; } .xp .o small { font-size: 11.5px; color: var(--mut); font-weight: 700; }
.xp .o.chon { border-color: var(--c); background: #3a2c1c; }
.grnote { background: rgba(192,138,255,.16); border: 1px dashed #c08aff; border-radius: 14px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; color: #e8d8ff; }
.viec { display: flex; flex-direction: column; gap: 6px; }
.viec div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; background: var(--pn2); border-radius: 12px; padding: 7px 10px; font-size: 13.5px; font-weight: 700; }
.viec div i { grid-column: 1; height: 6px; border-radius: 4px; background: #3a3448; overflow: hidden; }
.viec div i em { display: block; height: 100%; background: linear-gradient(90deg, #f2a541, #ffd88a); }
.viec div b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--c); font-size: 13px; }
.viec div.xong { background: #233424; }
.hang { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.link { border: 0; background: var(--pn2); color: var(--ink); border-radius: 14px; padding: 12px 8px; font-weight: 800; width: 100%; min-height: 46px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.link small { color: var(--c); font-weight: 800; margin-left: 2px; }
.foot { color: var(--mut); font-size: 12.5px; text-align: center; margin: 2px 0 0; }
.foot a { color: inherit; }
.csnv { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.csnv span { background: rgba(255,255,255,.06); border-radius: 9px; padding: 3px 7px; }
.csnv b { color: var(--ink); }

/* ---------- bảng phụ ---------- */
.panel { background: var(--pn); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 16px 14px; max-width: 520px; margin: calc(var(--sat) + 60px) auto 24px; width: calc(100% - 20px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.panel h2 { margin: 0 0 8px; font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel h2 small { font-size: 14px; color: var(--c); }
.panel h3 { margin: 14px 0 6px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h3 small { font-size: 12px; font-weight: 700; color: var(--mut); }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; font-size: 14.5px; }
.panel ul { padding-left: 18px; margin: 4px 0; }
.panel li b { color: var(--ink); }
.panel li.chua, .sach span.chua { opacity: .55; }
.panel .nho { font-size: 13.5px; margin: 8px 2px; }
.panel .rong { text-align: center; padding: 12px; background: rgba(255,255,255,.04); border-radius: 14px; }
.mini { border: 0; border-radius: 10px; background: #4a2228; color: #ffd8d8; font-size: 12.5px; font-weight: 800; padding: 7px 10px; min-height: 36px; }
.omac { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 4px 0 8px; }
.omac .o { border: 2px solid var(--m); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--m) 26%, transparent), rgba(0,0,0,.2)); border-radius: 14px; min-height: 84px; padding: 5px 3px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.omac .o.trong { border-style: dashed; opacity: .6; }
.omac .o.chon { box-shadow: 0 0 0 2px #fff; }
.omac .o i { font-style: normal; font-size: 24px; }
.omac .o small { font-size: 10px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--m); }
.omac .o em { font-style: normal; font-size: 11px; }
.netdem { display: flex; gap: 5px; margin: 8px 0 6px; }
.netdem span { flex: 1; text-align: center; background: rgba(255,255,255,.05); border-radius: 10px; padding: 4px 0; font-size: 15px; opacity: .5; }
.netdem span.co { opacity: 1; background: color-mix(in srgb, var(--m) 30%, transparent); box-shadow: inset 0 0 0 1.5px var(--m); }
.netdem b { margin-left: 3px; font-size: 14px; }
.bos { display: flex; flex-direction: column; gap: 5px; }
.bo { background: rgba(255,255,255,.04); border-radius: 12px; padding: 7px 10px; }
.bo b { display: block; font-size: 14px; } .bo small { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.bo.on { background: linear-gradient(90deg, rgba(160,70,154,.45), rgba(106,58,154,.25)); box-shadow: inset 0 0 0 1.5px #d08aff; }
.bo.on.don { background: rgba(242,165,65,.15); box-shadow: inset 0 0 0 1.5px rgba(242,165,65,.5); }
.bo.gan { border: 1px dashed rgba(255,255,255,.25); }
.ds { display: flex; flex-direction: column; gap: 6px; }
.dong { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 8px; align-items: center; text-align: left; border: 0; border-left: 4px solid var(--m); background: var(--pn2); color: var(--ink); border-radius: 12px; padding: 8px 10px; min-height: 56px; }
.dong.chon { box-shadow: 0 0 0 2px var(--m); }
.dong .ic { font-style: normal; font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--m) 22%, transparent); }
.dong .tn b { display: block; font-size: 14.5px; color: var(--m); line-height: 1.2; }
.dong .tn small { font-size: 11.5px; color: var(--mut); font-weight: 700; }
.dong .tn em { color: #ffb070; font-style: normal; }
.dong .nt { font-size: 14px; }
.dong .ss { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.so { font-weight: 900; font-size: 13.5px; white-space: nowrap; }
.so.len { color: #6fe07a; } .so.xuong { color: #ff7070; } .so.ngang { color: var(--mut); }
.bomoi { font-size: 10.5px; font-weight: 900; color: #fff; background: #a0469a; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.bomat { font-size: 10.5px; font-weight: 800; color: #ffb0b0; white-space: nowrap; }
.the { margin: 10px 0; border-radius: 18px; padding: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--m) 18%, var(--pn2)), var(--pn2)); border: 2px solid var(--m); box-shadow: 0 0 22px color-mix(in srgb, var(--m) 35%, transparent); }
.the .dau { display: flex; gap: 10px; align-items: center; }
.the .ic { font-style: normal; font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.25); }
.the h3 { margin: 0; font-size: 18px; color: var(--m); }
.the small { color: var(--mut); font-weight: 700; font-size: 12.5px; }
.the ul.cs { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 5px; }
.the ul.cs li { background: rgba(0,0,0,.22); border-radius: 9px; padding: 3px 8px; font-size: 13px; color: var(--ink); }
.nets { display: flex; gap: 6px; flex-wrap: wrap; }
.net { font-style: normal; font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: color-mix(in srgb, var(--m) 30%, transparent); box-shadow: inset 0 0 0 1.5px var(--m); }
.the .bv { color: #ffd890; font-weight: 800; margin: 8px 0 0; }
.the .kieu { font-size: 13px; margin: 6px 0 0; }
.soss { margin-top: 8px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 10px; font-size: 13.5px; }
.soss ul { list-style: none; padding: 0; margin: 4px 0 0; }
.soss li { font-size: 13px; padding: 1px 0; }
.soss li.len { color: #8ff09a; } .soss li.xuong { color: #ff9090; }
.hanh { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.hanh .btn { margin: 0; }
.kham { background: rgba(0,0,0,.22); border-radius: 14px; padding: 8px 10px; }
.kham > b { display: block; } .kham > small { color: var(--mut); }
.kd { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; }
.kd span { font-weight: 800; font-size: 13px; margin-right: 2px; }
.kn { border: 0; border-radius: 10px; min-height: 40px; padding: 0 10px; font-size: 13px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--m) 45%, #222); }
.kn.thieu { opacity: .5; }
.nl { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.nl span { background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px 9px; }
.loc { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 6px; }
.loc button { flex: 0 0 auto; border: 0; border-radius: 10px; min-height: 40px; padding: 0 10px; background: var(--pn2); color: var(--mut); font-weight: 800; font-size: 13px; }
.loc button.chon { background: var(--c); color: #2a1604; }
.sach { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sach span { background: var(--pn2); border-radius: 10px; padding: 7px 9px; font-size: 13px; }
.nc { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; background: var(--pn2); border-radius: 14px; padding: 9px 10px; margin: 6px 0; }
.nc i { font-style: normal; font-size: 24px; text-align: center; }
.nc b { font-size: 15px; } .nc b small { color: var(--c); letter-spacing: 1px; font-size: 12px; }
.nc em { display: block; font-style: normal; font-size: 12.5px; color: var(--mut); font-weight: 600; }
.nc button { border: 0; border-radius: 12px; min-height: 44px; min-width: 84px; padding: 0 10px; font-weight: 900; background: linear-gradient(180deg, #ffcf4a, #f0a820); color: #3a2a08; }
.nc button.thieu { filter: grayscale(.7); opacity: .7; }
.nc button[disabled] { background: #3a3448; color: var(--mut); }

/* ---------- HUD trong hầm ---------- */
#tbHud { position: fixed; inset: 0; z-index: 8; display: none; pointer-events: none; }
#tbHud.on { display: block; }
#tbHud .tren { position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 8px); display: grid; grid-template-columns: 48px 1fr auto 64px; gap: 8px; align-items: center; }
#tbHud .dung { pointer-events: auto; border: 0; border-radius: 14px; min-height: 48px; background: rgba(16,12,24,.72); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
#tbHud .dung b { font-size: 14px; } #tbHud .dung small { font-size: 10.5px; font-weight: 800; margin-top: 3px; }
#tbHud .suc { position: relative; }
#tbHud .suc i { display: block; height: 18px; border-radius: 10px; background: rgba(20,8,12,.7); border: 1.5px solid rgba(255,255,255,.35); overflow: hidden; }
#tbHud .suc em { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e8344a, #ff7a6a); box-shadow: 0 0 10px #ff4a5a; transition: width .15s; }
#tbHud .suc b { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 11.5px; line-height: 18px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
#tbHud .noi { text-align: center; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.8); max-width: 40vw; min-width: 0; }
#tbHud .noi b { display: block; font-size: 17px; font-weight: 900; line-height: 1.1; }
#tbHud .noi small { display: block; font-size: 11px; font-weight: 800; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tbHud .gui { pointer-events: auto; border: 0; border-radius: 16px; min-height: 52px; background: radial-gradient(circle at 50% 30%, #6a4a2a, #2a1c10); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 0 0 2px #b8864a; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
#tbHud .gui b { font-size: 16px; font-weight: 900; } #tbHud .gui small { font-size: 11px; font-weight: 800; margin-top: 3px; }
#tbHud .gui.day { box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 0 0 2px #ff6a6a; }
#tbHud .gui.moi { animation: tbNhip 1s infinite; box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 0 0 2px #6fe07a; }
#tbHud .gui.moi::after { content: '▲'; position: absolute; margin: -44px 0 0 44px; color: #6fe07a; font-size: 14px; text-shadow: 0 1px 3px #000; }
@keyframes tbNhip { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
#tbHud .trum { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--sat) + 70px); width: min(80vw, 340px); text-align: center; }
#tbHud .trum.on { display: block; }
#tbHud .trum b { color: #ffd8a0; font-size: 14px; font-weight: 900; text-shadow: 0 2px 4px #000; }
#tbHud .trum i { display: block; height: 12px; border-radius: 8px; background: rgba(30,6,6,.75); border: 1.5px solid #ffb0a0; overflow: hidden; margin-top: 2px; }
#tbHud .trum em { display: block; height: 100%; background: linear-gradient(90deg, #ff4d5e, #ffb06a); transition: width .15s; }
#tbHud .duoi { position: absolute; right: 12px; bottom: calc(var(--sab) + 18px); display: flex; align-items: flex-end; gap: 10px; }
#tbHud .nut { pointer-events: auto; position: relative; border: 0; border-radius: 50%; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
#tbHud .nut b { position: relative; font-size: 22px; line-height: 1; }
#tbHud .nut small { position: relative; font-size: 11px; font-weight: 900; margin-top: 3px; max-width: 76px; line-height: 1.05; text-align: center; }
#tbHud .nut svg { position: absolute; left: 0; top: 0; transform: rotate(-90deg); }
#tbHud .nut circle.v { fill: none; stroke-width: 5; stroke-linecap: round; }
#tbHud .binh { width: 56px; height: 56px; background: radial-gradient(circle at 40% 35%, #3a7a5a, #143424); }
#tbHud .binh.het { filter: grayscale(1); opacity: .6; }
#tbHud .luot { width: 64px; height: 64px; background: radial-gradient(circle at 40% 35%, #4a6a8a, #1a2a3a); }
#tbHud .luot circle.v { stroke: #9ad8ff; stroke-dasharray: 176; stroke-dashoffset: 0; }
#tbHud .chieu { width: 84px; height: 84px; background: radial-gradient(circle at 40% 35%, #8a5a2a, #3a2410); }
#tbHud .chieu svg { left: 4px; top: 4px; }
#tbHud .chieu circle.v { stroke: #ffd24a; stroke-dasharray: 214; stroke-dashoffset: 0; }
#tbHud .chieu.san { background: radial-gradient(circle at 40% 35%, #ffd86a, #d8841a); color: #2a1604; animation: tbNhip 1.2s infinite; }
#tbHud .chieu.san circle.v { stroke: #fff; }
#tbHud .luot.san { background: radial-gradient(circle at 40% 35%, #8ad0ff, #2a6aa0); }
#tbNhan { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: none; }
#tbNhan.on { display: block; }
#tbNhan button { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 7px 2px; min-height: 44px; min-width: 44px; background: none; display: flex; align-items: center; justify-content: center; }
#tbNhan button span { border-radius: 10px; padding: 4px 9px; font-size: 12px; font-weight: 900; color: var(--m); background: rgba(12,10,20,.82); box-shadow: inset 0 0 0 1.5px var(--m), 0 2px 8px rgba(0,0,0,.5); white-space: nowrap; }
#tbNhan button.r4 span { color: #2a1604; background: linear-gradient(180deg, #ffd88a, #ffae2b); }
#tbNhat { position: fixed; right: 10px; top: calc(var(--sat) + 74px); z-index: 9; display: none; flex-direction: column; gap: 6px; align-items: flex-end; width: min(74vw, 300px); }
#tbNhat.on { display: flex; }
#tbNhat .tn { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; width: 100%; background: rgba(16,12,24,.9); border-left: 4px solid var(--m); border-radius: 12px; padding: 6px 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5); animation: tbVao .3s; transition: opacity .35s, transform .35s; }
#tbNhat .tn.di { opacity: 0; transform: translateX(30px); }
#tbNhat .tn i { font-style: normal; font-size: 22px; text-align: center; }
#tbNhat .tn b { display: block; font-size: 13px; color: var(--m); line-height: 1.2; }
#tbNhat .tn small { font-size: 11px; font-weight: 700; color: var(--mut); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
#tbNhat .tn button { pointer-events: auto; border: 0; border-radius: 10px; min-height: 44px; padding: 0 9px; font-size: 12.5px; font-weight: 900; background: linear-gradient(180deg, #8ff09a, #3fae4a); color: #0e2a10; }
@keyframes tbVao { from { opacity: 0; transform: translateX(30px); } }
#tbBan { position: fixed; left: 50%; top: calc(var(--sat) + 24vh); transform: translate(-50%, -10px); z-index: 9; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; width: min(92vw, 420px); }
#tbBan.on { opacity: 1; transform: translate(-50%, 0); }
#tbBan b { display: block; color: #fff; font-size: 26px; font-weight: 900; text-shadow: 0 3px 10px rgba(0,0,0,.9), 0 0 2px #000; line-height: 1.15; }
#tbBan span { display: inline-block; margin-top: 6px; background: rgba(16,12,24,.78); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
#tbDau { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(255,0,0,0) 55%, rgba(220,20,40,.55) 100%); }
#tbDau.nhay { animation: tbDauA .45s; }
@keyframes tbDauA { 0% { opacity: .95; } 100% { opacity: 0; } }
#tbTay { position: fixed; left: 0; top: 0; z-index: 10; pointer-events: none; display: none; }
#tbTay.on { display: block; }
#tbTay i { position: absolute; left: -14px; top: -4px; font-style: normal; font-size: 40px; animation: tbTayA 1.1s infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
#tbTay span { position: absolute; top: 46px; width: 220px; text-align: center; background: rgba(255,246,226,.96); color: #2a2010; padding: 7px 10px; border-radius: 12px; font-size: 14px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
@keyframes tbTayA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
#tbCau { position: fixed; inset: 0; z-index: 15; display: none; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8,6,14,.85)); }
#tbCau.on { display: flex; align-items: flex-end; animation: tbVao2 .25s; }
@keyframes tbVao2 { from { opacity: 0; } }
#tbCau .hop { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 14px calc(var(--sab) + 18px); }
#tbCau h2 { margin: 0 0 4px; text-align: center; font-size: 30px; font-weight: 900; color: #ffe7a8; text-shadow: 0 3px 14px rgba(0,0,0,.8); }
#tbCau .gui { text-align: center; color: #e8e0f0; font-weight: 700; font-size: 14px; margin: 0 0 10px; }
#tbCau .btn { text-align: left; padding: 10px 16px; }
#tbCau .btn b { font-size: 19px; }
#tbCau .xuong { background: linear-gradient(180deg, #4a2a6a, #2a1840); color: #fff; box-shadow: inset 0 0 0 2px #c08aff, 0 6px 18px rgba(0,0,0,.4); }
#tbCau .len { background: linear-gradient(180deg, #ffc66a, #e0902a); color: #2a1604; }
#tbCau .o { text-align: center; background: rgba(255,255,255,.1); min-height: 46px; font-size: 15px; }
#tbToi { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .6s; }
