/*
 * MU DAI THANH — SS2 visual refresh
 * This file intentionally overrides the legacy sprite layout without changing
 * PHP modules, forms, URLs or authentication behavior.
 */
:root {
    --ss2-ink: #080b14;
    --ss2-panel: rgba(16, 20, 34, .92);
    --ss2-panel-soft: rgba(25, 30, 48, .78);
    --ss2-line: rgba(255, 255, 255, .1);
    --ss2-text: #f5f7ff;
    --ss2-muted: #aab3c9;
    --ss2-gold: #f4b84a;
    --ss2-gold-bright: #ffd979;
    --ss2-red: #db3d3b;
    --ss2-blue: #4f8cff;
    --ss2-radius: 18px;
    --ss2-font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    background: var(--ss2-ink) !important;
    color: var(--ss2-text) !important;
    font-family: var(--ss2-font) !important;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 10, 19, .2) 0%, rgba(7, 10, 19, .78) 58%, #080b14 100%),
        url('../images/bg-sub-top.jpg') center top / cover no-repeat;
}
body:after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 12%, rgba(239, 117, 38, .14), transparent 37%), linear-gradient(90deg, rgba(8, 11, 20, .58), transparent 30%, transparent 70%, rgba(8, 11, 20, .58));
}

.WrapperOut, .WrapperIn, .Wrapper { width: 100% !important; overflow: visible !important; background: none !important; }
.Wrapper { min-height: 100vh; }
#header {
    width: min(1180px, calc(100% - 40px)) !important;
    height: 142px !important;
    display: flex;
    align-items: center;
    margin: 0 auto !important;
    position: relative;
}
.SubLogo {
    position: relative !important;
    inset: auto !important;
    width: 190px !important;
    height: 105px !important;
    background-size: contain !important;
    background-position: center !important;
    flex: 0 0 190px;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
.SubLogo1 { display: none !important; }
#header:after {
    content: "SEASON 2  •  ĐẠI LỤC HUYỀN BÍ";
    margin-left: auto;
    color: var(--ss2-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Above-the-fold platform promise: make the three ways to play impossible to miss. */
.ss2-hero-intro {
    width: min(1180px, calc(100% - 40px));
    box-sizing: border-box;
    min-height: 178px;
    margin: 0 auto 24px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 184, 74, .25);
    border-radius: 24px;
    background: linear-gradient(105deg, rgba(9, 13, 26, .96) 0%, rgba(18, 23, 41, .86) 58%, rgba(100, 27, 31, .58) 100%);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .08);
}
.ss2-hero-intro:before {
    content: "";
    width: 320px;
    height: 320px;
    position: absolute;
    right: 23%;
    top: -190px;
    border-radius: 50%;
    background: rgba(244, 184, 74, .11);
    filter: blur(4px);
    pointer-events: none;
}
.ss2-hero-copy { flex: 1 1 42%; position: relative; z-index: 1; }
.ss2-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ss2-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}
.ss2-hero-copy h1 {
    margin: 0 0 7px;
    color: #fff;
    font-family: var(--ss2-font);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.8px;
    text-shadow: 0 3px 18px rgba(0,0,0,.48);
}
.ss2-hero-copy h1 em { color: var(--ss2-gold-bright); font-style: normal; }
.ss2-hero-copy p { margin: 0; color: var(--ss2-muted); font-size: 14px; max-width: 500px; }
.ss2-hero-copy strong { color: var(--ss2-gold-bright); }
.ss2-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ss2-hero-tags span { padding: 4px 9px; color: #e9c37b; border: 1px solid rgba(244,184,74,.3); border-radius: 3px; background: rgba(0,0,0,.25); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.ss2-portal-seal {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #c88b37;
    border-radius: 50%;
    color: var(--ss2-gold-bright);
    background: radial-gradient(circle, rgba(188,69,35,.6), rgba(25,12,19,.95) 66%);
    box-shadow: 0 0 0 5px rgba(199,139,55,.12), 0 0 35px rgba(219,61,59,.28), inset 0 0 22px rgba(0,0,0,.75);
    transform: rotate(-7deg);
}
.ss2-portal-seal:before, .ss2-portal-seal:after { content: "✦"; position: absolute; color: #dcaa53; font-size: 14px; }
.ss2-portal-seal:before { top: 7px; }
.ss2-portal-seal:after { bottom: 7px; }
.ss2-portal-seal span { font-family: var(--ss2-font); font-size: 37px; font-weight: 900; line-height: .8; text-shadow: 2px 2px #5d1c23; }
.ss2-portal-seal small { margin-top: 9px; color: #e6b85f; font-size: 8px; font-weight: 900; letter-spacing: 2px; line-height: 1.1; text-align: center; }
.ss2-platforms {
    flex: 1 1 58%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}
.ss2-platform {
    min-height: 94px;
    box-sizing: border-box;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: var(--ss2-text) !important;
    background: rgba(255, 255, 255, .055);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.ss2-platform { overflow: hidden; position: relative; }
.ss2-platform:after { content: ""; position: absolute; inset: 0 auto 0 -130%; width: 65%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent); transition: left .5s ease; pointer-events: none; }
.ss2-platform:hover { transform: translateY(-5px); border-color: rgba(244, 184, 74, .7); background: rgba(244, 184, 74, .1); box-shadow: 0 9px 20px rgba(0,0,0,.28), 0 0 18px rgba(244,184,74,.12); text-decoration: none; }
.ss2-platform:hover:after { left: 140%; }
.ss2-platform:active { transform: translateY(-1px) scale(.98); }
.ss2-platform-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #17111a;
    background: linear-gradient(135deg, var(--ss2-gold-bright), #dc702d);
    font-size: 18px;
    font-weight: 900;
}
.ss2-platform b { display: block; color: #fff; font-size: 12px; letter-spacing: 1px; }
.ss2-platform small { display: block; color: var(--ss2-muted); font-size: 10px; line-height: 1.25; }
.ss2-platform-web .ss2-platform-icon { background: linear-gradient(135deg, #79a9ff, #466edb); color: #fff; }
.ss2-platform-mobile .ss2-platform-icon { background: linear-gradient(135deg, #f07971, #bd3239); color: #fff; }

.ss2-war-stats {
    width: min(1180px, calc(100% - 40px));
    box-sizing: border-box;
    min-height: 70px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(244,184,74,.22);
    border-top: 2px solid rgba(244,184,74,.62);
    border-bottom: 2px solid rgba(244,184,74,.32);
    background: linear-gradient(90deg, rgba(12,15,27,.95), rgba(40,22,27,.9), rgba(12,15,27,.95));
    box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.06);
}
.ss2-war-stats div { min-width: 0; padding: 12px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.09); }
.ss2-war-stats div:last-child { border-right: 0; }
.ss2-war-stats b { display: block; color: var(--ss2-gold-bright); font-family: var(--ss2-font); font-size: 20px; line-height: 1.1; letter-spacing: 1px; }
.ss2-war-stats small { display: block; margin-top: 4px; color: #8e98ae; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }

#content {
    width: min(1180px, calc(100% - 40px)) !important;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    margin: 0 auto !important;
    padding: 0 0 100px !important;
}
.SideLeft { width: auto !important; float: none !important; padding: 0 !important; }
.MainContent {
    width: auto !important;
    min-height: 720px;
    float: none !important;
    padding: 0 !important;
    background: none !important;
}

/* Header actions */
.CaiDat {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 2px;
    row-gap: 8px;
    padding: 0 !important;
    margin: 0 0 14px;
}
.CaiDat a {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .25s ease, box-shadow .25s ease;
}
.CaiDat a:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left .55s ease;
}
.CaiDat a:hover { transform: translateY(-4px); filter: brightness(1.12); text-decoration: none; }
.CaiDat a:hover:after { left: 140%; }
.CaiDat a:active { transform: translateY(-1px) scale(.98); }
.CaiDat a.Download {
    flex: 0 0 100%;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 508 / 334;
    min-height: 0;
    background: url('../images/ss2-install.gif') center / cover no-repeat !important;
    border: 1px solid rgba(244,184,74,.55);
    box-shadow: 0 10px 24px rgba(0,0,0,.38), 0 0 0 1px rgba(255,217,121,.18) inset;
    animation: ss2-cta-pulse 3.2s ease-in-out infinite;
    text-indent: -9999px !important;
    color: transparent !important;
    display: block !important;
    font-size: 0;
    line-height: 0;
}
.CaiDat a.Download:before { content: none; }
.CaiDat a.Download:hover { filter: brightness(1.1) saturate(1.08); box-shadow: 0 14px 30px rgba(0,0,0,.48), 0 0 22px rgba(244,184,74,.38); }
.CaiDat a.Download:focus-visible { outline: 2px solid var(--ss2-gold-bright); outline-offset: 3px; }
/* Keep the original registration/top-up sprite buttons. */
.CaiDat a.DangKyNhanh, .CaiDat a.NapThe {
    flex: 0 0 125px;
    box-sizing: content-box;
    width: 125px !important;
    height: 40px !important;
    min-height: 40px;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: none;
    text-indent: -9999px !important;
    color: transparent !important;
    font-size: 0;
    line-height: 0;
    box-shadow: none !important;
    filter: none;
}
.CaiDat a.DangKyNhanh {
    background: url('../images/bt-dkn.png') 0 0 no-repeat !important;
}
.CaiDat a.NapThe {
    background: url('../images/bt-dkn.png') -125px 0 no-repeat !important;
}
.CaiDat a.DangKyNhanh:after, .CaiDat a.NapThe:after { content: none; }
.CaiDat a.DangKyNhanh:hover {
    background-position: 0 -40px !important;
    filter: none;
}
.CaiDat a.NapThe:hover {
    background-position: -125px -40px !important;
    filter: none;
}

@keyframes ss2-cta-pulse {
    0%, 72%, 100% { box-shadow: 0 10px 24px rgba(211,103,35,.25), 0 0 0 1px rgba(255,217,121,.18) inset; }
    82% { box-shadow: 0 10px 30px rgba(244,184,74,.48), 0 0 0 1px rgba(255,217,121,.55) inset; }
}

/* Sidebar panels */
.DangNhap {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px !important;
    margin: 0 0 14px;
    overflow: visible !important;
    border: 1px solid var(--ss2-line);
    border-radius: var(--ss2-radius);
    background: linear-gradient(145deg, rgba(30, 35, 56, .95), rgba(12, 15, 27, .95)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.06);
}
.DangNhap .ContentBox, .DangNhap .Content, .DangNhap .ContentBox .FrmDN { width: 100% !important; margin: 0 !important; }
.DangNhap .ContentBox .TextBoxDN { width: calc(100% - 72px) !important; }
.DangNhap .ContentBox .BgTextBox {
    box-sizing: border-box;
    width: 100% !important;
    height: 42px !important;
    padding: 9px 12px !important;
    margin: 0 0 9px !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 9px;
    color: var(--ss2-text) !important;
    background: rgba(5, 8, 16, .72) !important;
    font-family: inherit;
}
.DangNhap .ContentBox .BgTextBox::placeholder { color: #7f89a1; }
/* Preserve the original login/server sprite buttons and their 2-state hover art. */
.DangNhap .ContentBox .BtOK, a.BtnMayChu {
    box-sizing: content-box;
    width: 65px !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: none;
    text-indent: -9999px !important;
    color: transparent !important;
    font-size: 0;
    line-height: 0;
    box-shadow: none !important;
    filter: none;
}
.DangNhap .ContentBox .BtOK {
    float: none;
    display: block !important;
    margin: 0 auto !important;
    background: url('../images/btn-dang-nhap.jpg') 0 0 no-repeat !important;
}
a.BtnMayChu {
    display: block !important;
    float: right;
    background: url('../images/chon-may-chu.jpg') 0 0 no-repeat !important;
}
.DangNhap .ContentBox .BtOK:after, a.BtnMayChu:after,
.DangNhap .ContentBox .BtOK:before, a.BtnMayChu:before { content: none; }
.DangNhap .ContentBox .BtOK:hover { background-position: 0 -70px !important; filter: none; }
a.BtnMayChu:hover { background-position: 0 -70px !important; filter: none; }
.DangNhap .ContentBox .BtOK:active, a.BtnMayChu:active { transform: none; }
.DangNhap ul.Link { width: 100% !important; margin: 8px 0 0 !important; }
.DangNhap ul.Link li a { color: var(--ss2-muted) !important; font-size: 12px; }
.Profile { width: 100% !important; box-sizing: border-box; margin: 0 !important; border-radius: 12px; background: rgba(5,8,16,.35) !important; }
.Profile .TextBoxDN { width: calc(100% - 20px) !important; }
.TextBoxDN p { width: auto !important; color: var(--ss2-muted) !important; }
.TextBoxDN p span { color: var(--ss2-gold-bright) !important; }
.info-character_coin { margin: 12px 0 0 !important; padding: 0 !important; }
.info-character_coin .list-info_coin { width: 100% !important; }

#subNav01 { width: 100% !important; margin: 0 0 14px !important; padding: 0 !important; }
#subNav01 li { width: 100% !important; margin: 0 0 8px; }
#subNav01 li a {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 48px;
    padding: 13px 15px 13px 48px !important;
    display: block !important;
    text-indent: 0 !important;
    border: 1px solid var(--ss2-line);
    border-radius: 12px;
    color: var(--ss2-text) !important;
    background: linear-gradient(110deg, rgba(34,40,64,.94), rgba(15,19,32,.94)) !important;
    font-weight: 700;
    position: relative;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
#subNav01 li a:before { content: "✦"; position: absolute; left: 17px; color: var(--ss2-gold); font-size: 17px; }
#subNav01 li a:hover { transform: translateX(3px); border-color: rgba(244,184,74,.6); background: rgba(219,61,59,.22) !important; text-decoration: none; }

/* Replace the old image-menu treatment with a crisp SS2 account command center. */
.SideLeftNav {
    width: 100% !important;
    margin: 18px 0 14px !important;
    overflow: hidden;
    border: 1px solid var(--ss2-line);
    border-radius: var(--ss2-radius);
    background: linear-gradient(145deg, rgba(25, 30, 48, .96), rgba(11, 14, 25, .96));
    box-shadow: 0 18px 42px rgba(0,0,0,.26);
}
.TitleMenuLeft {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    padding: 17px 20px !important;
    text-indent: 0 !important;
    color: var(--ss2-gold-bright) !important;
    background: linear-gradient(110deg, rgba(219,61,59,.48), rgba(120,33,38,.12)) !important;
    border-bottom: 1px solid var(--ss2-line);
    font-size: 16px !important;
    letter-spacing: 1px;
    text-align: left !important;
}
.TitleMenuLeft a { color: inherit !important; padding: 0 !important; }
ul#subNav { width: 100% !important; padding: 7px 0 !important; }
ul#subNav li { width: 100% !important; }
ul#subNav li a:link, ul#subNav li a:visited, ul#subNav li.HasChild a:link, ul#subNav li.HasChild a:visited {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 43px;
    padding: 11px 16px 11px 42px !important;
    line-height: 21px !important;
    text-indent: 0 !important;
    color: #e8ecf6 !important;
    background: none !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    font-size: 13px;
}
ul#subNav li a:before { content: "+"; position: absolute; left: 16px; top: 10px; width: 18px; height: 18px; border: 1px solid rgba(244,184,74,.5); border-radius: 50%; color: var(--ss2-gold); line-height: 16px; text-align: center; font-weight: 900; }
ul#subNav li a:hover, ul#subNav li.Active > a, ul#subNav li.Hilite > a { color: var(--ss2-gold-bright) !important; background: rgba(244,184,74,.08) !important; text-decoration: none; }
ul#subNav li ul.SubNavChild { width: 100% !important; box-sizing: border-box; padding: 5px 0 !important; background: rgba(0,0,0,.2) !important; }
ul#subNav li.Active ul.SubNavChild li a:link, ul#subNav li.Active ul.SubNavChild li a:visited { box-sizing: border-box; width: 100% !important; min-height: 34px; height: auto; padding: 7px 12px 7px 52px !important; background: none !important; color: var(--ss2-muted) !important; font-size: 12px; }
ul#subNav li.Active ul.SubNavChild li a:hover { color: #fff !important; background: rgba(255,255,255,.05) !important; }

#boxEvent {
    width: 100% !important;
    height: auto !important;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--ss2-line);
    border-radius: var(--ss2-radius);
    box-shadow: 0 16px 35px rgba(0,0,0,.3);
}
#boxEvent #img { width: 100% !important; height: auto !important; aspect-ratio: 248 / 362; position: relative; }
#boxEvent #img li, #boxEvent #img li.ActiveBanner { width: 100% !important; height: 100% !important; position: absolute; inset: 0; }
#boxEvent #img li img { display: block; width: 100% !important; height: 100% !important; min-height: 280px; object-fit: cover; }
#boxEvent #imgControl { height: 30px !important; bottom: 0; background: rgba(8,11,20,.72); }

/* Main content */
.StaticTopPanel {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 112px;
    margin: 0 0 16px !important;
    padding: 24px 28px !important;
    overflow: hidden;
    border: 1px solid var(--ss2-line);
    border-radius: var(--ss2-radius);
    background: linear-gradient(115deg, rgba(28,33,54,.95), rgba(12,15,27,.92)) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.05), 0 14px 34px rgba(0,0,0,.18);
}
.StaticTopPanel h2.TitleMain {
    height: auto !important;
    color: var(--ss2-gold-bright) !important;
    font-family: var(--ss2-font) !important;
    font-size: clamp(25px, 3vw, 38px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.5px;
}
p#breadcrumbs { font-size: 12px !important; color: var(--ss2-muted) !important; margin-top: 8px !important; }
p#breadcrumbs a, p#breadcrumbs span { color: var(--ss2-muted) !important; }
.StaticOuter { width: 100% !important; margin: 0 !important; }
.StaticMain { color: #d9deec !important; font-size: 14px !important; line-height: 1.75 !important; }
.ContentBlock, #hienthi { width: 100%; }

/* SS2 news panels: keep article text above the page artwork and replace the
   legacy transparent CutNews presentation with readable glass cards. */
#maincontent, #BlockLeft { width: 100% !important; }
.ss2-news-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ss2-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ss2-news-kicker-mark { color: var(--ss2-red); font-size: 15px; text-shadow: 0 0 12px rgba(219,61,59,.7); }
.ss2-news-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    box-sizing: border-box;
    padding: 3px 9px;
    border: 1px solid rgba(244,184,74,.28);
    border-radius: 99px;
    color: var(--ss2-gold-bright);
    background: rgba(244,184,74,.08);
}
.ss2-news-headbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ss2-news-headbar h4 {
    margin: 0 !important;
    padding: 0 0 12px !important;
    color: var(--ss2-gold-bright) !important;
    font-family: var(--ss2-font) !important;
    font-size: clamp(22px, 2.4vw, 32px) !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid var(--ss2-line);
}
.ss2-news-count { flex: 0 0 auto; margin-bottom: 14px; color: var(--ss2-muted); font-size: 11px; letter-spacing: .8px; }
.ss2-news-filter {
    display: flex;
    gap: 8px;
    margin: 18px 0 6px;
    padding: 9px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    scrollbar-width: thin;
}
.ss2-news-filter-item {
    flex: 0 0 auto;
    min-width: 112px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    color: var(--ss2-muted) !important;
    background: rgba(4,7,15,.35);
    transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.ss2-news-filter-item b, .ss2-news-filter-item small { display: block; }
.ss2-news-filter-item b { color: inherit; font-size: 12px; }
.ss2-news-filter-item small { margin-top: 3px; color: #77829b; font-size: 9px; line-height: 1.25; }
.ss2-news-filter-item:hover, .ss2-news-filter-item.is-active { transform: translateY(-2px); color: var(--ss2-gold-bright) !important; border-color: rgba(244,184,74,.55); background: linear-gradient(135deg, rgba(219,61,59,.22), rgba(244,184,74,.08)); text-decoration: none; }
.ss2-news-filter-item.is-active small { color: #d8b66b; }

#hienthi { box-sizing: border-box; }
#hienthi > .ss2-news-article-shell,
#hienthi > .ss2-news-list-shell {
    box-sizing: border-box;
    width: 100%;
    padding: 24px 28px 30px;
    border: 1px solid var(--ss2-line);
    border-radius: var(--ss2-radius);
    background: linear-gradient(145deg, rgba(12, 16, 29, .97), rgba(18, 22, 38, .94)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
}
#hienthi > .ss2-news-article-shell > h4,
#hienthi > .ss2-news-list-shell > h4 {
    margin: 0 0 8px !important;
    padding: 0 0 12px 34px !important;
    color: var(--ss2-gold-bright) !important;
    font-family: var(--ss2-font) !important;
    font-size: clamp(20px, 2.2vw, 30px) !important;
    line-height: 1.25 !important;
    background-position: left 2px !important;
    border-bottom: 1px solid var(--ss2-line);
}
.ss2-news-article-meta { color: var(--ss2-muted); font-size: 11px; letter-spacing: .4px; margin-bottom: 18px; }
.ss2-news-article-content { color: #e3e7f1; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.ss2-news-article-content p { margin: 0 0 16px; }
.ss2-news-article-content h2, .ss2-news-article-content h3, .ss2-news-article-content h4 { margin: 24px 0 10px; color: var(--ss2-gold-bright); line-height: 1.35; }
.ss2-news-article-content a { color: #ffd979; text-decoration: underline; text-decoration-color: rgba(244,184,74,.45); text-underline-offset: 3px; }
.ss2-news-article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ss2-news-article-content table { display: block; max-width: 100%; overflow-x: auto; }
.ss2-news-related { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ss2-line); }
.ss2-news-related-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ss2-gold); font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.ss2-news-related-title:before { content: "✦"; color: var(--ss2-red); }
/* Keep one stable, opaque reading surface behind the feed. Individual news
   entries are flat rows rather than floating boxes, so the artwork cannot
   bleed through their text during mobile scrolling. */
#hienthi > .ss2-news-list-shell { background: #101522 !important; }
.ss2-news-item { position: relative; margin: 0; padding: 12px 8px 11px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; background: transparent; transition: color .18s ease, background-color .18s ease; }
.ss2-news-item:before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 2px; border-radius: 0; background: linear-gradient(#db3d3b, #f4b84a); opacity: .9; }
.ss2-news-item:last-child { border-bottom: 0; }
.ss2-news-item:hover { transform: none; border-color: rgba(255,255,255,.1); background: rgba(244,184,74,.06); box-shadow: none; }
.ss2-news-item .ss2-news-title { text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.ss2-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ss2-news-head > a { min-width: 0; }
.ss2-news-title { color: var(--ss2-gold-bright); font-size: 17px; font-weight: 800; line-height: 1.35; }
.ss2-news-title:hover { color: #fff; }
.ss2-news-date { flex: 0 0 auto; color: var(--ss2-muted); font-size: 11px; }
.ss2-news-body { margin-top: 9px; color: #c5ccdc; font-size: 13px; line-height: 1.7; }
/* The list printed a "Đọc tiếp" row plus a "Bình luận / Đăng bởi" row under
   every headline; both were requested to be removed. The headline itself is
   still the link to the full article, so nothing becomes unreachable —
   presentation only. */
.ss2-news-more,
.ss2-news-meta { display: none !important; }
.ss2-news-detail { color: #e3e7f1; }
.ss2-news-detail-body { line-height: 1.8; }
.ss2-news-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--ss2-line); color: var(--ss2-muted); font-size: 11px; }
.ss2-news-pager { margin: 20px 0 0; text-align: center; }
.ss2-news-list-shell > center { color: var(--ss2-muted); }
.ss2-news-list-shell > center a { color: inherit !important; }

/* Global typeface. Legacy stylesheets set Tahoma/Arial/Trebuchet on many
   elements, so the switch has to reach form controls and generated markup too.
   Icon fonts (Font Awesome, Glyphicons) are excluded so glyphs keep working. */
body, .WrapperOut, .WrapperIn, .Wrapper {
    font-family: var(--ss2-font) !important;
}
body :not(i):not(.fa):not([class*="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not([class*="icon-"]) {
    font-family: var(--ss2-font);
}
input, textarea, select, button, option, optgroup, table, td, th,
p, span, div, li, a, h1, h2, h3, h4, h5, h6, label, strong, b, em, small {
    font-family: var(--ss2-font);
}
i.fa, i[class*="fa-"], .fa, .glyphicon, [class*="glyphicon-"], [class*="icon-"] {
    font-family: inherit;
}
i.fa, i[class*="fa-"], .fa {
    font-family: "FontAwesome" !important;
}
.glyphicon, [class*="glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
}

.StaticMain .primary-block, .StaticMain .NoticeBox, .StaticMain .form-2 {
    border: 1px solid var(--ss2-line) !important;
    border-radius: 14px !important;
    background: var(--ss2-panel) !important;
}
.StaticMain h4 { color: var(--ss2-gold-bright) !important; }
.StaticMain a:link, .StaticMain a:visited { color: #f5c664 !important; }
.StaticMain a:hover { color: #fff !important; }
.MyTable { width: 100%; overflow: hidden; border-radius: 10px; }
.MyTable thead tr th { color: #fff !important; background: linear-gradient(90deg, #8f252d, #bb4736) !important; border-color: var(--ss2-line) !important; padding: 10px !important; }
.MyTable tbody tr td { border-color: var(--ss2-line) !important; padding: 9px 10px !important; }
.OddRow { background: rgba(255,255,255,.045) !important; }
.EvenRow { background: rgba(255,255,255,.02) !important; }

/* Fixed navigation becomes a clean glass dock. */
#menu { height: 66px !important; background: rgba(8,11,20,.88) !important; border-top: 1px solid var(--ss2-line); box-shadow: 0 -12px 30px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
ul#mainNav { width: min(1180px, calc(100% - 40px)) !important; height: 66px !important; display: flex; justify-content: center; gap: 4px; }
ul#mainNav li a, ul#mainNav li a.TrangChu, ul#mainNav li a.TinTuc, ul#mainNav li a.GiaiDau, ul#mainNav li a.GioiThieu, ul#mainNav li a.CamNang, ul#mainNav li a.ThuVien, ul#mainNav li a.BaoLoi, ul#mainNav li a.CongDong {
    box-sizing: border-box;
    width: auto !important;
    height: 66px !important;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0 !important;
    background: none !important;
    color: var(--ss2-muted) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}
ul#mainNav li a:hover, ul#mainNav li.Hilite a { color: var(--ss2-gold-bright) !important; background: rgba(244,184,74,.08) !important; text-decoration: none; text-shadow: 0 0 12px rgba(244,184,74,.65); }
ul#mainNav li a:active { transform: translateY(2px); }
ul#mainNav li ul { bottom: 66px !important; background: rgba(12,15,27,.98) !important; border: 1px solid var(--ss2-line) !important; border-radius: 12px 12px 0 0; padding: 8px !important; }
ul#mainNav li ul li, ul#mainNav li.Active ul li a { width: 210px !important; }
ul#mainNav li.Active ul li a { height: auto !important; padding: 9px 12px !important; color: var(--ss2-muted) !important; }
ul#mainNav li.Active ul li a:hover { color: var(--ss2-gold-bright) !important; background: rgba(255,255,255,.05) !important; }
.btn-dangky-duoi { display: none !important; }

#footer { width: min(1180px, calc(100% - 40px)) !important; height: auto !important; min-height: 130px; background: none !important; border-top: 1px solid var(--ss2-line); padding: 28px 0 100px; }
/* #footer lives inside #content, which is a grid on desktop and a flex column
   on small screens. Without an explicit span/order the footer is auto-placed
   into the first column / first flex slot and visually jumps above the article. */
#footer { grid-column: 1 / -1; }
@media (min-width: 821px) {
    #footer { clear: both; }
}
@media (max-width: 820px) {
    #footer { clear: both; order: 3; position: relative !important; margin-top: 20px !important; }
}
#footer p.Copyright, #footer p.TextLink { width: auto !important; margin: 0 !important; padding: 5px 0 !important; text-align: center !important; color: var(--ss2-muted) !important; }
#footer a { color: var(--ss2-gold) !important; }

#quickLink { position: fixed !important; right: 22px !important; left: auto !important; top: auto !important; bottom: 84px !important; }
#quickLink a { width: 42px !important; height: 42px !important; border-radius: 50%; background: var(--ss2-panel) !important; border: 1px solid var(--ss2-line); color: var(--ss2-gold) !important; text-indent: 0 !important; display: flex !important; align-items: center; justify-content: center; font-size: 0; }
#quickLink a:after { content: "↑"; font-size: 18px; }

/* MU Season 2 loading gate used by the install/download CTA. */
.ss2-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(3, 5, 12, .88);
    backdrop-filter: blur(8px);
    transition: opacity .25s ease, visibility .25s ease;
}
.ss2-loading-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.ss2-loading-card {
    width: min(438px, 92vw);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244,184,74,.65);
    border-radius: 14px;
    background: #090c16;
    box-shadow: 0 0 0 4px rgba(244,184,74,.08), 0 24px 70px rgba(0,0,0,.68), 0 0 35px rgba(219,61,59,.18);
    animation: ss2-loading-enter .35s ease both;
}
.ss2-loading-card img { display: block; width: 100%; height: auto; }
.ss2-loading-card p { margin: 0; padding: 11px 15px 13px; color: var(--ss2-gold-bright); font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-align: center; background: #090c16; }
.ss2-loading-close { position: absolute; top: 8px; right: 9px; z-index: 2; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); font-size: 21px; line-height: 22px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.ss2-loading-close:hover { background: var(--ss2-red); transform: rotate(90deg); }
@keyframes ss2-loading-enter { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 820px) {
    #header, #content, #footer, ul#mainNav, .ss2-hero-intro, .ss2-war-stats { width: calc(100% - 28px) !important; }
    .ss2-hero-intro { display: block; padding: 22px; }
    .ss2-portal-seal { display: none; }
    .ss2-platforms { margin-top: 18px; }
    .ss2-war-stats { grid-template-columns: repeat(2, 1fr); }
    .ss2-war-stats div:nth-child(2) { border-right: 0; }
    .ss2-war-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
    .ss2-platform { min-height: 82px; padding: 10px; }
    .ss2-platform small { display: none; }
    #header { height: 108px !important; }
    .SubLogo { width: 145px !important; height: 84px !important; flex-basis: 145px; }
    #header:after { font-size: 8px; letter-spacing: 1.5px; text-align: right; }
    #content { display: flex; flex-direction: column; gap: 16px; }
    .SideLeft { order: 2; }
    .MainContent { order: 1; }
    /* Home page on phones: the news list used to fill every screen before the
       visitor ever reached the login box or Cẩm nang. On the home route the
       sidebar (install CTA, login, Cẩm nang) now comes first and the news list
       follows, while the Cẩm nang tree is capped so it cannot push the news
       thousands of pixels down. Other routes keep the article-first order. */
    body.ss2-page-home .SideLeft { order: 1; }
    body.ss2-page-home .MainContent { order: 2; }
    /* Inside the sidebar the install artwork used to sit above the login form.
       On the home route the login box and Cẩm nang are promoted to the top so
       they are visible immediately, with the install CTA right below. */
    body.ss2-page-home .SideLeft { display: flex; flex-direction: column; gap: 0; }
    body.ss2-page-home .SideLeft > #dlogin { order: 1; }
    body.ss2-page-home .SideLeft > .SideLeftNav { order: 2; }
    body.ss2-page-home .SideLeft > .CaiDat { order: 3; }
    body.ss2-page-home .SideLeft > ul#subNav01 { order: 4; }
    body.ss2-page-home .SideLeft > #boxEvent { order: 5; }
    body.ss2-page-home ul#subNav { max-height: 44vh; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    #boxEvent { max-width: 420px; margin-left: auto; margin-right: auto; }
    /* On phones a position:fixed page backdrop plus a backdrop-filtered menu
       make the compositor repaint on every scroll frame, which shows up as
       blurred/smeared text. Let the artwork scroll with the page and drop the
       menu blur; the menu background is already almost opaque. */
    body:before { position: absolute; height: 100%; min-height: 100%; }
    #menu { position: relative !important; height: auto !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    /* The per-link rules above carry a class (ul#mainNav li a.TrangChu ...) and
       therefore win over a plain "ul#mainNav li a" override regardless of
       !important. The extra #menu ancestor raises specificity enough to apply. */
    #menu ul#mainNav { height: auto !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 0 !important; padding: 6px 4px !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    #menu ul#mainNav li { flex: 0 0 auto; }
    #menu ul#mainNav li.Blank { display: none !important; }
    #menu ul#mainNav li > a { height: 42px !important; padding: 0 12px !important; font-size: 11px !important; white-space: nowrap; }
    #menu ul#mainNav li ul { bottom: auto !important; top: 42px; }
    #footer { padding-bottom: 28px; }
}
@media (max-width: 480px) {
    #header:after { display: none; }
    .CaiDat { flex-direction: column; align-items: center; }
    .CaiDat a.Download { flex-basis: auto; width: 100% !important; height: auto !important; aspect-ratio: 508 / 334; }
    .CaiDat a.DangKyNhanh, .CaiDat a.NapThe { flex-basis: 125px; }
    .StaticTopPanel { padding: 18px !important; }
    .MyTable { font-size: 11px; }
    .ss2-platforms { grid-template-columns: 1fr; }
    .ss2-platform { min-height: 64px; flex-direction: row; align-items: center; justify-content: flex-start; }
    .ss2-platform small { display: block; }
}

/* Phone-first polish: keep every interactive target readable and tappable. */
@media (max-width: 480px) {
    body { font-size: 15px; }
    #header, #content, #footer, ul#mainNav, .ss2-hero-intro, .ss2-war-stats { width: calc(100% - 20px) !important; }
    #header { height: 88px !important; }
    .SubLogo { width: 118px !important; height: 70px !important; flex-basis: 118px; }
    .ss2-hero-intro { margin-bottom: 14px; padding: 16px 12px; border-radius: 15px; min-height: 0; gap: 12px; }
    .ss2-eyebrow { margin-bottom: 5px; font-size: 10px; letter-spacing: 2px; }
    .ss2-hero-copy h1 { font-size: clamp(22px, 7vw, 30px) !important; line-height: 1.1 !important; }
    .ss2-hero-copy p { margin: 8px 0 0 !important; font-size: 13px !important; line-height: 1.5 !important; }
    /* Three compact platform tiles side by side read far faster than three
       stacked cards, and keep the hero from pushing the content off-screen. */
    .ss2-hero-tags { display: none !important; }
    .ss2-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; margin-top: 14px !important; }
    .ss2-platform { min-height: 0 !important; padding: 10px 5px !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center; }
    .ss2-platform-icon { width: 26px; height: 26px; font-size: 15px; }
    .ss2-platform b { font-size: 10px !important; letter-spacing: .3px; }
    .ss2-platform small { display: none !important; }
    .ss2-war-stats { margin-bottom: 14px; }
    .ss2-war-stats div { padding: 10px 6px; }
    .ss2-war-stats b { font-size: 17px; }
    .ss2-war-stats small { font-size: 8px; letter-spacing: .7px; }
    #content { gap: 12px; padding-bottom: 20px !important; }
    .MainContent { min-height: 0; }
    .StaticTopPanel { padding: 14px !important; border-radius: 14px !important; }
    .StaticTopPanel h2.TitleMain { font-size: 21px !important; line-height: 1.25 !important; }
    #breadcrumbs { font-size: 10px !important; line-height: 1.5 !important; }
    #hienthi > .ss2-news-article-shell, #hienthi > .ss2-news-list-shell { padding: 16px 13px 20px; border-radius: 14px; }
    #hienthi > .ss2-news-article-shell > h4, #hienthi > .ss2-news-list-shell > h4 { padding-left: 0 !important; font-size: 19px !important; line-height: 1.35 !important; }
    .ss2-news-kicker { font-size: 9px; letter-spacing: 1.4px; }
    .ss2-news-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 11px; }
    .ss2-news-article-content { font-size: 16px; line-height: 1.85; }
    .ss2-news-article-content p { margin-bottom: 15px; }
    .ss2-news-article-content h2, .ss2-news-article-content h3 { font-size: 18px; }
    .ss2-news-headbar { display: block; }
    .ss2-news-count { display: block; margin: 6px 0 0; }
    /* Horizontal pill rail: every category stays one comfortable tap away
       without wrapping into a tall block above the articles. */
    .ss2-news-filter { margin: 14px 0 4px; padding: 7px; gap: 7px; border-radius: 12px; }
    .ss2-news-filter-item { min-width: 0; padding: 10px 14px; border-radius: 9px; }
    .ss2-news-filter-item b { font-size: 13px; white-space: nowrap; }
    .ss2-news-filter-item small { display: none; }
    .ss2-news-item { margin: 0; padding: 11px 6px 10px 12px; }
    .ss2-news-item:before { inset: 11px auto 11px 0; }
    #hienthi > .ss2-news-list-shell { background: #101522 !important; }
    .ss2-news-title { color: #ffdf8f !important; }
    .ss2-news-head { display: block; }
    .ss2-news-title { display: block; font-size: 16px; line-height: 1.4; }
    .ss2-news-date { display: block; margin-top: 6px; font-size: 11px; }
    .ss2-news-body { font-size: 14px; line-height: 1.65; }
    .ss2-news-meta { gap: 10px; font-size: 11px; }
    .ss2-news-related { margin-top: 26px; padding-top: 16px; }
    .ss2-news-related-title { font-size: 11px; }

    /* Sidebar on phones: the install CTA is already in the hero, so keep it
       short and let the slider run landscape instead of 362px tall. */
    .CaiDat { flex-direction: row; align-items: center; width: 100%; }
    .CaiDat a.Download { flex: 0 0 100%; aspect-ratio: 20 / 9; width: 100% !important; }
    .CaiDat a.DangKyNhanh, .CaiDat a.NapThe { flex: 0 0 125px; width: 125px !important; max-width: 125px; }
    #boxEvent { margin-top: 12px; }
    #boxEvent #img { aspect-ratio: 16 / 10 !important; }
    #boxEvent #img li img { min-height: 0 !important; }
    #subNav01 li a { min-height: 46px; font-size: 14px; }
    ul#subNav li a:link, ul#subNav li a:visited, ul#subNav li.HasChild a:link, ul#subNav li.HasChild a:visited { min-height: 46px; font-size: 14px; }
    #footer { padding: 18px 0 82px !important; font-size: 11px; }
    #footer p.Copyright, #footer p.TextLink { line-height: 1.55 !important; }
    /* The dock is relative on phones (it sits after #content), so #content does
       not need a 82px reserve and the old fixed-dock offsets must go. */
    #content { padding-bottom: 20px !important; }
    #quickLink { right: 12px !important; bottom: 12px !important; }
    #quickLink a { width: 40px !important; height: 40px !important; }
    .lz_overlay_chat_button, #lz_chat_state_bar { transform: scale(.85); transform-origin: bottom right; }
}

/* Portal structure v2: navigation is now the entry point, the hero runs full
   bleed, and desktop content reads like a portal (article left, account rail
   right). This is a layout-only layer; legacy templates and routes stay intact. */
body { padding-top: 68px; }
#menu {
    position: fixed !important;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 68px !important;
    display: flex;
    align-items: center;
    background: rgba(8, 11, 20, .96) !important;
    border-top: 0;
    border-bottom: 1px solid rgba(244, 184, 74, .24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
#menu:before {
    content: "MU ONLINE  //  SS2";
    position: absolute;
    left: max(20px, calc((100% - 1180px) / 2));
    color: var(--ss2-gold-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    white-space: nowrap;
    pointer-events: none;
}
#menu ul#mainNav {
    width: min(1180px, calc(100% - 40px)) !important;
    height: 68px !important;
    margin: 0 auto !important;
    justify-content: flex-end;
    gap: 2px;
}
#menu ul#mainNav li > a { height: 68px !important; }
#menu ul#mainNav li ul {
    top: 68px !important;
    bottom: auto !important;
    border-radius: 0 0 12px 12px;
}

@media (min-width: 821px) {
    #header {
        height: 118px !important;
    }
    .SubLogo {
        width: 165px !important;
        height: 92px !important;
        flex-basis: 165px;
    }
    .ss2-hero-intro {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 24px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        padding-left: max(30px, calc((100% - 1180px) / 2 + 30px));
        padding-right: max(30px, calc((100% - 1180px) / 2 + 30px));
    }
    #content {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
        align-items: start;
    }
    .MainContent {
        grid-column: 1;
        grid-row: 1;
    }
    .SideLeft {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 88px;
        align-self: start;
    }
    #footer { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    body { padding-top: 54px; }
    #menu {
        position: fixed !important;
        top: 0 !important;
        height: 54px !important;
        display: block;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    #menu:before { display: none; }
    #menu ul#mainNav {
        width: calc(100% - 28px) !important;
        height: 54px !important;
        margin: 0 auto !important;
    }
    #menu ul#mainNav li > a { height: 42px !important; }
    #menu ul#mainNav li ul {
        top: 42px !important;
        bottom: auto !important;
        border-radius: 0 0 10px 10px;
    }
    .SideLeft { position: static; }
    #footer { padding-bottom: 28px !important; }
}

@media (max-width: 480px) {
    body { padding-top: 54px; }
    #menu ul#mainNav { width: calc(100% - 20px) !important; }
    #footer { padding-bottom: 18px !important; }
    #quickLink { right: 12px !important; bottom: 12px !important; }
}

/* The old dock reserved space below the page; the portal has no bottom dock. */
@media (min-width: 821px) {
    #footer { padding-bottom: 28px; }
    #quickLink { bottom: 22px !important; }
}
@media (max-width: 820px) {
    #footer { padding-bottom: 28px !important; }
    #quickLink { bottom: 12px !important; }
}
@media (max-width: 480px) {
    #footer { padding-bottom: 18px !important; }
}

/* Command-center structure v3: a deliberately different composition from the
   former top-bar portal. Desktop uses a vertical war-room rail and an
   asymmetric operations board; all legacy HTML, routes and controls remain. */
@media (min-width: 821px) {
    body {
        padding-top: 0;
        padding-left: 198px;
        background-color: #090b12 !important;
    }
    .WrapperOut, .WrapperIn, .Wrapper { width: auto !important; min-width: 0; }
    #menu {
        left: 0 !important;
        right: auto !important;
        width: 198px !important;
        height: 100vh !important;
        min-height: 620px;
        box-sizing: border-box;
        display: block;
        padding: 88px 10px 18px;
        border-right: 1px solid rgba(244,184,74,.28);
        border-bottom: 0;
        background:
            linear-gradient(180deg, rgba(20,24,39,.98), rgba(7,9,16,.99) 72%),
            url('../images/bg-sub-top.jpg') center / cover no-repeat !important;
        box-shadow: 12px 0 35px rgba(0,0,0,.35);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    #menu:before {
        content: "MU ONLINE\A COMMAND CENTER";
        left: 22px;
        top: 24px;
        color: var(--ss2-gold-bright);
        font-size: 11px;
        line-height: 1.65;
        letter-spacing: 1.6px;
        white-space: pre;
    }
    #menu:after {
        content: "SEASON 02  //  ONLINE\A\A◆  WAR ROOM\A◆  LIVE SERVER";
        position: absolute;
        left: 22px;
        bottom: 25px;
        color: #68728a;
        font-size: 8px;
        line-height: 1.7;
        letter-spacing: 1.2px;
        white-space: pre;
        pointer-events: none;
    }
    #menu ul#mainNav {
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 150px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: auto;
        overflow-x: visible;
        scrollbar-width: thin;
    }
    #menu ul#mainNav li,
    #menu ul#mainNav li.Blank { width: 100%; flex: 0 0 auto; }
    #menu ul#mainNav li.Blank { display: none !important; }
    #menu ul#mainNav li > a {
        width: 100% !important;
        height: 44px !important;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 0 12px 0 18px !important;
        border-left: 3px solid transparent;
        color: #9ca7bd !important;
        background: rgba(255,255,255,.025) !important;
        font-size: 10px !important;
        letter-spacing: 1px;
        text-align: left;
    }
    #menu ul#mainNav li > a:before {
        content: "◆";
        margin-right: 10px;
        color: #68728a;
        font-size: 7px;
        transition: color .2s ease;
    }
    #menu ul#mainNav li.Hilite > a,
    #menu ul#mainNav li > a:hover {
        border-left-color: var(--ss2-gold);
        color: #fff !important;
        background: linear-gradient(90deg, rgba(219,61,59,.35), rgba(244,184,74,.07)) !important;
        text-shadow: none;
    }
    #menu ul#mainNav li.Hilite > a:before,
    #menu ul#mainNav li > a:hover:before { color: var(--ss2-gold-bright); }
    #menu ul#mainNav li ul {
        top: 0 !important;
        left: calc(100% + 10px) !important;
        bottom: auto !important;
        min-width: 215px;
        border: 1px solid rgba(244,184,74,.3) !important;
        border-radius: 0 8px 8px 8px;
        background: #101522 !important;
        box-shadow: 12px 12px 30px rgba(0,0,0,.4);
    }
    #menu ul#mainNav li.Active ul li,
    #menu ul#mainNav li.Active ul li a { width: 100% !important; }
    #menu ul#mainNav li.Active ul li a {
        height: auto !important;
        min-height: 36px;
        padding: 9px 12px !important;
        border-left: 0;
        background: transparent !important;
        font-size: 11px !important;
        text-transform: none;
    }
    #menu ul#mainNav li.Active ul li a:before { content: none; }
    #header {
        width: calc(100% - 48px) !important;
        height: 96px !important;
        margin: 0 24px !important;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .SubLogo {
        width: 142px !important;
        height: 78px !important;
        flex-basis: 142px;
    }
    #header:after {
        content: "COMMAND CENTER  /  LỤC ĐỊA ĐANG HOẠT ĐỘNG";
        font-size: 9px;
        letter-spacing: 2px;
    }
    .ss2-hero-intro {
        width: calc(100% - 48px) !important;
        min-height: 230px;
        margin: 22px 24px 18px;
        padding: 28px 30px;
        border: 1px solid rgba(244,184,74,.34);
        border-radius: 6px;
        display: grid;
        grid-template-columns: minmax(260px, 1.05fr) minmax(390px, .95fr);
        gap: 24px;
        align-items: center;
        background:
            linear-gradient(105deg, rgba(8,11,20,.97), rgba(28,19,30,.88)),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
        box-shadow: 0 18px 45px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03);
    }
    .ss2-hero-intro:after {
        content: "OPERATIONS BOARD  //  02";
        position: absolute;
        right: 24px;
        top: 14px;
        color: rgba(255,255,255,.35);
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .ss2-hero-copy h1 { font-size: clamp(29px, 3.2vw, 44px); }
    .ss2-portal-seal { width: 88px; height: 88px; position: absolute; right: 30px; bottom: 22px; opacity: .72; }
    .ss2-portal-seal span { font-size: 30px; }
    .ss2-platforms { grid-column: 2; }
    .ss2-platform {
        min-height: 112px;
        border-radius: 4px;
        border-color: rgba(255,255,255,.14);
        background: rgba(255,255,255,.04);
    }
    .ss2-war-stats {
        width: calc(100% - 48px) !important;
        margin: 0 24px 22px;
        min-height: 60px;
        border-radius: 3px;
        border-top-width: 1px;
        border-bottom-width: 1px;
    }
    .ss2-war-stats div { padding: 10px 14px; text-align: left; }
    .ss2-war-stats b { font-size: 17px; }
    #content {
        width: calc(100% - 48px) !important;
        grid-template-columns: minmax(0, 1fr) 294px;
        gap: 24px;
        margin: 0 24px !important;
        padding-bottom: 46px !important;
    }
    .MainContent { min-height: 0; }
    .SideLeft { position: sticky; top: 22px; }
    .StaticTopPanel {
        min-height: 86px;
        margin-bottom: 12px !important;
        padding: 18px 22px !important;
        border-radius: 4px;
        border-left: 3px solid var(--ss2-red);
    }
    .StaticTopPanel h2.TitleMain { font-size: 27px !important; }
    #hienthi > .ss2-news-article-shell,
    #hienthi > .ss2-news-list-shell {
        padding: 22px 24px 28px;
        border-radius: 4px;
        border-left: 3px solid rgba(244,184,74,.62);
    }
    .ss2-news-filter { border-radius: 4px; }
    .ss2-news-filter-item { border-radius: 3px; }
    .ss2-news-item { padding-left: 16px; }
    .SideLeftNav, .DangNhap, #boxEvent { border-radius: 4px; }
    .CaiDat a { border-radius: 4px !important; }
    #footer { width: calc(100% - 48px) !important; margin: 0 24px; }
    #quickLink { right: 24px !important; bottom: 22px !important; }
}

@media (max-width: 820px) {
    body { padding-left: 0; }
    #menu { width: 100% !important; }
    #menu:after { display: none; }
}

/* Cinematic landing structure v4: unlike the top bar and the vertical rail,
   desktop now presents a full-width stage with a floating capsule navigation
   and overlapping editorial panels. Only presentation changes; legacy markup,
   URLs, forms and module behavior are untouched. */
@media (min-width: 821px) {
    body {
        padding: 0;
        background:
            radial-gradient(ellipse at 72% 8%, rgba(177,51,40,.2), transparent 34%),
            linear-gradient(180deg, #0b0c15 0%, #080a11 58%, #0c0d16 100%) !important;
    }
    .WrapperOut, .WrapperIn, .Wrapper { width: 100% !important; }
    #menu {
        position: fixed !important;
        z-index: 1100;
        top: 22px;
        left: 50% !important;
        right: auto !important;
        width: min(760px, calc(100% - 420px)) !important;
        height: 54px !important;
        min-height: 0;
        padding: 0;
        display: block;
        transform: translateX(-50%);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 999px;
        background: rgba(11,13,23,.78) !important;
        box-shadow: 0 14px 38px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    #menu:before {
        content: "MU / SS2";
        left: -116px;
        top: 17px;
        color: var(--ss2-gold-bright);
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 2px;
        white-space: nowrap;
    }
    #menu:after {
        content: "PLAY THE LEGEND";
        position: absolute;
        left: calc(100% + 24px);
        top: 20px;
        color: rgba(255,255,255,.42);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1.8px;
        white-space: nowrap;
        pointer-events: none;
    }
    #menu ul#mainNav {
        width: 100% !important;
        height: 54px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        overflow: visible;
    }
    #menu ul#mainNav li,
    #menu ul#mainNav li.Blank { flex: 0 0 auto; width: auto; }
    #menu ul#mainNav li.Blank { display: none !important; }
    #menu ul#mainNav li > a {
        width: auto !important;
        height: 40px !important;
        box-sizing: border-box;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 999px;
        color: #aab3c9 !important;
        background: transparent !important;
        font-size: 10px !important;
        letter-spacing: .8px;
        white-space: nowrap;
    }
    #menu ul#mainNav li > a:before { content: none; }
    #menu ul#mainNav li.Hilite > a,
    #menu ul#mainNav li > a:hover {
        color: #17111a !important;
        background: linear-gradient(135deg, var(--ss2-gold-bright), #dc702d) !important;
        text-shadow: none;
    }
    #menu ul#mainNav li ul {
        top: 45px !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translateX(-50%);
        min-width: 210px;
        border: 1px solid rgba(244,184,74,.35) !important;
        border-radius: 14px;
        background: rgba(12,15,27,.98) !important;
        box-shadow: 0 16px 35px rgba(0,0,0,.48);
    }
    #menu ul#mainNav li.Active ul li,
    #menu ul#mainNav li.Active ul li a { width: 100% !important; }
    #menu ul#mainNav li.Active ul li a {
        height: auto !important;
        padding: 9px 12px !important;
        border-radius: 7px;
        color: var(--ss2-muted) !important;
        font-size: 11px !important;
        text-transform: none;
    }
    #menu ul#mainNav li.Active ul li a:hover { color: var(--ss2-gold-bright) !important; background: rgba(255,255,255,.06) !important; }
    #header {
        width: min(1240px, calc(100% - 80px)) !important;
        height: 164px !important;
        margin: 0 auto !important;
        align-items: flex-end;
        padding-bottom: 22px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .SubLogo {
        width: 178px !important;
        height: 98px !important;
        flex-basis: 178px;
    }
    #header:after {
        content: "A LEGEND REBORN  /  SEASON 02";
        margin-bottom: 12px;
        color: rgba(255,255,255,.48);
        font-size: 9px;
        letter-spacing: 2.6px;
    }
    .ss2-hero-intro {
        width: 100% !important;
        max-width: none !important;
        min-height: 390px;
        margin: 0 0 28px;
        box-sizing: border-box;
        padding: 66px max(40px, calc((100% - 1240px) / 2 + 40px)) 54px;
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
        gap: 56px;
        border: 0;
        border-bottom: 1px solid rgba(244,184,74,.28);
        border-radius: 0;
        background:
            linear-gradient(90deg, rgba(7,9,17,.96) 0%, rgba(9,11,20,.78) 45%, rgba(50,17,27,.42) 100%),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
        box-shadow: 0 25px 55px rgba(0,0,0,.28), inset 0 -80px 100px rgba(8,10,17,.7);
    }
    .ss2-hero-intro:before {
        width: 520px;
        height: 520px;
        right: 17%;
        top: -300px;
        background: rgba(244,184,74,.08);
    }
    .ss2-hero-intro:after {
        content: "THE CONTINENT AWAITS";
        position: absolute;
        right: max(40px, calc((100% - 1240px) / 2 + 40px));
        bottom: 24px;
        color: rgba(255,255,255,.35);
        font-size: 8px;
        letter-spacing: 2px;
    }
    .ss2-hero-copy { align-self: center; }
    .ss2-hero-copy h1 {
        max-width: 690px;
        font-size: clamp(42px, 5.2vw, 76px);
        line-height: .98;
        letter-spacing: -2.5px;
    }
    .ss2-hero-copy p { max-width: 540px; margin-top: 18px; font-size: 15px; }
    .ss2-hero-tags { margin-top: 25px; }
    .ss2-portal-seal { width: 130px; height: 130px; right: 45%; top: 44px; opacity: .55; }
    .ss2-platforms {
        align-self: end;
        padding-bottom: 2px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .ss2-platform {
        min-height: 132px;
        padding: 17px 13px;
        border-radius: 6px;
        background: rgba(7,10,18,.54);
        border-color: rgba(255,255,255,.17);
    }
    .ss2-platform:hover { transform: translateY(-8px); }
    .ss2-war-stats {
        width: min(1240px, calc(100% - 80px)) !important;
        margin: 0 auto 26px;
        border: 0;
        border-left: 2px solid var(--ss2-red);
        border-radius: 0;
        background: rgba(255,255,255,.035);
        box-shadow: none;
    }
    .ss2-war-stats div { padding: 14px 20px; text-align: left; }
    .ss2-war-stats b { font-size: 19px; }
    #content {
        width: min(1240px, calc(100% - 80px)) !important;
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 36px;
        margin: 0 auto !important;
        padding-bottom: 48px !important;
    }
    .MainContent { min-height: 0; }
    .SideLeft { position: relative; top: auto; }
    .StaticTopPanel {
        min-height: 90px;
        padding: 18px 0 !important;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }
    .StaticTopPanel h2.TitleMain { font-size: 31px !important; }
    #hienthi > .ss2-news-article-shell,
    #hienthi > .ss2-news-list-shell {
        padding: 28px 0 32px;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }
    .ss2-news-filter { padding: 7px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; background: transparent; }
    .ss2-news-filter-item { border-radius: 999px; }
    .ss2-news-item { padding: 17px 12px 17px 16px; }
    .ss2-news-item:hover { background: rgba(244,184,74,.07); }
    .SideLeftNav, .DangNhap, #boxEvent {
        border-radius: 8px;
        border-color: rgba(255,255,255,.12);
    }
    .CaiDat a { border-radius: 8px !important; }
    #footer { width: min(1240px, calc(100% - 80px)) !important; margin: 0 auto; }
    #quickLink { right: max(24px, calc((100% - 1240px) / 2)) !important; bottom: 24px !important; }
}

/* Guild Hall bento structure v5: a new visual system rather than another
   navigation relocation. The page becomes a dark MU guild hall with a masthead,
   compact battle board, editorial news column and a dedicated account wing. */
@media (min-width: 821px) {
    body {
        padding: 74px 0 0;
        color: #f6f1eb !important;
        background:
            linear-gradient(115deg, rgba(101,27,43,.16), transparent 34%),
            radial-gradient(circle at 88% 30%, rgba(215,143,54,.11), transparent 24%),
            #0d0c12 !important;
    }
    body:before {
        position: fixed;
        opacity: .3;
        background:
            linear-gradient(180deg, rgba(13,12,18,.46), rgba(13,12,18,.96)),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
    }
    .WrapperOut, .WrapperIn, .Wrapper { width: 100% !important; }
    #header {
        width: min(1240px, calc(100% - 72px)) !important;
        height: 92px !important;
        margin: 0 auto !important;
        padding: 0 4px;
        box-sizing: border-box;
        align-items: center;
        border: 0;
    }
    .SubLogo {
        width: 156px !important;
        height: 80px !important;
        flex-basis: 156px;
        filter: drop-shadow(0 7px 18px rgba(0,0,0,.55));
    }
    #header:after {
        content: "GUILD HALL  /  MU SEASON 2";
        margin-left: 22px;
        padding-left: 22px;
        border-left: 1px solid rgba(244,184,74,.4);
        color: #b9a8a6;
        font-size: 10px;
        letter-spacing: 2.4px;
    }
    #menu {
        position: fixed !important;
        z-index: 1100;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 74px !important;
        padding: 0;
        display: flex;
        align-items: center;
        transform: none;
        border: 0;
        border-bottom: 1px solid rgba(244,184,74,.2);
        border-radius: 0;
        background: rgba(13,12,18,.96) !important;
        box-shadow: 0 10px 32px rgba(0,0,0,.32);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    #menu:before {
        content: "MU  /  GUILD HALL";
        left: max(24px, calc((100% - 1240px) / 2));
        top: 28px;
        color: #f4c567;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 2px;
        white-space: nowrap;
    }
    #menu:after {
        content: "SEASON 02  •  LỤC ĐỊA ONLINE";
        left: auto;
        right: max(24px, calc((100% - 1240px) / 2));
        top: 30px;
        color: #756b78;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1.4px;
        white-space: nowrap;
    }
    #menu ul#mainNav {
        width: min(720px, calc(100% - 560px)) !important;
        height: 74px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        overflow: visible;
    }
    #menu ul#mainNav li,
    #menu ul#mainNav li.Blank { width: auto; flex: 0 0 auto; }
    #menu ul#mainNav li.Blank { display: none !important; }
    #menu ul#mainNav li > a {
        width: auto !important;
        height: 38px !important;
        padding: 0 12px !important;
        border: 1px solid transparent !important;
        border-radius: 6px;
        color: #a79da9 !important;
        background: transparent !important;
        font-size: 10px !important;
        letter-spacing: .7px;
        white-space: nowrap;
    }
    #menu ul#mainNav li > a:before { content: none; }
    #menu ul#mainNav li.Hilite > a,
    #menu ul#mainNav li > a:hover {
        border-color: rgba(244,184,74,.36) !important;
        color: #ffe3a0 !important;
        background: rgba(139,39,57,.34) !important;
        text-shadow: none;
    }
    #menu ul#mainNav li ul {
        top: 56px !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translateX(-50%);
        min-width: 215px;
        border: 1px solid rgba(244,184,74,.3) !important;
        border-radius: 8px;
        background: #17131d !important;
        box-shadow: 0 16px 35px rgba(0,0,0,.48);
    }
    #menu ul#mainNav li.Active ul li,
    #menu ul#mainNav li.Active ul li a { width: 100% !important; }
    #menu ul#mainNav li.Active ul li a {
        height: auto !important;
        padding: 9px 12px !important;
        border: 0 !important;
        color: #b9a8b2 !important;
        font-size: 11px !important;
        text-transform: none;
    }
    #menu ul#mainNav li.Active ul li a:hover { color: #f4c567 !important; background: rgba(255,255,255,.06) !important; }
    .ss2-hero-intro {
        width: min(1240px, calc(100% - 72px)) !important;
        min-height: 250px;
        margin: 0 auto 24px;
        padding: 34px 38px;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr);
        gap: 30px;
        box-sizing: border-box;
        border: 1px solid rgba(244,184,74,.22);
        border-radius: 20px 6px 20px 6px;
        background:
            linear-gradient(100deg, rgba(29,16,28,.98), rgba(19,21,31,.9) 55%, rgba(75,26,39,.72)),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
        box-shadow: 0 22px 52px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.1);
    }
    .ss2-hero-intro:before {
        width: 300px;
        height: 300px;
        right: 35%;
        top: -190px;
        background: rgba(205,72,61,.16);
        filter: blur(8px);
    }
    .ss2-hero-intro:after {
        content: "WELCOME TO THE GUILD HALL";
        position: absolute;
        right: 34px;
        bottom: 14px;
        color: rgba(255,255,255,.32);
        font-size: 8px;
        letter-spacing: 1.8px;
    }
    .ss2-hero-copy { align-self: center; }
    .ss2-eyebrow { color: #f4c567; font-size: 10px; letter-spacing: 2.4px; }
    .ss2-hero-copy h1 {
        max-width: 620px;
        margin-bottom: 10px;
        color: #fff7eb;
        font-size: clamp(32px, 4vw, 58px);
        line-height: 1.02;
        letter-spacing: -1.6px;
    }
    .ss2-hero-copy h1 em { color: #ef8b66; }
    .ss2-hero-copy p { max-width: 530px; color: #c1b4bd; font-size: 14px; }
    .ss2-hero-tags { margin-top: 18px; }
    .ss2-hero-tags span { border-radius: 999px; border-color: rgba(244,184,74,.28); }
    .ss2-portal-seal { width: 96px; height: 96px; right: 38%; top: 28px; opacity: .62; }
    .ss2-platforms { align-self: center; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .ss2-platform {
        min-height: 116px;
        padding: 15px 11px;
        border-radius: 10px 3px 10px 3px;
        border-color: rgba(255,255,255,.13);
        background: rgba(8,10,17,.48);
    }
    .ss2-platform:hover { transform: translateY(-5px); border-color: rgba(244,184,74,.7); }
    .ss2-war-stats {
        width: min(1240px, calc(100% - 72px)) !important;
        min-height: 66px;
        margin: 0 auto 26px;
        border: 1px solid rgba(255,255,255,.09);
        border-left: 4px solid #c64b4d;
        border-radius: 6px;
        background: rgba(23,19,29,.9);
        box-shadow: 0 10px 28px rgba(0,0,0,.2);
    }
    .ss2-war-stats div { padding: 12px 18px; text-align: left; }
    .ss2-war-stats b { color: #f4c567; font-size: 18px; }
    .ss2-war-stats small { color: #95858f; }
    #content {
        width: min(1240px, calc(100% - 72px)) !important;
        grid-template-columns: minmax(0, 1fr) 318px;
        gap: 26px;
        margin: 0 auto !important;
        padding-bottom: 44px !important;
        align-items: start;
    }
    .MainContent { min-height: 0; }
    .SideLeft { position: relative; top: auto; }
    .StaticTopPanel {
        min-height: 78px;
        margin: 0 0 16px !important;
        padding: 16px 22px !important;
        border: 1px solid rgba(255,255,255,.09);
        border-left: 4px solid #c64b4d;
        border-radius: 10px 3px 10px 3px;
        background: rgba(23,19,29,.86) !important;
        box-shadow: 0 12px 26px rgba(0,0,0,.18);
    }
    .StaticTopPanel h2.TitleMain { color: #f4c567 !important; font-size: 28px !important; }
    p#breadcrumbs { color: #978995 !important; }
    #hienthi > .ss2-news-article-shell,
    #hienthi > .ss2-news-list-shell {
        padding: 24px 26px 30px;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 12px 4px 12px 4px;
        background: rgba(18,16,24,.94) !important;
        box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.06);
    }
    .ss2-news-headbar h4 { color: #f4c567 !important; }
    .ss2-news-filter { border-radius: 8px; background: rgba(255,255,255,.025); }
    .ss2-news-filter-item { border-radius: 5px 2px 5px 2px; }
    .ss2-news-item { padding: 15px 10px 14px 16px; }
    .ss2-news-item:before { width: 3px; background: linear-gradient(#c64b4d, #f4c567); }
    .ss2-news-title { color: #f7d58a !important; }
    .ss2-news-body { color: #bdb2bf; }
    .CaiDat, .DangNhap, .SideLeftNav, #boxEvent, #subNav01 { position: relative; }
    .CaiDat:before, .DangNhap:before, .SideLeftNav:before, #boxEvent:before {
        content: "";
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 34px;
        height: 3px;
        background: #c64b4d;
        pointer-events: none;
    }
    .CaiDat a { border-radius: 7px !important; }
    .DangNhap, .SideLeftNav, #boxEvent {
        border-color: rgba(255,255,255,.1);
        border-radius: 10px 4px 10px 4px;
        background: rgba(22,18,29,.94) !important;
    }
    .SideLeftNav { margin-top: 14px !important; }
    .TitleMenuLeft { color: #f4c567 !important; background: linear-gradient(100deg, rgba(139,39,57,.5), rgba(139,39,57,.08)) !important; }
    #footer { width: min(1240px, calc(100% - 72px)) !important; margin: 0 auto; }
    #quickLink { right: max(22px, calc((100% - 1240px) / 2)) !important; bottom: 22px !important; }
}

@media (max-width: 820px) {
    body {
        padding-top: 54px;
        padding-left: 0;
        background: #0d0c12 !important;
    }
    #menu { width: 100% !important; }
    #menu:before, #menu:after { display: none; }
    #header {
        border-bottom: 1px solid rgba(244,184,74,.16);
        background: linear-gradient(90deg, rgba(139,39,57,.14), transparent);
    }
    .ss2-hero-intro {
        border-color: rgba(244,184,74,.22);
        border-radius: 14px 4px 14px 4px;
        background: linear-gradient(105deg, rgba(29,16,28,.97), rgba(19,21,31,.92)) !important;
        box-shadow: 0 14px 32px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08);
    }
    .ss2-eyebrow { color: #f4c567; }
    .ss2-hero-copy h1 { color: #fff7eb; }
    .ss2-hero-copy h1 em { color: #ef8b66; }
    .ss2-platform { border-radius: 8px 3px 8px 3px; border-color: rgba(244,184,74,.18); background: rgba(22,18,29,.75); }
    .ss2-war-stats {
        border-color: rgba(255,255,255,.09);
        border-left: 3px solid #c64b4d;
        border-radius: 5px;
        background: rgba(23,19,29,.9);
    }
    .ss2-war-stats b { color: #f4c567; }
    .StaticTopPanel {
        border-color: rgba(255,255,255,.1);
        border-left: 3px solid #c64b4d;
        border-radius: 9px 3px 9px 3px;
        background: rgba(23,19,29,.88) !important;
    }
    .StaticTopPanel h2.TitleMain { color: #f4c567 !important; }
    #hienthi > .ss2-news-article-shell,
    #hienthi > .ss2-news-list-shell {
        border-color: rgba(255,255,255,.1);
        border-radius: 11px 4px 11px 4px;
        background: rgba(18,16,24,.96) !important;
    }
    .ss2-news-headbar h4 { color: #f4c567 !important; }
    .ss2-news-title { color: #f7d58a !important; }
    .ss2-news-item:before { background: linear-gradient(#c64b4d, #f4c567); }
    .DangNhap, .SideLeftNav, #boxEvent {
        border-color: rgba(255,255,255,.1);
        border-radius: 10px 4px 10px 4px;
        background: rgba(22,18,29,.96) !important;
    }
    .TitleMenuLeft { color: #f4c567 !important; background: linear-gradient(100deg, rgba(139,39,57,.5), rgba(139,39,57,.08)) !important; }
    .CaiDat a { border-radius: 7px !important; }
}

/* Astral MU structure v6: replace the Guild Hall treatment with a cool,
   launcher-inspired interface. It intentionally removes the red/gold war-room
   language and uses midnight blue, cyan and violet with clean geometry. */
:root {
    --ss2-ink: #07111f;
    --ss2-panel: rgba(12, 25, 44, .94);
    --ss2-panel-soft: rgba(19, 36, 61, .82);
    --ss2-line: rgba(122, 211, 255, .16);
    --ss2-text: #edf8ff;
    --ss2-muted: #91a9bd;
    --ss2-gold: #70d8ff;
    --ss2-gold-bright: #d0f5ff;
    --ss2-red: #957aff;
    --ss2-blue: #5ccaff;
}
@media (min-width: 821px) {
    body {
        padding: 70px 0 0 !important;
        color: #edf8ff !important;
        background:
            radial-gradient(circle at 18% 15%, rgba(58,159,224,.17), transparent 29%),
            radial-gradient(circle at 85% 45%, rgba(126,93,240,.14), transparent 32%),
            #07111f !important;
    }
    body:before {
        position: fixed;
        opacity: .22;
        background:
            linear-gradient(180deg, rgba(7,17,31,.45), rgba(7,17,31,.96)),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
    }
    body:after {
        background-image: radial-gradient(rgba(111,214,255,.11) 1px, transparent 1px);
        background-size: 22px 22px;
        opacity: .22;
    }
    .WrapperOut, .WrapperIn, .Wrapper { width: 100% !important; }
    #menu {
        position: fixed !important;
        z-index: 1100;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70px !important;
        padding: 0;
        display: flex;
        align-items: center;
        border: 0;
        border-bottom: 1px solid rgba(112,216,255,.23);
        border-radius: 0;
        background: rgba(5, 15, 28, .9) !important;
        box-shadow: 0 8px 26px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.05) inset;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    #menu:before {
        content: "MU\\A ONLINE";
        left: max(24px, calc((100% - 1240px) / 2));
        top: 15px;
        color: #78dcff;
        font-size: 12px;
        line-height: 1.15;
        font-weight: 900;
        letter-spacing: 2.2px;
        white-space: pre;
        text-shadow: 0 0 18px rgba(92,202,255,.55);
    }
    #menu:after {
        content: "SEASON 02  /  SERVER ONLINE";
        left: auto;
        right: max(24px, calc((100% - 1240px) / 2));
        top: 28px;
        color: #748da5;
        font-size: 8px;
        letter-spacing: 1.4px;
        white-space: nowrap;
    }
    #menu ul#mainNav {
        width: min(700px, calc(100% - 500px)) !important;
        height: 70px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        overflow: visible;
    }
    #menu ul#mainNav li, #menu ul#mainNav li.Blank { width: auto; flex: 0 0 auto; }
    #menu ul#mainNav li.Blank { display: none !important; }
    #menu ul#mainNav li > a {
        width: auto !important;
        height: 36px !important;
        padding: 0 13px !important;
        border: 1px solid transparent !important;
        border-radius: 5px;
        color: #91a9bd !important;
        background: transparent !important;
        font-size: 10px !important;
        letter-spacing: .8px;
        white-space: nowrap;
    }
    #menu ul#mainNav li > a:before { content: none; }
    #menu ul#mainNav li.Hilite > a, #menu ul#mainNav li > a:hover {
        border-color: rgba(112,216,255,.42) !important;
        color: #d0f5ff !important;
        background: linear-gradient(135deg, rgba(92,202,255,.18), rgba(149,122,255,.16)) !important;
        box-shadow: 0 0 18px rgba(92,202,255,.09);
        text-shadow: none;
    }
    #menu ul#mainNav li ul {
        top: 54px !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translateX(-50%);
        min-width: 215px;
        border: 1px solid rgba(112,216,255,.25) !important;
        border-radius: 7px;
        background: rgba(8,20,36,.98) !important;
        box-shadow: 0 16px 35px rgba(0,0,0,.46);
    }
    #menu ul#mainNav li.Active ul li, #menu ul#mainNav li.Active ul li a { width: 100% !important; }
    #menu ul#mainNav li.Active ul li a {
        height: auto !important;
        padding: 9px 12px !important;
        border: 0 !important;
        color: #91a9bd !important;
        font-size: 11px !important;
        text-transform: none;
    }
    #menu ul#mainNav li.Active ul li a:hover { color: #d0f5ff !important; background: rgba(92,202,255,.1) !important; }
    #header {
        width: min(1240px, calc(100% - 72px)) !important;
        height: 96px !important;
        margin: 0 auto !important;
        padding: 0 12px;
        box-sizing: border-box;
        align-items: center;
        border: 0;
    }
    .SubLogo {
        width: 160px !important;
        height: 82px !important;
        flex-basis: 160px;
        filter: drop-shadow(0 8px 20px rgba(32,139,205,.35));
    }
    #header:after {
        content: "THE ORIGINAL CONTINENT  /  CONNECT YOUR LEGEND";
        margin-left: auto;
        color: #6e8aa2;
        font-size: 9px;
        letter-spacing: 2px;
    }
    .ss2-hero-intro {
        width: min(1240px, calc(100% - 72px)) !important;
        min-height: 278px;
        margin: 0 auto 20px;
        padding: 38px 42px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 45px;
        box-sizing: border-box;
        border: 1px solid rgba(112,216,255,.22);
        border-radius: 8px;
        background:
            linear-gradient(105deg, rgba(5,18,34,.97), rgba(13,30,52,.85) 58%, rgba(38,29,78,.78)),
            url('../images/bg-sub-top.jpg') center / cover no-repeat;
        box-shadow: 0 20px 48px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.1);
    }
    .ss2-hero-intro:before {
        width: 410px;
        height: 410px;
        right: 24%;
        top: -245px;
        background: rgba(92,202,255,.11);
        filter: blur(9px);
    }
    .ss2-hero-intro:after {
        content: "01  /  ENTER THE CONTINENT";
        position: absolute;
        right: 32px;
        bottom: 15px;
        color: #60829b;
        font-size: 8px;
        letter-spacing: 1.6px;
    }
    .ss2-hero-copy { align-self: center; }
    .ss2-eyebrow { color: #70d8ff; font-size: 10px; letter-spacing: 2.5px; }
    .ss2-hero-copy h1 {
        max-width: 600px;
        color: #effaff;
        font-size: clamp(32px, 4vw, 58px);
        line-height: 1.02;
        letter-spacing: -1.8px;
    }
    .ss2-hero-copy h1 em { color: #ad9aff; }
    .ss2-hero-copy p { max-width: 500px; color: #9db4c8; font-size: 14px; }
    .ss2-hero-tags span { border-color: rgba(112,216,255,.3); border-radius: 4px; color: #9be5ff; background: rgba(92,202,255,.06); }
    .ss2-portal-seal { width: 88px; height: 88px; right: 40%; top: 22px; opacity: .48; border-color: #72d9ff; background: radial-gradient(circle, rgba(54,137,202,.55), rgba(13,27,48,.96) 66%); box-shadow: 0 0 0 5px rgba(92,202,255,.08), 0 0 35px rgba(92,202,255,.2), inset 0 0 22px rgba(0,0,0,.75); }
    .ss2-portal-seal span, .ss2-portal-seal small { color: #c7f3ff; }
    .ss2-platforms { align-self: center; grid-template-columns: 1fr; gap: 8px; }
    .ss2-platform {
        min-height: 66px;
        padding: 10px 14px;
        flex-direction: row;
        align-items: center;
        border-radius: 6px;
        border-color: rgba(112,216,255,.16);
        background: rgba(6,17,32,.58);
    }
    .ss2-platform:hover { transform: translateX(7px); border-color: rgba(112,216,255,.68); background: rgba(92,202,255,.1); }
    .ss2-platform-icon { margin-right: 9px; background: linear-gradient(135deg, #70d8ff, #7f73ec); color: #07111f; }
    .ss2-platform-web .ss2-platform-icon { background: linear-gradient(135deg, #9c91ff, #5976e9); }
    .ss2-platform-mobile .ss2-platform-icon { background: linear-gradient(135deg, #7bdaff, #4f9fdb); }
    .ss2-platform b { color: #eafaff; }
    .ss2-platform small { color: #7f9bb2; }
    .ss2-war-stats {
        width: min(1240px, calc(100% - 72px)) !important;
        min-height: 62px;
        margin: 0 auto 22px;
        border: 1px solid rgba(112,216,255,.15);
        border-radius: 7px;
        background: rgba(10,25,43,.85);
        box-shadow: 0 10px 28px rgba(0,0,0,.2);
    }
    .ss2-war-stats div { padding: 11px 18px; text-align: left; border-right-color: rgba(112,216,255,.12); }
    .ss2-war-stats b { color: #70d8ff; font-size: 18px; }
    .ss2-war-stats small { color: #7894ab; }
    #content {
        width: min(1240px, calc(100% - 72px)) !important;
        grid-template-columns: minmax(0, 1fr) 318px;
        gap: 24px;
        margin: 0 auto !important;
        padding-bottom: 44px !important;
        align-items: start;
    }
    .MainContent { min-height: 0; }
    .SideLeft { position: relative; top: auto; }
    .StaticTopPanel {
        min-height: 76px;
        margin: 0 0 14px !important;
        padding: 16px 21px !important;
        border: 1px solid rgba(112,216,255,.14);
        border-radius: 7px;
        background: rgba(10,25,43,.86) !important;
        box-shadow: 0 12px 26px rgba(0,0,0,.18);
    }
    .StaticTopPanel h2.TitleMain { color: #70d8ff !important; font-size: 27px !important; }
    p#breadcrumbs { color: #7894ab !important; }
    #hienthi > .ss2-news-article-shell, #hienthi > .ss2-news-list-shell {
        padding: 23px 25px 28px;
        border: 1px solid rgba(112,216,255,.14);
        border-radius: 8px;
        background: rgba(9,22,38,.95) !important;
        box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.06);
    }
    .ss2-news-headbar h4 { color: #70d8ff !important; }
    .ss2-news-filter { border-color: rgba(112,216,255,.12); border-radius: 6px; background: rgba(92,202,255,.035); }
    .ss2-news-filter-item { border-color: rgba(112,216,255,.13); border-radius: 5px; }
    .ss2-news-filter-item:hover, .ss2-news-filter-item.is-active { color: #d0f5ff !important; border-color: rgba(112,216,255,.55); background: linear-gradient(135deg, rgba(92,202,255,.18), rgba(149,122,255,.12)); }
    .ss2-news-item { padding: 15px 10px 14px 16px; }
    .ss2-news-item:before { width: 2px; background: linear-gradient(#70d8ff, #957aff); }
    .ss2-news-title { color: #c9f2ff !important; }
    .ss2-news-body { color: #9eb5c8; }
    .CaiDat, .DangNhap, .SideLeftNav, #boxEvent { border-color: rgba(112,216,255,.14); border-radius: 8px; background: rgba(10,25,43,.94) !important; }
    .CaiDat:before, .DangNhap:before, .SideLeftNav:before, #boxEvent:before { background: linear-gradient(90deg, #70d8ff, #957aff); }
    .CaiDat a { border-radius: 6px !important; }
    .TitleMenuLeft { color: #70d8ff !important; background: linear-gradient(100deg, rgba(68,126,190,.36), rgba(68,126,190,.06)) !important; }
    #footer { width: min(1240px, calc(100% - 72px)) !important; margin: 0 auto; }
    #quickLink { right: max(22px, calc((100% - 1240px) / 2)) !important; bottom: 22px !important; }
}

@media (max-width: 820px) {
    body { padding-top: 54px; padding-left: 0; background: #07111f !important; }
    #menu { width: 100% !important; }
    #menu:before, #menu:after { display: none; }
    .ss2-hero-intro { border-color: rgba(112,216,255,.2); border-radius: 12px 4px 12px 4px; background: linear-gradient(105deg, rgba(5,18,34,.98), rgba(19,25,49,.94)) !important; }
    .ss2-eyebrow { color: #70d8ff; }
    .ss2-hero-copy h1 { color: #effaff; }
    .ss2-hero-copy h1 em { color: #ad9aff; }
    .ss2-platform { border-color: rgba(112,216,255,.18); border-radius: 7px 3px 7px 3px; background: rgba(10,25,43,.82); }
    .ss2-platform-icon { background: linear-gradient(135deg, #70d8ff, #7f73ec); color: #07111f; }
    .ss2-war-stats { border-color: rgba(112,216,255,.14); border-radius: 5px; background: rgba(10,25,43,.9); }
    .ss2-war-stats b { color: #70d8ff; }
    .StaticTopPanel { border-color: rgba(112,216,255,.14); border-radius: 8px; background: rgba(10,25,43,.88) !important; }
    .StaticTopPanel h2.TitleMain { color: #70d8ff !important; }
    #hienthi > .ss2-news-article-shell, #hienthi > .ss2-news-list-shell { border-color: rgba(112,216,255,.14); border-radius: 9px; background: rgba(9,22,38,.96) !important; }
    .ss2-news-headbar h4 { color: #70d8ff !important; }
    .ss2-news-title { color: #c9f2ff !important; }
    .ss2-news-item:before { background: linear-gradient(#70d8ff, #957aff); }
    .DangNhap, .SideLeftNav, #boxEvent { border-color: rgba(112,216,255,.14); border-radius: 8px; background: rgba(10,25,43,.96) !important; }
    .TitleMenuLeft { color: #70d8ff !important; background: linear-gradient(100deg, rgba(68,126,190,.36), rgba(68,126,190,.06)) !important; }
    .CaiDat a { border-radius: 6px !important; }
}
