/* Anast Duels — Cyberpunk Edition (Compatible with old CS 1.6 browser) */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    width: 100%;
    height: 100%;
    background: #030305;
}

body {
    width: 100%;
    min-height: 100%;
    padding: 14px 2%;
    overflow-x: hidden;
    color: #00f0ff;
    /* Установлен красивый современный шрифт */
    font: 600 13px/1.3 'Inter', 'Segoe UI', sans-serif;
    background-color: #09090b;
    background-image: url("img/cs.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-attachment: fixed;
}

@keyframes backgroundDrift {
    0% { background-position: 47% center; }
    100% { background-position: 53% center; }
}

@keyframes goldOrbit {
    0% { left: -250px; top: -125px; opacity: .68; }
    100% { left: -185px; top: -55px; opacity: 1; }
}
@keyframes redOrbit {
    0% { right: -245px; bottom: -155px; opacity: .65; }
    100% { right: -175px; bottom: -80px; opacity: 1; }
}

h1, h2 {
    position: relative;
    z-index: 2;
    width: 96%;
    margin: 0 auto 10px;
    padding: 7px 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 5px #00f0ff, 0 0 12px #ff007f, 0 0 28px #00f0ff;
    animation: titleGlow 3s ease-in-out infinite;
}
h1:after, h2:after {
    content: "";
    display: block;
    width: 42%;
    height: 2px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, #ff007f, #00f0ff, transparent);
    box-shadow: 0 0 8px #ff007f, 0 0 20px #00f0ff;
    animation: titleLine 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { color: #fff; text-shadow: 0 0 5px #00f0ff, 0 0 12px #ff007f, 0 0 28px #00f0ff; }
    50% { color: #e0ffff; text-shadow: 0 0 7px #ff007f, 0 0 16px #00f0ff, 0 0 34px #ff007f; }
}
@keyframes titleLine {
    0%, 100% { width: 35%; background: #00f0ff; box-shadow: 0 0 8px #00f0ff, 0 0 20px #ff007f; }
    50% { width: 58%; background: #ff007f; box-shadow: 0 0 9px #ff007f, 0 0 24px #00f0ff; }
}

table {
    position: relative;
    z-index: 2;
    width: 96% !important;
    max-width: 1400px;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    color: #c0fcfd;
    background-color: rgba(10, 10, 18, 0.95);
    background: linear-gradient(135deg, rgba(13, 13, 26, 0.96), rgba(8, 8, 15, 0.95));
    border: 1px solid #00f0ff;
    border-radius: 13px;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.8), 0 0 25px rgba(255, 0, 127, 0.25),
                0 18px 40px rgba(0, 0, 0, 0.85);
    animation: panelGlow 4s ease-in-out infinite;
}

@keyframes panelGlow {
    0%, 100% { border-color: #00f0ff; box-shadow: 0 0 8px #00f0ff, 0 0 28px rgba(0, 240, 255, 0.35), 0 18px 40px rgba(0,0,0,.85); }
    50% { border-color: #ff007f; box-shadow: 0 0 10px #ff007f, 0 0 32px rgba(255, 0, 127, 0.4), 0 18px 40px rgba(0,0,0,.85); }
}

/* Победы, поражения, скилл */
th {
    height: 45px;
    padding: 6px 4px;
    overflow: hidden;
    color: #b7f5ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    background-color: #1a0033;
    background: linear-gradient(90deg, #1a0033, #330033, #001a33, #1a0033);
    background-size: 300% 100%;
    border-bottom: 2px solid #ff007f;
    text-shadow: 0 0 7px #ff007f;
    animation: headerFlow 7s linear infinite;
}

@keyframes headerFlow {
    0% { background-position: 0 0; }
    100% { background-position: 300% 0; }
}
th + th { border-left: 1px solid rgba(0, 240, 255, 0.25); }

tr { background-color: rgba(12, 12, 22, 0.93); }
tbody tr:nth-child(even), tr#b, tr.b { background-color: rgba(18, 16, 30, 0.95); }
tbody tr:hover {
    background-color: rgba(0, 240, 255, 0.15);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 127, 0.25), rgba(0, 240, 255, 0.15));
    box-shadow: 4px 0 0 #ff007f inset, 0 0 25px rgba(255, 0, 127, 0.25) inset;
}

tbody tr:hover td:first-child {
    color: #ffffff;
    text-shadow: 0 0 8px #ff007f, 0 0 18px #00f0ff;
}

/* TOP 3 — CYBERPUNK PODIUM BANDS */
body > table > tbody > tr:nth-child(1) td {
    background-color: rgba(255, 215, 0, 0.18);
    border-top: 1px solid rgba(255, 215, 0, 0.7);
    border-bottom: 1px solid rgba(255, 215, 0, 0.65);
    animation: podiumGold 2.4s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(2) td {
    background-color: rgba(0, 240, 255, 0.15);
    border-top: 1px solid rgba(0, 240, 255, 0.7);
    border-bottom: 1px solid rgba(0, 240, 255, 0.6);
    animation: podiumSilver 2.7s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(3) td {
    background-color: rgba(255, 0, 127, 0.18);
    border-top: 1px solid rgba(255, 0, 127, 0.63);
    border-bottom: 1px solid rgba(255, 0, 127, 0.65);
    animation: podiumBronze 3s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(1) td:first-child { border-left: 3px solid #ffd700; }
body > table > tbody > tr:nth-child(1) td:last-child  { border-right: 3px solid #ffd700; }
body > table > tbody > tr:nth-child(2) td:first-child { border-left: 3px solid #00f0ff; }
body > table > tbody > tr:nth-child(2) td:last-child  { border-right: 3px solid #00f0ff; }
body > table > tbody > tr:nth-child(3) td:first-child { border-left: 3px solid #ff007f; }
body > table > tbody > tr:nth-child(3) td:last-child  { border-right: 3px solid #ff007f; }

body > table > tbody > tr:nth-child(1) td:first-child,
body > table > tbody > tr:nth-child(1) td:nth-child(2) {
    color: #fffbcf;
    text-shadow: 0 0 4px #fff, 0 0 9px #ffd700, 0 0 17px #ff8800;
}
body > table > tbody > tr:nth-child(2) td:first-child,
body > table > tbody > tr:nth-child(2) td:nth-child(2) {
    color: #ffffff;
    text-shadow: 0 0 4px #fff, 0 0 9px #00f0ff, 0 0 16px #0088ff;
}
body > table > tbody > tr:nth-child(3) td:first-child,
body > table > tbody > tr:nth-child(3) td:nth-child(2) {
    color: #ffccff;
    text-shadow: 0 0 4px #fff, 0 0 9px #ff007f, 0 0 16px #990044;
}

/* --- ИКОНКИ PNG ДЛЯ ТОП-3 --- */
body > table > tbody > tr:nth-child(1) > td:nth-child(2) {
    background-image: url("img/1st-prize.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

body > table > tbody > tr:nth-child(2) > td:nth-child(2) {
    background-image: url("img/2nd-place.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

body > table > tbody > tr:nth-child(3) > td:nth-child(2) {
    background-image: url("img/3rd-place.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

@keyframes podiumGold {
    0%, 100% { background-color: rgba(255, 215, 0, 0.14); box-shadow: 0 5px 17px rgba(255, 215, 0, .15) inset; }
    50% { background-color: rgba(255, 215, 0, 0.25); box-shadow: 0 0 25px rgba(255, 215, 0, .35) inset; }
}
@keyframes podiumSilver {
    0%, 100% { background-color: rgba(0, 240, 255, 0.12); box-shadow: 0 5px 15px rgba(0, 240, 255, .13) inset; }
    50% { background-color: rgba(0, 240, 255, 0.22); box-shadow: 0 0 23px rgba(0, 240, 255, .3) inset; }
}
@keyframes podiumBronze {
    0%, 100% { background-color: rgba(255, 0, 127, 0.14); box-shadow: 0 5px 15px rgba(255, 0, 127, .15) inset; }
    50% { background-color: rgba(255, 0, 127, 0.25); box-shadow: 0 0 22px rgba(255, 0, 127, .35) inset; }
}

/* Победы, поражения, скилл */
td {
    height: 40px;
    min-width: 0;
    padding: 6px 8px;
    overflow: hidden;
    color: #fb6f84;
    /* font-family: 'Inter', 'Segoe UI', sans-serif; */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    text-shadow: 0 1px 2px #000;
}

tbody tr:last-child td { border-bottom: 0; }

th:first-child, td:first-child { width: 5%; }
td:first-child {
    color: #00f0ff;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 7px #00f0ff, 0 0 14px #ff007f;
}

th:nth-child(2), td:nth-child(2) { width: 32%; }
td:nth-child(2) {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.45), 0 1px 2px #000;
}

body > table > tbody > tr:nth-child(1) td:nth-child(2) {
    color: #fffbd2;
    text-shadow: 0 0 4px #fff, 0 0 9px #ffd700, 0 0 17px #ff8800;
}
body > table > tbody > tr:nth-child(2) td:nth-child(2) {
    color: #ffffff;
    text-shadow: 0 0 4px #fff, 0 0 9px #00f0ff, 0 0 16px #0088ff;
}
body > table > tbody > tr:nth-child(3) td:nth-child(2) {
    color: #ffd8ff;
    text-shadow: 0 0 4px #fff, 0 0 9px #ff007f, 0 0 16px #990044;
}

p {
    position: relative;
    z-index: 2;
    width: 92%;
    margin: 0 auto 7px;
    color: #00f0ff;
    font-size: 12px;
    text-align: left;
    text-shadow: 0 0 7px rgba(0, 240, 255, 0.5);
}

table[cellspacing="10"] {
    width: 92% !important;
    margin: 0 auto;
    table-layout: fixed;
    border-spacing: 8px;
    background-color: rgba(10, 10, 18, 0.88);
}

table[cellspacing="10"] > tbody > tr > td {
    height: auto;
    padding: 0;
    vertical-align: top;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
}

table[cellspacing="10"] > tbody > tr > td:first-child { width: 22% !important; }
table[cellspacing="10"] > tbody > tr > td:nth-child(2) { width: 78% !important; }

table[cellspacing="10"] table {
    width: 100% !important;
    max-width: none;
    margin: 0;
    table-layout: auto;
    border-radius: 8px;
    animation: none;
}

table[cellspacing="10"] table th {
    width: auto;
    height: 31px;
    padding: 4px 5px;
    font-size: 9px;
    line-height: 10px;
}

table[cellspacing="10"] table td {
    width: auto;
    height: 29px;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 11px;
    text-align: center;
    word-break: normal;
    animation: none;
}

table[cellspacing="10"] > tbody > tr > td:first-child table td:first-child {
    width: 67%;
    color: #00f0ff;
    text-align: left;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.55);
}

table[cellspacing="10"] > tbody > tr > td:first-child table td:nth-child(2) {
    width: 33%;
    color: #fff;
    text-align: center;
}

table[cellspacing="10"] > tbody > tr > td:nth-child(2) table th:first-child,
table[cellspacing="10"] > tbody > tr > td:nth-child(2) table td:first-child {
    width: 19%;
    text-align: left;
}

.player-cell { display: block; width: 100%; min-height: 24px; }
.player-avatar {
    float: left;
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border: 1px solid #00f0ff;
    border-radius: 5px;
    box-shadow: 0 0 9px rgba(0, 240, 255, 0.6);
}
.player-name {
    display: block;
    padding-top: 5px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

.q, #q { background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3) inset; }
.iN { color: #ff007f; font-weight: bold; text-shadow: 0 0 9px #990044; }
.iY { color: #00ff66; font-weight: bold; text-shadow: 0 0 9px #006622; }

/* Rank Capsules */
#Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
    position: relative;
    display: inline-block;
    min-width: 54px;
    height: 25px;
    padding: 0 7px 0 22px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 23px;
    vertical-align: middle;
    border: 1px solid #00f0ff;
    border-radius: 13px;
    background-color: #10101a;
    box-shadow: 0 0 9px rgba(0, 240, 255, 0.5);
    text-shadow: 0 0 6px #fff;
}

#Lm:before, #L:before, #Lp:before, #Mm:before, #M:before, #Mp:before,
#Hm:before, #H:before, #Hp:before, #Pm:before, #P:before, #Pp:before, #G:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
}

#Lm, #L, #Lp { border-color: #ff5500; background: linear-gradient(90deg,#521800,#1b0d08); box-shadow: 0 0 10px rgba(255,85,0,.72); }
#Lm:before, #L:before, #Lp:before { background: #ff5500; box-shadow: 0 0 9px #ff3300; }
#Mm, #M, #Mp { border-color: #00f0ff; background: linear-gradient(90deg,#00334d,#0c161f); box-shadow: 0 0 10px rgba(0,240,255,.74); }
#Mm:before, #M:before, #Mp:before { background: #00f0ff; box-shadow: 0 0 9px #0088ff; }
#Hm, #H, #Hp { border-color: #ffd700; background: linear-gradient(90deg,#4d4000,#1f1b08); box-shadow: 0 0 11px rgba(255,215,0,.80); }
#Hm:before, #H:before, #Hp:before { background: #ffd700; box-shadow: 0 0 9px #ffaa00; }
#Pm, #P, #Pp { border-color: #ff007f; background: linear-gradient(90deg,#4d0026,#1f0a15); box-shadow: 0 0 11px rgba(255,0,127,.82); }
#Pm:before, #P:before, #Pp:before { background: #ff007f; box-shadow: 0 0 9px #cc0066; }
#G {
    border-color: #00ff66;
    background: linear-gradient(90deg,#004d26,#0a1f14);
    box-shadow: 0 0 10px #00ff66, 0 0 23px rgba(0,255,102,.68);
    animation: godPulse 2s ease-in-out infinite;
}
#G:before { background: #ccffdd; box-shadow: 0 0 9px #00ff66, 0 0 16px #00ff66; }

@keyframes godPulse {
    0%, 100% { box-shadow: 0 0 9px #00ff66, 0 0 19px rgba(0,255,102,.55); }
    50% { box-shadow: 0 0 15px #ccffdd, 0 0 31px rgba(0,255,102,.88); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #030305; }
::-webkit-scrollbar-thumb { border-radius: 6px; background: linear-gradient(180deg,#00f0ff,#ff007f,#990044); }

/* Compact mode / Responsive */
@media screen and (max-height: 420px) {
    body { padding: 5px 1%; background-position: center center; }
    table, h1, h2 { width: 96% !important; margin-left: auto; margin-right: auto; }
    h1, h2 { margin-bottom: 5px; padding: 4px 0 6px; font-size: 15px; letter-spacing: 2px; }
    h1:after, h2:after { margin-top: 4px; }
    th { height: 28px; padding: 2px 3px; font-size: 8px; line-height: 10px; letter-spacing: 0; }
    td { height: 27px; padding: 2px 4px; font-size: 10px; line-height: 11px; }
    td:first-child { font-size: 13px; }
    td:nth-child(2) { font-size: 10px; }
    .player-cell { min-height: 20px; }
    .player-avatar { width: 20px; height: 20px; margin-right: 5px; }
    .player-name { padding-top: 4px; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 44px; height: 21px; padding: 0 5px 0 18px; font-size: 9px; line-height: 19px;
    }
    #Lm:before, #L:before, #Lp:before, #Mm:before, #M:before, #Mp:before,
    #Hm:before, #H:before, #Hp:before, #Pm:before, #P:before, #Pp:before, #G:before {
        left: 6px; top: 6px; width: 7px; height: 7px; border-width: 1px;
    }
}

@media screen and (max-width: 760px) {
    body { padding: 3px 1%; }
    table, h1, h2 { width: 98% !important; }
    h1, h2 { margin-bottom: 3px; padding: 3px 0 4px; font-size: 13px; letter-spacing: 1px; }
    th { height: 25px; padding: 2px; font-size: 7px; line-height: 9px; letter-spacing: 0; }
    td { height: 24px; padding: 1px 2px; font-size: 9px; line-height: 10px; }
    th:first-child, td:first-child { width: 6%; }
    th:nth-child(2), td:nth-child(2) { width: 35%; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 39px; height: 19px; padding: 0 3px 0 15px; font-size: 8px; line-height: 17px;
    }
}

@media screen and (max-height: 360px) {
    body { padding: 2px 1%; }
    h1, h2 { margin-bottom: 2px; padding: 2px 0 3px; font-size: 12px; }
    h1:after, h2:after { margin-top: 2px; }
    th { height: 23px; padding: 1px 2px; font-size: 7px; line-height: 8px; }
    td { height: 22px; padding: 1px 3px; font-size: 9px; line-height: 10px; }
    td:first-child { font-size: 11px; }
    td:nth-child(2) { font-size: 9px; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 39px; height: 18px; padding-left: 15px; font-size: 8px; line-height: 16px;
    }
}

/* ==========================================
   ИКОНКИ СТАТИСТИКИ (ПОБЕДЫ, ПОРАЖЕНИЯ, СКИЛЛ)
   ========================================== */
th:nth-child(3)::before, 
th:nth-child(4)::before, 
th:nth-child(5)::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

th:nth-child(3)::before {
    background-image: url('img/icon-star.png') !important;
}

th:nth-child(4)::before {
    background-image: url('img/icon-star.png') !important;
}

th:nth-child(5)::before {
    background-image: url('img/stats.png') !important;
}

/* Цвет цифр побед (Зеленый неон) */
/* th:nth-child(3), th:nth-child(3) {
    color: #00ff66 !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
} */

/* ==========================================
   ПОКРАСКА КОЛОНОК СТАТИСТИКИ ЧЕРЕЗ CSS
   ========================================== */

/* 1. Колонка 1v1 (3-й столбец): Победы — зеленые, Поражения — розовые */
td:nth-child(3) {
    color: #cdfee7;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    font-weight: 800;
}

/* 2. Колонка TEAM PvP (4-й столбец): Победы — зеленые, Поражения — розовые */
td:nth-child(4) {
    color: #cdfee7;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    font-weight: 800;
}

/* 3. Колонка ОБЩИЙ СКИЛЛ (5-й столбец): Ярко-голубой кибер-неон */
td:nth-child(5) {
    color: #00f0ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    font-weight: 900;
}