@import url('https://fonts.googleapis.com/css2?family=Trebuchet+MS:wght@400;700;800&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #d8d8d8;
    background:
        linear-gradient(rgba(0,0,0,.50), rgba(0,0,0,.72)),
        radial-gradient(circle at 60% 20%, rgba(255,184,0,.13), transparent 34%),
        #1b1511;
    overflow-x: hidden;
}

.page {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 35px;
}

.top-header {
    height: 116px;
    border-bottom: 1px solid rgba(226, 185, 76, .65);
    display: flex;
    align-items: center;
    gap: 26px;
    padding-left: 30px;
}

.soldier {
    width: 66px;
    height: 66px;
    color: #ffb400;
    font-size: 58px;
    transform: rotate(-10deg);
    text-shadow: 0 0 12px rgba(255, 180, 0, .7);
}

.title {
    color: #ffb400;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 180, 0, .35);
}

.panel {
    width: 1080px;
    margin: 98px auto 0;
    background: linear-gradient(120deg, rgba(24, 11, 9, .86), rgba(38, 29, 24, .74));
    box-shadow: 0 10px 50px rgba(0,0,0,.38);
    padding-bottom: 18px;
}

.top-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
    font-weight: 800;
}

.top-table thead tr {
    height: 28px;
    background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.23));
    color: #e5bf49;
}

.top-table th,
.top-table td {
    padding: 5px 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-table tbody tr {
    height: 31px;
    background: rgba(255,255,255,.09);
}

.top-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.17);
}

.top-table tbody tr:hover {
    background: rgba(255, 180, 0, .15);
}

.c-rank {
    width: 54px;
}

.c-xp {
    width: 130px;
}

.c-name {
    width: 430px;
}

.c-weapon {
    width: 135px;
}

.rank-number {
    color: #d8d8d8;
    font-size: 17px;
}

.cup {
    color: #ffc021;
    text-shadow: 0 0 8px rgba(255, 190, 30, .8);
}

.cup2 {
    filter: grayscale(.5);
}

.cup3 {
    filter: sepia(.6);
}

.xp-cell {
    position: relative;
    color: #6fa0ff;
    font-weight: 900;
    text-align: left !important;
}

.xp-cell .xp-bar {
    display: inline-block;
    width: 62px;
    height: 25px;
    vertical-align: middle;
    margin-right: 7px;
    background: linear-gradient(100deg, transparent 0 12%, #304b9c 13% 100%);
    border-left: 3px solid #6d89ff;
    transform: skewX(-9deg);
    opacity: .85;
}

.xp-num {
    display: inline-block;
    min-width: 63px;
}

.name-cell {
    text-align: left !important;
    color: #fff;
}

.flag {
    width: 22px;
    height: 14px;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e83542;
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 5px #e83542;
    vertical-align: middle;
}

.avatar {
    width: 27px;
    height: 27px;
    object-fit: cover;
    margin-right: 7px;
    vertical-align: middle;
}

.player-name {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px #000;
}

tbody tr:nth-child(1) .player-name,
tbody tr:nth-child(2) .player-name,
tbody tr:nth-child(5) .player-name,
tbody tr:nth-child(8) .player-name,
tbody tr:nth-child(10) .player-name,
tbody tr:nth-child(14) .player-name {
    color: #ffab00;
}

.hs-cell span {
    display: block;
    font-size: 13px;
}

.hs-bar {
    width: 58px;
    height: 6px;
    margin: 1px auto 0;
    background: rgba(255,255,255,.55);
    border-radius: 5px;
    overflow: hidden;
}

.hs-bar i {
    display: block;
    height: 100%;
    background: #e3c15a;
    border-radius: 5px;
}

.weapon-cell {
    color: #e8c557;
}

.weapon-cell img {
    max-width: 62px;
    max-height: 23px;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 2px 3px #000);
}

.skill {
    display: inline-block;
    min-width: 30px;
    padding: 2px 5px;
    color: #030303;
    background: #ff9700;
    border-radius: 4px;
    font-weight: 900;
}

.skill.hplus {
    background: #ff9700;
}

.skill.h {
    background: #ff9700;
}

.skill.mplus {
    background: #ffd400;
}

.skill.p-,
.skill.pminus {
    background: #ff3636;
    color: #fff;
}

.score {
    display: inline-block;
    min-width: 33px;
    background: #fff;
    color: #000;
    border-radius: 2px;
    padding: 1px 3px;
    margin-left: -2px;
}

.rank-icon img {
    max-width: 78px;
    max-height: 30px;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.9));
}

.empty {
    height: 100px;
    color: #ffcf54;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px 0;
}

.pagination a {
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    padding: 3px 8px;
    margin-right: 4px;
    border-radius: 6px;
}

.pagination a.active {
    background: #e1bd4f;
    color: #fff;
}

.search {
    display: flex;
}

.search input {
    width: 185px;
    height: 22px;
    border: 1px solid #d9b44b;
    background: rgba(255,255,255,.9);
    color: #777;
    font-size: 14px;
}

.search button {
    width: 31px;
    height: 22px;
    border: 0;
    background: #d9b44b;
    color: #fff;
    cursor: pointer;
}

.ok {
    width: 288px;
    height: 45px;
    margin: 18px 0 0 calc(50% - 540px);
    border: 1px solid rgba(255, 180, 0, .55);
    background: linear-gradient(90deg, rgba(159, 103, 0, .85), rgba(183, 121, 0, .35));
    color: #ffc229;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
}

.ok:hover {
    background: linear-gradient(90deg, rgba(210, 140, 0, .9), rgba(183, 121, 0, .55));
}

/* PROFILE */

.profile-panel {
    width: 1080px;
    margin: 98px auto 0;
    background: linear-gradient(120deg, rgba(24, 11, 9, .88), rgba(38, 29, 24, .77));
    box-shadow: 0 10px 50px rgba(0,0,0,.38);
    padding: 0 12px 26px;
}

.back {
    color: #dcdcdc;
    height: 32px;
    display: flex;
    align-items: center;
}

.back a {
    color: #dcdcdc;
    text-decoration: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 407px 255px;
    gap: 22px;
}

.card {
    background: rgba(0,0,0,.35);
}

.player-box {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-bottom: 2px solid #12e3de;
}

.big-avatar {
    width: 108px;
    height: 108px;
    object-fit: cover;
}

.country {
    font-size: 14px;
    margin-top: 6px;
}

.country img {
    width: 22px;
    height: 14px;
    vertical-align: middle;
    margin-right: 5px;
}

.big-name {
    color: #ffb400;
    font-weight: 900;
    font-size: 18px;
    margin-top: 10px;
    max-width: 178px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-small {
    color: #e8cc55;
    font-size: 13px;
    font-weight: 900;
}

.skill-line {
    margin-top: 8px;
}

.rank-progress {
    display: grid;
    grid-template-columns: 85px 1fr 80px;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-bottom: 2px solid #d8b343;
}

.rank-progress img {
    max-width: 75px;
}

.rank-progress strong {
    color: #00f2ef;
    font-size: 13px;
}

.progress {
    height: 18px;
    background: rgba(255,255,255,.15);
    margin: 5px 0;
}

.progress i {
    display: block;
    height: 100%;
    background: #0ff;
}

.xp-large {
    color: #80a7ff;
    font-weight: 900;
    font-size: 18px;
}

.xp-large span {
    color: #00e6ff;
    font-size: 13px;
    margin-left: 10px;
}

.next-rank {
    color: #9c9c9c;
    font-size: 13px;
    text-align: center;
}

.info-list {
    padding: 10px 16px;
    border-bottom: 2px solid #d8b343;
}

.info-list p,
.stat-block p {
    margin: 8px 0;
    font-size: 17px;
    font-weight: 800;
}

.info-list b,
.stat-block b {
    color: #dcdcdc;
}

.stat-block span,
.weapon-row span {
    color: #e1c454;
    font-weight: 900;
}

.stats-card h2,
.weapons-card h2 {
    margin: 0;
    padding: 14px;
    font-size: 20px;
    color: #e8e8e8;
    border-bottom: 2px solid #12e3de;
}

.stat-block {
    padding: 8px 14px;
    border-bottom: 2px solid #d8b343;
}

.weapon-row {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d8b343;
    padding: 9px 14px;
}

.weapon-row b {
    display: block;
    color: #dcdcdc;
}

.weapon-row span {
    display: block;
}

.weapon-row img {
    max-width: 85px;
    max-height: 42px;
    filter: drop-shadow(0 3px 5px #000);
}

@media (max-width: 1120px) {
    .panel,
    .profile-panel {
        width: 96%;
    }

    .ok {
        margin-left: 2%;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}
