@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('font/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('font/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('font/montserrat-800.woff2') format('woff2'); }
/* eSports.cs1.ro - eSports Rank (Rank System Ultimate layout, cs1.ro colors) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background-color: #0c0c0f; }
body {
  background: transparent;
  color: #f1f1f1;
  font: 13px/1.4 Montserrat, Tahoma, Verdana, Arial, sans-serif;
}
body::after {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -2;
  background-image: url('background-top15.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
body.bg-stats::after { background-image: url('background-stats.jpg'); }
body.bg-mapend::after { background-image: url('background-mapend.jpg'); }
body::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .35));
}
a { color: #ff4a55; text-decoration: none; }
a:hover { color: #fff; }
small { color: #a9a9a9; font-weight: normal; font-size: 12px; }

/* ---------- header ---------- */
header.top {
  display: block; display: flex; align-items: center; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 12px 16px;
  border-bottom: 2px solid #e11d2a;
  background: rgba(8, 8, 10, .82);
}
.logo { display: inline-block; display: flex; vertical-align: middle; align-items: center; font-size: 13px; font-weight: 800; color: #fff; letter-spacing: 2px; text-transform: uppercase; }
.logo img { height: 38px; display: block; }
.logo span { padding: 2px 7px; border-radius: 2px; background: #e11d2a; font-style: italic; }
.logo:hover { color: #fff; }
header nav { display: inline-block; display: flex; vertical-align: middle; flex-wrap: wrap; }
header nav a {
  padding: 5px 12px; border-radius: 4px; color: #a9a9a9; font-weight: 600;
  text-transform: uppercase; font-size: 12px;
}
header nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
header nav a.on { background: #b3121e; color: #fff; }
header .server { margin-left: auto; color: #a9a9a9; }
header .server b { color: #ff4a55; }

main { max-width: 1200px; margin: 0 auto; padding: 14px 16px; }

footer {
  max-width: 1200px; margin: 0 auto; padding: 16px; color: #a9a9a9; text-align: center;
}
footer b { color: #ff4a55; }

/* ---------- title bar (online / map pages) ---------- */
.bar {
  display: block; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 10px;
}
.bar h1 { margin: 0; font-size: 19px; text-shadow: 0 1px 3px #000; }

/* ---------- table ---------- */
table.top15 {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: rgba(8, 8, 10, .42); border: 1px solid rgba(225, 29, 42, .55); border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.top15 th, .top15 td { padding: 4px 8px; text-align: center; white-space: nowrap; }
.top15 thead th {
  color: #fff; font-size: 13px; font-weight: 800; padding: 6px 8px; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(225, 29, 42, .16); border-bottom: 2px solid #e11d2a;
}
.top15 thead th a { color: #fff; }
.top15 thead th a.cur, .top15 thead th a:hover { color: #ff4a55; }
.top15 thead th img { height: 18px; vertical-align: middle; }
.top15 tbody tr { cursor: pointer; }
.top15 tbody td {
  color: #e6e6e6; font-weight: 600; font-size: 14px; text-shadow: 0 1px 3px #000;
  background: rgba(0, 0, 0, .26); height: 25px;
}
.top15 tbody tr:nth-child(even) td { background: rgba(60, 60, 68, .26); }
.top15 tbody tr:hover td { background: rgba(225, 29, 42, .14); color: #fff; }
.top15 .c-pos { width: 40px; color: #fff; font-weight: 700; }
.top15 .c-pos img { vertical-align: middle; height: 20px; }
.top15 .c-name { text-align: left; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.top15 .c-rank { width: 76px; }
.top15 .empty { padding: 26px; color: #a9a9a9; cursor: default; }
.top15 tr.p1 td.c-name .pname:not([style]) { color: #f2c14e; }
.top15 tr.me td { background: rgba(225, 29, 42, .24) !important; }
.top15 td.k { color: #fff; }
.top15 td.d { color: #e6e6e6; }
.top15 td.xp { color: #ff4a55; }

/* XP: slanted badge, color = rank group */
.c-xp { width: 96px; }
.xpb {
  position: relative; display: inline-block; min-width: 80px; padding: 0 8px 0 16px;
  font-weight: 700; font-size: 14px; color: #fff; text-align: right;
  background: rgba(70, 95, 165, .5);
  background: linear-gradient(90deg, rgba(90, 120, 200, .55), rgba(40, 50, 90, .25));
  -webkit-transform: skewX(-18deg); -ms-transform: skewX(-18deg); transform: skewX(-18deg); border-radius: 2px;
}
.xpb::before {
  content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 4px; background: #7d9be8;
  box-shadow: 6px 0 0 -1px rgba(125, 155, 232, .5);
}
.xpb.t0 { background: rgba(100, 100, 100, .45); background: linear-gradient(90deg, rgba(120, 120, 120, .5), rgba(60, 60, 60, .2)); }
.xpb.t0::before { background: #9a9a9a; box-shadow: 6px 0 0 -1px rgba(154, 154, 154, .5); }
.xpb.t1 { background: rgba(120, 135, 155, .45); background: linear-gradient(90deg, rgba(150, 165, 185, .5), rgba(70, 80, 95, .2)); }
.xpb.t1::before { background: #b9c5d6; box-shadow: 6px 0 0 -1px rgba(185, 197, 214, .5); }
.xpb.t2 { background: rgba(170, 135, 40, .5); background: linear-gradient(90deg, rgba(200, 160, 50, .55), rgba(90, 70, 20, .2)); }
.xpb.t2::before { background: #e8c25a; box-shadow: 6px 0 0 -1px rgba(232, 194, 90, .5); }
.xpb.t4 { background: rgba(115, 55, 175, .55); background: linear-gradient(90deg, rgba(140, 70, 210, .6), rgba(70, 30, 110, .25)); }
.xpb.t4::before { background: #b77cff; box-shadow: 6px 0 0 -1px rgba(183, 124, 255, .5); }
.xpb.t5 { background: rgba(180, 45, 45, .55); background: linear-gradient(90deg, rgba(215, 60, 60, .6), rgba(110, 25, 25, .25)); }
.xpb.t5::before { background: #ff6b6b; box-shadow: 6px 0 0 -1px rgba(255, 107, 107, .5); }

/* name cell */
.av { width: 20px; height: 20px; border-radius: 3px; vertical-align: middle; margin-right: 6px; object-fit: cover; }
.av-mid { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 2px solid rgba(225, 29, 42, .55); }
.av-big { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; border: 2px solid #e11d2a; }
.flag { width: 20px; height: 14px; vertical-align: middle; margin-right: 5px; display: inline-block; }
.flag-none { background: rgba(255, 255, 255, .15); border-radius: 2px; }
.pname { font-weight: 700; vertical-align: middle; }
.badge { height: 14px; vertical-align: top; margin-left: 4px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 6px 0 2px; vertical-align: middle; }
.dot.on { background: #3fd16b; box-shadow: 0 0 5px #3fd16b; }
.dot.off { background: #e0322f; }
.tag-new {
  margin-left: 6px; padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 700;
  background: #e0322f; color: #fff; vertical-align: middle; text-shadow: none;
}
.rank-ico { width: 60px; height: 24px; vertical-align: middle; }

/* HS % with bar */
.c-hs { width: 82px; }
.hsv { display: block; font-size: 13px; line-height: 15px; }
.hsbar { display: block; height: 4px; margin: 1px auto 0; width: 54px; background: rgba(255, 255, 255, .85); border-radius: 2px; overflow: hidden; }
.hsbar i { display: block; height: 100%; background: #b3121e; }
.top15 td.mvp { color: #f2c14e; }

/* skill badge: letter on the skill color + value */
.skb { display: inline-block; display: inline-flex; white-space: nowrap; align-items: stretch; border-radius: 3px; overflow: hidden; text-shadow: none; vertical-align: middle; }
.skb b { min-width: 24px; padding: 1px 4px; color: #111; font-size: 12px; font-weight: 700; }
.skb i { min-width: 32px; padding: 1px 4px; background: rgba(255, 255, 255, .92); color: #222; font-style: normal; font-size: 12px; font-weight: 600; }
.skill { font-weight: 700; }

/* ---------- footer of the table: pager left, search right ---------- */
.t15-foot { display: block; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.pager { display: block; display: flex; align-items: center; flex-wrap: wrap; }
.pager a {
  min-width: 22px; padding: 2px 7px; border-radius: 3px; text-align: center;
  color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px #000;
}
.pager a:hover { background: rgba(255, 255, 255, .12); }
.pager a.cur { background: #e11d2a; color: #fff; text-shadow: none; }
.pager .total { margin-left: 8px; color: #a9a9a9; font-size: 12px; }
.search { display: block; display: flex; }
.search input {
  width: 160px; padding: 3px 8px; border-radius: 2px; border: 1px solid #e11d2a;
  background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 12px;
}
.search input:focus { outline: none; border-color: #ff4a55; }
.search button {
  display: inline-block; display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border: 0; border-radius: 2px; background: #e11d2a; color: #fff; cursor: pointer;
}
.search button:hover { background: #ff4a55; }

/* ---------- other pages (pager / recent maps / boxes) ---------- */
.recent { display: block; display: flex; flex-wrap: wrap; }
.recent a {
  padding: 3px 9px; border-radius: 3px; font-size: 12px; font-weight: 600;
  background: rgba(8, 8, 10, .82); border: 1px solid rgba(225, 29, 42, .25); color: #fff;
}
.recent a:hover { border-color: #e11d2a; }
.recent a.cur { background: #e11d2a; border-color: #e11d2a; color: #fff; }
.recent a.cur small { color: #ffd6d9; }
.box {
  padding: 20px; border-radius: 5px; background: rgba(14, 14, 18, .72); border: 1px solid rgba(225, 29, 42, .25);
  text-align: center; color: #a9a9a9;
}
.box.err { border-color: #e0322f; color: #ffb3b3; }

/* ---------- profile ---------- */
.profile .head {
  display: block; display: flex; align-items: center; flex-wrap: wrap;
  padding: 16px; border-radius: 5px; background: rgba(14, 14, 18, .72); border: 2px solid rgba(225, 29, 42, .55);
}
.profile .who { flex: 1; min-width: 220px; }
.profile .who h1 { margin: 0 0 6px; font-size: 22px; text-shadow: 0 1px 3px #000; }
.profile .meta { color: #a9a9a9; }
.profile .posbig { font-size: 18px; font-weight: 700; color: #ff4a55; }
.on-txt { color: #3fd16b; font-weight: 700; }
.skillbox {
  min-width: 120px; padding: 10px 16px; border: 2px solid; border-radius: 5px; text-align: center;
  background: rgba(8, 8, 10, .82);
}
.skillbox .sk { font-size: 26px; font-weight: 700; }
.skillbox .skv { color: #a9a9a9; font-size: 11px; }

.rankbar {
  display: block; display: flex; align-items: center; margin: 10px 0;
  padding: 12px 16px; border-radius: 5px; background: rgba(14, 14, 18, .72); border: 1px solid rgba(225, 29, 42, .25);
}
.rankbar .rb { flex: 1; }
.rb-top { display: block; display: flex; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; }
.rb-top span { color: #a9a9a9; }
.rb-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); overflow: hidden; }
.rb-fill { height: 100%; background: #e11d2a; background: linear-gradient(90deg, #b3121e, #ff4a55); }

.cards { display: block; display: flex; flex-wrap: wrap; margin-right: -8px; }
.cards .card { width: calc(20% - 8px); margin: 0 8px 8px 0; }
.card {
  display: block; display: flex; align-items: center; padding: 9px 12px; border-radius: 5px;
  background: rgba(14, 14, 18, .72); border: 1px solid rgba(225, 29, 42, .25);
}
.card img { width: 40px; height: 19px; object-fit: contain; }
.card span { display: block; color: #a9a9a9; font-size: 11px; text-transform: uppercase; }
.card b { font-size: 15px; }

.profile h2 { margin: 16px 0 8px; font-size: 15px; color: #e11d2a; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.weapons { display: block; display: flex; flex-wrap: wrap; margin-right: -8px; }
.weapons .wpn { width: calc(16.666% - 8px); margin: 0 8px 8px 0; }
.wpn { padding: 10px; text-align: center; border-radius: 5px; background: rgba(14, 14, 18, .72); border: 1px solid rgba(225, 29, 42, .25); }
.wpn img { height: 44px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 6px; }
.wpn b { display: block; }
.wpn span { color: #a9a9a9; font-size: 11px; }

/* ---------- map end ---------- */
.podium { display: block; display: flex; margin-bottom: 10px; align-items: flex-end; }
.pod {
  flex: 1; padding: 12px 10px; text-align: center; border-radius: 5px;
  background: rgba(14, 14, 18, .72); border: 1px solid rgba(225, 29, 42, .25); border-top: 3px solid;
}
.pod.p1 { border-top-color: #f2c14e; order: 2; padding-top: 22px; }
.pod.p2 { border-top-color: #c9d3de; order: 1; }
.pod.p3 { border-top-color: #d38b4f; order: 3; }
.pod .cup { display: block; margin: 0 auto 6px; }
.pod .pn { margin-top: 6px; font-size: 14px; }
.pod .ps { color: #a9a9a9; font-size: 12px; margin-top: 2px; }
.pod .ps b { color: #ff4a55; }

/* ---------- spacing (no flex "gap": the CS 1.6 MOTD browser is old) ---------- */
header.top > * { margin-right: 22px; }
header.top > .server { margin-right: 0; }
.logo img { margin-right: 10px; }
header nav a { margin-right: 4px; }
.bar > * { margin: 2px 12px 2px 0; }
.pager a { margin-right: 4px; }
.search input { margin-right: 6px; }
.recent a { margin: 0 4px 4px 0; }
.profile .head > * { margin-right: 18px; }
.profile .head > *:last-child { margin-right: 0; }
.rankbar > * { margin-right: 14px; }
.rankbar > *:last-child { margin-right: 0; }
.rb-top b { margin-right: 10px; }
.card img { margin-right: 10px; }
.podium .pod { margin-right: 10px; }
.podium .pod:last-child { margin-right: 0; }

/* ---------- fallbacks for MOTD browsers without flexbox (floats / inline-blocks; ignored when flex works) ---------- */
header.top > * { display: inline-block; vertical-align: middle; }
header .server { float: right; line-height: 38px; }
.logo img, .logo span { display: inline-block; vertical-align: middle; }
.bar { overflow: hidden; }
.bar h1 { float: left; }
.bar .recent, .bar .search { float: right; }
.t15-foot { overflow: hidden; }
.t15-foot .pager { float: left; }
.t15-foot .search { float: right; }
.pager a, .pager .total, .search input, .search button { display: inline-block; vertical-align: middle; }
.skb b, .skb i { display: inline-block; vertical-align: top; }
.profile .head { overflow: hidden; }
.profile .head .av-big { float: left; }
.profile .head { position: relative; }
.profile .head .skillbox { position: absolute; right: 16px; top: 16px; }
.profile .head .who { margin-right: 150px; }
.profile .head .who { overflow: hidden; }
.rankbar { overflow: hidden; }
.rankbar > .rank-ico { float: left; margin-top: 6px; }
.rankbar { position: relative; padding-right: 92px; }
.rankbar > .rank-ico:last-child { position: absolute; right: 16px; top: 18px; }
.rankbar .rb { overflow: hidden; }
.rb-top { overflow: hidden; }
.rb-top b { float: left; }
.rb-top span { float: right; }
.cards, .weapons, .podium { overflow: hidden; }
.cards .card, .weapons .wpn { float: left; }
.card img, .card > div { display: inline-block; vertical-align: middle; }
.podium .pod { float: left; width: 32%; width: calc(33.333% - 7px); }

/* browsers with flexbox: undo the fallbacks above (old IE ignores @supports) */
@supports (display: flex) {
  .profile .head .skillbox { position: static; }
  .profile .head .who { margin-right: 18px; }
  .rankbar { padding-right: 16px; }
  .rankbar > .rank-ico:last-child { position: static; }
  .rankbar > .rank-ico { margin-top: 0; }
  .podium .pod { width: auto; }
  body.motd .profile .head .who { margin-right: 12px; }
}

/* ---------- in-game MOTD: compact ---------- */
body.motd header.top { padding: 5px 10px; }
body.motd header.top > * { margin-right: 12px; }
body.motd .logo img { height: 28px; }
body.motd .logo { font-size: 11px; }
body.motd header nav a { padding: 3px 8px; font-size: 11px; }
body.motd main { padding: 8px 10px; }
body.motd .bar h1 { font-size: 15px; }
body.motd .top15 th, body.motd .top15 td { padding: 2px 5px; }
body.motd .top15 thead th { padding: 4px 5px; font-size: 12px; }
body.motd .top15 tbody td { font-size: 13px; height: 22px; }
body.motd .top15 .rank-ico { width: 50px; height: 20px; }
body.motd .top15 .av { width: 18px; height: 18px; }
body.motd .top15 .c-pos img { height: 17px; }
body.motd .hsv { font-size: 12px; line-height: 13px; }
body.motd .hsbar { height: 3px; }
body.motd .xpb { font-size: 13px; }
body.motd .skb b, body.motd .skb i { font-size: 11px; padding: 0 4px; }
body.motd .t15-foot .pager a { padding: 1px 6px; font-size: 13px; }
body.motd .top15 .wide { display: none; }
body.motd .c-name { max-width: 200px; }
body.motd .t15-foot { margin-top: 6px; }
body.motd .profile .head { padding: 10px; }
body.motd .profile .head > * { margin-right: 12px; }
body.motd .av-big { width: 64px; height: 64px; }
body.motd .cards { margin-right: -5px; }
body.motd .cards .card { width: calc(25% - 5px); margin: 0 5px 5px 0; }
body.motd .card { padding: 6px 8px; }
body.motd .card b { font-size: 13px; }
body.motd .weapons { margin-right: -5px; }
body.motd .weapons .wpn { width: calc(16.666% - 5px); margin: 0 5px 5px 0; }
body.motd .wpn img { height: 32px; }
body.motd .pod { padding: 8px; }
body.motd .av-mid { width: 40px; height: 40px; }

@media (max-width: 760px) {
  .top15 .wide { display: none; }
  body.site .cards .card { width: calc(50% - 8px); }
  body.site .weapons .wpn { width: calc(33.333% - 8px); }
  header .server { margin-left: 0; }
  .podium { flex-direction: column; align-items: stretch; }
  .pod.p1, .pod.p2, .pod.p3 { order: 0; }
}
@media (max-width: 600px) {
  body.site table.top15 { display: block; overflow-x: auto; }
}

/* ---------- maps page (/harti) ---------- */
.bar .now { color: #a9a9a9; font-weight: 600; }
.bar .now b { color: #f2c14e; }
.mp-sec {
  margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(225, 29, 42, .55);
  color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 13px;
  text-shadow: 0 1px 3px #000;
}
.mp-sec small { color: #ff4a55; font-weight: 700; }
.mp-last { margin-right: -6px; }
.mp-last .lp {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px 5px 5px; border-radius: 4px;
  background: rgba(8, 8, 10, .72); border: 1px solid rgba(225, 29, 42, .45);
  font-weight: 700; color: #fff; white-space: nowrap;
}
.mp-last .lp i {
  display: inline-block; width: 20px; height: 20px; line-height: 20px; margin-right: 7px; border-radius: 3px;
  background: #e11d2a; color: #fff; font-style: normal; text-align: center; font-size: 12px;
}
.mp-last .lp em { margin-left: 8px; color: #ff4a55; font-style: normal; font-weight: 600; font-size: 12px; }
.mp-grid { margin-right: -6px; }
.mp {
  position: relative; display: inline-block; vertical-align: top; width: 196px; margin: 0 5px 5px 0;
  padding: 5px 8px 5px 10px; border-radius: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: rgba(8, 8, 10, .7); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.mp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #7a7a85; }
.mp b { color: #ececec; font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.mp .tag {
  display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 2px; vertical-align: 1px;
  font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .12);
}
.mp .tag.now { background: #f2c14e; color: #111; }
.mp.t-de::before { background: #e11d2a; }
.mp.t-de .tag { background: rgba(225, 29, 42, .45); }
.mp.t-cs::before { background: #3fa9f5; }
.mp.t-cs .tag { background: rgba(63, 169, 245, .4); }
.mp.t-css::before { background: #9b6bff; }
.mp.t-css .tag { background: rgba(155, 107, 255, .4); }
.mp.t-awp::before { background: #4caf50; }
.mp.t-awp .tag { background: rgba(76, 175, 80, .45); }
.mp.t-fun::before { background: #ff9f1a; }
.mp.t-fun .tag { background: rgba(255, 159, 26, .45); }
.mp:hover { border-color: rgba(225, 29, 42, .6); background: rgba(225, 29, 42, .12); }
.mp.cur { border-color: #f2c14e; background: rgba(242, 193, 78, .14); box-shadow: 0 0 10px rgba(242, 193, 78, .35); }
.mp.cur b { color: #f2c14e; }
.mp-help { margin-top: 10px; color: #a9a9a9; font-size: 12px; }
.mp-help b { color: #ff4a55; }
body.motd .mp { width: 150px; margin: 0 4px 4px 0; padding: 3px 6px 3px 8px; }
body.motd .mp b { font-size: 12px; }
body.motd .mp .tag { margin-right: 4px; font-size: 8px; padding: 0 3px; }
body.motd .mp-sec { margin: 8px 0 5px; font-size: 12px; }
body.motd .mp-last .lp { padding: 3px 8px 3px 4px; font-size: 12px; }
