/* Homepage refinement only: hero and header remain unchanged. */
#page-top {
    height: 0;
    position: relative;
    scroll-margin-top: 0;
}
.home-main .action-grid {
    width: min(100%,960px);
    margin-inline: auto;
    gap: 8px;
}
.home-main .action-grid .action {
    min-height: 58px;
    padding: 10px 10px;
    gap: 9px;
}
.home-main .action-grid .action svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}
.home-main .action-grid .action strong {
    font-size: 11px;
    line-height: 1.3;
}
.home-main .action-grid .action small {
    font-size: 10px;
    margin-top: 3px;
    line-height: 1.3;
}
.mu-feature-section {
    margin-bottom: 44px;
}
.mu-feature-section>h2 {
    text-align: center;
    font: 700 clamp(18px,2vw,25px)/1.4 Georgia,serif;
    color: #e5bc70;
    margin: 0 0 22px;
    letter-spacing: .025em;
}
.mu-feature-frame {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
    padding: 8px;
    border: 1px solid #78613e;
    border-radius: 4px;
    background: #090a0b;
    box-shadow: inset 0 0 0 2px #2a251e,0 8px 22px #0005;
}
.mu-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 19px 11px 18px;
    min-width: 0;
    border: 1px solid #54432d;
    background: linear-gradient(150deg,#211d17,#100e0d);
    border-radius: 2px;
}
.mu-feature-card svg {
    width: 48px;
    height: 48px;
    color: #dfb666;
    filter: drop-shadow(0 2px 1px #76511d) drop-shadow(0 3px 5px #0009);
    margin-bottom: 12px;
}
.mu-feature-card h3 {
    font: 700 12px/1.4 Arial,sans-serif;
    letter-spacing: .02em;
    color: #efc97d;
    min-height: 34px;
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mu-feature-card p {
    font: 400 12px/1.65 Arial,sans-serif;
    color: #d4ccc0;
    margin: 0;
}
.ldxfm-backtop {
    position: relative;
    z-index: 3;
    pointer-events: auto!important;
    cursor: pointer;
}
@media(max-width:1000px) {
    .home-main .action-grid {
        max-width: 720px;
    }
    .mu-feature-frame {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}
@media(max-width:640px) {
    .home-main .action-grid .action {
        min-height: 54px;
        padding: 9px;
    }
    .mu-feature-frame {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px;
        padding: 6px;
    }
    .mu-feature-card {
        padding: 14px 8px;
    }
    .mu-feature-card svg {
        width: 39px;
        height: 39px;
    }
    .mu-feature-card h3 {
        font-size: 11px;
    }
    .mu-feature-card p {
        font-size: 11px;
    }
}


/* Compact class system: independent from hero and quick actions. */
#he-thong-class.mu-class-news-layout {
    padding: 22px 12px 30px !important;
}
#he-thong-class .mu-class-code-heading {
    margin-bottom: 18px !important;
}
#he-thong-class .mu-class-code-badge {
    height: 28px !important;
    min-width: 160px !important;
    font-size: 11px !important;
}
#he-thong-class .mu-class-code-heading h2 {
    font-size: 24px !important;
}
#he-thong-class .mu-cn-shell {
    max-width: 1080px;
}
#he-thong-class .mu-cn-head {
    min-height: 48px;
    grid-template-columns: 175px 1fr;
}
#he-thong-class .mu-cn-title {
    font-size: 13px;
    padding-left: 12px;
}
#he-thong-class .mu-cn-top-tabs {
    padding: 7px;
}
#he-thong-class .mu-cn-top-tabs button {
    min-height: 32px;
}
#he-thong-class .mu-cn-body {
    grid-template-columns: 205px minmax(0, 1fr) 265px;
    gap: 10px;
    padding: 12px;
}
#he-thong-class .mu-cn-list .mu-class-tab {
    height: 62px !important;
    min-height: 62px !important;
    grid-template-columns: 67px minmax(0, 1fr) 17px !important;
}
#he-thong-class .mu-cn-list img {
    width: 67px !important;
    height: 58px !important;
}
#he-thong-class .mu-cn-list strong {
    font-size: 11px !important;
}
#he-thong-class .mu-cn-list small {
    margin-top: 3px;
    font-size: 10px;
}
#he-thong-class .mu-cn-stage {
    height: 320px !important;
    min-height: 320px !important;
}
#he-thong-class .mu-cn-info {
    height: auto !important;
    min-height: 320px !important;
    padding: 15px 14px !important;
    overflow: visible !important;
}
#he-thong-class .mu-cn-info-title {
    gap: 9px;
    padding-bottom: 9px;
}
#he-thong-class .mu-cn-emblem {
    width: 30px;
    height: 30px;
}
#he-thong-class .mu-cn-info h3 {
    font-size: 17px !important;
}
#he-thong-class .mu-cn-info p {
    margin: 12px 0 8px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}
#he-thong-class .mu-cn-info h4 {
    margin: 3px 0 5px;
    font-size: 12px;
}
#he-thong-class .mu-cn-info li {
    min-height: 28px;
    font-size: 11px;
    gap: 7px;
}
#he-thong-class .mu-cn-info li i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
#he-thong-class .mu-rune-ring {
    width: min(58%, 245px);
}
#he-thong-class .mu-stage-floor {
    height: 44px;
    bottom: 17px;
}

/* Six classic forged-gold feature cards. */
.mu-feature-section {
    max-width: 1080px;
    margin: 22px auto 38px;
    padding: 12px 0 6px;
}
.mu-feature-section > h2 {
    font-size: clamp(17px, 2vw, 23px);
    color: #edc16c;
    text-shadow: 0 2px 2px #000;
    margin-bottom: 22px;
}
.mu-feature-frame {
    gap: 9px;
    padding: 7px;
    border: 1px solid #766044;
    border-radius: 5px;
    background: #090a0b;
    box-shadow: 0 0 0 2px #302a23, inset 0 0 0 2px #1b1815, 0 9px 24px #0008;
}
.mu-feature-card {
    min-height: 196px;
    padding: 17px 10px 14px;
    border-color: #4d3d28;
    background: linear-gradient(155deg, #1c1915, #100e0d 72%);
    box-shadow: inset 0 1px #ffffff08;
    transition: border-color .2s, background .2s;
}
.mu-feature-card:hover {
    border-color: #b58a45;
    background: linear-gradient(155deg, #282016, #120f0d 72%);
}
.mu-feature-card svg {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 1px #472b10) drop-shadow(0 4px 5px #000b);
}
.mu-feature-card h3 {
    color: #edbe68;
    font-size: 12px;
    min-height: 34px;
    margin-bottom: 9px;
}
.mu-feature-card p {
    color: #e7ded1;
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 1050px) {
    #he-thong-class .mu-cn-head {
        grid-template-columns: 1fr;
    }
    #he-thong-class .mu-cn-body {
        grid-template-columns: 200px minmax(0, 1fr);
    }
    #he-thong-class .mu-cn-info {
        min-height: 0 !important;
    }
}
@media (max-width: 680px) {
    #he-thong-class .mu-cn-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 8px;
    }
    #he-thong-class .mu-cn-stage {
        height: 270px !important;
        min-height: 270px !important;
    }
    #he-thong-class .mu-class-code-heading h2 {
        font-size: 21px !important;
    }
    .mu-feature-card {
        min-height: 170px;
        padding: 12px 7px;
    }
    .mu-feature-card svg {
        width: 43px;
        height: 43px;
    }
    .mu-feature-card h3, .mu-feature-card p {
        font-size: 11px;
    }
}

/* Shared compact homepage sections */
:root {
    --home-compact-width: 960px;
    --home-metal-border: #555b5d;
}
#he-thong-class.mu-class-news-layout,
#tinh-nang.mu-feature-section {
    width: min(100%, var(--home-compact-width));
    max-width: var(--home-compact-width);
    margin: 0 auto 44px !important;
    padding: 0 !important;
}
#he-thong-class .mu-cn-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}
#he-thong-class .mu-cn-body {
    grid-template-columns: 185px minmax(0, 1fr) 235px;
}
#he-thong-class .mu-cn-list .mu-class-tab {
    grid-template-columns: 56px minmax(0, 1fr) 17px !important;
}
#he-thong-class .mu-cn-list img {
    width: 56px !important;
}
#tinh-nang > h2 {
    font: 700 23px/1.4 Georgia, serif;
    color: #dfbb75;
    margin: 0 0 20px;
}
#tinh-nang .mu-feature-frame {
    padding: 14px;
    gap: 9px;
    border: 1px solid var(--home-metal-border);
    border-radius: 0;
    background: linear-gradient(180deg, #171b1d, #090b0c);
    box-shadow: 0 0 0 5px #101214, 0 0 0 6px #292d30;
}
#tinh-nang .mu-feature-card {
    padding: 14px 9px;
    min-height: 176px;
    border-radius: 0;
    border-color: #574531;
    background: linear-gradient(145deg, #1c2022, #0d1011);
    box-shadow: inset 0 1px #ffffff08;
}
#tinh-nang .mu-feature-card svg {
    width: 48px;
    height: 48px;
    padding: 7px;
    border-radius: 50%;
    border: 1px solid #745831;
    background: radial-gradient(circle, #292923, #101213 75%);
    margin-bottom: 10px;
}
#tinh-nang .mu-feature-card h3 {
    color: #e7bc70;
    font-size: 12px;
}
#tinh-nang .mu-feature-card p {
    color: #d8d0c6;
    font-size: 12px;
}
@media (max-width: 1000px) {
    #he-thong-class .mu-cn-body {
        grid-template-columns: 185px minmax(0, 1fr);
    }
}
@media (max-width: 680px) {
    #he-thong-class .mu-cn-body {
        grid-template-columns: minmax(0, 1fr);
    }
    #tinh-nang > h2 {
        font-size: 18px;
    }
    #tinh-nang .mu-feature-frame {
        padding: 7px;
        gap: 7px;
    }
    #tinh-nang .mu-feature-card {
        min-height: 155px;
        padding: 12px 7px;
    }
}

/* Hệ thống Class: rộng hơn một chút, không đổi banner hoặc nút nhanh. */
#he-thong-class.mu-class-news-layout {
    width: min(100%, 1040px);
    max-width: 1040px;
}
@media (min-width: 1001px) {
    #he-thong-class .mu-cn-body {
        grid-template-columns: 205px minmax(0, 1fr) 250px;
    }
    #he-thong-class .mu-cn-stage {
        height: 350px !important;
        min-height: 350px !important;
    }
    #he-thong-class .mu-cn-info {
        min-height: 350px !important;
    }
}
