.anchor {
    width: 180px;
    position: fixed;
    right: -180px;
    z-index: 99;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s;
}

.anchor.open {
    right: 0;
}

.anchor.open .i-txt {
    transform: rotate(180deg);
}

.anchor .btn-download-dk {
    margin-left: 0;
}

.anchor .btn-download-dk .btn-download {
    width: 180px;
    height: 63px;
    background: url(../images/btn-download.jpg);
    background-size: 100% 100%;
}

.anchor .btn-download-dk .btn-download:hover {
    background: url(../images/btn-download-hover.jpg);
    background-size: 100% 100%;
}

.link-group {
    width: 180px;
    height: 178px;
    background: url(../images/bg-link-nav-right.png) no-repeat;
}

.link-group a {
    width: 50%;
    height: 50%;
    float: left;
    text-align: center;
    padding-top: 58px;
    color: #fff;
}

.link-group a:hover {
    background: url(../home.html) no-repeat;
    background-size: contain;
}

.link-group a:nth-child(3),
.link-group a:nth-child(4) {
    padding-top: 50px;
}

.box-giftcode {
    width: 180px;
    height: 217px;
    background: url(../home.html);
    margin-top: 4px;
}

.box-giftcode .tit-bgc {
    line-height: 1.2;
    margin-left: 62px;
    padding-top: 17px;
}

.go-top {
    cursor: pointer;
    width: 49px;
    height: 129px;
    background: url(../images/bg-go-top.png);
    margin: 5px auto 0;
}

.i-control {
    cursor: pointer;
    position: absolute;
    top: 63px;
    left: -27px;
    height: 90px;
    width: 27px;
    background: url(../images/bg-control.png) 50%/100% 100% no-repeat;
}

.i-control .i-txt {
    margin-top: 19px;
    margin-left: 3px;
    height: 54px;
    width: 21px;
    background: url(../images/icon-close-nav-right.png) 50%/100% 100% no-repeat;
    display: block;
    transform: rotate(0deg);
}

.i-control.i-control-open .i-txt {
    transform: rotate(180deg);
}

body {
    background: #c6e6f5 url(../img/background/main-bg-4.png) top center no-repeat;
    background-size: auto;
}

body.has-video-bg {
    background: transparent !important;
}

.no-content {
    padding: 10.525rem 1rem;
    text-align: center;
    font-size: 1.25rem;
    color: #343a40;
}

.download-btn,
.game-payment {
    display: none;
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    flex: 1 0 auto;
}

footer,
.custom-main-footer {
    margin-top: auto;
    flex-shrink: 0;
    min-height: 5rem;
    background-color: #1a1a1a;
    color: #888;
    padding: 20px 0;
    border-top: none;
}

footer .container,
.custom-main-footer .container {
    position: relative;
    height: 100%;
}

@font-face {
    font-family: 'Koulen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Koulen-Regular.woff2') format('woff2');
    unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

/* Public fantasy navigation */
#homepage-header {
    background: transparent;
    padding: 12px 16px 0;
    position: relative;
    z-index: 20;
}

#homepage-header .homepage-nav-shell {
    align-items: flex-start;
    display: flex;
    max-width: 1280px;
}

#homepage-header .navbar-brand {
    align-items: center;
    display: flex;
    flex: 0 0 220px;
    height: 112px;
    justify-content: center;
    margin: 0 2px 0 0;
    padding: 0;
    position: relative;
    width: auto;
    z-index: 2;
}

#homepage-header .navbar-brand img {
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.55));
    max-height: 92px;
    max-width: 210px;
    object-fit: contain;
}

#homepage-header .homepage-menu-collapse {
    flex: 1 1 auto;
    justify-content: center;
}

#homepage-header .homepage-menu-frame {
    aspect-ratio: 1453 / 224;
    background: url('../img/menu/menu-bar.png') center / contain no-repeat;
    filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.42));
    max-width: 960px;
    position: relative;
    width: 100%;
}

#homepage-header .homepage-menu-list {
    align-items: stretch;
    bottom: 40%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    left: 18.5%;
    margin: 0;
    position: absolute;
    right: 18.5%;
    top: 28.5%;
    transform: translateY(9px);
}

#homepage-header .homepage-menu-list .nav-item {
    align-items: stretch;
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    position: relative;
}

#homepage-header .homepage-menu-list .nav-item + .nav-item::before {
    background: linear-gradient(to bottom, transparent, rgba(223, 193, 119, 0.7), transparent);
    content: "";
    height: 54%;
    left: 0;
    position: absolute;
    top: 23%;
    width: 1px;
}

#homepage-header .homepage-menu-list .nav-link {
    align-items: center;
    color: #f8e9bd;
    display: flex;
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.1;
    overflow: hidden;
    padding: 0 9px;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.85);
    text-transform: uppercase;
    transition: color 150ms ease, text-shadow 150ms ease;
    white-space: nowrap;
    width: 100%;
}

#homepage-header .homepage-menu-list .nav-link:hover,
#homepage-header .homepage-menu-list .nav-link:focus-visible,
#homepage-header .homepage-menu-list .nav-link.active {
    color: #fff8d8;
    text-decoration: none;
    text-shadow: 0 0 7px rgba(255, 220, 124, 0.95), 0 2px 3px rgba(0, 0, 0, 0.85);
}

#homepage-header .homepage-menu-list .nav-link:focus-visible {
    outline: 2px solid #f3d982;
    outline-offset: -3px;
}

#homepage-header .homepage-menu-list .nav-link.km-text {
    font-family: 'Koulen', 'Hanuman', 'Noto Sans Khmer', serif;
    font-weight: 400;
}

#homepage-header .homepage-menu-toggle {
    background: rgba(5, 36, 55, 0.94);
    border: 1px solid #c8aa61;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    height: 42px;
    margin-top: 25px;
    padding: 9px 10px;
    width: 46px;
}

#homepage-header .homepage-menu-toggle__line {
    background: #f2dda1;
    display: block;
    height: 2px;
    margin: 4px 0;
    width: 24px;
}

@media (min-width: 992px) {
    #homepage-header .homepage-menu-collapse {
        transform: translate(2rem, 20rem);
    }
}

@media (max-width: 991.98px) {
    #homepage-header {
        padding: 8px 14px 0;
    }

    #homepage-header .homepage-nav-shell {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #homepage-header .navbar-brand {
        flex-basis: 180px;
        height: 92px;
        justify-content: flex-start;
    }

    #homepage-header .navbar-brand img {
        max-height: 78px;
        max-width: 175px;
    }

    #homepage-header .homepage-menu-collapse {
        flex-basis: 100%;
        transform: none;
        width: 100%;
    }

    #homepage-header .homepage-menu-frame {
        aspect-ratio: auto;
        background: linear-gradient(180deg, rgba(7, 54, 78, 0.98), rgba(2, 28, 45, 0.98));
        border: 1px solid #b99a54;
        border-radius: 4px;
        filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
        margin: 6px 0 12px;
        max-width: none;
        padding: 7px;
    }

    #homepage-header .homepage-menu-list {
        display: block;
        position: static;
        transform: none;
    }

    #homepage-header .homepage-menu-list .nav-item {
        display: block;
    }

    #homepage-header .homepage-menu-list .nav-item + .nav-item::before {
        background: rgba(212, 182, 106, 0.24);
        height: 1px;
        left: 12px;
        right: 12px;
        top: 0;
        width: auto;
    }

    #homepage-header .homepage-menu-list .nav-link {
        font-size: 13px;
        justify-content: flex-start;
        min-height: 42px;
        padding: 10px 14px;
        text-align: left;
    }

}

.custom-main-footer .footer-content {
    gap: 22px;
}

.custom-main-footer .footer-logos {
    border-right: 1px solid #333;
    gap: 15px;
    flex: 0 0 auto;
    min-width: 0;
}

.custom-main-footer .footer-logo-img {
    display: block;
    flex: 0 0 auto;
    max-width: 360px;
    max-height: 160px;
    object-fit: contain;
}

.custom-main-footer .footer-logo-separator {
    width: 1px;
    height: 38px;
    background: #444;
    display: block;
    flex: 0 0 auto;
}

footer .footer-content .text-muted,
.custom-main-footer .footer-content .text-muted {
    color: #888 !important;
    font-size: 0.75rem;
}

.custom-main-footer .footer-links a {
    transition: color 0.2s;
}

.custom-main-footer .footer-links a:hover {
    color: #fff !important;
}

.custom-main-footer .lang-selector:hover .lang-selector-btn {
    border-color: #888 !important;
    color: #ccc !important;
}

.custom-main-footer .lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 5px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 120px;
    padding: 5px 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.custom-main-footer .lang-selector:hover .lang-dropdown {
    display: block;
}

.custom-main-footer .lang-dropdown a {
    color: #888 !important;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.2s;
}

.custom-main-footer .lang-dropdown a:hover {
    color: #fff !important;
    background-color: #2a2a2a;
}

@media (max-width: 767px) {
    .custom-main-footer .footer-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px;
    }

    .custom-main-footer .footer-logos {
        border-right: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
        flex-wrap: wrap;
    }

    .custom-main-footer .footer-text {
        margin-left: 0 !important;
    }

    .custom-main-footer .footer-right-info {
        padding-right: 0 !important;
    }
}

#homepage-header {
    margin-bottom: 1rem;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f7f5f0;
    border-left: 1px solid #e1dcd4;
}

::-webkit-scrollbar-thumb {
    background: #d4ccbd;
    border-radius: 6px;
    border: 3px solid #f7f5f0;
    /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #a39587;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 50px;
    right: 40px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

#back-to-top img {
    width: 60px;
    /* Adjusts nicely for the long keychain style image */
    drop-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* ============================================================
   MUSIC PLAYER ANIMATION
   ============================================================ */
.music-trigger {
    position: fixed;
    top: 60px;
    right: 60px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ceab60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.music-trigger i {
    color: #f7df8f;
    font-size: 18px;
    transition: color 0.3s;
}

@keyframes spinRound {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.music-trigger.playing i {
    display: inline-block;
    animation: spinRound 4s linear infinite;
}

.music-trigger.muted {
    border-color: #888;
    animation: none;
    background: rgba(0, 0, 0, 0.6);
}

.music-trigger.muted i {
    color: #888;
    position: relative;
}

/* Slash indicating mute */
.music-trigger.muted i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    right: -5px;
    height: 2px;
    background: #db4848;
    transform: rotate(45deg);
}

.music-trigger:hover {
    box-shadow: 0 0 15px rgba(206, 171, 96, 0.8);
}

.home-content {
    position: relative;
    overflow: hidden;
}

.home-content__left .account {
    margin: 0.5rem 1px;
}

.home-content__left .account-image-button {
    background: transparent;
    border: 0;
    display: block;
    line-height: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.logout-image-form {
    margin: 0;
}

.logout-link-form {
    display: contents;
}

.logout-link-form button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

.home-content__left .account-image-button img {
    display: block;
    height: auto;
    width: 100%;
}

.home-content__left .account-image-button__active {
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 120ms ease;
}

.home-content__left .account-image-button:hover .account-image-button__active,
.home-content__left .account-image-button:focus-visible .account-image-button__active,
.home-content__left .account-image-button:active .account-image-button__active {
    opacity: 1;
}

.home-content__left .account-image-button:focus-visible {
    outline: 2px solid #f3d982;
    outline-offset: 2px;
    z-index: 1;
}

.home-content__left .account__loggedin {
    background-color: #2d233e;
    color: #ccc;
    padding: 1rem;
    border-radius: 0.25rem;
}

.home-content__left .account .btn {
    background: linear-gradient(180deg, #c63921, #b5341e);
    border-radius: 0;
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    border: none;
    font-size: 0.875rem;
}

.home-content__left .account .btn:hover {
    background: linear-gradient(180deg, #dd4c33, #d33d23);
    transition: background-color 0.3s ease-in-out;
}

.home-content__left .game-payment:hover {
    opacity: 0.8;
}

.home-content__left .fanpage {
    background: #fff;
}

.home-content__left .main-feature {
    margin: 1rem 0;
    background: #fafafa;
}

.home-content__left .main-feature__header {
    padding: 1rem;
    background: linear-gradient(270deg, #004881, #00364d);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.home-content__left .main-feature li {
    border-right: 1px solid #e9e9e9;
    border-top: 1px solid #e9e9e9;
    width: 50%;
    font-weight: 500;
    text-align: center;
    padding: 1rem 0.5rem;
}

.home-content__left .main-feature li>a {
    color: #343a40;
}

.home-content__left .main-feature li>a:hover {
    color: #d4152f;
    transition: 0.3s ease-out;
}

.home-content .banner img {
    border-radius: 0.25rem 0.25rem 0 0;
}

#bannerCarousel .carousel-inner {
    aspect-ratio: 868 / 350;
}

#bannerCarousel .carousel-item {
    height: 100%;
}

#bannerCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.home-content .articles {
    border-radius: 0 0 0.25rem 0.25rem;
    padding: 0.25rem;
    background-color: #fff;
}

.home-content .articles .badge {
    min-width: 4.25rem;
}

.home-content .articles nav {
    font-size: 0.75rem;
    position: relative;
}

.home-content .articles nav .btn-view-more {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 0.875rem;
}

.home-content .articles li {
    border-color: #eee;
    border-style: dashed;
    padding-left: 0.5rem;
    align-items: center;
}

.home-content .articles li.hot-post a {
    margin: 0 auto;
    padding: 1rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.home-content .articles li:hover {
    font-weight: 600;
}

.home-content .articles__link {
    max-width: 80%;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}

.home-content .articles__link.hot {
    font-weight: 600;
    color: #c00000;
}

.home-content .articles__link .tag {
    min-width: 3.5rem;
    border: 1px solid;
    padding: 0.1rem 0.3rem !important;
    margin-right: 0.5rem;
    border-radius: 0.125rem;
    font-weight: 400;
    font-size: 0.75rem;
    background-color: transparent !important;
    display: inline-block;
    text-align: center;
}

.home-content .articles__link .tag.tag-announce {
    color: #f39c12 !important;
    border-color: #f39c12 !important;
}

.home-content .articles__link .tag.tag-news {
    color: #7f8c8d !important;
    border-color: #7f8c8d !important;
}

.home-content .articles__link .tag.tag-event {
    color: #3498db !important;
    border-color: #3498db !important;
}

.home-content .articles .published-time {
    color: #555;
    font-size: 0.85rem;
}

.home-content .articles .nav-tabs {
    border-bottom: 1px solid #eaeaec;
}

.home-content .articles .nav-tabs .nav-item {
    background-color: transparent;
    color: #000;
    border: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: -1px;
}

.home-content .articles .nav-tabs .nav-item.active {
    color: #c00000;
    border-bottom: 2px solid #c00000;
}

.home-content .articles .nav-tabs .nav-item.active::after {
    content: "◆";
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #c00000;
    background: #fff;
    padding: 0 2px;
    line-height: 1;
}

.home-content .factions .carousel-indicators {
    position: relative;
    margin: 0;
}

.home-content .factions .carousel-indicators li {
    flex: 0 0 20%;
    max-width: 20%;
    width: auto;
    height: auto;
    background: 0 0;
    text-indent: unset;
    margin: 0;
    padding: 0;
    color: #000;
    opacity: 0.9;
    border-bottom: 1px solid #eaeaec;
}

.home-content .factions .carousel-indicators li.active {
    color: #d4152f;
    font-weight: 500;
    opacity: 1;
}

.home-content .factions .carousel-indicators li.active div {
    font-weight: 500;
}

.home-content .factions .carousel-indicators li.active:after {
    background-color: #d4152f;
    width: 56px;
    height: 3px;
    left: 15%;
    bottom: -2px;
    position: absolute;
    content: "";
}

.home-content .factions .carousel-indicators li div {
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem 0.5rem;
}

.home-content .factions .faction-name {
    position: absolute;
    background: url(../name-bg.html);
}

.home-content .factions__desc {
    background-size: 20%;
    padding: 1rem;
    min-height: 200px;
}

.home-content .factions__desc .faction-title {
    font-weight: 500;
    font-size: 1.25rem;
    color: #333;
}

.home-content .factions__desc .faction-summary {
    font-size: 0.75rem;
}

.article-detail {
    background-size: contain;
    background: #fff repeat-y;
    border-radius: 0.25rem;
}

.article-detail .btn-download-game {
    width: 360px;
    color: #fff;
    text-indent: 2rem;
    background: url(../images/article-download.png) no-repeat 32px 22px #cb942d;
    text-decoration: none;
}

.article-detail .btn-download-game:hover {
    background-color: #f7b63d;
}

.article-detail .breadcrumb {
    background: linear-gradient(270deg, #bd132a, #8e0e20);
}

.article-detail .breadcrumb .breadcrumb-item {
    font-weight: 500;
}

.article-detail .breadcrumb .breadcrumb-item.active {
    color: #fff;
    opacity: 0.9;
    font-weight: 400;
}

.article-detail .breadcrumb a {
    color: #fff;
}

.article-detail .breadcrumb a:hover {
    opacity: 0.8;
}

.article-detail h1 {
    font-size: 1.5rem;
    color: #343a40;
}

.article-detail time {
    font-size: 0.875rem;
    font-weight: 400;
}

.article-detail .list-group-item {
    border-color: #eee;
    border-style: dashed;
}

.article-detail .list-group-item:hover:not(.text-muted),
.article-detail .list-group-item:hover:not(.text-muted) .published-time {
    font-weight: 500;
}

.article-detail .detail-content {
    font-size: 0.875rem;
}

.article-detail .detail-content .main-content img {
    max-width: 100%;
    height: auto;
}

.article-detail .detail-content nav {
    background: linear-gradient(270deg, #002b4e, #002433);
    margin-bottom: 1rem;
}

.article-detail .detail-content nav .nav-item {
    border-radius: 0;
    border-color: #002b4e;
    font-weight: 500;
    color: #fff;
}

.article-detail .detail-content nav .nav-item.active {
    color: #002433;
}

.article-detail .detail-content ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.article-detail .detail-content ul li {
    background: url(../images/icon-li.png) 0 8px no-repeat;
    padding-left: 1rem;
    list-style-type: none;
}

.article-detail .detail-content h3 {
    background: url(../images/icon-h3.png) no-repeat 0 3px;
    clear: both;
    text-indent: 1.5rem;
    color: #d4152f;
    margin-bottom: 1rem;
    font-weight: 600;
    margin-left: -0.5rem;
}

.article-detail .detail-content h5 {
    text-indent: 1.5rem;
    background: url(../images/icon-h5.png) no-repeat 0 4px;
    font-size: 1rem;
    color: #343a40;
    font-weight: 600;
}

.article-detail .detail-content table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background: #fff;
    border-collapse: collapse;
}

.article-detail .detail-content table tbody tr:nth-child(odd) {
    background: #fffcf6;
}

.article-detail .detail-content table tbody tr:nth-child(2n) {
    background: #fff;
}

.article-detail .detail-content table thead th {
    color: #fff;
    background-color: maroon;
    border-color: #c3a783;
    vertical-align: middle;
    text-align: center;
    border-bottom: 2px solid #c3a783;
}

.article-detail .detail-content table td,
.article-detail .detail-content table th {
    padding: 0.75rem;
    border: 1px solid #c3a783;
    vertical-align: middle;
}

.article-detail .detail-content table ul {
    margin-bottom: 0.5rem;
}

.article-detail .detail-content table a {
    color: #008dff;
}

.article-detail .detail-content table a:hover {
    text-decoration: underline;
}

.article-detail article {
    position: relative;
}

#goTop {
    position: fixed;
    width: 2rem;
    height: 2rem;
    background: #004881;
    box-shadow: 0 2px 5px #212529;
    right: 1rem;
    bottom: 30%;
    text-align: center;
    border-radius: 55%;
    color: #fff;
    opacity: 0.8;
}

#goTop:hover {
    opacity: 1;
}

#goTop i {
    top: 0.25rem;
    position: relative;
}

@media (min-width: 576px) {

    .download-btn,
    .game-payment {
        display: block;
    }

    .navbar-brand>img.small {
        width: 128px;
    }

    .home-content .articles li,
    .home-content .articles nav {
        font-size: 1rem;
    }

    .home-content .articles__link {
        max-width: 85%;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    #homepage-header {
        margin-bottom: 16rem;
    }
}

@media (min-width: 1200px) {
    .home-content .factions .carousel-indicators li {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }

    #homepage-header .navbar-dark {
        margin-top: 0.25rem;
    }

    #homepage-header .navbar li a {
        text-transform: uppercase;
        font-size: 1rem;
    }

    .wrapper__inner {
        background-size: auto;
    }
}

@media (max-width: 1199.98px) {
    body {
        background-size: cover;
    }
}

@media (max-width: 767.98px) {
    .article-detail .detail-content table {
        display: block;
        overflow-x: auto;
    }
}

/* ============================================================
   FACTIONS SECTION — jw.xoyo.com Reference Design
   ============================================================ */

/* === Section Container === */
.factions-section {
    background: url(../img/bg-char.png) center top / cover no-repeat;
    min-height: 620px;
    position: relative;
    margin-top: 40px;
    /* Small nice gap requested by user */
    overflow: hidden;
    padding: 0;
}

.factions-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 10;
    height: 100%;
}

/* === Tabs Navigation === */
.factions-tabs-nav {
    position: relative;
    border-bottom: 1px solid rgba(180, 160, 140, 0.4);
    padding-top: 20px;
}

.factions-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 15;
}

.faction-tab-item {
    position: relative;
    padding: 12px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.02em;
}

.faction-tab-item:hover {
    color: #c00000;
}

.faction-tab-item.active {
    color: #c00000;
}

/* Animated indicator bar (uses active.png) */
.factions-tab-indicator {
    position: absolute;
    bottom: -6px;
    /* Adjusted to overlap border precisely, considering image transparency padding */
    height: auto;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.factions-tab-indicator .indicator-img {
    display: block;
    width: 60px;
    /* Reference has a specific width for the icon, center it */
    height: auto;
    margin: 0 auto;
}

/* === Content Area (Panels) === */
.factions-content-area {
    position: relative;
    width: 100%;
    min-height: 600px;
}

/* Each panel is absolutely positioned, layered via opacity */
.faction-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.faction-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

/* === Character Image (Left Side) === */
.faction-char-wrapper {
    position: relative;
    width: 50%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom to let it overflow down */
}

.faction-char-img {
    position: absolute;
    bottom: -200px;
    height: 850px;
    max-height: none;
    width: auto;
    max-width: none;
    z-index: 5;
    object-fit: contain;
    filter: drop-shadow(4px 8px 16px rgba(0, 0, 0, 0.12));
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faction-panel.active .faction-char-img {
    animation: charSlideIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes charSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* === Character Info (Right Side) === */
.faction-info-wrapper {
    width: 50%;
    padding: 50px 20px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.faction-info-top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Vertical Name Tag (using index-layer-85.png) */
.faction-name-tag {
    width: 48px;
    min-width: 48px;
    height: 160px;
    background: url(../img/index-layer-85.png) center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 28px;
    flex-shrink: 0;
}

.faction-name-tag span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0 4px;
}

/* Specs & Description area */
.faction-info-details {
    flex: 1;
    padding-top: 4px;
    max-width: 400px;
}

.faction-spec-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.spec-badge {
    padding: 7px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.spec-badge.primary {
    background-color: #c7565b;
    border-color: #c7565b;
}

.spec-badge.secondary {
    background-color: transparent;
    color: #8b6e6e;
    border-color: #b5a09a;
}

.spec-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.faction-desc-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #bbb 0%, transparent 100%);
    margin: 12px 0 16px 0;
}

.faction-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Stats / Weapon / Skills */
.faction-stats {
    padding-left: 76px;
    margin-top: 8px;
}

.faction-stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #444;
}

.stat-label {
    font-weight: 700;
    color: #333;
    margin-right: 8px;
    white-space: nowrap;
}

.stat-value {
    color: #555;
}

.faction-skill-icons-row {
    margin-top: 8px;
}

.faction-skill-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Skill Circles */
.factions-section .skill-circle {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4c4b0 0%, #c9b89a 100%);
    border: 3px solid #b09070;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.factions-section .skill-circle:hover {
    transform: scale(1.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(180, 130, 80, 0.3);
}

/* ============================================================
   RESPONSIVE — Factions Section
   ============================================================ */
@media (max-width: 991.98px) {
    .factions-section {
        min-height: auto;
    }

    .factions-tabs-list {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .faction-tab-item {
        font-size: 0.92rem;
        padding: 10px 14px;
    }

    .faction-panel {
        flex-direction: column;
    }

    .faction-panel.active {
        position: relative;
    }

    .faction-char-wrapper {
        width: 100%;
        min-height: 380px;
    }

    .faction-char-img {
        max-height: 400px;
        bottom: 0;
    }

    .faction-info-wrapper {
        width: 100%;
        padding: 20px 15px 30px;
    }

    .faction-stats {
        padding-left: 0;
    }

    .factions-content-area {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .factions-tabs-nav {
        padding-top: 10px;
    }

    .faction-tab-item {
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .faction-char-wrapper {
        min-height: 300px;
    }

    .faction-char-img {
        max-height: 320px;
    }

    .faction-name-tag {
        width: 36px;
        min-width: 36px;
        height: 120px;
        margin-right: 16px;
    }

    .faction-name-tag span {
        font-size: 0.75rem;
    }

    .spec-badge {
        font-size: 0.82rem;
        padding: 5px 12px;
    }

    .faction-desc {
        font-size: 0.85rem;
    }

    .faction-info-details {
        max-width: 100%;
    }

    .factions-section .skill-circle {
        width: 40px;
        height: 40px;
    }
}

/* Scrollbar for tabs on mobile */
.factions-tabs-list::-webkit-scrollbar {
    height: 3px;
}

.factions-tabs-list::-webkit-scrollbar-thumb {
    background-color: rgba(192, 0, 0, 0.3);
    border-radius: 4px;
}

/* ============================================================
   BOTTOM FEATURES SECTION (Customer Support, Info, Leaderboard)
   ============================================================ */
.bottom-features-section {
    background-color: #fffefb;
    /* Fallback solid beige/white to match the paper */
    background-image: url('../img/index-layer-71.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: auto;
    position: relative;
    z-index: 10;
}

.bottom-feature-box {
    background: #f7f5f0;
    padding: 20px 25px;
    height: 100%;
    position: relative;
    min-height: 380px;
    border: 1px solid #e1dcd4;
}

.bottom-feature-box .feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #433e38;
    margin: 0;
    display: flex;
    align-items: center;
}

.bottom-feature-box .title-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #d4594c;
    box-sizing: content-box;
    outline: 2px solid #e19088;
    margin-right: 12px;
}

/* Column 1 */
.support-avatar img {
    border-radius: 50%;
    border: 2px solid #edafaa;
    width: 80px;
    height: 80px;
    box-shadow: 0 0 0 2px #fff inset;
}

.phone-number {
    font-size: 1.6rem;
    font-weight: 500;
    color: #404040;
    margin-bottom: 2px;
}

.support-links .bullet {
    color: #a39587;
    font-size: 10px;
    margin-right: 4px;
}

.support-links a {
    color: #555 !important;
}

.support-links a:hover {
    color: #c00000 !important;
}

.btn-support-online {
    background: #e25841;
    /* reddish orange */
    color: #fff;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 5px rgba(226, 88, 65, 0.4);
}

.btn-support-online:hover {
    background: #d14730;
    color: #fff;
}

.btn-support-vip {
    background: #eebd3c;
    /* yellow orange */
    color: #fff;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 5px rgba(238, 189, 60, 0.4);
}

.btn-support-vip:hover {
    background: #daaa2b;
    color: #fff;
}

/* Column 2 */
.game-info-list li {
    border-bottom: 1px dashed #d6cfc7;
}

.game-info-list li:last-child {
    border-bottom: none;
}

.game-info-list .info-links a {
    color: #887f76 !important;
    font-size: 13px;
    display: inline-block;
    text-align: center;
    transition: color 0.2s;
}

.game-info-list .info-links a:hover {
    color: #c00000 !important;
}

/* Column 3 */
.top-50-ribbon {
    position: absolute;
    right: 20px;
    top: -5px;
    z-index: 10;
}

.leaderboard-tabs .l-tab {
    background: #d6cfc7;
    color: #726b63;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 2px;
}

.leaderboard-tabs .l-tab.active {
    background: #eadecd;
    color: #63574c;
    font-weight: bold;
}

.leardboard-box table {
    background: #eadecd;
    font-size: 13px;
    margin-bottom: 0;
}

.leardboard-box table th {
    border: none;
    border-bottom: 2px solid #d4ccbd;
    color: #63574c;
    font-weight: bold;
    padding: 8px 4px;
}

.leardboard-box table td {
    border: none;
    padding: 6px 4px;
    color: #333;
    vertical-align: middle;
}

.leardboard-box table tbody tr {
    background: rgba(255, 255, 255, 0.4);
}

.leardboard-box table tbody tr.even {
    background: transparent;
}

.leardboard-box table td img {
    margin: 0 auto;
    display: block;
}

.l-pagination {
    background: #eadecd;
    padding: 6px 0 10px 0;
}

.l-pagination span {
    display: inline-block;
    margin: 0 1px;
    color: #887f76;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.l-pagination span:hover,
.l-pagination span.active {
    color: #4a4237;
    background: #fff;
    padding: 0 4px;
}

.l-pagination span.page-arrow,
.l-pagination span.page-arrow:hover {
    background: transparent;
    color: #887f76;
    font-weight: normal;
}

.l-pagination span.page-arrow:hover {
    color: #4a4237;
}

.download-page {
    padding-bottom: 60px;
}

.download-panel {
    background: #fff;
    min-height: 640px;
    box-shadow: 0 8px 24px rgba(50, 44, 37, 0.08);
}

.download-tabs {
    display: flex;
    background: #e7e7e7;
    border-bottom: 1px solid #d6d6d6;
}

.download-tab {
    min-width: 190px;
    padding: 18px 24px;
    text-align: center;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-right: 1px solid #d8d8d8;
    position: relative;
}

.download-tab:hover,
.download-tab.active {
    color: #1d1d1d;
    background: #fff;
    text-decoration: none;
}

.download-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 58px;
    height: 2px;
    background: #c78332;
    transform: translateX(-50%);
}

.download-tab-content {
    padding: 28px 28px 36px;
}

.download-pane {
    display: none;
}

.download-pane.active {
    display: block;
}

.download-entry {
    display: flex;
    gap: 18px;
    padding: 0 0 30px;
    margin-bottom: 34px;
    border-bottom: 1px dashed #8aa4c8;
}

.download-entry:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.download-entry-accent {
    flex: 0 0 3px;
    min-height: 70px;
    background: #d38a30;
    margin-top: 4px;
}

.download-entry-body {
    flex: 1 1 auto;
    color: #4c2d0d;
    font-size: 13px;
    line-height: 1.85;
}

.download-entry-body h2 {
    font-size: 16px;
    color: #3d260c;
    margin-bottom: 12px;
    font-weight: 700;
}

.download-meta {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.download-checksum {
    word-break: break-all;
    margin-bottom: 10px;
}

.download-description {
    white-space: normal;
}

.download-rich-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 4px;
}

.download-rich-content table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
}

.download-rich-content th,
.download-rich-content td {
    border: 1px solid #c3a783;
    padding: 8px 10px;
}

.download-rich-content blockquote {
    border-left: 3px solid #d38a30;
    padding-left: 14px;
    color: #6b4a21;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
}

.download-action {
    min-width: 158px;
    min-height: 48px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 18px rgba(80, 46, 9, 0.18);
}

.download-action:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.download-action-orange {
    background: linear-gradient(180deg, #ffb54d, #f08622);
}

.download-action-blue {
    background: linear-gradient(180deg, #6c8fd3, #315da4);
}

.download-action-dark {
    background: linear-gradient(180deg, #36425e, #1f2638);
}

.download-action-green {
    background: linear-gradient(180deg, #35b779, #158a54);
}

.download-empty {
    padding: 80px 20px;
    text-align: center;
    color: #8b8177;
    font-size: 15px;
}

@media (max-width: 767.98px) {
    .download-tabs {
        overflow-x: auto;
    }

    .download-tab {
        min-width: 160px;
        padding: 15px 18px;
    }

    .download-tab-content {
        padding: 22px 18px 28px;
    }

    .download-actions {
        display: grid;
    }
}
