:root {
  --bg: #0c0d10; --bg2: #121419; --card: #171a20; --card2: #1d2129; --line: #262a33;
  --text: #e8e9ec; --muted: #8b909c; --accent: #ff7a1a; --accent2: #ffb347; --good: #22c55e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: radial-gradient(1200px 500px at 80% -200px, rgba(255,122,26,.12), transparent 60%), var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #cfd2d8; }
code { background: var(--card2); padding: 2px 8px; border-radius: 6px; color: var(--accent2); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.lead { color: #b8bcc6; font-size: 1.05rem; max-width: 720px; }
section { margin-bottom: 36px; }

.site-header { background: rgba(12,13,16,.85); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .06em; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .langs a { color: #c3c7cf; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nav a:hover, .nav a.active { background: var(--card); color: var(--text); }
.langs { display: flex; gap: 2px; }
.langs a { font-size: .8rem; padding: 6px 8px; color: var(--muted); }
.langs a.active { color: var(--accent); }

.season-strip { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,122,26,.1), transparent 70%); }
.season-strip .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-size: .9rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,122,26,.15); color: var(--accent2); font-weight: 700; font-size: .85em; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards.stats { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.card b { font-size: 1.6rem; font-weight: 800; }
.card span { color: var(--muted); font-size: .85rem; }
.card.accent { border-color: rgba(255,122,26,.5); background: linear-gradient(160deg, rgba(255,122,26,.16), var(--card) 60%); }
.card.accent b { color: var(--accent); }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.search { display: flex; gap: 8px; }
.search input { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; width: 220px; font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); }
.search button, .btn { background: var(--accent); color: #111; border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.search button:hover, .btn:hover { background: var(--accent2); color: #111; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { width: 48px; font-weight: 800; color: var(--muted); text-align: center; }
.pos-1 { color: #ffd166; } .pos-2 { color: #d9dde5; } .pos-3 { color: #e09f6b; }
.player a { color: var(--text); font-weight: 600; }
.player a:hover { color: var(--accent); }
.xp { min-width: 150px; }
.xp small { color: var(--muted); }
table.compact td, table.compact th { padding: 8px 10px; }

.bar { height: 6px; background: #252932; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; }
.bar.big { height: 12px; }

.lvl { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px;
  font-weight: 800; font-size: .85rem; color: #111; background: #6b7280; }
.lvl-name { color: #c3c7cf; font-size: .9rem; }
.t0 { background: #6b7280; } .t1 { background: #fde047; } .t2 { background: #fdba74; } .t3 { background: #fb923c; }
.t4 { background: #f97316; } .t5 { background: #ef4444; color: #fff; } .t6 { background: #dc2626; color: #fff; }
.t7 { background: #e11d48; color: #fff; } .t8 { background: #c026d3; color: #fff; } .t9 { background: #f59e0b; }
.t10 { background: #60a5fa; }
.legend { background: linear-gradient(135deg, #ffd166, #ff7a1a); color: #111; box-shadow: 0 0 16px rgba(255,122,26,.55); }

.vip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }
.vip-1 { background: #c0c7d2; color: #111; } .vip-2 { background: #ffc94a; color: #111; } .vip-3 { background: linear-gradient(135deg, #e5e7eb, #93c5fd); color: #111; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-left: 6px; box-shadow: 0 0 8px var(--good); vertical-align: middle; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.chip.legend:hover { color: #111; filter: brightness(1.1); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a { padding: 6px 12px; border-radius: 8px; background: var(--card); color: var(--text); }
.pager a.active { background: var(--accent); color: #111; font-weight: 800; }
.empty { color: var(--muted); padding: 24px; text-align: center; background: var(--bg2); border: 1px dashed var(--line); border-radius: var(--radius); }

.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin: 0 0 6px; word-break: break-word; }
.avatar { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #111; flex: none; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.progress-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-top: 6px; gap: 12px; }
.chart-wrap { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #252932; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--accent2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.weapons { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.weapons li { display: grid; grid-template-columns: 120px 1fr 60px; gap: 12px; align-items: center; }
.weapons b { text-align: right; font-variant-numeric: tabular-nums; }

.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.season-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); }
.season-card:hover { border-color: var(--accent); color: var(--text); }
.winner { margin-top: 10px; font-weight: 700; color: var(--accent2); }
.winner::before { content: "#1 "; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.tier h2 { font-size: 1.4rem; letter-spacing: .12em; }
.tier-1 h2 { color: #c0c7d2; } .tier-2 h2 { color: #ffc94a; } .tier-3 h2 { color: #93c5fd; }
.tier-2 { border-color: rgba(255,201,74,.55); box-shadow: 0 0 40px rgba(255,122,26,.12); }
.tier ul, .rules ul { padding-left: 18px; margin: 0; }
.tier li, .rules li { margin: 6px 0; color: #c9ccd4; }
.badge-earn { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #111; font-weight: 800; font-size: .8rem; }
.rules { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }

.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.level-cell { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.level-cell .lvl { grid-row: span 2; align-self: center; }
.level-cell .muted { font-size: .85rem; }

.center { text-align: center; padding: 60px 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 20px; }

@media (max-width: 860px) {
  .hero, .two-col, .tiers { grid-template-columns: 1fr; }
  .cards.stats { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .header-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  h1 { font-size: 1.6rem; }
}

/* progress widths: inline style attributes are blocked by the CSP */
.p0{width:0%}
.p1{width:1%}
.p2{width:2%}
.p3{width:3%}
.p4{width:4%}
.p5{width:5%}
.p6{width:6%}
.p7{width:7%}
.p8{width:8%}
.p9{width:9%}
.p10{width:10%}
.p11{width:11%}
.p12{width:12%}
.p13{width:13%}
.p14{width:14%}
.p15{width:15%}
.p16{width:16%}
.p17{width:17%}
.p18{width:18%}
.p19{width:19%}
.p20{width:20%}
.p21{width:21%}
.p22{width:22%}
.p23{width:23%}
.p24{width:24%}
.p25{width:25%}
.p26{width:26%}
.p27{width:27%}
.p28{width:28%}
.p29{width:29%}
.p30{width:30%}
.p31{width:31%}
.p32{width:32%}
.p33{width:33%}
.p34{width:34%}
.p35{width:35%}
.p36{width:36%}
.p37{width:37%}
.p38{width:38%}
.p39{width:39%}
.p40{width:40%}
.p41{width:41%}
.p42{width:42%}
.p43{width:43%}
.p44{width:44%}
.p45{width:45%}
.p46{width:46%}
.p47{width:47%}
.p48{width:48%}
.p49{width:49%}
.p50{width:50%}
.p51{width:51%}
.p52{width:52%}
.p53{width:53%}
.p54{width:54%}
.p55{width:55%}
.p56{width:56%}
.p57{width:57%}
.p58{width:58%}
.p59{width:59%}
.p60{width:60%}
.p61{width:61%}
.p62{width:62%}
.p63{width:63%}
.p64{width:64%}
.p65{width:65%}
.p66{width:66%}
.p67{width:67%}
.p68{width:68%}
.p69{width:69%}
.p70{width:70%}
.p71{width:71%}
.p72{width:72%}
.p73{width:73%}
.p74{width:74%}
.p75{width:75%}
.p76{width:76%}
.p77{width:77%}
.p78{width:78%}
.p79{width:79%}
.p80{width:80%}
.p81{width:81%}
.p82{width:82%}
.p83{width:83%}
.p84{width:84%}
.p85{width:85%}
.p86{width:86%}
.p87{width:87%}
.p88{width:88%}
.p89{width:89%}
.p90{width:90%}
.p91{width:91%}
.p92{width:92%}
.p93{width:93%}
.p94{width:94%}
.p95{width:95%}
.p96{width:96%}
.p97{width:97%}
.p98{width:98%}
.p99{width:99%}
.p100{width:100%}
