/* LabN Game portal — shared styles (labngame.com). */
:root {
  --bg: #0a0e20;
  --bg-2: #0f1430;
  --panel: #141a3a;
  --panel-2: #1a2148;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1ff;
  --muted: #a4acd4;
  --gold: #ffcf6b;
  --gold-2: #ffb347;
  --cyan: #5ad1ff;
  --crimson: #ff5a6a;
  --ok: #58d68d;
  --warn: #ffb44a;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section { padding: 80px 0; position: relative; }
/* Anchored sections land below the sticky header. */
[id] { scroll-margin-top: 76px; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.gradient-text { background: linear-gradient(100deg, #fff 10%, var(--gold) 45%, var(--cyan) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1a00; border: 0; box-shadow: 0 10px 30px rgba(255, 180, 70, .3); }
.btn.primary:hover { box-shadow: 0 14px 36px rgba(255, 180, 70, .45); }
.btn.cyan { background: linear-gradient(135deg, #7fe1ff, #3aa9ff); color: #04203a; border: 0; }
.btn.lg { padding: 16px 30px; font-size: 18px; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 32, .88); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none !important; white-space: nowrap; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 2px; margin-left: 8px; min-width: 0; }
.nav a { color: var(--muted); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
/* Menu co them muc Nova: header rong toi da 1200px o moi man, nen menu ngang (> 1180px) luon thu hep de chu khong de len nut ngon ngu. */
@media (min-width: 1181px) { .nav a { padding: 8px 6px; font-size: 13.5px; } }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; white-space: nowrap; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-btn:hover, .lang.open .lang-btn { background: rgba(255, 255, 255, .08); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .15s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; max-height: min(80vh, 560px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; z-index: 60; }
.lang.open .lang-list { display: block; animation: langDrop .14s ease-out; }
@keyframes langDrop { from { opacity: 0; transform: translateY(-4px); } }
.lang-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; border-radius: 8px; padding: 9px 10px; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lang-list button:hover { background: rgba(255, 255, 255, .07); }
.lang-list button.on { background: rgba(90, 209, 255, .14); }
.lang-list small { color: var(--muted); font-weight: 700; font-size: 11px; }
html.i18n-wait body { opacity: 0; }
body { transition: opacity .15s; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav .nav-account, .header-actions .account-icon { display: none; }
.header-actions .account-icon { width: 42px; height: 42px; padding: 0; border-radius: 999px; place-items: center; }
.header-actions .account-icon svg { width: 20px; height: 20px; }
.nav .nav-account { align-items: center; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }
.nav .nav-account svg { width: 18px; height: 18px; }
/* Many games in the menu: fold it into the ☰ button before the links would wrap. */
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .menu-toggle { display: grid; }
  .header-actions .btn.hide-sm { display: none; }
  .header-actions .account-icon { display: grid; }
  .nav .nav-account { display: flex; }
}
/* Menu ngang qua dai so voi cho trong (nhieu game, ngon ngu chu dai nhu Phap / Duc): site.js gan .fold -> gap vao nut menu nhu man nho, khong de len nut ngon ngu. */
.site-header.fold .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
.site-header.fold .nav.open { display: flex; }
.site-header.fold .menu-toggle { display: grid; }
.site-header.fold .header-actions .btn.hide-sm { display: none; }
.site-header.fold .header-actions .account-icon { display: grid; }
.site-header.fold .nav .nav-account { display: flex; }
/* Truoc khi gap: thu gon menu ngang (chu nho hon, an muc "Tai game" trung nut Tai ve, nut Dang nhap thanh icon) de ngon ngu chu dai (EN) van hien menu o ~1200px. */
.site-header.compact:not(.fold) .nav a { padding: 8px 5px; font-size: 13px; }
.site-header.compact:not(.fold) .nav a[href="/dragonball/#download"] { display: none; }
.site-header.compact:not(.fold) .header-actions .btn.hide-sm { display: none; }
.site-header.compact:not(.fold) .header-actions .account-icon { display: grid; }
@media (max-width: 520px) {
  .site-header .container { gap: 10px; }
  .brand small { display: none; }
  .brand { font-size: 18px; }
  .header-actions { gap: 6px; }
  .header-actions .btn.primary span { display: none; }
  .header-actions .btn.primary { padding: 8px 10px; }
  .lang-btn { padding: 5px 8px; }
  .lang-btn .chev { display: none; }
}

/* ---------------------------------------------------------------- hero banners */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); transition: opacity 1.2s ease; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 32, .96) 0%, rgba(10, 14, 32, .75) 45%, rgba(10, 14, 32, .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: end; width: 100%; }
.hero-copy { padding: 60px 0; }
.hero-copy p { font-size: 19px; color: #d6dcff; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-top: 26px; }
/* Download for this device, with "play in the browser" right under it (same width). */
.dl-stack { display: grid; gap: 10px; }
.btn.play-web { background: linear-gradient(135deg, #6ff0a4, #1fae62); border: 0; color: #03230f; box-shadow: 0 10px 30px rgba(46, 204, 113, .32); }
.btn.play-web:hover { background: linear-gradient(135deg, #85f7b5, #25c06d); box-shadow: 0 14px 36px rgba(46, 204, 113, .45); }
.btn.play-web svg { color: #03230f; }
.btn.discord { background: linear-gradient(135deg, #7984ff, #5865f2); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, .32); }
.btn.discord:hover { background: linear-gradient(135deg, #8b95ff, #6773ff); box-shadow: 0 14px 36px rgba(88, 101, 242, .45); }
@media (max-width: 520px) { .hero-actions .dl-stack, .hero-actions > .btn { width: 100%; } }
.hero-art { position: relative; height: min(78vh, 720px); display: flex; align-items: flex-end; justify-content: center; }
.hero-art img { transition: opacity .8s; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); animation: float 6s ease-in-out infinite; }
.hero-art img + img { position: absolute; height: 82%; left: -8%; opacity: .9; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-12px); } }
/* In-game combat banner (video): the fight sits to the right of the copy, crisp (no scaling) and bright. */
.hero.action .hero-bg { left: 14%; transform: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-video.on { opacity: 1; }
.hero.action::after { background: linear-gradient(90deg, rgba(10, 14, 32, .96) 0%, rgba(10, 14, 32, .72) 28%, rgba(10, 14, 32, .08) 58%, rgba(10, 14, 32, 0) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }

.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14px; }
.platforms span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.platforms svg { width: 16px; height: 16px; }
.status-pill { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.status-pill.up i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 360px; order: -1; margin-top: 20px; }
  .hero-copy { padding: 10px 0 50px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 10%, rgba(10, 14, 32, .7) 60%, rgba(10, 14, 32, .45) 100%); }
  .hero.action .hero-bg { left: 0; -webkit-mask-image: none; mask-image: none; }
  .hero.action::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(10, 14, 32, .78) 45%, rgba(10, 14, 32, .2) 100%); }
  .hero.action { align-items: flex-end; }
}

/* ---------------------------------------------------------------- cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(255, 207, 107, .12); color: var(--gold); }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stat { text-align: center; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stat b { display: block; font-size: 36px; font-weight: 800; color: var(--gold); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Game cards on the portal. */
.game-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.game-card:hover .bg { transform: scale(1.05); }
.game-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 24, .96) 0%, rgba(8, 10, 24, .3) 60%, transparent); }
.game-card .body { position: relative; z-index: 1; padding: 24px; width: 100%; }
.game-card .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ok); color: #062a14; margin-bottom: 10px; }
.game-card .tag.soon { background: rgba(255, 255, 255, .16); color: var(--text); }
.game-card.soon { filter: saturate(.3); }
.game-card.soon .bg { background: radial-gradient(circle at 30% 20%, #2a3170, #0c1030); }
.game-card .ghost-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: 800; color: rgba(255, 255, 255, .06); }

/* Heroes. */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.chip { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--muted); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--text); color: #0a0e20; border-color: var(--text); }
.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.hero-tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 14; background: radial-gradient(circle at 50% 30%, var(--c, #3a3f80) 0%, #0d1130 75%); border: 1px solid var(--line); cursor: pointer; transition: transform .18s, border-color .18s; padding: 0; text-align: left; }
.hero-tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.hero-tile img { position: absolute; inset: 4% 0 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero-tile .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(0deg, rgba(5, 8, 20, .95), transparent); }
.hero-tile b { display: block; font-size: 15px; }
.hero-tile small { color: var(--muted); font-size: 12px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.el { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ec, #666); color: #081020; }

/* Regions (horizontal strip). */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.region { scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.region img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.region .body { padding: 16px 18px 20px; }
.region small { color: var(--gold); font-weight: 700; font-size: 13px; }
.region p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* macOS download card: the other chip's build + the first-launch command (click to copy). */
.mac-extra { display: grid; gap: 6px; }
.mac-extra .cmd { display: block; font-size: 11.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line, rgba(255, 255, 255, .1)); color: #cfe8ff; word-break: break-all; cursor: copy; user-select: all; }

/* Screenshots. */
.shots { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
.shots button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.shots button:first-child { grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shots button:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .shots button:first-child { grid-column: span 2; } }

/* Downloads. */
.dl { display: flex; flex-direction: column; gap: 10px; }
.dl .plat { display: flex; align-items: center; gap: 12px; }
.dl .plat svg { width: 36px; height: 36px; flex: none; }
.dl .meta { color: var(--muted); font-size: 14px; }
.dl.recommended { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.dl .badge { font-size: 12px; font-weight: 800; color: #2a1a00; background: var(--gold); border-radius: 999px; padding: 2px 10px; margin-left: auto; }
.req { width: 100%; border-collapse: collapse; font-size: 15px; }
.req th, .req td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { color: var(--muted); font-weight: 600; width: 34%; }

/* News. */
.news-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none !important; }
.news-card:hover h3 { color: var(--gold); }
.news-card .cover { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin: -8px -8px 6px; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card time { color: var(--muted); font-size: 13px; }
.kind { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.kind.update { color: var(--gold); }
.kind.event { color: var(--crimson); }
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4vw, 44px); }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article .cover { border-radius: 16px; overflow: hidden; margin: 20px 0 28px; }

/* FAQ. */
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--panel); margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------------------------------------------------------------- forms, tabs, tables (account) */
.auth { max-width: 440px; margin: 60px auto; }
.tabs { display: flex; gap: 6px; padding: 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 14px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; }
.field input, .field select { background: #0b1028; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(90, 209, 255, .18); }
.form-msg { min-height: 22px; font-size: 14px; }
.form-msg.err { color: var(--crimson); }
.form-msg.ok { color: var(--ok); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { width: 100%; background: #fff; color: #1f1f1f; border: 0; }
.google-btn:hover { background: #f1f3f4; }
.dash { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin: 40px auto 80px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.profile-card { text-align: center; }
.avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: radial-gradient(circle, var(--c, #3a3f80), #0d1130); border: 3px solid var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; text-align: left; font-size: 15px; margin-top: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.balances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.balance { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.balance span { color: var(--muted); font-size: 13px; }
.balance b { display: block; font-size: 24px; }
.balance.diamond b { color: #8fe3ff; }
.balance.gem b { color: #c9a6ff; }
.balance.gold b { color: var(--gold); }
@media (max-width: 600px) { .balances { grid-template-columns: 1fr; } }
.telcos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.telco { padding: 14px 8px; border-radius: 12px; border: 2px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 800; cursor: pointer; }
.telco.on { border-color: var(--gold); background: rgba(255, 207, 107, .12); }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 600; }
.pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill.paid { background: rgba(88, 214, 141, .16); color: var(--ok); }
.pill.pending { background: rgba(255, 180, 74, .16); color: var(--warn); }
.pill.failed { background: rgba(255, 90, 106, .16); color: var(--crimson); }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(90, 209, 255, .08); border: 1px solid rgba(90, 209, 255, .3); color: #cfefff; font-size: 14px; margin-bottom: 16px; }

/* Rankings. */
.rank-row { display: grid; grid-template-columns: 56px 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.rank-row .no { font-weight: 800; font-size: 20px; text-align: center; color: var(--muted); }
.rank-row.top1 { border-color: rgba(255, 207, 107, .6); background: linear-gradient(90deg, rgba(255, 207, 107, .18), var(--panel)); }
.rank-row.top1 .no { color: var(--gold); }
.rank-row.top2 .no { color: #e3e9f5; }
.rank-row.top3 .no { color: #e29a66; }
.rank-row .face { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #1a2148; }
.rank-row .val { font-weight: 800; color: var(--gold); }
.hero-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.hero-pick button { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid var(--line-2); background: #151a33; cursor: pointer; opacity: .65; }
.hero-pick button.on { border-color: var(--gold); opacity: 1; }

/* ---------------------------------------------------------------- modal, lightbox, toast */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 16, .82); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; width: min(920px, 100%); max-height: 92vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .4); color: #fff; font-size: 22px; cursor: pointer; }
.hero-detail { display: grid; grid-template-columns: 1fr 1.1fr; }
.hero-detail .art { background: radial-gradient(circle at 50% 40%, var(--c, #3a3f80), #0a0e20 75%); display: flex; align-items: flex-end; justify-content: center; min-height: 420px; }
.hero-detail .art img { max-height: 560px; }
.hero-detail .txt { padding: 36px 32px; }
@media (max-width: 760px) { .hero-detail { grid-template-columns: 1fr; } .hero-detail .art { min-height: 300px; } .hero-detail .art img { max-height: 340px; } }
.lightbox img { width: 100%; border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #070a18; padding: 50px 0 30px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.page-head { padding: 60px 0 20px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 32px; }
.prose p, .prose li { color: #cdd3f5; }
