:root {
    --pvp-bg: #0e141d;
    --pvp-bg-soft: #152233;
    --pvp-panel-1: #1c2a3c;
    --pvp-panel-2: #162233;
    --pvp-border: #2c3b50;
    --pvp-accent: #4f9886;
    --pvp-accent-soft: #9fd0c4;
    --pvp-text: #d3dceb;
    --pvp-muted: #92a6bf;
    --pvp-gap: 14px;
}

* { box-sizing: border-box; }

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

li { list-style: none !important; }
li::marker { content: ""; }

body {
    min-width: 0 !important;
    margin: 0;
    background: radial-gradient(circle at 50% -20%, #1a3048 0%, var(--pvp-bg) 42%, #090d14 100%) !important;
    color: var(--pvp-text) !important;
    font-family: "PT Sans", Arial, sans-serif !important;
    line-height: 1.45 !important;
}

a, a:visited {
    color: #d7e2f1;
    text-decoration: none;
}

a:hover, a:focus {
    color: #f0f6ff;
}

.container {
    max-width: 1440px !important;
    min-width: 0 !important;
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    position: static !important;
}

.clear { clear: both !important; height: 0 !important; }

div.header,
.inner div.header,
.content,
.inner .content,
.footer,
.inner .footer {
    background: transparent !important;
    height: auto !important;
}

div.header { padding: 16px 0 8px !important; }
.content { margin: 0 !important; padding: 14px 0 28px !important; overflow: visible !important; }
.footer { margin-top: 12px !important; padding: 10px 0 20px !important; }

.header::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(79,152,134,0) 0%, rgba(79,152,134,.55) 50%, rgba(79,152,134,0) 100%);
}

/* Kill decorative legacy frame slices that break layout */
.side-content:before,
.side-content:after,
.b-r,
.b-under,
#page-content img[src*="dlet_artblock_"],
#page-content img[src*="spacer.gif"] {
    display: none !important;
}

/* Top bar */
.top-bar {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 10px;
}

.top-bar .languages {
    float: none !important;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0 !important;
    margin-left: auto;
}

.top-bar .languages .item {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
}

.top-bar .languages .item a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto !important;
    min-height: 34px;
    line-height: 1.2 !important;
    padding: 7px 12px !important;
    border: 1px solid var(--pvp-border);
    border-radius: 8px;
    background-color: rgba(17, 27, 40, 0.82) !important;
    color: var(--pvp-muted) !important;
    opacity: 1 !important;
    font-size: 13px !important;
    font-style: normal !important;
}

.top-bar .languages .item a::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 22px;
    height: 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 2px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,.28);
}

.top-bar .languages .item a.ru::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath fill='%23fff' d='M0 0h22v14H0z'/%3E%3Cpath fill='%230039a6' d='M0 4.666h22V14H0z'/%3E%3Cpath fill='%23d52b1e' d='M0 9.333h22V14H0z'/%3E%3C/svg%3E");
}

.top-bar .languages .item a.en::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath fill='%23012169' d='M0 0h22v14H0z'/%3E%3Cpath stroke='%23fff' stroke-width='3' d='M0 0l22 14M22 0L0 14'/%3E%3Cpath stroke='%23c8102e' stroke-width='1.4' d='M0 0l22 14M22 0L0 14'/%3E%3Cpath fill='%23fff' d='M9 0h4v14H9zM0 5h22v4H0z'/%3E%3Cpath fill='%23c8102e' d='M9.8 0h2.4v14H9.8zM0 5.8h22v2.4H0z'/%3E%3C/svg%3E");
}

.top-bar .languages .item a.active,
.top-bar .languages .item a:hover {
    color: #e8f3f0 !important;
    border-color: var(--pvp-accent);
    background-color: rgba(53, 123, 105, 0.24) !important;
}

.top-bar .logo {
    width: 560px;
    max-width: 100%;
    height: 86px;
    margin: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    background: url("/logo_header.png") center center no-repeat !important;
    background-size: contain !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(79,152,134,.18));
}

.top-bar .logo:hover {
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.52)) drop-shadow(0 0 12px rgba(79,152,134,.24));
    transform: scale(1.01);
}

.header-art {
    position: relative;
    min-height: 238px;
    overflow: hidden;
    margin: -8px 0 -10px;
    background:
        radial-gradient(ellipse at 50% 24%, rgba(79, 152, 134, .18) 0%, rgba(79, 152, 134, 0) 58%),
        linear-gradient(180deg, rgba(14, 24, 36, 0) 0%, rgba(14, 24, 36, .58) 74%, rgba(14, 24, 36, .95) 100%);
}

.header-art::before,
.header-art::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.header-art::before {
    inset: 18px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(79,152,134,0), rgba(159,208,196,.36), rgba(79,152,134,0));
}

.header-art::after {
    inset: auto 0 0;
    height: 94px;
    background: linear-gradient(180deg, rgba(9, 14, 22, 0), var(--pvp-bg) 82%);
    z-index: 4;
}

.header-hero {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
    opacity: .96;
    filter: drop-shadow(0 20px 22px rgba(0,0,0,.58));
}

.header-hero-bellato {
    left: 6%;
    bottom: -42px;
    width: min(34vw, 430px);
    height: 252px;
    transform: rotate(-2deg);
}

.header-hero-acretia {
    left: 50%;
    bottom: -118px;
    width: min(30vw, 360px);
    height: 382px;
    transform: translateX(-50%);
    z-index: 3;
}

.header-hero-cora {
    right: 4%;
    bottom: -96px;
    width: min(38vw, 460px);
    height: 334px;
    transform: rotate(2deg);
}

/* Main menu */
.nav { height: auto !important; padding-top: 0 !important; margin-bottom: 10px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.nav ul li,
.nav ul li:first-child,
.nav ul li:last-child { background: none !important; padding: 0 !important; }

.nav ul li {
    flex: 1 1 170px;
    min-width: 150px;
}

.nav ul li:first-child {
    flex: 1 1 170px;
    min-width: 150px;
}

.nav ul li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid var(--pvp-border);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--pvp-panel-1) 0%, var(--pvp-panel-2) 100%);
    color: #d7e2f1 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: center;
    text-shadow: none !important;
    text-decoration: none !important;
}

.nav ul li a::after { display: none !important; }
.nav ul li::before,
.nav ul li::after,
.btns ul li::before,
.btns ul li::after,
.war-top li::before,
.war-top li::after { content: none !important; display: none !important; }

.nav ul li a:hover {
    border-color: var(--pvp-accent);
    background: linear-gradient(180deg, #22354c 0%, #1a2b40 100%) !important;
    color: #f0f6ff !important;
}

.nav p, .nav span { display: block; margin-top: 3px; text-align: center; }
.nav p { color: var(--pvp-muted) !important; font-size: 12px !important; }
.nav span { color: #ff7272 !important; top: 0 !important; }

.nav-primary {
    margin-top: 6px;
}

.nav-primary ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.nav-primary ul li,
.nav-primary ul li:first-child {
    min-width: 0;
    flex: none;
}

.nav-primary ul li a {
    min-height: 58px;
    align-items: center;
    padding: 13px 16px !important;
    border-radius: 13px;
    background: linear-gradient(180deg, #22334a 0%, #172638 100%) !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 19px !important;
    letter-spacing: .01em;
    text-align: center;
}

.nav-primary ul li a:hover,
.nav-primary ul li a:focus {
    background: linear-gradient(180deg, #2c435f 0%, #20334a 100%) !important;
}

.nav-servers ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.nav-servers ul li,
.nav-servers ul li:first-child {
    min-width: 0;
    flex: none;
}

.nav-servers ul li a {
    min-height: 92px;
    padding: 14px 16px !important;
    border-radius: 14px;
    border-color: rgba(79, 152, 134, .72);
    background: linear-gradient(180deg, rgba(35, 57, 80, .95) 0%, rgba(22, 39, 58, .96) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.16);
    color: #eaf7f4 !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 20px !important;
}

.nav-servers ul li a p {
    margin-top: 7px !important;
    color: #a7c8c0 !important;
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.nav-servers ul li a:hover,
.nav-servers ul li a:focus {
    border-color: var(--pvp-accent-soft);
    background: linear-gradient(180deg, rgba(48, 93, 81, .98) 0%, rgba(31, 67, 61, .98) 100%) !important;
}

.nav-site {
    margin-bottom: 12px;
}

.nav-site ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nav-site ul li,
.nav-site ul li:first-child {
    min-width: 0;
    flex: none;
}

.nav-site ul li a {
    min-height: 72px;
    padding: 13px 18px !important;
    border-style: solid;
    border-color: rgba(79, 152, 134, .62);
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 152, 134, .14) 0%, rgba(79, 152, 134, 0) 45%),
        linear-gradient(180deg, rgba(30, 48, 69, .96) 0%, rgba(17, 29, 44, .96) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.14);
    color: #edf8ff !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 22px !important;
}

.nav-site ul li a p {
    margin-top: 6px !important;
    color: #a9c7d7 !important;
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 14px !important;
    line-height: 1.28 !important;
}

.nav-site ul li a:hover,
.nav-site ul li a:focus {
    border-color: var(--pvp-accent-soft);
    background:
        radial-gradient(circle at 100% 0%, rgba(159, 208, 196, .18) 0%, rgba(159, 208, 196, 0) 45%),
        linear-gradient(180deg, rgba(42, 75, 85, .98) 0%, rgba(24, 45, 59, .98) 100%) !important;
}

.ico-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.ico-home::before {
    content: "\2302";
    color: var(--pvp-accent-soft);
    font-size: 13px;
    line-height: 1;
}

/* quick links bar */
.brand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px 10px;
    margin: 0 0 12px;
    border-top: 1px solid var(--pvp-border);
    border-bottom: 1px solid var(--pvp-border);
    background: linear-gradient(180deg, #182536 0%, #132031 100%);
}

.brand-links a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #2f4260;
    background: rgba(34, 49, 73, 0.72);
    color: var(--pvp-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    font-family: "PT Sans Bold", sans-serif;
}

.brand-links a:hover,
.brand-links a:focus {
    background: rgba(53, 123, 105, 0.24);
    border-color: var(--pvp-accent);
    color: #e8f3f0;
}

/* CTA and feature links */
.header .block { height: auto !important; margin-bottom: 8px; text-align: center !important; }

.start {
    display: inline-block;
    width: auto !important;
    min-width: 320px;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    border-radius: 12px;
    border: 1px solid #3b7f70;
    background: linear-gradient(180deg, #2d7263 0%, #255c50 100%) !important;
    text-shadow: none !important;
    line-height: 1.2 !important;
    font-size: 26px !important;
    text-decoration: none !important;
}

.start:hover {
    color: #f3fffb !important;
    border-color: var(--pvp-accent);
    background: linear-gradient(180deg, #3a8d78 0%, #2d7263 100%) !important;
}

.btns { padding: 8px 0 0 !important; }
.btns ul { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.btns li, .btns li:first-child, .btns li:last-child {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

.btns li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    border: 1px solid var(--pvp-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #1f2f43 0%, #172739 100%);
    color: #e6f1ff !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

.btns li a p {
    margin: 8px 0 0 !important;
    color: #a9bfd8 !important;
    font-size: 13px !important;
    font-style: normal !important;
}

.btns li a:hover { border-color: var(--pvp-accent); color: #f7ffff !important; }

/* Two-column content layout */
.content > .container {
    display: grid;
    grid-template-areas: "side main";
    grid-template-columns: 340px minmax(0, 1fr);
    gap: var(--pvp-gap);
    align-items: start;
}

.maincontent {
    grid-area: main;
    grid-column: 2;
    display: grid;
    gap: var(--pvp-gap);
    width: auto !important;
    float: none !important;
    padding-right: 0 !important;
    min-width: 0;
}

.sideblock {
    grid-area: side;
    grid-column: 1;
    width: auto !important;
    float: none !important;
    clear: none !important;
    align-self: start;
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-width: 0;
}

/* server tiles */
.servers {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.servers .servers-mheight { display: flex; gap: 10px; flex-wrap: wrap; }
.servers .servers-mheight {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.servers .server {
    position: relative;
    width: auto !important;
    margin: 0 !important;
    border: 1px solid rgba(55, 76, 102, .86);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(159, 208, 196, .12) 0%, rgba(159, 208, 196, 0) 42%),
        linear-gradient(180deg, rgba(25, 39, 57, .96) 0%, rgba(14, 25, 39, .98) 100%);
    padding: 16px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 128px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.18);
}

.servers .server::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(159,208,196,.9), rgba(79,152,134,.25));
}

.servers .server:after { display: none !important; }
.servers .icon { display: none !important; }

.server-status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(85, 110, 140, .68);
    border-radius: 999px;
    background: rgba(9, 17, 28, .72);
    color: #aebed2;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    z-index: 2;
}

.server-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8793a3;
    box-shadow: 0 0 0 4px rgba(135, 147, 163, .12);
}

.server-status-value { display: none !important; }

.server-card.is-online {
    border-color: rgba(79, 152, 134, .72);
}

.server-card.is-online .server-status {
    border-color: rgba(79, 152, 134, .75);
    color: #baf0df;
}

.server-card.is-online .server-status::before {
    background: #60c29f;
    box-shadow: 0 0 0 5px rgba(96, 194, 159, .14), 0 0 18px rgba(96, 194, 159, .42);
}

.server-card.is-offline {
    border-color: rgba(147, 86, 86, .7);
}

.server-card.is-offline .server-status {
    border-color: rgba(147, 86, 86, .75);
    color: #ffb8b8;
}

.server-card.is-offline .server-status::before {
    background: #cc6262;
    box-shadow: 0 0 0 5px rgba(204, 98, 98, .14), 0 0 18px rgba(204, 98, 98, .32);
}

.server-body {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding-right: 82px;
}

.server-name,
.server-name a {
    color: #ecf7ff !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 21px;
    line-height: 1.15;
}

.server-desc {
    color: #b3c6dc;
    font-size: 14px;
    line-height: 1.45;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(94, 158, 219, .35);
    border-radius: 999px;
    background: rgba(10, 18, 29, .4);
    color: #9db3ca;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.servers {
    display: grid;
    gap: 12px;
}

.server-about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.server-about-card {
    scroll-margin-top: 18px;
    border: 1px solid rgba(55, 76, 102, .86);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(159, 208, 196, .10) 0%, rgba(159, 208, 196, 0) 42%),
        linear-gradient(180deg, rgba(25, 39, 57, .96) 0%, rgba(14, 25, 39, .98) 100%);
    padding: 18px 18px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.18);
}

.server-about-kicker {
    margin-bottom: 6px;
    color: #9fe2ff;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.server-about-title {
    margin: 0 0 10px;
    color: #ecf7ff;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 24px;
    line-height: 1.2;
}

.server-about-lead {
    margin: 0 0 14px;
    color: #c7d7ee;
    font-size: 15px;
    line-height: 1.5;
}

.server-about-subtitle {
    margin: 14px 0 8px;
    color: #9fe2ff;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.server-about-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-about-list li {
    position: relative;
    padding-left: 16px;
    color: #b3c6dc;
    font-size: 14px;
    line-height: 1.4;
}

.server-about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ee6ff;
    box-shadow: 0 0 8px rgba(46, 230, 255, .45);
}

.server-about-card .server-actions {
    margin-top: 16px;
}

.server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.server-version,
.server-online {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(65, 88, 116, .7);
    border-radius: 999px;
    background: rgba(10, 18, 29, .48);
    color: var(--pvp-text) !important;
    font-size: 13px;
    line-height: 1.15;
}

.server-version {
    color: var(--pvp-accent-soft) !important;
}

#page-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
}

/* cards/content */
#page-content .page,
#page-content .news {
    background: linear-gradient(180deg, rgba(22,34,51,.9) 0%, rgba(17,28,42,.92) 100%) !important;
    border: 1px solid #2c3b50 !important;
    border-left: 4px solid #316f5f !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 14px rgba(0,0,0,.25) !important;
    color: #c7d7ee !important;
}

#page-content .news {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
}

#page-content .news:first-child {
    width: 100% !important;
    float: none !important;
}

#page-content .news .image,
#page-content .news:first-child .image {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    background: none !important;
}

#page-content .news .image img,
#page-content .news:first-child .image img {
    width: 100% !important;
    height: auto !important;
}

#page-content .maintitle,
#page-content .title,
#page-content .ntitle,
#page-content .ctitle,
#page-content h3 {
    color: #9fd0c4 !important;
}

#page-content .news .title,
#page-content .news .title a,
#page-content .news .text,
#page-content .slink,
#page-content .stext {
    color: #d3dceb !important;
}

#page-content .news .title,
#page-content .news .title a,
#page-content .ntitle,
#page-content .ctitle {
    margin: 0 0 8px !important;
    line-height: 1.25 !important;
    font-size: 20px !important;
}

#page-content .news .text,
#page-content .news .stext,
#page-content .text {
    line-height: 1.45 !important;
    font-size: 18px !important;
}

#page-content .news .text p,
#page-content .news .stext p,
#page-content .text p {
    margin: 0 0 0.7em !important;
    line-height: 1.45 !important;
}

#page-content .news .text p:last-child,
#page-content .news .stext p:last-child,
#page-content .text p:last-child {
    margin-bottom: 0 !important;
}

#page-content .news .text br,
#page-content .news .stext br,
#page-content .text br {
    line-height: 1.25 !important;
}

#page-content .news .text > div,
#page-content .news .stext > div,
#page-content .text > div {
    margin-bottom: 0.7em !important;
}

#page-content a { color: #8ccfc0; }
#page-content a:hover { color: #b4e6da; }
#page-content .date, #page-content .date1 { color: #8ccfc0 !important; }

.pvp-imported-summary,
.pvp-imported-news {
    display: grid;
    gap: 10px;
    color: #d3dceb;
    font-size: 16px;
    line-height: 1.55;
}

.pvp-imported-summary p,
.pvp-imported-news p {
    margin: 0 0 .75em;
}

.pvp-imported-summary p:last-child,
.pvp-imported-news p:last-child {
    margin-bottom: 0;
}

.pvp-imported-news img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px auto 12px;
    border: 1px solid rgba(79, 152, 134, .35);
    border-radius: 12px;
}

.pvp-imported-news blockquote {
    margin: 8px 0;
    padding: 10px 12px;
    border-left: 3px solid var(--pvp-accent);
    border-radius: 8px;
    background: rgba(10, 18, 29, .42);
    color: #b9c9dd;
}

.pvp-imported-news ul,
.pvp-imported-news ol {
    display: grid;
    gap: 5px;
    margin: 8px 0 8px 18px;
    padding: 0;
    list-style: disc !important;
}

.pvp-imported-news li {
    list-style: disc !important;
}

.forum-source-link {
    margin: 12px 0 0 !important;
}

.forum-source-link a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(79, 152, 134, .7);
    border-radius: 999px;
    background: rgba(79, 152, 134, .16);
    color: #bfe9de !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 13px;
    text-decoration: none !important;
}

/* flatten legacy framed table blocks */
#page-content table { width: 100% !important; background: transparent !important; }
#page-content td[class^="a_block_"],
#page-content .a_block_12,
#page-content .a_block_22,
#page-content .a_block_32,
#page-content .a_block_42,
#page-content .a_block_52,
#page-content .a_block_61,
#page-content .a_block_63,
#page-content .a_block_72,
#page-content .a_block_82 {
    background: #162233 !important;
    color: #d3dceb !important;
}

#page-content .f_input,
#page-content .f_textarea,
#page-content input[type="text"],
#page-content input[type="password"],
#page-content textarea,
#page-content select {
    background: #101b29;
    border: 1px solid #2c3b50;
    color: #d3dceb;
    border-radius: 6px;
}

#page-content .f_input:focus,
#page-content .f_textarea:focus,
#page-content input[type="text"]:focus,
#page-content input[type="password"]:focus,
#page-content textarea:focus,
#page-content select:focus {
    border-color: #3a8d78;
    box-shadow: 0 0 0 2px rgba(79,152,134,.18);
    outline: none;
}

#page-content .bbcodes_poll,
#page-content .more a,
#page-content .back {
    border: 1px solid #3b7f70;
    border-radius: 8px;
    background: linear-gradient(180deg, #2d7263 0%, #255c50 100%);
    color: #e8f3f0 !important;
    text-decoration: none;
}

#page-content .bbcodes_poll:hover,
#page-content .more a:hover,
#page-content .back:hover {
    border-color: #4f9886;
    background: linear-gradient(180deg, #3a8d78 0%, #2d7263 100%);
}

/* sidebar cards */
.side-content {
    width: auto !important;
    margin: 0 0 12px !important;
    border: 1px solid var(--pvp-border);
    border-left: 4px solid #316f5f;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(24,37,54,.92) 0%, rgba(17,29,44,.94) 100%) !important;
    padding: 12px 12px 10px;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
}

.side-title {
    font-family: "PT Sans Bold", sans-serif !important;
    font-size: 19px !important;
    color: var(--pvp-accent-soft) !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}

.side-title span { color: #e8f3ff !important; }

.war-top { width: 100% !important; margin: 0 auto 8px !important; }
.war-top li {
    width: auto !important;
    height: auto !important;
    margin: 2px 0 !important;
    background: rgba(14,23,36,.82) !important;
    border: 1px solid rgba(55,76,102,.8);
    border-radius: 8px;
    line-height: 1.25 !important;
    padding: 7px 9px !important;
    color: #d5e0f1 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
}
.war-top li .col {
    float: none !important;
    display: block !important;
    margin-right: 0;
    width: auto !important;
    padding-left: 0 !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-top li .col:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-top li .col:not(:first-child) {
    justify-self: end;
    text-align: right;
}

.war-top li .patrguild {
    grid-column: 1 / -1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.war-top li .patrguild { color: #9bb2cc; }

.war-top.war-top-patriarchs li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.war-top.war-top-patriarchs li .patrguild {
    grid-column: auto;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.war-top.war-top-rating li {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

/* footer cards */
.footer .forum,
.footer .row {
    border: 1px solid var(--pvp-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22,34,51,.88) 0%, rgba(15,24,37,.9) 100%);
    padding: 10px 14px;
    margin-bottom: 10px;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
}

.forum-feed {
    display: grid;
    gap: 12px;
}

.forum-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(55, 76, 102, .75);
}

.forum-feed-title {
    color: #e8f3ff;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 20px;
    line-height: 1.15;
}

.forum-feed-subtitle {
    margin-top: 3px;
    color: var(--pvp-muted);
    font-size: 13px;
    line-height: 1.25;
}

.forum-feed-link {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(79, 152, 134, .7);
    border-radius: 999px;
    background: rgba(79, 152, 134, .16);
    color: #bfe9de !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 13px;
    text-decoration: none !important;
}

.forum-feed-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.forum-feed-list:empty::before {
    content: "Forum feed is empty";
    grid-column: 1 / -1;
    color: var(--pvp-muted);
}

.forum-feed-list > .item,
.forum-feed-list > li,
.forum-post-card {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 82px;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(55, 76, 102, .82);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 152, 134, .13) 0%, rgba(79, 152, 134, 0) 45%),
        rgba(10, 18, 29, .42);
    color: var(--pvp-text);
}

.forum-feed-list > li {
    grid-template-columns: minmax(0, 1fr);
}

.forum-feed-list .image {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.forum-feed-list .image img {
    display: block;
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
    border: 1px solid rgba(159, 208, 196, .45);
    border-radius: 10px;
}

.forum-feed-list .title,
.forum-feed-list .info {
    min-width: 0;
}

.forum-feed-list .title a,
.forum-feed-list > li a {
    display: block;
    overflow: hidden;
    color: #e6f1ff !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}

.forum-feed-list .info {
    margin-top: 5px;
    overflow: hidden;
    color: var(--pvp-muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-feed-list .info a {
    color: var(--pvp-accent-soft) !important;
    text-decoration: none !important;
}

.forum-feed-list .title a:hover,
.forum-feed-list > li a:hover,
.forum-feed-list .info a:hover {
    color: #ffffff !important;
}

.footer .forum > *,
.footer .forum > div,
.footer .forum ul,
.footer .forum li {
    max-width: 100% !important;
}

.footer .row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.footer .row .lcol {
    flex: 1 1 auto;
    min-width: 0;
}

.footer .row .rcol {
    flex: 0 0 auto;
}

.footer .forum img {
    max-width: 40px;
    height: auto;
    border-radius: 6px;
}

.copyright, .copyright span { color: var(--pvp-muted) !important; }

/* responsiveness */
@media (max-width: 1270px) {
    .content > .container {
        grid-template-areas:
            "main"
            "side";
        grid-template-columns: 1fr;
    }

    .maincontent,
    .sideblock {
        width: 100% !important;
        float: none !important;
        grid-column: auto;
    }
    .btns ul { grid-template-columns: 1fr !important; }
    .nav-servers ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .servers .servers-mheight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .forum-feed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .container { width: calc(100% - 12px) !important; }
    .top-bar { flex-direction: column; align-items: flex-start; }
    .top-bar .languages { margin-left: 0; justify-content: flex-start; }
    .header-art {
        min-height: 176px;
        margin: 0 0 -6px;
    }
    .header-hero-bellato {
        left: -32px;
        bottom: -34px;
        width: 230px;
        height: 160px;
    }
    .header-hero-acretia {
        bottom: -90px;
        width: 210px;
        height: 280px;
    }
    .header-hero-cora {
        right: -74px;
        bottom: -70px;
        width: 260px;
        height: 230px;
    }
    .nav ul { flex-direction: column; }
    .nav ul li,
    .nav ul li:first-child { min-width: 0; flex: 1 1 auto; }
    .nav-primary ul,
    .nav-servers ul,
    .nav-site ul {
        grid-template-columns: 1fr;
    }
    .servers .servers-mheight { grid-template-columns: 1fr; }
    .server-about { grid-template-columns: 1fr; }
    .forum-feed-header { align-items: flex-start; flex-direction: column; }
    .forum-feed-list { grid-template-columns: 1fr; }
    .brand-links { justify-content: flex-start; }
    .footer .row { flex-direction: column; }
}

/* --- Design pass: header/nav/server cards polish --- */
.header .container {
    position: relative;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 12px;
    border: 1px solid rgba(76, 108, 140, 0.42);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(21, 33, 48, 0.88) 0%, rgba(13, 22, 34, 0.88) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.top-bar .languages {
    gap: 10px;
}

.top-bar .languages .item a {
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.top-bar .languages .item a:hover,
.top-bar .languages .item a:focus {
    transform: translateY(-1px);
}

.theme-toggle-btn {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--pvp-border);
    border-radius: 8px;
    background: rgba(17, 27, 40, 0.82);
    color: var(--pvp-muted);
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
    color: #e8f3f0;
    border-color: var(--pvp-accent);
    background-color: rgba(53, 123, 105, 0.24);
    transform: translateY(-1px);
}

.nav ul li a {
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav ul li a:hover,
.nav ul li a:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.server-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.server-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 154, 208, 0.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px rgba(0, 0, 0, 0.30);
}

.server-card.is-online:hover {
    border-color: rgba(102, 187, 162, 0.82);
}

.server-name a,
.server-action-btn {
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.server-name a:hover,
.server-name a:focus {
    color: #f4fbff !important;
}

.server-action-btn:hover,
.server-action-btn:focus {
    transform: translateY(-1px);
}

.forum-feed {
    border-radius: 14px;
}

/* --- Design pass: sidebar statistics polish --- */
.sideblock {
    display: grid;
    gap: 12px;
}

.sideblock .side-content {
    margin: 0 !important;
    padding: 14px 14px 12px !important;
    border: 1px solid rgba(61, 86, 115, 0.78);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(89, 168, 147, 0.12) 0%, rgba(89, 168, 147, 0) 46%),
        linear-gradient(180deg, rgba(23, 36, 54, 0.95) 0%, rgba(15, 26, 40, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.18);
}

.sideblock .side-content > .side-title:first-child {
    margin: 0 0 10px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(86, 119, 152, 0.36);
    color: #f2fbff !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 19px !important;
    letter-spacing: .01em;
}

.sideblock .side-content > .side-title:not(:first-child) {
    margin: 10px 0 8px !important;
    color: #a5d7ca !important;
    font-size: 13px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sideblock .war-top {
    width: 100% !important;
    margin: 0 !important;
    display: grid;
    gap: 6px;
}

.sideblock .war-top li {
    position: relative;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(64, 91, 121, 0.62);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(24, 38, 56, 0.88) 0%, rgba(18, 30, 45, 0.9) 100%);
    color: #d9e7fa !important;
}

.sideblock .war-top li:hover {
    border-color: rgba(106, 169, 151, 0.62);
    background: linear-gradient(180deg, rgba(32, 53, 76, 0.9) 0%, rgba(22, 38, 58, 0.92) 100%);
}

.sideblock .war-top.war-top-patriarchs li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.sideblock .war-top.war-top-patriarchs li .col {
    min-width: 0;
    font-size: 14px;
    font-family: "PT Sans Bold", sans-serif;
    color: #f0f8ff !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sideblock .war-top.war-top-patriarchs li .patrguild {
    min-width: 0;
    justify-self: end;
    font-size: 12px;
    color: #9fb8d3 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sideblock .war-top.war-top-rating {
    counter-reset: pvp-rank;
}

.sideblock .war-top.war-top-rating li {
    counter-increment: pvp-rank;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding-left: 40px !important;
}

.sideblock .war-top.war-top-rating li::before {
    content: counter(pvp-rank) !important;
    display: inline-flex !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(88, 149, 198, 0.2);
    color: #b8defb;
    font-size: 11px;
    font-family: "PT Sans Bold", sans-serif;
    line-height: 1;
}

.sideblock .war-top.war-top-rating li .col:first-child {
    min-width: 0;
    font-size: 13px;
    color: #e6f2ff !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sideblock .war-top.war-top-rating li .col:last-child {
    text-align: right;
}

.sideblock .war-top.war-top-rating li .col:last-child span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(93, 135, 171, 0.58);
    border-radius: 999px;
    background: rgba(14, 24, 38, 0.65);
    color: #aee6dc;
    font-size: 12px;
    font-family: "PT Sans Bold", sans-serif;
}

.sideblock .war-top.war-top-rating li .col:last-child small {
    font-size: 10px;
    color: #84b8ab !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --- Design pass: news cards and content typography --- */
#page-content .news.news-card,
#page-content .news.news-full {
    padding: 16px 18px !important;
    border-left-width: 3px !important;
    border-left-color: rgba(98, 171, 151, 0.82) !important;
}

.news-card__head,
.news-full__head {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(93, 127, 161, 0.34);
}

.news-card__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.news-card__title,
.news-card__title a,
.news-full__title {
    margin: 0 !important;
    line-height: 1.25 !important;
    color: #eff8ff !important;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 26px !important;
    letter-spacing: .01em;
}

.news-full__title {
    font-size: 30px !important;
}

.news-card__date,
.news-full__date {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(89, 128, 167, 0.58);
    border-radius: 999px;
    background: rgba(15, 26, 40, 0.66);
    color: #9fc9be !important;
    font-size: 12px !important;
    font-family: "PT Sans Bold", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.news-card__text,
.news-full__text,
#page-content .news .text,
#page-content .news .stext,
#page-content .text {
    font-size: 17px !important;
    line-height: 1.62 !important;
    color: #d7e5f8 !important;
}

#page-content .news .text p,
#page-content .news .stext p,
#page-content .text p {
    margin: 0 0 .92em !important;
    line-height: 1.62 !important;
}

#page-content .news .text h1,
#page-content .news .text h2,
#page-content .news .text h3,
#page-content .news .text h4,
#page-content .news .stext h1,
#page-content .news .stext h2,
#page-content .news .stext h3,
#page-content .news .stext h4,
#page-content .text h1,
#page-content .text h2,
#page-content .text h3,
#page-content .text h4 {
    margin: 1.1em 0 .42em !important;
    line-height: 1.3 !important;
    color: #f2fbff !important;
    font-family: "PT Sans Bold", sans-serif;
}

#page-content .news .text ul,
#page-content .news .text ol,
#page-content .news .stext ul,
#page-content .news .stext ol,
#page-content .text ul,
#page-content .text ol {
    margin: 0.62em 0 0.92em 1.15em !important;
    padding: 0 !important;
}

#page-content .news .text li,
#page-content .news .stext li,
#page-content .text li {
    margin: 0 0 .4em !important;
}

#page-content .news .text blockquote,
#page-content .news .stext blockquote,
#page-content .text blockquote {
    margin: .92em 0 !important;
    padding: 12px 14px !important;
    border-left: 3px solid rgba(104, 177, 157, 0.86) !important;
    border-radius: 10px;
    background: rgba(13, 23, 36, 0.5);
    color: #b9cde5 !important;
}

#page-content .news .text img,
#page-content .news .stext img,
#page-content .text img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px auto 14px !important;
    border: 1px solid rgba(85, 130, 167, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.news-card__footer,
.news-full__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(93, 127, 161, 0.32);
}

.news-full__edit {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    font-size: 13px;
}

.news-full__edit a,
.news-full__pages a {
    color: #9fd9cd !important;
}

.news-full__pages {
    font-size: 14px;
    color: #a7bfdc;
}

#page-content .more a,
#page-content .back,
.news-full__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(70, 146, 126, 0.92);
    background: linear-gradient(180deg, #34806e 0%, #296656 100%) !important;
    color: #eefcf6 !important;
    font-size: 13px;
    font-family: "PT Sans Bold", sans-serif;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

#page-content .more a:hover,
#page-content .back:hover,
.news-full__back:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 191, 168, 0.98);
    background: linear-gradient(180deg, #40a58d 0%, #327d69 100%) !important;
}

@media (max-width: 860px) {
    .news-card__head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .news-card__date,
    .news-full__date {
        justify-self: start;
    }

    .news-full__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Design pass: statistics pages (top30/vote/guild) --- */
.page-stat,
.page {
    display: grid;
    gap: 12px;
}

.page-stat .maintitle,
.page .maintitle {
    margin: 0 !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(96, 131, 165, 0.34);
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.flex > li {
    margin: 0 !important;
}

.flex > li:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(93, 130, 168, 0.55);
    border-radius: 999px;
    background: rgba(16, 29, 43, 0.72);
    color: #b6d3ef;
    font-family: "PT Sans Bold", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.flex > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(71, 145, 126, 0.62);
    border-radius: 999px;
    background: rgba(35, 68, 72, 0.22);
    color: #c9efe6 !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.flex > li > a:hover,
.flex > li > a:focus {
    transform: translateY(-1px);
    border-color: rgba(109, 191, 168, 0.9);
    background: rgba(58, 121, 112, 0.28);
    color: #ecfffa !important;
}

.side-title.show,
.page-stat__section-title {
    margin: 0 0 8px !important;
    color: #eef9ff !important;
    font-size: 24px !important;
    line-height: 1.25;
}

.colum_name_top30,
.colum_name_top30_refresh,
.colum_name,
.war_top30,
.war_top30_refresh,
.war-guildraiting,
.war-voteresult {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: grid;
    gap: 6px;
}

.colum_name_top30 li,
.colum_name_top30_refresh li,
.colum_name li {
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(86, 116, 148, 0.46);
    border-radius: 10px;
    background: rgba(15, 27, 41, 0.7) !important;
    color: #a9c6e3 !important;
    font-size: 12px !important;
    font-family: "PT Sans Bold", sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.colum_name_top30 li,
.colum_name_top30_refresh li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr);
    gap: 8px;
}

.colum_name li {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.war_top30 li,
.war_top30_refresh li,
.war-guildraiting li,
.war-voteresult li {
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(69, 95, 124, 0.56);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 36, 54, 0.9) 0%, rgba(16, 28, 43, 0.92) 100%) !important;
    color: #dae8fb !important;
    font-size: 13px;
    font-family: "PT Sans", Arial, sans-serif;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.war_top30 li:hover,
.war_top30_refresh li:hover,
.war-guildraiting li:hover,
.war-voteresult li:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 169, 150, 0.7);
    background: linear-gradient(180deg, rgba(30, 52, 75, 0.92) 0%, rgba(20, 37, 57, 0.94) 100%) !important;
}

.war_top30 li,
.war_top30_refresh li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr);
    gap: 8px;
}

.war-guildraiting li,
.war-voteresult li {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.war_top30 li .col,
.war_top30_refresh li .col,
.war-guildraiting li .col,
.war-voteresult li .col,
.colum_name_top30 li .col,
.colum_name_top30_refresh li .col,
.colum_name li .col {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war_top30 li .col:first-child,
.war_top30_refresh li .col:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(89, 147, 193, 0.2);
    color: #bde1ff !important;
    font-size: 11px;
    font-family: "PT Sans Bold", sans-serif;
}

.war-voteresult li .col:last-child,
.war-guildraiting li .col:last-child,
.war_top30 li .col:last-child,
.war_top30_refresh li .col:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid rgba(90, 130, 167, 0.5);
    border-radius: 999px;
    background: rgba(15, 26, 40, 0.62);
    color: #c9e3ff !important;
    font-size: 12px;
}

.main_statistic_page {
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(80, 114, 145, 0.52);
    border-radius: 12px;
    background: rgba(13, 24, 38, 0.62);
    list-style: none;
    text-align: left !important;
}

.main_statistic_page li {
    list-style: none;
    margin: 0 0 8px;
    line-height: 1.45 !important;
    color: #d7e7fb;
    font-size: 16px !important;
    font-family: "PT Sans", Arial, sans-serif !important;
}

.main_statistic_page li:last-child {
    margin-bottom: 0;
}

.main_statistic_page li b {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 22px !important;
    font-family: "PT Sans Bold", sans-serif !important;
    color: #f0fbff !important;
}

.main_statistic_page span {
    color: #abddcf !important;
    font-size: 17px !important;
    font-family: "PT Sans Bold", sans-serif !important;
}

@media (max-width: 1080px) {
    .colum_name_top30 li,
    .colum_name_top30_refresh li,
    .war_top30 li,
    .war_top30_refresh li {
        grid-template-columns: 32px repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .colum_name_top30,
    .colum_name_top30_refresh,
    .colum_name {
        display: none;
    }

    .war_top30 li,
    .war_top30_refresh li,
    .war-guildraiting li,
    .war-voteresult li {
        grid-template-columns: 1fr !important;
        gap: 4px;
        padding: 10px 11px !important;
    }

    .war_top30 li .col,
    .war_top30_refresh li .col,
    .war-guildraiting li .col,
    .war-voteresult li .col {
        white-space: normal;
        line-height: 1.35;
    }

    .war_top30 li .col:first-child,
    .war_top30_refresh li .col:first-child {
        margin-bottom: 2px !important;
    }

    .war-voteresult li .col:last-child,
    .war-guildraiting li .col:last-child,
    .war_top30 li .col:last-child,
    .war_top30_refresh li .col:last-child {
        justify-content: flex-start;
        width: fit-content;
    }
}

/* --- Final pass: accessibility and interaction consistency --- */
html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #8ee8d1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(64, 165, 139, 0.25);
}

.nav ul li a:focus-visible,
.server-action-btn:focus-visible,
.theme-toggle-btn:focus-visible,
.forum-feed-link:focus-visible,
#page-content .more a:focus-visible,
#page-content .back:focus-visible,
.news-full__back:focus-visible,
.flex > li > a:focus-visible {
    border-color: rgba(140, 232, 209, 0.95) !important;
    color: #f2fffb !important;
}

#page-content a {
    text-underline-offset: 3px;
}

#page-content a:hover,
#page-content a:focus-visible {
    text-decoration-thickness: 2px;
}

#page-content .news .text,
#page-content .news .stext,
#page-content .text {
    color: #dbe9fb !important;
}

#page-content .news .text strong,
#page-content .news .stext strong,
#page-content .text strong {
    color: #f1fbff !important;
    font-weight: 700;
}

#page-content .news .text code,
#page-content .news .stext code,
#page-content .text code {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid rgba(103, 141, 177, 0.46);
    border-radius: 6px;
    background: rgba(12, 22, 35, 0.64);
    color: #c3e7dd;
    font-size: .95em;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .server-card:hover,
    .nav ul li a:hover,
    .server-action-btn:hover,
    .theme-toggle-btn:hover,
    .flex > li > a:hover {
        transform: none !important;
    }
}
