:root { --c: #00B4D8; --c2: #F15BB5; --bg: #0B132B; --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; }
/* Xâm Nhập */
.home { justify-content: flex-start; }
.logo .mark { background: linear-gradient(135deg, #f472b6, #22d3ee); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.mem { background: rgba(255,255,255,.08); border: 2px solid var(--ac); border-radius: 18px; padding: 6px 4px 8px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; }
.mem img { width: 72px; height: 72px; }
.mem b { font-size: 15px; font-weight: 900; }
.mem span { font-size: 12px; font-weight: 700; opacity: .8; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.row2 .btn { margin: 0; min-height: 74px; font-size: 18px; background: rgba(255,255,255,.95); color: #12203f; }
.row2 .btn.day { background: linear-gradient(180deg, #ffd66b, #ffb020); color: #3a2400; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .85; margin-top: 2px; }
.panel.dark { background: #111a36; color: #fff; border: 1px solid rgba(103,232,249,.25); }
.panel.dark h2 { color: #fff; }
.panel.dark li { color: #cbd5e1; margin-bottom: 8px; }
.panel.dark li b { color: #fff; }
.panel.dark ul { padding-left: 20px; }
.panel.dark .btn:not(.main) { background: #24365f; color: #fff; }
.panel .sub { color: #94a3b8; font-weight: 700; margin: 0 0 12px; }
.panel.wide { max-width: 560px; }
.bld { border-left: 5px solid var(--bc); background: rgba(255,255,255,.04); border-radius: 18px; padding: 12px; margin-bottom: 14px; }
.bld.lock { opacity: .55; }
.bh { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bh img { width: 64px; height: 64px; flex: none; background: rgba(255,255,255,.06); border-radius: 16px; }
.bh b { display: block; color: var(--bc); font-size: 17px; }
.bh span { display: block; font-size: 13px; color: #cbd5e1; font-weight: 600; line-height: 1.4; }
.bh em { display: block; font-style: normal; color: #86efac; font-weight: 800; font-size: 13px; margin-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lvl { min-height: 104px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #2b3f73, #1d2b54); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 3px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.lvl b { font-size: 24px; font-weight: 900; line-height: 1; }
.lvl span { font-size: 11px; font-weight: 700; opacity: .9; text-align: center; line-height: 1.2; }
.lvl em { font-style: normal; color: #ffc94a; font-size: 14px; letter-spacing: 1px; }
.lvl small { font-size: 11px; color: #a5f3fc; font-weight: 700; }
.lvl.full { background: linear-gradient(180deg, #0f766e, #115e59); }
.lvl.lock { background: #1a2340; color: #5d6a8a; }
.lvl.lock em { color: #5d6a8a; font-size: 12px; letter-spacing: 0; }
.brief-sp { height: 44vh; }
.panel.brief { margin-top: 0; }
.tipl { color: #fde68a !important; font-weight: 800 !important; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips span { background: #24365f; border-radius: 99px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.chips span.x { background: #4c1d95; }
.chips span.p { background: #134e4a; }
.chips span.t { background: #3f3f46; }
.agents { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.agent { display: flex; gap: 10px; align-items: center; text-align: left; border: 2px solid rgba(255,255,255,.12); background: #18244a; color: #fff; border-radius: 18px; padding: 8px 10px; min-height: 92px; }
.agent.on { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 35%, transparent); }
.agent img { width: 76px; height: 76px; flex: none; }
.agent b { display: block; font-size: 17px; color: var(--ac); }
.agent b i { font-style: normal; font-size: 12px; color: #94a3b8; font-weight: 700; margin-left: 4px; }
.agent span { display: block; font-size: 13px; color: #cbd5e1; font-weight: 600; line-height: 1.35; }
.agent strong { color: #fff; }
img.mark { display: block; padding: 0; background: none; }
