body {
    --green-emerald: #c1216b;
    --green-teal: #703994;
    --green-glow: rgba(193, 33, 107, 0.28);
    --accent-2: #c1216b;
    --war-display-font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Open Sans", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(244, 242, 249, 0.88), rgba(32, 27, 42, 0.42) 74%),
        url("../template/images/bg_2.jpg") top center / cover no-repeat fixed !important;
}

.template-page {
    color: #2a2330 !important;
    padding: 138px 0 72px !important;
    position: relative;
    z-index: 1;
}

.template-page > .container {
    background: rgba(246, 244, 251, 0.94) !important;
    border: 1px solid rgba(101, 83, 122, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: 0 26px 80px rgba(18, 13, 27, 0.28) !important;
    max-width: 1250px !important;
    padding: 54px 58px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.template-page .section-header,
.template-page .player-ranking-header {
    margin-bottom: 34px !important;
    text-align: left !important;
}

.template-page h1,
.template-page h2,
.template-page h3,
.war-section-title h2,
.legacy-info-content h1,
.legacy-info-content h2,
.legacy-info-content h3 {
    font-feature-settings: "lnum" 1;
    font-variant-numeric: lining-nums;
}

.template-page .section-header h2,
.template-page .player-ranking-header h2,
.template-page .class-detail-title {
    color: #201424 !important;
    font-family: var(--war-display-font) !important;
    font-size: 44px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.16 !important;
    margin: 0 0 12px !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
}

.template-page .section-header p,
.template-page p,
.template-page .download-header p,
.template-page .download-meta,
.template-page .download-meta span,
.template-page .req-label {
    color: #5d5666 !important;
}

.template-page .section-header::after,
.template-page .player-ranking-header::after {
    background: #c1216b;
    content: "";
    display: block;
    height: 2px;
    margin-top: 18px;
    width: 84px;
}

.template-page .card,
.template-page .download-card,
.template-page .download-hero,
.template-page .system-requirements,
.template-page .req-column,
.template-page .player-ranking-card,
.template-page .class-ranking-card,
.template-page .nation-balance-card,
.template-page .class-detail-container,
.template-page .class-carousel {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(114, 91, 132, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: 0 18px 46px rgba(51, 36, 63, 0.16) !important;
    color: #2a2330 !important;
}

.template-page .download-hero {
    background:
        linear-gradient(90deg, rgba(40, 30, 52, 0.92), rgba(89, 60, 105, 0.82)),
        url("../template/images/news-bg.jpg") center / cover no-repeat !important;
    color: #ffffff !important;
}

.template-page .download-stat,
.template-page .download-stat span {
    color: #ffffff !important;
}

.template-page .download-stat i,
.template-page .download-meta i,
.template-page .req-header i,
.template-page .class-detail-icon i {
    color: #c1216b !important;
}

.template-page .download-header h3,
.template-page .system-requirements h3,
.template-page .req-header h4,
.template-page .player-ranking-title,
.template-page .class-ranking-title,
.template-page .nation-title {
    color: #201424 !important;
    font-family: var(--war-display-font) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

.template-page .download-tip {
    color: #8b2b63 !important;
}

.template-page .btn,
.template-page .btn--primary,
.template-page .download-action .btn,
.template-page .ranking-more-btn {
    background: #c1216b !important;
    border: 1px solid rgba(193, 33, 107, 0.35) !important;
    border-radius: 2px !important;
    box-shadow: 0 10px 24px rgba(193, 33, 107, 0.24) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    gap: 8px !important;
    letter-spacing: 0.04em !important;
    min-height: 44px !important;
    position: static !important;
    text-transform: uppercase !important;
}

.template-page .btn:hover,
.template-page .ranking-more-btn:hover {
    background: #8b174e !important;
    transform: translateY(-1px);
}

.template-page .requirements-grid,
.template-page .class-rankings-grid {
    gap: 22px !important;
}

.template-page .req-item {
    border-bottom: 1px solid rgba(80, 65, 92, 0.14) !important;
}

.template-page .req-value {
    color: #272032 !important;
}

.template-page .player-ranking-page {
    color: #2a2330 !important;
}

.template-page .player-ranking-card {
    padding: 30px !important;
}

.template-page .player-ranking-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.template-page .player-ranking-table thead th,
.template-page table thead th {
    background: #24192f !important;
    border-bottom: 1px solid rgba(193, 33, 107, 0.6) !important;
    color: #f8f2ff !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    text-shadow: none !important;
}

.template-page .player-ranking-table tbody td,
.template-page table tbody td,
.template-page .class-ranking-table td {
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(77, 61, 92, 0.14) !important;
    color: #30283a !important;
}

.template-page .player-ranking-table tbody tr:nth-child(even) td,
.template-page table tbody tr:nth-child(even) td {
    background: rgba(236, 231, 244, 0.84) !important;
}

.template-page .player-ranking-table tbody tr:hover td,
.template-page table tbody tr:hover td {
    background: rgba(250, 232, 242, 0.95) !important;
}

.template-page .player-ranking-table td:nth-child(7),
.template-page .power-value,
.template-page .class-detail-stat-value {
    color: #8b174e !important;
    font-weight: 800 !important;
}

.template-page .badge,
.template-page .class-badge {
    background: rgba(75, 49, 92, 0.11) !important;
    border: 1px solid rgba(75, 49, 92, 0.16) !important;
    color: #4b315c !important;
}

.template-page .badge-capella {
    background: rgba(193, 33, 107, 0.12) !important;
    color: #9d1b59 !important;
}

.template-page .badge-procyon {
    background: rgba(69, 92, 156, 0.13) !important;
    color: #324d91 !important;
}

.template-page .class-detail-description {
    color: #51495c !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

.template-page .class-detail-stat-bar-container {
    background: rgba(52, 37, 65, 0.12) !important;
}

.template-page .class-detail-stat-bar {
    background: linear-gradient(90deg, #c1216b, #6d3b89) !important;
}

.template-page .class-character-image {
    filter: drop-shadow(0 26px 34px rgba(44, 31, 54, 0.28)) !important;
}

.template-page .class-carousel-item {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(76, 59, 91, 0.14) !important;
    color: #3b3046 !important;
}

.template-page .class-carousel-item.active,
.template-page .class-carousel-item:hover {
    background: rgba(193, 33, 107, 0.1) !important;
    border-color: rgba(193, 33, 107, 0.38) !important;
    color: #8b174e !important;
}

@media (max-width: 900px) {
    .template-page > .container {
        padding: 34px 20px !important;
    }

    .template-page .section-header h2,
    .template-page .player-ranking-header h2,
    .template-page .class-detail-title {
        font-size: 34px !important;
    }
}

/* Rebuilt Warland-style content pages */
.war-page {
    color: #2b2333;
    font-family: "Open Sans", Arial, sans-serif;
}

.war-page__heading {
    margin: 0 0 38px;
    max-width: 760px;
}

.war-page__eyebrow,
.war-label {
    color: #9f1b59;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.war-page__heading h1 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 54px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.war-page__heading p {
    color: #5c5364 !important;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.war-page__heading::after {
    background: #c1216b;
    content: "";
    display: block;
    height: 2px;
    margin-top: 22px;
    width: 92px;
}

.war-stat-strip,
.war-ranking-hero {
    background:
        linear-gradient(120deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9)),
        url("../template/images/news-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(42, 28, 54, 0.28);
    color: #fff;
}

.war-stat-strip {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 34px;
}

.war-stat-strip div {
    min-height: 104px;
    padding: 28px 22px;
    text-align: center;
}

.war-stat-strip span {
    color: #ffffff;
    display: block;
    font-family: var(--war-display-font);
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
}

.war-stat-strip strong {
    color: #e7ddec;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.war-download-card,
.war-req-card,
.war-table-card,
.war-class-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(86, 70, 102, 0.18);
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.16);
}

.war-download-card {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 253, 0.92)) !important;
    border-left: 4px solid #c1216b;
    display: grid;
    gap: 0;
    grid-template-columns: 136px minmax(0, 1fr) 230px;
    margin-bottom: 44px;
    overflow: hidden;
    padding: 0;
}

.war-download-card__icon {
    align-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(180deg, #c1216b, #7d285f);
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    display: flex;
    font-size: 30px;
    height: 100%;
    justify-content: center;
    min-height: 230px;
    position: relative;
    width: 100%;
}

.war-download-card__icon::after {
    background: rgba(255, 255, 255, 0.18);
    bottom: 34px;
    content: "";
    position: absolute;
    right: 0;
    top: 34px;
    width: 1px;
}

.war-download-card__body {
    padding: 36px 42px;
}

.war-download-card h2 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 29px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 10px;
}

.war-download-card p {
    color: #5b5162 !important;
    font-size: 15px;
    margin: 0 0 22px;
}

.war-meta {
    border: 1px solid rgba(114, 91, 132, 0.18);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
}

.war-meta div {
    background: rgba(255, 255, 255, 0.52);
    border-right: 1px solid rgba(114, 91, 132, 0.14);
    min-width: 0;
    padding: 14px 16px;
}

.war-meta div:last-child {
    border-right: 0;
}

.war-meta dt {
    color: #8c8292;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.war-meta dd {
    color: #302737;
    font-size: 15px;
    font-weight: 800;
    margin: 3px 0 0;
}

.war-download-card > .war-button {
    align-self: stretch;
    background: #2a0b1a;
    border: 0;
    box-shadow: none;
    flex-direction: column;
    font-size: 15px;
    gap: 10px;
    min-height: 100%;
    padding: 0 28px;
}

.war-download-card > .war-button i {
    font-size: 22px;
}

.war-download-card > .war-button:hover {
    background: #c1216b;
}

.war-button {
    align-items: center;
    background: #c1216b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(193, 33, 107, 0.32);
    color: #fff !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0.05em;
    min-height: 52px;
    padding: 0 26px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.war-button:hover {
    background: #8f174e;
}

.war-button--dark {
    background: #24182d;
    box-shadow: 0 12px 30px rgba(20, 13, 26, 0.24);
}

.war-section-title {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 0 0 28px;
}

.war-section-title span {
    background: linear-gradient(90deg, transparent, rgba(193, 33, 107, 0.62), transparent);
    height: 1px;
    width: 92px;
}

.war-section-title h2 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.22;
    margin: 0;
    text-transform: uppercase;
}

.war-requirements {
    margin-top: 20px;
}

.war-requirements__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.war-req-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 253, 0.9)) !important;
    padding: 28px;
}

.war-req-card--featured {
    border-color: rgba(193, 33, 107, 0.32);
}

.war-req-card h3 {
    align-items: center;
    border-bottom: 1px solid rgba(114, 91, 132, 0.18);
    color: #2a2131;
    display: flex;
    font-family: var(--war-display-font);
    font-size: 23px;
    font-weight: 500;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 18px;
}

.war-req-card h3 i {
    color: #c1216b;
}

.war-req-row {
    align-items: center;
    border-top: 1px solid rgba(82, 68, 96, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 13px 0;
}

.war-req-row span {
    color: #6b6170;
    font-weight: 700;
}

.war-req-row strong {
    color: #261d2d;
    font-weight: 800;
}

.war-ranking-hero {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: 320px minmax(0, 1fr);
    margin-bottom: 42px;
    padding: 34px;
}

.war-ranking-hero h2 {
    color: #ffffff;
    font-family: var(--war-display-font);
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 8px;
}

.war-ranking-hero p {
    color: #e3d7e9 !important;
    margin: 0;
}

.war-balance__bar {
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    height: 32px;
    overflow: hidden;
}

.war-balance__bar div {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-width: 48px;
}

.war-balance__capella {
    background: linear-gradient(90deg, #cf476b, #ef7a86);
}

.war-balance__procyon {
    background: linear-gradient(90deg, #3f6ea8, #65a7da);
}

.war-balance__legend {
    color: #f1e8f5;
    display: flex;
    gap: 22px;
    margin-top: 14px;
}

.war-dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

.war-dot--capella {
    background: #ef7a86;
}

.war-dot--procyon {
    background: #65a7da;
}

.war-class-board {
    margin-bottom: 42px;
}

.war-class-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.war-class-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 250, 0.9)) !important;
    border: 1px solid rgba(98, 79, 118, 0.2) !important;
    box-shadow: 0 20px 46px rgba(53, 37, 66, 0.14);
    overflow: hidden;
    padding: 0;
    position: relative;
}

.war-class-card::before {
    background: linear-gradient(180deg, #c1216b, rgba(193, 33, 107, 0));
    content: "";
    height: calc(100% - 28px);
    left: 0;
    position: absolute;
    top: 14px;
    width: 4px;
}

.war-class-card::after {
    background:
        radial-gradient(circle at center, rgba(193, 33, 107, 0.16), transparent 62%);
    content: "";
    height: 140px;
    position: absolute;
    right: -48px;
    top: -54px;
    width: 140px;
}

.war-class-card header {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(37, 23, 46, 0.98), rgba(78, 51, 91, 0.92)),
        radial-gradient(circle at 100% 0%, rgba(193, 33, 107, 0.22), transparent 42%);
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    min-height: 78px;
    padding: 20px 24px 18px;
    position: relative;
    z-index: 1;
}

.war-class-card h3 {
    color: #ffffff;
    font-family: "Open Sans", Arial, "Noto Sans KR", sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.war-class-card h3::after {
    background: #c1216b;
    content: "";
    display: block;
    height: 2px;
    margin-top: 9px;
    width: 42px;
}

.war-class-card header span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    font-weight: 800;
    padding: 6px 12px;
}

.war-class-badge {
    background: rgba(33, 22, 41, 0.12);
    border: 1px solid rgba(33, 22, 41, 0.18);
    color: #211629;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-width: 46px;
    padding: 6px 10px;
}

.war-class-card ol {
    list-style: none;
    margin: 0;
    padding: 18px 22px 20px;
    position: relative;
    z-index: 1;
}

.war-class-card li {
    align-items: center;
    color: #352b3d;
    display: grid;
    gap: 12px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    max-height: 58px;
    min-height: 46px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition:
        max-height 0.34s ease,
        min-height 0.34s ease,
        opacity 0.24s ease,
        padding 0.34s ease,
        transform 0.34s ease,
        border-color 0.34s ease,
        border-width 0.34s ease;
}

.war-class-card li + li {
    border-top: 1px solid rgba(86, 70, 102, 0.12);
}

.war-class-board:not(.is-expanded) .war-class-card li[data-class-rank="2"],
.war-class-board:not(.is-expanded) .war-class-card li[data-class-rank="3"] {
    border-top-color: transparent;
    border-top-width: 0;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.war-class-card li strong {
    align-items: center;
    background: rgba(33, 22, 41, 0.08);
    border: 1px solid rgba(86, 70, 102, 0.14);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    min-width: 28px;
}

.war-class-card li span {
    color: #211629;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-class-card li em {
    color: #8f174e;
    font-style: normal;
    font-weight: 900;
}

.war-class-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.war-class-more .war-button {
    min-width: 118px;
}

.war-rank--gold {
    color: #d4a32f !important;
}

.war-rank--silver {
    color: #aeb3bd !important;
}

.war-rank--bronze {
    color: #b97743 !important;
}

.war-table-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 252, 0.94)),
        radial-gradient(circle at 18% 0, rgba(193, 33, 107, 0.13), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(22, 128, 168, 0.14), transparent 30%) !important;
    border: 1px solid rgba(193, 33, 107, 0.16) !important;
    box-shadow: 0 36px 90px rgba(45, 31, 55, 0.2);
    overflow: hidden;
    padding: 42px;
    position: relative;
}

.war-table-card::before {
    background: linear-gradient(90deg, #c1216b, rgba(22, 128, 168, 0.9), transparent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 28%;
    top: 0;
}

.war-top-podium {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.18fr 1fr 1fr;
    margin: 0 0 26px;
}

.war-podium-card {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(33, 22, 41, 0.98), rgba(74, 46, 87, 0.94)),
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.18), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 54px rgba(45, 31, 55, 0.24);
    color: #fff;
    display: grid;
    gap: 16px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 20px;
    position: relative;
}

.war-podium-card::after {
    background: linear-gradient(90deg, rgba(193, 33, 107, 0.95), rgba(22, 128, 168, 0.75));
    bottom: 0;
    content: "";
    height: 3px;
    left: 18px;
    position: absolute;
    right: 18px;
}

.war-podium-card--1 {
    background:
        linear-gradient(135deg, rgba(33, 22, 41, 0.98), rgba(102, 49, 82, 0.95)),
        radial-gradient(circle at 86% 14%, rgba(247, 210, 104, 0.28), transparent 34%);
}

.war-podium-card__rank {
    align-items: center;
    background: linear-gradient(135deg, #f2c75c, #c1216b);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 26px rgba(193, 33, 107, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 26px;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.war-podium-card div {
    min-width: 0;
}

.war-podium-card strong {
    display: block;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-podium-card div span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 6px;
}

.war-podium-card em {
    color: #54e2d5;
    font-style: normal;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 0 18px rgba(84, 226, 213, 0.22);
}

.war-table-wrap {
    background: rgba(33, 22, 41, 0.08);
    border: 1px solid rgba(33, 22, 41, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 18px 46px rgba(45, 31, 55, 0.12);
    overflow-x: auto;
    padding: 10px;
}

.war-ranking-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    table-layout: fixed;
    width: 100%;
}

.war-ranking-table th:nth-child(1),
.war-ranking-table td:nth-child(1) {
    width: 7%;
}

.war-ranking-table th:nth-child(2),
.war-ranking-table td:nth-child(2) {
    width: 15%;
}

.war-ranking-table th:nth-child(3),
.war-ranking-table td:nth-child(3) {
    width: 7%;
}

.war-ranking-table th:nth-child(4),
.war-ranking-table td:nth-child(4) {
    width: 10%;
}

.war-ranking-table th:nth-child(5),
.war-ranking-table td:nth-child(5) {
    width: 10%;
}

.war-ranking-table th:nth-child(6),
.war-ranking-table td:nth-child(6) {
    width: 12%;
}

.war-ranking-table th:nth-child(7),
.war-ranking-table td:nth-child(7),
.war-ranking-table th:nth-child(8),
.war-ranking-table td:nth-child(8),
.war-ranking-table th:nth-child(9),
.war-ranking-table td:nth-child(9) {
    width: 13%;
}

.war-ranking-table th {
    background:
        linear-gradient(135deg, #211629, #3a2448),
        radial-gradient(circle at 100% 0, rgba(193, 33, 107, 0.28), transparent 36%);
    border-bottom: 2px solid #c1216b;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 16px 12px;
    text-align: center;
    text-transform: uppercase;
}

.war-ranking-table td {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(81, 65, 96, 0.13);
    color: #2c2334;
    font-size: 14px;
    overflow: hidden;
    padding: 15px 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-ranking-table tr:nth-child(even) td {
    background: rgba(246, 241, 250, 0.96);
}

.war-ranking-table tbody tr {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.war-ranking-table tbody tr:hover td {
    background: rgba(255, 248, 252, 0.98);
    box-shadow: inset 0 1px 0 rgba(193, 33, 107, 0.14), inset 0 -1px 0 rgba(193, 33, 107, 0.14);
}

.war-ranking-table tbody tr:nth-child(1) td,
.war-ranking-table tbody tr:nth-child(2) td,
.war-ranking-table tbody tr:nth-child(3) td {
    background:
        linear-gradient(90deg, rgba(255, 246, 216, 0.96), rgba(255, 255, 255, 0.96)) !important;
    border-bottom-color: rgba(193, 33, 107, 0.22);
}

.war-ranking-table td strong {
    color: #1f1726;
}

.war-rank {
    align-items: center;
    background: rgba(33, 22, 41, 0.08);
    border: 1px solid rgba(81, 65, 96, 0.14);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    font-weight: 900;
    min-width: 32px;
}

.war-rank--gold {
    background: linear-gradient(135deg, #f2c75c, #cf8c2e);
    border-color: rgba(191, 126, 40, 0.34);
    color: #fff !important;
}

.war-rank--silver {
    background: linear-gradient(135deg, #e1e7ef, #9da9b8);
    border-color: rgba(157, 169, 184, 0.42);
    color: #fff !important;
}

.war-rank--bronze {
    background: linear-gradient(135deg, #d39a65, #a75d30);
    border-color: rgba(167, 93, 48, 0.36);
    color: #fff !important;
}

.war-nation {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.war-nation--capella {
    background: rgba(207, 71, 107, 0.15);
    color: #9f1b45;
}

.war-nation--procyon {
    background: rgba(63, 110, 168, 0.15);
    color: #31598d;
}

.war-nation--neutral {
    background: rgba(78, 62, 92, 0.12);
    color: #51415f;
}

.war-power {
    color: #9f1b59 !important;
    font-weight: 900;
}

.war-hidden-row {
    display: none;
}

.war-ranking-table.is-expanded .war-hidden-row {
    display: table-row;
}

.war-more {
    margin-top: 26px;
    text-align: center;
}

.war-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.war-page-button {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(81, 65, 96, 0.22);
    color: #211629;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    height: 42px;
    min-width: 42px;
    padding: 0 13px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.war-page-button:hover,
.war-page-button.is-active {
    background: #211629;
    border-color: #c1216b;
    color: #fff;
}

.war-page-button:hover {
    transform: translateY(-1px);
}

.war-empty {
    color: #675b70 !important;
    font-style: normal;
    padding: 18px 0;
    text-align: center;
}

@keyframes warRevealDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes warSoftReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-section--active,
.cabinet__section--active {
    animation: warSoftReveal 0.28s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .war-class-card li,
    .legacy-info-content .range-content,
    .rule-section--active,
    .cabinet__section--active {
        animation: none !important;
        transition: none !important;
    }
}

/* Refined TOP 100 ranking board */
.war-table-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 252, 0.96)) !important;
    border: 1px solid rgba(66, 47, 82, 0.1) !important;
    box-shadow: 0 26px 72px rgba(38, 27, 48, 0.14);
    padding: 42px;
}

.war-table-card::before {
    background: linear-gradient(90deg, #c1216b, rgba(22, 128, 168, 0.88), transparent 72%);
    height: 3px;
    right: 38%;
}

.war-table-card .war-section-title {
    margin-bottom: 26px;
}

.war-top-podium {
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.war-podium-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 250, 0.9));
    border: 1px solid rgba(72, 55, 88, 0.12);
    box-shadow: 0 14px 34px rgba(43, 30, 54, 0.1);
    color: #251a2d;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 86px;
    overflow: hidden;
    padding: 16px 18px;
}

.war-podium-card::after {
    background: linear-gradient(90deg, rgba(193, 33, 107, 0.82), rgba(22, 128, 168, 0.62));
    height: 2px;
    left: 18px;
    right: 18px;
}

.war-podium-card--1 {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 237, 0.94));
}

.war-podium-card__rank {
    background: #24172d;
    border: 0;
    box-shadow: none;
    color: #fff;
    font-size: 20px;
    height: 42px;
    width: 42px;
}

.war-podium-card--1 .war-podium-card__rank {
    background: linear-gradient(135deg, #d7a53a, #b97922);
}

.war-podium-card--2 .war-podium-card__rank {
    background: linear-gradient(135deg, #abb7c6, #7c8998);
}

.war-podium-card--3 .war-podium-card__rank {
    background: linear-gradient(135deg, #bf7a43, #925127);
}

.war-podium-card strong {
    color: #211629;
    font-size: 17px;
}

.war-podium-card div span {
    color: #756879;
    font-size: 12px;
}

.war-podium-card em {
    color: #1680a8;
    font-size: 16px;
    text-shadow: none;
}

.war-table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.war-ranking-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.war-ranking-table th {
    background: transparent;
    border: 0;
    color: #6b5e73;
    font-size: 12px;
    padding: 0 12px 10px;
}

.war-ranking-table th:first-child {
    padding-left: 18px;
}

.war-ranking-table th:last-child {
    padding-right: 18px;
}

.war-ranking-table td {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(58, 42, 70, 0.08);
    border-top: 1px solid rgba(58, 42, 70, 0.08);
    color: #43384c;
    padding: 14px 12px;
}

.war-ranking-table td:first-child {
    border-left: 1px solid rgba(58, 42, 70, 0.08);
    padding-left: 18px;
}

.war-ranking-table td:last-child {
    border-right: 1px solid rgba(58, 42, 70, 0.08);
    padding-right: 18px;
}

.war-ranking-table tbody tr:nth-child(even) td {
    background: rgba(249, 246, 252, 0.94) !important;
}

.war-ranking-table tbody tr:hover td {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(193, 33, 107, 0.2);
    box-shadow: 0 12px 26px rgba(43, 30, 54, 0.08);
}

.war-ranking-table tbody tr:nth-child(1) td,
.war-ranking-table tbody tr:nth-child(2) td,
.war-ranking-table tbody tr:nth-child(3) td {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 252, 0.96)) !important;
    border-color: rgba(193, 33, 107, 0.14);
}

.war-ranking-table td strong {
    color: #24172d;
    font-weight: 900;
}

.war-rank {
    background: #f0ecf4;
    border: 1px solid rgba(66, 47, 82, 0.1);
    color: #45394f;
}

.war-rank--gold {
    background: linear-gradient(135deg, #d7a53a, #b97922);
    border-color: rgba(185, 121, 34, 0.22);
    color: #fff !important;
}

.war-rank--silver {
    background: linear-gradient(135deg, #c9d2dd, #8f9ba9);
    border-color: rgba(143, 155, 169, 0.22);
    color: #fff !important;
}

.war-rank--bronze {
    background: linear-gradient(135deg, #c9834a, #99582f);
    border-color: rgba(153, 88, 47, 0.22);
    color: #fff !important;
}

.war-class-badge {
    background: rgba(36, 23, 45, 0.08);
    border-color: rgba(36, 23, 45, 0.12);
}

.war-nation {
    min-width: 64px;
}

.war-power {
    color: #8f174e !important;
    font-size: 15px;
}

.war-pagination {
    margin-top: 24px;
}

/* Final TOP 100 table polish */
.war-table-card .war-table-wrap {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 251, 0.74));
    border: 1px solid rgba(65, 48, 78, 0.12);
    box-shadow:
        0 18px 46px rgba(39, 28, 50, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    padding: 12px;
}

.war-table-card .war-ranking-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.war-table-card .war-ranking-table th {
    background: linear-gradient(180deg, #25172f, #2d1d38);
    border: 0;
    border-bottom: 1px solid rgba(193, 33, 107, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    height: 66px;
    padding: 16px 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
    vertical-align: middle;
}

.war-table-card .war-ranking-table th + th {
    box-shadow: inset 1px 0 rgba(255, 255, 255, 0.06);
}

.war-table-card .war-ranking-table td {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(65, 48, 78, 0.1) !important;
    color: #41364a;
    padding: 16px 14px;
    position: relative;
}

.war-table-card .war-ranking-table td + td {
    box-shadow: inset 1px 0 rgba(193, 33, 107, 0.08);
}

.war-table-card .war-ranking-table tbody tr:nth-child(even) td {
    background: rgba(248, 245, 251, 0.95) !important;
}

.war-table-card .war-ranking-table tbody tr:nth-child(1) td {
    background: linear-gradient(90deg, rgba(255, 252, 239, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

.war-table-card .war-ranking-table tbody tr:nth-child(2) td {
    background: linear-gradient(90deg, rgba(244, 248, 252, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

.war-table-card .war-ranking-table tbody tr:nth-child(3) td {
    background: linear-gradient(90deg, rgba(255, 247, 240, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

.war-table-card .war-ranking-table tbody tr td:first-child::before {
    background: linear-gradient(180deg, rgba(193, 33, 107, 0.58), rgba(22, 128, 168, 0.34));
    bottom: 12px;
    content: "";
    left: 0;
    opacity: 0.55;
    position: absolute;
    top: 12px;
    width: 2px;
}

.war-table-card .war-ranking-table tbody tr:nth-child(1) td:first-child::before {
    background: linear-gradient(180deg, #e8bd55, #c1216b);
    opacity: 0.95;
}

.war-table-card .war-ranking-table tbody tr:nth-child(2) td:first-child::before {
    background: linear-gradient(180deg, #c8d4df, #1680a8);
    opacity: 0.88;
}

.war-table-card .war-ranking-table tbody tr:nth-child(3) td:first-child::before {
    background: linear-gradient(180deg, #d48a4c, #c1216b);
    opacity: 0.88;
}

.war-table-card .war-ranking-table tbody tr:hover td {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 248, 252, 0.98)) !important;
    border-bottom-color: rgba(193, 33, 107, 0.2) !important;
}

.war-table-card .war-ranking-table tbody tr:hover td + td {
    box-shadow:
        inset 1px 0 rgba(193, 33, 107, 0.12),
        inset 0 1px rgba(193, 33, 107, 0.1),
        inset 0 -1px rgba(193, 33, 107, 0.1);
}

.war-table-card .war-ranking-table td strong,
.war-table-card .war-ranking-table td .war-power {
    letter-spacing: 0;
}

.war-table-card .war-rank {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(67, 49, 82, 0.12);
    box-shadow: 0 5px 12px rgba(38, 27, 48, 0.08);
    color: #3e3148;
    font-size: 15px;
    line-height: 1;
}

.war-table-card .war-rank--gold,
.war-table-card .war-rank--silver,
.war-table-card .war-rank--bronze {
    border: 0;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(20, 12, 28, 0.42);
}

.war-table-card .war-rank--gold {
    background: linear-gradient(135deg, #f0bf4f, #cc7a24);
    box-shadow: 0 7px 16px rgba(204, 122, 36, 0.28);
}

.war-table-card .war-rank--silver {
    background: linear-gradient(135deg, #b9c8d6, #78899b);
    box-shadow: 0 7px 16px rgba(120, 137, 155, 0.25);
}

.war-table-card .war-rank--bronze {
    background: linear-gradient(135deg, #cf854a, #9c542b);
    box-shadow: 0 7px 16px rgba(156, 84, 43, 0.25);
}

.war-table-card .war-class-badge {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(235, 231, 240, 0.74));
    border-color: rgba(67, 49, 82, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
    .war-stat-strip,
    .war-requirements__grid,
    .war-ranking-hero,
    .war-top-podium,
    .war-class-grid {
        grid-template-columns: 1fr;
    }

    .war-download-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .war-download-card__icon {
        min-height: 96px;
    }

    .war-download-card__icon::after {
        bottom: 0;
        height: 1px;
        left: 28px;
        right: 28px;
        top: auto;
        width: auto;
    }

    .war-download-card__body {
        padding: 28px;
    }

    .war-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .war-meta div:nth-child(2n) {
        border-right: 0;
    }

    .war-download-card > .war-button {
        min-height: 64px;
    }

    .war-page__heading h1 {
        font-size: 40px;
    }
}

@media (max-width: 620px) {
    .war-meta {
        grid-template-columns: 1fr;
    }

    .war-meta div {
        border-right: 0;
        border-bottom: 1px solid rgba(114, 91, 132, 0.14);
    }

    .war-meta div:last-child {
        border-bottom: 0;
    }
}

.war-info .war-page__heading {
    max-width: 860px;
}

.war-info-hero {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9)),
        url("../template/images/news-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(42, 28, 54, 0.28);
    color: #ffffff;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-bottom: 44px;
    padding: 38px 42px;
}

.war-info-hero h2 {
    color: #ffffff;
    font-family: var(--war-display-font);
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 12px;
}

.war-info-hero p {
    color: #e5d9eb !important;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.war-info-hero dl {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin: 0;
    padding: 22px;
}

.war-info-hero dl div {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
}

.war-info-hero dl div:first-child {
    border-top: 0;
}

.war-info-hero dt {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.war-info-hero dd {
    color: #ffffff;
    font-weight: 900;
    margin: 0;
}

.war-info-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.war-info-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(86, 70, 102, 0.18);
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.16);
    min-height: 210px;
    padding: 28px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.war-info-card:hover {
    border-color: rgba(193, 33, 107, 0.34);
    box-shadow: 0 22px 52px rgba(53, 37, 66, 0.22);
    transform: translateY(-2px);
}

.war-info-card.is-active {
    border-color: rgba(193, 33, 107, 0.42);
    box-shadow: 0 22px 52px rgba(193, 33, 107, 0.16);
}

.war-info-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.war-info-card header span {
    background: rgba(193, 33, 107, 0.1);
    border: 1px solid rgba(193, 33, 107, 0.22);
    color: #8f174e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 6px 12px;
}

.war-info-card header em {
    color: #7d7187;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.war-info-card h3 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 12px;
}

.war-info-card p {
    color: #5f5566 !important;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.war-info-card a {
    align-items: center;
    color: #9f1b59 !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    text-decoration: none;
}

.war-info-note {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(86, 70, 102, 0.16);
    color: #5f5566 !important;
    margin: 26px 0 0 !important;
    padding: 18px 22px;
}

.war-info-detail {
    background:
        linear-gradient(120deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9)),
        url("../template/images/news-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(42, 28, 54, 0.28);
    color: #ffffff;
    display: grid;
    gap: 28px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 28px;
    padding: 30px;
}

.war-info-detail h2 {
    color: #ffffff;
    font-family: var(--war-display-font);
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 10px;
}

.war-info-detail p {
    color: #e5d9eb !important;
    line-height: 1.7;
    margin: 0;
}

.war-info-detail .war-button {
    align-self: center;
}

.war-info--detail-only .war-info-detail {
    margin-top: 0;
}

.war-guide-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

.war-guide-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(86, 70, 102, 0.18);
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.14);
    min-height: 190px;
    padding: 26px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.war-guide-card::before {
    background: linear-gradient(180deg, #c1216b, rgba(193, 33, 107, 0));
    content: "";
    height: calc(100% - 46px);
    left: 0;
    position: absolute;
    top: 23px;
    width: 3px;
}

.war-guide-card:hover {
    border-color: rgba(193, 33, 107, 0.34);
    box-shadow: 0 22px 52px rgba(53, 37, 66, 0.2);
    transform: translateY(-2px);
}

.war-guide-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.war-guide-card header span {
    background: rgba(193, 33, 107, 0.1);
    border: 1px solid rgba(193, 33, 107, 0.22);
    color: #8f174e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 6px 12px;
}

.war-guide-card header em {
    color: #7d7187;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.war-guide-card h3 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 29px;
    font-weight: 500;
    margin: 0 0 12px;
}

.war-guide-card p {
    color: #5f5566 !important;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.war-guide-card strong {
    color: #9f1b59;
    display: inline-block;
    font-weight: 900;
}

.legacy-info-content {
    margin-top: 30px;
}

.legacy-info-content,
.legacy-info-content * {
    box-sizing: border-box;
}

.legacy-info-content .wrap {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.legacy-info-content .topbar {
    display: none !important;
}

.legacy-info-content a {
    color: inherit;
}

.legacy-info-content .layout {
    display: grid;
    gap: 26px;
    grid-template-columns: 290px minmax(0, 1fr);
}

.legacy-info-content .side-panel,
.legacy-info-content .page-head,
.legacy-info-content .panel,
.legacy-info-content .note,
.legacy-info-content .section,
.legacy-info-content .info-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(86, 70, 102, 0.17) !important;
    border-radius: 0 !important;
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.12);
    color: #271d30 !important;
}

.legacy-info-content .side-panel {
    padding: 28px;
}

.legacy-info-content .side-kicker,
.legacy-info-content .kicker,
.legacy-info-content .card-tag,
.legacy-info-content .tag,
.legacy-info-content .version-pill {
    background: rgba(193, 33, 107, 0.1) !important;
    border: 1px solid rgba(193, 33, 107, 0.22) !important;
    border-radius: 0 !important;
    color: #9f1b59 !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 8px 12px;
    text-transform: uppercase;
}

.legacy-info-content h1,
.legacy-info-content h2,
.legacy-info-content h3,
.legacy-info-content .content-title,
.legacy-info-content .card-title {
    color: #211629 !important;
    font-family: var(--war-display-font);
    font-weight: 500 !important;
    letter-spacing: 0;
}

.legacy-info-content h1 {
    font-size: 44px !important;
    line-height: 1.18;
    margin: 10px 0 0 !important;
}

.legacy-info-content h2,
.legacy-info-content .content-title {
    font-size: 30px !important;
    margin: 0 0 14px !important;
}

.legacy-info-content h3,
.legacy-info-content .card-title {
    font-size: 30px !important;
    line-height: 1.25;
    margin: 10px 0 12px !important;
}

.legacy-info-content p,
.legacy-info-content li,
.legacy-info-content .desc,
.legacy-info-content .side-desc,
.legacy-info-content .content-sub,
.legacy-info-content .card-desc,
.legacy-info-content .card-status {
    color: #5f5566 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.legacy-info-content .page-head {
    margin: 0 0 24px !important;
    padding: 32px !important;
}

.legacy-info-content .content-head {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.legacy-info-content .menu-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legacy-info-content .guide-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 4px;
}

.legacy-info-content .guide-page-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(193, 33, 107, 0.26);
    color: #2b2033;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    min-width: 42px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.legacy-info-content .guide-page-button:hover,
.legacy-info-content .guide-page-button.is-active {
    background: #c1216b;
    border-color: #c1216b;
    box-shadow: 0 10px 24px rgba(193, 33, 107, 0.22);
    color: #ffffff;
}

.legacy-info-content .guide-page-button[aria-current="page"] {
    pointer-events: none;
}

.legacy-info-content .info-card {
    display: block;
    min-height: 210px;
    overflow: hidden;
    padding: 26px 28px 24px !important;
    position: relative;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.legacy-info-content .info-card::before {
    background: linear-gradient(180deg, #c1216b, rgba(193, 33, 107, 0));
    content: "";
    height: calc(100% - 50px);
    left: 0;
    position: absolute;
    top: 25px;
    width: 3px;
}

.legacy-info-content .info-card:hover {
    border-color: rgba(193, 33, 107, 0.36) !important;
    box-shadow: 0 24px 56px rgba(53, 37, 66, 0.2);
    transform: translateY(-2px);
}

.legacy-info-content .card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
}

.legacy-info-content .card-top,
.legacy-info-content .card-bottom,
.legacy-info-content .info-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.legacy-info-content .card-top {
    margin-bottom: 12px;
}

.legacy-info-content .card-title {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 6px 0 0 !important;
    min-height: 58px;
    padding: 0 12px 16px;
    position: relative;
    text-align: center;
}

.legacy-info-content .card-title::after {
    background: linear-gradient(90deg, transparent, rgba(193, 33, 107, 0.55), transparent);
    bottom: 0;
    content: "";
    height: 1px;
    left: 14%;
    position: absolute;
    right: 14%;
}

.legacy-info-content .card-desc {
    background: rgba(244, 239, 247, 0.72);
    border: 1px solid rgba(86, 70, 102, 0.1);
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin: 14px 0 0 !important;
    min-height: 74px;
    padding: 14px 18px;
    text-align: center;
}

.legacy-info-content .card-bottom {
    border-top: 1px solid rgba(86, 70, 102, 0.12);
    margin-top: 18px;
    padding-top: 16px;
}

.legacy-info-content .card-action,
.legacy-info-content .card-arrow,
.legacy-info-content .home-btn,
.legacy-info-content .top-btn,
.legacy-info-content .guide-nav a {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    color: #9f1b59 !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    min-height: auto;
    padding: 0;
    text-decoration: none;
}

.legacy-info-content .section,
.legacy-info-content .panel,
.legacy-info-content .note {
    margin: 22px 0 !important;
    padding: 28px !important;
}

.legacy-info-content .quick-nav,
.legacy-info-content .guide-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 22px 0 26px !important;
}

.legacy-info-content .quick-nav a,
.legacy-info-content .guide-nav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(193, 33, 107, 0.22) !important;
    color: #8f174e !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px !important;
    text-decoration: none;
}

.legacy-info-content .quick-nav a::before,
.legacy-info-content .guide-nav a::before {
    background: #c1216b;
    content: "";
    display: block;
    height: 6px;
    width: 6px;
}

.legacy-info-content .quick-nav a:hover,
.legacy-info-content .guide-nav a:hover {
    background: rgba(193, 33, 107, 0.1) !important;
    border-color: rgba(193, 33, 107, 0.45) !important;
}

.legacy-info-content .search-panel {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(86, 70, 102, 0.17) !important;
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.12);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(320px, 1fr) auto;
    margin: 28px 0 !important;
    padding: 22px !important;
}

.legacy-info-content .search-box {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
}

.legacy-info-content .search-box span {
    align-items: center;
    color: #9f1b59 !important;
    display: flex;
    font-size: 15px;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 48px;
}

.legacy-info-content .search-input {
    background: #ffffff !important;
    border: 1px solid rgba(86, 70, 102, 0.22) !important;
    color: #211629 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    height: 54px;
    outline: none;
    padding: 0 18px 0 48px !important;
    width: 100%;
}

.legacy-info-content .search-input:focus {
    border-color: rgba(193, 33, 107, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(193, 33, 107, 0.08);
}

.legacy-info-content .tools {
    display: flex;
    gap: 10px;
}

.legacy-info-content .tool-btn {
    background: #ffffff !important;
    border: 1px solid rgba(86, 70, 102, 0.28) !important;
    color: #211629 !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    min-height: 54px;
    min-width: 148px;
    padding: 0 22px;
}

.legacy-info-content .tool-btn.primary {
    background: #9f1b59 !important;
    border-color: #9f1b59 !important;
    color: #ffffff !important;
}

.legacy-info-content .tool-btn:hover {
    border-color: rgba(193, 33, 107, 0.48) !important;
    transform: translateY(-1px);
}

.legacy-info-content .range-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.legacy-info-content .range-item {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(86, 70, 102, 0.17) !important;
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.11);
    overflow: hidden;
}

.legacy-info-content .range-item.active {
    border-color: rgba(193, 33, 107, 0.32) !important;
}

.legacy-info-content .range-header {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(180px, 0.5fr) minmax(260px, 1fr) auto;
    min-height: 74px;
    padding: 0 24px;
    user-select: none;
}

.legacy-info-content .range-main {
    align-items: center;
    display: flex;
    gap: 12px;
}

.legacy-info-content .range-dot {
    background: #c1216b;
    height: 8px;
    width: 8px;
}

.legacy-info-content .range-name {
    color: #211629 !important;
    font-family: var(--war-display-font);
    font-size: 25px;
    font-weight: 500;
}

.drop-browser {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.drop-browser__hero {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9)),
        url("../template/images/news-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(42, 28, 54, 0.28);
    color: #ffffff;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 38px 42px;
}

.drop-browser__hero h2 {
    color: #ffffff !important;
    font-family: var(--war-display-font);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.22;
    margin: 0 0 12px;
    text-shadow: 0 3px 18px rgba(16, 8, 22, 0.36);
}

.drop-browser__hero p {
    color: #eadfed !important;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.drop-browser__hero dl {
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 0;
    padding: 14px 20px;
}

.drop-browser__hero dl div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    justify-content: space-between;
    min-height: 46px;
}

.drop-browser__hero dl div:last-child {
    border-bottom: 0;
}

.drop-browser__hero dt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.drop-browser__hero dd {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.drop-browser__tools {
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(114, 91, 132, 0.2);
    box-shadow: 0 14px 34px rgba(51, 36, 63, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    padding: 18px;
    position: relative;
}

.drop-browser__tools--item {
    align-items: flex-start;
}

.drop-browser__tools > span {
    color: #6a5d72;
    font-size: 14px;
    font-weight: 700;
}

.drop-search {
    align-items: center;
    background: #f7f4fb;
    border: 1px solid rgba(193, 33, 107, 0.22);
    display: flex;
    gap: 12px;
    min-height: 50px;
    min-width: min(420px, 100%);
    padding: 0 16px;
}

.drop-search--item {
    min-width: min(500px, 100%);
}

.drop-search i {
    color: #9f1b59;
}

.drop-search input {
    background: transparent;
    border: 0;
    color: #211629;
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    min-width: 0;
    outline: 0;
}

.drop-dungeon-grid {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 251, 0.92)),
        radial-gradient(circle at 100% 0%, rgba(193, 33, 107, 0.08), transparent 32%);
    border: 1px solid rgba(86, 70, 102, 0.16);
    box-shadow: 0 22px 46px rgba(52, 36, 62, 0.12);
    column-gap: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 16px 18px;
    row-gap: 7px;
}

.drop-dungeon-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(86, 70, 102, 0.1);
    box-shadow: none;
    color: #2a1a33 !important;
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    min-height: 35px;
    padding: 6px 10px;
    position: relative;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.drop-dungeon-card::before {
    background: #c1216b;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(193, 33, 107, 0.1);
    content: "";
    height: 5px;
    position: static;
    width: 5px;
}

.drop-dungeon-card:hover {
    background: #ffffff;
    border-color: rgba(193, 33, 107, 0.35);
    color: #97124d !important;
    transform: translateX(3px);
}

.drop-dungeon-card__tag {
    align-self: flex-start;
    background: rgba(193, 33, 107, 0.1);
    border: 1px solid rgba(193, 33, 107, 0.22);
    color: #9f1b59;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 7px 10px;
}

.drop-dungeon-card h3,
.template-page .drop-dungeon-card h3 {
    color: inherit !important;
    font-family: var(--war-body-font);
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-dungeon-card__line {
    background: linear-gradient(90deg, rgba(193, 33, 107, 0.55), transparent);
    display: none;
    height: 1px;
    margin-bottom: 16px;
    width: 100%;
}

.drop-dungeon-card p {
    color: #665b70 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.drop-dungeon-card strong {
    display: none;
}

.drop-suggest {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(193, 33, 107, 0.28);
    box-shadow: 0 18px 34px rgba(52, 36, 62, 0.16);
    left: 18px;
    max-height: 315px;
    overflow-y: auto;
    position: absolute;
    top: 72px;
    width: min(500px, calc(100% - 36px));
    z-index: 6;
}

.drop-suggest button,
.drop-suggest p {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(86, 70, 102, 0.1);
    color: #2a1a33;
    display: block;
    font-family: var(--war-body-font);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
}

.drop-suggest button:hover {
    background: rgba(193, 33, 107, 0.08);
    color: #9f1b59;
}

.drop-item-results {
    background: #fff;
    border: 1px solid rgba(86, 70, 102, 0.16);
    box-shadow: 0 20px 42px rgba(52, 36, 62, 0.12);
    padding: 22px;
}

.drop-item-results__head {
    align-items: flex-end;
    border-bottom: 1px solid rgba(86, 70, 102, 0.14);
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.drop-item-results__head h3 {
    color: #26182f;
    font-family: var(--war-title-font);
    font-size: 28px;
    line-height: 1.15;
    margin: 6px 0 0;
}

.drop-item-results__head strong {
    background: rgba(193, 33, 107, 0.1);
    color: #9f1b59;
    font-size: 15px;
    font-weight: 900;
    padding: 8px 12px;
}

.drop-item-results .drop-table-wrap {
    margin-top: 0;
}

.drop-item-results table a {
    color: #1677b8;
    font-weight: 900;
    text-decoration: none;
}

.drop-back {
    align-items: center;
    align-self: flex-start;
    color: #9f1b59;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    text-decoration: none;
}

.drop-tool-button {
    background: #2a0b1a;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    min-height: 46px;
    padding: 0 18px;
}

.drop-tool-button:hover {
    background: #c1216b;
}

.drop-box-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drop-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(114, 91, 132, 0.2);
    box-shadow: 0 16px 38px rgba(51, 36, 63, 0.12);
    overflow: hidden;
}

.drop-box summary {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9));
    color: #ffffff;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    min-height: 64px;
    padding: 0 24px;
}

.drop-box summary::-webkit-details-marker {
    display: none;
}

.drop-box summary span {
    align-items: center;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    gap: 12px;
}

.drop-box summary span::before {
    background: #c1216b;
    box-shadow: 0 0 12px rgba(193, 33, 107, 0.45);
    content: "";
    height: 8px;
    width: 8px;
}

.drop-box summary em {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 7px 11px;
}

.drop-box__content {
    padding: 18px;
    transform-origin: top;
    transition:
        max-height 0.38s ease,
        opacity 0.24s ease,
        transform 0.38s ease;
}

.drop-box.is-animating {
    overflow: hidden;
}

.drop-box.is-animating .drop-box__content {
    overflow: hidden;
}

.drop-table-wrap {
    border: 1px solid rgba(114, 91, 132, 0.22);
    overflow-x: auto;
}

.drop-table-wrap table {
    border-collapse: collapse;
    min-width: 620px;
    width: 100%;
}

.drop-table-wrap th {
    background: #24182d;
    border-bottom: 1px solid #c1216b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    padding: 15px 18px;
    text-align: left;
}

.drop-table-wrap td {
    border-bottom: 1px solid rgba(114, 91, 132, 0.18);
    color: #2d2635;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 18px;
}

.drop-table-wrap tr:nth-child(even) td {
    background: rgba(101, 83, 122, 0.09);
}

.drop-table-wrap tr:hover td {
    background: rgba(193, 33, 107, 0.08);
}

.drop-empty {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(114, 91, 132, 0.18);
    color: #6a5d72 !important;
    font-weight: 800;
    margin: 0;
    padding: 18px;
    text-align: center;
}

.war-news-hero {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(34, 24, 45, 0.96), rgba(86, 58, 102, 0.9)),
        url("../template/images/news-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(42, 28, 54, 0.28);
    color: #ffffff;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-bottom: 34px;
    padding: 38px 42px;
}

.war-news-hero h2 {
    color: #ffffff;
    font-family: var(--war-display-font);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.24;
    margin: 0 0 12px;
}

.war-news-hero p {
    color: #eadfed !important;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.war-news-hero dl {
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 0;
    padding: 14px 20px;
}

.war-news-hero dl div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    justify-content: space-between;
    min-height: 44px;
}

.war-news-hero dl div:last-child {
    border-bottom: 0;
}

.war-news-hero dt {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.war-news-hero dd {
    color: #ffffff;
    font-weight: 900;
    margin: 0;
}

.war-news-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.war-news-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(114, 91, 132, 0.2);
    box-shadow: 0 18px 44px rgba(51, 36, 63, 0.14);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.war-news-card.is-featured {
    border-color: rgba(193, 33, 107, 0.36);
}

.war-news-card__media {
    background-position: center 28%;
    background-size: cover;
    display: block;
    min-height: 235px;
    position: relative;
    text-decoration: none;
}

.war-news-card__media::after {
    background: linear-gradient(180deg, transparent 20%, rgba(34, 24, 45, 0.78));
    content: "";
    inset: 0;
    position: absolute;
}

.war-news-card__media span {
    background: #c1216b;
    bottom: 18px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    left: 18px;
    letter-spacing: 0.08em;
    padding: 8px 12px;
    position: absolute;
    text-transform: uppercase;
    z-index: 1;
}

.war-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.war-news-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.war-news-meta span {
    color: #9f1b59;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.war-news-meta time {
    color: #7d7187;
    font-size: 13px;
    font-weight: 800;
}

.war-news-card h3 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 14px;
}

.war-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.war-news-card p {
    color: #62576d !important;
    font-size: 15px;
    line-height: 1.72;
    margin: 0 0 22px;
}

.war-news-link,
.war-news-back {
    align-items: center;
    color: #a31655;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    margin-top: auto;
    text-decoration: none;
}

.war-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 34px;
}

.war-pagination a,
.war-pagination span {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(114, 91, 132, 0.24);
    color: #2a1b33;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    min-width: 42px;
    padding: 0 14px;
    text-decoration: none;
}

.war-pagination a:hover,
.war-pagination .is-active {
    background: #c1216b;
    border-color: #c1216b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(193, 33, 107, 0.24);
}

.war-news-detail {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(114, 91, 132, 0.2);
    box-shadow: 0 18px 44px rgba(51, 36, 63, 0.14);
    overflow: hidden;
}

.war-news-detail .war-news-back {
    margin: 28px 32px 0;
}

.war-news-detail__media {
    background-position: center 26%;
    background-size: cover;
    min-height: 460px;
    margin-top: 24px;
}

.war-news-detail__body {
    padding: 34px 42px 46px;
}

.war-news-detail h2 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.28;
    margin: 0 0 18px;
}

.war-news-lead {
    border-left: 3px solid #c1216b;
    color: #514759 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin: 0 0 26px !important;
    padding-left: 18px;
}

.war-news-detail__text {
    border-top: 1px solid rgba(114, 91, 132, 0.18);
    display: block;
    padding-top: 28px;
}

.war-news-detail__text p {
    color: #62576d !important;
    font-size: 16px;
    line-height: 1.85;
    margin: 0;
    white-space: normal;
}

.war-news-detail__text h3,
.war-news-detail__text h4 {
    color: #6b24e8;
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
    margin: 34px 0 14px;
    padding-left: 0;
    position: relative;
}

.war-news-detail__text h3::before,
.war-news-detail__text h4::before {
    content: none;
}

.war-news-detail__text ul,
.war-news-detail__text ol {
    display: block;
    list-style: disc;
    margin: 0 0 24px;
    padding-left: 30px;
}

.war-news-detail__text li {
    background: transparent;
    border: 0;
    color: #51495c;
    font-size: 16px;
    line-height: 1.9;
    margin: 8px 0;
    padding: 0;
    position: relative;
}

.war-news-detail__text li::marker {
    color: #c1216b;
}

.war-news-detail__text li::before {
    content: none;
}

.war-news-detail__text .war-news-item-note {
    color: #6d6277;
    display: block;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 4px;
    padding-left: 16px;
    position: relative;
}

.war-news-detail__text .war-news-item-note::before {
    background: rgba(193, 33, 107, 0.52);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0.82em;
    width: 4px;
}

.war-news-detail__text strong {
    color: #9f1b59;
    font-weight: 900;
}

.war-news-detail__text pre {
    background: transparent;
    border: 0;
    color: #51495c;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    overflow: visible;
    padding: 0;
    white-space: normal;
}

.war-news-detail__text code {
    font-family: inherit;
}

.war-news-detail__text hr {
    background: linear-gradient(90deg, rgba(193, 33, 107, 0.42), rgba(107, 201, 238, 0.22), transparent);
    border: 0;
    height: 1px;
    margin: 10px 0;
}

/* Cabinet account page */
.template-page .cabinet-container {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 300px minmax(0, 1fr);
    margin-top: 44px;
}

.template-page .cabinet-sidebar {
    height: fit-content;
    position: sticky;
    top: 118px;
    z-index: 2;
}

.template-page .cabinet-nav {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 252, 0.9)),
        linear-gradient(135deg, rgba(193, 33, 107, 0.08), transparent 52%);
    border: 1px solid rgba(86, 70, 102, 0.16);
    border-radius: 0;
    box-shadow: 0 22px 46px rgba(52, 36, 62, 0.14);
    overflow: hidden;
}

.template-page .cabinet__user-profile {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(43, 29, 53, 0.96), rgba(99, 68, 118, 0.9)),
        url("../template/images/footer-bg.jpg") center / cover no-repeat;
    border: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 24px 22px;
}

.template-page .cabinet__user-avatar {
    align-items: center;
    background: #c1216b;
    box-shadow: 0 14px 28px rgba(193, 33, 107, 0.34);
    color: #fff;
    display: inline-flex;
    font-size: 32px;
    height: 56px;
    justify-content: center;
    line-height: 1;
    width: 56px;
}

.template-page .cabinet__user-info h3 {
    color: #fff;
    font-family: var(--war-body-font);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-page .cabinet__user-status {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.template-page .cabinet-nav__list {
    display: grid;
    gap: 0;
    padding: 12px;
}

.template-page .cabinet-nav__item {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: #5f536b;
    display: flex;
    font-family: var(--war-body-font);
    font-size: 15px;
    font-weight: 800;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.template-page .cabinet-nav__item i {
    color: #b21b61;
    font-size: 15px;
    text-align: center;
    width: 20px;
}

.template-page .cabinet-nav__item:hover,
.template-page .cabinet-nav__item--active,
.template-page .cabinet-nav__item--active:hover {
    background: rgba(193, 33, 107, 0.08) !important;
    border-left-color: #c1216b;
    box-shadow: none !important;
    color: #24172e !important;
}

.template-page .cabinet-nav__item--active i {
    color: #c1216b;
}

.template-page .cabinet__content {
    min-width: 0;
}

.template-page .cabinet__section > .card,
.template-page .auth-required.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(86, 70, 102, 0.15);
    border-radius: 0;
    box-shadow: 0 24px 54px rgba(52, 36, 62, 0.14);
    color: #34283e;
    padding: 38px;
}

.template-page .cabinet__section > .card > h3 {
    align-items: center;
    border-bottom: 1px solid rgba(86, 70, 102, 0.13);
    color: #25172e;
    display: flex;
    font-family: var(--war-body-font);
    font-size: 22px;
    font-weight: 900;
    gap: 10px;
    margin: 0 0 24px;
    padding-bottom: 18px;
}

.template-page .cabinet__section > .card > h3 i {
    align-items: center;
    background: rgba(193, 33, 107, 0.1);
    color: #c1216b;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.template-page .cabinet__section > .card > p {
    color: #6b6074 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    margin: -8px 0 24px;
}

.template-page .profile-info {
    display: grid;
    gap: 12px;
    margin: 0;
}

.template-page .info-row {
    align-items: center;
    background: rgba(242, 238, 246, 0.62);
    border: 1px solid rgba(86, 70, 102, 0.11);
    display: grid;
    gap: 18px;
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 54px;
    padding: 12px 18px;
}

.template-page .info-label {
    color: #6b6074;
    font-size: 14px;
    font-weight: 900;
}

.template-page .info-label::before {
    background: #c1216b;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 10px;
    width: 8px;
}

.template-page .info-value {
    color: #26182f;
    font-size: 15px;
    font-weight: 900;
    justify-self: end;
    text-align: right;
}

.template-page .info-value span {
    color: #75697f !important;
}

.template-page .status-active {
    color: #198c56 !important;
}

.template-page .profile-actions {
    border-top: 1px solid rgba(86, 70, 102, 0.13);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 24px;
}

.template-page .profile-actions .btn,
.template-page .cabinet__section .btn {
    align-items: center;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    font-family: var(--war-body-font);
    font-size: 14px;
    font-weight: 900;
    gap: 9px;
    min-height: 46px;
    padding: 0 22px;
}

.template-page .profile-actions .btn--primary,
.template-page .cabinet__section .btn--primary {
    background: #c1216b;
    box-shadow: 0 14px 28px rgba(193, 33, 107, 0.24);
    color: #fff;
}

.template-page .profile-actions .btn--ghost,
.template-page .cabinet__section .btn--ghost {
    background: #2a1a33;
    color: #fff;
}

.template-page .profile-actions .btn--danger,
.template-page .cabinet__section .btn--danger {
    background: #3a2231;
    box-shadow: none;
    color: #fff;
}

.template-page .characters-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 0;
}

.template-page .character-card {
    align-items: center;
    background: rgba(242, 238, 246, 0.7);
    border: 1px solid rgba(86, 70, 102, 0.13);
    border-radius: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
    text-align: left;
}

.template-page .character-card:hover {
    background: #fff;
    border-color: rgba(193, 33, 107, 0.35);
    box-shadow: 0 16px 32px rgba(52, 36, 62, 0.12);
    transform: translateY(-2px);
}

.template-page .character-avatar {
    margin: 0;
}

.template-page .class-icon {
    align-items: center;
    background: #2a1a33;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.template-page .character-info h4 {
    color: #24172e;
    font-family: var(--war-body-font);
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 5px;
}

.template-page .character-class {
    color: #8b1b52;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 7px;
}

.template-page .character-level {
    background: rgba(193, 33, 107, 0.1);
    border-radius: 0;
    color: #5f536b;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
}

.template-page .cabinet__section .form-group {
    margin-bottom: 18px;
}

.template-page .cabinet__section label {
    color: #33283d;
    font-size: 14px;
    font-weight: 900;
}

.template-page .cabinet__section input[type="password"],
.template-page .cabinet__section input[type="text"],
.template-page .cabinet__section input[type="email"],
.template-page .cabinet__section select,
.template-page .cabinet__section textarea {
    background: rgba(242, 238, 246, 0.72);
    border: 1px solid rgba(86, 70, 102, 0.18);
    border-radius: 0;
    color: #26182f;
}

.template-page .cabinet__section input:focus,
.template-page .cabinet__section select:focus,
.template-page .cabinet__section textarea:focus {
    border-color: #c1216b;
    box-shadow: 0 0 0 3px rgba(193, 33, 107, 0.12);
}

.template-page .cabinet__section small {
    color: #75697f;
}

.template-page .cabinet__section [style*="overflow-x:auto"] {
    background: #fff;
    border: 1px solid rgba(86, 70, 102, 0.14);
    box-shadow: 0 12px 26px rgba(52, 36, 62, 0.08);
    margin-top: 24px !important;
    overflow-x: auto;
}

.template-page .cabinet__section table {
    background: #fff !important;
    border: 0 !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    min-width: 720px;
    width: 100% !important;
}

.template-page .cabinet__section table th {
    background: #2a1a33 !important;
    border: 0 !important;
    color: #fff !important;
    font-family: var(--war-body-font);
    font-size: 13px !important;
    font-weight: 900 !important;
    padding: 15px 14px !important;
    text-align: center !important;
}

.template-page .cabinet__section table td {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(86, 70, 102, 0.12) !important;
    color: #34283e !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 14px !important;
    text-align: center !important;
}

.template-page .cabinet__section table tr:nth-child(even) td {
    background: rgba(242, 238, 246, 0.72) !important;
}

.template-page .cabinet__section .alert {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(86, 70, 102, 0.14);
    border-left: 4px solid #c1216b;
    border-radius: 0;
    color: #34283e;
    font-weight: 800;
}

.template-page .auth-message {
    color: #33283d;
    text-align: center;
}

/* Cabinet rebuild layer */
.template-page .section-header:has(+ .cabinet-container),
.template-page .section-header:has(+ .auth-required) {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 252, 0.9)),
        radial-gradient(circle at 88% 20%, rgba(193, 33, 107, 0.2), transparent 34%);
    border: 1px solid rgba(193, 33, 107, 0.14);
    box-shadow: 0 26px 64px rgba(52, 36, 62, 0.13);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 34px 38px;
    position: relative;
}

.template-page .section-header:has(+ .cabinet-container)::before,
.template-page .section-header:has(+ .auth-required)::before {
    background: linear-gradient(90deg, #c1216b, rgba(22, 128, 168, 0.9), transparent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 34%;
    top: 0;
}

.template-page .section-header:has(+ .cabinet-container) h2,
.template-page .section-header:has(+ .auth-required) h2 {
    color: #211629;
    font-family: var(--war-display-font);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.template-page .section-header:has(+ .cabinet-container) p,
.template-page .section-header:has(+ .auth-required) p {
    color: #6a5d73;
    font-size: 16px;
    font-weight: 800;
    margin-top: 12px;
}

.template-page .cabinet-container {
    gap: 34px;
    grid-template-columns: 320px minmax(0, 1fr);
    margin-top: 0;
}

.template-page .cabinet-nav.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 246, 253, 0.94)),
        radial-gradient(circle at 0 0, rgba(193, 33, 107, 0.12), transparent 38%) !important;
    border: 1px solid rgba(193, 33, 107, 0.16) !important;
    border-radius: 6px !important;
    box-shadow: 0 28px 70px rgba(44, 28, 55, 0.16) !important;
}

.template-page .cabinet__user-profile {
    background:
        linear-gradient(135deg, rgba(193, 33, 107, 0.96), rgba(50, 24, 66, 0.94)),
        url("../template/images/header-bg.jpg") center / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    min-height: 126px;
    padding: 28px 24px;
    position: relative;
}

.template-page .cabinet__user-profile::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent);
    bottom: 0;
    content: "";
    height: 1px;
    left: 24px;
    position: absolute;
    right: 24px;
}

.template-page .cabinet__user-avatar {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(39, 17, 53, 0.28);
}

.template-page .cabinet-nav__list {
    gap: 8px;
    padding: 16px;
}

.template-page .cabinet-nav__item {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(86, 70, 102, 0.1);
    border-radius: 6px;
    color: #574b62;
    min-height: 52px;
    padding: 0 16px;
}

.template-page .cabinet-nav__item i {
    align-items: center;
    background: rgba(193, 33, 107, 0.1);
    border-radius: 6px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.template-page .cabinet-nav__item:hover,
.template-page .cabinet-nav__item--active,
.template-page .cabinet-nav__item--active:hover {
    background: linear-gradient(135deg, rgba(193, 33, 107, 0.14), rgba(22, 128, 168, 0.1)) !important;
    border-color: rgba(193, 33, 107, 0.28);
    border-left-color: rgba(193, 33, 107, 0.28);
    box-shadow: 0 12px 26px rgba(52, 36, 62, 0.1) !important;
}

.template-page .cabinet__section > .card,
.template-page .auth-required.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 253, 0.94)),
        radial-gradient(circle at 100% 0, rgba(193, 33, 107, 0.09), transparent 34%) !important;
    border: 1px solid rgba(193, 33, 107, 0.13) !important;
    border-radius: 6px !important;
    box-shadow: 0 30px 74px rgba(52, 36, 62, 0.14) !important;
    overflow: visible;
    padding: 34px;
}

.template-page .cabinet__section > .card::before,
.template-page .auth-required.card::before,
.template-page .cabinet-nav.card::before {
    display: none;
}

.template-page .cabinet__section > .card > h3 {
    border-bottom: 0;
    color: #211629;
    font-family: var(--war-display-font);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 28px;
    padding: 0 0 18px;
    position: relative;
}

.template-page .cabinet__section > .card > h3::after {
    background: linear-gradient(90deg, #c1216b, rgba(22, 128, 168, 0.72), transparent);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: min(220px, 55%);
}

.template-page .cabinet__section > .card > h3 i {
    background: linear-gradient(135deg, rgba(193, 33, 107, 0.14), rgba(22, 128, 168, 0.12));
    border: 1px solid rgba(193, 33, 107, 0.16);
    border-radius: 6px;
    height: 42px;
    width: 42px;
}

.template-page .profile-info {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-page .info-row {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 249, 0.78));
    border: 1px solid rgba(86, 70, 102, 0.12);
    border-radius: 6px;
    display: block;
    min-height: 92px;
    padding: 18px;
}

.template-page .info-label {
    color: #84778f;
    display: block;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.template-page .info-label::before {
    border-radius: 999px;
    height: 7px;
    width: 7px;
}

.template-page .info-value {
    color: #211629;
    display: block;
    font-size: 18px;
    justify-self: auto;
    text-align: left;
}

.template-page .profile-actions {
    background: rgba(245, 240, 249, 0.52);
    border: 1px solid rgba(86, 70, 102, 0.1);
    border-radius: 6px;
    padding: 16px;
}

.template-page .profile-actions .btn,
.template-page .cabinet__section .btn {
    border-radius: 6px;
    min-height: 48px;
    padding: 0 24px;
}

.template-page .profile-actions .btn--primary,
.template-page .cabinet__section .btn--primary,
.template-page .cabinet__section .btn--warning {
    background: linear-gradient(135deg, #c1216b, #8f174e);
    box-shadow: 0 16px 34px rgba(193, 33, 107, 0.26);
    color: #fff;
}

.template-page .profile-actions .btn--ghost,
.template-page .cabinet__section .btn--ghost {
    background: linear-gradient(135deg, #211629, #3c2849);
    box-shadow: 0 12px 26px rgba(33, 22, 41, 0.16);
}

.template-page .profile-actions .btn--danger,
.template-page .cabinet__section .btn--danger {
    background: linear-gradient(135deg, #5a223e, #281726);
}

.template-page .character-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 249, 0.84));
    border-radius: 6px;
    padding: 18px;
}

.template-page .class-icon {
    background: linear-gradient(135deg, #211629, #c1216b);
    border-radius: 16px 6px 16px 6px;
    box-shadow: 0 14px 26px rgba(193, 33, 107, 0.2);
}

.template-page .cabinet__section label {
    color: #211629;
    display: inline-block;
    margin-bottom: 10px;
}

.template-page .cabinet__section input[type="password"],
.template-page .cabinet__section input[type="text"],
.template-page .cabinet__section input[type="email"],
.template-page .cabinet__section input[type="number"],
.template-page .cabinet__section select,
.template-page .cabinet__section textarea {
    background: #fff;
    border: 1px solid rgba(86, 70, 102, 0.14);
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(52, 36, 62, 0.07);
    color: #211629;
    min-height: 58px;
    padding: 0 20px;
}

.template-page .cabinet__section input::placeholder,
.template-page .cabinet__section textarea::placeholder {
    color: #978d9d;
}

.template-page .cabinet__section input:focus,
.template-page .cabinet__section select:focus,
.template-page .cabinet__section textarea:focus {
    background: #fff;
    border-color: rgba(193, 33, 107, 0.6);
    box-shadow: 0 0 0 4px rgba(193, 33, 107, 0.1), 0 18px 36px rgba(52, 36, 62, 0.1);
}

.template-page .cabinet__section .cash-display,
.template-page .cabinet__section [style*="bg-darker"] {
    background:
        linear-gradient(135deg, rgba(33, 22, 41, 0.96), rgba(92, 37, 76, 0.9)),
        radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.16), transparent 30%) !important;
    border: 1px solid rgba(193, 33, 107, 0.34) !important;
    border-radius: 6px !important;
    box-shadow: 0 24px 48px rgba(33, 22, 41, 0.22) !important;
    padding: 26px !important;
    position: relative;
}

.template-page .cabinet__section .cash-display h4,
.template-page .cabinet__section .cash-display p {
    color: #fff !important;
}

.template-page .cabinet__section .alert {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 250, 0.9));
    border: 1px solid rgba(193, 33, 107, 0.18);
    border-left: 0;
    border-radius: 6px;
    box-shadow: 0 16px 34px rgba(52, 36, 62, 0.09);
    color: #34283e;
    padding: 20px 22px;
}

.template-page .cabinet__section [style*="overflow-x:auto"] {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 44px rgba(52, 36, 62, 0.1);
}

.template-page .cabinet__section table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.template-page .cabinet__section table th {
    background: linear-gradient(135deg, #211629, #3c2849) !important;
    color: #fff !important;
}

.template-page .cabinet__section table td {
    background: rgba(255, 255, 255, 0.96) !important;
}

.template-page .cabinet__section table tr:nth-child(even) td {
    background: rgba(246, 241, 250, 0.92) !important;
}

body.page-cabinet {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-cabinet .template-page {
    align-items: stretch;
    display: flex;
    flex: 1 0 auto;
    min-height: calc(100vh - 190px);
    padding-bottom: 58px !important;
}

body.page-cabinet .template-page > .container {
    display: flex;
    flex-direction: column;
    min-height: 820px !important;
}

body.page-cabinet .cabinet-container {
    align-items: stretch;
    flex: 1;
}

body.page-cabinet .cabinet-sidebar,
body.page-cabinet .cabinet__content {
    min-height: 100%;
}

body.page-cabinet .cabinet__content {
    display: flex;
}

body.page-cabinet .cabinet__section {
    width: 100%;
}

body.page-cabinet .cabinet__section--active {
    display: flex;
}

body.page-cabinet .cabinet__section > .card,
body.page-cabinet .auth-required.card {
    display: flex;
    flex-direction: column;
    min-height: 920px;
    width: 100%;
}

body.page-cabinet .cabinet-history-table-wrap {
    height: 596px;
    min-height: 596px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

body.page-cabinet .cabinet-history-table-wrap table {
    min-width: 920px;
}

body.page-cabinet .cabinet-history-table-wrap th,
body.page-cabinet .cabinet-history-table-wrap td {
    height: 64px;
    line-height: 1.28;
    white-space: nowrap;
}

body.page-cabinet .cabinet-history-table-wrap th:nth-child(1),
body.page-cabinet .cabinet-history-table-wrap td:nth-child(1),
body.page-cabinet .cabinet-history-table-wrap th:nth-child(5),
body.page-cabinet .cabinet-history-table-wrap td:nth-child(5) {
    min-width: 230px;
}

body.page-cabinet .cabinet-history-table-wrap th:nth-child(2),
body.page-cabinet .cabinet-history-table-wrap td:nth-child(2),
body.page-cabinet .cabinet-history-table-wrap th:nth-child(3),
body.page-cabinet .cabinet-history-table-wrap td:nth-child(3),
body.page-cabinet .cabinet-history-table-wrap th:nth-child(4),
body.page-cabinet .cabinet-history-table-wrap td:nth-child(4) {
    min-width: 140px;
}

body.page-cabinet .cabinet-history-placeholder td {
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

body.page-cabinet .cabinet-history-row--hidden {
    display: none !important;
}

body.page-cabinet .cabinet-history-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

body.page-cabinet .cabinet-history-page {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(193, 33, 107, 0.18);
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(52, 36, 62, 0.08);
    color: #574b62;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 12px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.page-cabinet .cabinet-history-page:hover {
    border-color: rgba(193, 33, 107, 0.42);
    color: #c1216b;
    transform: translateY(-1px);
}

body.page-cabinet .cabinet-history-page.is-active {
    background: linear-gradient(135deg, #c1216b, #8f174e);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(193, 33, 107, 0.24);
    color: #fff;
}

body.page-cabinet .site-footer.footer {
    flex: 0 0 auto;
    margin-top: auto !important;
}

@media (max-width: 980px) {
    .template-page .cabinet-container {
        grid-template-columns: 1fr;
    }

    .template-page .cabinet-sidebar {
        position: static;
    }

    .template-page .profile-info {
        grid-template-columns: 1fr;
    }

    body.page-cabinet .template-page > .container,
    body.page-cabinet .cabinet__section > .card,
    body.page-cabinet .auth-required.card,
    body.page-cabinet .cabinet-history-table-wrap {
        min-height: 0 !important;
    }

    body.page-cabinet .cabinet__content,
    body.page-cabinet .cabinet__section--active {
        display: block;
    }
}

@media (max-width: 980px) {
    .drop-browser__hero {
        grid-template-columns: 1fr;
    }

    .drop-dungeon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 16px;
    }

    .war-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .war-news-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .drop-browser__hero {
        padding: 28px 22px;
    }

    .drop-dungeon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .war-news-grid {
        grid-template-columns: 1fr;
    }

    .drop-search {
        min-width: 100%;
    }

    .war-news-hero,
    .war-news-detail__body {
        padding: 28px 22px;
    }

    .war-news-detail__media {
        min-height: 300px;
    }
}

.legacy-info-content .range-desc {
    color: #665b6f !important;
    font-size: 14px;
    line-height: 1.5;
}

.legacy-info-content .range-count {
    background: rgba(193, 33, 107, 0.1);
    border: 1px solid rgba(193, 33, 107, 0.22);
    color: #9f1b59 !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-width: 62px;
    padding: 7px 12px;
}

.legacy-info-content .arrow {
    color: #9f1b59 !important;
    display: inline-block;
    font-size: 15px;
    margin-left: 8px;
    transition: transform 0.18s ease;
}

.legacy-info-content .range-item.active .arrow {
    transform: rotate(90deg);
}

.legacy-info-content .range-content {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px;
    transform: translateY(-8px);
    transition:
        max-height 0.38s ease,
        opacity 0.24s ease,
        padding 0.38s ease,
        transform 0.38s ease;
}

.legacy-info-content .range-item.active .range-content {
    max-height: 1600px;
    opacity: 1;
    padding: 0 24px 24px;
    transform: translateY(0);
}

.legacy-info-content .section ul,
.legacy-info-content .panel ul {
    margin: 0;
    padding-left: 22px;
}

.legacy-info-content .section > h2,
.legacy-info-content .panel > h2,
.legacy-info-content .note > h2 {
    align-items: center;
    display: flex;
    gap: 12px;
}

.legacy-info-content .section > h2::before,
.legacy-info-content .panel > h2::before,
.legacy-info-content .note > h2::before {
    background: #c1216b;
    content: "";
    flex: 0 0 auto;
    height: 24px;
    width: 4px;
}

.legacy-info-content .section p,
.legacy-info-content .section li,
.legacy-info-content .panel p,
.legacy-info-content .panel li,
.legacy-info-content .note p,
.legacy-info-content .note li {
    max-width: 980px;
}

.legacy-info-content .section ul,
.legacy-info-content .legacy-accordion__body ul {
    display: grid;
    gap: 9px;
    list-style: none;
    padding-left: 0;
}

.legacy-info-content .section li,
.legacy-info-content .legacy-accordion__body li {
    padding-left: 22px;
    position: relative;
}

.legacy-info-content .section li::before,
.legacy-info-content .legacy-accordion__body li::before {
    background: #c1216b;
    content: "";
    height: 5px;
    left: 2px;
    position: absolute;
    top: 0.76em;
    width: 5px;
}

.legacy-info-content .legacy-accordion {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(86, 70, 102, 0.17);
    box-shadow: 0 18px 44px rgba(53, 37, 66, 0.12);
    margin: 18px 0;
}

.legacy-info-content .legacy-accordion[open] {
    border-color: rgba(193, 33, 107, 0.28);
}

.legacy-info-content .legacy-accordion__summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: 30px minmax(0, 1fr);
    list-style: none;
    padding: 24px 28px;
}

.legacy-info-content .legacy-accordion__summary::-webkit-details-marker {
    display: none;
}

.legacy-info-content .legacy-accordion__summary h2 {
    font-size: 30px !important;
    margin: 0 !important;
}

.legacy-info-content .legacy-accordion__marker {
    border: 1px solid rgba(193, 33, 107, 0.3);
    height: 30px;
    position: relative;
    width: 30px;
}

.legacy-info-content .legacy-accordion__marker::before,
.legacy-info-content .legacy-accordion__marker::after {
    background: #c1216b;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.legacy-info-content .legacy-accordion__marker::before {
    height: 2px;
    width: 12px;
}

.legacy-info-content .legacy-accordion__marker::after {
    height: 12px;
    width: 2px;
}

.legacy-info-content .legacy-accordion[open] .legacy-accordion__marker::after {
    opacity: 0;
}

.legacy-info-content .legacy-accordion__body {
    border-top: 1px solid rgba(86, 70, 102, 0.13);
    box-sizing: border-box;
    padding: 24px 28px 30px 74px;
    transform-origin: top;
    transition:
        height 0.46s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: height, opacity, transform;
}

.legacy-info-content .legacy-accordion.is-animating {
    overflow: hidden;
}

.legacy-info-content .legacy-accordion.is-animating .legacy-accordion__body {
    overflow: hidden;
}

.legacy-info-content .legacy-accordion__body h3 {
    align-items: center;
    display: flex;
    font-size: 24px !important;
    gap: 10px;
    margin: 22px 0 12px !important;
}

.legacy-info-content .legacy-accordion__body h3::before {
    background: rgba(193, 33, 107, 0.82);
    content: "";
    flex: 0 0 auto;
    height: 15px;
    width: 3px;
}

.legacy-info-content .table-wrap {
    background: #ffffff !important;
    border: 1px solid rgba(86, 70, 102, 0.18);
    border-radius: 0 !important;
    margin-top: 16px;
    overflow-x: auto;
}

.legacy-info-content table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.legacy-info-content th {
    background: #25172e !important;
    border: 0 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    padding: 15px 16px;
    text-align: left;
}

.legacy-info-content td {
    background: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(86, 70, 102, 0.14) !important;
    color: #33283d !important;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 16px;
}

.legacy-info-content tr:nth-child(even) td {
    background: rgba(232, 226, 236, 0.72);
}

.legacy-info-content .bm3-synergy-wrap {
    overflow-x: auto;
}

.legacy-info-content .bm3-synergy-table {
    table-layout: fixed;
}

.legacy-info-content .bm3-synergy-table th:nth-child(1),
.legacy-info-content .bm3-synergy-table td:nth-child(1) {
    width: 13%;
    min-width: 120px;
}

.legacy-info-content .bm3-synergy-table th:nth-child(2),
.legacy-info-content .bm3-synergy-table td:nth-child(2) {
    width: 16%;
    min-width: 150px;
}

.legacy-info-content .bm3-synergy-table th:nth-child(3),
.legacy-info-content .bm3-synergy-table td:nth-child(3) {
    width: 71%;
}

.legacy-info-content .bm3-synergy-table th,
.legacy-info-content .bm3-synergy-table td {
    vertical-align: top;
}

.legacy-info-content .bm3-synergy-table td:nth-child(1) {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.legacy-info-content .bm3-synergy-table td:nth-child(2) {
    white-space: nowrap;
}

.legacy-info-message {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(193, 33, 107, 0.26);
    color: #5f5566;
    padding: 28px;
}

@media (max-width: 980px) {
    .war-info-hero,
    .war-info-grid,
    .war-info-detail,
    .war-guide-grid,
    .legacy-info-content .layout,
    .legacy-info-content .menu-grid {
        grid-template-columns: 1fr;
    }

    .legacy-info-content .content-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .legacy-info-content .search-panel,
    .legacy-info-content .range-header {
        grid-template-columns: 1fr;
    }

    .legacy-info-content .tools {
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .template-page .cabinet-container {
        grid-template-columns: 1fr;
    }

    .template-page .cabinet-sidebar {
        position: static;
    }

    .template-page .cabinet-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .template-page .cabinet__section > .card,
    .template-page .auth-required.card {
        padding: 28px 20px;
    }

    .template-page .cabinet-nav__list {
        grid-template-columns: 1fr;
    }

    .template-page .info-row {
        align-items: flex-start;
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .template-page .info-value {
        justify-self: start;
        text-align: left;
    }

    .template-page .profile-actions .btn {
        justify-content: center;
        width: 100%;
    }
}
