:root {
    --bg: #07090c;
    --panel: #10141a;
    --panel2: #0c1015;
    --line: rgba(255, 255, 255, 0.08);
    --text: #e8ecf1;
    --muted: rgba(232, 236, 241, 0.6);
    --red: #e53935;
    --blue: #2388ff;
    --gold: #f5c542;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.top {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
    padding: 12px max(16px, calc((100% - 1160px) / 2)); background: rgba(7, 9, 12, 0.82); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
nav { display: flex; gap: 20px; flex: 1; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; }
.lang button {
    background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
    padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.lang button.on { color: var(--text); border-color: var(--blue); background: rgba(35, 136, 255, 0.15); }

.hero { position: relative; overflow: hidden; min-height: 86vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(120px); opacity: 0.35; }
.hero-glow.red { background: var(--red); left: -20vw; top: -10vw; }
.hero-glow.blue { background: var(--blue); right: -20vw; bottom: -20vw; }
.hero-inner { position: relative; padding: 48px 16px; max-width: 820px; }
.hero-logo { width: 168px; height: 168px; border-radius: 24px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7); }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1; margin: 24px 0 16px; letter-spacing: 0.06em; font-weight: 800; }
h1 span { background: linear-gradient(90deg, var(--red), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin: 0 auto 32px; max-width: 640px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); }
.btn.primary { background: linear-gradient(90deg, var(--red), var(--blue)); border: 0; }
.btn.ghost:hover { border-color: var(--blue); }

.block { padding: 88px max(16px, calc((100% - 1160px) / 2)); }
.block.alt { background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: 0.03em; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.ico.red { background: rgba(229, 57, 53, 0.16); color: var(--red); }
.ico.blue { background: rgba(35, 136, 255, 0.16); color: var(--blue); }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.mode h3 { margin: 10px 0 6px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tag.red { color: var(--red); border-color: rgba(229, 57, 53, 0.4); }
.tag.blue { color: var(--blue); border-color: rgba(35, 136, 255, 0.4); }
.tag.gold { color: var(--gold); border-color: rgba(245, 197, 66, 0.4); }

.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 28px; }
.map {
    position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(135deg, #1a2230, #0d1118) center / cover no-repeat;
}
.map span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-weight: 600; }
.map.m1 { background-image: url(assets/maps/medieval.jpg), linear-gradient(135deg, #2a2216, #0d1118); }
.map.m2 { background-image: url(assets/maps/asian.jpg), linear-gradient(135deg, #2b1a1a, #0d1118); }
.map.m3 { background-image: url(assets/maps/japanese.jpg), linear-gradient(135deg, #1a2a22, #0d1118); }
.map.m4 { background-image: url(assets/maps/sky.jpg), linear-gradient(135deg, #1a2230, #0d1118); }
.map.m5 { background-image: url(assets/maps/egypt.jpg), linear-gradient(135deg, #2e2716, #0d1118); }

.news { display: grid; gap: 14px; margin-top: 28px; max-width: 820px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.news-item time { color: var(--muted); font-size: 13px; }
.news-item h3 { margin: 4px 0 6px; }
.news-item p { margin: 0; color: var(--muted); white-space: pre-line; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px max(16px, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); font-size: 14px; }
.muted { color: var(--muted); }

.hero { background: linear-gradient(rgba(7, 9, 12, 0.72), rgba(7, 9, 12, 0.92)), url(assets/maps/medieval.jpg) center / cover; }
.status { color: var(--muted); font-size: 14px; margin: -16px 0 24px; min-height: 22px; }
.status b { color: var(--text); }
.account { display: flex; align-items: center; gap: 10px; }
.steam-btn { display: inline-flex; align-items: center; gap: 8px; background: #171a21; border: 1px solid #2a475e; border-radius: 8px; padding: 6px 12px; font-size: 14px; color: #c7d5e0; }
.steam-btn:hover { border-color: #66c0f4; color: #fff; }
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.me img, .avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.tabs button { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.tabs button.on { color: var(--text); border-color: var(--blue); background: rgba(35, 136, 255, 0.15); }
.tabs.small button { padding: 4px 10px; font-size: 13px; }
.board { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.board table, .tbl { width: 100%; border-collapse: collapse; }
.board td, .board th, .tbl td, .tbl th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.board th, .tbl th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.board tr:last-child td { border-bottom: 0; }
.board .rank { width: 48px; color: var(--muted); font-weight: 700; }
.board tr:nth-child(1) .rank { color: var(--gold); } .board tr:nth-child(2) .rank { color: #c0c8d4; } .board tr:nth-child(3) .rank { color: #d08b4f; }
.board .who { display: flex; align-items: center; gap: 10px; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 24px; color: var(--muted); }

.profile { padding: 48px max(16px, calc((100% - 1160px) / 2)); }
.p-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.p-avatar { width: 112px; height: 112px; border-radius: 16px; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.p-name { font-size: 34px; font-weight: 800; margin: 0; }
.p-sub { color: var(--muted); }
.p-rank { font-weight: 700; letter-spacing: 0.04em; color: var(--blue); margin: 2px 0 4px; }
.small { font-size: 0.85em; }
.xpbar { width: min(420px, 80vw); height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.xpbar div { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 48px; align-items: center; gap: 10px; }
.bar-row .bar { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.bar-row .bar div { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); }
.bar-row b { text-align: right; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 32px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; overflow-x: auto; }
.panel h3 { margin: 0 0 12px; }
.win { color: #2ecc71; } .loss { color: var(--muted); }

@media (max-width: 720px) {
    nav { display: none; }
    .top { justify-content: space-between; }
    .block { padding-top: 64px; padding-bottom: 64px; }
    .hero-logo { width: 120px; height: 120px; }
}
