:root {
  --bg: #0a0c12; --panel: #12151f; --panel-2: #181c29; --line: #232838; --text: #e7e9f0; --muted: #7d8598;
  --accent: #5b8cff; --win: #4f8cff; --win-bg: #17243f; --win-line: #2c4a86;
  --loss: #ff5a6e; --loss-bg: #331a24; --loss-line: #6b2a3a;
  --gold: #f0b64a; --good: #3fcf8e; --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
small { color: var(--muted); font-size: .78em; }
.muted { color: var(--muted); }
.bad { color: var(--loss); }
.hot { color: var(--gold); }
b, strong { font-weight: 650; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 12, 18, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: .02em; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: .72rem;
  background: linear-gradient(135deg, var(--accent), #8a5bff); color: #fff; }
nav { display: flex; gap: 4px; }
nav a { padding: 7px 12px; border-radius: 7px; color: var(--muted); font-weight: 550; }
nav a:hover { color: var(--text); }
nav a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.demo { font-size: .72rem; color: #111; background: var(--gold); padding: 2px 8px; border-radius: 999px; }
.search { margin-left: auto; flex: 0 1 260px; }
.search input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; }
.loading { padding: 40px 0; }
.hero { margin: 8px 0 18px; }
h1 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -.01em; }
.note { color: var(--muted); font-size: .85rem; }
.error { background: var(--loss-bg); border: 1px solid var(--loss-line); padding: 10px 14px; border-radius: 8px; }

/* ---------- blocos ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.panel-h { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 550; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.l { text-align: left; }
td small { display: block; }
.kline { display: block; }

img.champ, .champ.ph { border-radius: 8px; vertical-align: middle; object-fit: cover; flex: none; }
.champ.ph { display: inline-grid; place-items: center; background: var(--panel-2); font-size: .7rem; color: var(--muted); }
.champ.avatar { border-radius: 50%; }
.champ.avatar.big { border: 3px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; }
.who > span, .who .plink { font-weight: 600; }
.who small { display: inline; margin-left: 3px; }
.plink:hover { color: var(--accent); }
.sub { font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.cwrap { position: relative; display: inline-block; flex: none; }
.lvl { position: absolute; right: -4px; bottom: -4px; background: #000; border: 1px solid var(--line); color: var(--text);
  font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 3px; }
.champs img { margin-left: 3px; }

.items { display: flex; gap: 2px; }
.items img, .items .slot { border-radius: 5px; background: var(--panel-2); }
.items .slot { display: inline-block; border: 1px solid var(--line); }

.role { font-size: .68rem; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 999px; }
.badge { font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; }
.badge.mvp { background: var(--gold); color: #1a1200; }
.badge.ace { background: #8a5bff; color: #fff; }
.chip { font-size: .78rem; background: var(--panel-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; color: var(--muted); }

.delta { font-size: .78rem; font-weight: 600; color: var(--muted); }
.delta.up { color: var(--good); } .delta.down { color: var(--loss); }
.kda-3 { color: var(--accent); } .kda-5 { color: var(--gold); } .kda-low { color: var(--muted); }

/* tiers */
.tier { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; }
.t-iron { color: #8d8077; } .t-bronze { color: #c48a6a; } .t-silver { color: #a9bccb; } .t-gold { color: #e3b453; }
.t-plat { color: #4fc3b5; } .t-emerald { color: #34d399; } .t-diamond { color: #7b9cff; } .t-master { color: #c07cff; }
.t-gm { color: #ff6b7d; } .t-chall { color: #ffd479; background: rgba(255, 212, 121, .1); }

/* ---------- ranking ---------- */
.podiums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.podium { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: border-color .15s, transform .15s; }
.podium:hover { border-color: var(--accent); transform: translateY(-2px); }
.podium.p1 { background: linear-gradient(180deg, rgba(240, 182, 74, .12), var(--panel) 60%); border-color: rgba(240, 182, 74, .4); }
.place { position: absolute; top: 10px; left: 12px; font-weight: 800; font-size: 1.1rem; color: var(--muted); }
.p1 .place { color: var(--gold); }
.pname { font-weight: 700; font-size: 1.05rem; }
.pname small { margin-left: 2px; }
.prating { font-size: 1.4rem; font-weight: 750; }
.pmeta { color: var(--muted); font-size: .85rem; }
.pmeta b { color: var(--text); }
.rank td { padding-top: 8px; padding-bottom: 8px; }
.rank tbody tr:hover { background: var(--panel-2); }
.rank .pos { color: var(--muted); font-weight: 700; width: 36px; }
.rank tbody tr:nth-child(-n+3) .pos { color: var(--gold); }
.wrcell { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.wrbar { display: flex; flex: 1; height: 20px; border-radius: 5px; overflow: hidden; font-size: .7rem; font-weight: 650; }
.wrbar .w { background: var(--win); padding-left: 6px; display: flex; align-items: center; min-width: 0; color: #fff; }
.wrbar .l { background: var(--loss); flex: 1; padding-right: 6px; display: flex; align-items: center; justify-content: flex-end; color: #fff; }
.wrpct { width: 36px; text-align: right; font-weight: 650; }

/* ---------- lista de partidas ---------- */
.mlist, .hlist { display: grid; gap: 8px; }
.mcard { display: grid; grid-template-columns: 120px 1fr 1fr; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.mcard:hover { border-color: var(--accent); }
.mmeta { padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--muted); border-right: 1px solid var(--line); }
.mmeta b { color: var(--text); }
.mside { padding: 8px 10px; }
.mside.win { background: var(--win-bg); } .mside.loss { background: var(--loss-bg); }
.mside-h { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.mside.win .mside-h b { color: var(--win); } .mside.loss .mside-h b { color: var(--loss); }
.mside-h .kills { margin-left: auto; font-weight: 700; color: var(--text); }
.mrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: .85rem; }
.mrow .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .k { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- partida ---------- */
.match-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.match-hero.blue-won { border-left: 4px solid var(--win); } .match-hero.red-won { border-left: 4px solid var(--loss); }
.vsbox { display: grid; gap: 2px; min-width: 280px; }
.vsbox small { text-align: center; margin-bottom: 6px; }
.vs { display: flex; align-items: center; gap: 8px; font-weight: 650; font-variant-numeric: tabular-nums; }
.vs span { width: 44px; } .vs span:last-child { text-align: right; }
.vsbar { flex: 1; display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.vsbar .b { background: var(--win); } .vsbar .r { background: var(--loss); flex: 1; }
.mteam { overflow: hidden; }
.mteam-h { padding: 10px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mteam-h .muted { margin-left: auto; }
.mteam.win .mteam-h { background: var(--win-bg); } .mteam.win .mteam-h b { color: var(--win); }
.mteam.loss .mteam-h { background: var(--loss-bg); } .mteam.loss .mteam-h b { color: var(--loss); }
.mteam.win tbody tr { background: rgba(79, 140, 255, .04); } .mteam.loss tbody tr { background: rgba(255, 90, 110, .04); }
.dmg { min-width: 110px; }
.dmg span { font-size: .85rem; }
.dbar { height: 6px; background: var(--panel-2); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.dbar div { height: 100%; background: var(--loss); }

/* ---------- jogador ---------- */
.profile { display: flex; align-items: center; gap: 18px; padding: 20px; margin: 4px 0 14px; background:
  radial-gradient(circle at 0 0, rgba(91, 140, 255, .15), transparent 50%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.profile h1 { font-size: 1.7rem; }
.profile h1 small { font-size: .55em; }
.ptags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.pscore { margin-left: auto; text-align: right; }
.pscore span { display: block; color: var(--muted); font-size: .8rem; }
.pscore strong { font-size: 2rem; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.hmain { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sumrow { display: flex; align-items: center; gap: 16px; padding: 14px; }
.sumrow .big { font-weight: 700; font-size: 1.05rem; }
.donut .d-bg { fill: none; stroke: var(--loss); stroke-width: 12; }
.donut .d-fg { fill: none; stroke: var(--win); stroke-width: 12; }
.donut text { fill: var(--text); font-size: 18px; font-weight: 700; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.statgrid div { padding: 10px 14px; display: flex; justify-content: space-between; }
.statgrid div:nth-child(odd) { border-right: 1px solid var(--line); }
.statgrid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.statgrid span { color: var(--muted); }
.clist, .dlist { list-style: none; margin: 0; padding: 6px 0; }
.clist li { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.cinfo { display: flex; flex-direction: column; min-width: 0; }
.cinfo small { font-size: .75rem; }
.cwr { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.dlist li { display: flex; gap: 10px; padding: 7px 14px; align-items: center; }
.dlist li b { margin-left: auto; }
.spark { display: block; width: 100%; height: 130px; padding: 10px 0; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.spark .area { fill: rgba(91, 140, 255, .12); }
.spark .base { stroke: var(--line); stroke-dasharray: 4 4; }

.hcard { display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px 112px 176px; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius); border: 1px solid; border-left-width: 5px; transition: filter .15s; }
.hcard:hover { filter: brightness(1.12); }
.hcard.win { background: var(--win-bg); border-color: var(--win-line); border-left-color: var(--win); }
.hcard.loss { background: var(--loss-bg); border-color: var(--loss-line); border-left-color: var(--loss); }
.hmeta { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: 1px; }
.hcard.win .hmeta b { color: var(--win); } .hcard.loss .hmeta b { color: var(--loss); }
.hchamp { display: flex; align-items: center; gap: 10px; }
.cname { font-weight: 650; margin-bottom: 3px; }
.hkda { text-align: center; }
.hkda .big { font-size: 1.05rem; font-weight: 700; }
.hkda > div:last-child { font-size: .8rem; }
.hstats { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: 1px; }
.hstats b { color: var(--text); }
.hteams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; justify-self: end; }
.tl { list-style: none; margin: 0; padding: 0; font-size: .72rem; color: var(--muted); }
.tl li { display: flex; align-items: center; gap: 4px; max-width: 84px; white-space: nowrap; }
.tl li span { overflow: hidden; text-overflow: ellipsis; }
.tl li.me { color: var(--text); font-weight: 650; }
.tl img.champ, .tl .champ.ph { border-radius: 4px; }

/* ---------- responsivo ---------- */
@media (max-width: 1060px) {
  .hcard { grid-template-columns: 84px minmax(0, 1fr) 100px; }
  .hstats, .hteams { display: none; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .mcard { grid-template-columns: 1fr 1fr; }
  .mmeta { grid-column: 1 / -1; flex-direction: row; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .podiums { grid-template-columns: 1fr; }
  .search { flex-basis: 100%; }
  .mcard { grid-template-columns: 1fr; }
  .hcard { grid-template-columns: minmax(0, 1fr) auto; }
  .hmeta { flex-direction: row; gap: 8px; grid-column: 1 / -1; }
  .pscore { margin-left: 0; text-align: left; }
}

/* ---------- botões ---------- */
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 650; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
.center { text-align: center; justify-content: center; }
.pad { padding: 12px 14px; margin: 0; }
.chip.link { color: var(--text); }
.chip.link:hover { border-color: var(--accent); }
.blue { color: var(--win); } .red { color: var(--loss); }

/* ---------- sorteio ---------- */
.tlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding: 12px 14px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.pick:hover { border-color: #3a4260; }
.pick.on { border-color: var(--accent); background: rgba(91, 140, 255, .14); box-shadow: inset 0 0 0 1px var(--accent); }
.pk-name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .85rem; }
.pk-r .tier { font-size: .62rem; padding: 0 6px; }
.pk-x { position: absolute; top: 2px; right: 6px; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px; }
.pk-x:hover { color: var(--loss); }
.guest { display: flex; gap: 8px; padding: 0 14px; }
.guest input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; }
.guest input:focus { outline: none; border-color: var(--accent); }
.empty-result { display: grid; place-items: center; min-height: 220px; }
.tchance { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; margin-top: 4px; }
.vsbar.big { height: 12px; border-radius: 6px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tteam { overflow: hidden; margin: 0; }
.tteam-h { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; }
.tteam.blue .tteam-h { background: var(--win-bg); } .tteam.blue .tteam-h b { color: var(--win); }
.tteam.red .tteam-h { background: var(--loss-bg); } .tteam.red .tteam-h b { color: var(--loss); }
.tteam-h span { color: var(--muted); font-size: .85rem; }
.tteam-h strong { color: var(--text); }
.tteam ul { list-style: none; margin: 0; padding: 6px 0; }
.tteam li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.tteam li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tteam li b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- confronto ---------- */
.vs-select { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vs-select select { flex: 1 1 220px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; }
.vs-x { font-weight: 800; color: var(--muted); }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 20px; }
.vs-player { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.vs-player:hover .pname { color: var(--accent); }
.vs-score { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.score { font-size: 2.6rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.score .sep { color: var(--muted); margin: 0 8px; }
.cmps { padding: 10px 14px; display: grid; gap: 10px; }
.cmp { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.cmp > b { color: var(--muted); } .cmp > b:last-child { text-align: right; }
.cmp > b.win { color: var(--text); }
.cmp-mid { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: .78rem; color: var(--muted); }
.cmp-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.cmp-bar .b { background: var(--win); } .cmp-bar .r { background: var(--loss); flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vlist { padding: 6px 0; }
.vrow { display: grid; grid-template-columns: 24px 1fr auto auto 24px; align-items: center; gap: 10px; padding: 6px 14px; font-size: .85rem; }
.vrow:hover { background: var(--panel-2); }
.vdate { color: var(--muted); font-size: .78rem; }
.vside { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; min-width: 92px; }
.res { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: .72rem; font-weight: 800; }
.res.w { background: var(--win-bg); color: var(--win); } .res.l { background: var(--loss-bg); color: var(--loss); }

@media (max-width: 860px) {
  .tlayout, .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tgrid { grid-template-columns: 1fr; }
  .vs-head { grid-template-columns: 1fr 1fr; }
  .vs-score { grid-column: 1 / -1; order: -1; }
  .vrow .vdate { display: none; }
  .vrow { grid-template-columns: 24px 1fr 1fr 24px; }
}

/* ---------- sequências ---------- */
.streak { font-size: .72rem; font-weight: 750; padding: 1px 6px; border-radius: 999px; margin-left: 2px; }
.streak.hot { background: rgba(240, 182, 74, .16); color: var(--gold); }
.chip.hot { color: var(--gold); border-color: rgba(240, 182, 74, .4); }
.dots { display: inline-flex; gap: 3px; }
.dots i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-size: .6rem; font-weight: 800; }
.dots i.w { background: var(--win-bg); color: var(--win); border: 1px solid var(--win-line); }
.dots i.l { background: var(--loss-bg); color: var(--loss); border: 1px solid var(--loss-line); }
.bestst { font-size: .78rem; color: var(--muted); margin: 4px 0; }
.bestst b { color: var(--text); }
.podium .ptags { justify-content: center; margin: 0; }

/* ---------- soloq ---------- */
.sq { display: inline-block; font-size: .7rem; font-weight: 650; margin-top: 2px; white-space: nowrap; }
.sq.none { color: var(--muted); font-weight: 500; }
.pk-r .sq { font-size: .62rem; }
.sqline { display: block; font-size: .7rem; }
.solo { margin: 0 14px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); display: grid; gap: 8px; }
.toggle { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.weight { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.weight input { flex: 1; accent-color: var(--accent); }
.weight b { color: var(--text); width: 36px; text-align: right; }
.weight.off { opacity: .45; }
.solo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.btn.small { padding: 5px 10px; font-size: .8rem; }
.small-note { font-size: .72rem; margin: 0; }

/* ---------- faixas (nomes do Deadlock, cores próprias) ---------- */
.t-initiate { color: #9a8f86; } .t-seeker { color: #c08a5c; } .t-alchemist { color: #6fbf73; }
.t-arcanist { color: #4fc3b5; } .t-ritualist { color: #e3b453; } .t-emissary { color: #ff8a5c; }
.t-archon { color: #b07cff; } .t-oracle { color: #ff6fae; } .t-phantom { color: #7b9cff; }
.t-ascendant { color: #ffd479; } .t-eternus { color: #5ee0ff; }
.tier.t-eternus, .tier.t-ascendant { background: rgba(255, 212, 121, .08); }
.ladder { margin-top: 14px; }
.rungs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 12px 14px 0; }
.rung { border: 1px solid var(--line); border-left: 4px solid currentColor; border-radius: 8px; padding: 8px 10px; background: var(--panel-2); }
.rung.empty { opacity: .55; }
.rung.start { box-shadow: inset 0 0 0 1px currentColor; }
.rung-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rung-h span { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.rung-who { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 24px; align-items: center; }
.rung-who a:hover img { outline: 2px solid currentColor; }
.tprog { margin-top: 6px; min-width: 180px; }
.tbar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.tbar div { height: 100%; background: currentColor; }
.tprog small { display: block; }
.tprog small b { color: var(--text); }
.rung-divs { font-size: .7rem; font-weight: 650; letter-spacing: .04em; margin-top: 2px; }
.rung-divs span { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.pscore > span { font-weight: 700; font-size: .9rem; }
.pscore .mmr { display: block; margin-top: 6px; }
.pscore .mmr b { color: var(--text); }
.good { color: var(--good); }
.pscore { min-width: 270px; }
.pscore .tprog { margin-left: auto; max-width: 270px; }
.pscore .tprog span, .pscore .mmr span { display: inline; font-size: inherit; }
.pscore .mmr .good { color: var(--good); } .pscore .mmr .bad { color: var(--loss); }

/* ---------- builds ---------- */
.filter { width: 100%; max-width: 320px; margin-bottom: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; }
.filter:focus { outline: none; border-color: var(--accent); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bcard { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.bcard:hover { border-color: var(--accent); }
.bmain { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; }
.bmain div { display: flex; flex-direction: column; min-width: 0; }
.bpro { font-size: .72rem; font-weight: 650; color: var(--muted); padding: 6px 12px; border-left: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; }
.bpro:hover { color: var(--accent); }
.champ-head .pscore { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.back { font-size: .8rem; color: var(--muted); }
.back:hover { color: var(--text); }
.ilist { list-style: none; margin: 0; padding: 6px 0; }
.ilist li { display: flex; align-items: center; gap: 10px; padding: 6px 14px; }
.ilist img { border-radius: 6px; flex: none; }
.iname { display: flex; flex-direction: column; min-width: 0; }
.iname b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwr { margin-left: auto; text-align: right; font-weight: 700; display: flex; flex-direction: column; }
.iwr small { font-weight: 500; font-size: .68rem; }
.blist { padding: 6px 0; }
.brow { display: grid; grid-template-columns: 24px minmax(0, 1fr) 110px auto; align-items: center; gap: 12px; padding: 8px 14px; border-left: 3px solid transparent; }
.brow:hover { background: var(--panel-2); }
.brow.win { border-left-color: var(--win); } .brow.loss { border-left-color: var(--loss); }
.bwho { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bwho > span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.bkda { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-variant-numeric: tabular-nums; }
.dlist li .champ { flex: none; }
@media (max-width: 640px) {
  .brow { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .brow .items { grid-column: 2 / -1; }
  .champ-head .pscore { align-items: flex-start; }
}
@media (max-width: 640px) {
  nav { flex-wrap: wrap; }
  nav a { padding: 6px 9px; }
}
.bsection h2 { display: flex; gap: 8px; align-items: baseline; }
.bsection h2 .muted { font-size: .85rem; font-weight: 500; }
.bcard.unplayed .bmain img { filter: grayscale(.6); opacity: .8; }
.bcard.unplayed:hover .bmain img { filter: none; opacity: 1; }

/* ---------- builds: subabas por rota ---------- */
.lane-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lane-bar .filter { margin: 0 0 0 auto; max-width: 260px; }
.lane-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.lane-tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.lane-tabs button span { font-size: .72rem; font-weight: 500; opacity: .7; margin-left: 2px; }
.lane-tabs button:hover { color: var(--text); }
.lane-tabs button.on { background: var(--accent); color: #fff; }
.lane-tabs button.on span { opacity: .9; }
@media (max-width: 640px) {
  .lane-bar .filter { margin-left: 0; max-width: none; }
  .lane-tabs button { padding: 6px 9px; }
}
.prolanes { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.prolanes .btn.small { padding: 3px 8px; font-size: .72rem; }

/* ---------- partidas: filtro e numeração ---------- */
.mfilter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; }
.mfilter input { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; color-scheme: dark; }
.mfilter input:focus { outline: none; border-color: var(--accent); }
.mfilter input[type="search"] { flex: 1 1 260px; min-width: 0; }
.mfilter label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; }
#mcount { margin-left: auto; font-size: .85rem; }
.mnum { display: inline-block; font-size: .72rem; font-weight: 750; letter-spacing: .03em; color: var(--accent); }
.mmeta .mnum { margin-bottom: 2px; }
@media (max-width: 640px) {
  .mfilter label { flex: 1 1 45%; }
  .mfilter label input { flex: 1; min-width: 0; }
  #mcount { margin-left: 0; }
}
