/* evil-age v2 - overlay on original textures */
html, body.ea-v2 {
    min-height: 100%;
    color: #e8edf5;
}

body.ea-v2 {
    padding-top: 72px;
}

.ea-nav {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(12, 16, 24, 0.78);
    border-bottom: 1px solid rgba(255, 199, 55, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ea-nav__inner {
    align-items: center;
    gap: 16px;
}

.ea-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 199, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 9px;
    flex-direction: column;
    justify-content: space-between;
}

.ea-burger span {
    display: block;
    height: 2px;
    background: #ffc737;
    border-radius: 2px;
}

.ea-v2 #menu-button {
    display: none !important;
}

body.ea-menu-open #cssmenu > ul {
    display: block !important;
}

.content.flex-b {
    gap: 22px;
    align-items: stretch;
}

.cbox.forum {
    width: 30%;
}

.cbox.stat {
    flex: 1;
    min-width: 280px;
}

.cbox.vote {
    width: 22%;
    min-width: 200px;
}

.ea-hero .topbox {
    margin: 4% 0 0;
    max-width: 560px;
}

.ea-hero .startgame {
    margin-top: 8px;
}

.ea-status {
    margin-top: 84px;
}

.ea-v2 .onlinewrap {
    border-right: none;
}

.ea-v2 .sliderbox {
    border-right: 1px solid #424242;
    border-left: none;
}

.ea-v2 .onlinebox {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    box-sizing: border-box;
    height: auto;
}

.ea-online-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
}

.ea-online-brand .logo {
    max-width: 230px;
    width: 72%;
    margin-top: -20px;
}

.ea-online-brand .logo a img {
    width: 100%;
    height: auto;
    display: block;
}

.ea-online-brand .startgame {
    margin: -24px 0 0;
    transform: scale(0.86);
    transform-origin: top center;
}

.ea-promo {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 10% 0%, rgba(255, 199, 55, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(22, 26, 38, 0.55), rgba(12, 15, 22, 0.72));
}

.ea-promo__inner {
    position: relative;
    z-index: 1;
    padding: 28px 32px 24px;
    height: 100%;
    box-sizing: border-box;
}

.ea-promo__badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(255, 199, 55, 0.4);
    color: #ffc737;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 12px;
}

.ea-promo h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #fff;
}

.ea-promo p {
    margin: 0 0 18px;
    color: #b7c3d4;
    line-height: 1.5;
    max-width: 46ch;
}

.ea-promo__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-bottom: 20px;
}

.ea-promo__stats b {
    display: block;
    font-size: 20px;
    color: #ffc737;
}

.ea-promo__stats span {
    font-size: 12px;
    color: #8a98ab;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ea-promo__actions,
.ea-files__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ea-btn--gold {
    background: linear-gradient(180deg, #ffd56a, #e2a51a);
    color: #1a1408;
}

.ea-btn--gold:hover {
    filter: brightness(1.08);
    color: #1a1408;
}

.ea-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e8edf5;
    background: rgba(255, 255, 255, 0.04);
}

.ea-btn--ghost:hover {
    border-color: #ffc737;
    color: #ffc737;
}

.ea-open-when {
    color: #00ffff !important;
    font-weight: 500;
}

.server.offline .onlineserv {
    opacity: 0.55;
}

.ea-feature {
    margin-bottom: 12px;
}

.ea-feature h4 {
    margin: 0 0 6px;
    color: #fff;
}

.ea-clan-head {
    opacity: 0.55;
    font-size: 12px;
    margin-bottom: 8px;
}

.ea-side__box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ea-side__card {
    display: block;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 199, 55, 0.08), rgba(22, 26, 38, 0.5));
    border: 1px solid rgba(255, 199, 55, 0.18);
    text-decoration: none;
}

.ea-side__card h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 16px;
}

.ea-side__card .voteinfo {
    margin-left: 0;
}

.ea-side__box a {
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    background-image: none;
}

.ea-popup-close {
    font-size: 30px;
    position: absolute;
    right: 56px;
    top: 54px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.ea-empty {
    color: #8a98ab;
    font-size: 13px;
}

.ea-files {
    padding: 24px 0 40px;
}

.ea-files__hero {
    margin-bottom: 28px;
}

.ea-files__hero h1 {
    margin: 8px 0 8px;
    font-size: 36px;
    color: #fff;
}

.ea-files__hero p {
    color: #b7c3d4;
    font-size: 16px;
}

.ea-files__ver {
    color: #ffc737 !important;
}

.ea-files__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.ea-files__step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    background:
        url(../images/line1.png) no-repeat left bottom,
        url(../images/line2.png) no-repeat left top,
        url(../images/line3.png) no-repeat right top,
        url(../images/line4.png) no-repeat right bottom,
        #161a26;
    border: 1px solid #424242;
}

.ea-files__num {
    font-size: 28px;
    font-weight: 700;
    color: #ffc737;
    letter-spacing: 0.04em;
}

.ea-files__step h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.ea-files__step p {
    margin: 0 0 14px;
    color: #9fb0c6;
}

.ea-file-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    background: rgba(255, 199, 55, 0.12);
    border: 1px solid rgba(255, 199, 55, 0.35);
    color: #ffc737;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ea-file-btn:hover {
    background: #ffc737;
    color: #1a1408;
}

.ea-l2pick {
    position: fixed;
    z-index: 99999;
    top: 85px;
    left: 50px;
}

.ea-l2pick img {
    display: block;
    border: 0;
}

body.ea-menu-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .ea-burger {
        display: flex;
    }

    .ea-v2 .onlinewrap {
        border-right: 1px solid #424242;
    }

    .ea-v2 .sliderbox {
        border-left: 1px solid #424242;
    }

    .ea-nav .ea-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(12, 16, 24, 0.96);
        border-bottom: 1px solid rgba(255, 199, 55, 0.2);
        padding: 8px 16px 16px;
    }

    body.ea-menu-open .ea-nav .ea-menu {
        display: block;
    }

    .ea-nav .ea-menu ul {
        float: none;
    }

    .ea-nav .ea-menu li,
    .ea-nav .ea-menu a {
        float: none;
        display: block;
        width: 100%;
    }

    .cbox.forum,
    .cbox.stat,
    .cbox.vote {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 800px) {
    .ea-status {
        margin-top: 48px;
    }

    .ea-online-brand {
        min-height: 0;
        padding: 0;
    }

    .ea-online-brand .logo {
        max-width: 200px;
        margin-top: -8px;
    }

    .ea-online-brand .startgame {
        margin-top: -16px;
        transform: scale(0.8);
    }

    .ea-promo__inner {
        padding: 22px 18px;
    }
}
