/*
 * Admin Panel - shown inside the CS 1.6 MOTD window (~640-900px wide).
 * Non-steam clients draw the MOTD with Internet Explorer 11, so this file stays inside
 * what IE11 understands: no CSS variables, no grid, no flex "gap", no logical properties
 * (margin-inline-start ...). Spacing is done with margins; the side that depends on the
 * reading direction is set twice, for body.fa (right to left) and body.en (left to right).
 *
 * Colours: bg #0b0e12, bg2 #11161c, card #151b23, card2 #1a212b, line #242d39,
 * line2 #2f3a48, text #e7eaef, muted #8a94a3, dim #5d6775, amber #f5a524,
 * T red #e5534b, CT blue #4c8dff, green #3fb950.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2"), url("fonts/Vazirmatn-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2"), url("fonts/Vazirmatn-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

* { box-sizing: border-box; }

html { background: #0b0e12; }

/*
 * The page scrolls inside its own box: the MOTD window's own scroll bar does not move
 * the IE page on some clients, the scroll bar IE draws for .page always works.
 */
html, body { height: 100%; overflow: hidden; }
.page {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  overflow-x: hidden; overflow-y: auto;
  -ms-overflow-style: scrollbar;
  scrollbar-face-color: #2f3a48; scrollbar-track-color: #11161c; scrollbar-arrow-color: #f5a524;
  scrollbar-shadow-color: #2f3a48; scrollbar-highlight-color: #2f3a48;
  scrollbar-3dlight-color: #11161c; scrollbar-darkshadow-color: #0b0e12;
  scrollbar-color: #2f3a48 #11161c;
}
.page::-webkit-scrollbar { width: 12px; }
.page::-webkit-scrollbar-track { background: #11161c; }
.page::-webkit-scrollbar-thumb { background: #2f3a48; border-radius: 6px; border: 2px solid #11161c; }

body {
  margin: 0;
  color: #e7eaef;
  font: 14px/1.55 "Segoe UI", Tahoma, Arial, sans-serif;
  background-color: #0b0e12;
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 165, 36, .08), rgba(245, 165, 36, 0) 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(76, 141, 255, .07), rgba(76, 141, 255, 0) 60%);
}
body.fa { font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; }

header, nav, main, section, footer { display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }

svg.i {
  width: 18px; height: 18px;
  -ms-flex: none; flex: none;
  overflow: hidden; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* icon in front of a label: space on the label side */
.en .tab .i, .en .chip .i, .en .btn .i, .en .tag .i, .en .note .i, .en .note .spin,
.en .backlink .i, .en .card h3 .i, .en footer .i, .en .quiet .i { margin-right: 7px; }
.fa .tab .i, .fa .chip .i, .fa .btn .i, .fa .tag .i, .fa .note .i, .fa .note .spin,
.fa .backlink .i, .fa .card h3 .i, .fa footer .i, .fa .quiet .i { margin-left: 7px; }

/* ---------- header ---------- */
.top {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  padding: 10px 14px;
  background: #141a21;
  background-image: linear-gradient(180deg, #161c24, #11161c);
  border-bottom: 1px solid #242d39;
}
.top > * { margin: 4px 6px; }
.brand { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; min-width: 0; }
.logo {
  width: 40px; height: 40px; border-radius: 11px;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  -ms-flex: none; flex: none;
  color: #1a1204;
  background: #f5a524;
  background-image: linear-gradient(135deg, #ffcc5c, #f5a524);
  box-shadow: 0 6px 18px rgba(245, 165, 36, .3);
}
.logo .i { width: 22px; height: 22px; stroke-width: 2.2; }
.en .brand .logo { margin-right: 12px; }
.fa .brand .logo { margin-left: 12px; }
.brand-text { min-width: 0; }
.brand-text b { display: block; font-size: 16px; line-height: 1.3; }
.brand-text span {
  display: block; color: #8a94a3; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.chips { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.en .chips { margin-left: auto; }
.fa .chips { margin-right: auto; }
.chip {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  margin: 3px; padding: 5px 11px; border-radius: 999px;
  background: #1a212b; border: 1px solid #242d39; color: #8a94a3; font-size: 12.5px;
  white-space: nowrap;
}
.chip b { color: #e7eaef; }
.chip .i { width: 15px; height: 15px; color: #f5a524; }
.chip small { color: #8a94a3; font-size: 11.5px; }
.en .chip small { margin-left: 7px; }
.fa .chip small { margin-right: 7px; }
.chip.addr b, .chip.addr small { -ms-user-select: text; -webkit-user-select: all; user-select: all; }
.lang-switch {
  display: -ms-flexbox; display: flex;
  background: #1a212b; border: 1px solid #242d39; border-radius: 9px; padding: 3px;
}
.lang-switch a { padding: 3px 11px; border-radius: 7px; color: #8a94a3; font-size: 12.5px; font-weight: 700; }
.lang-switch a:hover { color: #e7eaef; }
.lang-switch a.on { background: #f5a524; color: #1a1204; }

/* ---------- tabs ---------- */
.tabs {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  padding: 7px 10px; background: #11161c; border-bottom: 1px solid #242d39;
}
.tab {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex: none; flex: none;
  white-space: nowrap; margin: 1px 2px;
  padding: 8px 11px; border-radius: 9px; color: #8a94a3;
  border: 1px solid transparent;
}
.tab:hover { background: #151b23; color: #e7eaef; }
.tab.on { background: #2a2214; color: #f5a524; border-color: #5e4519; }
.tab em {
  font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
  padding: 0 6px; border-radius: 999px; background: #2f3a48; color: #e7eaef; line-height: 18px;
}
.en .tab em { margin-left: 7px; }
.fa .tab em { margin-right: 7px; }
.tab em.hot { background: #e5534b; color: #fff; }

main { padding: 16px 16px 6px; max-width: 1100px; margin: 0 auto; }

/* ---------- cards ---------- */
.card {
  background: #151b23;
  background-image: linear-gradient(180deg, #151b23, #131920);
  border: 1px solid #242d39; border-radius: 12px;
  padding: 15px 16px; margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.card h3 {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  margin: 0 0 12px; font-size: 15px; font-weight: 700;
}
.card h3 .i { color: #f5a524; }
.card h3 em { font-style: normal; color: #8a94a3; font-weight: 400; font-size: 13px; }
.en .card h3 em { margin-left: 6px; }
.fa .card h3 em { margin-right: 6px; }
.card h3 .more { font-size: 12px; color: #f5a524; font-weight: 400; }
.en .card h3 .more { margin-left: auto; }
.fa .card h3 .more { margin-right: auto; }
.card h4 { margin: 16px 0 8px; font-size: 13px; color: #8a94a3; font-weight: 700; }
.card-head {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin-bottom: 8px;
}
.card-head h3 { margin: 4px 0; }
.muted { color: #8a94a3; margin: -4px 0 12px; font-size: 13px; }
.empty { color: #5d6775; text-align: center; padding: 14px; margin: 0; }
.sub { color: #5d6775; font-size: 11.5px; }

/* two (or more) cards side by side */
.grid2 {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -8px -8px 8px;
}
.grid2 > .card { -ms-flex: 1 1 auto; flex: 1 1 auto; width: 260px; margin: 8px; }

/* ---------- stats ---------- */
.stats {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -6px -6px 10px;
}
.stat {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: start; align-items: flex-start;
  -ms-flex: 1 1 auto; flex: 1 1 auto; width: 150px; margin: 6px;
  background: #151b23;
  background-image: linear-gradient(180deg, #151b23, #131920);
  border: 1px solid #242d39; border-radius: 12px; padding: 13px 14px;
}
a.stat:hover { border-color: #3b4858; }
.stat.alert { border-color: #8a3a35; box-shadow: 0 0 0 3px rgba(229, 83, 75, .14); }
.stat > div:last-child { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.stat small { display: block; color: #8a94a3; font-size: 12px; }
.stat b { display: block; font-size: 25px; line-height: 1.3; font-weight: 700; }
.stat b i { font-style: normal; font-size: 15px; color: #5d6775; }
.stat b.mapname { font-size: 18px; padding: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  -ms-flex: none; flex: none;
  background: #16301f; color: #3fb950;
}
.en .stat-ico { margin-right: 12px; }
.fa .stat-ico { margin-left: 12px; }
.stat-ico.red { background: #35191a; color: #e5534b; }
.stat-ico.amber { background: #352812; color: #f5a524; }
.stat-ico.blue { background: #172540; color: #4c8dff; }
.split {
  display: -ms-flexbox; display: flex;
  height: 6px; border-radius: 9px; overflow: hidden; background: #242d39; margin: 7px 0 4px;
}
.split span { display: block; height: 6px; }
.split .t { background: #e5534b; }
.split .ct { background: #4c8dff; }
.stat .split-l { display: -ms-flexbox; display: flex; -ms-flex-pack: justify; justify-content: space-between; }
.split-l .tt { color: #e5534b; }
.split-l .ctt { color: #4c8dff; }

/* ---------- teams ---------- */
.teams {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: 0 -8px;
}
.teams > .card { -ms-flex: 1 1 auto; flex: 1 1 auto; width: 280px; margin: 0 8px 16px; }
.team-card { border-top: 3px solid #e5534b; }
.team-card.ct { border-top-color: #4c8dff; }
.team-card h3 .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #e5534b; box-shadow: 0 0 0 4px rgba(229, 83, 75, .18);
}
.en .team-card h3 .dot { margin: 0 11px 0 3px; }
.fa .team-card h3 .dot { margin: 0 3px 0 11px; }
.team-card.ct h3 .dot { background: #4c8dff; box-shadow: 0 0 0 4px rgba(76, 141, 255, .18); }
.prow {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 6px 5px; border-radius: 8px; margin: 2px -4px;
}
.prow > * { margin: 0 4px; }
.prow:hover { background: #1a212b; }
.prow.dead { opacity: .5; }
.prow .pname { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.prow .kd { color: #8a94a3; font-size: 13px; white-space: nowrap; }
.prow .kd i { font-style: normal; color: #5d6775; margin: 0 2px; }
.spec { padding-bottom: 10px; }
.spec .prow { display: -ms-inline-flexbox; display: inline-flex; margin: 2px 4px; }

.team {
  display: inline-block; min-width: 34px; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; line-height: 18px;
  padding: 0 6px; border-radius: 6px;
  background: #242d39; color: #8a94a3;
}
.team.t { background: #35191a; color: #e5534b; }
.team.ct { background: #172540; color: #4c8dff; }

.ping { display: inline-block; font-size: 12px; font-weight: 700; min-width: 34px; text-align: center; padding: 0 6px; line-height: 20px; border-radius: 6px; }
.p-good { color: #3fb950; background: #16301f; }
.p-mid { color: #f5a524; background: #352812; }
.p-bad { color: #e5534b; background: #35191a; }

.badge {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; margin: 0 2px;
  background: #242d39; color: #8a94a3; vertical-align: middle;
}
.badge .i { width: 13px; height: 13px; }
.badge.gold { background: #352812; color: #f5a524; }

.tag {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  font-size: 12px; padding: 1px 9px; border-radius: 999px;
  background: #242d39; color: #8a94a3; vertical-align: middle;
}
.tag .i { width: 13px; height: 13px; }
.en .tag .i { margin-right: 5px; }
.fa .tag .i { margin-left: 5px; }
.tag.red { background: #35191a; color: #e5534b; }
.tag.green { background: #16301f; color: #3fb950; }
.tag.gold, .tag.amber { background: #352812; color: #f5a524; }

/* ---------- buttons / forms ---------- */
form { margin: 0; }
form.inline { display: inline; }
.btns {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -4px;
}
.btns > * { margin: 4px; }
.btn {
  display: inline-block; vertical-align: middle; text-align: center; white-space: nowrap;
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 18px;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
  color: #e7eaef; background: #1a212b; border: 1px solid #2f3a48;
}
.btn span { vertical-align: middle; }
.btn:hover { background: #222b37; border-color: #3b4858; }
.btn .i { width: 16px; height: 16px; margin-top: -2px; }
.en .btn .i { margin-right: 6px; }
.fa .btn .i { margin-left: 6px; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.primary { background: #f5a524; border-color: #f5a524; color: #1a1204; }
.btn.primary:hover { background: #ffb43d; border-color: #ffb43d; }
.btn.danger { background: #e5534b; border-color: #e5534b; color: #fff; }
.btn.danger:hover { background: #f0645c; border-color: #f0645c; }
.btn.warn { background: #352812; border-color: #7a5615; color: #f5a524; }
.btn.ghost { background: transparent; }
.btn.tbtn { color: #e5534b; border-color: #7a312c; background: #35191a; }
.btn.ctbtn { color: #4c8dff; border-color: #2c4f8f; background: #172540; }
.btn[disabled] { opacity: .35; cursor: default; }

input, select {
  font-family: inherit; font-size: 13.5px; color: #e7eaef;
  background: #11161c; border: 1px solid #2f3a48; border-radius: 9px;
  padding: 8px 11px; width: 100%; outline: none; height: 38px;
}
select option { background: #11161c; color: #e7eaef; }
input:focus, select:focus { border-color: #f5a524; }
input::-ms-clear { display: none; }
form.stack > * { margin-bottom: 10px; }
form.stack > *:last-child { margin-bottom: 0; }
form.stack label { display: block; color: #8a94a3; font-size: 12.5px; }
form.stack label select { display: block; margin-top: 5px; }
.msgform {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  margin-bottom: 10px;
}
.msgform input { -ms-flex: 1 1 0%; flex: 1 1 0%; width: auto; min-width: 0; }
.msgform .btn { -ms-flex: none; flex: none; }
.en .msgform .btn { margin-left: 8px; }
.fa .msgform .btn { margin-right: 8px; }

.seg {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -3px;
}
.seg > * { margin: 3px; }
.seg label { position: relative; }
.seg label input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.seg label span, .segbtn {
  display: inline-block; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 18px;
  background: #11161c; border: 1px solid #2f3a48; color: #8a94a3;
}
.seg label span:hover, .segbtn:hover { color: #e7eaef; }
.seg label input:checked + span, .segbtn.on { background: #352812; border-color: #f5a524; color: #f5a524; }
.seg label input:checked + span.perm { background: #35191a; border-color: #e5534b; color: #e5534b; }
.seg form { display: inline; }

.search { position: relative; width: 250px; max-width: 100%; }
.en .search { margin-left: auto; }
.fa .search { margin-right: auto; }
.search .i { position: absolute; top: 11px; color: #5d6775; width: 16px; height: 16px; }
.en .search .i { left: 11px; }
.fa .search .i { right: 11px; }
.en .search input { padding-left: 34px; }
.fa .search input { padding-right: 34px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: 11.5px; font-weight: 700; color: #5d6775; text-transform: uppercase; letter-spacing: .4px;
  padding: 8px 10px; border-bottom: 1px solid #242d39;
}
.en .tbl th { text-align: left; }
.fa .tbl th { text-align: right; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #242d39; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #171d26; }
.tbl tr.dead td { opacity: .55; }
.tbl .pname { font-weight: 700; }
.tbl .num { color: #8a94a3; white-space: nowrap; }
.tbl .acts { white-space: nowrap; }
.en .tbl .acts { text-align: right; }
.fa .tbl .acts { text-align: left; }
.en .tbl .acts form, .en .tbl .acts a { margin-left: 6px; }
.fa .tbl .acts form, .fa .tbl .acts a { margin-right: 6px; }

/* ---------- player ---------- */
.backlink {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  color: #8a94a3; margin-bottom: 12px; font-size: 13px;
}
.backlink:hover { color: #e7eaef; }
.fa .backlink .i { -ms-transform: scaleX(-1); transform: scaleX(-1); }
.profile { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; }
.en .profile { border-left: 4px solid #2f3a48; }
.fa .profile { border-right: 4px solid #2f3a48; }
.en .profile.t { border-left-color: #e5534b; }
.fa .profile.t { border-right-color: #e5534b; }
.en .profile.ct { border-left-color: #4c8dff; }
.fa .profile.ct { border-right-color: #4c8dff; }
.avatar {
  width: 72px; height: 72px; border-radius: 18px;
  -ms-flex: none; flex: none;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: #2c3542;
  background-image: linear-gradient(135deg, #3a4554, #222a35);
}
.en .avatar { margin-right: 18px; }
.fa .avatar { margin-left: 18px; }
.profile.t .avatar { background-image: linear-gradient(135deg, #f0776f, #9e2e28); }
.profile.ct .avatar { background-image: linear-gradient(135deg, #7aa9ff, #2856b8); }
.pinfo { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.pinfo h2 { margin: 0 0 6px; font-size: 20px; }
.fa .pinfo h2 { text-align: right; }
.tags {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: 0 -3px 7px;
}
.tags > * { margin: 0 3px 4px; }
.tags .team { font-size: 11.5px; padding: 1px 9px; border-radius: 999px; }
dl {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -4px;
}
dl div {
  -ms-flex: 1 1 auto; flex: 1 1 auto; width: 120px; margin: 4px;
  background: #11161c; border: 1px solid #242d39; border-radius: 9px; padding: 6px 10px;
}
dt { color: #5d6775; font-size: 11.5px; }
dd { margin: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa dd { text-align: right; }

/* ---------- notes ---------- */
.note {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
  background: #1a212b; border: 1px solid #2f3a48; color: #8a94a3;
}
.note.ok { background: #13281a; border-color: #2b6b36; color: #7ee08b; }
.note.bad { background: #2e1716; border-color: #7a312c; color: #ff9b94; }
.note.wait { background: #2a2214; border-color: #7a5615; color: #f5a524; }
.spin {
  display: inline-block; -ms-flex: none; flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #5e4519; border-top-color: #f5a524;
  -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite;
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- reports ---------- */
.report {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 12px 14px; border-radius: 11px; margin-bottom: 10px;
  background: #11161c; border: 1px solid #242d39;
}
.report:last-child { margin-bottom: 0; }
.report .count {
  width: 54px; height: 54px; border-radius: 12px;
  -ms-flex: none; flex: none;
  text-align: center; padding-top: 7px;
  background: #35191a; color: #e5534b;
}
.en .report .count { margin-right: 14px; }
.fa .report .count { margin-left: 14px; }
.report .count b { display: block; font-size: 20px; line-height: 24px; }
.report .count small { display: block; font-size: 10.5px; }
.report .rinfo { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.report .rinfo > div { margin-top: 4px; }
.report .acts {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  -ms-flex-align: center; align-items: center;
}
.report .acts > * { margin: 3px; }
.quiet {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  color: #3fb950; padding: 18px;
}

.leftrow {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 8px 0; margin: 0 -4px; border-bottom: 1px solid #242d39;
}
.leftrow:last-child { border-bottom: 0; }
.leftrow > * { margin: 0 4px; }
.leftrow > span { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leftrow .pname { -ms-flex: 1.3 1 0%; flex: 1.3 1 0%; font-weight: 700; }
.leftrow select { -ms-flex: 1 1 0%; flex: 1 1 0%; width: auto; min-width: 0; padding: 4px 8px; height: 32px; font-size: 12.5px; }
.leftrow .btn { -ms-flex: none; flex: none; }

/* ---------- maps ---------- */
.hero {
  position: relative; min-height: 170px; padding: 0; overflow: hidden;
  background-color: #151b23; background-size: cover; background-position: center;
}
.hero:before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(90deg, rgba(11, 14, 18, .95) 25%, rgba(11, 14, 18, .45));
}
.fa .hero:before { background-image: linear-gradient(270deg, rgba(11, 14, 18, .95) 25%, rgba(11, 14, 18, .45)); }
.hero-in { position: relative; padding: 22px 24px; }
.hero-in small { display: block; color: #8a94a3; }
.hero-in h2 { margin: 2px 0 4px; font-size: 30px; line-height: 1.2; }
.fa .hero-in h2 { text-align: right; }
.hero-in .btns { margin-top: 10px; }
.maps {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -6px -6px 10px;
}
.mapcard { width: 23%; width: calc(25% - 12px); margin: 6px; }
.mapcard button {
  display: block; width: 100%; padding: 0; cursor: pointer; font-family: inherit; color: #e7eaef;
  background: #151b23; border: 1px solid #242d39; border-radius: 11px; overflow: hidden;
}
.en .mapcard button { text-align: left; }
.fa .mapcard button { text-align: right; }
.mapcard button:hover { border-color: #f5a524; }
.mapcard .thumb {
  display: block; height: 92px;
  background-color: #1b222c; background-position: center; background-size: cover; background-repeat: no-repeat;
}
.mapcard .mname { display: block; padding: 7px 10px; font-weight: 700; font-size: 13px; }

/* ---------- settings ---------- */
.toggles {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  margin: -5px;
}
.toggle-row {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: justify; justify-content: space-between;
  -ms-flex: 1 1 auto; flex: 1 1 auto; width: 260px; margin: 5px;
  padding: 11px 14px; border-radius: 10px; background: #11161c; border: 1px solid #242d39;
}
.toggle-row > span { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; font-weight: 700; }
.toggle-row small { display: block; color: #5d6775; font-weight: 400; font-size: 12px; }
.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  -ms-flex: none; flex: none; cursor: pointer;
  background: #2f3a48; border: 0; padding: 0;
}
.en .switch { margin-left: 12px; }
.fa .switch { margin-right: 12px; }
.switch i { position: absolute; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd5dd; }
.en .switch i { left: 3px; }
.fa .switch i { right: 3px; }
.switch.on { background: #3fb950; }
.switch.on i { background: #fff; }
.en .switch.on i { left: 23px; }
.fa .switch.on i { right: 23px; }
.card h3 .val { color: #f5a524; font-weight: 700; font-size: 15px; }
.en .card h3 .val { margin-left: auto; }
.fa .card h3 .val { margin-right: auto; }

/* ---------- ads ---------- */
.ad {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 9px 10px; margin-bottom: 8px; border-radius: 10px;
  background: #11161c; border: 1px solid #242d39;
}
.ad > * { margin: 0 4px; }
.ad > form { margin: 0 4px; }
.ad.off { opacity: .55; }
.adico {
  width: 36px; height: 36px; border-radius: 10px;
  -ms-flex: none; flex: none;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  background: #352812; color: #f5a524;
}
.adico .i { width: 19px; height: 19px; }
.adico.t-telegram { background: #10293a; color: #2aa3e0; }
.adico.t-teamspeak { background: #13223a; color: #4c8dff; }
.adico.t-discord { background: #1c1f3f; color: #7983f5; }
.adico.t-instagram { background: #3a1426; color: #f0588f; }
.adico.t-site { background: #16301f; color: #3fb950; }
.adbody { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.adbody b { display: block; font-size: 12px; color: #8a94a3; }
.adtext { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa .adtext { text-align: right; }
.ad .tag { -ms-flex: none; flex: none; }
.btn.icon .i { margin: 0 !important; }
.btn.icon span { display: none; }
.adtypes label span .i { width: 15px; height: 15px; margin-top: -2px; }
.en .adtypes label span .i { margin-right: 5px; }
.fa .adtypes label span .i { margin-left: 5px; }
form.stack label input { display: block; margin-top: 5px; }
.chatprev {
  padding: 10px 12px; border-radius: 9px; margin-bottom: 8px;
  background: #0f1308; border: 1px solid #2a2f1f;
  font: 13px/1.6 Verdana, Tahoma, sans-serif; color: #e8e2c8; text-align: left;
}
.chatprev .cp-g { color: #5ad15a; }
.chatprev .cp-dim { color: #6b6f5e; }

/* ---------- history ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: baseline; align-items: baseline;
  padding: 8px 4px; border-bottom: 1px dashed #242d39;
}
.timeline li:last-child { border-bottom: 0; }
.timeline time { display: block; -ms-flex: none; flex: none; width: 52px; color: #5d6775; font-size: 12.5px; }
.timeline b {
  display: block; -ms-flex: none; flex: none; width: 140px; color: #4c8dff; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.en .timeline b { margin-right: 10px; }
.fa .timeline b { margin-left: 10px; text-align: right; }
.timeline span { display: block; -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; color: #e7eaef; }
.fa .timeline span { text-align: right; }

footer {
  display: -ms-flexbox; display: flex;
  -ms-flex-wrap: wrap; flex-wrap: wrap;
  -ms-flex-pack: center; justify-content: center;
  padding: 12px 16px 20px; color: #5d6775; font-size: 12px;
}
footer span {
  display: -ms-inline-flexbox; display: inline-flex;
  -ms-flex-align: center; align-items: center;
  margin: 3px 11px;
}
footer .i { width: 14px; height: 14px; color: #f5a524; }
footer b { color: #8a94a3; }
.en footer b { margin-left: 4px; }
.fa footer b { margin-right: 4px; }

.expired { max-width: 420px; margin: 80px auto; text-align: center; padding: 30px; background: #151b23; border: 1px solid #242d39; border-radius: 16px; }
.expired .logo { margin: 0 auto 14px; width: 54px; height: 54px; }
.expired h2 { margin: 0 0 6px; }
.expired p { color: #8a94a3; }
.expired code { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 8px; background: #352812; color: #f5a524; font-size: 16px; direction: ltr; }

@media (max-width: 720px) {
  .mapcard { width: 31%; width: calc(33.333% - 12px); }
  .leftrow { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .leftrow > span, .leftrow select { -ms-flex: 1 1 auto; flex: 1 1 auto; width: 40%; margin-bottom: 6px; }
  .timeline li { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .timeline span { -ms-flex: 1 1 auto; flex: 1 1 auto; width: 100%; }
  .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
}

/* small MOTD window (game at 800x600 and similar): everything tighter */
@media (max-width: 820px) {
  body { font-size: 13px; }
  .top { padding: 5px 8px; }
  .top > * { margin: 2px 4px; }
  .logo { width: 32px; height: 32px; border-radius: 9px; }
  .logo .i { width: 18px; height: 18px; }
  .en .brand .logo { margin-right: 9px; }
  .fa .brand .logo { margin-left: 9px; }
  .brand-text b { font-size: 14px; }
  .brand-text span { font-size: 11px; }
  .chip { padding: 2px 9px; font-size: 12px; margin: 2px; }
  .chip .i { width: 14px; height: 14px; }
  .lang-switch a { padding: 2px 9px; }
  .tabs { padding: 4px 6px; }
  .tab { padding: 4px 8px; font-size: 13px; }
  .tab svg.i { width: 15px; height: 15px; }
  .en .tab .i { margin-right: 5px; }
  .fa .tab .i { margin-left: 5px; }
  main { padding: 10px 10px 4px; }
  .card { padding: 11px 12px; margin-bottom: 10px; border-radius: 10px; }
  .card h3 { margin-bottom: 8px; font-size: 14px; }
  .note { padding: 7px 11px; margin-bottom: 10px; }
  .stats { margin: -4px -4px 6px; }
  .stat { width: 130px; margin: 4px; padding: 9px 10px; border-radius: 10px; }
  .stat b { font-size: 21px; }
  .stat b.mapname { font-size: 15px; }
  .stat-ico { width: 32px; height: 32px; border-radius: 9px; }
  .stat-ico .i { width: 16px; height: 16px; }
  .en .stat-ico { margin-right: 9px; }
  .fa .stat-ico { margin-left: 9px; }
  .grid2 { margin: -5px -5px 5px; }
  .grid2 > .card { width: 240px; margin: 5px; }
  .teams { margin: 0 -5px; }
  .teams > .card { width: 240px; margin: 0 5px 10px; }
  .prow { padding: 4px 5px; }
  .btn { padding: 6px 11px; }
  input, select { height: 34px; padding: 6px 10px; }
  .tbl td { padding: 6px 8px; }
  .tbl th { padding: 6px 8px; }
  .hero { min-height: 130px; }
  .hero-in { padding: 14px 16px; }
  .hero-in h2 { font-size: 24px; }
  .mapcard .thumb { height: 74px; }
  .avatar { width: 56px; height: 56px; font-size: 24px; border-radius: 14px; }
  footer { padding: 8px 10px 12px; }
}

/* WHMCS owner login: sso / connecting pages */
.expired .sub { margin-top: 18px; font-size: 13px; }
.expired .btn { margin-top: 12px; }
.expired p .spin { display: inline-block; vertical-align: middle; margin: 0 6px; }

/* chat page (IE11: flex with -ms- prefixes, no gap) */
.chatlog { list-style: none; margin: 0; padding: 0; }
.chatlog li {
  display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap;
  -ms-flex-align: center; align-items: center;
  padding: 6px 4px; border-bottom: 1px solid #1d242e;
}
.chatlog li > * { margin: 2px 4px; }
.chatlog li.tm { background: #17140c; }
.chatlog time { color: #5d6775; font-size: 12px; min-width: 42px; }
.chatlog .pname { color: #e7eaef; font-weight: 700; }
.chatlog a.pname:hover { color: #f5a524; }
.chattext { color: #c9d1d9; word-wrap: break-word; -ms-flex: 1 1 200px; flex: 1 1 200px; }

/* admins page */
.admrow { padding: 10px 2px; border-bottom: 1px solid #1d242e; }
.admrow:last-child { border-bottom: 0; }
.admhead, .admtools, .admtools form {
  display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap;
  -ms-flex-align: center; align-items: center;
}
.admhead > *, .admtools > * { margin: 3px 4px; }
.admtools form > * { margin: 0 3px; }
.admtools input { width: 140px; height: 32px; padding: 5px 9px; }
.admtools select { width: auto; height: 32px; padding: 4px 8px; }
.admhead .pname { font-size: 14.5px; }
