:root { --c: #E85D04; --c2: #48CAE4; --bg: #1A0F08; --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 Đấu — menu */
body { background: #2a1d4a; }
.logo .mark { background: linear-gradient(135deg, #ffd23f, var(--c)); overflow: hidden; }
.logo .mark img { width: 76px; height: 76px; transform: rotate(8deg); }
.logo p { font-size: 16px; }
.btn.card2 { text-align: left; padding: 12px 18px; background: rgba(255,255,255,.94); }
.btn.card2 b { display: block; font-size: 18px; font-weight: 900; color: #2a2440; }
.btn.card2 small { display: block; font-size: 13.5px; font-weight: 700; color: var(--mut); margin-top: 2px; }
.btn.lock { opacity: .62; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.row3 .link { padding: 12px 6px; min-height: 52px; font-size: 15px; }
.link small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.panel.wide { max-width: 560px; }
.panel h3 { margin: 16px 0 6px; font-size: 15px; letter-spacing: .3px; color: #b0461a; text-transform: uppercase; }
.panel ul { padding-left: 20px; margin: 8px 0 14px; }
.mut { color: var(--mut); font-weight: 600; margin: 4px 0 10px; line-height: 1.45; }
.mut.small { font-size: 13px; margin: 6px 0; }
img.toy { display: block; border-radius: 14px; flex: none; }
.lvl { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: #f6f2ff; border-radius: 16px; padding: 8px 10px; margin: 6px 0; text-align: left; min-height: 72px; }
.lvl .t { flex: 1; min-width: 0; }
.lvl .t b { display: block; font-size: 16px; color: #2a2440; }
.lvl .t small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.lvl .t small.new { color: #b0461a; }
.lvl .st { display: flex; flex-direction: column; align-items: center; color: #e8a417; font-weight: 900; font-size: 15px; letter-spacing: 1px; }
.lvl .st small { font-size: 10.5px; color: var(--mut); letter-spacing: 0; font-weight: 700; margin-bottom: 2px; }
.lvl.lock { opacity: .55; }
.vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff1ea; border-radius: 14px; padding: 8px 12px; font-weight: 700; color: #6a3a2a; font-size: 14px; }
.vs .ic { display: flex; gap: 4px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.slot { border: 2px dashed #cfc7e0; border-radius: 16px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #a39bb8; font-weight: 800; background: #faf8ff; padding: 4px; }
.slot.on { border: 2px solid #22b8ff; background: #eaf8ff; color: #2a2440; }
.slot small { font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.2; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.fc { display: flex; flex-direction: column; align-items: center; text-align: center; border: 0; border-radius: 16px; background: #f6f2ff; padding: 10px 8px; gap: 2px; min-height: 44px; }
.fc b { font-size: 15px; color: #2a2440; margin-top: 4px; }
.fc small { font-size: 12px; font-weight: 700; color: var(--mut); line-height: 1.35; }
.fc small.sk { color: #6a3fb0; }
.fc.on { background: #dff4ff; box-shadow: inset 0 0 0 3px #22b8ff; }
.fc.lockf img { filter: brightness(0) opacity(.35); }
.tier { border-radius: 18px; padding: 14px 16px; background: linear-gradient(135deg, #2a2440, #4b3a7a); color: #fff; margin: 8px 0; }
.tier b { display: block; font-size: 26px; font-weight: 900; color: var(--tc); }
.tier span { font-weight: 800; }
.tier .bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.2); margin: 8px 0 6px; overflow: hidden; }
.tier .bar i { display: block; height: 100%; background: var(--tc); border-radius: 6px; }
.tier small { font-weight: 700; opacity: .85; }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tiers span { padding: 5px 10px; border-radius: 12px; font-size: 13px; font-weight: 800; background: #f2eefa; color: #6a6280; border-left: 6px solid var(--tc); }
.tiers span.on { background: #2a2440; color: #fff; }
.btn[disabled] { opacity: .5; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, 1fr); } }
