@font-face {
    font-display: swap;
    font-family: "Warland Trajan";
    font-style: normal;
    font-weight: 400;
    src: url("../template/fonts/TrajanPro-Regular.woff") format("woff");
}

@font-face {
    font-display: swap;
    font-family: "Warland Trajan";
    font-style: normal;
    font-weight: 700;
    src: url("../template/fonts/TrajanPro-Bold.woff") format("woff");
}

html {
    min-height: 100%;
}

body {
    background: #070a12 url("../template/images/bg_1.jpg") top center no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .header-swiper,
body > .newsContent,
body > .news,
body > .carousel {
    flex: 0 0 auto;
    width: 100%;
}

body > .template-page {
    flex: 1 0 auto;
    width: 100%;
}

.cabal-logo-text,
.cabal-footer-logo a {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-family: "Warland Trajan", Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    gap: 9px;
    letter-spacing: 1.1px;
    line-height: 1;
    min-height: 86px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 9px rgba(28, 15, 38, 0.5), 0 0 18px rgba(255, 255, 255, 0.55);
    transition: letter-spacing 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

.cabal-logo-text strong,
.cabal-footer-logo strong {
    color: #1680a8;
    font-size: 30px;
    font-weight: 700;
    transition: color 0.22s ease, text-shadow 0.22s ease;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(19, 20, 35, 0.34);
}

.cabal-logo-text:hover,
.cabal-footer-logo a:hover {
    color: #ffffff;
    letter-spacing: 1.8px;
    text-shadow: 0 4px 14px rgba(28, 15, 38, 0.5), 0 0 24px rgba(255, 255, 255, 0.78);
    transform: translateY(-2px);
}

.cabal-logo-text:hover strong,
.cabal-footer-logo a:hover strong {
    color: #24a9d1;
    text-shadow: 0 0 14px rgba(142, 217, 255, 0.75), 0 2px 9px rgba(19, 20, 35, 0.38);
}

.topPanel .menu a.active,
.topPanel .menu a:hover,
.topPanel-right a:hover {
    color: #9f1b59;
}

.topPanel .menu li a,
.langBlock .menu-a,
.game-start-top {
    font-family: "Warland Trajan", "Open Sans", Arial, "Noto Sans KR", sans-serif !important;
}

.topPanel .menu li a::first-letter,
.langBlock .menu-a:first-letter {
    font-size: inherit !important;
}

@media (min-width: 1091px) {
    .topPanel {
        height: 98px;
        justify-content: center;
        padding: 0 40px;
    }

    .topPanel > .buttonDrop,
    .topPanel > .btn.buttonDrop {
        display: none !important;
    }

    .topPanel-left {
        align-items: center;
        height: 98px;
        justify-content: space-between;
        left: 50%;
        margin: 0;
        max-width: 1280px;
        position: absolute;
        top: 0;
        transform: translateX(-50%);
        width: min(1280px, calc(100% - 360px));
    }

    .topPanel-right {
        align-items: center;
        height: 98px;
        position: absolute;
        right: 40px;
        top: 0;
    }

    .topPanel .menu {
        gap: clamp(24px, 2.7vw, 48px);
        margin-left: 0;
    }

    .topPanel .menu li {
        padding: 0;
    }

    .topPanel .menu li a {
        color: #211629;
        font-size: 17px;
        font-weight: 500;
        height: 98px;
        letter-spacing: 0.01em;
        line-height: 98px;
        padding: 0 12px;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .topPanel .menu li a::first-letter {
        font-size: inherit !important;
    }

    .langBlock,
    .game-start-top {
        height: 98px;
        line-height: 98px;
    }

    .langBlock .menu-a {
        font-size: 16px;
        font-weight: 500;
    }
}

@media (min-width: 1091px) and (max-width: 1500px) {
    .topPanel {
        padding-left: 28px;
        padding-right: 28px;
    }

    .topPanel-left {
        left: 28px;
        right: 180px;
        transform: none;
        width: auto;
        max-width: none;
    }

    .topPanel .menu {
        margin-left: 56px;
    }

    .topPanel-right {
        right: 28px;
    }
}

.header-swiper-info h2,
.header-swiper-info h3,
.carousel h2,
.carousel h3 {
    font-family: "Warland Trajan", Georgia, "Times New Roman", serif;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.gameStart,
.gameStart span,
.serverBlock .onlineBlock-info p,
.newsBlock h2,
.content-static-slide .swiperSlide-content p {
    font-family: "Warland Trajan", Georgia, "Times New Roman", serif;
    text-transform: uppercase;
}

.gameStart p {
    font-size: 14px;
}

.newsBlock h2 {
    font-weight: 700;
}

.header-swiper-info {
    max-width: 720px;
    isolation: isolate;
    padding-left: 0;
}

.header-swiper-info::before {
    display: none !important;
}

.header-swiper-info h2 {
    align-items: center;
    display: flex;
    gap: 12px;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 3px 14px rgba(255, 255, 255, 0.85);
}

.header-swiper-info h2::before {
    background: currentColor;
    border: 0;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 9px;
    opacity: 0.82;
    position: relative;
    top: -1px;
    transform: rotate(45deg);
    width: 9px;
}

.header-swiper-info h3 {
    align-items: center;
    display: flex;
    gap: 10px;
    max-width: 700px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: 0;
    text-shadow: 0 3px 16px rgba(255, 255, 255, 0.9);
}

.header-swiper-info h3::before {
    background: currentColor;
    border-radius: 50%;
    box-shadow: none;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 6px;
    opacity: 0.75;
    position: relative;
    top: -1px;
    width: 6px;
}

.header-swiper-info .learn-more {
    margin-top: 0;
    transform: translateY(34px);
}

.serverBlock .onlineBlock {
    align-items: center;
    background-position: left -8px center !important;
    box-sizing: border-box;
    justify-content: center;
    min-height: 138px;
    padding: 44px 70px 44px 150px;
}

.serverBlock .onlineBlock-info {
    margin-right: 24px;
    min-width: 150px;
    text-align: center;
    transform: translateX(-16px);
}

.serverBlock .onlineBlock-info p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 13px;
}

.serverBlock .server-date,
.serverBlock .server-online {
    color: #8ed9ff;
    display: block;
    font-family: "Warland Trajan", Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
}

.serverBlock .onlineBlock-about .about {
    box-sizing: border-box;
    justify-content: center;
    min-width: 138px;
    padding-left: 22px;
    padding-right: 22px;
}

.server-tools-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.server-tool-button {
    align-items: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 102px;
    padding: 24px 20px;
    position: relative;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.server-tool-button + .server-tool-button {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.server-tool-button::after {
    background: linear-gradient(90deg, #c1216b, #1680a8);
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    opacity: 0;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity 0.18s ease, width 0.18s ease;
    width: 56px;
}

.server-tool-button:hover {
    background: rgba(255, 255, 255, 0.035);
}

.server-tool-button:hover::after {
    opacity: 1;
    width: 136px;
}

.server-tool-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.server-tool-sub {
    color: #8ed9ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.personalBlock .pers-button--name {
    cursor: default;
    margin-bottom: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personalBlock:has(.personalBlock-actions) {
    padding-bottom: 36px;
    padding-top: 42px;
}

.personalBlock .personalBlock-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.personalBlock .personalBlock-actions a {
    background: rgba(17, 10, 19, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #82afd1;
    display: inline-flex;
    font-size: 13px;
    justify-content: center;
    min-width: 82px;
    padding: 7px 12px;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.personalBlock .personalBlock-actions a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(142, 217, 255, 0.35);
    color: #ffffff;
}

.personalBlock .personalBlock-actions .sign-up--logout {
    color: #f2b4cf;
}

.personalBlock .personalBlock-actions .sign-up--logout:hover {
    border-color: rgba(193, 33, 107, 0.42);
    color: #ffffff;
}

.carousel {
    overflow: hidden;
}

.carousel h3 {
    color: #b9b2c7;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.content-static-grid {
    align-items: start;
    display: grid;
    gap: clamp(14px, 2.1vw, 44px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    margin: 64px auto 0;
    max-width: 1830px;
    padding: 0 clamp(18px, 4.6vw, 72px) 120px;
    width: 100%;
}

.content-static-slide {
    color: #ffffff;
    display: block;
    aspect-ratio: 302 / 270;
    height: auto;
    min-width: 0;
    position: relative;
    text-align: center;
    text-decoration: none;
}

.content-static-slide .swiperSlide-content {
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.content-static-slide .swiperSlide-content::before {
    background:
        linear-gradient(180deg, rgba(18, 12, 24, 0) 34%, rgba(16, 10, 21, 0.72) 78%, rgba(12, 7, 16, 0.94) 100%),
        radial-gradient(circle at 50% 78%, rgba(193, 33, 107, 0.28), transparent 42%) !important;
    z-index: 3;
}

.content-static-slide .swiperSlide-content::after {
    z-index: 2;
}

.content-static-slide .swiperSlide-content p {
    align-items: center;
    background: rgba(18, 14, 24, 0.48);
    border: 0;
    box-shadow: none;
    color: #ffffff;
    display: flex;
    font-size: clamp(14px, 1.05vw, 19px);
    font-weight: 400;
    justify-content: center;
    left: 0;
    line-height: 1.1;
    min-height: 46px;
    padding: 0 clamp(8px, 1vw, 18px);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.58);
    transform: none;
    width: 100%;
    white-space: nowrap;
    z-index: 4;
}

.content-static-slide:hover .swiperSlide-content {
    filter: brightness(1.08);
}

.template-page {
    flex: 1 0 auto;
    min-height: 680px;
    padding: 145px 0 96px;
}

.template-page > .container {
    background: rgba(7, 10, 18, 0.82);
    border: 1px solid rgba(142, 217, 255, 0.16);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    padding: 34px;
}

.template-page a {
    color: #8ed9ff;
}

.template-page table,
.template-page .card,
.template-page .panel,
.template-page .ranking-card,
.template-page .download-card {
    background-color: rgba(16, 22, 36, 0.88);
}

.modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.72);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 2000;
}

.modal--show,
.modal--active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal__content {
    background: rgba(9, 14, 25, 0.98);
    border: 1px solid rgba(142, 217, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    color: #e9f1ff;
    max-height: calc(100vh - 48px);
    max-width: 620px;
    overflow: auto;
    padding: 30px;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.2s ease;
    width: 100%;
}

.modal--active .modal__content,
.modal--show .modal__content {
    transform: translateY(0);
}

.modal__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
}

.modal__header h2 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 42px 8px 0;
}

.modal__header p {
    color: #aab5ca;
    margin: 0 0 22px;
}

.form__field {
    margin-bottom: 16px;
}

.form__label {
    color: #dbe8ff;
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.form__input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #ffffff;
    min-height: 44px;
    padding: 0 13px;
    width: 100%;
}

.form__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form__footer .btn,
.modal .btn {
    background: #c1216b;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    position: static;
    text-transform: uppercase;
}

.modal .btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
}

.modal .small,
.modal small,
.checkbox-text {
    color: #aab5ca;
}

.checkbox-label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

#overlay {
    z-index: 1500;
}

.footerLogo img {
    display: none;
}

.footerLogo.cabal-footer-logo {
    margin-bottom: 18px;
}

.site-footer.footer {
    background:
        linear-gradient(180deg, rgba(31, 23, 40, 0.98), rgba(15, 12, 20, 0.98)),
        url("../template/images/footer-bg.jpg") center top / cover no-repeat !important;
    border-top: 1px solid rgba(193, 33, 107, 0.35) !important;
    clear: both;
    display: block !important;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    overflow: hidden;
    padding: 42px 24px 46px !important;
    position: static !important;
    width: 100%;
    z-index: auto !important;
}

.site-footer.footer::before {
    display: none !important;
}

.site-footer .container {
    height: auto !important;
}

.site-footer__inner {
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    max-width: 980px;
    text-align: center;
}

.site-footer__logo {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer__logo strong {
    color: #8ed9ff;
    margin-left: 6px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #ffffff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
}

.site-footer small {
    color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1024px) {
    .cabal-logo-text {
        min-height: 58px;
    }

    .template-page {
        padding-top: 105px;
    }

    .content-static-grid {
        gap: 22px;
        grid-template-columns: repeat(2, 302px);
        margin-top: 46px;
        max-width: 680px;
    }
}

@media (max-width: 680px) {
    .template-page > .container {
        padding: 22px 16px;
    }

    .content-static-grid {
        grid-template-columns: 1fr;
        padding: 0 28px;
    }

    .content-static-slide {
        margin: 0 auto;
        max-width: 302px;
        width: 100%;
    }
}

/* Mobile layout hardening for the Warland skin. */
@media (max-width: 680px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        word-break: keep-all;
    }

    .topPanel {
        height: 58px;
        padding: 0 12px;
    }

    .topPanel::after {
        background: rgba(196, 186, 203, 0.55);
    }

    .topPanel .btn.buttonDrop,
    .topPanel > .buttonDrop {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
        height: 42px;
        justify-content: center;
        margin: 0;
        left: 12px;
        position: absolute;
        top: 8px;
        width: 42px;
        z-index: 15;
    }

    .topPanel .btn.buttonDrop span,
    .topPanel > .buttonDrop span {
        background: #21172a;
        border-radius: 999px;
        display: block;
        height: 3px;
        margin: 0;
        width: 28px;
    }

    .topPanel .btn.buttonDrop.active,
    .topPanel > .buttonDrop.active {
        left: min(276px, calc(86vw - 44px));
        top: 8px;
    }

    .topPanel .btn.buttonDrop.active span,
    .topPanel > .buttonDrop.active span {
        background: #21172a;
        display: none;
        height: 3px;
        margin: 0;
        opacity: 1;
        transform: none;
        width: 24px;
    }

    .topPanel .btn.buttonDrop.active span:nth-child(1),
    .topPanel > .buttonDrop.active span:nth-child(1),
    .topPanel .btn.buttonDrop.active span:nth-child(3),
    .topPanel > .buttonDrop.active span:nth-child(3) {
        display: block;
        left: auto;
        position: absolute;
        top: 50%;
        transform-origin: left center;
    }

    .topPanel .btn.buttonDrop.active span:nth-child(1),
    .topPanel > .buttonDrop.active span:nth-child(1) {
        transform: translate(-7px, -1px) rotate(-35deg);
    }

    .topPanel .btn.buttonDrop.active span:nth-child(3),
    .topPanel > .buttonDrop.active span:nth-child(3) {
        bottom: auto;
        transform: translate(-7px, -1px) rotate(35deg);
    }

    .topPanel-right {
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .topPanel-right .langBlock {
        display: none;
    }

    .topPanel-right .game-start-top {
        border-radius: 999px;
        font-size: 12px;
        height: 36px;
        line-height: 36px;
        max-width: 132px;
        min-width: 0;
        overflow: hidden;
        padding: 0 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topPanel-left {
        max-width: min(320px, 86vw);
        width: min(320px, 86vw);
    }

    .topPanel-left.active {
        box-shadow: 18px 0 42px rgba(0, 0, 0, 0.22);
    }

    .topPanel .menu {
        margin-left: 0;
        width: calc(100% - 32px);
    }

    .topPanel .menu li {
        padding: 0;
    }

    .topPanel .menu li a {
        font-size: 14px;
        padding: 18px 0;
    }

    .template-page {
        padding-top: 76px;
    }

    .content,
    .template-page,
    .war-page,
    .site {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .header {
        padding-top: 330px;
    }

    .header-swiper {
        height: 360px;
        overflow: hidden;
    }

    .header-swiper .swiper-slide {
        overflow: hidden;
    }

    .header-swiper .swiper-slide.swiper-slide-active .header-swiper-info {
        left: 0;
        top: 76px;
    }

    .header-swiper-info {
        max-width: calc(100vw - 28px);
        padding-left: 14px;
    }

    .header-swiper-info::before {
        left: -14px;
        top: -16px;
        width: calc(100vw + 28px);
    }

    .header-swiper-info h2 {
        font-size: 23px;
    }

    .header-swiper-info h3 {
        font-size: 20px;
        max-width: calc(100vw - 42px);
    }

    .swiper-hero {
        bottom: auto;
        left: auto;
        max-height: 260px;
        max-width: min(76vw, 300px);
        right: 0;
        top: 104px;
        width: min(76vw, 300px);
    }

    .template-page > .container {
        max-width: 100%;
        padding: 18px 14px;
    }

    .template-page h1,
    .war-page-title,
    .legacy-info-content h1 {
        font-size: 34px !important;
        line-height: 1.15 !important;
    }

    .war-info-hero,
    .war-info-panel,
    .legacy-info-content .page-head,
    .legacy-info-content .content-head,
    .legacy-info-content .section,
    .legacy-info-content .panel,
    .legacy-info-content .note,
    .legacy-info-content .info-card {
        padding: 24px 18px;
    }

    .legacy-info-content .menu-grid {
        gap: 16px;
    }

    .legacy-info-content .card-inner {
        min-height: 0;
        padding: 0;
    }

    .legacy-info-content .card-top,
    .legacy-info-content .card-bottom,
    .legacy-info-content .info-row {
        align-items: flex-start;
        gap: 10px;
    }

    .legacy-info-content .card-top {
        flex-wrap: wrap;
    }

    .legacy-info-content .card-status {
        margin-left: 0;
        width: 100%;
    }

    .legacy-info-content .card-title {
        font-size: 25px !important;
        line-height: 1.25;
        margin-top: 20px !important;
    }

    .legacy-info-content .card-desc {
        font-size: 13px !important;
        line-height: 1.75;
        padding: 16px 14px;
    }

    .legacy-info-content .guide-pagination {
        gap: 8px;
        margin-top: 22px;
    }

    .legacy-info-content .guide-page-button {
        height: 38px;
        min-width: 38px;
        padding: 0 12px;
    }

    .legacy-info-content .quick-nav,
    .legacy-info-content .guide-nav {
        gap: 8px;
    }

    .legacy-info-content .quick-nav a,
    .legacy-info-content .guide-nav a {
        font-size: 12px;
        min-height: 38px;
        padding: 0 12px;
    }

    .legacy-info-content .legacy-accordion__summary {
        gap: 12px;
        padding: 18px;
    }

    .legacy-info-content .legacy-accordion__body {
        padding: 18px;
    }

    .legacy-info-content .legacy-accordion__summary h2,
    .legacy-info-content .legacy-accordion__body h3 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .template-page .cabinet__section > .card,
    .template-page .auth-required.card,
    .template-page .cabinet-sidebar,
    .template-page .cabinet-content {
        min-width: 0;
        width: 100%;
    }

    .template-page .cabinet-nav__item,
    .template-page .profile-actions .btn,
    .template-page .btn {
        white-space: normal;
    }

    .war-table-card {
        padding: 26px 14px;
    }

    .war-top-podium {
        gap: 12px;
    }

    .war-podium-card {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 16px;
    }

    .war-podium-card em {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    .war-podium-card strong {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .war-table-card .war-table-wrap {
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        padding: 0;
    }

    .war-table-card .war-ranking-table {
        border-spacing: 0 10px;
        display: block;
        min-width: 0;
        table-layout: auto;
        width: 100%;
    }

    .war-table-card .war-ranking-table thead,
    .war-table-card .war-ranking-table tbody {
        display: block;
        width: 100%;
    }

    .war-table-card .war-ranking-table tr {
        display: grid;
        gap: 0;
        grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
        width: 100%;
    }

    .war-table-card .war-ranking-table th,
    .war-table-card .war-ranking-table td {
        align-items: center;
        display: flex;
        font-size: 13px;
        justify-content: flex-start;
        min-height: 50px;
        min-width: 0;
        padding: 12px 10px;
        text-align: left;
        white-space: normal;
    }

    .war-table-card .war-ranking-table th:nth-child(1),
    .war-table-card .war-ranking-table td:nth-child(1),
    .war-table-card .war-ranking-table th:nth-child(3),
    .war-table-card .war-ranking-table td:nth-child(3),
    .war-table-card .war-ranking-table th:nth-child(4),
    .war-table-card .war-ranking-table td:nth-child(4),
    .war-table-card .war-ranking-table th:nth-child(8),
    .war-table-card .war-ranking-table td:nth-child(8),
    .war-table-card .war-ranking-table th:nth-child(9),
    .war-table-card .war-ranking-table td:nth-child(9) {
        display: none;
    }

    .war-table-card .war-ranking-table th:nth-child(2),
    .war-table-card .war-ranking-table td:nth-child(2) {
        order: 1;
    }

    .war-table-card .war-ranking-table th:nth-child(7),
    .war-table-card .war-ranking-table td:nth-child(7) {
        justify-content: flex-end;
        order: 2;
        text-align: right;
        white-space: nowrap;
    }

    .war-table-card .war-ranking-table th:nth-child(6),
    .war-table-card .war-ranking-table td:nth-child(6) {
        order: 3;
    }

    .war-table-card .war-ranking-table th:nth-child(5),
    .war-table-card .war-ranking-table td:nth-child(5) {
        justify-content: flex-end;
        order: 4;
        text-align: right;
    }

    .war-table-card .war-ranking-table td strong {
        max-width: 100%;
        overflow: visible;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }

    .war-table-card .war-ranking-table .war-power {
        font-size: 14px;
    }

    .war-table-card .war-class-badge,
    .war-table-card .war-nation {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .modal_div {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}

@media (max-width: 420px) {
    .template-page h1,
    .war-page-title,
    .legacy-info-content h1 {
        font-size: 30px !important;
    }

    .legacy-info-content .card-title {
        font-size: 23px !important;
    }

    .war-info-hero,
    .war-info-panel,
    .legacy-info-content .page-head,
    .legacy-info-content .content-head,
    .legacy-info-content .section,
    .legacy-info-content .panel,
    .legacy-info-content .note,
    .legacy-info-content .info-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Strong mobile fixes for home content and TOP 100 ranking. */
@media (max-width: 680px) {
    body > .carousel,
    .carousel {
        clear: both !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 58px 14px 70px !important;
        position: relative !important;
    }

    .carousel h2 {
        font-size: 40px !important;
        line-height: 1.12 !important;
        margin-bottom: 12px !important;
    }

    .carousel h3 {
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin: 0 auto 28px !important;
        max-width: 320px !important;
        padding: 0 6px !important;
    }

    .content-static-grid {
        display: grid !important;
        gap: 18px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        margin: 0 auto !important;
        max-width: 320px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .content-static-slide {
        display: block !important;
        height: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .content-static-slide .swiperSlide-content,
    .swiperSlide-content {
        height: 238px !important;
        max-width: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .site-footer.footer,
    .footer.site-footer {
        clear: both !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .war-table-card .war-table-wrap {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .war-table-card .war-ranking-table,
    .war-table-card .war-ranking-table thead,
    .war-table-card .war-ranking-table tbody,
    .war-table-card .war-ranking-table tr,
    .war-table-card .war-ranking-table th,
    .war-table-card .war-ranking-table td {
        height: auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        table-layout: auto !important;
        width: auto !important;
    }

    .war-table-card .war-ranking-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    .war-table-card .war-ranking-table thead {
        display: none !important;
    }

    .war-table-card .war-ranking-table tbody {
        display: grid !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .war-table-card .war-ranking-table tr {
        align-items: center !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border: 1px solid rgba(193, 33, 107, 0.18) !important;
        box-shadow: 0 10px 24px rgba(50, 38, 64, 0.1) !important;
        display: grid !important;
        gap: 6px !important;
        grid-template-columns: minmax(92px, 1.3fr) minmax(76px, 1fr) minmax(52px, 0.7fr) minmax(42px, 0.56fr) !important;
        overflow: hidden !important;
        padding: 12px 10px !important;
        width: 100% !important;
    }

    .war-table-card .war-ranking-table th,
    .war-table-card .war-ranking-table td {
        background: transparent !important;
        border: 0 !important;
        color: #25172e !important;
        display: none !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        padding: 0 !important;
        text-align: left !important;
        vertical-align: top !important;
        white-space: nowrap !important;
    }

    .war-table-card .war-ranking-table td:nth-child(2),
    .war-table-card .war-ranking-table td:nth-child(5),
    .war-table-card .war-ranking-table td:nth-child(6),
    .war-table-card .war-ranking-table td:nth-child(7) {
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        justify-content: flex-start !important;
    }

    .war-table-card .war-ranking-table td:nth-child(2) {
        grid-column: auto !important;
        padding-bottom: 0 !important;
    }

    .war-table-card .war-ranking-table td:nth-child(2)::before {
        color: #c1216b;
        content: "닉네임";
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0;
    }

    .war-table-card .war-ranking-table td:nth-child(7)::before {
        color: #c1216b;
        content: "종합 전투력";
        font-size: 11px;
        font-weight: 900;
    }

    .war-table-card .war-ranking-table td:nth-child(6)::before {
        color: #c1216b;
        content: "국가";
        font-size: 11px;
        font-weight: 900;
    }

    .war-table-card .war-ranking-table td:nth-child(5)::before {
        color: #c1216b;
        content: "직업";
        font-size: 11px;
        font-weight: 900;
    }

    .war-table-card .war-ranking-table td strong {
        color: #21172a !important;
        display: block !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        overflow-wrap: normal !important;
        text-align: left !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }

    .war-table-card .war-ranking-table .war-power,
    .war-table-card .war-ranking-table td:nth-child(7) {
        color: #1282aa !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        overflow: hidden !important;
        overflow-wrap: normal !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .war-table-card .war-class-badge,
    .war-table-card .war-nation {
        align-self: flex-start !important;
        display: inline-flex !important;
        font-size: 11px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        overflow-wrap: normal !important;
        padding: 5px 7px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 420px) {
    .war-table-card .war-ranking-table tr {
        grid-template-columns: minmax(78px, 1.12fr) minmax(72px, 1fr) minmax(48px, 0.68fr) minmax(38px, 0.52fr) !important;
        gap: 4px !important;
        padding: 10px 8px !important;
    }

    .war-table-card .war-ranking-table td strong {
        font-size: 14px !important;
    }

    .war-table-card .war-ranking-table .war-power,
    .war-table-card .war-ranking-table td:nth-child(7) {
        font-size: 12px !important;
    }
}
