/* Giao diện chung cho website TANK HB (trang chủ, tải game). Trang tài khoản /account/ có CSS riêng cùng tông màu. */
:root {
  --bg: #070b14; --bg2: #0d1424; --panel: #111a2e; --panel2: #16213a; --line: #24324f;
  --text: #e8eef8; --muted: #8ea0bd; --accent: #19e27a; --accent-ink: #04140b; --accent2: #8b5cf6; --gold: #ffcb47;
  --radius: 16px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* thanh trên */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7,11,20,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36,50,79,.6); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .06em; }
.nav .brand img { width: 44px; height: 44px; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.nav .links a:hover, .nav .links a.on { color: var(--text); background: var(--panel); }
.nav .menu-btn { display: none; margin-left: auto; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 7px 11px; font-size: 18px; cursor: pointer; }
@media (max-width: 760px) {
  .nav .menu-btn { display: block; }
  .nav .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open .links { display: flex; }
}

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 800;
  text-decoration: none; border: 1px solid var(--line); background: var(--panel); letter-spacing: .02em; cursor: pointer; transition: transform .1s, filter .1s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(25,226,122,.28); }
.btn.purple { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn.lg { padding: 16px 28px; font-size: 17px; }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }

/* hero */
.hero { position: relative; min-height: 620px; display: grid; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/godot/a/l/gate/login_bg.webp") center/cover no-repeat; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,20,.96) 0%, rgba(7,11,20,.75) 45%, rgba(7,11,20,.2) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .container { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 60px; }
.hero img.logo { width: 210px; filter: drop-shadow(0 10px 30px rgba(139,92,246,.45)); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 10px 0 12px; max-width: 620px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { color: #c4cfe2; font-size: 18px; max-width: 560px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(17,26,46,.8); border: 1px solid var(--line); padding: 6px 12px; border-radius: 30px; font-size: 14px; color: var(--muted); }
.live b { color: var(--text); }
.live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(25,226,122,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(25,226,122,0); } 100% { box-shadow: 0 0 0 0 rgba(25,226,122,0); } }

/* khối nội dung */
section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
section.block p.sub { color: var(--muted); margin: 0 0 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: rgba(25,226,122,.1); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.platform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.platform .ico { font-size: 34px; }
.platform h3 { margin: 0; }
.platform p { margin: 0 0 8px; color: var(--muted); flex: 1; }

.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rank-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-card h3 { margin: 0; padding: 14px 18px; font-size: 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.rank-card ol { list-style: none; margin: 0; padding: 6px 0; }
.rank-card li { display: flex; align-items: center; gap: 12px; padding: 8px 18px; }
.rank-card li .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg2); color: var(--muted); }
.rank-card li:nth-child(1) .n { background: #ffcb47; color: #2a1d00; }
.rank-card li:nth-child(2) .n { background: #c9d4e6; color: #17202e; }
.rank-card li:nth-child(3) .n { background: #e39a5b; color: #2b1404; }
.rank-card li .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card li .v { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-card .empty { padding: 16px 18px; color: var(--muted); }

.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; display: grid; place-items: center; }
.steps { padding: 0; margin: 0; }
.note { background: rgba(255,203,71,.08); border: 1px solid rgba(255,203,71,.4); color: #ffe39a; border-radius: 12px; padding: 12px 16px; font-size: 14px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--text); }
