/* Bảng màu: nền đá đêm, vàng War3 làm màu nhấn; xanh = pick / đang đấu, cam = ban. */
:root {
  --bg: #0d1014; --s1: #151a21; --s2: #1c222b; --line: #2a323d; --line2: #3a4452;
  --tx: #e9edf2; --tx2: #c9d2dd; --mut: #9ba7b6;
  --gold: #e8b84a; --gold-bg: #2b2412; --gold-ink: #17130a;
  --blue: #62b6f0; --blue-bg: #12202b; --ban: #f08a5d; --ban-bg: #2b1a13;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Be Vietnam Pro', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--tx); min-height: 100vh; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--tx2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font: 700 38px/1.05 var(--display); text-transform: uppercase; }
h2 { font: 700 22px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.page.narrow { max-width: 920px; }
.page > section, .main-col, .side-col { display: flex; flex-direction: column; gap: 14px; }
.two-col { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.main-col { flex: 999 1 600px; min-width: 0; gap: 20px; }
.side-col { flex: 1 1 280px; min-width: 0; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.row.top { align-items: flex-start; } .wrapit { flex-wrap: wrap; } .grow { flex: 1 1 auto; min-width: 0; } .center { text-align: center; }
.muted { color: var(--mut); } .gold { color: var(--gold); } .blue { color: var(--blue); }
.label { font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.hint { font-size: 13px; color: var(--mut); }
.error { color: var(--ban); font-weight: 500; }
.prose { white-space: pre-wrap; max-width: 75ch; overflow-wrap: anywhere; }

/* nút */
button { font: inherit; color: inherit; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; background: transparent; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--gold); color: var(--gold-ink); } .btn.primary:hover:not(:disabled) { background: #f3c961; color: var(--gold-ink); }
.btn.outline { border-color: var(--gold); color: var(--gold); } .btn.ghost { border-color: var(--line2); color: var(--tx); }
.btn.ghost:hover, .btn.outline:hover { background: var(--s2); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 14px; } .btn.big { min-height: 54px; font-size: 17px; width: 100%; }
.btn.opt { border-color: var(--line2); color: var(--tx2); font-weight: 500; } .btn.opt.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn.opt.tall { flex-direction: column; align-items: flex-start; text-align: left; padding: 14px; gap: 4px; min-height: 92px; } .btn.opt.tall span { font-size: 13px; color: var(--tx2); }
.btn.pick { background: var(--blue); color: #08131c; } .btn.ban { background: var(--ban); color: #1f0d05; }
.btn.pickw { border-color: var(--line2); min-width: 130px; } .btn.pickw.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; } .link:hover { color: var(--gold); } .link.danger { color: var(--ban); }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 18px; }
.icon-btn:disabled { opacity: .35; }

/* thanh điều hướng */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-top: 8px; padding-bottom: 8px; }
.logo { font: 700 24px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); min-height: 44px; display: inline-flex; align-items: center; }
.nav nav { display: flex; flex-wrap: wrap; gap: 0 22px; flex: 1 1 auto; font-weight: 500; }
.nav nav a, .tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.nav nav a.on, .tabs a.on { color: var(--tx); box-shadow: inset 0 -2px 0 var(--gold); } .tabs a.on { color: var(--gold); }
.nav-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--mut); font-size: 13px; font-weight: 600; } .seg button.on { background: var(--s2); color: var(--gold); }
.me { display: inline-flex; align-items: center; gap: 8px; }
.flag img { width: 24px; height: 18px; border-radius: 2px; display: block; object-fit: cover; }
.bell .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ban); }
.pop { position: relative; }
.pop-body { position: absolute; right: 0; top: 50px; width: 300px; max-width: 86vw; background: var(--s1); border: 1px solid var(--line2); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.pop-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; min-height: 44px; background: var(--s2); border: 1px solid var(--line); border-radius: 8px; }
.pop-item:hover { border-color: var(--gold); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; border-bottom: 1px solid var(--line); font-weight: 500; }
.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--mut); font-size: 14px; } .foot .row { flex-wrap: wrap; }

/* khối chung */
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.notice { background: var(--gold-bg); border-color: var(--gold); } .panel.notice h2 { color: var(--gold); }
.chip { display: inline-block; padding: 2px 10px; border: 1px solid var(--mut); border-radius: 4px; font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.chip.open { border-color: var(--gold); color: var(--gold); } .chip.running { border-color: var(--blue); color: var(--blue); } .chip.soon { border-color: var(--tx2); color: var(--tx2); }
.flag { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--display); letter-spacing: .06em; color: var(--tx2); vertical-align: middle; } .flag img { border-radius: 2px; display: block; }
.who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts > div { background: var(--s2); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; } .facts b { font-size: 17px; overflow-wrap: anywhere; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; } .dl dt { color: var(--mut); } .dl dd { margin: 0; }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); } .table tr.first td { background: var(--gold-bg); }
.scroll { overflow-x: auto; }

/* trang chủ */
.hero { position: relative; border-radius: 10px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); min-height: 200px; }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 5; min-height: 200px; object-fit: cover; }
.hero.plain { padding: 56px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--s1) linear-gradient(135deg, var(--gold-bg), transparent 60%); }
.hero.plain h1 { font-size: clamp(34px, 6vw, 60px); color: var(--gold); } .hero.plain p { max-width: 52ch; color: var(--tx2); font-size: 17px; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 24px 30px; background: linear-gradient(transparent, rgba(7, 9, 12, .92)); font: 700 28px var(--display); text-transform: uppercase; }
.hero-prev, .hero-next { position: absolute; top: 50%; margin-top: -22px; background: rgba(13, 16, 20, .8); border-radius: 50%; font-size: 24px; } .hero-prev { left: 12px; } .hero-next { right: 12px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; position: relative; } .dots button::after { content: ''; position: absolute; inset: 9px 8px; border-radius: 3px; background: var(--line2); } .dots button.on::after { inset: 9px 1px; background: var(--gold); }
.trow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; }
.trow-main { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; } .trow h3 { font-size: 21px; } .trow h3 a { color: var(--tx); } .trow p { color: var(--tx2); }
.tlogo { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; } .tlogo.big { width: 76px; height: 76px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card img, .card .ph { height: 150px; width: 100%; object-fit: cover; background: var(--s2); } .card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; } .card h3 a { color: var(--tx); }
.article { max-width: 820px; } .article img { border-radius: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 12px; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* trang giải đấu */
.thead h1 { margin-bottom: 8px; overflow-wrap: anywhere; }
.statusbox { flex: 1 1 240px; background: var(--s2); border: 1px solid #5c4a1e; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.statusbox label, .form label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.champ { display: flex; flex-direction: column; gap: 4px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--s2); border-radius: 8px; font-size: 14px; } .pcard b { font-size: 15px; }
.champ-row { display: flex; align-items: center; gap: 12px; color: var(--tx); } .champ-row .gold { font-size: 13px; }
.medal { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-bg); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.rounds { display: flex; align-items: stretch; gap: 18px; } .rounds.wrapit { flex-wrap: wrap; }
.bracket-row { display: flex; align-items: stretch; gap: 18px; }
.round { flex: none; width: 186px; display: flex; flex-direction: column; gap: 10px; } .round > .label { min-height: 2.5em; display: flex; align-items: flex-end; } .round-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.match, .live { display: block; width: 100%; padding: 0; text-align: left; background: var(--s2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
.match:hover, .live:hover { border-color: var(--gold); } .match.ready, .live { border-color: var(--blue); }
.mhead { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; font-size: 12px; color: var(--mut); border-bottom: 1px solid var(--line); }
.match.ready .tag, .live .tag { color: var(--blue); font-weight: 600; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 7px 10px; min-height: 34px; } .mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mrow.win { font-weight: 600; } .mrow.win .sc { color: var(--gold); } .mrow.lose { color: var(--mut); }
.mrow .flag span { font-size: 12px; }
.side-col h2 { font-size: 19px; }

/* hộp thoại */
.overlay { position: fixed; inset: 0; background: rgba(4, 6, 8, .78); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto; z-index: 50; }
.modal { width: 100%; max-width: 480px; background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal.wide { max-width: 680px; } .modal.accent { border-color: var(--gold); max-width: 640px; } .modal.accent h2 { color: var(--gold); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .modal-head h2 { font-size: 28px; }
.versus { display: flex; align-items: stretch; gap: 12px; } .vs { align-self: center; font: 700 26px var(--display); color: var(--mut); }
.versus .side { flex: 1 1 0; min-width: 0; background: var(--s2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.versus .side.mine { border-color: var(--blue); } .versus .side.mine .label { color: var(--blue); } .versus strong { font-size: 22px; } .versus .score { color: var(--gold); font: 700 34px var(--display); }
.game { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--s2); border-radius: 8px; } .game > div { flex: 1 1 150px; display: flex; flex-direction: column; } .game.off { opacity: .45; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 16px; border: 1px solid var(--gold); border-radius: 8px; }
.total strong { font: 700 26px var(--display); } .total em { font-style: normal; color: var(--gold); }
.maplist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
input, select, textarea { font: inherit; color: var(--tx); background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; min-height: 44px; padding: 8px 12px; width: 100%; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--gold); flex: none; }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; min-height: 44px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.imgfield img, .thumb { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--s2); flex: none; }
.arow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
.seedlist { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; } .seedlist li { padding-left: 4px; } .seedlist li > * { vertical-align: middle; }
.seedlist li { display: list-item; } .seedlist .grow { display: inline-flex; gap: 10px; align-items: center; min-width: 55%; } .seedlist .icon-btn { margin-right: 6px; }
.manage { border-color: var(--blue); }

/* sảnh veto */
.vs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 22px; font: 700 clamp(34px, 6vw, 54px)/1.05 var(--display); text-transform: uppercase; color: var(--tx2); overflow-wrap: anywhere; }
.vs-head small { font-size: 22px; color: var(--mut); } .vs-head .me { color: var(--blue); box-shadow: inset 0 -4px 0 var(--blue); }
.turn { align-self: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 12px 22px; background: var(--s1); border: 1px solid var(--line2); border-radius: 10px; font-size: 19px; font-weight: 600; text-align: center; }
.turn.pick { border-color: var(--blue); } .turn.ban { border-color: var(--ban); } .clock { font: 700 30px var(--display); color: var(--gold); min-width: 2.6em; }
.seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.seq li { padding: 10px 12px; background: var(--s1); border: 2px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.seq .ban .label { color: var(--ban); } .seq .pick .label { color: var(--blue); } .seq .decider .label { color: var(--gold); } .seq li.now { border-color: var(--gold); background: var(--gold-bg); }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mapcard { background: var(--s1); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.mapcard > h3, .mapcard > .state, .mapcard > .btn { margin: 0 14px; } .mapcard .state { min-height: 44px; display: flex; align-items: center; font: 600 16px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.mapimg { height: 150px; background: var(--s2); display: flex; align-items: center; justify-content: center; font: 700 44px var(--display); color: var(--line2); } .mapimg img { width: 100%; height: 100%; object-fit: cover; }
.mapcard.ban { border-color: var(--line); } .mapcard.ban .mapimg { opacity: .3; } .mapcard.ban h3 { color: var(--mut); text-decoration: line-through; } .mapcard.ban .state { color: var(--ban); }
.mapcard.pick { border-color: var(--blue); } .mapcard.pick .state { color: var(--blue); } .mapcard.decider { border-color: var(--gold); } .mapcard.decider .state { color: var(--gold); }
.panel.done { border-color: var(--gold); align-items: center; } .panel.done h1 { color: var(--gold); }
.finalmaps { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.finalmaps > div { background: var(--s2); border: 1px solid var(--blue); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 2px; } .finalmaps b { font-size: 19px; }
.finalmaps .pick .label { color: var(--blue); } .finalmaps .decider { border-color: var(--gold); } .finalmaps .decider .label { color: var(--gold); }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; } h1 { font-size: 30px; } .panel { padding: 16px; } .versus { flex-direction: column; } .vs { align-self: center; }
  .nav { position: static; } .btn.pickw { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .match, .mapcard { transition: border-color .15s, background-color .15s; } }

/* xếp hạng, hồ sơ, thách đấu, danh hiệu */
a.nick { color: var(--tx); } a.nick:hover { color: var(--gold); }
.title-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border: 1px solid #8a6d2a; border-radius: 999px;
  background: var(--gold-bg); color: var(--gold); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.title-badge::before { content: '«'; opacity: .7; } .title-badge::after { content: '»'; opacity: .7; }
.title-badge small { font-size: 11px; color: var(--tx2); }
.title-badge.big { font-size: 14px; padding: 3px 12px; } .title-badge.old { border-color: var(--line2); background: var(--s2); color: var(--mut); }
.badges { margin-top: 10px; gap: 8px; }
.nav nav a .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--ban); color: #1f0d05; font-size: 12px; font-weight: 700; }
.pop-item.needs { border-color: var(--gold); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.table.rank td { vertical-align: middle; } .table.rank td.end { text-align: right; }
.table .rk { font: 700 18px var(--display); color: var(--mut); width: 3em; }
tr.top1 .rk, .top5-card.top1 .rk { color: var(--gold); } tr.top2 .rk, .top5-card.top2 .rk { color: #cfd6df; } tr.top3 .rk, .top5-card.top3 .rk { color: #d39563; }
.top5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.top5-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; color: var(--tx); min-width: 0; }
.top5-card:hover { border-color: var(--gold); color: var(--tx); } .top5-card .rk { font: 700 22px var(--display); }
.res { display: inline-block; min-width: 3.6em; text-align: center; padding: 1px 8px; border-radius: 4px; font: 600 13px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.res.win { background: var(--blue-bg); color: var(--blue); } .res.lose { background: var(--ban-bg); color: var(--ban); }
.hist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .hist:last-child { border-bottom: 0; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.grid2.top { align-items: start; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--tx2); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ch-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ch-card:hover { border-color: var(--gold); } .ch-card.needs { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.chip.ch-pending, .chip.ch-reported { border-color: var(--gold); color: var(--gold); } .chip.ch-accepted { border-color: var(--blue); color: var(--blue); }
.chip.ch-disputed { border-color: var(--ban); color: var(--ban); } .chip.ch-done { border-color: var(--tx2); color: var(--tx2); }
.feed { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 10px 0; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.feed:hover b { color: var(--gold); }
blockquote.msg { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line2); background: var(--s2); border-radius: 0 6px 6px 0; color: var(--tx2); overflow-wrap: anywhere; }
.side .who { flex-wrap: wrap; }
.facts > .span2 { grid-column: 1 / -1; }
.facts > .span2 .title-badge { white-space: normal; width: fit-content; }
.admin-ch h2:not(:first-child) { margin-top: 28px; }
.admin-ch h3 { margin: 22px 0 10px; }
.table.rank .nowrap { white-space: nowrap; }
.table.rank .show-sm { display: none; }
@media (max-width: 600px) {
  .table.rank .hide-sm { display: none; }
  .table.rank .prov { display: block; font-size: 11px; }
  .table.rank .show-sm { display: block; font-size: 12px; }
  .table.rank th, .table.rank td { padding: 10px 6px; }
  .table.rank .who > .muted { display: none; } /* ẩn chủng tộc cho gọn, xem trong hồ sơ */
}

/* ---- Battle.net, replay, bằng chứng, khiếu nại (v0.6) */
.btn.bnet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0e3a66; border: 1px solid #1f6fb5; color: #e8f3ff; }
.btn.bnet:hover { background: #124a82; color: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--blue); }
.btag.big { font-size: 15px; }
.bnet-box { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel.narrow { max-width: 560px; margin: 0 auto; width: 100%; }
.side .btag { display: block; margin-top: 2px; }
.replay-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--line2); border-radius: 10px; }
.replay-box label.btn { align-self: flex-start; cursor: pointer; }
.replay-box label.btn.disabled { opacity: .6; pointer-events: none; }
.ev-list { display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--s2); border: 1px solid var(--line); border-left: 3px solid var(--line2); border-radius: 8px; }
.ev.ok { border-left-color: var(--blue); } .ev.warn { border-left-color: var(--ban); } .ev.off { opacity: .65; }
.ev-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ev-admin { padding-top: 6px; border-top: 1px solid var(--line); }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
label.inline select { width: auto; padding: 4px 8px; }
.chip.ev-ok { border-color: var(--blue); color: var(--blue); }
.chip.ev-unmatched, .chip.ev-no_winner, .chip.ev-map_mismatch, .chip.ev-not_1v1 { border-color: var(--ban); color: var(--ban); }
.chip.src { font-size: 12px; padding: 0 8px; }
.chip.bnet-req { border-color: #1f6fb5; color: #8cc8ff; }
.notice.warn { padding: 12px 14px; border: 1px solid var(--ban); background: var(--ban-bg); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.warn-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ban); color: #1f0d05; font-weight: 700; font-size: 11px; }
.count.warn, .tabs .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ban); color: #1f0d05; font-size: 12px; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--s2); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.bnet-box a, .btag + a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* hình ảnh: ảnh map, biểu tượng tộc, huy hiệu giải, ảnh bìa */
.map-thumb { display: block; flex: none; object-fit: cover; background: var(--s2); border: 1px solid var(--line2); border-radius: 6px; }
.map-thumb.sm { width: 40px; height: 40px; }
.map-thumb.md { width: 64px; height: 64px; }
.map-thumb.row { width: 60px; height: 60px; }
.map-thumb.lg { width: 100%; height: auto; aspect-ratio: 1; }
.race-ico { display: inline-block; vertical-align: -3px; flex: none; }
.race-ico.r-human { color: #6fa8ff; } .race-ico.r-orc { color: #f07a5a; } .race-ico.r-nightelf { color: #b88cf2; }
.race-ico.r-undead { color: #7fd08a; } .race-ico.r-random { color: var(--gold); }
.race-txt { display: inline-flex; align-items: center; gap: 5px; }
svg.tlogo { flex: none; display: block; }
.tlogo { flex: none; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.map-grid figure, .map-strip figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.map-grid .map-thumb { width: 100%; height: auto; aspect-ratio: 1; }
.map-grid figcaption, .map-strip figcaption { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.map-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.map-strip figure { width: 96px; } .map-strip .map-thumb { width: 96px; height: 96px; }
.maplist li { display: flex; align-items: center; gap: 10px; }
.game .gmap { flex-direction: row; align-items: center; gap: 10px; } .game .gmap > div { display: flex; flex-direction: column; }
.ev { flex-direction: row; align-items: flex-start; gap: 12px; } .ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.btn.opt.map-opt { gap: 8px; padding-left: 6px; } .btn.opt.map-opt .map-thumb { width: 30px; height: 30px; border-radius: 4px; }
.form label.map-pick > .row { gap: 8px; align-items: center; } .form label.map-pick .map-thumb { width: 28px; height: 28px; border-radius: 4px; }
.emblem { width: 76px; height: 76px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--s2); border: 1px solid var(--line2); }
.hero.plain { background: var(--s1) url(/img/hero.jpg) center / cover no-repeat; }
.thead { position: relative; overflow: hidden; padding-top: 0; }
.thead .tcover { display: block; max-width: none; width: calc(100% + 40px); margin: 0 -20px 4px; height: 140px; object-fit: cover; border-bottom: 1px solid var(--line); }
.thead .tcover + .row .tlogo.big { margin-top: -52px; box-shadow: 0 0 0 4px var(--s1); border-radius: 12px; }
@media (max-width: 600px) { .thead .tcover { height: 100px; } .map-strip figure { width: 76px; } .map-strip .map-thumb { width: 76px; height: 76px; } .ev .map-thumb.md { width: 48px; height: 48px; } }
.bnet-first { display: flex; flex-direction: column; gap: 8px; } .btn.bnet.big { width: 100%; min-height: 52px; font-size: 17px; }
