:root {
    --ink: #14100b;
    --ink-soft: #241d15;
    --paper: #fdf8ee;
    --paper-dark: #ead9b8;
    --gold: #c7943f;
    --gold-light: #efc878;
    --gold-deep: #93641c;
    --red: #8d221d;
    --red-bright: #b23b2d;
    --muted: #7c7364;
    --line: rgba(147, 100, 28, 0.22);
    --bg: #f8f2e4;
    --bg-soft: #efe4cc;
    /* Trang Hiep Khach: SS2 chom nguoc len tren banner SS1 bao nhieu.
       Banner cao 56.3vw (anh 1672x941 trai full chieu ngang), hoa van duoi dong
       chu ket thuc o 24.2vw -> chom 31vw thi mep tren SS2 dung ngay duoi chu. */
    --hero-overlap: 31vw;
    /* Trang Su kien va Tin tuc (2 banner cung kich thuoc): noi dung chom nguoc len
       tren banner bao nhieu.
       Banner cao 39.28vw (anh bg-sk 2001x786 trai full chieu ngang), doan chu
       ket thuc o y595/786 = 29.7vw -> chom 9vw thi noi dung do ngay duoi chu,
       bo di khoang may trong o duoi cung. */
    --sk-overlap: 9vw;
    --surface: #fffaf0;
    --text: #2b2318;
    --text-soft: #6e6252;
    --border: rgba(43, 35, 24, 0.1);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}
a {
    color: inherit;
    text-decoration: none;
    transition: 0.25s ease;
}
a:hover {
    color: var(--gold-deep);
}
img {
    display: block;
    max-width: 100%;
}
button,
input,
select,
textarea {
    font: inherit;
}
.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}
.text-center {
    text-align: center;
}
.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 99;
    pointer-events: none;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.license-only-page {
    min-height: 100vh;
}

.license-only {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.license-only-card {
    width: min(640px, 100%);
    text-align: center;
}

.license-only-card img {
    width: min(260px, 80%);
    margin: 0 auto 22px;
}

.license-only-card p {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
}

.site-header {
    /* Dai trang tri bg-header.png: anh 2048x306, ty le 6.868, dai giay sang o
       giua chiem y 38.6%-83.7% (tam o 61.1%). De hoa van KHONG bi keo meo thi
       chieu cao lop nen phai = be rong / 6.868 = 14.56vw, roi keo len tren sao
       cho tam dai giay trung tam thanh nav (84px / 2 = 42px). */
    /* chan tren 240px: de nguyen 14.56vw thi o man rong dai cao toi 280px,
       cao hon han thanh nav 84px nen hut mot mang trong o duoi. Chan lai doi
       lai anh bi keo ngang ~17% o 1920px - hoa van thoai nen khong lo. */
    --hdr-bg-h: clamp(190px, 14.56vw, 240px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    transition: 0.3s ease;
}
.site-header::before {
    position: absolute;
    top: calc(42px - var(--hdr-bg-h) * 0.611);
    right: 0;
    left: 0;
    z-index: -1;
    height: var(--hdr-bg-h);
    content: "";
    background: url("/assets/game/ui/bg-header.webp") center / 100% 100% no-repeat;
    /* Mask hai dau:
       - Tren: mep man hinh cat ngang chan huy hieu vang, de nguyen thi thanh mot
         vet vang cut. 61.1% - 42px chinh la vi tri y=0 cua man hinh tinh tu dinh
         lop nay, nen cho anh mo dan 18px ke tu do.
       - Duoi: dai giay ket thuc bang mot duong ke vang + vien kim cuong chay
         ngang het man hinh o 83.7% chieu cao lop. Phai tat han TRUOC moc do
         (transparent tu 80%) thi duong ke moi bien mat; fade den 92% van con
         ~40% do duc nen van nhin ro. Menu nam o 56-65% nen khong bi anh huong. */
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(61.1% - 42px), #000 calc(61.1% - 24px), #000 66%, transparent 80%);
    mask-image: linear-gradient(to bottom, transparent calc(61.1% - 42px), #000 calc(61.1% - 24px), #000 66%, transparent 80%);
    pointer-events: none;
}
/* CuÃ¡Â»â„¢n xuÃ¡Â»â€˜ng thÃƒÂ¬ header vÃ¡ÂºÂ«n dÃƒÂ­nh lÃƒÂªn Ã„â€˜Ã¡Â»â€°nh nhÃ†Â°ng KHÃƒâ€NG cÃƒÂ³ nÃ¡Â»Ân, viÃ¡Â»Ân hay Ã„â€˜Ã¡Â»â€¢ bÃƒÂ³ng.
   GiÃ¡Â»Â¯ lÃ¡ÂºÂ¡i quÃ¡ÂºÂ§ng sÃƒÂ¡ng trÃ¡ÂºÂ¯ng Ã¡Â»Å¸ .nav-link (khÃƒÂ´ng tÃ¡ÂºÂ¯t text-shadow nhÃ†Â° trÃ†Â°Ã¡Â»â€ºc) vÃƒÂ¬ giÃ¡Â»Â
   chÃ¡Â»Â¯ nÃ¡ÂºÂ±m thÃ¡ÂºÂ³ng trÃƒÂªn nÃ¡Â»â„¢i dung trang, cÃ¡ÂºÂ§n viÃ¡Â»Ân sÃƒÂ¡ng mÃ¡Â»â€ºi tÃƒÂ¡ch ra Ã„â€˜Ã†Â°Ã¡Â»Â£c. */
.site-header.is-fixed {
    position: fixed;
}
.navbar {
    /* header cÃ¡ÂºÂ§n rÃ¡Â»â„¢ng hÃ†Â¡n .container mÃ¡ÂºÂ·c Ã„â€˜Ã¡Â»â€¹nh (1160px) mÃ¡Â»â€ºi Ã„â€˜Ã¡Â»Â§ chÃ¡Â»â€” cho brand + menu + 2 nÃƒÂºt */
    width: min(1720px, calc(100% - 40px));
    min-height: 84px;
    display: grid;
    /* auto 1fr auto: cÃ¡Â»â„¢t trÃƒÂ¡i/phÃ¡ÂºÂ£i lÃ¡ÂºÂ¥y Ã„â€˜ÃƒÂºng bÃ¡Â»Â rÃ¡Â»â„¢ng nÃ¡Â»â„¢i dung, menu chiÃ¡ÂºÂ¿m phÃ¡ÂºÂ§n cÃƒÂ²n lÃ¡ÂºÂ¡i vÃƒÂ 
     tÃ¡Â»Â± canh giÃ¡Â»Â¯a. DÃƒÂ¹ng 1fr auto 1fr thÃƒÂ¬ khi hÃ¡ÂºÂ¹p cÃ¡Â»â„¢t giÃ¡Â»Â¯a khÃƒÂ´ng co Ã„â€˜Ã†Â°Ã¡Â»Â£c vÃƒÂ  trÃƒÂ n Ã„â€˜ÃƒÂ¨ lÃƒÂªn brand. */
    /* minmax(0, 1fr) chu khong phai 1fr: cot giua duoc phep co nho hon noi dung,
       neu khong menu se tran ra hai ben va de len logo/nut. */
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.site-header .brand-mark {
    gap: 10px;
    justify-self: start;
}
.brand-app {
    display: block;
    flex: none;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(43, 35, 24, 0.25);
}
.brand-app img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand-wordmark {
    display: block;
    flex: none;
}
.brand-wordmark img {
    width: auto;
    height: 68px;
    filter: drop-shadow(0 3px 6px rgba(43, 35, 24, 0.28));
}
.brand-tag {
    flex: none;
    display: grid;
    width: 17px;
    height: calc(17px * 4.401);
    place-items: center;
    color: #ffe6ab;
    background: url("/assets/game/ui/bg-bt-mobile.webp") center/100% 100%
        no-repeat;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.6px;
    line-height: 1;
    writing-mode: vertical-rl;
    text-shadow: 0 1px 3px rgba(96, 8, 4, 0.9);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}
.brand-seal {
    display: grid;
    width: 48px;
    height: 48px;
    margin-right: 12px;
    place-items: center;
    border: 1px solid var(--gold);
    background: var(--red);
    transform: rotate(-3deg);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}
.brand-seal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-copy strong {
    max-width: 240px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}
.brand-copy small {
    margin-top: 7px;
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 5px;
}
/* display:contents -> .navbar-collapse khÃƒÂ´ng sinh hÃ¡Â»â„¢p riÃƒÂªng, .navbar-nav vÃƒÂ 
   .navbar-actions bÃƒÂªn trong trÃ¡Â»Å¸ thÃƒÂ nh grid item TRÃ¡Â»Â°C TIÃ¡ÂºÂ¾P cÃ¡Â»Â§a .navbar,
   giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng bÃ¡Â»â€˜ cÃ¡Â»Â¥c 3 cÃ¡Â»â„¢t dÃƒÂ¹ vÃ¡Â»Â mÃ¡ÂºÂ·t DOM chÃƒÂºng Ã„â€˜ÃƒÂ£ lÃ¡Â»â€œng vÃƒÂ o trong. */
.navbar-collapse {
    display: contents;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}
.navbar-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-link {
    position: relative;
    display: block;
    padding: 11px 10px;
    color: #4c4238;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.nav-link:hover,
.nav-link.is-current {
    color: #d3352f;
}
/* --- O tim kiem tren header ---
   bg-tk.png 2172x724 nhung phan NHIN THAY chi la x 16->2157, y 185->478
   (do bang PHP GD, thu o nhieu nguong alpha deu ra ty le ~7.286).
   Box lay dung ty le do, con anh ve o ::before phong to theo % - lam nguoc lai
   (dat anh lam background cua box) thi khung bi nen ngang va hoa van meo. */
.nav-search {
    /* Khoa CHIEU CAO bang --btn-h cua 2 nut ben canh roi de be rong tu suy ra
       theo ty le khung. Neu khoa be rong (clamp) thi chieu cao ra so le voi nut
       -> 3 khoi trong header cao thap khac nhau, nhin lech han. */
    --search-h: 46px;
    position: relative;
    display: flex;
    width: auto;
    height: var(--search-h);
    flex: none;
    align-items: center;
    aspect-ratio: 2142 / 294;
    gap: clamp(5px, 0.45vw, 9px);
    /* Vien trong cua khung het o ~x=190 cua anh goc; icon lan vao mot chut van
       nam tren giay - gan hon nua la cham vien kim cuong. */
    padding: 0 6.4% 0 4.4%;
}
.nav-search::before {
    position: absolute;
    top: -62.93%; /* 185 / 294 */
    left: -0.75%; /* 16 / 2142 */
    z-index: -1;
    width: 101.4%; /* 2172 / 2142 */
    height: 246.26%; /* 724 / 294 */
    content: "";
    background: url("/assets/game/ui/bg-tk.webp") center / 100% 100% no-repeat;
    pointer-events: none;
}
.nav-search-icon {
    display: grid;
    width: clamp(13px, 1.05vw, 18px);
    flex: none;
    /* vang nau tram, cung ho voi vien khung - do tuoi se choi voi nen giay hong */
    color: #a3641f;
    place-items: center;
    transition: color 0.22s ease;
}
.nav-search-icon svg {
    width: 100%;
    height: auto;
}
.nav-search:focus-within .nav-search-icon,
.nav-search:hover .nav-search-icon {
    color: #b3271a;
}
.nav-search input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    color: #6d2a16;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: clamp(12px, 0.85vw, 16px);
    line-height: 1;
    outline: none;
}
.nav-search input::placeholder {
    color: rgba(122, 66, 38, 0.62);
}
/* Chrome ve san nut X cua input[type=search], no de len vien khung nen bo di */
.nav-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.nav-search:focus-within::before {
    filter: brightness(1.05) saturate(1.08);
}

.nav-btn {
    --btn-h: 46px;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: var(--btn-h);
    padding: 0 18px;
    background: center/100% 100% no-repeat;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}
.nav-btn:hover {
    filter: brightness(1.08) saturate(1.05);
    transform: translateY(-2px);
}
.nav-btn-primary {
    /* tÃ¡Â»â€° lÃ¡Â»â€¡ Ã¡ÂºÂ£nh 992x296 = 3.351 -> giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng khung, khÃƒÂ´ng kÃƒÂ©o mÃƒÂ©o hoa vÃ„Æ’n */
    min-width: calc(var(--btn-h) * 3.351);
    color: #fff3d0;
    background-image: url("/assets/game/ui/bg-bt-dangky.webp");
    text-shadow: 0 1px 3px rgba(112, 12, 8, 0.9);
}
.nav-btn-primary:hover {
    color: #fff9e6;
}
.nav-btn-secondary {
    /* tÃ¡Â»â€° lÃ¡Â»â€¡ Ã¡ÂºÂ£nh 1021x296 = 3.449 */
    min-width: calc(var(--btn-h) * 3.449);
    color: #a53c14;
    background-image: url("/assets/game/ui/bg-bt-napthe.webp");
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.nav-btn-secondary:hover {
    color: #86300f;
}
/* VÃ¡ÂºÂ¡ch trÃ¡ÂºÂ¯ng trÃƒÂªn nÃ¡Â»Ân tÃ¡Â»â€˜i mÃ¡Â»Â. VÃ¡ÂºÂ¡ch sÃ¡ÂºÂ«m + quÃ¡ÂºÂ§ng trÃ¡ÂºÂ¯ng mÃ¡ÂºÂ£nh (cÃƒÂ¡ch cÃ…Â©) chÃƒÂ¬m nghÃ¡Â»â€°m
   trÃƒÂªn nÃ¡Â»Ân hoa Ã„â€˜ÃƒÂ o tÃƒÂ´ng trung. LÃ¡Â»â€ºp nÃ¡Â»Ân mÃ¡Â»Â nÃƒÂ y cÃƒÂ²n giÃƒÂºp nÃƒÂºt Ã„â€˜Ã¡Â»Âc Ã„â€˜Ã†Â°Ã¡Â»Â£c Ã¡Â»Å¸ MÃ¡Â»Å’I trÃ¡ÂºÂ¡ng
   thÃƒÂ¡i Ã¢â‚¬â€ Ã„â€˜ÃƒÂ¨ banner, header is-fixed nÃ¡Â»Ân kem, hay panel trÃ¡ÂºÂ¯ng Ã¢â‚¬â€ khÃƒÂ´ng cÃ¡ÂºÂ§n rule riÃƒÂªng
   cho tÃ¡Â»Â«ng trÃ¡ÂºÂ¡ng thÃƒÂ¡i. */
.navbar-toggler {
    display: none;
    width: 46px;
    height: 46px;
    padding: 13px 10px;
    border: 0;
    border-radius: 13px;
    background: rgba(26, 12, 6, 0.34);
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: background 0.25s ease;
}
.navbar-toggler:hover {
    background: rgba(26, 12, 6, 0.48);
}
.navbar-toggler span {
    display: block;
    height: 2.5px;
    margin: 4px 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 8, 3, 0.5);
    transition: 0.25s ease;
}
/* MÃ¡Â»Å¸ menu -> 3 vÃ¡ÂºÂ¡ch gÃ¡Â»â„¢p thÃƒÂ nh dÃ¡ÂºÂ¥u X.
   BÃ¡ÂºÂ¯t theo [aria-expanded] mÃƒÂ  site.js vÃ¡ÂºÂ«n Ã„â€˜ang set sÃ¡ÂºÂµn, khÃ¡Â»Âi phÃ¡ÂºÂ£i Ã„â€˜Ã¡Â»Â¥ng JS.
   6.5px = khoÃ¡ÂºÂ£ng cÃƒÂ¡ch tÃƒÂ¢m-Ã„â€˜Ã¡ÂºÂ¿n-tÃƒÂ¢m giÃ¡Â»Â¯a 2 vÃ¡ÂºÂ¡ch (cao 2.5px + 4px margin Ã„â€˜ÃƒÂ£ gÃ¡Â»â„¢p),
   Ã„â€˜ÃƒÂºng bÃ¡ÂºÂ±ng quÃƒÂ£ng cÃ¡ÂºÂ§n dÃ¡Â»â€¹ch Ã„â€˜Ã¡Â»Æ’ vÃ¡ÂºÂ¡ch trÃƒÂªn/dÃ†Â°Ã¡Â»â€ºi trÃƒÂ¹ng tÃƒÂ¢m vÃ¡ÂºÂ¡ch giÃ¡Â»Â¯a. */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.hero {
    position: relative;
    display: flex;
    min-height: 760px;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 7, 0.95) 0%,
            rgba(7, 9, 9, 0.76) 44%,
            rgba(7, 9, 9, 0.15) 72%
        ),
        radial-gradient(
            circle at 75% 33%,
            #69706b 0%,
            #303a39 25%,
            #111718 58%,
            #080a0a 100%
        );
}
.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.16;
    background-image:
        linear-gradient(
            125deg,
            transparent 0 48%,
            rgba(255, 255, 255, 0.17) 49%,
            transparent 50%
        ),
        linear-gradient(
            35deg,
            transparent 0 48%,
            rgba(255, 255, 255, 0.1) 49%,
            transparent 50%
        );
    background-size: 210px 210px;
}
.hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 180px;
    content: "";
    background: linear-gradient(transparent, var(--ink));
}
.hero.hero-carousel {
    background: #090b0b;
    min-height: 100vh;
    min-height: 100svh;
}
/* banner sÃƒÂ¡ng -> dÃ¡ÂºÂ£i mÃ¡Â»Â Ã„â€˜ÃƒÂ¡y phÃ¡ÂºÂ£i chuyÃ¡Â»Æ’n vÃ¡Â»Â mÃƒÂ u nÃ¡Â»Ân trang, khÃƒÂ´ng phÃ¡ÂºÂ£i mÃƒÂ u tÃ¡Â»â€˜i nhÃ†Â° hero cÃ…Â© */
.hero-carousel::after {
    background: linear-gradient(transparent, var(--bg));
}
.hero-slides,
.hero-slide,
.hero-slide-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}
.hero-slide {
    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity 1s ease,
        transform 6s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-slide-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 115.56vh);
    height: max(56.25vw, 65vh);
    border: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 7, 0.95) 0%,
            rgba(7, 9, 9, 0.74) 45%,
            rgba(7, 9, 9, 0.2) 100%
        ),
        radial-gradient(
            circle at 74% 40%,
            rgba(199, 148, 63, 0.18),
            transparent 42%
        );
}
.hero-content {
    position: relative;
    z-index: 5;
    display: none;
    padding-top: 70px;
}
.hero-content.active {
    display: block;
    animation: heroContentIn 0.7s ease both;
}
.hero-copy {
    max-width: 720px;
}
@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- 4 nhÃƒÂ¢n vÃ¡ÂºÂ­t Ã„â€˜Ã¡Â»Â©ng 2 bÃƒÂªn hero ----
   z-index 2: nÃ¡ÂºÂ±m trÃƒÂªn Ã¡ÂºÂ£nh banner (.hero-slides, z-index auto) nhÃ†Â°ng dÃ†Â°Ã¡Â»â€ºi chÃ¡Â»Â¯ (.hero-content, z-index 5).
   pointer-events:none Ã„â€˜Ã¡Â»Æ’ khÃƒÂ´ng chÃ¡ÂºÂ¯n click vÃƒÂ o nÃƒÂºt bÃƒÂªn dÃ†Â°Ã¡Â»â€ºi. */
.hero-art {
    /* "SÃƒÂ¢n khÃ¡ÂºÂ¥u": khÃ¡Â»â€˜i cÃƒÂ³ Ã„ÂÃƒÅ¡NG tÃ¡Â»â€° lÃ¡Â»â€¡ Ã¡ÂºÂ£nh banner vÃƒÂ  phÃ¡Â»Â§ kÃƒÂ­n hero y hÃ¡Â»â€¡t background-size: cover.
     width = max(100%, 100vh * ratio) -> hero bÃ¡ÂºÂ¹t thÃƒÂ¬ lÃ¡ÂºÂ¥y full rÃ¡Â»â„¢ng, hero cao thÃƒÂ¬ nÃ¡Â»â€ºi rÃ¡Â»â„¢ng ra;
     aspect-ratio lo phÃ¡ÂºÂ§n chiÃ¡Â»Âu cao; translate(-50%,-50%) tÃ†Â°Ã†Â¡ng Ã„â€˜Ã†Â°Ã†Â¡ng background-position: center.
     NhÃƒÂ¢n vÃ¡ÂºÂ­t Ã„â€˜Ã¡Â»â€¹nh vÃ¡Â»â€¹ theo % vÃƒÂ  co giÃƒÂ£n theo % BÃ¡Â»â‚¬ RÃ¡Â»ËœNG SÃƒâ€šN KHÃ¡ÂºÂ¤U, nÃƒÂªn khoÃƒÂ¡ cÃ¡Â»Â©ng vÃƒÂ o khung cÃ¡ÂºÂ£nh:
     resize cÃ¡Â»Â¡ nÃƒÂ o chÃƒÂºng cÃ…Â©ng Ã„â€˜Ã¡Â»Â©ng Ã„â€˜ÃƒÂºng chÃ¡Â»â€” Ã„â€˜ÃƒÂ³ trÃƒÂªn Ã¡ÂºÂ£nh nÃ¡Â»Ân. */
    --stage-ratio: 1.746; /* bg-ss1.webp = 1657/949. Ã„ÂÃ¡Â»â€¢i Ã¡ÂºÂ£nh nÃ¡Â»Ân khÃƒÂ¡c tÃ¡Â»â€° lÃ¡Â»â€¡ thÃƒÂ¬ sÃ¡Â»Â­a Ã„â€˜ÃƒÂºng dÃƒÂ²ng nÃƒÂ y. */
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 100%;
    min-width: calc(100vh * var(--stage-ratio));
    aspect-ratio: var(--stage-ratio);
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.hero-art img {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 16px 26px rgba(48, 24, 10, 0.35));
}
/* Mobile / Tablet character composition */
.hero-art-mobile {
    display: none;
}
/* ToÃ¡ÂºÂ¡ Ã„â€˜Ã¡Â»â„¢ tÃƒÂ­nh theo SÃƒâ€šN KHÃ¡ÂºÂ¤U (khÃƒÂ´ng phÃ¡ÂºÂ£i theo hero): top = % chiÃ¡Â»Âu cao sÃƒÂ¢n khÃ¡ÂºÂ¥u,
   width = % bÃ¡Â»Â rÃ¡Â»â„¢ng sÃƒÂ¢n khÃ¡ÂºÂ¥u. Quy Ã„â€˜Ã¡Â»â€¢i tÃ¡Â»Â« vÃ¡Â»â€¹ trÃƒÂ­ Ã„â€˜ang chÃ¡Â»â€˜t Ã¡Â»Å¸ lÃ†Â°Ã¡Â»Â£t trÃ†Â°Ã¡Â»â€ºc. */
.hero-art-tl {
    top: 14%;
    left: 9%;
    width: 25%;
}
/* HÃ¡Â»â€œ Ly Ã„â€˜Ã¡Â»Â©ng trÃƒÂªn phiÃ¡ÂºÂ¿n Ã„â€˜ÃƒÂ¡: mÃ¡ÂºÂ·t Ã„â€˜ÃƒÂ¡ Ã¡Â»Å¸ y 64.5%-71% (Ã„â€˜o tÃ¡Â»Â« Ã¡ÂºÂ£nh nÃ¡Â»Ân), lÃ¡ÂºÂ¥y mÃ¡Â»â€˜c 68%.
   Cao cÃ¡Â»Â§a cÃƒÂ´ = width% * ratio / 1.149 = 35.4% chiÃ¡Â»Âu cao sÃƒÂ¢n khÃ¡ÂºÂ¥u, gÃƒÂ³t Ã¡Â»Å¸ ~95% thÃƒÂ¢n
   -> top = 68 - 0.95*35.4 = 34.4%. TÃƒÂ¢m ngang 19.7% nÃ¡ÂºÂ±m gÃ¡Â»Ân trong dÃ¡ÂºÂ£i Ã„â€˜ÃƒÂ¡ 13%-36%. */
.hero-art-bl {
    top: 34.4%;
    left: 14%;
    width: 23.3%;
}
.hero-art-tr {
    top: 18%;
    right: 16%;
    width: 18%;
}
.hero-art-br {
    top: 46%;
    right: 17%;
    width: 18%;
}

/* ---- Idle animation cho 4 nhÃƒÂ¢n vÃ¡ÂºÂ­t ----
   CHÃ¡Â»Ë† animate transform, tuyÃ¡Â»â€¡t Ã„â€˜Ã¡Â»â€˜i khÃƒÂ´ng Ã„â€˜Ã¡Â»Â¥ng top/left/right/width: Ã„â€˜iÃ¡Â»Æ’m neo trÃƒÂªn
   sÃƒÂ¢n khÃ¡ÂºÂ¥u giÃ¡Â»Â¯ nguyÃƒÂªn nÃƒÂªn resize vÃ¡ÂºÂ«n khÃ¡Â»â€ºp Ã¡ÂºÂ£nh nÃ¡Â»Ân nhÃ†Â° cÃ…Â©.
   BiÃƒÂªn Ã„â€˜Ã¡Â»â„¢ Ã„â€˜Ã¡Â»Æ’ bÃ¡ÂºÂ±ng % -> translate % Ã„Æ’n theo kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc CHÃƒÂNH Ã¡ÂºÂ¢NH Ã„â€˜ÃƒÂ³, nÃƒÂªn nhÃƒÂ¢n vÃ¡ÂºÂ­t to
   nhÃ¡Â»Â thÃ¡ÂºÂ¿ nÃƒÂ o biÃƒÂªn Ã„â€˜Ã¡Â»â„¢ cÃ…Â©ng co giÃƒÂ£n theo, khÃƒÂ´ng bÃ¡Â»â€¹ lÃ¡Â»â€¡ch nhÃ†Â° khi dÃƒÂ¹ng px cÃ¡Â»â€˜ Ã„â€˜Ã¡Â»â€¹nh. */
@keyframes heroArtBob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.6%);
    }
}
/* TriÃ¡Â»â€¡u VÃƒÂ¢n Ã„â€˜ang Ã¡Â»Å¸ tÃ†Â° thÃ¡ÂºÂ¿ bay -> thÃƒÂªm trÃƒÂ´i ngang vÃƒÂ  nghiÃƒÂªng nhÃ¡ÂºÂ¹ */
@keyframes heroArtFly {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(1.4%, -3.6%) rotate(-1.2deg);
    }
}

.hero-art img,
.hero-art-mobile .hero-mobile-char {
    animation: heroArtBob 6s ease-in-out infinite;
    will-change: transform;
}

/* KhÃƒÂ¡c chu kÃ¡Â»Â³ + delay ÃƒÂ¢m Ã„â€˜Ã¡Â»Æ’ 4 con vÃƒÂ o giÃ¡Â»Â¯a chÃ¡Â»Â«ng nhÃ¡Â»â€¹p ngay tÃ¡Â»Â« Ã„â€˜Ã¡ÂºÂ§u,
   khÃƒÂ´ng nhÃ¡ÂºÂ¥p nhÃƒÂ´ Ã„â€˜Ã¡Â»â€œng loÃ¡ÂºÂ¡t vÃƒÂ  khÃƒÂ´ng phÃ¡ÂºÂ£i chÃ¡Â»Â hÃ¡ÂºÂ¿t 1 vÃƒÂ²ng mÃ¡Â»â€ºi lÃ¡Â»â€¡ch pha. */
.hero-art img.hero-art-tl {
    animation-name: heroArtFly;
    animation-duration: 6.5s;
}
.hero-art img.hero-art-bl {
    animation-duration: 5.6s;
    animation-delay: -1.4s;
}
.hero-art img.hero-art-tr {
    animation-duration: 7.2s;
    animation-delay: -2.6s;
}
.hero-art img.hero-art-br {
    animation-duration: 5s;
    animation-delay: -3.8s;
}

.hero-art-mobile .hero-mobile-char-1 {
    animation-name: heroArtFly;
    animation-duration: 6.5s;
}
.hero-art-mobile .hero-mobile-char-2 {
    animation-duration: 5.6s;
    animation-delay: -1.4s;
}
.hero-art-mobile .hero-mobile-char-3 {
    animation-duration: 7.2s;
    animation-delay: -2.6s;
}
.hero-art-mobile .hero-mobile-char-4 {
    animation-duration: 5s;
    animation-delay: -3.8s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-art img,
    .hero-art-mobile .hero-mobile-char {
        animation: none;
    }
}

/* ---- BÃ¡ÂºÂ£ng 5 Ã„â€˜iÃ¡Â»Æ’m nÃ¡Â»â€¢i bÃ¡ÂºÂ­t dÃ¡Â»Âc mÃƒÂ©p phÃ¡ÂºÂ£i hero ----
   Khung 373x1536 -> cao gÃ¡ÂºÂ¥p 4.118 lÃ¡ÂºÂ§n rÃ¡Â»â„¢ng. ChÃ¡Â»â€° khai bÃƒÂ¡o 1 biÃ¡ÂºÂ¿n --panel-w rÃ¡Â»â€œi
   suy ra mÃ¡Â»Âi thÃ¡Â»Â© cÃƒÂ²n lÃ¡ÂºÂ¡i, Ã„â€˜Ã¡Â»Æ’ Ã„â€˜Ã¡Â»â€¢i cÃ¡Â»Â¡ bÃ¡ÂºÂ£ng chÃ¡Â»â€° cÃ¡ÂºÂ§n sÃ¡Â»Â­a Ã„â€˜ÃƒÂºng 1 dÃƒÂ²ng. */
.hero-features {
    --panel-w: min(170px, 18vh);
    position: absolute;
    top: 50%;
    right: 8%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--panel-w);
    height: calc(var(--panel-w) * 4.118);
    /* padding tÃƒÂ­nh theo --panel-w vÃƒÂ¬ padding % trong CSS luÃƒÂ´n Ã„Æ’n theo CHIÃ¡Â»â‚¬U RÃ¡Â»ËœNG,
     dÃƒÂ¹ng % thÃƒÂ¬ padding dÃ¡Â»Âc sÃ¡ÂºÂ½ sai hoÃƒÂ n toÃƒÂ n. TrÃƒÂªn chÃ¡Â»Â«a chÃ¡Â»â€” cho mÃƒÂ¡i chÃƒÂ¹a Ã¡Â»Å¸ Ã„â€˜Ã¡Â»â€°nh khung. */
    padding: calc(var(--panel-w) * 0.66) calc(var(--panel-w) * 0.12)
        calc(var(--panel-w) * 0.3);
    margin: 0;
    list-style: none;
    background: url("/assets/game/ui/bg-siderbar.webp") center/100% 100%
        no-repeat;
    transform: translateY(-50%);
}
.hero-features li {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
}
.hero-features img {
    /* bÃ¡Â»Â icon mÃ¡Â»Â¥c Ã„â€˜Ã¡ÂºÂ§u nÃƒÂªn dÃ†Â° chÃ¡Â»â€” dÃ¡Â»Âc -> phÃƒÂ³ng 4 icon cÃƒÂ²n lÃ¡ÂºÂ¡i tÃ¡Â»Â« 40% lÃƒÂªn 50% bÃ¡Â»Â rÃ¡Â»â„¢ng khung */
    width: 50%;
    height: auto;
    filter: drop-shadow(0 3px 7px rgba(122, 42, 20, 0.3));
    transition: transform 0.25s ease;
}
.hero-features li:hover img {
    transform: scale(1.09);
}
.hero-features span {
    color: #6d2f14;
    /* cÃ¡Â»Â¡ chÃ¡Â»Â¯ cÃ…Â©ng suy ra tÃ¡Â»Â« --panel-w -> Ã„â€˜Ã¡Â»â€¢i cÃ¡Â»Â¡ bÃ¡ÂºÂ£ng lÃƒÂ  chÃ¡Â»Â¯ tÃ¡Â»Â± theo, khÃƒÂ´ng lÃ¡Â»â€¡ch tÃ¡Â»â€° lÃ¡Â»â€¡ */
    font-size: calc(var(--panel-w) * 0.062);
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ============ Hero trang chÃ¡Â»Â§: bÃ¡Â»â€˜ cÃ¡Â»Â¥c cÃ„Æ’n giÃ¡Â»Â¯a trÃƒÂªn nÃ¡Â»Ân banner sÃƒÂ¡ng ============ */
/* padding-bottom lÃ¡Â»â€ºn Ã„â€˜Ã¡Â»Æ’ nÃ¡Â»â„¢i dung (cÃ„Æ’n giÃ¡Â»Â¯a theo chiÃ¡Â»Âu dÃ¡Â»Âc) khÃƒÂ´ng chÃ¡ÂºÂ¡m nÃƒÂºt cuÃ¡Â»â„¢n Ã¡Â»Å¸ Ã„â€˜ÃƒÂ¡y */
.hero-carousel .hero-content {
    padding: 92px 0 116px;
    text-align: center;
}
.hero-carousel .hero-copy {
    max-width: 1000px;
    margin: 0 auto;
}

/* phÃ¡ÂºÂ£i lÃƒÂ  block + fit-content: Ã„â€˜Ã¡Â»Æ’ inline-block thÃƒÂ¬ nÃƒÂ³ dÃƒÂ­nh chung dÃƒÂ²ng vÃ¡Â»â€ºi .hero-eyebrow
   (inline-flex) vÃƒÂ  text-align:center sÃ¡ÂºÂ½ cÃ„Æ’n giÃ¡Â»Â¯a cÃ¡ÂºÂ£ cÃ¡Â»Â¥m, khiÃ¡ÂºÂ¿n logo lÃ¡Â»â€¡ch hÃ¡ÂºÂ³n sang trÃƒÂ¡i */
.hero-logo {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.hero-logo img {
    display: block;
    width: min(560px, 62vw);
    height: auto;
    filter: drop-shadow(0 10px 28px rgba(74, 30, 10, 0.38));
}
.hero-logo-tag {
    /* khung 349x1536 -> cao gÃ¡ÂºÂ¥p 4.401 lÃ¡ÂºÂ§n rÃ¡Â»â„¢ng, giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ Ã„â€˜Ã¡Â»Æ’ hoa vÃ„Æ’n 2 Ã„â€˜Ã¡ÂºÂ§u khÃƒÂ´ng bÃ¡ÂºÂ¹p */
    position: absolute;
    top: 12%;
    right: -34px;
    display: grid;
    width: 30px;
    height: calc(30px * 4.401);
    place-items: center;
    color: #ffe6ab;
    background: url("/assets/game/ui/bg-bt-mobile.webp") center/100% 100%
        no-repeat;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1;
    writing-mode: vertical-rl;
    text-shadow: 0 1px 3px rgba(96, 8, 4, 0.9);
}

.hero-title-art {
    width: min(660px, 72vw);
    margin: -80px auto 0;
}
.hero-title-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(74, 24, 6, 0.24));
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* ÃƒÂ¢m Ã„â€˜Ã¡Â»Æ’ bÃƒÂ¹ phÃ¡ÂºÂ§n nÃ¡Â»Ân trong suÃ¡Â»â€˜t Ã¡Â»Å¸ Ã„â€˜ÃƒÂ¡y logoName.png (~21px), kÃƒÂ©o khÃ¡Â»â€˜i chÃ¡Â»Â¯ sÃƒÂ¡t lÃƒÂªn logo */
    margin-top: -12px;
    color: #93150a;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 #f3c58f,
        0 2px 2px rgba(83, 30, 12, 0.15);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    width: 48px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #9c5540);
}
.hero-eyebrow::after {
    background: linear-gradient(270deg, transparent, #9c5540);
}

/* phÃ¡ÂºÂ£i lÃƒÂ  .hero-carousel .hero-copy h1 (0,2,1): rule .hero h1 (0,1,1) nÃ¡ÂºÂ±m sau trong file,
   cÃƒÂ¹ng specificity thÃƒÂ¬ nÃƒÂ³ thÃ¡ÂºÂ¯ng vÃƒÂ  ÃƒÂ©p chÃ¡Â»Â¯ vÃ¡Â»Â trÃ¡ÂºÂ¯ng 78px */
.hero-carousel .hero-copy h1 {
    margin: 10px 0 14px;
    margin: 4px 0 10px;
    /* Ã„â€˜Ã¡Â»Â Ã„â€˜Ã¡ÂºÂ·c, lÃ¡ÂºÂ¥y tÃ¡Â»Â« trung bÃƒÂ¬nh lÃƒÂ²ng nÃƒÂºt CHÃ†Â I NGAY (bg-bt-dangky.png) = #A10602.
     KHÃƒâ€NG dÃƒÂ¹ng background-clip:text + ::before nÃ¡Â»Â¯a: cÃƒÂ¡ch Ã„â€˜ÃƒÂ³ cÃ¡ÂºÂ§n color:transparent,
     hÃ¡Â»â€¦ lÃ¡Â»â€ºp fill khÃƒÂ´ng vÃ¡ÂºÂ½ Ã„â€˜Ã†Â°Ã¡Â»Â£c lÃƒÂ  chÃ¡Â»Â¯ rÃ¡Â»â€”ng ruÃ¡Â»â„¢t vÃƒÂ  lÃ¡Â»Ât mÃƒÂ u nÃ¡Â»Ân. */
    color: #a10602;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-transform: uppercase;
    /* viÃ¡Â»Ân vÃƒÂ ng chÃ¡Â»â€° 1px: Ã„â€˜Ã¡Â»Æ’ 2px thÃƒÂ¬ vÃƒÂ nh vÃƒÂ ng chiÃ¡ÂºÂ¿m nhiÃ¡Â»Âu diÃ¡Â»â€¡n tÃƒÂ­ch hÃ†Â¡n cÃ¡ÂºÂ£ phÃ¡ÂºÂ§n fill,
     chÃ¡Â»Â¯ Ã„â€˜Ã¡Â»Âc ra thÃƒÂ nh mÃƒÂ u vÃƒÂ ng chÃ¡Â»Â© khÃƒÂ´ng phÃ¡ÂºÂ£i Ã„â€˜Ã¡Â»Â. SÃƒÂ¡ng Ã¡Â»Å¸ Ã„â€˜Ã¡Â»â€°nh, sÃ¡ÂºÂ«m dÃ¡ÂºÂ§n xuÃ¡Â»â€˜ng Ã„â€˜ÃƒÂ¡y. */
    text-shadow:
        0 -1px 0 #ffe4a8,
        1px -1px 0 #f2cd85,
        1px 0 0 #dda862,
        1px 1px 0 #b8792d,
        0 1px 0 #96561a,
        -1px 1px 0 #b8792d,
        -1px 0 0 #dda862,
        -1px -1px 0 #f2cd85,
        0 4px 10px rgba(74, 24, 6, 0.35);
}
.hero-carousel .hero-lead {
    max-width: 640px;
    margin: 0 auto;
    color: #93150a;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-transform: uppercase;
}
.hero-carousel .hero-actions {
    justify-content: center;
    margin-top: -75px;
}

.hero-cta {
    /* dÃƒÂ¹ng lÃ¡ÂºÂ¡i khung nÃƒÂºt Ã„â€˜Ã¡Â»Â cÃ¡Â»Â§a header, giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ 3.351 Ã„â€˜Ã¡Â»Æ’ hoa vÃ„Æ’n khÃƒÂ´ng mÃƒÂ©o */
    --btn-h: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-h);
    min-width: calc(var(--btn-h) * 3.351);
    padding: 0 30px;
    color: #fff6dc;
    background: url("/assets/game/ui/bg-bt-dangky.webp") center/100% 100%
        no-repeat;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(112, 12, 8, 0.9);
    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}
.hero-cta:hover {
    color: #fffaef;
    filter: brightness(1.08);
    transform: translateY(-2px);
}
.hero-cta-alt {
    min-width: calc(var(--btn-h) * 3.449);
    color: #a53c14;
    background-image: url("/assets/game/ui/bg-bt-napthe.webp");
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.hero-cta-alt:hover {
    color: #86300f;
}

.hero-stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 17px;
    color: #f2eee6;
    border-radius: 10px;
    background: linear-gradient(180deg, #2e333c, #12151b);
    box-shadow:
        0 10px 22px rgba(15, 18, 24, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: 0.25s ease;
}
.store-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 14px 26px rgba(15, 18, 24, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.store-btn svg {
    flex: none;
    width: 25px;
    height: 25px;
    fill: currentColor;
}
.store-btn span {
    display: grid;
    text-align: left;
    line-height: 1.2;
}
.store-btn small {
    font-size: 9px;
    letter-spacing: 0.4px;
    opacity: 0.8;
}
.store-btn strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.eyebrow::before {
    width: 34px;
    height: 1px;
    margin-right: 13px;
    content: "";
    background: var(--gold);
}
.hero h1 {
    margin: 24px 0 25px;
    color: #f2eee5;
    font-size: clamp(45px, 5.5vw, 78px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}
.hero-lead {
    max-width: 620px;
    color: rgba(239, 235, 225, 0.78);
    font-size: 16px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 38px;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.btn-lg {
    padding: 15px 27px;
}
.btn-gold {
    color: #18130d;
    border-color: var(--gold-light);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 10px 24px rgba(157, 101, 22, 0.2);
}
.btn-gold:hover {
    color: #070707;
    border-color: #f4d68f;
    background: #f4d68f;
    transform: translateY(-2px);
}
.btn-outline-light {
    color: #f1e6d0;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.08);
}
.btn-outline-light:hover {
    color: #16110b;
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.sun {
    position: absolute;
    top: 170px;
    right: 14%;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    opacity: 0.58;
    background: radial-gradient(
        circle,
        #f1d19a 0%,
        #b26746 52%,
        rgba(164, 62, 38, 0) 72%
    );
    filter: blur(2px);
}
.mountain {
    position: absolute;
    right: -6%;
    bottom: 85px;
    width: 73%;
    height: 72%;
    opacity: 0.55;
    clip-path: polygon(
        3% 100%,
        14% 63%,
        24% 74%,
        38% 29%,
        48% 57%,
        57% 44%,
        70% 65%,
        82% 30%,
        100% 100%
    );
    background: #172020;
}
.mountain-back {
    right: 5%;
    bottom: 170px;
    opacity: 0.22;
    background: #70807a;
    transform: scale(0.95);
}
.mountain-front {
    background: linear-gradient(130deg, #293230 0%, #101616 45%, #060808 100%);
}
.cloud {
    position: absolute;
    width: 420px;
    height: 80px;
    opacity: 0.12;
    border-radius: 50%;
    background: #cfd4d1;
    filter: blur(18px);
}
.cloud-one {
    top: 250px;
    right: 5%;
}
.cloud-two {
    right: 32%;
    bottom: 190px;
    width: 300px;
}
.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}
.scroll-cue em {
    color: #6d3b2c;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95);
}
.scroll-cue i {
    position: relative;
    display: block;
    width: 24px;
    height: 40px;
    border: 1px solid rgba(95, 72, 48, 0.45);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.32);
}
.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: #a5642a;
    animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}
.carousel-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 48px;
    height: 58px;
    transform: translateY(-50%);
    border: 1px solid var(--gold-light);
    background: rgba(8, 10, 10, 0.5);
    color: var(--gold-light);
    font-size: 38px;
    line-height: 1;
    opacity: 0.7;
}
.carousel-arrow:hover {
    opacity: 1;
    background: rgba(141, 34, 29, 0.85);
}
.carousel-prev {
    left: 20px;
}
.carousel-next {
    right: 20px;
}
.carousel-dots {
    position: absolute;
    z-index: 8;
    bottom: 28px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    background: transparent;
}
.carousel-dots button.active {
    width: 28px;
    border-radius: 8px;
    background: var(--gold);
}

.portal-section {
    position: relative;
    z-index: 10;
    margin-top: -36px;
}
.portal-grid {
    display: grid;
    box-shadow: 0 18px 50px rgba(43, 35, 24, 0.14);
    grid-template-columns: repeat(4, 1fr);
}
.portal-card {
    display: flex;
    min-height: 105px;
    align-items: center;
    padding: 22px;
    border-right: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
}
.portal-card:last-child {
    border: 0;
}
.portal-card:hover {
    color: var(--ink);
    background: var(--bg-soft);
    transform: translateY(-4px);
}
.portal-primary {
    color: #17110a;
    background: linear-gradient(135deg, #deb35d, #a87227);
}
.portal-primary:hover {
    color: #090705;
    background: #ecc778;
}
.portal-icon {
    width: 45px;
    margin-right: 15px;
    font-family: serif;
    font-size: 31px;
    text-align: center;
}
.portal-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}
.portal-download-icon {
    display: grid;
    height: 45px;
    place-items: center;
    color: var(--gold-deep);
}
.portal-card:hover .portal-download-icon {
    color: var(--red);
}
.portal-card span:last-child {
    display: flex;
    flex-direction: column;
}
.portal-card small {
    margin-bottom: 3px;
    opacity: 0.65;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.portal-card strong {
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.portal-platforms {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--gold-deep);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.portal-primary .portal-platforms {
    color: rgba(23, 17, 10, 0.75);
}
.platform-mini {
    display: inline-grid;
    width: 15px;
    height: 15px;
    place-items: center;
}
.platform-mini svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.content-section {
    padding: 40px 0;
}
.section {
    padding: 40px 0;
    background: var(--paper);
    color: #2b2924;
}
/* Vung noi dung cua trang co banner ve san (hien tai la /su-kien): thay nen giay
   tron bang tranh bg-cset.png (1168x1346, doc).
   Tranh nam o lop ::before chu khong phai background cua chinh section, vi can
   MASK cho no hien dan o mep tren - de nguyen thi canh dao do dam cua tranh bat
   dau dot ngot ngay duoi banner, thanh mot vet cat ngang. Mask cung tan dan o
   day de noi xuong footer. */
.section.section-art {
    position: relative;
    z-index: 0;
    background: var(--bg);
}
.section.section-art::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    /* Tung trang tu khai bao tranh + cach trai; mac dinh la bg-cset.png cua /su-kien. */
    background: var(--section-art-image, url("/assets/game/ui/bg-cset.webp"))
        var(--section-art-position, center top) / var(--section-art-size, cover) no-repeat;
    /* opacity thay cho lop phu sang truoc day: chu tren the va phan trang van du
       tuong phan ma khong can them mot lop nua */
    opacity: var(--section-art-opacity, 0.58);
    -webkit-mask-image: var(--section-art-mask, linear-gradient(to bottom, transparent 0, #000 clamp(110px, 12vw, 230px), #000 calc(100% - clamp(80px, 8vw, 150px)), transparent 100%));
    mask-image: var(--section-art-mask, linear-gradient(to bottom, transparent 0, #000 clamp(110px, 12vw, 230px), #000 calc(100% - clamp(80px, 8vw, 150px)), transparent 100%));
    pointer-events: none;
}
/* SS2 trang Hiep Khach: tranh kho ngang (1672x941) va vung noi dung thi rat cao
   (12 the moi trang) -> dung cover se phong to cat mat 2 dai bang chu hai ben.
   Neo tranh full chieu ngang o dinh section roi de mask tan dan xuong nen giay. */
.section.section-art-hiep-khach {
    --section-art-image: url("/assets/game/ui/bg-ss2-ks.webp?v=2");
    --section-art-size: 100% auto;
    /* Cao hon /su-kien vi doan dau phai sang ngang banner phia tren, khong thi
       lo mot bac chuyen do sang o dung mep noi. Mask lo di dan xuong duoi. */
    --section-art-opacity: 0.9;
    /* Anh SS2 cao 56.3vw. Day 12vw xuong de dai may (y320/941 = 19vw trong anh)
       roi dung vao moc 31vw - dung cho banner SS1 ket thuc -> may noi vao may,
       khong phai troi xanh dat duoi nui. */
    --section-art-position: center 12vw;
    /* Dam dan len tu trong suot: doan 0-22vw con dang de lo banner SS1 ben duoi,
       tu 31vw tro xuong thi tranh nay thay the han, roi tan ve nen giay. */
    --section-art-mask: linear-gradient(
        to bottom,
        transparent 0,
        transparent 20vw,
        #000 32vw,
        #000 48vw,
        transparent 64vw
    );
    /* Chom nguoc len tren banner. Khong bu padding nua - chinh noi dung (bo loc +
       luoi the) cung phai di len theo, do la thu can don len sat chu. */
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--hero-overlap));
    /* Trong suot o doan dang de banner hien qua, sau do moi ve mau giay. */
    background: linear-gradient(to bottom, transparent 0, transparent 26vw, var(--bg) 50vw);
}
.section-dark {
    background: #101313;
    color: #dfd9cd;
}
.section-heading {
    display: flex;
    margin-bottom: 42px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.section-heading h2,
.guide-section h2,
.section h2 {
    margin: 9px 0 0;
    color: #24221e;
    font-size: 37px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}
.view-all,
.text-link,
.section-heading > a {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.section .section-heading > a,
.section .text-link,
.content-section .eyebrow,
.guide-section .eyebrow {
    color: var(--red);
}
.content-section .eyebrow::before,
.guide-section .eyebrow::before {
    background: var(--red);
}
.content-section .view-all,
.content-section .text-link,
.content-section .section-heading > a,
.guide-section .text-link {
    color: var(--gold-deep);
}
.home-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
}
.news-panel,
.ranking-panel {
    min-height: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(43, 35, 24, 0.12);
}
.news-tabs {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 25px;
    border-bottom: 1px solid var(--border);
    list-style: none;
}
.news-tabs .nav-link {
    margin-right: 22px;
    padding: 19px 0 15px;
    color: var(--text-soft);
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.news-tabs .nav-link::after {
    display: none;
}
.news-tabs .nav-link.active,
.news-tabs .nav-link:hover {
    color: var(--gold-deep);
    border-color: var(--gold);
}
.news-tabs-more {
    margin-left: auto;
}
.news-tabs-more .view-all {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    color: var(--gold-deep);
}
.tab-content {
    padding: 25px;
}
.tab-pane {
    display: none;
}
.tab-pane.active,
.tab-pane.show {
    display: block;
}
.featured-news {
    display: grid;
    margin-bottom: 16px;
    grid-template-columns: 42% 1fr;
}
.featured-art {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    background: var(--bg-soft);
}
.featured-art img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    opacity: 0.92;
}
.featured-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(transparent, rgba(20, 16, 11, 0.55));
}
.news-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 4px 9px;
    color: #17110a;
    background: var(--gold-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.featured-copy {
    padding: 12px 0 10px 24px;
}
.featured-copy time,
.event-card time {
    color: var(--gold-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.featured-copy h3 {
    margin: 12px 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}
.featured-copy p {
    color: var(--text-soft);
    font-size: 16px;
}
.featured-copy a {
    color: var(--gold-deep);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.news-row {
    display: grid;
    padding: 15px 0;
    align-items: center;
    border-top: 1px solid var(--border);
    grid-template-columns: 92px 1fr 55px;
}
.news-type {
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.news-type.cap-nhat {
    color: #3d6f86;
}
.news-type.su-kien {
    color: var(--gold-deep);
}
.news-type.cam-nang {
    color: #4a7a56;
}
.news-type.cong-dong {
    color: #954f4f;
}
.news-title {
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-row time {
    color: var(--text-soft);
    font-size: 14px;
    text-align: right;
}
.news-row:hover .news-title {
    color: var(--gold-deep);
}

.ranking-panel {
    padding: 0;
}
.ranking-head {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 26px;
    border-bottom: 1px solid var(--border);
}
.ranking-head h3 {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
    text-transform: uppercase;
}
.server-status {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 9px;
    text-transform: uppercase;
}
.server-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #67b879;
    box-shadow: 0 0 8px #67b879;
}
.rank-tabs {
    display: grid;
    margin: 28px 26px 12px;
    border: 1px solid var(--border);
    grid-template-columns: repeat(3, 1fr);
}
.rank-tabs button {
    padding: 10px 2px;
    color: var(--text-soft);
    border: 0;
    border-right: 1px solid var(--border);
    outline: 0;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.rank-tabs button:last-child {
    border: 0;
}
.rank-tabs button.active {
    color: #17120b;
    background: var(--gold-light);
}
.rank-list {
    margin: 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}
.rank-list li {
    display: grid;
    padding: 14px 0;
    align-items: center;
    border-bottom: 1px solid var(--border);
    counter-increment: rank;
    grid-template-columns: 35px 1fr auto;
}
.rank-list li::before {
    content: counter(rank, decimal-leading-zero);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}
.rank-list li:first-child::before {
    color: var(--gold-deep);
}
.rank-player {
    display: flex;
    flex-direction: column;
}
.rank-player strong {
    color: var(--text);
    font-size: 12px;
}
.rank-player small {
    color: var(--text-soft);
    font-size: 9px;
}
.rank-score {
    color: var(--gold-deep);
    font-size: 10px;
    font-weight: 800;
}
.ranking-note {
    display: block;
    margin: 15px 26px 26px;
    color: var(--text-soft);
    font-size: 8px;
    text-align: center;
    text-transform: uppercase;
}

.event-section {
    position: relative;
    padding: 40px 0 40px;
    overflow: hidden;
    background: var(--paper);
}
.event-section::before {
    position: absolute;
    top: -170px;
    right: -140px;
    width: 520px;
    height: 520px;
    content: "";
    opacity: 0.07;
    border: 70px solid var(--red);
    border-radius: 50%;
}
.light-heading h2 {
    color: #24221e;
}
.light-heading .eyebrow {
    color: var(--red);
}
.light-heading .eyebrow::before {
    background: var(--red);
}
.event-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.event-card {
    position: relative;
    min-height: 315px;
    padding: 42px 32px 30px;
    color: #4b4840;
    border: 1px solid #cbc1ae;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}
.event-card:hover {
    border-color: #a9946c;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-7px);
}
.event-card.featured-event {
    color: #4b4022;
    border-color: var(--gold);
    background: linear-gradient(160deg, #fbe9c2, #f3d493);
    box-shadow: 0 22px 50px rgba(147, 100, 28, 0.22);
}
.event-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(93, 78, 54, 0.12);
    font-size: 70px;
    font-weight: 800;
    line-height: 1;
}
.featured-event .event-number {
    color: rgba(147, 100, 28, 0.18);
}
.event-card time {
    color: var(--red);
}
.featured-event time {
    color: var(--gold-deep);
}
.event-card h3 {
    position: relative;
    margin: 65px 0 15px;
    color: #23211d;
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
}
.featured-event h3 {
    color: #241b0c;
}
.event-card p {
    min-height: 75px;
    font-size: 12px;
}
.event-card a {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.featured-event a {
    color: #6b3f0f;
}

.hot-hero-card {
    display: block;
    min-height: 315px;
    border: 1px solid #cbc1ae;
    transition: 0.3s ease;
}
.hot-hero-card:hover {
    border-color: #a9946c;
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(20, 15, 8, 0.3);
}
.hot-hero-card.featured-event {
    border-color: var(--gold);
    box-shadow: 0 22px 50px rgba(147, 100, 28, 0.3);
}
.hot-hero-card .event-number {
    top: 14px;
    right: auto;
    left: 16px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hot-hero-card.featured-event .event-number {
    color: var(--gold-light);
}
.hot-hero-card strong {
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
}
.hot-hero-card span {
    color: var(--gold-light);
}

.guide-section {
    padding: 40px 0;
    background: var(--bg-soft);
}
.guide-layout {
    display: grid;
    gap: 60px;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
}
.guide-section h2 {
    margin: 15px 0 25px;
    font-size: 42px;
    line-height: 1.25;
}
.guide-section p {
    max-width: 480px;
    color: var(--text-soft);
}
.guide-section .text-link {
    display: inline-block;
    margin-top: 15px;
}
.guide-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    grid-template-columns: repeat(2, 1fr);
}
.guide-card {
    position: relative;
    display: flex;
    min-height: 190px;
    padding: 33px;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--surface);
}
.guide-card:hover {
    color: inherit;
    background: #fffdf6;
}
.guide-card::after {
    position: absolute;
    right: 20px;
    bottom: 20px;
    content: "Ã¢â€ â€”";
    color: var(--muted);
}
.guide-card span {
    position: absolute;
    top: 25px;
    right: 27px;
    color: rgba(199, 148, 63, 0.22);
    font-size: 53px;
    font-weight: 800;
}
.guide-card strong {
    color: var(--ink);
    font-size: 17px;
    text-transform: uppercase;
}
.guide-card small {
    margin-top: 5px;
    color: var(--text-soft);
}

.download-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.requirements {
    margin-top: 20px;
    color: var(--text-soft);
    font-size: 9px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

/* =====================================================
   FOOTER - khung cuon bg-ft.png
   Anh 2103x748 da ve san 2 truc cuon, den long, canh song va huy hieu hoa sen
   giua thanh nau. Vi the footer khoa dung ty le anh (aspect-ratio) roi dat noi
   dung TUYET DOI theo % - co doi be rong man hinh thi chu van roi dung o giay
   va dung thanh nau. Duoi 1024px bo anh, tra ve layout xep doc thong thuong.
   ===================================================== */
.site-footer {
    position: relative;
    /* bg-ft.png trong suot hoan toan tu y0 den y100 (13.37% chieu cao anh), tuc
       footer tu danh 4.76vw dau lam vung rong -> lo ra mot dai mau nen. Keo nguoc
       len dung bang do sau day: tranh footer bat dau y nguyen cho cu, con noi dung
       phia tren thi an vao vung rong do thay vi de ho. */
    margin-top: -4.76vw;
    aspect-ratio: 2103 / 748;
    color: #4a3423;
    background: url("/assets/game/ui/bg-ft.webp") center top / 100% 100% no-repeat;
    /* chu trong footer scale theo be rong de luon vua vung giay */
    font-size: clamp(9px, 0.85vw, 17px);
}
/* Vung giay: KHONG lay tron mep trong khung cuon. Phai thut them vao vi anh nen
   con ve den long + canh hoa dao lan vao mep trai, va canh chua + hoa dao lan
   vao mep phai - de chu cham vao do la vo. */
.footer-sheet {
    position: absolute;
    top: 21.5%;
    right: 12.7%;
    bottom: 35.8%;
    left: 11.7%;
    display: flex;
    align-items: center;
}
.footer-grid {
    display: grid;
    width: 100%;
    align-items: start;
    gap: clamp(10px, 1.3vw, 28px);
    grid-template-columns: minmax(0, 1.44fr) minmax(0, 1.06fr) minmax(0, 0.96fr) minmax(0, 1.58fr);
}
/* vach doc ngan cot thuong hieu voi 2 cot menu */
.footer-grid > * + * {
    padding-left: clamp(10px, 1.2vw, 26px);
}
.footer-grid > * + *::before {
    display: none;
}
/* 2 vach doc chia bang thanh 3 cum: brand | 2 cot menu | canh bao 18+.
   Vach thu 2 gan vao mep PHAI cot "Ho tro" (chu khong phai mep trai cot 18+)
   vi cot menu cao hon nen vach dai va can hon. */
.footer-brand-col,
.footer-col:last-of-type {
    position: relative;
}
.footer-brand-col::after,
.footer-col:last-of-type::after {
    position: absolute;
    top: 0;
    right: calc(clamp(10px, 1.3vw, 28px) / -2);
    bottom: 0;
    width: 1px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(150, 96, 40, 0.6) 14%, rgba(150, 96, 40, 0.6) 86%, transparent);
}

/* --- cot 1: thuong hieu (icon app vuong + logo chu) --- */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 0.85vw, 18px);
}
/* app-icon.webp la icon vuong bo goc, ben trong da co co VN + chu DigiGames -
   bo tron no la cat mat 2 chi tiet do, nen chi bo goc nhe nhu tren store. */
.footer-brand-app {
    display: block;
    overflow: hidden;
    width: clamp(40px, 3.6vw, 74px);
    height: clamp(40px, 3.6vw, 74px);
    flex: 0 0 auto;
    border: 1px solid rgba(176, 120, 48, 0.7);
    border-radius: 22%;
    box-shadow: 0 5px 12px rgba(96, 40, 20, 0.26);
}
.footer-brand-app img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-brand-name {
    display: grid;
    min-width: 0;
    gap: clamp(2px, 0.25vw, 5px);
    justify-items: stretch;
}
.footer-brand-name img {
    display: block;
    width: clamp(112px, 10.2vw, 212px);
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(120, 40, 20, 0.28));
}
.site-footer p {
    /* bo hep de doan gioi thieu ngat 2 dong nhu mau, khong keo het be rong cot */
    margin: clamp(6px, 0.7vw, 14px) 0 0;
    max-width: 27ch;
    color: #5c4530;
    font-size: clamp(10px, 0.85vw, 17px);
    line-height: 1.5;
}
/* 2 dong slogan chu nghieng, dong duoi thut vao cho co nhip.
   Truoc day dung gradient vang nhat + background-clip:text -> chu chim han vao
   nen giay sang, doc rat met. Nay doi sang mau do trAM dac, them vien sang mo
   phia sau de tach khoi nen. */
.footer-slogan {
    display: grid;
    margin-top: clamp(8px, 0.95vw, 19px) !important;
    color: #8d2410;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(12px, 1.2vw, 25px) !important;
    font-style: italic;
    font-weight: 800;
    gap: 2px;
    letter-spacing: 0.2px;
    line-height: 1.3 !important;
    text-shadow:
        0 1px 0 rgba(255, 250, 240, 0.9),
        0 0 12px rgba(255, 246, 228, 0.7);
}
.footer-slogan span + span {
    margin-left: clamp(14px, 1.6vw, 34px);
}
/* --- 2 cot menu --- */
.footer-col ul {
    display: grid;
    margin: clamp(10px, 1.1vw, 22px) 0 0;
    padding: 0;
    gap: clamp(6px, 0.7vw, 15px);
    list-style: none;
}
.site-footer .footer-col a {
    display: flex;
    align-items: center;
    gap: clamp(7px, 0.75vw, 15px);
    color: #4a3423;
    font-size: clamp(10px, 0.88vw, 18px);
    text-transform: none;
}
.site-footer .footer-col a svg {
    width: clamp(14px, 1.22vw, 25px);
    height: clamp(14px, 1.22vw, 25px);
    flex: 0 0 auto;
    fill: #a5170c;
    transition: transform 0.22s ease;
}
.site-footer .footer-col a span {
    flex: 1 1 auto;
}
/* mui ten o cuoi dong, day sang phai bang chinh span co gian */
.site-footer .footer-col a::after {
    color: rgba(122, 82, 40, 0.62);
    content: "›";
    font-size: 1.25em;
    line-height: 1;
    transition: transform 0.22s ease;
}
.site-footer .footer-col a:hover {
    color: #a5170c;
}
.site-footer .footer-col a:hover::after {
    color: #a5170c;
    transform: translateX(3px);
}
.site-footer .footer-col a:hover svg {
    transform: scale(1.12);
}
/* Bien do dau cot. Deo chung khay ngoc DO bt-filter-hover.webp voi .ss4-plate
   va .ss6-plate, thay cho gradient + clip-path luc giac + 2 vien kim cuong tu ve
   truoc day - anh da co san hai dau hoa van nen khong can cat hinh nua.
   Anh goc 640x172 -> hai dau hoa van rong ~0.41 chieu cao nhan ~ 16px. */
.footer-plate {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: clamp(140px, 10vw, 190px);
    padding: clamp(5px, 0.5vw, 10px) clamp(10px, 0.9vw, 16px);
    color: #ffeec4;
    border: 0 solid transparent;
    border-right-width: 16px;
    border-left-width: 16px;
    border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill / 0 16px / 0 stretch;
    filter: drop-shadow(0 6px 12px rgba(84, 10, 4, 0.38));
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.86vw, 16px);
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- cot 4: canh bao 18+ --- */
.age-note {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 22px);
    padding: clamp(9px, 0.95vw, 20px) clamp(10px, 1.1vw, 22px);
    border: 1px solid rgba(176, 120, 48, 0.66);
    border-radius: 6px;
    /* Khung nay nam de len phan canh chua + hoa dao cua anh nen, nen nen phai
       gan nhu duc han - de trong suot la chu chim vao canh va nhin nhu bi vo. */
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(250, 238, 219, 0.93));
    box-shadow:
        0 6px 16px rgba(96, 50, 20, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}
.age-note strong {
    display: grid;
    width: clamp(46px, 4vw, 82px);
    height: clamp(46px, 4vw, 82px);
    flex: 0 0 auto;
    padding: 0;
    color: #fff3d6;
    border-radius: 5px;
    background: linear-gradient(180deg, #c22a16 0%, #94120a 52%, #650b05 100%);
    box-shadow:
        0 6px 14px rgba(84, 10, 4, 0.34),
        inset 0 0 0 1px rgba(255, 214, 150, 0.6);
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(17px, 1.55vw, 32px);
    font-weight: 800;
    line-height: 1;
    place-items: center;
}
.age-note span {
    color: #4a3423;
    font-size: clamp(10px, 0.85vw, 17px);
    line-height: 1.5;
}

/* Giay phep G1 + dia chi, xep ngay duoi khung 18+ trong cung cot 4.
   Khong nhet xuong .footer-bottom duoc: thanh nau do chi cao 11.5% chieu cao
   anh bg-ft.png, them 3 dong nua la chu tran ra ngoai thanh. */
/* --- dai giay phep G1 + dia chi, nam duoi thanh nau --- */
/* Do bang cach quet pixel bg-ft.png (2103x748) nhu thanh nau o tren:
   - thanh nau het o y 597 => 79.8%
   - tu do xuong het anh la tranh song dem, khong co hoa van nao can giu
   Nen dat tu 81.5%, canh trai/phai bam theo 2 vien kim cuong nhu .footer-bottom.
   Tranh song dem mau tim than + co den long sang: chu de tran ra la khong doc
   noi, nen phai co tam nen dac dang bien go, cung tong voi thanh nau. */
.footer-legal-info {
    position: absolute;
    top: 81.5%;
    right: 12.6%;
    left: 12.6%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    padding: clamp(6px, 0.62vw, 13px) clamp(12px, 1.25vw, 26px);
    gap: clamp(2px, 0.25vw, 6px) clamp(14px, 1.5vw, 32px);
    border: 1px solid rgba(214, 164, 92, 0.42);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(58, 24, 12, 0.93), rgba(38, 14, 7, 0.95));
    box-shadow:
        0 8px 20px rgba(20, 6, 2, 0.4),
        inset 0 0 0 1px rgba(255, 214, 150, 0.12);
    text-align: center;
}
.site-footer .footer-legal-info p {
    margin: 0;
    max-width: none;
    color: #ffeccd;
    font-size: clamp(10px, 0.82vw, 16px);
    font-weight: 600;
    line-height: 1.45;
}
.site-footer .footer-legal-info .footer-address {
    flex: 1 1 100%;
    padding-top: clamp(3px, 0.3vw, 6px);
    border-top: 1px solid rgba(214, 164, 92, 0.3);
    color: #f6dcb4;
    font-weight: 500;
}

/* --- thanh nau duoi cung (huy hieu hoa sen o giua da nam san trong anh) --- */
/* So do do bang cach quet pixel bg-ft.png (2103x748), khong uoc luong bang mat:
   - than thanh nau: y 511 -> 597  => top 68.3%, cao 11.5%
   - vien kim cuong trai het o x 249 (11.84%), vien phai bat dau x 1853 (88.11%)
   - cum huy hieu hoa sen chiem x 883 -> 1220 (42% -> 58%)
   Chu phai nam gon giua 2 vien kim cuong va khong cham cum hoa sen o giua. */
.footer-bottom {
    position: absolute;
    top: 68.3%;
    right: 12.6%;
    left: 12.6%;
    display: flex;
    height: 11.5%;
    align-items: center;
    justify-content: space-between;
    gap: 4%;
    color: #f2ddc2;
}
/* moi ve toi da 38% de khong de len huy hieu hoa sen o chinh giua anh nen */
.footer-legal,
.footer-bottom > p {
    max-width: 38%;
}
.footer-bottom p {
    margin: 0;
    max-width: none;
    color: inherit;
    font-size: clamp(9px, 0.8vw, 16px);
    line-height: 1.35;
}
.footer-license {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.6vw, 12px);
}
.footer-bottom .footer-copyright {
    margin-top: 2px;
    padding-left: calc(clamp(13px, 1.1vw, 22px) + clamp(6px, 0.6vw, 12px));
    font-size: clamp(7px, 0.58vw, 12px);
    opacity: 0.68;
}
.footer-license-mark {
    display: grid;
    width: clamp(13px, 1.1vw, 22px);
    height: clamp(13px, 1.1vw, 22px);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 222, 170, 0.75);
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: 800;
    line-height: 1;
    place-items: center;
}
.footer-policy {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.9vw, 18px);
    letter-spacing: clamp(0.4px, 0.05vw, 1px);
    text-transform: uppercase;
    white-space: nowrap;
}
.footer-policy i {
    width: 1px;
    height: 1.1em;
    background: rgba(242, 221, 194, 0.5);
}
.site-footer .footer-bottom a {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.site-footer .footer-bottom a:hover {
    color: #ffe6ab;
}

/* Duoi 1024px anh cuon qua det de nhet 4 cot: bo khoa ty le, dung anh lam nen
   phu mo va xep noi dung doc nhu footer thuong. */
@media (max-width: 1023px) {
    .site-footer {
        /* O day footer khong con dai trong suot o dinh (nen la lop phu kem duc +
           cover + border-top), nen phai bo margin-top am cua ban desktop - de
           nguyen la footer duc de len 20px noi dung cuoi. */
        margin-top: 0;
        aspect-ratio: auto;
        padding: 34px 0 22px;
        background:
            linear-gradient(rgba(253, 245, 233, 0.93), rgba(250, 238, 222, 0.95)),
            url("/assets/game/ui/bg-ft.webp") center bottom / cover no-repeat;
        border-top: 1px solid rgba(176, 120, 48, 0.4);
        font-size: 13px;
    }
    .footer-sheet {
        position: static;
        width: min(100% - 32px, 900px);
        margin: 0 auto;
        display: block;
    }
    .footer-grid {
        gap: 26px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid > * + * {
        padding-left: 0;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
    .footer-brand-col::after,
    .footer-col:last-of-type::after {
        display: none;
    }
    .site-footer p {
        max-width: none;
    }
    .age-note {
        grid-column: 1 / -1;
    }
    .footer-brand-app {
        width: 54px;
        height: 54px;
    }
    .footer-brand-name img {
        width: 190px;
    }
    .footer-slogan {
        font-size: 17px !important;
    }
    .site-footer p,
    .age-note span,
    .site-footer .footer-col a {
        font-size: 13px;
    }
    .footer-plate {
        font-size: 12px;
    }
    .age-note strong {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .footer-bottom {
        position: static;
        width: min(100% - 32px, 900px);
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        margin: 26px auto 0;
        padding-top: 16px;
        border-top: 1px solid rgba(176, 120, 48, 0.34);
        color: #5c4530;
        gap: 10px 20px;
        text-align: center;
    }
    .footer-legal,
    .footer-bottom > p,
    .footer-bottom p {
        max-width: none;
        font-size: 12px;
    }
    .footer-bottom .footer-copyright {
        padding-left: 0;
        font-size: 11px;
    }
    /* Ban mobile footer khong con anh cuon toi o duoi, nen la giay sang -> dao
       lai tam nen giay + chu nau, giu nguyen kieu the voi phan con lai. */
    .footer-legal-info {
        position: static;
        width: min(100% - 32px, 900px);
        margin: 14px auto 0;
        border-color: rgba(176, 120, 48, 0.5);
        background: linear-gradient(135deg, rgba(255, 252, 245, 0.97), rgba(250, 238, 219, 0.95));
        box-shadow: 0 4px 12px rgba(96, 50, 20, 0.12);
    }
    .site-footer .footer-legal-info p {
        color: #3d2a19;
        font-size: 12px;
    }
    .site-footer .footer-legal-info .footer-address {
        border-top-color: rgba(176, 120, 48, 0.4);
        color: #4a3423;
    }
    .footer-license-mark {
        width: 18px;
        height: 18px;
        border-color: rgba(150, 96, 40, 0.6);
    }
    .footer-policy i {
        background: rgba(150, 96, 40, 0.45);
    }
    .site-footer .footer-bottom a:hover {
        color: #a5170c;
    }
}
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .age-note {
        flex-direction: column;
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-col a:hover::after,
    .site-footer .footer-col a:hover svg {
        transform: none;
    }
}
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 40;
    width: 42px;
    height: 42px;
    cursor: pointer;
    visibility: hidden;
    color: #17110a;
    border: 0;
    opacity: 0;
    background: var(--gold);
    transition: 0.25s ease;
    transform: translateY(10px);
}
.back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.page-hero {
    position: relative;
    overflow: hidden;
    height: 440px;
    background: radial-gradient(
        circle at 78% 22%,
        #4f5954,
        #121818 55%,
        #080a0a
    );
}
.page-hero.compact {
    height: 360px;
}
.page-hero.hero-banner {
    --hero-banner-image: url("/assets/game/banner/mong-thien-kiem-khai-mo-thien-ha.webp");
    background: var(--hero-banner-image) center 38% / cover;
}
/* Banner ve san (da co san tieu de + mo ta trong anh): khoa dung ty le anh de
   khong cat mat chu, thay vi height co dinh + cover nhu banner thuong. */
.page-hero.page-hero-art {
    height: auto;
    /* Moi banner ve san co ty le rieng -> tung trang tu khai bao --hero-art-ratio,
       mac dinh la ty le cua bg-sk.png. */
    aspect-ratio: var(--hero-art-ratio, 2001 / 786);
    /* Mac dinh keo full khung (banner dung dung ty le that). Trang nao muon cat
       bot phan duoi thi doi sang "100% auto" + neo "center top". */
    background-position: var(--hero-art-position, center);
    background-size: var(--hero-art-size, 100% 100%);
}
/* Giu NGUYEN ca tam 1672x941 - khong cat gi het, nhan vat va vach da con du.
   Banner nam LOP DUOI, khong mask gi ca. SS2 moi la lop tren: no keo chom len
   den sat dong chu, phan dau de trong suot nen banner van hien qua, roi tranh
   cua no moi dam dan len de thay the. Xem .section-art-hiep-khach. */
.page-hero.page-hero-hiep-khach {
    /* máy tính: bản 2560x1441 cho nét khi trải hết màn rộng; ≤1100px dùng bản 1600px nhẹ hơn (dưới) */
    --hero-banner-image: url("/assets/game/ui/bg-ss1-hk.webp?v=2");
    --hero-art-ratio: 1672 / 941;
    --hero-seam-height: 0px;
}
/* Tin tuc va Cam nang dung chung bo tri voi Su kien: ca 3 anh banner deu cung
   kich thuoc 2001x786 nen moi thong so (ty le, moc chu, do chom) dung y het. */
.page-hero.page-hero-tin-tuc {
    /* banner Tin Tức riêng 2172x724 (3:1), khác tỉ lệ bg-sk/bg-cn nên khai báo tỉ lệ để không bị kéo méo */
    --hero-banner-image: url("/assets/game/ui/bg-tt.webp?v=2");
    --hero-art-ratio: 2172 / 724;
    --hero-seam-color: var(--bg);
}
.page-hero.page-hero-cam-nang {
    /* banner Cẩm Nang 2172x724 (3:1), cùng bộ với Tin Tức / Sự Kiện */
    --hero-banner-image: url("/assets/game/ui/bg-cn.webp?v=2");
    --hero-art-ratio: 2172 / 724;
    --hero-seam-color: var(--bg);
}
.page-hero.page-hero-su-kien {
    /* banner Sự Kiện 2172x724 (3:1), cùng bộ với Tin Tức */
    --hero-banner-image: url("/assets/game/ui/bg-sk.webp?v=2");
    --hero-art-ratio: 2172 / 724;
    /* Vung noi dung phia duoi co nen mau var(--bg), con tranh thi mask cho hien
       dan tu tren xuong. Nen day banner chi can tan ve dung mau nen do la hai
       vung noi lien mach. */
    --hero-seam-color: var(--bg);
}
.page-hero.page-hero-art::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    /* Banner bi cat ngan thi dai tan nay phai ngan theo, khong thi no an het
       mot phan lon chieu cao banner thanh mot vet nhoe. */
    height: var(--hero-seam-height, clamp(70px, 8vw, 160px));
    content: "";
    background: linear-gradient(transparent, var(--hero-seam-color, var(--bg)));
    pointer-events: none;
}
.page-hero-caption {
    padding: 36px 0 4px;
    background: var(--bg);
}
/* Chu da nam trong anh roi -> giau khoi mat nhung van giu cho SEO va trinh doc man hinh */
.page-hero-caption.is-art {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* trang không có banner (chi tiết bài viết): header mh-hdr cố định nên chừa đúng chiều cao header
   (88px; ≤1100px main#top đã tự chừa 62px của header điện thoại, xem home.css) */
.page-hero-caption.no-banner {
    padding-top: calc(88px + 40px);
}
@media (max-width: 1100px) {
    .page-hero-caption.no-banner { padding-top: 28px; }
}
.page-hero-caption .eyebrow {
    color: var(--red);
}
.page-hero-caption .eyebrow::before {
    background: var(--red);
}
.page-hero-caption h1 {
    max-width: 900px;
    margin: 12px 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    text-transform: uppercase;
}
.page-hero-caption p {
    max-width: 720px;
    color: var(--text-soft);
}
.page-hero-caption.compact h1 {
    font-size: clamp(26px, 3.2vw, 36px);
}
.page-hero-caption.compact p {
    max-width: 620px;
}

/* ===== Trang Cong dong =====
   Phan noi dung dung dung bo khung cua cac trang con khac (.section xen ke nen
   giay / nen nen, .section-heading, .news-card...).
   Rieng BANNER thi cac chuyen muc khac deu co tranh ve san da gop luon chu vao
   anh (bg-sk / bg-tt / bg-cn, 2001x786); Cong dong chua co tranh nen dung lai
   dung bo cuc do bang HTML/CSS:
     - nen: bg-ss3.webp (canh hoa dao hoang hon, KHONG co chu san)
     - trai: dong kicker co hoa thi 2 ben -> ten trang chu but do -> dong slogan
       -> mo ta -> nut, dat o cung toa do voi cac banner ve san
     - phai: dan chibi tu hop
   Lam bang text nen tieu de van la h1 that cho SEO, va doi chu khong phai ve lai
   anh. */
.cm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* padding-top chua thanh nav (header position:absolute, cao 84px) + quang
       tho, giong vung trong o dinh cac banner ve san. */
    padding: clamp(118px, 11vw, 150px) 0 clamp(30px, 3.4vw, 54px);
    background: var(--bg);
}
.cm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* Lop phu sang o nua trai de chu do doc duoc tren tranh; nua phai de nguyen
       tranh cho dan chibi dung vao. */
    background:
        linear-gradient(
            100deg,
            rgba(255, 249, 238, 0.95) 0%,
            rgba(255, 246, 232, 0.86) 26%,
            rgba(255, 242, 226, 0.42) 50%,
            rgba(255, 240, 224, 0.06) 68%,
            transparent 82%
        ),
        url("/assets/game/ui/bg-ss3.webp") center 62% / cover no-repeat;
}
/* Tan xuong nen trang cho lien mach, giong .page-hero-art::after o /su-kien. */
.cm-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: clamp(60px, 7vw, 120px);
    content: "";
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.cm-hero-inner {
    display: grid;
    align-items: center;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
.cm-hero-copy {
    position: relative;
    /* Dan chibi rong hon cot cua no nen se tran sang trai - khoi chu phai nam
       lop tren de khong bi che. */
    z-index: 2;
    max-width: 560px;
}
/* Dong "KIEM SON" co gach + hoa thi hai dau - lay y tu banner ve san. */
.cm-hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--red);
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}
.cm-hero-kicker::before,
.cm-hero-kicker::after {
    width: clamp(26px, 3.4vw, 52px);
    height: 7px;
    content: "";
    /* Gach ngang + vien thoi kim cuong o dau mut. */
    background:
        linear-gradient(var(--red), var(--red)) left center / 100% 1px no-repeat,
        linear-gradient(var(--red), var(--red)) center / 7px 7px no-repeat;
}
.cm-hero-kicker::before {
    background-position: left center, right center;
}
.cm-hero-kicker::after {
    background-position: left center, left center;
}
.cm-hero-titleline {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
    margin: clamp(6px, 0.8vw, 14px) 0 0;
}
.cm-hero-titleline h1 {
    margin: 0;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 86px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    /* Do dam o tren chuyen dan sang vang kim o duoi - bat chuoc net but tren
       bg-sk / bg-tt. Co mau nen du phong cho trinh duyet khong cat duoc chu. */
    color: #7d1a12;
    background: linear-gradient(168deg, #2a0d08 4%, #9b1f14 46%, #cf9a3c 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 14px rgba(120, 40, 18, 0.28));
}
/* The dung kieu the bai/den long treo canh ten trang: cac dong chu NAM NGANG
   xep chong len nhau (khong xoay chu), dung nhu tren banner /su-kien. */
.cm-hero-plate {
    display: grid;
    padding: clamp(11px, 1.1vw, 17px) clamp(9px, 0.9vw, 14px);
    justify-items: center;
    align-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 226, 160, 0.6);
    color: #ffe9b6;
    background: linear-gradient(170deg, #b3170d, #6d0a04);
    box-shadow: 0 10px 22px rgba(109, 10, 4, 0.32);
    font-size: clamp(11px, 0.92vw, 13px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cm-hero-plate i {
    font-style: normal;
}
.cm-hero-plate b {
    width: 60%;
    height: 1px;
    background: rgba(255, 226, 160, 0.55);
}
.cm-hero-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(10px, 1.1vw, 18px);
    color: #8d221d;
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cm-hero-sub::before,
.cm-hero-sub::after {
    width: 8px;
    height: 8px;
    flex: none;
    content: "";
    background: var(--gold);
    transform: rotate(45deg);
}
.cm-hero-copy > p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #5a4232;
    font-size: clamp(14px, 1.15vw, 16px);
}
.cm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(18px, 2vw, 28px);
}
/* Nut vien nam tren tranh nen, can nen mo va vien dam hon ban tren nen giay
   phang - khong thi chi con thay moi dong chu troi tren anh. */
.cm-hero-actions .btn-ghost {
    border-color: rgba(147, 100, 28, 0.72);
    background: rgba(255, 251, 242, 0.76);
}
.cm-hero-actions .btn-ghost:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #18130d;
}
/* --- Dan chibi ---
   Xep so le nhu mot nhom dang tu hop: 2 nhan vat lon o giua, 2 nho hon lui ra
   hai ben va thut xuong. align-items:flex-end de tat ca dung chung mot mat dat. */
.cm-hero-cast {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    /* Khong dung gap (gap khong nhan so am) - tung anh tu keo am bang
       margin-right de nhom nhan vat chum vao nhau thay vi dan hang cach deu. */
    margin-bottom: calc(-1 * clamp(14px, 1.6vw, 26px));
    /* Anh chi de trang tri, dung chan chuot cua khoi chu ben duoi. */
    pointer-events: none;
}
.cm-hero-cast img {
    width: auto;
    flex: none;
    filter: drop-shadow(0 16px 18px rgba(76, 30, 12, 0.3));
}
.cm-cast-1 {
    height: clamp(104px, 10.4vw, 158px);
    margin-right: clamp(-30px, -2.4vw, -10px);
}
.cm-cast-2 {
    height: clamp(128px, 13vw, 198px);
    margin-right: clamp(-40px, -3.4vw, -14px);
    /* Nhan vat nay cam thuong cheo, nang len chut cho khoi cham dinh dau nguoi ben canh. */
    margin-bottom: clamp(6px, 0.8vw, 14px);
}
.cm-cast-3 {
    height: clamp(136px, 14vw, 212px);
    margin-right: clamp(-36px, -3vw, -12px);
}
.cm-cast-4 {
    height: clamp(100px, 10vw, 152px);
}
/* Nut vien cho NEN SANG - .btn-outline-light chi hop tren nen toi. */
.btn-ghost {
    color: var(--gold-deep);
    border-color: rgba(147, 100, 28, 0.5);
    background: transparent;
}
.btn-ghost:hover {
    color: #18130d;
    border-color: var(--gold);
    background: rgba(199, 148, 63, 0.16);
    transform: translateY(-2px);
}
/* Doi mau nen giua hai section lien nhau de tach lop noi dung. */
.section.section-tone {
    background: var(--bg);
}
.section .section-heading-note {
    max-width: 340px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

/* --- Luoi kenh chinh thuc ---
   auto-fit: so kenh phu thuoc Cai dat (2-5 muc) nen khong khoa cung so cot. */
.cm-channels {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    /* 5 kenh: o 1160px vua du 5 cot (~208px/cot), hep hon thi tu xuong 3 roi 2. */
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    list-style: none;
}
/* Moi kenh mot mau thuong hieu rieng, khai bao qua --cm-brand roi dung lai cho
   vach tren, o icon, chu CTA va vien khi hover. */
.cm-channel {
    --cm-brand: #8d221d;
    --cm-brand-dark: #5d120f;
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 24px 20px 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}
.cm-channel-fanpage {
    --cm-brand: #1877f2;
    --cm-brand-dark: #0b4ba1;
}
.cm-channel-group {
    --cm-brand: #2e7cf6;
    --cm-brand-dark: #14479c;
}
.cm-channel-youtube {
    --cm-brand: #e62117;
    --cm-brand-dark: #8d0f09;
}
.cm-channel-tiktok {
    --cm-brand: #22232a;
    --cm-brand-dark: #000;
}
.cm-channel-support {
    --cm-brand: #c7943f;
    --cm-brand-dark: #7d5310;
}
/* Vach mau o mep tren, sang han khi hover. */
.cm-channel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    opacity: 0.75;
    background: linear-gradient(90deg, var(--cm-brand), var(--cm-brand-dark));
    transition: 0.25s ease;
}
/* Quang mau nhat o goc tren phai, hien ro dan khi hover cho the "co suc song". */
.cm-channel::after {
    position: absolute;
    top: -46px;
    right: -46px;
    width: 132px;
    height: 132px;
    content: "";
    opacity: 0.09;
    border-radius: 50%;
    background: var(--cm-brand);
    transition: 0.25s ease;
    pointer-events: none;
}
.cm-channel:hover,
.cm-channel:focus-visible {
    color: inherit;
    border-color: color-mix(in srgb, var(--cm-brand) 55%, transparent);
    box-shadow: 0 18px 34px rgba(84, 42, 16, 0.16);
    transform: translateY(-5px);
}
.cm-channel:hover::before,
.cm-channel:focus-visible::before {
    opacity: 1;
}
.cm-channel:hover::after,
.cm-channel:focus-visible::after {
    opacity: 0.18;
    transform: scale(1.15);
}
.cm-channel-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: linear-gradient(160deg, var(--cm-brand), var(--cm-brand-dark));
    box-shadow: 0 8px 16px color-mix(in srgb, var(--cm-brand) 32%, transparent);
}
/* Kenh chua cau hinh link: van hien du mat trong luoi nhung xam lai va khoa click. */
.cm-channel.is-off {
    filter: grayscale(1);
    opacity: 0.5;
    box-shadow: none;
    pointer-events: none;
}
.cm-channel-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.cm-channel strong {
    display: block;
    margin: 16px 0 0;
    color: #24221e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.cm-channel p {
    margin: 8px 0 0;
    color: #6e5948;
    font-size: 13.5px;
}
.cm-channel-cta {
    margin-top: auto;
    padding-top: 16px;
    color: var(--cm-brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.cm-channel-cta span {
    display: inline-block;
    transition: 0.25s ease;
}
.cm-channel:hover .cm-channel-cta span,
.cm-channel:focus-visible .cm-channel-cta span {
    transform: translateX(4px);
}

/* --- Quy uoc + loi moi gia nhap --- */
.cm-two-col {
    display: grid;
    align-items: stretch;
    gap: 22px;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}
.cm-panel {
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.cm-panel h2 {
    margin: 10px 0 0;
    font-size: 28px;
}
.cm-panel > p {
    margin: 14px 0 0;
    color: #6e5948;
}
.cm-rules {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    counter-reset: cm-rule;
    list-style: none;
}
.cm-rules li {
    display: grid;
    padding: 15px 18px 15px 54px;
    position: relative;
    gap: 3px;
    border: 1px solid rgba(141, 34, 29, 0.12);
    background: rgba(199, 148, 63, 0.07);
}
.cm-rules li::before {
    position: absolute;
    top: 15px;
    left: 16px;
    display: grid;
    width: 26px;
    height: 26px;
    counter-increment: cm-rule;
    content: counter(cm-rule, decimal-leading-zero);
    place-items: center;
    color: #fff1c4;
    background: linear-gradient(160deg, var(--red-bright), #6d0d06);
    font-size: 11px;
    font-weight: 800;
}
.cm-rules strong {
    color: #2b170e;
    font-weight: 800;
}
.cm-rules span {
    color: #6e5948;
    font-size: 14px;
}
.cm-callout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(0, 0, 0, 0.35);
    background:
        linear-gradient(170deg, rgba(72, 21, 15, 0.95), rgba(18, 9, 6, 0.97)),
        url("/assets/game/tinh-nang/kiem-son-tinh-nang-3.webp") center / cover no-repeat;
}
/* Doi ca 2 class: .section p o duoi trong file cung do dac hieu (0,1,1) va se
   de mau chu toi len doan nay neu chi viet .cm-callout > p. */
.cm-callout h2,
.cm-panel.cm-callout > p {
    color: #fff0c8;
}
.cm-callout .eyebrow {
    color: var(--gold-light);
}
.cm-callout .eyebrow::before {
    background: var(--gold-light);
}
.cm-callout-list {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    color: #f3dfb6;
    font-size: 14px;
    list-style: none;
}
.cm-callout-list li {
    padding-left: 22px;
    position: relative;
}
.cm-callout-list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--gold);
    transform: rotate(45deg);
}
.cm-callout .btn {
    align-self: flex-start;
    margin-top: 26px;
}

@media (max-width: 980px) {
    /* Banner doi sang xep doc: chu tren, dan chibi duoi va can giua. Lop phu
       sang cung phai doi thanh phu tu tren xuong cho chu con doc duoc. */
    .cm-hero-inner {
        justify-items: center;
        gap: 6px;
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }
    .cm-hero-bg {
        background:
            linear-gradient(
                180deg,
                rgba(255, 249, 238, 0.94) 0%,
                rgba(255, 246, 232, 0.8) 42%,
                rgba(255, 242, 226, 0.34) 72%,
                rgba(255, 240, 224, 0.1) 100%
            ),
            url("/assets/game/ui/bg-ss3.webp") center 62% / cover no-repeat;
    }
    .cm-hero-copy {
        max-width: 560px;
    }
    .cm-hero-kicker,
    .cm-hero-titleline,
    .cm-hero-sub,
    .cm-hero-actions {
        justify-content: center;
    }
    .cm-hero-copy > p {
        margin-inline: auto;
    }
    .cm-hero-cast {
        justify-content: center;
    }
    .cm-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
    .section .section-heading-note {
        max-width: none;
        text-align: left;
    }
}
@media (max-width: 640px) {
    .cm-hero-actions .btn {
        flex: 1 1 100%;
    }
    /* The doc canh ten trang qua chat o man hep - bo di, dong slogan ngay duoi
       da noi du y roi. */
    .cm-hero-plate {
        display: none;
    }
    /* Chi giu 2 nhan vat o giua cho khoi be xiu va chen nhau. */
    .cm-cast-1,
    .cm-cast-4 {
        display: none;
    }
    .cm-panel {
        padding: 24px 20px;
    }
    .cm-channel {
        padding: 22px 18px 18px;
    }
}
.hero-banner-portrait {
    position: absolute;
    z-index: 1;
    right: 3%;
    bottom: -8%;
    height: 108%;
    width: auto;
    max-width: 28%;
    object-fit: contain;
    object-position: bottom;
    pointer-events: none;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
}
.search-form {
    display: flex;
    max-width: 650px;
    margin-bottom: 35px;
}
.search-form input {
    min-width: 0;
    flex: 1;
    padding: 15px;
    color: #2a251f;
    border: 1px solid #c8ad86;
    background: #fffaf0;
}
.search-form .btn {
    border: 0;
}
.card-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
}
.news-card {
    background: #fffaf0;
    color: #281811;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
}
.card-body {
    padding: 22px;
}
.card-body > span {
    font-size: 12px;
    color: var(--red);
    font-weight: 800;
}
.card-body h3 {
    margin: 10px 0;
    font-size: 21px;
    line-height: 1.35;
}
.card-body p,
.section p {
    color: #6e5948;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
    color: #2b2924;
}
.site-pagination {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.page-numbers {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
/* Nut phan trang dung huy hieu hinh thoi. Kem (bg-pg-1) la trang thai thuong,
   do (bg-pg) cho hover va trang dang xem - cung quy uoc voi cac nut khac tren
   site (kem -> do khi ro chuot / dang chon).
   Anh nguon la ban da cat le trong suot va chuan hoa ve cung khung 200x190;
   2 file goc co le lech nhau nen dung thang se bi nhay hinh khi ro chuot vao. */
.page-control,
.page-number {
    display: inline-flex;
    width: 58px;
    height: 56px;
    /* flex: 0 0 auto - khong cho co lai. Huy hieu la hinh thoi doi xung, co ngang
       mot chut la lo ngay met hinh. Thieu cho thi cho xuong dong, dung bop. */
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    background: url("/assets/game/ui/bg-pg-normal.webp") center / 100% 100% no-repeat;
    color: #8d221d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    transition:
        color 0.2s ease,
        transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
}
/* Mui tien truoc/sau: cung o huy hieu vuong nhu so trang, chi khac ky tu */
.page-control {
    font-size: 20px;
}
.page-number:hover,
.page-control:hover,
.page-number:focus-visible,
.page-control:focus-visible,
.page-number.is-current {
    background-image: url("/assets/game/ui/bg-pg-hover.webp");
    color: #ffe6b8;
    text-shadow: 0 1px 3px rgba(70, 8, 4, 0.7);
}
.page-number:hover,
.page-control:hover {
    transform: translateY(-2px);
}
/* Trang dang xem: deo huy hieu do nhu hover, them phong to va quang vang cho
   phan biet ro voi o dang duoc ro chuot vao. */
.page-number.is-current {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(199, 148, 63, 0.85));
    cursor: default;
}
/* Dau "..." khong phai nut -> khong deo huy hieu */
.page-ellipsis {
    display: inline-flex;
    min-width: 24px;
    height: 56px;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}
/* Nut vo hieu: giam do tuoi thay vi giam opacity sau - opacity 0.4 lam huy hieu
   nhoe thanh mot vet mo tren nen giay, khong con ra hinh. */
.page-control.is-disabled {
    cursor: default;
    opacity: 0.62;
    filter: grayscale(0.55);
}
/* Nut da vo hieu thi khong doi anh, khong nhay len khi ro chuot */
.page-control.is-disabled:hover {
    transform: none;
    background-image: url("/assets/game/ui/bg-pg-normal.webp");
    color: #8d221d;
    text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .page-control,
    .page-number {
        transition: none;
    }
    .page-number:hover,
    .page-control:hover {
        transform: none;
    }
}

.article-layout {
    display: grid;
    gap: 55px;
    grid-template-columns: minmax(0, 2.5fr) 1fr;
}
.article {
    max-width: 820px;
    margin: auto;
}
.lead {
    font-size: 20px;
    font-weight: 800;
}
.article-content {
    color: #35271f;
    font-size: 17px;
    line-height: 1.85;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    color: #1d1712;
    line-height: 1.25;
}
.article-content ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 26px;
    padding-left: 22px;
    list-style: disc;
}
.article-content li {
    padding-left: 4px;
}
.article-content img {
    height: auto;
    margin: 22px 0;
}
.article-layout aside h3 {
    margin-top: 0;
    color: #211b16;
    text-transform: uppercase;
}
.related {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    color: #2b2924;
    font-weight: 800;
}
.related img {
    width: 100px;
    height: 100%;
    object-fit: cover;
    background: #ddd0bd;
}
.related-hero {
    align-items: flex-start;
}
.related-hero img {
    flex-shrink: 0;
    height: 120px;
}
.related-hero span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.related-hero small {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.featured-grid,
.story-grid {
    display: grid;
    gap: 55px;
    align-items: center;
    grid-template-columns: 1.2fr 1fr;
}
.featured-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 15px 35px rgba(61, 31, 20, 0.16);
}
.story-grid > img {
    max-height: 650px;
    object-fit: contain;
}
.hero-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.hero-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    color: #fff;
    background: #171a1a;
}
.hero-card img {
    width: 100%;
    height: 330px;
    object-fit: contain;
    background: linear-gradient(#eee1c9, #d5b88a);
}
.hero-card div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 14px 14px;
    background: linear-gradient(transparent, #111);
}
.hero-card strong,
.hero-card span {
    display: block;
}
.hero-card span {
    margin-top: 5px;
    color: var(--gold-light);
    font-size: 12px;
}
.hero-filter-panel {
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid rgba(171, 113, 36, 0.18);
    background: #fffaf0;
    box-shadow: 0 14px 34px rgba(61, 31, 20, 0.08);
}
.hero-filter-toggle {
    display: none;
}
.hero-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.hero-filter-panel label {
    display: grid;
    gap: 7px;
    min-width: 0;
}
.hero-filter-panel label span {
    color: #6f6458;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.hero-filter-panel select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    color: #2a251f;
    border: 1px solid rgba(171, 113, 36, 0.26);
    background: rgba(255, 255, 255, 0.72);
}
.hero-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}
.hero-filter-actions > span {
    margin-right: auto;
    color: #8d221d;
    font-weight: 900;
}
.hero-list {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-empty-state {
    grid-column: 1 / -1;
    padding: 42px 26px;
    text-align: center;
    border: 1px solid rgba(171, 113, 36, 0.18);
    background: #fffaf0;
}
.hero-empty-state h2 {
    margin: 0 0 10px;
    color: #241d17;
    font-size: 26px;
    text-transform: uppercase;
}
.hero-empty-state p {
    margin: 0 0 20px;
}
.hero-detail {
    display: flex;
    min-height: 320px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(171, 113, 36, 0.18);
    background: #fffaf0;
    box-shadow: 0 14px 34px rgba(61, 31, 20, 0.1);
}
.hero-preview-button {
    width: 38%;
    flex: 0 0 38%;
    padding: 0;
    border: 0;
    background: #e8d7b9;
}
.hero-detail img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    transform: scale(1.08);
}
.hero-detail > .hero-detail-copy {
    min-width: 0;
    flex: 1;
    padding: 34px 24px 28px;
    background: rgba(255, 252, 246, 0.78);
}
.hero-detail h2 {
    margin: 0 0 14px;
    color: #c69035;
    font-size: 26px;
    line-height: 1.18;
    text-transform: uppercase;
}
.hero-detail h2 a:hover {
    color: var(--gold);
}
.hero-card-summary {
    color: #6f6458;
    font-size: 15px;
    line-height: 1.55;
}
.hero-card-summary p {
    margin: 8px 0 0;
}
.hero-card-summary-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-card-summary-list li {
    display: grid;
    align-items: start;
    column-gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
}
.summary-icon {
    font-family:
        "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1.5;
    text-align: center;
}
.summary-copy {
    min-width: 0;
}
.page-hero-summary {
    max-width: 720px;
    color: #9f9b92;
    font-size: 17px;
}
.hero-detail-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.hero-profile-image {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #e8d7b9;
}
.hero-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
}
.hero-profile-meta span {
    padding: 8px 12px;
    color: #17110a;
    background: var(--gold-light);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.rarity {
    color: #d98a12;
    font-weight: 900;
}
.hero-modal-trigger {
    cursor: pointer;
}
.hero-modal-trigger:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}
.rank-list .hero-modal-trigger:hover .rank-player strong,
.hero-preview-button:hover + .hero-detail-copy h2 {
    color: var(--gold);
}
.modal-open {
    overflow: hidden;
}
.hero-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    padding: 36px;
}
.hero-modal.open {
    display: grid;
    place-items: center;
}
.hero-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 24, 0.5);
    backdrop-filter: blur(7px);
}
.hero-modal-dialog {
    position: relative;
    display: grid;
    width: min(960px, 100%);
    max-height: min(680px, calc(100vh - 72px));
    overflow: hidden;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    border: 1px solid rgba(147, 100, 28, 0.28);
    background:
        radial-gradient(
            circle at 44% 16%,
            rgba(239, 200, 120, 0.28),
            transparent 44%
        ),
        linear-gradient(145deg, #fffaf0, #fdf3de 58%, #fbead1);
    box-shadow:
        0 28px 90px rgba(43, 35, 24, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(147, 100, 28, 0.3);
    color: var(--gold-deep);
    background: rgba(255, 250, 240, 0.85);
    font-size: 24px;
    line-height: 1;
}
.hero-modal-media {
    display: grid;
    min-height: 480px;
    place-items: end center;
    align-content: end;
    padding: 28px 18px 0;
    background: radial-gradient(
        circle at 50% 58%,
        rgba(239, 200, 120, 0.28),
        transparent 58%
    );
}
.hero-modal-media img {
    width: 100%;
    max-height: 470px;
    object-fit: contain;
    object-position: bottom center;
}
.hero-modal-body {
    min-width: 0;
    overflow: auto;
    padding: 54px 46px 42px;
}
.hero-modal-body h2 {
    margin: 16px 0 20px;
    color: var(--ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}
.hero-modal-content,
.hero-modal-content p {
    color: var(--text);
}
.hero-modal-content .hero-card-summary-list {
    gap: 9px;
    margin-top: 18px;
    font-size: 17px;
}
.hero-modal-content .hero-card-summary-list li {
    grid-template-columns: 28px minmax(0, 1fr);
}
.hero-modal-content h1,
.hero-modal-content h2,
.hero-modal-content h3 {
    color: var(--gold-deep);
}
.hero-modal-actions {
    margin-top: 26px;
}

.error-page {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}
.error-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(239, 200, 120, 0.28),
            transparent 34%
        ),
        linear-gradient(rgba(253, 248, 238, 0.4), rgba(253, 248, 238, 0.62)),
        url("/assets/game/banner/mong-thien-kiem-khai-mo-thien-ha.webp")
            center/cover;
}
.error-card {
    width: min(720px, 100%);
    padding: 44px;
    border: 1px solid rgba(147, 100, 28, 0.3);
    background:
        radial-gradient(
            circle at 25% 0,
            rgba(239, 200, 120, 0.22),
            transparent 44%
        ),
        var(--surface);
    box-shadow:
        0 28px 90px rgba(43, 35, 24, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.error-brand {
    margin-bottom: 36px;
}
.error-code {
    display: block;
    color: var(--gold-deep);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 8px;
}
.error-card h1 {
    margin: 14px 0 18px;
    color: var(--ink);
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.54;
    text-transform: uppercase;
}
.error-card p {
    max-width: 560px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.7;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.error-actions .btn-outline-light {
    color: var(--gold-deep);
    border-color: rgba(147, 100, 28, 0.4);
    background: rgba(255, 255, 255, 0.4);
}
.error-actions .btn-outline-light:hover {
    color: #16110b;
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* Man trung binh: nen brand + menu + o tim kiem + 2 nut de van giu duoc menu
   ngang thay vi roi som xuong hamburger. Chia 2 bac vi tu 1201 den 1600 be rong
   kha dung chenh nhau toi ~500px - dung chung mot bo so thi hoac thua cho o
   1600, hoac tran de len logo o 1250. */
@media (max-width: 1700px) and (min-width: 1401px) {
    .navbar {
        gap: 12px;
    }
    .site-header .brand-mark {
        gap: 9px;
    }
    .brand-app {
        width: 62px;
        height: 62px;
    }
    .brand-wordmark img {
        height: 58px;
    }
    .brand-tag {
        width: 16px;
        height: calc(16px * 4.401);
        font-size: 7px;
        letter-spacing: 1.2px;
    }
    .nav-link {
        padding: 11px 8px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    .nav-btn {
        --btn-h: 40px;
        padding: 0 12px;
        font-size: 12px;
    }
    /* giu bang chieu cao nut de 3 khoi van thang hang */
    .nav-search {
        --search-h: 40px;
    }
    .navbar-actions {
        gap: 7px;
    }
}
@media (max-width: 1400px) and (min-width: 1201px) {
    .navbar {
        gap: 10px;
    }
    .site-header .brand-mark {
        gap: 7px;
    }
    .brand-app {
        width: 48px;
        height: 48px;
    }
    .brand-wordmark img {
        height: 42px;
    }
    .brand-tag {
        width: 13px;
        height: calc(13px * 4.401);
        font-size: 6px;
        letter-spacing: 1px;
    }
    .nav-link {
        padding: 10px 5px;
        font-size: 12.5px;
        letter-spacing: 0;
    }
    .nav-btn {
        --btn-h: 36px;
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    .nav-search {
        --search-h: 36px;
    }
    .navbar-actions {
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    /* header trong suÃ¡Â»â€˜t, nÃ¡ÂºÂ±m Ã„â€˜ÃƒÂ¨ lÃƒÂªn banner. Panel dropdown vÃ¡ÂºÂ«n cÃƒÂ³ nÃ¡Â»Ân riÃƒÂªng,
       vÃƒÂ  .site-header.is-fixed vÃ¡ÂºÂ«n cÃƒÂ³ nÃ¡Â»Ân khi cuÃ¡Â»â„¢n xuÃ¡Â»â€˜ng. */
    .site-header {
        background: none;
    }
    /* MÃ¡Â»Å¸ menu thÃƒÂ¬ thanh brand vÃ¡ÂºÂ«n trong suÃ¡Â»â€˜t, kÃ¡Â»Æ’ cÃ¡ÂºÂ£ khi Ã„â€˜ang Ã¡Â»Å¸ trÃ¡ÂºÂ¡ng thÃƒÂ¡i is-fixed */
    .site-header:has(.navbar-collapse.open) {
        background: none;
        box-shadow: none;
        border-bottom-color: transparent;
    }
    /* 3 vÃƒÂ¹ng: icon trÃƒÂ¡i | logo chÃ¡Â»Â¯ GIÃ¡Â»Â®A | hamburger phÃ¡ÂºÂ£i.
       1fr auto 1fr -> cÃ¡Â»â„¢t giÃ¡Â»Â¯a nÃ¡ÂºÂ±m chÃƒÂ­nh giÃ¡Â»Â¯a tuyÃ¡Â»â€¡t Ã„â€˜Ã¡Â»â€˜i, khÃƒÂ´ng phÃ¡Â»Â¥ thuÃ¡Â»â„¢c
       bÃ¡Â»Â rÃ¡Â»â„¢ng icon hay hamburger hai bÃƒÂªn. */
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        min-height: 120px;
        gap: 12px;
    }
    /* display:contents -> thÃ¡ÂºÂ» <a> bÃ¡Â»Âc brand khÃƒÂ´ng sinh hÃ¡Â»â„¢p, .brand-app vÃƒÂ 
       .brand-wordmark trÃ¡Â»â€œi lÃƒÂªn thÃƒÂ nh grid item trÃ¡Â»Â±c tiÃ¡ÂºÂ¿p nÃƒÂªn mÃ¡Â»â€”i cÃƒÂ¡i vÃƒÂ o Ã„â€˜ÃƒÂºng
       mÃ¡Â»â„¢t cÃ¡Â»â„¢t. NÃ¡ÂºÂ¿u Ã„â€˜Ã¡Â»Æ’ nguyÃƒÂªn thÃƒÂ¬ cÃ¡ÂºÂ£ cÃ¡Â»Â¥m lÃƒÂ  1 item vÃƒÂ  logo bÃ¡Â»â€¹ icon Ã„â€˜Ã¡ÂºÂ©y lÃ¡Â»â€¡ch phÃ¡ÂºÂ£i. */
    .site-header .brand-mark {
        display: contents;
    }
    .brand-app {
        justify-self: start;
    }
    .brand-wordmark {
        justify-self: center;
    }
    /* mÃƒÂ n hÃ¡ÂºÂ¹p: thu nhÃƒÂ¢n vÃ¡ÂºÂ­t lÃ¡ÂºÂ¡i vÃƒÂ  Ã„â€˜Ã¡ÂºÂ©y sÃƒÂ¡t mÃƒÂ©p cho khÃ¡Â»Âi lÃ¡ÂºÂ¥n vÃƒÂ o chÃ¡Â»Â¯ giÃ¡Â»Â¯a hero */
    /* dÃ†Â°Ã¡Â»â€ºi 1200px khÃƒÂ´ng cÃƒÂ²n chÃ¡Â»â€” ngang cho bÃ¡ÂºÂ£ng dÃ¡Â»Âc -> Ã¡ÂºÂ©n, nhÃƒÂ¢n vÃ¡ÂºÂ­t trÃ¡ÂºÂ£ lÃ¡ÂºÂ¡i sÃƒÂ¡t mÃƒÂ©p */
    .hero-features {
        display: none;
    }
    .hero-art {
        display: none;
    }
    /* mÃƒÂ n hÃ¡ÂºÂ¹p: dÃ¡Â»â€œn vÃƒÂ o giÃ¡Â»Â¯a ÃƒÂ­t hÃ†Â¡n nhiÃ¡Â»Âu, vÃƒÂ¬ chÃ¡Â»Â¯ Ã„â€˜ÃƒÂ£ gÃ¡ÂºÂ§n sÃƒÂ¡t 2 bÃƒÂªn */
    /* KhÃƒÂ´ng override vÃ¡Â»â€¹ trÃƒÂ­/kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc nhÃƒÂ¢n vÃ¡ÂºÂ­t Ã¡Â»Å¸ Ã„â€˜ÃƒÂ¢y nÃ¡Â»Â¯a: chÃƒÂºng phÃ¡ÂºÂ£i bÃƒÂ¡m cÃ¡Â»Â©ng sÃƒÂ¢n khÃ¡ÂºÂ¥u
     Ã„â€˜Ã¡Â»Æ’ khÃƒÂ´ng xÃƒÂª dÃ¡Â»â€¹ch so vÃ¡Â»â€ºi Ã¡ÂºÂ£nh nÃ¡Â»Ân khi Ã„â€˜Ã¡Â»â€¢i kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc cÃ¡Â»Â­a sÃ¡Â»â€¢. */
    .brand-app {
        width: 84px;
        height: 84px;
        border-radius: 18px;
    }
    .brand-wordmark img {
        height: 104px;
    }
    .brand-tag {
        display: none;
    }
    /* 2 nÃƒÂºt trong panel dropdown: xÃ¡ÂºÂ¿p dÃ¡Â»Âc, cÃ„Æ’n giÃ¡Â»Â¯a.
       align-items: center (khÃƒÂ´ng phÃ¡ÂºÂ£i stretch) Ã„â€˜Ã¡Â»Æ’ nÃƒÂºt giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng bÃ¡Â»Â rÃ¡Â»â„¢ng theo tÃ¡Â»â€° lÃ¡Â»â€¡
       khung hoa vÃ„Æ’n Ã¢â‚¬â€ stretch sÃ¡ÂºÂ½ kÃƒÂ©o giÃƒÂ£n Ã¡ÂºÂ£nh nÃ¡Â»Ân cÃ¡Â»Â§a nÃƒÂºt. */
    .navbar-actions {
        flex-direction: column;
        align-items: center;
        /* huÃ¡Â»Â· justify-self: end cÃ¡Â»Â§a rule desktop, nÃ¡ÂºÂ¿u khÃƒÂ´ng cÃ¡Â»Â¥m nÃƒÂºt bÃ¡Â»â€¹ Ã„â€˜Ã¡ÂºÂ©y dÃ¡ÂºÂ¡t sang phÃ¡ÂºÂ£i */
        justify-self: stretch;
        width: 100%;
        gap: 14px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(43, 35, 24, 0.1);
    }
    /* Hai khung hoa vÃ„Æ’n cÃƒÂ³ tÃ¡Â»â€° lÃ¡Â»â€¡ khÃƒÂ¡c nhau (3.351 vÃƒÂ  3.449) nÃƒÂªn cÃƒÂ¹ng --btn-h sÃ¡ÂºÂ½ ra
       hai bÃ¡Â»Â rÃ¡Â»â„¢ng lÃ¡Â»â€¡ch nhau ~5px, xÃ¡ÂºÂ¿p dÃ¡Â»Âc nhÃƒÂ¬n rÃƒÂµ lÃ¡Â»â€¡ch mÃƒÂ©p. Ã¡Â»Å¾ Ã„â€˜ÃƒÂ¢y chÃ¡Â»â€˜t bÃ¡Â»Â rÃ¡Â»â„¢ng
       chung 200px rÃ¡Â»â€œi suy ngÃ†Â°Ã¡Â»Â£c --btn-h theo tÃ¡Â»â€° lÃ¡Â»â€¡ tÃ¡Â»Â«ng khung -> mÃƒÂ©p thÃ¡ÂºÂ³ng hÃƒÂ ng
       mÃƒÂ  hoa vÃ„Æ’n vÃ¡ÂºÂ«n khÃƒÂ´ng bÃ¡Â»â€¹ kÃƒÂ©o mÃƒÂ©o. */
    .navbar-actions .nav-btn-primary {
        --btn-h: 59.7px; /* 200 / 3.351 */
    }
    .navbar-actions .nav-btn-secondary {
        --btn-h: 58px; /* 200 / 3.449 */
    }
    .navbar-actions .nav-btn {
        padding: 0 30px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    /* trong panel dropdown: khoa be rong (bang 2 nut phia duoi), chieu cao tu suy */
    .navbar-actions .nav-search {
        width: min(100%, 260px);
        height: auto;
    }
    .navbar-actions .nav-search input {
        font-size: 13px;
    }
    /* xuong hamburger: panel menu bung ra khoi dai, dai nen khong con hop -> an */
    .site-header::before {
        display: none;
    }
    .navbar-toggler {
        display: block;
        justify-self: end;
    }
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 120px;
        right: 0;
        left: 0;
        padding: 14px 20px 28px;
        background: #fff;
        box-shadow: 0 18px 34px rgba(43, 35, 24, 0.16);
    }
    .navbar-collapse.open {
        display: block;
    }

    /* DÃ¡ÂºÂ£i chuyÃ¡Â»Æ’n tiÃ¡ÂºÂ¿p Ã„â€˜ÃƒÂ¡y banner -> mÃƒÂ u nÃ¡Â»Ân khÃ¡Â»â€˜i nÃ¡Â»â„¢i dung ngay dÃ†Â°Ã¡Â»â€ºi,
       xoÃƒÂ¡ cÃƒÂº cÃ¡ÂºÂ¯t gÃ¡ÂºÂ¯t tÃ¡Â»Â« hÃ¡Â»â€œng nhÃ¡ÂºÂ¡t sang gÃ¡ÂºÂ§n Ã„â€˜en.
       z-index 4 Ã„â€˜Ã¡Â»Æ’ nÃ¡ÂºÂ±m TRÃƒÅ N .hero-art-mobile (z-index 3), nhÃ¡Â»Â Ã„â€˜ÃƒÂ³ chÃƒÂ¢n nhÃƒÂ¢n vÃ¡ÂºÂ­t
       cÃ…Â©ng chÃƒÂ¬m dÃ¡ÂºÂ§n theo, khÃƒÂ´ng bÃ¡Â»â€¹ cÃ¡ÂºÂ¯t ngang lÃ†Â¡ lÃ¡Â»Â­ng. */
    .hero-carousel .hero-slides::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 4;
        height: 20%;
        content: "";
        pointer-events: none;
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(9, 11, 11, 0.5) 58%,
            rgba(9, 11, 11, 0.98) 100%
        );
    }
    /* panel dropdown: cÃ„Æ’n giÃ¡Â»Â¯a toÃƒÂ n bÃ¡Â»â„¢ cho Ã„â€˜Ã¡Â»â€œng bÃ¡Â»â„¢ vÃ¡Â»â€ºi cÃ¡Â»Â¥m nÃƒÂºt bÃƒÂªn dÃ†Â°Ã¡Â»â€ºi */
    .navbar-nav {
        align-items: center;
        flex-direction: column;
        gap: 0;
    }
    .nav-item {
        width: 100%;
    }
    /* padding 15px + line ~19px = vÃƒÂ¹ng chÃ¡ÂºÂ¡m ~49px, Ã„â€˜Ã¡ÂºÂ¡t ngÃ†Â°Ã¡Â»Â¡ng tÃ¡Â»â€˜i thiÃ¡Â»Æ’u 48px cho cÃ¡ÂºÂ£m Ã¡Â»Â©ng */
    .nav-link {
        padding: 15px 5px;
        font-size: 15px;
        letter-spacing: 1px;
        text-align: center;
        border-radius: 8px;
    }
    .nav-link:active {
        background: rgba(211, 53, 47, 0.07);
    }
    .nav-btn {
        --btn-h: 44px;
        padding: 0 14px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    .hero {
        min-height: 700px;
    }
    .hero-content {
        padding-top: 100px;
    }
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-card:nth-child(2) {
        border-right: 0;
    }
    .portal-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }
    .home-grid,
    .guide-layout,
    .featured-grid,
    .story-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero-list {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   TABLET HERO
   768px -> 1200px

   Tablet sÃ¡Â»Â­ dÃ¡Â»Â¥ng cÃƒÂ¹ng bÃ¡Â»â€˜ cÃ¡Â»Â¥c vÃ¡Â»â€ºi mobile:
   Ã¡ÂºÂ£nh SS1 riÃƒÂªng Ã¡Â»Å¸ trÃƒÂªn + content Ã¡Â»Å¸ dÃ†Â°Ã¡Â»â€ºi
   ===================================================== */

@media (min-width: 768px) and (max-width: 1200px) {
    /*
     * KhÃƒÂ´ng giÃ¡Â»Â¯ hero cao 100vh nhÃ†Â° desktop nÃ¡Â»Â¯a.
     */
    .hero.hero-carousel {
        display: block;
        min-height: 0;
        /* bÃ¡Â»Â padding-top: 76px -> banner chÃ¡ÂºÂ¡y lÃƒÂªn sÃƒÂ¡t Ã„â€˜Ã¡Â»â€°nh, header trong suÃ¡Â»â€˜t Ã„â€˜ÃƒÂ¨ lÃƒÂªn trÃƒÂªn nÃƒÂ³ */
        padding-top: 0;
        overflow: visible;
        background: var(--bg);
    }

    /*
     * TÃ¡ÂºÂ¯t nhÃƒÂ¢n vÃ¡ÂºÂ­t + sidebar desktop.
     * bg-ss1-mb.webp Ã„â€˜ÃƒÂ£ lÃƒÂ  composition riÃƒÂªng.
     */
    .hero-art {
        display: none !important;
    }

    .hero-art-mobile {
        display: block;
    }

    .hero-art-mobile {
        display: block;

        /* top phÃ¡ÂºÂ£i lÃƒÂ  0, KHÃƒâ€NG phÃ¡ÂºÂ£i 76px: .hero-slides nÃ¡ÂºÂ±m ngay Ã„â€˜Ã¡Â»â€°nh .hero
           (padding-top cÃ¡Â»Â§a hero Ã„â€˜ÃƒÂ£ lÃƒÂ  0), nÃƒÂªn lÃ¡Â»â€ºp nhÃƒÂ¢n vÃ¡ÂºÂ­t cÃ…Â©ng phÃ¡ÂºÂ£i bÃ¡ÂºÂ¯t Ã„â€˜Ã¡ÂºÂ§u tÃ¡Â»Â« 0
           mÃ¡Â»â€ºi trÃƒÂ¹ng khÃƒÂ­t Ã¡ÂºÂ£nh nÃ¡Â»Ân. 76px lÃƒÂ  giÃƒÂ¡ trÃ¡Â»â€¹ cÃ…Â© tÃ¡Â»Â« hÃ¡Â»â€œi banner cÃƒÂ²n bÃ¡Â»â€¹ Ã„â€˜Ã¡ÂºÂ©y
           xuÃ¡Â»â€˜ng dÃ†Â°Ã¡Â»â€ºi header. */
        position: absolute;
        top: 0;
        left: 0;

        z-index: 3;

        width: 100%;
        /* PHÃ¡ÂºÂ¢I Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ thÃ¡ÂºÂ­t cÃ¡Â»Â§a bg-ss1-mb.webp = 853x1844.
           Ã„ÂÃ¡Â»Æ’ 1080/1920 thÃƒÂ¬ background-size:100% 100% nÃƒÂ©n Ã¡ÂºÂ£nh dÃ¡ÂºÂ¹t cÃƒÂ²n 82% chiÃ¡Â»Âu cao,
           nhÃƒÂ¢n vÃ¡ÂºÂ­t khÃƒÂ´ng bÃ¡Â»â€¹ nÃƒÂ©n nÃƒÂªn nhÃƒÂ¬n lÃ¡Â»â€¡ch hÃ¡ÂºÂ³n so vÃ¡Â»â€ºi khung cÃ¡ÂºÂ£nh. */
        aspect-ratio: 853 / 1844;

        overflow: hidden;
        pointer-events: none;
    }

    .hero-art-mobile .hero-mobile-char {
        position: absolute;
        height: auto;
        max-width: none;
    }

    /* Khung cao thÃƒÂªm 21.6% sau khi sÃ¡Â»Â­a tÃ¡Â»â€° lÃ¡Â»â€¡ -> chiÃ¡Â»Âu cao nhÃƒÂ¢n vÃ¡ÂºÂ­t tÃƒÂ­nh theo % khung
       co lÃ¡ÂºÂ¡i cÃƒÂ²n 82%, gÃƒÂ³t bÃ¡Â»â€¹ nhÃ¡ÂºÂ¥c lÃƒÂªn. BÃƒÂ¹ bÃ¡ÂºÂ±ng cÃƒÂ¡ch tÃ„Æ’ng top thÃƒÂªm 0.178 x (chiÃ¡Â»Âu cao
       cÃ…Â© theo % khung) Ã„â€˜Ã¡Â»Æ’ gÃƒÂ³t rÃ†Â¡i lÃ¡ÂºÂ¡i Ã„â€˜ÃƒÂºng chÃ¡Â»â€” cÃ…Â© trÃƒÂªn Ã¡ÂºÂ£nh nÃ¡Â»Ân. BÃ¡Â»Â rÃ¡Â»â„¢ng giÃ¡Â»Â¯ nguyÃƒÂªn:
       tÃ†Â°Ã†Â¡ng quan bÃ¡Â»Â ngang giÃ¡Â»Â¯a nhÃƒÂ¢n vÃ¡ÂºÂ­t vÃƒÂ  cÃ¡ÂºÂ£nh vÃ¡Â»â€˜n Ã„â€˜ÃƒÂ£ Ã„â€˜ÃƒÂºng. */
    .hero-mobile-char-1 {
        width: 59%;
        left: 28%;
        top: 7.1%;
    }

    .hero-mobile-char-2 {
        width: 44%;
        right: 31%;
        top: 29.7%;
        z-index: 4;
    }

    .hero-mobile-char-3 {
        width: 45%;
        left: 6%;
        top: 24.6%;
        z-index: 2;
    }

    .hero-mobile-char-4 {
        width: 40%;
        right: 5%;
        top: 23%;
        z-index: 2;
    }

    .hero-features {
        display: none !important;
    }

    /*
     * TÃ¡ÂºÂ¯t gradient phÃ¡Â»Â§ cÃ¡Â»Â§a desktop.
     */
    .hero-carousel::before,
    .hero-carousel::after {
        display: none;
    }

    /*
     * QUAN TRÃ¡Â»Å’NG:
     * biÃ¡ÂºÂ¿n .hero-slides tÃ¡Â»Â« absolute desktop
     * thÃƒÂ nh block cÃƒÂ³ chiÃ¡Â»Âu cao thÃ¡Â»Â±c.
     */
    .hero-carousel .hero-slides {
        position: relative;
        inset: auto;

        width: 100%;

        /*
         * HiÃ¡Â»â€¡n mobile bÃ¡ÂºÂ¡n Ã„â€˜ang dÃƒÂ¹ng 1080/1920
         * nÃƒÂªn tablet dÃƒÂ¹ng cÃƒÂ¹ng tÃ¡Â»Â· lÃ¡Â»â€¡.
         */
        /* PHÃ¡ÂºÂ¢I Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ thÃ¡ÂºÂ­t cÃ¡Â»Â§a bg-ss1-mb.webp = 853x1844.
           Ã„ÂÃ¡Â»Æ’ 1080/1920 thÃƒÂ¬ background-size:100% 100% nÃƒÂ©n Ã¡ÂºÂ£nh dÃ¡ÂºÂ¹t cÃƒÂ²n 82% chiÃ¡Â»Âu cao,
           nhÃƒÂ¢n vÃ¡ÂºÂ­t khÃƒÂ´ng bÃ¡Â»â€¹ nÃƒÂ©n nÃƒÂªn nhÃƒÂ¬n lÃ¡Â»â€¡ch hÃ¡ÂºÂ³n so vÃ¡Â»â€ºi khung cÃ¡ÂºÂ£nh. */
        aspect-ratio: 853 / 1844;

        overflow: hidden;
        background: #080a0a;
    }

    .hero-carousel .hero-slide,
    .hero-carousel .hero-slide-image {
        position: absolute;
        inset: 0;
    }

    /*
     * KhÃƒÂ´ng scale slide nhÃ†Â° desktop.
     */
    .hero-carousel .hero-slide {
        transform: none;
        transition: opacity 0.5s ease;
    }

    .hero-carousel .hero-slide.active {
        transform: none;
    }

    /*
     * Ã¡ÂºÂ¢nh TABLET/MOBILE
     *
     * KhÃƒÂ´ng dÃƒÂ¹ng cover.
     * cover chÃƒÂ­nh lÃƒÂ  nguyÃƒÂªn nhÃƒÂ¢n crop sai Ã¡ÂºÂ£nh.
     */
    .hero-carousel .hero-slide-image {
        background-image: url("/assets/game/ui/bg-ss1-mb.webp") !important;

        background-position: center center !important;

        background-repeat: no-repeat !important;

        background-size: 100% 100% !important;
    }

    /*
     * Content tÃƒÂ¡ch xuÃ¡Â»â€˜ng dÃ†Â°Ã¡Â»â€ºi Ã¡ÂºÂ£nh.
     */
    .hero-carousel .hero-content {
        position: relative;

        padding: 36px 0 56px;

        background:
            linear-gradient(
                180deg,
                rgba(9, 11, 11, 0.98),
                rgba(20, 8, 7, 0.96)
            ),
            radial-gradient(
                circle at 50% 0,
                rgba(199, 148, 63, 0.18),
                transparent 45%
            );
    }

    /*
     * Logo tablet lÃ¡Â»â€ºn hÃ†Â¡n mobile mÃ¡Â»â„¢t chÃƒÂºt.
     */
    .hero-carousel .hero-logo img {
        width: min(460px, 64vw);
    }

    .hero-eyebrow {
        margin-top: 12px;
        font-size: 15px;
        letter-spacing: 4px;
    }

    .hero-carousel .hero-copy h1 {
        font-size: clamp(32px, 5vw, 44px);
    }

    .hero-carousel .hero-lead {
        max-width: 600px;
        font-size: 14px;
    }

    .hero-carousel .hero-actions {
        justify-content: center;
        margin-top: 24px;
    }

    /*
     * Scroll cue desktop khÃƒÂ´ng cÃ¡ÂºÂ§n trÃƒÂªn tablet.
     */
    .hero-carousel .scroll-cue {
        display: none;
    }

    /*
     * Arrow nÃ¡ÂºÂ±m giÃ¡Â»Â¯a phÃ¡ÂºÂ§n Ã¡ÂºÂ£nh.
     */
    .hero-carousel .carousel-arrow {
        top: calc(76px + ((100vw * 1920 / 1080) / 2));
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 24px, 1160px);
    }
    .brand-copy strong {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .navbar {
        gap: 8px;
    }
    /* mÃ¡ÂºÂ«u mobile vÃ¡ÂºÂ«n cÃƒÂ³ logo chÃ¡Â»Â¯ cÃ¡ÂºÂ¡nh icon -> khÃƒÂ´ng Ã¡ÂºÂ©n .brand-wordmark nÃ¡Â»Â¯a,
       chÃ¡Â»â€” trÃ¡Â»â€˜ng cÃƒÂ³ Ã„â€˜Ã†Â°Ã¡Â»Â£c lÃƒÂ  nhÃ¡Â»Â 2 nÃƒÂºt Ã„â€˜ÃƒÂ£ chuyÃ¡Â»Æ’n vÃƒÂ o panel dropdown */
    /* Ã„â€˜iÃ¡Â»â€¡n thoÃ¡ÂºÂ¡i: nhÃ¡Â»Â hÃ†Â¡n tablet mÃ¡Â»â„¢t bÃ¡ÂºÂ­c, vÃƒÂ  bar phÃ¡ÂºÂ£i hÃ¡ÂºÂ¡ theo
       (kÃƒÂ¨m .navbar-collapse top) nÃ¡ÂºÂ¿u khÃƒÂ´ng header chiÃ¡ÂºÂ¿m quÃƒÂ¡ nhiÃ¡Â»Âu mÃƒÂ n hÃƒÂ¬nh */
    .navbar {
        min-height: 104px;
    }
    .navbar-collapse {
        top: 104px;
    }
    .brand-wordmark img {
        height: 84px;
    }
    .brand-app {
        width: 68px;
        height: 68px;
        border-radius: 15px;
    }
    .nav-btn {
        --btn-h: 32px;
        padding: 0 10px;
        font-size: 11px;
    }
    .hero {
        min-height: 680px;
    }
    .hero.hero-carousel {
        display: block;
        min-height: 0;
        padding-top: 0;
        overflow: visible;
        /* mobile: Ã¡ÂºÂ£nh nÃ¡ÂºÂ±m trÃƒÂªn, chÃ¡Â»Â¯ nÃ¡ÂºÂ±m dÃ†Â°Ã¡Â»â€ºi trÃƒÂªn nÃ¡Â»Ân trang -> nÃ¡Â»Ân sÃƒÂ¡ng, khÃƒÂ´ng phÃ¡ÂºÂ£i #090b0b nhÃ†Â° cÃ…Â© */
        background: var(--bg);
    }
    /* mobile: hero xÃ¡ÂºÂ¿p dÃ¡Â»Âc (Ã¡ÂºÂ£nh trÃƒÂªn, chÃ¡Â»Â¯ dÃ†Â°Ã¡Â»â€ºi) nÃƒÂªn lÃ¡Â»â€ºp art phÃ¡Â»Â§ tuyÃ¡Â»â€¡t Ã„â€˜Ã¡Â»â€˜i sÃ¡ÂºÂ½ Ã„â€˜ÃƒÂ¨ lÃƒÂªn chÃ¡Â»Â¯ -> Ã¡ÂºÂ©n */
    .hero-art {
        display: none;
    }
    .hero-art-mobile {
        display: block;
    }
    .hero-art-mobile {
        display: block;

        /* top phÃ¡ÂºÂ£i lÃƒÂ  0, KHÃƒâ€NG phÃ¡ÂºÂ£i 76px: .hero-slides nÃ¡ÂºÂ±m ngay Ã„â€˜Ã¡Â»â€°nh .hero
           (padding-top cÃ¡Â»Â§a hero Ã„â€˜ÃƒÂ£ lÃƒÂ  0), nÃƒÂªn lÃ¡Â»â€ºp nhÃƒÂ¢n vÃ¡ÂºÂ­t cÃ…Â©ng phÃ¡ÂºÂ£i bÃ¡ÂºÂ¯t Ã„â€˜Ã¡ÂºÂ§u tÃ¡Â»Â« 0
           mÃ¡Â»â€ºi trÃƒÂ¹ng khÃƒÂ­t Ã¡ÂºÂ£nh nÃ¡Â»Ân. 76px lÃƒÂ  giÃƒÂ¡ trÃ¡Â»â€¹ cÃ…Â© tÃ¡Â»Â« hÃ¡Â»â€œi banner cÃƒÂ²n bÃ¡Â»â€¹ Ã„â€˜Ã¡ÂºÂ©y
           xuÃ¡Â»â€˜ng dÃ†Â°Ã¡Â»â€ºi header. */
        position: absolute;
        top: 0;
        left: 0;

        z-index: 3;

        width: 100%;
        /* PHÃ¡ÂºÂ¢I Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ thÃ¡ÂºÂ­t cÃ¡Â»Â§a bg-ss1-mb.webp = 853x1844.
           Ã„ÂÃ¡Â»Æ’ 1080/1920 thÃƒÂ¬ background-size:100% 100% nÃƒÂ©n Ã¡ÂºÂ£nh dÃ¡ÂºÂ¹t cÃƒÂ²n 82% chiÃ¡Â»Âu cao,
           nhÃƒÂ¢n vÃ¡ÂºÂ­t khÃƒÂ´ng bÃ¡Â»â€¹ nÃƒÂ©n nÃƒÂªn nhÃƒÂ¬n lÃ¡Â»â€¡ch hÃ¡ÂºÂ³n so vÃ¡Â»â€ºi khung cÃ¡ÂºÂ£nh. */
        aspect-ratio: 853 / 1844;

        overflow: hidden;
        pointer-events: none;
    }

    .hero-art-mobile .hero-mobile-char {
        position: absolute;
        height: auto;
        max-width: none;

        filter: drop-shadow(0 14px 22px rgba(48, 24, 10, 0.3));
    }

    /* Khung cao thÃƒÂªm 21.6% sau khi sÃ¡Â»Â­a tÃ¡Â»â€° lÃ¡Â»â€¡ -> chiÃ¡Â»Âu cao nhÃƒÂ¢n vÃ¡ÂºÂ­t tÃƒÂ­nh theo % khung
       co lÃ¡ÂºÂ¡i cÃƒÂ²n 82%, gÃƒÂ³t bÃ¡Â»â€¹ nhÃ¡ÂºÂ¥c lÃƒÂªn. BÃƒÂ¹ bÃ¡ÂºÂ±ng cÃƒÂ¡ch tÃ„Æ’ng top thÃƒÂªm 0.178 x (chiÃ¡Â»Âu cao
       cÃ…Â© theo % khung) Ã„â€˜Ã¡Â»Æ’ gÃƒÂ³t rÃ†Â¡i lÃ¡ÂºÂ¡i Ã„â€˜ÃƒÂºng chÃ¡Â»â€” cÃ…Â© trÃƒÂªn Ã¡ÂºÂ£nh nÃ¡Â»Ân. BÃ¡Â»Â rÃ¡Â»â„¢ng giÃ¡Â»Â¯ nguyÃƒÂªn:
       tÃ†Â°Ã†Â¡ng quan bÃ¡Â»Â ngang giÃ¡Â»Â¯a nhÃƒÂ¢n vÃ¡ÂºÂ­t vÃƒÂ  cÃ¡ÂºÂ£nh vÃ¡Â»â€˜n Ã„â€˜ÃƒÂ£ Ã„â€˜ÃƒÂºng. */
    .hero-mobile-char-1 {
        width: 59%;
        left: 28%;
        top: 7.1%;
    }

    .hero-mobile-char-2 {
        width: 44%;
        right: 31%;
        top: 29.7%;
        z-index: 4;
    }

    .hero-mobile-char-3 {
        width: 45%;
        left: 6%;
        top: 24.6%;
        z-index: 2;
    }

    .hero-mobile-char-4 {
        width: 40%;
        right: 5%;
        top: 23%;
        z-index: 2;
    }

    .hero-carousel .hero-content {
        padding: 30px 0 44px;
    }
    .hero-carousel .hero-logo img {
        width: min(340px, 78vw);
    }
    .hero-logo-tag {
        top: 10%;
        right: -24px;
        width: 22px;
        height: calc(22px * 4.401);
        font-size: 9px;
        letter-spacing: 2px;
    }
    .hero-eyebrow {
        margin-top: 20px;
        gap: 10px;
        font-size: 11px;
        letter-spacing: 4px;
    }
    .hero-eyebrow::before,
    .hero-eyebrow::after {
        width: 26px;
    }
    .hero-carousel .hero-lead {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .hero-cta {
        --btn-h: 56px;
        padding: 0 20px;
        font-size: 17px;
        letter-spacing: 3px;
    }
    .store-btn {
        padding: 7px 13px;
    }
    .store-btn svg {
        width: 21px;
        height: 21px;
    }
    .store-btn strong {
        font-size: 12px;
    }
    .hero-carousel::before,
    .hero-carousel::after {
        display: none;
    }
    .hero-carousel .hero-slides {
        position: relative;
        inset: auto;
        width: 100%;
        /* PHÃ¡ÂºÂ¢I Ã„â€˜ÃƒÂºng tÃ¡Â»â€° lÃ¡Â»â€¡ thÃ¡ÂºÂ­t cÃ¡Â»Â§a bg-ss1-mb.webp = 853x1844.
           Ã„ÂÃ¡Â»Æ’ 1080/1920 thÃƒÂ¬ background-size:100% 100% nÃƒÂ©n Ã¡ÂºÂ£nh dÃ¡ÂºÂ¹t cÃƒÂ²n 82% chiÃ¡Â»Âu cao,
           nhÃƒÂ¢n vÃ¡ÂºÂ­t khÃƒÂ´ng bÃ¡Â»â€¹ nÃƒÂ©n nÃƒÂªn nhÃƒÂ¬n lÃ¡Â»â€¡ch hÃ¡ÂºÂ³n so vÃ¡Â»â€ºi khung cÃ¡ÂºÂ£nh. */
        aspect-ratio: 853 / 1844;
        overflow: hidden;
        background: #080a0a;
    }
    .hero-carousel .hero-slide,
    .hero-carousel .hero-slide-image {
        position: absolute;
        inset: 0;
    }
    .hero-carousel .hero-slide-image {
        background-image: url("/assets/game/ui/bg-ss1-mb.webp") !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
    }
    .hero-carousel .hero-slide {
        transform: none;
        transition: opacity 0.5s ease;
    }
    .hero-carousel .hero-slide.active {
        transform: none;
    }
    .hero-carousel .hero-slide video {
        background: #080a0a;
        object-fit: cover;
    }
    .hero-carousel .hero-slide iframe {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
    .hero-content {
        padding-top: 0;
        padding-bottom: 70px;
    }
    .hero-carousel .hero-content {
        padding-top: 24px;
        background:
            linear-gradient(
                180deg,
                rgba(9, 11, 11, 0.98),
                rgba(20, 8, 7, 0.96)
            ),
            radial-gradient(
                circle at 50% 0,
                rgba(199, 148, 63, 0.18),
                transparent 45%
            );
    }
    .hero-carousel .hero-content.is-empty {
        display: none;
        padding: 0;
    }
    .hero-copy {
        max-width: none;
    }
    .hero h1 {
        margin: 16px 0 14px;
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.12;
    }
    .hero-lead {
        max-width: none;
        font-size: 15px;
        line-height: 1.65;
    }
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .hero-actions .btn {
        text-align: center;
    }
    .hero-carousel .hero-actions {
        margin-top: 22px;
    }
    .hero-carousel .scroll-cue {
        display: none;
    }
    .hero-carousel .carousel-arrow {
        /* Ã¡ÂºÂ£nh giÃ¡Â»Â bÃ¡ÂºÂ¯t Ã„â€˜Ã¡ÂºÂ§u tÃ¡Â»Â« y=0 nÃƒÂªn bÃ¡Â»Â phÃ¡ÂºÂ§n bÃƒÂ¹ 76px cÃ¡Â»Â§a header */
        top: 28.125vw;
        width: 40px;
        height: 48px;
        font-size: 30px;
        background: rgba(8, 10, 10, 0.58);
    }
    .hero-carousel .carousel-dots {
        bottom: 24px;
    }
    .sun {
        top: 150px;
        right: -65px;
        width: 180px;
        height: 180px;
    }
    .mountain {
        right: -20%;
        width: 120%;
        height: 49%;
    }
    .portal-section {
        margin-top: 0;
    }
    .portal-grid {
        margin: 0 -12px;
    }
    .portal-card {
        min-height: 90px;
        padding: 16px;
    }
    .portal-icon {
        width: 45px;
        margin-right: 9px;
        font-size: 24px;
    }
    .portal-card strong {
        font-size: 12px;
    }
    .content-section,
    .section,
    .guide-section {
        padding: 40px 0;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }
    .section-heading h2,
    .guide-section h2 {
        font-size: 29px;
    }
    .featured-news {
        grid-template-columns: 1fr;
    }
    .featured-copy {
        padding: 20px 0 8px;
    }
    .news-row {
        grid-template-columns: 78px 1fr;
    }
    .news-row time {
        display: none;
    }
    .event-section {
        padding: 40px 0;
    }
    .event-grid {
        grid-template-columns: 1fr;
    }
    .event-card {
        min-height: 280px;
    }
    .guide-grid,
    .card-grid,
    .hero-list {
        grid-template-columns: 1fr;
    }
    .hero-filter-panel {
        padding: 0;
        overflow: hidden;
    }
    .hero-filter-toggle {
        display: flex;
        width: 100%;
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
        color: #17110a;
        border: 0;
        background: linear-gradient(135deg, var(--gold-light), var(--gold));
        font-weight: 900;
        text-transform: uppercase;
    }
    .hero-filter-toggle strong {
        color: #5f2117;
        font-size: 12px;
    }
    .hero-filter-body {
        padding: 16px;
    }
    .hero-filter-panel:not(.open) .hero-filter-body {
        display: none;
    }
    .hero-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .hero-filter-actions > span {
        margin-right: 0;
    }
    .hero-filter-actions .btn,
    .hero-filter-actions .text-link {
        justify-content: center;
        text-align: center;
    }
    .hero-detail {
        display: block;
        min-height: 0;
    }
    .hero-preview-button {
        display: block;
        width: 100%;
        min-height: 300px;
    }
    .hero-detail img {
        height: 300px;
        transform: scale(1.05);
    }
    .hero-detail > .hero-detail-copy {
        padding: 22px;
    }
    .hero-detail .hero-card-summary-list li:nth-child(n + 6) {
        display: none;
    }
    .guide-card {
        min-height: 145px;
    }
    .hero-modal {
        align-items: start;
        overflow-y: auto;
        padding: 14px;
    }
    .hero-modal.open {
        display: block;
    }
    .hero-modal-dialog {
        max-height: none;
        overflow: visible;
        grid-template-columns: 1fr;
    }
    .hero-modal-media {
        min-height: 260px;
        max-height: 340px;
    }
    .hero-modal-media img {
        max-height: 310px;
    }
    .hero-modal-body {
        overflow: visible;
        padding: 30px 22px 28px;
    }
    .hero-modal-body h2 {
        font-size: 28px;
    }
    .hero-banner-portrait {
        display: none;
    }
    .error-screen {
        padding: 16px;
    }
    .error-card {
        padding: 28px 22px;
    }
    .error-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .error-actions .btn {
        text-align: center;
    }
    .featured-image img {
        height: 260px;
    }
    .search-form {
        flex-direction: column;
    }
    .search-form .btn {
        min-height: 48px;
    }
    .site-pagination {
        flex-wrap: wrap;
    }
    /* Truoc day nut truoc/sau la vien dai nen cho no gian ra full hang. Gio no la
       huy hieu hinh thoi -> phai giu dung kich thuoc vuong, keo gian la meo hinh.
       Ca hang cu chay lien mach "< 1 2 3 ... >" roi tu xuong dong. */
    .page-numbers {
        order: 0;
        width: auto;
    }
    .page-control {
        flex: 0 0 auto;
    }
}

@media (max-width: 420px) {
    /* TrÃ†Â°Ã¡Â»â€ºc Ã„â€˜ÃƒÂ¢y Ã¡ÂºÂ©n nÃƒÂºt NÃ¡ÂºÂ¡p thÃ¡ÂºÂ» vÃƒÂ¬ 2 nÃƒÂºt nÃ¡ÂºÂ±m trÃƒÂªn THANH header, mÃƒÂ¡y hÃ¡ÂºÂ¹p lÃƒÂ  trÃƒÂ n.
       GiÃ¡Â»Â chÃƒÂºng Ã„â€˜ÃƒÂ£ nÃ¡ÂºÂ±m trong panel dropdown, thÃ¡Â»Â«a chÃ¡Â»â€” -> phÃ¡ÂºÂ£i hiÃ¡Â»â€¡n lÃ¡ÂºÂ¡i Ã„â€˜Ã¡Â»Â§ 2 nÃƒÂºt. */
    .brand-seal {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .brand-copy strong {
        max-width: 150px;
        font-size: 13px;
    }
    .brand-copy small {
        font-size: 8px;
    }
    .hero:not(.hero-carousel) h1 {
        font-size: 36px;
    }
    .hero-carousel h1 {
        font-size: clamp(28px, 8vw, 36px);
    }
    .hero-lead {
        font-size: 14px;
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .portal-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .portal-card:last-child {
        border-bottom: 0;
    }
    .news-tabs {
        padding: 0 15px;
        flex-wrap: wrap;
    }
    .news-tabs .nav-link {
        margin-right: 14px;
        font-size: 16px;
    }
    .news-tabs-more {
        margin-left: 0;
        width: 100%;
    }
    .news-tabs-more .view-all {
        min-height: 42px;
    }
    .tab-content {
        padding: 18px;
    }
    .ranking-head {
        padding: 0 18px;
    }
    .rank-tabs {
        margin: 18px 18px 12px;
    }
    .rank-list {
        margin: 0 18px;
    }
    .ranking-note {
        margin: 15px 18px 18px;
    }
    .news-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .news-title {
        overflow: visible;
        white-space: normal;
    }
    .carousel-arrow {
        width: 38px;
        height: 46px;
        font-size: 30px;
    }
    .carousel-prev {
        left: 8px;
    }
    .carousel-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-slide {
        transform: none;
    }
}

body {
    font-size: 16px;
}

.brand-copy small,
.eyebrow,
.btn,
.portal-card small,
.portal-platforms,
.view-all,
.text-link,
.section-heading > a,
.news-tabs .nav-link,
.news-label,
.featured-copy time,
.event-card time,
.featured-copy a,
.news-type,
.news-row time,
.server-status,
.rank-tabs button,
.rank-list li::before,
.rank-player small,
.rank-score,
.ranking-note,
.event-card p,
.event-card a,
.requirements,
.card-body > span,
.hero-card span {
    font-size: 14px;
}

.hero-lead,
.featured-copy p,
.news-title,
.rank-player strong,
.guide-card small,
.card-body p,
.section p,
.article-content,
.related,
.hero-detail p {
    font-size: 17px;
}

.portal-card strong,
.guide-card strong,
.card-body h3,
.featured-copy h3 {
    font-size: 18px;
}

/* ============================================================
   Mobile / Tablet Ã¢â‚¬â€ khÃ¡Â»â€˜i chÃ¡Â»Â¯ dÃ†Â°Ã¡Â»â€ºi banner
   Ã„ÂÃ¡ÂºÂ·t Ã¡Â»Å¾ CUÃ¡Â»ÂI FILE cÃƒÂ³ chÃ¡Â»Â§ Ã„â€˜ÃƒÂ­ch: cÃƒÂ¡c rule nÃ¡Â»Ân tÃ¡Â»â€˜i cÃ¡Â»Â§a .hero-content nÃ¡ÂºÂ±m trong
   nhÃ¡Â»Â¯ng block media phÃƒÂ­a trÃƒÂªn, cÃƒÂ¹ng specificity nÃƒÂªn phÃ¡ÂºÂ£i xuÃ¡ÂºÂ¥t hiÃ¡Â»â€¡n sau mÃ¡Â»â€ºi Ã„â€˜ÃƒÂ¨ Ã„â€˜Ã†Â°Ã¡Â»Â£c.
   ============================================================ */
@media (max-width: 1200px) {
    /* ChÃ¡Â»â€° giÃ¡Â»Â¯ CTA + hÃƒÂ ng nÃƒÂºt tÃ¡ÂºÂ£i, Ã„â€˜Ã¡ÂºÂ·t Ã„â€˜ÃƒÂ¨ lÃƒÂªn Ã„â€˜ÃƒÂ¡y banner ngay dÃ†Â°Ã¡Â»â€ºi chÃƒÂ¢n nhÃƒÂ¢n vÃ¡ÂºÂ­t.
       position:absolute -> .hero cao Ã„â€˜ÃƒÂºng bÃ¡ÂºÂ±ng banner, nÃƒÂªn top tÃƒÂ­nh theo % banner. */
    .hero-carousel .hero-content {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        z-index: 5;
        padding: 0 14px;
        background: none;
    }
    .hero-carousel .hero-logo,
    .hero-carousel .hero-title-art,
    .hero-carousel .hero-eyebrow,
    .hero-carousel .hero-copy h1,
    .hero-carousel .hero-lead {
        display: none;
    }
    /* mobile Ã„â€˜ang Ã„â€˜Ã¡Â»Æ’ hero-actions xÃ¡ÂºÂ¿p dÃ¡Â»Âc + stretch -> nÃƒÂºt CHÃ†Â I NGAY bÃ¡Â»â€¹ kÃƒÂ©o full
       bÃ¡Â»Â ngang lÃƒÂ m mÃƒÂ©o hoa vÃ„Æ’n khung. TrÃ¡ÂºÂ£ vÃ¡Â»Â hÃƒÂ ng ngang, giÃ¡Â»Â¯ Ã„â€˜ÃƒÂºng bÃ¡Â»Â rÃ¡Â»â„¢ng tÃ¡Â»Â± nhiÃƒÂªn. */
    .hero-carousel .hero-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
    /* CÃ¡Â»Â¡ nÃƒÂºt phÃ¡ÂºÂ£i bÃƒÂ¡m bÃ¡Â»Â rÃ¡Â»â„¢ng khung nhÃƒÂ¬n giÃ¡Â»â€˜ng mÃ¡Â»Âi thÃ¡Â»Â© khÃƒÂ¡c trong hero.
       Ã„ÂÃ¡Â»Æ’ px cÃ¡Â»â€˜ Ã„â€˜Ã¡Â»â€¹nh thÃƒÂ¬ trÃƒÂªn iPad (768-1200px) cÃ¡ÂºÂ£nh phÃƒÂ³ng to gÃ¡ÂºÂ¥p Ã„â€˜ÃƒÂ´i mÃƒÂ  nÃƒÂºt vÃ¡ÂºÂ«n
       nguyÃƒÂªn kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc -> trÃƒÂ´ng bÃƒÂ© tÃ¡ÂºÂ¹o. RÃ¡Â»â„¢ng nÃƒÂºt = --btn-h x 3.351, tÃ¡Â»Â©c ~32% bÃ¡Â»Â
       rÃ¡Â»â„¢ng mÃƒÂ n Ã¡Â»Å¸ tablet vÃƒÂ  ~45% Ã¡Â»Å¸ Ã„â€˜iÃ¡Â»â€¡n thoÃ¡ÂºÂ¡i. */
    .hero-carousel .hero-cta {
        --btn-h: clamp(52px, 9.5vw, 105px);
        padding: 0 clamp(20px, 3vw, 40px);
        font-size: clamp(17px, 2.6vw, 30px);
        letter-spacing: clamp(2px, 0.35vw, 5px);
    }
    /* Thu gÃ¡Â»Ân Ã„â€˜Ã¡Â»Æ’ 3 nÃƒÂºt tÃ¡ÂºÂ£i nÃ¡ÂºÂ±m gÃ¡Â»Ân 1 hÃƒÂ ng thay vÃƒÂ¬ rÃ¡Â»â€ºt xuÃ¡Â»â€˜ng 2+1 Ã¢â‚¬â€ cÃ¡Â»Â¥m ngÃ¡ÂºÂ¯n lÃ¡ÂºÂ¡i
       nÃƒÂªn cÃ¡ÂºÂ£ khÃ¡Â»â€˜i cÃ…Â©ng lÃƒÂªn cao thÃƒÂªm Ã„â€˜Ã†Â°Ã¡Â»Â£c mÃ¡Â»â„¢t Ã„â€˜oÃ¡ÂºÂ¡n. */
    .hero-carousel .hero-stores {
        flex-wrap: nowrap;
        gap: clamp(8px, 1.4vw, 18px);
        margin-top: clamp(12px, 2vw, 26px);
    }
    .hero-carousel .store-btn {
        gap: clamp(7px, 1vw, 12px);
        padding: clamp(6px, 0.9vw, 12px) clamp(10px, 1.6vw, 20px);
        border-radius: clamp(10px, 1.2vw, 16px);
    }
    .hero-carousel .store-btn svg {
        width: clamp(19px, 3vw, 34px);
        height: clamp(19px, 3vw, 34px);
    }
    .hero-carousel .store-btn small {
        font-size: clamp(8px, 1.3vw, 15px);
    }
    .hero-carousel .store-btn strong {
        font-size: clamp(11px, 1.9vw, 22px);
        white-space: nowrap;
    }

    /* HiÃ¡Â»â€¡n lÃ¡ÂºÂ¡i nÃƒÂºt cuÃ¡Â»â„¢n nhÃ†Â° desktop (2 block media phÃƒÂ­a trÃƒÂªn Ã„â€˜ang set display:none).
       Neo bÃ¡ÂºÂ±ng top thay vÃƒÂ¬ bottom: banner mobile rÃ¡ÂºÂ¥t cao (tÃ¡Â»â€° lÃ¡Â»â€¡ 0.4626) nÃƒÂªn Ã„â€˜Ã¡ÂºÂ·t Ã¡Â»Å¸
       Ã„â€˜ÃƒÂ¡y sÃ¡ÂºÂ½ hÃ¡Â»Â¥t hÃ¡ÂºÂ³n xuÃ¡Â»â€˜ng dÃ†Â°Ã¡Â»â€ºi, cÃƒÂ¡ch cÃ¡Â»Â¥m nÃƒÂºt mÃ¡Â»â„¢t khoÃ¡ÂºÂ£ng trÃ¡Â»â€˜ng rÃ¡ÂºÂ¥t lÃ¡Â»â€ºn.
       70% lÃƒÂ  ngay dÃ†Â°Ã¡Â»â€ºi cÃ¡Â»Â¥m nÃƒÂºt (nÃƒÂºt Ã¡Â»Å¸ 50%, cÃ¡Â»Â¥m cao ~9-13% chiÃ¡Â»Âu cao banner). */
    .hero-carousel .scroll-cue {
        display: flex;
        /* Neo ngay dÆ°á»›i cá»¥m nÃºt táº£i, khÃ´ng pháº£i má»™t má»‘c % cá»‘ Ä‘á»‹nh.
           Cá»¥m nÃºt báº¯t Ä‘áº§u á»Ÿ 50% chiá»u cao hero vÃ  cao ~0.128W + 50px (cá»¡ nÃºt dÃ¹ng
           clamp theo vw). VÃ¬ hero cao = W / 0.4626, quy pháº§n theo W vá» % chiá»u cao
           hero Ä‘Æ°á»£c: 50% + 0.128W  ->  55.9%. Cá»™ng 74px lÃ  khoáº£ng thá»Ÿ.
           Äá»ƒ 70% cá»‘ Ä‘á»‹nh thÃ¬ mÃ n cÃ ng rá»™ng nÃºt cuá»™n cÃ ng rÆ¡i xa cá»¥m nÃºt. */
        top: calc(55.9% + 74px);
        bottom: auto;
        z-index: 5;
    }
    .hero-carousel .scroll-cue em {
        font-size: clamp(10px, 1.3vw, 15px);
        letter-spacing: clamp(3px, 0.5vw, 6px);
    }
    .hero-carousel .scroll-cue i {
        width: clamp(24px, 3.2vw, 34px);
        height: clamp(40px, 5.4vw, 58px);
    }

    /* KhÃƒÂ´ng cÃƒÂ²n khÃ¡Â»â€˜i nÃ¡Â»Ân gÃ¡ÂºÂ§n Ã„â€˜en ngay dÃ†Â°Ã¡Â»â€ºi banner nÃ¡Â»Â¯a -> dÃ¡ÂºÂ£i mÃ¡Â»Â Ã„â€˜ÃƒÂ¡y phÃ¡ÂºÂ£i chuyÃ¡Â»Æ’n
       vÃ¡Â»Â mÃƒÂ u nÃ¡Â»Ân trang, nÃ¡ÂºÂ¿u khÃƒÂ´ng sÃ¡ÂºÂ½ thÃƒÂ nh vÃ¡Â»â€¡t Ã„â€˜en lÃ†Â¡ lÃ¡Â»Â­ng. */
    .hero-carousel .hero-slides::after {
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(16, 20, 35, 0.06) 72%,
            rgba(16, 20, 35, 0.14) 100%
        );
    }
}

/* ============================================================
   SS2 â€” "Hiá»‡p KhÃ¡ch há»™i tá»¥"
   ============================================================ */
.ss2 {
    position: relative;
    min-height: 112vh;
    overflow: hidden;
    background: transparent;
}
/* Nen tach ra thanh lop rieng (::before) thay vi dat thang tren .ss2.
   Dai mo noi voi ss1 lam bang mask, ma mask dat tren .ss2 thi an vao TAT CA con
   cua section: tieu de "Hiep Khach" bat dau o y=52px trong khi mask chi duc han
   tu 190px -> hon nua chieu cao anh chu bi keo mo. Mask nam o lop nen thi chi
   anh nen hoa tan, chu va nhan vat giu nguyen do dam. */
.ss2::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        url("/assets/game/banner/bg-ss2.webp") center / cover no-repeat,
        #101423;
    content: "";
    pointer-events: none;
}
/* dáº£i ná»‘i mÃ u vá»›i section phÃ­a trÃªn vÃ  phÃ­a dÆ°á»›i */
.ss2::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 90px;
    background: linear-gradient(var(--bg), transparent);
    content: "";
    pointer-events: none;
    /* Khong co dai o day duoi: ss3 da trum len bang margin am va tu hoa tan vao
       canh nay. De lai bat ky mau dac nao o day cung thanh vet nam ngang. */
}

@media (min-width: 1201px) {
    .ss2 {
        --ss2-desktop-blend: clamp(120px, 10vw, 190px);
        margin-top: calc(var(--ss2-desktop-blend) * -0.3);
    }

    /* Ca hai lop nen deu phai mask: dai kem ::after neu khong mask se dam ngay
       tai y=0 -> thanh mot vach ngang cung o mep noi voi ss1. */
    .ss2::before,
    .ss2::after {
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, 0.36) calc(var(--ss2-desktop-blend) * 0.42),
            #000 var(--ss2-desktop-blend),
            #000 100%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, 0.36) calc(var(--ss2-desktop-blend) * 0.42),
            #000 var(--ss2-desktop-blend),
            #000 100%
        );
    }

    .ss2::after {
        height: var(--ss2-desktop-blend);
        background:
            linear-gradient(
                180deg,
                rgba(248, 242, 228, 0.62) 0%,
                rgba(248, 242, 228, 0.24) 45%,
                rgba(248, 242, 228, 0) 100%
            );
    }
}

/* SÃ¢n kháº¥u: cÃ¹ng cÃ´ng thá»©c vá»›i .hero-art â€” khá»‘i cÃ³ Ä‘Ãºng tá»‰ lá»‡ áº£nh ná»n vÃ  phá»§ kÃ­n
   section y há»‡t background-size: cover, nhá» Ä‘Ã³ dÃ n nhÃ¢n váº­t khoÃ¡ cá»©ng vÃ o bá»¥c Ä‘Ã¡. */
.ss2-stage {
    --stage-ratio: 1.746; /* bg-ss2.webp = 1657/949 */
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 100%;
    min-width: calc(100vh * var(--stage-ratio));
    aspect-ratio: var(--stage-ratio);
    pointer-events: none;
    transform: translate(-50%, -50%);
}
/* máº·t bá»¥c Ä‘Ã¡ á»Ÿ ~68% chiá»u cao áº£nh -> translateY(-100%) cho GÃ“T cháº¡m Ä‘Ãºng má»‘c Ä‘Ã³ */
.ss2-line {
    position: absolute;
    /* 70% thay vÃ¬ 68%: máº·t bá»¥c Ä‘Ã¡ tráº£i tá»« ~64% (mÃ©p sau) Ä‘áº¿n ~72% (mÃ©p trÆ°á»›c),
       nÃªn háº¡ 2% váº«n Ä‘á»©ng trÃªn Ä‘Ã¡ nhÆ°ng cáº£ dÃ n tá»¥t xuá»‘ng, Ä‘áº§u háº¿t Ä‘Ã¨ vÃ o phá»¥ Ä‘á». */
    top: 70%;
    left: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* height quyáº¿t Ä‘á»‹nh cá»¡ nhÃ¢n váº­t (con giá»¯a = 100% giÃ¡ trá»‹ nÃ y).
       Line neo á»Ÿ top 68% + translateY(-100%) nÃªn tÄƒng height lÃ  nhÃ¢n váº­t CAO LÃŠN
       phÃ­a trÃªn, gÃ³t váº«n dÃ­nh nguyÃªn máº·t bá»¥c Ä‘Ã¡. */
    width: 78%;
    height: 44%;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translate(-50%, -100%);
}
/* Chiá»u cao Ä‘áº·t trÃªn chÃ­nh <li>, KHÃ”NG Ä‘áº·t lÃªn <img>.
   <li> lÃ  flex item cá»§a .ss2-line vá»‘n cÃ³ chiá»u cao xÃ¡c Ä‘á»‹nh (% cá»§a sÃ¢n kháº¥u) nÃªn
   % á»Ÿ Ä‘Ã¢y quy chiáº¿u Ä‘Æ°á»£c. Äáº·t lÃªn <img> thÃ¬ % khÃ´ng cÃ³ má»‘c (li cao auto), cá»™ng thÃªm
   img{max-width:100%} toÃ n cá»¥c káº¹p bá» ngang -> áº£nh co láº¡i nhá» hÆ¡n háº³n giÃ¡ trá»‹ Ä‘áº·t. */
.ss2-char {
    flex: none;
    height: 70%;
    margin: 0 -1.4%;
    /* .ss2-stage Ä‘á»ƒ pointer-events:none cho khá»i cháº¯n ná»™i dung, má»Ÿ láº¡i á»Ÿ Ä‘Ã¢y
       Ä‘á»ƒ báº¥m tháº³ng vÃ o nhÃ¢n váº­t cÅ©ng chuyá»ƒn Ä‘Æ°á»£c */
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.82;
    filter: saturate(0.85) brightness(0.86);
    transition: 0.45s ease;
}
.ss2-char img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none; /* huá»· img{max-width:100%} toÃ n cá»¥c, náº¿u khÃ´ng áº£nh bá»‹ káº¹p ngang */
    filter: drop-shadow(0 14px 22px rgba(20, 12, 40, 0.45));
    transition: 0.45s ease;
}
/* con á»Ÿ giá»¯a ná»•i lÃªn: to hÆ¡n, sÃ¡ng hÆ¡n, Ä‘Ã¨ lÃªn hai bÃªn */
.ss2-char[data-pos="0"] {
    z-index: 5;
    height: 100%;
    opacity: 1;
    filter: none;
}
.ss2-char[data-pos="1"],
.ss2-char[data-pos="-1"] {
    z-index: 4;
    height: 84%;
    opacity: 0.94;
}
.ss2-char[data-pos="2"],
.ss2-char[data-pos="-2"] {
    z-index: 3;
    height: 75%;
}
.ss2-char[data-pos="3"],
.ss2-char[data-pos="-3"] {
    z-index: 2;
    height: 68%;
}

.ss2-inner {
    position: relative;
    z-index: 6;
    display: flex;
    min-height: inherit;
    flex-direction: column;
    align-items: center;
    /* padding-bottom 80px = chá»— chá»«a cho .ss2-cue (Ä‘Ã£ absolute á»Ÿ Ä‘Ã¡y).
       Chá»‰nh Ä‘Ãºng sá»‘ nÃ y Ä‘á»ƒ Ä‘áº©y khung thÃ´ng tin lÃªn/xuá»‘ng so vá»›i mÃ©p Ä‘Ã¡. */
    padding: 56px 0 80px;
    text-align: center;
}

@media (min-width: 1201px) {
    .ss2-inner {
        padding-top: clamp(20px, 3vh, 44px);
    }
}

/* --- tiÃªu Ä‘á» --- */
.ss2-title {
    position: relative;
    z-index: 2;
    margin: 0 0 clamp(18px, 3vh, 42px);
    line-height: 1.1;
}
.ss2-title-img {
    width: min(780px, 88vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(74, 24, 6, 0.22));
}
.ss2-sub {
    display: none;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: #7c3a1c;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(14px, 1.3vw, 19px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}
.ss2-sub i {
    color: #c58a3c;
    font-style: normal;
    font-size: 0.7em;
}
.ss2-sub::before,
.ss2-sub::after {
    width: 52px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #b8863f);
}
.ss2-sub::after {
    background: linear-gradient(270deg, transparent, #b8863f);
}

/* --- tháº» thÃ´ng tin + mÅ©i tÃªn --- */
.ss2-panel {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 30px);
    width: 100%;
    margin-top: auto;
}
/* áº¢nh 222x237 Ä‘Ã£ lÃ  hÃ¬nh thoi cÃ³ sáºµn mÅ©i tÃªn "<" -> bá» háº¿t pháº§n tá»± váº½ báº±ng CSS
   (gradient, border-radius, rotate 45deg, 2 cáº¡nh viá»n lÃ m mÅ©i tÃªn).
   NÃºt next dÃ¹ng láº¡i chÃ­nh áº£nh Ä‘Ã³, láº­t ngang báº±ng scaleX(-1). */
/* Cum CTA + dai chan dung + cham trang: chi ton tai o mobile/iPad (xem khoi
   @media max-width:1200px). Desktop van la dan 7 nguoi dung tren buc da nen
   khong can dai chon nay - an hoan toan de khong doi gi o man rong. */
.ss2-mnav {
    display: none;
}
.ss2-arrow {
    position: relative;
    z-index: 2;
    flex: none;
    width: clamp(44px, 3.8vw, 62px);
    aspect-ratio: 222 / 237;
    padding: 0;
    border: 0;
    background: url("/assets/game/ui/ic-prev-next.webp") center / contain
        no-repeat;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 6px 12px rgba(84, 10, 4, 0.35));
    transition: 0.25s ease;
}
.ss2-prev:hover {
    filter: drop-shadow(0 8px 16px rgba(84, 10, 4, 0.5)) brightness(1.1);
    transform: scale(1.08);
}
.ss2-next {
    transform: scaleX(-1);
}
.ss2-next:hover {
    filter: drop-shadow(0 8px 16px rgba(84, 10, 4, 0.5)) brightness(1.1);
    transform: scaleX(-1) scale(1.08);
}
/* Khung 2121x741 -> aspect-ratio giá»¯ Ä‘Ãºng tá»‰ lá»‡ Ä‘á»ƒ hoa vÄƒn vÃ  4 viÃªn há»“ng ngá»c
   khÃ´ng bá»‹ kÃ©o mÃ©o. áº¢nh Ä‘Ã£ cÃ³ sáºµn Ä‘Æ°á»ng káº» ngang chia Ä‘Ã´i á»Ÿ ~41% chiá»u cao,
   nÃªn tÃªn Ä‘áº·t á»Ÿ dáº£i trÃªn, 3 thÃ´ng sá»‘ á»Ÿ dáº£i dÆ°á»›i. */
.ss2-card {
    position: relative;
    width: min(620px, 94%);
    aspect-ratio: 2121 / 741;
    background: url("/assets/game/ui/bg-info-ss2.webp") center / 100% 100%
        no-repeat;
}
.ss2-name {
    position: absolute;
    top: 14%;
    right: 12%;
    left: 12%;
    display: grid;
    height: 27%;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #8a1108;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(16px, 1.7vw, 25px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ss2-stats {
    position: absolute;
    top: 43%;
    right: 6%;
    left: 6%;
    display: grid;
    height: 43%;
    align-items: center;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
}
.ss2-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 4px;
}
.ss2-stat + .ss2-stat {
    border-left: 1px solid rgba(180, 132, 62, 0.3);
}
/* áº¢nh nhiá»u mÃ u -> dÃ¹ng background-image tháº­t, KHÃ”NG dÃ¹ng mask nhÆ° trÆ°á»›c:
   mask chá»‰ láº¥y hÃ¬nh dáº¡ng rá»“i tÃ´ má»™t mÃ u Ä‘áº·c, sáº½ máº¥t háº¿t chi tiáº¿t vÃ ng/Ä‘á» cá»§a icon. */
.ss2-stat-icon {
    flex: none;
    width: 34px;
    height: 34px;
    background: center / contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(84, 10, 4, 0.3));
}
.ss2-icon-sect {
    background-image: url("/assets/game/ui/ic-mon-phai.webp");
}
.ss2-icon-trait {
    background-image: url("/assets/game/ui/ic-dac-diem.webp");
}
/* GiÃ¡ trá»‹ dÃ i nháº¥t lÃ  "Quyá»n VÆ°Æ¡ng" / "ThÃ­ch KhÃ¡ch" (11 kÃ½ tá»±). Cá»™t giá»¯a cÃ²n pháº£i
   nhÆ°á»ng 34px cho icon nÃªn háº¹p nháº¥t -> giáº£m cá»¡ chá»¯, giáº£m letter-spacing vÃ 
   nowrap Ä‘á»ƒ khÃ´ng bao giá» bá»‹ ngáº¯t thÃ nh 2 dÃ²ng. */
.ss2-stat dt {
    color: #8a6a45;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    white-space: nowrap;
    text-transform: uppercase;
}
.ss2-stat dd {
    margin: 3px 0 0;
    color: #4a2a15;
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-transform: uppercase;
}
.ss2-stars {
    display: flex;
    gap: 3px;
}
/* NgÃ´i sao váº½ báº±ng mask + gradient vÃ ng kim, khÃ´ng phá»¥ thuá»™c font há»‡ thá»‘ng */
.ss2-stars i {
    width: 17px;
    height: 17px;
    background: linear-gradient(180deg, #ffd873, #e0a221 62%, #b87611);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8 15 8.4l7.2.9-5.3 4.9 1.4 7.1L12 17.9 5.7 21.3l1.4-7.1L1.8 9.3l7.2-.9L12 1.8Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8 15 8.4l7.2.9-5.3 4.9 1.4 7.1L12 17.9 5.7 21.3l1.4-7.1L1.8 9.3l7.2-.9L12 1.8Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    /* mask khÃ´ng cÃ³ border, nÃªn viá»n dá»±ng báº±ng 4 lá»›p drop-shadow lá»‡ch 4 hÆ°á»›ng,
       blur = 0. CÃ¡c drop-shadow xÃ¢u chuá»—i nhau (cÃ¡i sau Äƒn theo káº¿t quáº£ cÃ¡i trÆ°á»›c)
       nÃªn 4 hÆ°á»›ng lÃ  Ä‘á»§ bao kÃ­n. Lá»›p cuá»‘i lÃ  bÃ³ng Ä‘á»• má»m cho sao ná»•i khá»i ná»n kem. */
    filter: drop-shadow(0.8px 0 0 #8a5411) drop-shadow(-0.8px 0 0 #8a5411)
        drop-shadow(0 0.8px 0 #8a5411) drop-shadow(0 -0.8px 0 #8a5411)
        drop-shadow(0 2px 3px rgba(110, 62, 8, 0.45));
}
.ss2-stars i.is-off {
    background: rgba(255, 250, 240, 0.85);
    filter: drop-shadow(0.8px 0 0 rgba(138, 84, 17, 0.55))
        drop-shadow(-0.8px 0 0 rgba(138, 84, 17, 0.55))
        drop-shadow(0 0.8px 0 rgba(138, 84, 17, 0.55))
        drop-shadow(0 -0.8px 0 rgba(138, 84, 17, 0.55));
}
/* Neo tuyá»‡t Ä‘á»‘i á»Ÿ Ä‘Ã¡y section thay vÃ¬ náº±m trong dÃ²ng cháº£y â€” náº±m trong dÃ²ng thÃ¬ nÃ³
   chiáº¿m ~92px vÃ  Ä‘áº©y khung thÃ´ng tin lÃªn cao, khÃ´ng xuá»‘ng sÃ¡t mÃ©p Ä‘Ã¡ Ä‘Æ°á»£c. */
.ss2-cue {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 4;
    margin-top: 0;
    transform: translateX(-50%);
}

/* ============ SS2 â€” hiá»‡u á»©ng ============ */

/* --- 1. VÃ o mÃ n khi cuá»™n tá»›i (JS gáº¯n .is-visible) --- */
.ss2-title,
.ss2-sub,
.ss2-panel {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss2.is-visible .ss2-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}
.ss2.is-visible .ss2-sub {
    opacity: 1;
    transform: none;
    transition-delay: 0.22s;
}
.ss2.is-visible .ss2-panel {
    opacity: 1;
    transform: none;
    transition-delay: 0.5s;
}

/* NhÃ¢n váº­t chá»‰ trÆ°á»£t lÃªn, KHÃ”NG Ä‘á»¥ng tá»›i opacity: opacity Ä‘ang lÃ  thá»© táº¡o chiá»u sÃ¢u
   theo [data-pos] (0.82 / 0.94 / 1), Ä‘á»™ng vÃ o lÃ  máº¥t hiá»‡u á»©ng xa-gáº§n. */
.ss2-char {
    transform: translateY(60px);
    transition:
        height 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease,
        transform 0.85s cubic-bezier(0.2, 0.75, 0.3, 1);
}
.ss2.is-visible .ss2-char {
    transform: none;
}
/* TrÆ°á»£t lÃªn láº§n lÆ°á»£t tá»« giá»¯a ra hai bÃªn.
   Chá»‰ trá»… RIÃŠNG transform (giÃ¡ trá»‹ thá»© 4, khá»›p thá»© tá»± khai bÃ¡o trong transition á»Ÿ trÃªn).
   Viáº¿t transition-delay gá»n má»™t giÃ¡ trá»‹ lÃ  trá»… luÃ´n cáº£ height/opacity/filter, lÃ m thao
   tÃ¡c Ä‘á»•i hiá»‡p khÃ¡ch khá»±ng láº¡i tá»›i 0.4s. */
.ss2-char:nth-child(4) {
    transition-delay: 0s, 0s, 0s, 0.1s;
}
.ss2-char:nth-child(3),
.ss2-char:nth-child(5) {
    transition-delay: 0s, 0s, 0s, 0.2s;
}
.ss2-char:nth-child(2),
.ss2-char:nth-child(6) {
    transition-delay: 0s, 0s, 0s, 0.3s;
}
.ss2-char:nth-child(1),
.ss2-char:nth-child(7) {
    transition-delay: 0s, 0s, 0s, 0.4s;
}

/* --- 2. Nhá»‹p thá»Ÿ khi Ä‘á»©ng yÃªn ---
   Äáº·t trÃªn <img> chá»© khÃ´ng pháº£i <li>: <li> Ä‘ang dÃ¹ng transform cho hiá»‡u á»©ng vÃ o mÃ n,
   hai transform trÃªn cÃ¹ng má»™t pháº§n tá»­ sáº½ ghi Ä‘Ã¨ nhau. á»ž 2 táº§ng thÃ¬ chÃºng cá»™ng dá»“n. */
/* 5 kiá»ƒu chuyá»ƒn Ä‘á»™ng khÃ¡c nhau. BiÃªn Ä‘á»™ Ä‘á»ƒ báº±ng % nÃªn co giÃ£n theo cá»¡ tá»«ng nhÃ¢n váº­t,
   con to nhÃ­ch nhiá»u hÆ¡n con nhá» â€” Ä‘Ãºng cáº£m giÃ¡c phá»‘i cáº£nh xa gáº§n. */
@keyframes ss2IdleBob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.2%);
    }
}
@keyframes ss2IdleSway {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(1.2%, -1.2%) rotate(1.1deg);
    }
}
@keyframes ss2IdleFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3.2%) rotate(-0.9deg);
    }
}
@keyframes ss2IdleDrift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-1.4%, -1.7%) rotate(-0.7deg);
    }
}
/* riÃªng con Ä‘ang Ä‘á»©ng giá»¯a: thÃªm phá»“ng nháº¹ cho ra dÃ¡ng nhÃ¢n váº­t chÃ­nh */
@keyframes ss2IdleHero {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2.8%) scale(1.014);
    }
}

.ss2.is-visible .ss2-char img {
    animation: ss2IdleBob 5.6s ease-in-out infinite;
}
/* Má»—i vá»‹ trÃ­ má»™t kiá»ƒu + má»™t chu ká»³ riÃªng. delay Ã¢m Ä‘á»ƒ vÃ o giá»¯a chá»«ng nhá»‹p ngay
   tá»« Ä‘áº§u, khÃ´ng pháº£i chá» háº¿t má»™t vÃ²ng má»›i lá»‡ch pha nhau. */
.ss2.is-visible .ss2-char:nth-child(1) img {
    animation-name: ss2IdleDrift;
    animation-duration: 6.9s;
    animation-delay: -0.4s;
}
.ss2.is-visible .ss2-char:nth-child(2) img {
    animation-name: ss2IdleSway;
    animation-duration: 6.1s;
    animation-delay: -2.3s;
}
.ss2.is-visible .ss2-char:nth-child(3) img {
    animation-name: ss2IdleBob;
    animation-duration: 5.4s;
    animation-delay: -3.7s;
}
.ss2.is-visible .ss2-char:nth-child(4) img {
    animation-name: ss2IdleFloat;
    animation-duration: 6.5s;
    animation-delay: -1.1s;
}
.ss2.is-visible .ss2-char:nth-child(5) img {
    animation-name: ss2IdleBob;
    animation-duration: 5.9s;
    animation-delay: -4.4s;
}
.ss2.is-visible .ss2-char:nth-child(6) img {
    animation-name: ss2IdleSway;
    animation-duration: 6.7s;
    animation-delay: -0.9s;
}
.ss2.is-visible .ss2-char:nth-child(7) img {
    animation-name: ss2IdleDrift;
    animation-duration: 7.3s;
    animation-delay: -3.1s;
}
/* Äáº·t SAU cÃ¡c rule nth-child (cÃ¹ng Ä‘á»™ Æ°u tiÃªn) Ä‘á»ƒ luÃ´n tháº¯ng -> kiá»ƒu "nhÃ¢n váº­t chÃ­nh"
   tá»± chuyá»ƒn sang con nÃ o Ä‘ang Ä‘Æ°á»£c Ä‘Æ°a vÃ o giá»¯a. */
.ss2.is-visible .ss2-char[data-pos="0"] img {
    animation-name: ss2IdleHero;
    animation-duration: 4.6s;
}

/* rÃª chuá»™t vÃ o con á»Ÿ hai bÃªn: sÃ¡ng lÃªn nhÆ° lá»i má»i báº¥m */
.ss2-char:hover {
    opacity: 1;
    filter: none;
}

/* --- 3. Quáº§ng sÃ¡ng dÆ°á»›i chÃ¢n nhÃ¢n váº­t Ä‘ang chá»n --- */
.ss2-char::after {
    position: absolute;
    bottom: -4%;
    left: 50%;
    z-index: -1; /* náº±m SAU nhÃ¢n váº­t, khÃ´ng thÃ¬ quáº§ng sÃ¡ng phá»§ lÃªn bÃ n chÃ¢n */
    width: 150%;
    height: 16%;
    content: "";
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 226, 160, 0.75),
        rgba(255, 190, 90, 0.25) 45%,
        transparent 72%
    );
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.45s ease;
}
.ss2-char {
    position: relative;
}
.ss2-char[data-pos="0"]::after {
    opacity: 1;
    animation: ss2Glow 2.8s ease-in-out infinite;
}
@keyframes ss2Glow {
    0%,
    100% {
        opacity: 0.55;
        transform: translateX(-50%) scale(0.94);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

/* --- 4. Äá»•i hiá»‡p khÃ¡ch: chá»¯ trong tháº» hiá»‡n láº¡i --- */
@keyframes ss2SwapIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.ss2-card.is-swap .ss2-name {
    animation: ss2SwapIn 0.42s ease both;
}
.ss2-card.is-swap .ss2-stat {
    animation: ss2SwapIn 0.42s ease both;
}
.ss2-card.is-swap .ss2-stat:nth-child(2) {
    animation-delay: 0.07s;
}
.ss2-card.is-swap .ss2-stat:nth-child(3) {
    animation-delay: 0.14s;
}

/* --- 5. MÅ©i tÃªn nháº¥p nháº¹ má»i báº¥m --- */
@keyframes ss2Nudge {
    0%,
    88%,
    100% {
        transform: translateX(0);
    }
    94% {
        transform: translateX(-4px);
    }
}
.ss2.is-visible .ss2-prev {
    animation: ss2Nudge 4.5s ease-in-out infinite;
}
.ss2-prev:hover,
.ss2-next:hover {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .ss2-title,
    .ss2-sub,
    .ss2-panel,
    .ss2-char {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ss2.is-visible .ss2-char img,
    .ss2.is-visible .ss2-char[data-pos="0"] img,
    .ss2 .ss2-char::after,
    .ss2 .ss2-prev,
    .ss2-card.is-swap .ss2-name,
    .ss2-card.is-swap .ss2-stat {
        animation: none;
    }
}

@media (max-width: 1200px) {
    /* áº¢nh ná»n dá»c cho mobile Ä‘Æ°á»£c gÃ¡n á»Ÿ ::before phÃ­a dÆ°á»›i (cáº§n mask Ä‘á»ƒ hoÃ  tan),
       khÃ´ng gÃ¡n trá»±c tiáº¿p lÃªn .ss2 ná»¯a. */
    /* SÃ¢n kháº¥u pháº£i Ä‘á»•i theo tá»‰ lá»‡ áº£nh má»›i, náº¿u khÃ´ng dÃ n nhÃ¢n váº­t lá»‡ch khá»i bá»¥c Ä‘Ã¡ */
    .ss2 {
        --ss2-blend: clamp(90px, 18vw, 180px);
        --stage-ratio: 853 / 1844;
        --ss1-h: calc(100vw * 1844 / 853);
        --ss1-cue-y: calc(var(--ss1-h) * 0.559 + 74px);
        --ss2-overlap-gap: 76px;
        --ss2-h: var(--ss1-h);
        --ss2-bg-w: 100vw;
        --ss2-bg-h: var(--ss2-h);
        height: var(--ss2-h);
        min-height: 0;
    }
    /* Giong desktop: anh nen + mask nam o lop ::before, khong dat tren .ss2,
       neu khong dai mo se keo nhat luon anh chu "Hiep Khach" o dau section. */
    .ss2::before {
        background:
            url("/assets/game/ui/bg-ss2-mb.webp") center / 100% 100%
                no-repeat,
            #101423;
    }
    .ss2::before,
    .ss2::after {
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, 0.35) calc(var(--ss2-blend) * 0.38),
            #000 var(--ss2-blend),
            #000 100%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, 0.35) calc(var(--ss2-blend) * 0.38),
            #000 var(--ss2-blend),
            #000 100%
        );
    }
    .ss2::after {
        display: block !important;
        z-index: 2;
        height: var(--ss2-blend);
        background:
            linear-gradient(
                180deg,
                rgba(248, 242, 228, 0.72) 0%,
                rgba(248, 242, 228, 0.32) 42%,
                rgba(248, 242, 228, 0) 100%
            );
    }
    .ss2-stage {
        width: var(--ss2-bg-w);
        height: var(--ss2-bg-h);
        min-width: 0;
        aspect-ratio: auto;
    }
    /* Máº·t bá»¥c Ä‘Ã¡ trong áº£nh dá»c náº±m á»Ÿ y 50%-60% (Ä‘o tá»« file), láº¥y má»‘c 57% */
    .ss2-line {
        /* Got van dam tren mat buc da (trai tu ~50% mep sau den ~60% mep truoc).
           De dan nhich len sat cum chu "Hiep Khach Hoi Tu" thi TANG CHIEU CAO
           (dau vuon len, got dung yen), khong keo ca dan len - keo len la ho bay
           khoi mat da. */
        top: 58%;
        width: 100%;
        /* 26% chu khong phai 44% nhu truoc: anh hiep khach VUONG nen be rong =
           chieu cao, de 44% thi rieng nguoi giua da rong gan het man hinh va 6
           nguoi con lai bi day han ra ngoai khung. */
        height: 26%;
    }
    /* Giu nguyen ca dan 7 nguoi nhu desktop - man hep van thay doan dung sau lung
       nguoi dang chon. Chum manh hon desktop (-1.4%) de ca doan nam gon tren mat
       buc da cua anh nen doc. */
    /* Ca doan phai vua dung be ngang man. Be rong moi nguoi = chieu cao cua no
       (anh vuong), cong lai = .ss2-line height * 4.68 (1 + 2*0.74 + 2*0.60 +
       2*0.50). Margin am an bot 2*m*100vw o moi khe, 6 khe -> chon m sao cho
       tong con ~95vw. */
    .ss2-char {
        margin: 0 -17%;
    }
    /* Do hut xa-gan doc hon desktop (84/75/68): nguoi giua da rat to nen 6 nguoi
       kia phai nho han lai moi con cho ma dan hang, khong thi ho chui het ra sau
       lung nguoi giua. */
    .ss2-char[data-pos="1"],
    .ss2-char[data-pos="-1"] {
        height: 68%;
    }
    .ss2-char[data-pos="2"],
    .ss2-char[data-pos="-2"] {
        height: 50%;
    }
    .ss2-char[data-pos="3"],
    .ss2-char[data-pos="-3"] {
        height: 38%;
    }
    .ss2-inner {
        min-height: var(--ss2-h);
        padding: clamp(22px, 5vw, 64px) 0 clamp(18px, 5vw, 54px);
    }
    .ss2-title-img {
        width: min(700px, 90vw);
    }
    .ss2-card {
        width: min(620px, 94%);
        background-image: url("/assets/game/ui/bg-info-ss2-mb.webp");
    }
    .ss2-name {
        top: 11%;
        height: 24%;
        font-size: clamp(14px, 3.2vw, 20px);
        letter-spacing: 0.01em;
        line-height: 1;
        white-space: nowrap;
    }
    .ss2-panel {
        position: absolute;
        /* Do duoc: duoi day chan dung con thua ~6% chieu cao section (51px o
           390, 81px o 560) vi section cao co dinh theo ti le anh nen doc.
           Ha panel xuong 4.5% de cum noi dung sat day hon. Moi rule .ss2-panel
           ben duoi cung phai +4.5% va .ss2-arrow bu nguoc dung tung ay. */
        top: 66.5%;
        right: 0;
        left: 0;
        margin-top: 0;
    }
    .ss2-stats {
        top: 42%;
        right: 9%;
        left: 9%;
        height: 36%;
        align-items: center;
        padding: 0;
    }
    .ss2-stat {
        flex-direction: column;
        gap: 3px;
        padding: 0 2px;
    }
    .ss2-stat-icon {
        width: clamp(18px, 5vw, 26px);
        height: clamp(18px, 5vw, 26px);
    }
    .ss2-stat dt {
        margin-top: 0;
        font-size: clamp(7px, 2vw, 9px);
        line-height: 1;
        letter-spacing: 0.7px;
    }
    .ss2-stat dd {
        margin: 1px 0 0;
        font-size: clamp(8px, 2.2vw, 10px);
        line-height: 1.05;
        letter-spacing: 0;
    }
    .ss2-stars {
        justify-content: center;
        gap: 1px;
    }
    .ss2-stars i {
        width: clamp(10px, 3vw, 14px);
        height: clamp(10px, 3vw, 14px);
    }
    .ss2-sub::before,
    .ss2-sub::after {
        width: 26px;
    }

    /* ---- Bo cuc doc cho mobile/iPad ----
       tranh nhan vat -> the thong tin -> nut "Xem chi tiet" -> dai chan dung
       -> cham trang. Panel doi tu hang ngang (mui ten | the | mui ten) sang cot,
       mui ten tach ra noi hai ben tranh. */
    .ss2-panel {
        flex-direction: column;
        gap: clamp(10px, 2.6vw, 18px);
    }
    /* .ss2-line neo top 60% + translateY(-100%), cao 44% -> nhan vat chiem
       16%..60% chieu cao section, giua o 38%. Panel dat o top 62% nen moc giua
       nguoi = -24% chieu cao section tinh tu dinh panel. Dung bien --ss2-h chu
       khong dung vw vi .vh-locked ghim chieu cao bang px do duoc. */
    .ss2-arrow {
        position: absolute;
        /* -0.24 la moc cu ung voi panel o 62%; panel da ha 4.5% nen tru them
           0.045 de mui ten van dung giua nguoi (38% chieu cao section). */
        top: calc(var(--ss2-h) * -0.285);
        width: clamp(34px, 9vw, 52px);
        transform: translateY(-50%);
    }
    .ss2-prev {
        left: clamp(8px, 3vw, 20px);
    }
    .ss2-next {
        right: clamp(8px, 3vw, 20px);
        transform: translateY(-50%) scaleX(-1);
    }
    .ss2-prev:hover {
        transform: translateY(-50%) scale(1.08);
    }
    .ss2-next:hover {
        transform: translateY(-50%) scaleX(-1) scale(1.08);
    }
    /* ss2Nudge lac mui ten bang transform -> se xoa mat translateY(-50%) va nut
       tut xuong nua than. O mobile bo hieu ung nay. */
    .ss2.is-visible .ss2-prev {
        animation: none;
    }

    .ss2-mnav {
        display: flex;
        width: min(620px, 94%);
        flex-direction: column;
        align-items: center;
        gap: clamp(8px, 2.2vw, 14px);
    }
    /* .ss2-cue neo absolute o bottom:16px, con .ss2-mnav lai keo day panel xuong
       tan day section -> hai cai chong nhau (do duoc: cham .ss2-tdots 784-792,
       nut cuon 787-827). Tu 1200px tro xuong da co dai chan dung + cham trang lam
       dieu huong roi, nut cuon chuot cung khong con nghia gi tren man cam tay. */
    .ss2-cue {
        display: none;
    }
    /* Deo chung khay ngoc do voi nut "Tham gia ngay" o ss4 va nut loc tien do */
    .ss2-detail {
        display: inline-flex;
        min-height: clamp(34px, 9.4vw, 46px);
        align-items: center;
        gap: 6px;
        padding: 0 clamp(12px, 3.2vw, 24px);
        color: #ffeec4;
        border: 0 solid transparent;
        border-right-width: clamp(14px, 3.8vw, 19px);
        border-left-width: clamp(14px, 3.8vw, 19px);
        border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill /
            0 clamp(14px, 3.8vw, 19px) / 0 stretch;
        font-family: "Noto Serif", "Times New Roman", serif;
        font-size: clamp(11px, 3.1vw, 15px);
        font-weight: 800;
        letter-spacing: 1px;
        text-decoration: none;
        text-transform: uppercase;
        text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
        transition: filter 0.22s ease, transform 0.22s ease;
    }
    .ss2-detail:active {
        filter: brightness(1.08);
        transform: translateY(-1px);
    }
    /* Dai chan dung: chi vua ~5 nguoi mot man nen cho truot ngang co diem hit.
       "safe center" de khi tran ra thi bam ve dau dai - center thuong se cat mat
       may nguoi dau va khong cach nao keo toi. Trinh duyet cu bo qua dong nay
       va roi ve flex-start o tren, van dung. */
    .ss2-thumbs {
        --thumb-gap: clamp(6px, 2.2vw, 14px);
        display: flex;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        justify-content: safe center;
        gap: var(--thumb-gap);
        margin: 0;
        padding: 3px 0;
        list-style: none;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ss2-thumbs::-webkit-scrollbar {
        display: none;
    }
    /* Khoa dung 5 chan dung moi trang: de flex:none theo px thi so nguoi vua man
       ra so le, trang nao cung bi cat doi mat mot vong tron o hai mep. */
    .ss2-thumbs > li {
        flex: 0 0 calc((100% - 4 * var(--thumb-gap)) / 5);
        scroll-snap-align: start;
    }
    .ss2-thumb {
        display: block;
        overflow: hidden;
        width: 100%;
        aspect-ratio: 1;
        padding: 0;
        border: 2px solid rgba(255, 214, 150, 0.5);
        border-radius: 50%;
        background: rgba(40, 14, 28, 0.55);
        box-shadow: 0 4px 10px rgba(30, 8, 24, 0.45);
        cursor: pointer;
        opacity: 0.72;
        transition: 0.25s ease;
    }
    /* Tranh hiep khach la anh VUONG toan than (1024x1024, nen trong suot) - khung
       chan dung cung vuong nen object-fit:cover khong cat duoc gi, vong tron ra
       nguyen ca nguoi be ti. Phai TU phong anh len roi day xuong:
       phong 2.1 lan, ghim diem (50%, 15%) cua tranh - dung cho dau/vai o moi hiep
       khach - vao tam vong tron:
         margin-left = 50% - 50%*2.1  = -55%
         margin-top  = 50% - 15%*2.1  = +18.5%
       (margin % deu quy chieu theo BE RONG, ma khung vuong nen hai truc bang nhau) */
    .ss2-thumb img {
        width: 210%;
        height: 210%;
        max-width: none; /* huy img{max-width:100%} toan cuc, neu khong anh bi ep lai 100% */
        margin: 18.5% 0 0 -55%;
        object-fit: contain;
    }
    .ss2-thumb.is-active {
        border-color: #ffe6ab;
        box-shadow:
            0 0 0 2px rgba(176, 28, 13, 0.55),
            0 6px 14px rgba(30, 8, 24, 0.5);
        opacity: 1;
        transform: scale(1.08);
    }

    .ss2-tdots {
        display: flex;
        justify-content: center;
        gap: 7px;
    }
    .ss2-tdots:empty {
        display: none;
    }
    .ss2-tdots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 1px solid rgba(255, 238, 190, 0.8);
        border-radius: 50%;
        background: rgba(82, 20, 14, 0.45);
        cursor: pointer;
        transition: 0.25s ease;
    }
    .ss2-tdots button.is-active {
        border-color: #ffe6ab;
        background: #ffe6ab;
        transform: scale(1.25);
    }
}

/* Äiá»‡n thoáº¡i háº¹p: chá»‰ hiá»‡n Ä‘Ãºng con Ä‘ang chá»n, 2 con ká» cÅ©ng khÃ´ng cÃ²n chá»— */
@media (min-width: 768px) and (max-width: 1200px) {
    .ss2 {
        --ss2-h: var(--ss1-h);
        --ss2-bg-w: 100vw;
        --ss2-bg-h: var(--ss2-h);
    }
    .ss2-inner {
        min-height: var(--ss2-h);
        padding-top: clamp(24px, 3vw, 42px);
        padding-bottom: clamp(22px, 4vw, 52px);
    }
    .ss2-title-img {
        width: min(760px, 86vw);
    }
    .ss2-line {
        top: 58%;
        height: 34%;
    }
    .ss2-panel {
        /* +4.5% cung nhip voi rule goc o khoi max-width:1200px */
        top: 65.5%;
    }
    .ss2-stats {
        top: 43%;
        height: 35%;
        right: 10%;
        left: 10%;
    }
}

@media (max-width: 560px) {
    /* Dien thoai hep: giu ca dan nhung chum sat hon nua va ha thap 2 canh ngoai
       cung, neu khong ho lo ra ngoai mep buc da trong anh nen doc. */
    .ss2-char {
        margin: 0 -16%;
    }
    .ss2-char[data-pos="1"],
    .ss2-char[data-pos="-1"] {
        height: 60%;
    }
    .ss2-char[data-pos="2"],
    .ss2-char[data-pos="-2"] {
        height: 44%;
    }
    .ss2-char[data-pos="3"],
    .ss2-char[data-pos="-3"] {
        height: 32%;
    }
    .ss2-line {
        height: 38%;
    }
    .ss2-panel {
        /* +4.5% cung nhip voi rule goc o khoi max-width:1200px */
        top: 67.5%;
    }
    .ss2-name {
        top: 10%;
        height: 24%;
        right: 10%;
        left: 10%;
        font-size: clamp(14px, 4.1vw, 18px);
    }
    .ss2-stats {
        top: 43%;
        right: 10%;
        left: 10%;
        height: 35%;
    }
    .ss2-stat {
        gap: 2px;
    }
    .ss2-stat-icon {
        width: 22px;
        height: 22px;
    }
    .ss2-stat dt {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    .ss2-stat dd {
        font-size: 9px;
    }
    .ss2-stars i {
        width: 12px;
        height: 12px;
    }
}

/* Mobile/tablet: banner hero cao gáº¥p 2.16 láº§n bá» rá»™ng, mÃ  cá»¥m nÃºt chá»‰ tá»›i ~62% vÃ 
   nÃºt cuá»™n á»Ÿ 70% -> gáº§n 30% cuá»‘i lÃ  sÆ°Æ¡ng trá»‘ng, táº¡o khoáº£ng há»Ÿ ráº¥t lá»›n trÆ°á»›c ss2.
   KÃ©o ss2 trÃ¹m lÃªn pháº§n trá»‘ng Ä‘Ã³. DÃ¹ng margin Ã¢m thay vÃ¬ cáº¯t chiá»u cao banner:
   cáº¯t banner sáº½ lÃ m .hero tháº¥p Ä‘i, kÃ©o theo cá»¥m nÃºt (top 50%) vÃ  nÃºt cuá»™n (top 70%)
   lá»‡ch háº¿t khá»i bá»¥c Ä‘Ã¡ vÃ  chÃ¢n nhÃ¢n váº­t, pháº£i tÃ­nh láº¡i toÃ n bá»™. */
@media (max-width: 1200px) {
    /* VÃ¹ng trá»‘ng = tá»« Ä‘Ã¡y nÃºt cuá»™n tá»›i háº¿t banner.
       Banner cao 2.162W, nÃºt cuá»™n neo á»Ÿ 70% (tá»©c 1.513W) vÃ  cao ~85px cá»‘ Ä‘á»‹nh
       -> pháº§n trá»‘ng â‰ˆ 0.649W âˆ’ 85px. KÃ©o Ä‘Ãºng lÆ°á»£ng Ä‘Ã³, chá»«a láº¡i 100px cho nÃºt cuá»™n thá»Ÿ.
       Viáº¿t báº±ng calc vÃ¬ Ä‘Ã¢y lÃ  há»—n há»£p: pháº§n theo bá» rá»™ng (%) trá»« pháº§n cá»‘ Ä‘á»‹nh (px).
       Äá»ƒ -36% cá»‘ Ä‘á»‹nh thÃ¬ mÃ n cÃ ng rá»™ng khoáº£ng trá»‘ng cÃ ng dÆ° ra. */
    .ss2 {
        /* TÃ­nh láº¡i theo vá»‹ trÃ­ má»›i cá»§a nÃºt cuá»™n (55.9% + 74px, cao ~85px):
           pháº§n trá»‘ng cÃ²n láº¡i â‰ˆ 0.953W âˆ’ 179px, kÃ©o Ä‘Ãºng lÆ°á»£ng Ä‘Ã³. */
        margin-top: calc(var(--ss1-cue-y) + var(--ss2-overlap-gap) - var(--ss1-h));
    }
}

/* ============================================================
   Ghim má»‘c chiá»u cao khung cho ss2 (mobile & tablet)
   ============================================================
   site.js Ä‘o innerHeight Má»˜T Láº¦N lÃºc load, gÃ¡n vÃ o --vh vÃ  thÃªm class .vh-locked
   lÃªn <html>. Lá»›p nÃ y lÃ  báº£n ghim cá»©ng cho trÃ¬nh duyá»‡t chÆ°a há»— trá»£ svh (hoáº·c cÃ i
   Ä‘áº·t svh sai) - trÃ¬nh duyá»‡t má»›i thÃ¬ 100svh á»Ÿ rule gá»‘c Ä‘Ã£ Ä‘á»§.

   Äo Ä‘Æ°á»£c: khung cao thÃªm 100px thÃ¬ áº£nh ná»n ss2 trÆ°á»£t dá»c 50px vÃ  dÃ n nhÃ¢n váº­t
   trÆ°á»£t theo Ä‘Ãºng 50px, vÃ¬ .ss2 cao theo khung cÃ²n .ss2-stage neo top:50%.

   Chá»‰ Ã¡p á»Ÿ <=1200px. TrÃªn desktop, kÃ©o cá»­a sá»• theo chiá»u dá»c lÃ  chuyá»‡n bÃ¬nh thÆ°á»ng
   vÃ  layout PHáº¢I cháº¡y theo, nÃªn desktop cá»© dÃ¹ng svh/vh gá»‘c.
   KhÃ´ng ghim .hero: á»Ÿ <=1200px nÃ³ Ä‘Ã£ cá»‘ tÃ¬nh min-height:0 vÃ  cao theo bá» rá»™ng
   (aspect-ratio 853/1844), tá»©c vá»‘n Ä‘Ã£ miá»…n nhiá»…m - ghim vÃ o lÃ  phÃ¡. */
@media (max-width: 1200px) {
    .vh-locked .ss2 {
        --ss2-h: var(--ss1-h);
        --ss2-bg-w: 100vw;
        --ss2-bg-h: var(--ss2-h);
        height: var(--ss2-h);
        min-height: 0;
    }
    .vh-locked .ss2-inner {
        min-height: var(--ss2-h);
    }
    .vh-locked .ss2-stage {
        width: var(--ss2-bg-w);
        height: var(--ss2-bg-h);
        min-width: 0;
        aspect-ratio: auto;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .vh-locked .ss2 {
        --ss2-h: var(--ss1-h);
        --ss2-bg-w: 100vw;
        --ss2-bg-h: var(--ss2-h);
    }
}

/* ============================================================
   SS3 â€” "Gameplay / Tráº£i nghiá»‡m chiáº¿n Ä‘áº¥u"
   áº¢nh ná»n chá»‰ cÃ³ khung cáº£nh, toÃ n bá»™ khung viá»n/báº£ng/tháº» dá»±ng báº±ng CSS.
   ============================================================ */
.ss3 {
    /* Do rong vung hoa tan giua ss2 va ss3. Dung 1 bien cho margin am va
       padding buf luon khop nhau. */
    --seam: clamp(170px, 23vh, 320px);
    position: relative;
    /* KHONG keo section len bang margin am: lam vay thi ca khoi ss3 (ke ca
       padding-top cua .ss3-inner) de len vung nut prev/next cua ss2 va hung het
       click. Chi cho rieng LOP NEN troi len o ::before, lop do pointer-events:none. */
    overflow: visible;
    /* anh nen chuyen xuong ::before de mask duoc; day khong de mau lot,
       vi phan tren phai trong suot cho canh ss2 hien qua */
    background: none;
}
.ss3::before,
.ss3::after {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1;
    height: 110px;
    content: "";
    pointer-events: none;
}
/* Lop anh nen ss3. Mask lam chinh ANH mo dan tu trong suot -> dac, nen canh ss2
   hien qua va hai khung canh hoa vao nhau. Cach cu (dai mau dac) luon de lai
   mot vet nhat nam ngang, dung thu báº¡n vua thay. */
.ss3::before {
    /* top am: lop nen troi len de lai day ss2 dung bang --seam, con hop cua
       section thi khong dich -> khong chan click cua ss2 */
    top: calc(var(--seam) * -1);
    bottom: 0;
    z-index: 0;
    height: auto;
    background: url("/assets/game/ui/bg-ss3.webp") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--seam));
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--seam));
}
.ss3::after {
    bottom: 0;
    background: transparent;
}
.ss3-inner {
    position: relative;
    /* rá»™ng hÆ¡n .container máº·c Ä‘á»‹nh (1160px): mÃ n 1920 mÃ  bÃ³ 1160 thÃ¬ cáº£ cá»¥m bÃ© tÃ­ */
    width: min(1720px, calc(100% - 40px));
    z-index: 2;
    padding: 14px 0 54px;
    text-align: center;
}

/* --- tiÃªu Ä‘á»: 1 áº£nh Ä‘Ã£ gá»™p sáºµn GAMEPLAY + tÃªn + dÃ²ng phá»¥ --- */
.ss3-title {
    width: min(1080px, 76%);
    height: auto;
    /* txt-ss3.webp chá»«a sáºµn khoáº£ng trá»‘ng á»Ÿ cáº£ hai Ä‘áº§u: 15.6% chiá»u cao phÃ­a trÃªn
       (bÃªn trÃªn chá»¯ GAMEPLAY) vÃ  21.7% phÃ­a dÆ°á»›i (dÆ°á»›i dÃ²ng "TUYá»†T Äá»ˆNH - KHÃ”NG
       GIá»šI Háº N"), quy ra ~3.2% vÃ  ~5.4% bá» ngang khung. KÃ©o Ã¢m cáº£ hai Ä‘á»ƒ section
       lÃªn sÃ¡t mÅ©i tÃªn cuá»™n phÃ­a trÃªn vÃ  cá»¥m 3 cá»™t lÃªn sÃ¡t chá»¯, má»—i bÃªn chá»«a láº¡i
       chÆ°a tá»›i 1% lÃ m khe thá»Ÿ. DÃ¹ng % chá»© khÃ´ng px Ä‘á»ƒ má»i khá»• mÃ n Ä‘á»u khá»›p. */
    margin: -2.6% auto -4.4%;
    filter: drop-shadow(0 8px 22px rgba(96, 24, 12, 0.28));
}

/* --- bá»‘ cá»¥c 3 cá»™t: báº£ng trÃ¡i | khung phim | tháº» cuá»™n pháº£i --- */
.ss3-grid {
    display: grid;
    align-items: center;
    gap: clamp(14px, 1.8vw, 34px);
    width: 100%;
    margin: 0 auto;
    grid-template-columns: clamp(178px, 16vw, 292px) minmax(0, 1fr) clamp(196px, 18vw, 336px);
}
.ss3-stage {
    position: relative;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    /* biáº¿n dÃ¹ng chung vá»›i .ss3-caption: bÄƒng chá»¯ pháº£i tá»¥t Ä‘Ãºng báº±ng khoáº£ng Ä‘á»‡m nÃ y
       thÃ¬ mÃ©p dÆ°á»›i cá»§a nÃ³ má»›i trÃ¹ng mÃ©p dÆ°á»›i khung phim */
    --ss3-stage-pad: clamp(24px, 3vw, 38px);
    padding-bottom: var(--ss3-stage-pad);
}

/* --- báº£ng trÃ¡i: má»—i má»¥c lÃ  1 khung PNG Ä‘Ã£ gá»™p sáºµn viÃªn hÃ¬nh thoi + icon --- */
.ss3-features {
    display: grid;
    gap: clamp(6px, 0.7vw, 14px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.ss3-features li {
    /* khung 1160x310: chá»«a 31% bÃªn trÃ¡i cho viÃªn hÃ¬nh thoi, 9% bÃªn pháº£i cho hoa vÄƒn */
    display: flex;
    align-items: center;
    aspect-ratio: 1160 / 310;
    padding: 0 9% 0 31%;
    background: center / 100% 100% no-repeat; /* áº£nh khung set inline theo tá»«ng má»¥c */
    text-align: left;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.ss3-features li:hover {
    transform: translateX(4px);
    filter: brightness(1.04) drop-shadow(0 6px 14px rgba(120, 40, 16, 0.32));
}
.ss3-features strong,
.ss3-scroll strong {
    display: block;
    color: #8a1108;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.95vw, 16px);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.ss3-features small,
.ss3-scroll small {
    display: block;
    color: #6b4a2c;
    font-size: clamp(9.5px, 0.72vw, 12.5px);
    line-height: 1.4;
    /* cÃ¹ng há» Noto Serif vá»›i tÃªn má»¥c cho Ä‘á»“ng bá»™; bá»™ font self-host chá»‰ cÃ³ 600/700/800
       nÃªn dÃ²ng phá»¥ dÃ¹ng Ä‘Ãºng 600 (nháº¹ nháº¥t) thay vÃ¬ Ä‘á»ƒ browser tá»± chá»n */
    font-family: "Noto Serif", "Times New Roman", serif;
    font-weight: 600;
}
/* ic-*.webp Ä‘Ã£ lÃ  badge hÃ¬nh thoi cÃ³ sáºµn khung vÃ ng, nÃªn chá»‰ set cá»¡ chá»© khÃ´ng bá»c
   thÃªm viÃªn hÃ¬nh thoi CSS ná»¯a (trÆ°á»›c Ä‘Ã³ lÃ  2 lá»›p khung lá»“ng nhau, láº¡i lá»‡ch vÃ¬ lá»›p
   ngoÃ i dÃ¹ng rotate(45deg) lÃ m hÃ¬nh thoi trÃ n ~0.21w ra má»—i bÃªn há»™p). */
.ss3-ico {
    flex: none;
    width: clamp(32px, 2.6vw, 46px);
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(84, 10, 4, 0.3));
}

/* --- khung phim giá»¯a --- */
.ss3-screen {
    --ss3-frame-top: 8.8%;
    --ss3-frame-right: 3.4%;
    --ss3-frame-bottom: 11.5%;
    --ss3-frame-left: 3.4%;
    position: relative;
    overflow: visible;
    aspect-ratio: 1954 / 805;
    background: none;
    filter: drop-shadow(0 20px 42px rgba(48, 16, 8, 0.38));
}
.ss3-screen::before,
.ss3-screen::after {
    position: absolute;
    content: "";
    pointer-events: none;
}
.ss3-screen::before {
    inset: var(--ss3-frame-top) var(--ss3-frame-right) var(--ss3-frame-bottom) var(--ss3-frame-left);
    z-index: 0;
    background: #0d0b16;
}
.ss3-screen::after {
    inset: 0;
    z-index: 2;
    background: url("/assets/game/ui/fm-ss3.webp") center / 100% 100% no-repeat;
}
.ss3-slide {
    position: absolute;
    inset: var(--ss3-frame-top) var(--ss3-frame-right) var(--ss3-frame-bottom) var(--ss3-frame-left);
    z-index: 1;
    overflow: hidden;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.ss3-slide.active {
    opacity: 1;
}
.ss3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}
/* nÃºt play: vÃ²ng trÃ²n + tam giÃ¡c váº½ báº±ng border */
.ss3-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: block;
    width: clamp(66px, 7.2vw, 150px);
    aspect-ratio: 1278 / 1230;
    background: url("/assets/game/ui/bt-ac-ss3.webp") center / contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(84, 10, 4, 0.45));
    transform: translate(-50%, -50%);
    transition: 0.25s ease;
}
.ss3-play:hover {
    filter: drop-shadow(0 10px 20px rgba(84, 10, 4, 0.58)) brightness(1.08);
    transform: translate(-50%, -50%) scale(1.06);
}
.ss3-play.is-idle {
    cursor: default;
}
/* .ss3-play dat display:block nen thuoc tinh hidden cua HTML bi de len -> phai
   tat tuong minh, khong thi muc chua gan video van hien nut play */
.ss3-play[hidden] {
    display: none;
}
.ss3-caption {
    position: absolute;
    /* tá»¥t xuá»‘ng Ä‘Ãºng báº±ng padding cá»§a .ss3-stage: mÃ©p dÆ°á»›i bÄƒng chá»¯ trÃ¹ng mÃ©p dÆ°á»›i
       khung phim, dáº£i Ä‘á» khi Ä‘Ã³ váº¯t ngang Ä‘Ãºng viá»n vÃ ng dÆ°á»›i cÃ¹ng */
    bottom: var(--ss3-stage-pad);
    left: 50%;
    z-index: 5;
    display: grid;
    /* % cá»§a padding Äƒn theo bá» ngang KHá»I CHá»¨A chá»© khÃ´ng pháº£i chÃ­nh bÄƒng chá»¯, nÃªn
       pháº£i nhÃ¢n láº¡i tá»« Ä‘Ãºng biá»ƒu thá»©c width - Ä‘á»ƒ "0 15%" thÃ¬ lá» bá»‹ tÃ­nh theo cáº£
       .ss3-stage, Äƒn máº¥t chá»— vÃ  chá»¯ dÃ i bá»‹ xuá»‘ng dÃ²ng */
    --ribbon-w: min(1000px, 84%);
    width: var(--ribbon-w);
    min-height: clamp(56px, 6vw, 112px);
    margin: 0;
    /* dáº£i Ä‘á» cá»§a bt-fm-ss3 náº±m trong 12.5%-87.5% bá» ngang áº¢NH -> 15% cá»§a chÃ­nh bÄƒng */
    padding: 0 calc(var(--ribbon-w) * 0.15);
    place-items: center;
    color: #fff0bd;
    background: url("/assets/game/ui/bt-fm-ss3.webp") center / 100% 100% no-repeat;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(13px, 1.2vw, 24px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.2;
    text-shadow:
        0 2px 2px rgba(64, 6, 2, 0.9),
        0 0 8px rgba(255, 208, 92, 0.45);
    transform: translateX(-50%);
}
.ss3-dots {
    position: absolute;
    right: 0;
    bottom: clamp(2px, 0.6vw, 8px);
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 0;
}
.ss3-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(138, 17, 8, 0.5);
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.7);
    cursor: pointer;
    transition: 0.25s ease;
}
.ss3-dots button.active {
    border-color: #8a1108;
    background: #a5170c;
    transform: scale(1.15);
}

/* --- tháº» cuá»™n pháº£i --- */
.ss3-scroll {
    /* khung cuá»™n 1036x1518: trá»¥c cuá»™n trÃªn/dÆ°á»›i ~7%, mÃ©p giáº¥y hai bÃªn ~13% */
    display: flex;
    flex-direction: column;
    padding: 30px 34px 34px;
    background: url("/assets/game/ui/bg-noi-bat.webp") center / 100% 100% no-repeat;
    text-align: left;
}
.ss3-scroll h3 {
    position: relative;
    margin: 0 0 clamp(12px, 1.2vw, 20px);
    padding-bottom: clamp(10px, 1vw, 15px);
    color: #8a1108;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(12px, 1.05vw, 19px);
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}
/* gáº¡ch chÃ¢n má» dáº§n hai Ä‘áº§u thay cho border 1px káº» tháº³ng bÄƒng qua cáº£ mÃ©p giáº¥y */
.ss3-scroll h3::after {
    position: absolute;
    right: 6%;
    bottom: 0;
    left: 6%;
    height: 1px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(178, 128, 58, 0.75) 22%,
        rgba(178, 128, 58, 0.75) 78%,
        transparent
    );
}
/* trong khung cuá»™n chá»‰ cÃ²n ~220px cho chá»¯ nÃªn háº¡ cá»¡ Ä‘á»ƒ tÃªn má»¥c khÃ´ng xuá»‘ng dÃ²ng */
.ss3-scroll strong {
    font-size: clamp(10.5px, 0.85vw, 14.5px);
    letter-spacing: 0.2px;
}
.ss3-scroll ul {
    display: grid;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ss3-scroll li {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.9vw, 15px);
}

/* Tá»« 1101px giá»¯ Ä‘Ãºng tá»‰ lá»‡ áº£nh cuá»™n (1036x1518) rá»“i canh giá»¯a ná»™i dung: khung ná»n
   to háº³n ra mÃ  trá»¥c cuá»™n vá»›i tua rua khÃ´ng bá»‹ bÃ³p dá»c. DÆ°á»›i ngÆ°á»¡ng Ä‘Ã³ Ä‘á»ƒ chiá»u cao
   cháº¡y theo ná»™i dung, khÃ´ng thÃ¬ cá»™t dá»c trÃªn mobile thá»«a cáº£ trÄƒm px trá»‘ng. */
@media (min-width: 1101px) {
    .ss3-scroll {
        aspect-ratio: 1036 / 1518;
        /* % Äƒn theo bá» ngang Ã´ grid, mÃ  khung rá»™ng Ä‘Ãºng báº±ng Ã´, nÃªn luÃ´n khá»›p mÃ©p giáº¥y */
        padding: 12% 13% 13%;
        justify-content: center;
    }
    .ss3-scroll ul {
        gap: clamp(24px, 2.1vw, 46px);
    }
}

/* --- 4 tháº» dÆ°á»›i: dá»±ng láº¡i Ä‘Ãºng bá»™ khung phim á»Ÿ trÃªn (fm-ss3 + bÄƒng bt-fm-ss3)
       Ä‘á»ƒ hai khá»‘i cÃ¹ng má»™t ngÃ´n ngá»¯ hÃ¬nh áº£nh --- */
/* Desktop: khung boc coi nhu khong co, 2 mui ten an han -> .ss3-cards van la
   grid item truc tiep cua .ss3-inner nhu truoc. */
.ss3-rail {
    display: contents;
}
.ss3-rail-arrow {
    display: none;
}
.ss3-cards {
    display: grid;
    gap: clamp(10px, 1.4vw, 22px);
    width: 100%;
    margin: clamp(22px, 2.6vw, 40px) 0 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}
.ss3-cards li {
    transition: transform 0.28s ease;
}
.ss3-cards li:hover,
.ss3-cards li.active {
    transform: translateY(-5px);
}
/* tháº» lÃ  <button> chá»n slide -> gá»¡ háº¿t style máº·c Ä‘á»‹nh cá»§a nÃºt */
.ss3-cards button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
    border: 0;
    background: none;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.ss3-cards button:focus-visible {
    outline: 2px solid rgba(255, 216, 140, 0.95);
    outline-offset: 4px;
}
.ss3-card-screen {
    display: block;
    /* y há»‡t .ss3-screen: giá»¯ nguyÃªn tá»‰ lá»‡ 1954/805 nÃªn hoa vÄƒn 4 gÃ³c khÃ´ng bá»‹ kÃ©o mÃ©o */
    --ss3-frame-top: 8.8%;
    --ss3-frame-right: 3.4%;
    --ss3-frame-bottom: 11.5%;
    --ss3-frame-left: 3.4%;
    position: relative;
    aspect-ratio: 1954 / 805;
    filter: drop-shadow(0 12px 26px rgba(48, 16, 8, 0.34));
    transition: filter 0.3s ease;
}
.ss3-card-screen::before,
.ss3-card-screen::after {
    position: absolute;
    content: "";
    pointer-events: none;
}
.ss3-card-screen::before {
    inset: var(--ss3-frame-top) var(--ss3-frame-right) var(--ss3-frame-bottom) var(--ss3-frame-left);
    z-index: 0;
    background: #0d0b16;
}
.ss3-card-screen::after {
    inset: 0;
    z-index: 2;
    background: url("/assets/game/ui/fm-ss3.webp") center / 100% 100% no-repeat;
}
.ss3-card-shot {
    position: absolute;
    inset: var(--ss3-frame-top) var(--ss3-frame-right) var(--ss3-frame-bottom) var(--ss3-frame-left);
    z-index: 1;
    overflow: hidden;
}
.ss3-card-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.ss3-cards li:hover .ss3-card-shot img {
    transform: scale(1.06);
}
/* tháº» Ä‘ang Ä‘Æ°á»£c chiáº¿u á»Ÿ khung trÃªn thÃ¬ sÃ¡ng háº³n, máº¥y tháº» cÃ²n láº¡i chÃ¬m bá»›t Ä‘á»ƒ
   ngÆ°á»i xem biáº¿t ngay khung Ä‘ang cháº¡y cÃ¡i nÃ o */
.ss3-cards li:not(.active) .ss3-card-screen {
    filter: drop-shadow(0 12px 26px rgba(48, 16, 8, 0.34)) saturate(0.7) brightness(0.8);
}
.ss3-cards li:hover .ss3-card-screen,
.ss3-cards li.active .ss3-card-screen {
    filter:
        drop-shadow(0 16px 30px rgba(48, 16, 8, 0.42))
        drop-shadow(0 0 14px rgba(255, 196, 96, 0.55));
}
/* bÄƒng Ä‘á» váº¯t qua viá»n dÆ°á»›i, giá»‘ng há»‡t .ss3-caption cá»§a khung lá»›n */
.ss3-card-cap {
    position: absolute;
    bottom: 2%;
    left: 50%;
    z-index: 3;
    display: grid;
    --ribbon-w: min(420px, 88%);
    width: var(--ribbon-w);
    min-height: clamp(28px, 2.8vw, 47px);
    margin: 0;
    padding: 0 calc(var(--ribbon-w) * 0.15);
    place-items: center;
    color: #fff0bd;
    background: url("/assets/game/ui/bt-fm-ss3.webp") center / 100% 100% no-repeat;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.85vw, 14px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.2;
    text-shadow:
        0 2px 2px rgba(64, 6, 2, 0.9),
        0 0 8px rgba(255, 208, 92, 0.45);
    text-transform: uppercase;
    transform: translateX(-50%);
}

.ss3-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 16px);
    margin: clamp(18px, 2vw, 32px) 0 0;
    color: #8a2412;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.95vw, 15px);
    font-weight: 800;
    letter-spacing: clamp(2px, 0.4vw, 6px);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}
.ss3-foot::before,
.ss3-foot::after {
    flex: 0 1 clamp(50px, 11vw, 180px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(158, 35, 22, 0.8));
}
.ss3-foot::after {
    background: linear-gradient(270deg, transparent, rgba(158, 35, 22, 0.8));
}
.ss3-foot i {
    color: #c0873c;
    font-style: normal;
    font-size: 0.8em;
    letter-spacing: 0;
}

/* ============ SS3 â€” hiá»‡u á»©ng ============
   CÃ¹ng cÃ¡ch lÃ m vá»›i SS2: JS gáº¯n .is-visible lÃªn section khi cuá»™n tá»›i, CSS lo pháº§n
   cÃ²n láº¡i. Nhá»¯ng pháº§n tá»­ Ä‘Ã£ cÃ³ transform cho hover (tháº» trÃ¡i, tháº» dÆ°á»›i) thÃ¬ hiá»‡u
   á»©ng vÃ o mÃ n dÃ¹ng property `translate` riÃªng, khÃ´ng Ä‘á»¥ng vÃ o `transform`, náº¿u
   khÃ´ng hai bÃªn ghi Ä‘Ã¨ nhau vÃ  hover sáº½ giáº­t. */

/* --- 1. VÃ o mÃ n khi cuá»™n tá»›i --- */
.ss3-title,
.ss3-stage,
.ss3-scroll,
.ss3-foot {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 0.7, 0.3, 1),
        clip-path 0.9s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss3-title {
    transform: translateY(-14px) scale(0.97);
}
.ss3-stage {
    transform: scale(0.97);
}
/* khung cuá»™n thÃ¬ má»Ÿ dáº§n tá»« trÃªn xuá»‘ng nhÆ° Ä‘ang tráº£i giáº¥y ra */
.ss3-scroll {
    clip-path: inset(0 0 100% 0);
}
.ss3-foot {
    transform: translateY(12px);
}
.ss3-features li,
.ss3-cards li {
    opacity: 0;
    transition:
        opacity 0.7s ease,
        translate 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss3-features li {
    translate: -26px 0;
}
.ss3-cards li {
    translate: 0 24px;
}

.ss3.is-visible .ss3-title,
.ss3.is-visible .ss3-stage,
.ss3.is-visible .ss3-scroll,
.ss3.is-visible .ss3-foot {
    opacity: 1;
    transform: none;
}
.ss3.is-visible .ss3-title {
    transition-delay: 0.05s;
}
.ss3.is-visible .ss3-stage {
    transition-delay: 0.12s;
}
.ss3.is-visible .ss3-scroll {
    clip-path: inset(0 0 0 0);
    transition-delay: 0.3s;
}
.ss3.is-visible .ss3-foot {
    transition-delay: 0.8s;
}
.ss3.is-visible .ss3-features li,
.ss3.is-visible .ss3-cards li {
    opacity: 1;
    translate: none;
}
.ss3.is-visible .ss3-features li:nth-child(1) { transition-delay: 0.22s; }
.ss3.is-visible .ss3-features li:nth-child(2) { transition-delay: 0.31s; }
.ss3.is-visible .ss3-features li:nth-child(3) { transition-delay: 0.4s; }
.ss3.is-visible .ss3-features li:nth-child(4) { transition-delay: 0.49s; }
.ss3.is-visible .ss3-features li:nth-child(n + 5) { transition-delay: 0.58s; }
.ss3.is-visible .ss3-cards li:nth-child(1) { transition-delay: 0.45s; }
.ss3.is-visible .ss3-cards li:nth-child(2) { transition-delay: 0.53s; }
.ss3.is-visible .ss3-cards li:nth-child(3) { transition-delay: 0.61s; }
.ss3.is-visible .ss3-cards li:nth-child(4) { transition-delay: 0.69s; }
.ss3.is-visible .ss3-cards li:nth-child(n + 5) { transition-delay: 0.77s; }

/* --- 2. áº¢nh trong khung phim trÃ´i cháº­m (Ken Burns) má»—i láº§n Ä‘á»•i slide --- */
/* .ss3-slide img Ä‘á»©ng sáºµn á»Ÿ scale(1.08) Ä‘á»ƒ khÃ´ng há»Ÿ mÃ©p; chá»‰ dao Ä‘á»™ng quanh má»©c Ä‘Ã³ */
@keyframes ss3Ken {
    from {
        transform: scale(1.13);
    }
    to {
        transform: scale(1.04);
    }
}
.ss3-slide.active img {
    animation: ss3Ken 7.5s ease-out both;
}

/* --- 3. BÄƒng chá»¯ Ä‘á»•i theo slide --- */
@keyframes ss3CaptionIn {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}
.ss3-caption.is-swap {
    animation: ss3CaptionIn 0.45s ease both;
}

/* --- 4. NÃºt play: vÃ²ng sÃ¡ng lan toáº£ gá»i báº¥m ---
   Chá»‰ animate cÃ¡i vÃ²ng á»Ÿ ::after, KHÃ”NG animate filter/transform cá»§a chÃ­nh nÃºt:
   animation luÃ´n tháº¯ng khai bÃ¡o thÆ°á»ng nÃªn Ä‘á»¥ng vÃ o lÃ  máº¥t luÃ´n hiá»‡u á»©ng hover
   (scale 1.06 + brightness) vá»‘n cÃ³. */
@keyframes ss3PlayRing {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    75%,
    100% {
        opacity: 0;
        transform: scale(1.85);
    }
}
.ss3-play::after {
    position: absolute;
    /* báº¯t Ä‘áº§u tá»« bÃªn trong máº·t Ä‘Ä©a Ä‘á» rá»“i loang ra ngoÃ i vÃ nh vÃ ng, Ä‘á»ƒ khÃ´ng bá»‹
       láº«n vÃ o chÃ­nh vÃ nh cá»§a áº£nh nÃºt */
    inset: 12%;
    content: "";
    border: 2px solid rgba(255, 214, 150, 0.9);
    border-radius: 50%;
    pointer-events: none;
}
.ss3.is-visible .ss3-play::after {
    animation: ss3PlayRing 2.8s ease-out infinite;
}
.ss3-play:hover::after {
    animation-play-state: paused;
}

/* --- 5. Tháº» dÆ°á»›i: áº£nh nhÃ­ch nháº¹ khi tháº» Ä‘ang Ä‘Æ°á»£c chiáº¿u --- */
@keyframes ss3CardActive {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}
.ss3-cards li.active .ss3-card-shot img {
    animation: ss3CardActive 6s ease-out both;
}

/* --- 6. Popup video --- */
@keyframes videoModalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes videoBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.video-modal.open .video-modal-dialog {
    animation: videoModalIn 0.34s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.video-modal.open .video-modal-backdrop {
    animation: videoBackdropIn 0.28s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .ss3-title,
    .ss3-stage,
    .ss3-scroll,
    .ss3-foot,
    .ss3-features li,
    .ss3-cards li {
        opacity: 1;
        clip-path: none;
        transform: none;
        translate: none;
        transition: none;
    }
    .ss3-slide.active img,
    .ss3-caption.is-swap,
    .ss3.is-visible .ss3-play::after,
    .ss3-cards li.active .ss3-card-shot img,
    .video-modal.open .video-modal-dialog,
    .video-modal.open .video-modal-backdrop {
        animation: none;
    }
    .ss3-play::after {
        display: none;
    }
}

/* --- responsive --- */
/* Mobile + iPad: bo hai cot phu (4 o dac diem ben trai va cuon "Diem noi bat"
   ben phai). Xuong khoi 3 cot chung phai xep DOC het xuong duoi khung phim, keo
   section dai ra gap doi ma noi dung thi trung y nhau - 4 muc gameplay da co du
   anh + ten o dai the ngang roi. Desktop van giu nguyen ca ba cot. */
@media (max-width: 1200px) {
    .ss3-features,
    .ss3-scroll {
        display: none;
    }
}
@media (max-width: 1100px) {
    /* Bá» 3 cá»™t: khung phim lÃªn trÃªn chiáº¿m cáº£ hÃ ng, báº£ng trÃ¡i vÃ  tháº» pháº£i xuá»‘ng dÆ°á»›i.
       Giá»¯ 3 cá»™t á»Ÿ khá»• nÃ y thÃ¬ khung phim cÃ²n hÆ¡n ná»­a bá» rá»™ng, xem khÃ´ng ra gÃ¬. */
    .ss3-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ss3-stage {
        order: -1;
        grid-column: 1 / -1;
        width: min(100%, 980px);
    }
    .ss3-features {
        align-content: start;
        width: min(100%, 320px);
        margin-inline: auto;
    }
    .ss3-scroll {
        /* háº¹p hÆ¡n cá»™t trÃ¡i: chiá»u cao ná»™i dung khi Ä‘Ã³ sÃ¡t tá»‰ lá»‡ áº£nh cuá»™n nÃªn khung
           chá»‰ bá»‹ nÃ©n dá»c chÃºt Ã­t. Padding pháº£i quay vá» px vÃ¬ % cá»§a padding Äƒn theo
           bá» ngang KHá»I CHá»¨A (Ã´ grid ~ ná»­a hÃ ng), khÃ´ng pháº£i bá» ngang khung. */
        width: min(100%, 268px);
        margin-inline: auto;
        padding: 30px 34px 34px;
    }
}
@media (max-width: 700px) {
    .ss3-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    /* Hang the thanh mot DAI NGANG 4 the, hai ben kep 2 mui ten doi muc dang
       chieu - xep doc 4 the to nhu truoc thi phai cuon rat dai moi het section. */
    .ss3-rail {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(4px, 1.6vw, 10px);
        width: 100%;
        margin-top: clamp(16px, 4vw, 26px);
    }
    .ss3-rail-arrow {
        display: block;
        flex: none;
        width: clamp(24px, 6.4vw, 34px);
        aspect-ratio: 222 / 237;
        padding: 0;
        border: 0;
        background: url("/assets/game/ui/ic-prev-next.webp") center / contain no-repeat;
        cursor: pointer;
        filter: drop-shadow(0 4px 9px rgba(84, 10, 4, 0.4));
        transition: filter 0.25s ease, transform 0.25s ease;
    }
    .ss3-rail-next {
        transform: scaleX(-1);
    }
    .ss3-rail-prev:active {
        transform: scale(1.08);
    }
    .ss3-rail-next:active {
        transform: scaleX(-1) scale(1.08);
    }
    .ss3-cards {
        --card-gap: clamp(4px, 1.4vw, 10px);
        display: flex;
        overflow-x: auto;
        /* .ss3-rail da lo margin-top cho ca cum */
        margin: 0;
        gap: var(--card-gap);
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ss3-cards::-webkit-scrollbar {
        display: none;
    }
    /* Khoa 4 the mot man: de flex:none theo px thi so the vua man ra so le, man
       nao cung cat doi mot the o mep phai. */
    .ss3-cards li {
        flex: 0 0 calc((100% - 3 * var(--card-gap)) / 4);
        scroll-snap-align: start;
    }
    /* The chi con ~90px be ngang: giu ti le 1954/805 thi cao 37px, anh khong con
       gi de xem. Doi sang 4/3 va BO khung fm-ss3 di - keo anh khung do tu 2.43
       ve 1.33 la hoa van 4 goc bi eo cao gap gan 2 lan. Thay bang vien vang mot
       net, dung ngon ngu voi mep khung phim o tren ma khong meo hinh. */
    .ss3-card-screen {
        aspect-ratio: 4 / 3;
        border: 1px solid rgba(255, 206, 130, 0.62);
        border-radius: 4px;
        background: #0d0b16;
        filter: drop-shadow(0 6px 12px rgba(48, 16, 8, 0.34));
    }
    .ss3-card-screen::after {
        display: none;
    }
    .ss3-card-screen::before,
    .ss3-card-shot {
        inset: 0;
        border-radius: 3px;
    }
    .ss3-cards li:not(.active) .ss3-card-screen {
        filter: drop-shadow(0 6px 12px rgba(48, 16, 8, 0.34)) saturate(0.7) brightness(0.78);
    }
    .ss3-cards li.active .ss3-card-screen {
        border-color: #ffe6ab;
        filter:
            drop-shadow(0 8px 14px rgba(48, 16, 8, 0.42))
            drop-shadow(0 0 10px rgba(255, 196, 96, 0.6));
    }
    /* bang chu vat ngang het day the, khong con la dai bt-fm-ss3 thu nho */
    .ss3-card-cap {
        --ribbon-w: 100%;
        bottom: 0;
        min-height: 0;
        padding: 3px 2px 4px;
        border-radius: 0 0 3px 3px;
        background: linear-gradient(180deg, rgba(160, 24, 12, 0.94), rgba(94, 12, 6, 0.96));
        font-size: clamp(6px, 1.8vw, 10px);
        letter-spacing: 0;
        line-height: 1.15;
    }
    .ss3-inner {
        padding: 32px 0 40px;
    }
    .ss3-title {
        width: 94%;
        /* áº£nh rá»™ng 94% nÃªn pháº§n trá»‘ng hai Ä‘áº§u quy ra % bá» ngang khung cÅ©ng to hÆ¡n */
        margin-top: -3.2%;
        margin-bottom: -5.3%;
    }
    .ss3-caption {
        --ribbon-w: min(94%, 500px);
        min-height: clamp(44px, 11vw, 62px);
        /* padding tá»± tÃ­nh láº¡i theo --ribbon-w má»›i */
        font-size: clamp(11px, 3.1vw, 14px);
    }
    .ss3-play {
        width: clamp(50px, 14vw, 70px);
    }
}

/* ============================================================
   POPUP VIDEO GAMEPLAY - bam nut play giua khung ss3 thi mo o day.
   Dung chung class .modal-open tren <body> voi popup Hiep Khach.

   Khung vien KHONG dung lai anh fm-ss3 nhu khung phim ngoai section: anh do ti le
   1954/805 (2.43), ep ve 16/9 la hoa van 4 goc bi keo cao them ~37%. Thay vao do
   dung mot ban vang ve bang gradient + vien khac trong, con bang chu thi van la
   bt-fm-ss3 (dai ngang don gian, keo gian khong lo).
   ============================================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 56px) clamp(16px, 4vw, 56px);
}
.video-modal.open {
    display: grid;
    place-items: center;
}
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 38%, rgba(96, 26, 10, 0.55), rgba(16, 7, 14, 0.92) 68%),
        rgba(12, 5, 10, 0.85);
    backdrop-filter: blur(8px);
}
.video-modal-dialog {
    position: relative;
    width: min(1180px, 100%);
}

/* --- bÄƒng chá»¯ Ä‘á» treo lÃªn mÃ©p trÃªn khung, cÃ¹ng art vá»›i caption khung gameplay --- */
.video-modal-title {
    position: relative;
    z-index: 2;
    display: grid;
    --ribbon-w: min(760px, 78%);
    width: var(--ribbon-w);
    min-height: clamp(46px, 5.2vw, 92px);
    margin: 0 auto clamp(-40px, -2.5vw, -20px);
    /* dáº£i Ä‘á» cá»§a bt-fm-ss3 náº±m trong 12.5%-87.5% bá» ngang áº¢NH -> 15% cá»§a chÃ­nh bÄƒng */
    padding: 0 calc(var(--ribbon-w) * 0.15);
    place-items: center;
    color: #fff0bd;
    background: url("/assets/game/ui/bt-fm-ss3.webp") center / 100% 100% no-repeat;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10.5px, 1.15vw, 21px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow:
        0 2px 2px rgba(64, 6, 2, 0.9),
        0 0 8px rgba(255, 208, 92, 0.45);
    text-transform: uppercase;
}
/* chÆ°a gáº¯n tiÃªu Ä‘á» thÃ¬ Ä‘á»«ng Ä‘á»ƒ lÃ²i ra má»™t dáº£i Ä‘á» rá»—ng */
.video-modal-title:empty {
    display: none;
}

/* --- báº£n vÃ ng bá»c video --- */
.video-modal-frame {
    position: relative;
    padding: clamp(7px, 0.75vw, 13px);
    border-radius: clamp(8px, 0.8vw, 14px);
    background: linear-gradient(
        152deg,
        #f7e3ae 0%,
        #cf9f3c 20%,
        #8d5f1b 46%,
        #b6862c 64%,
        #f2d68e 100%
    );
    box-shadow:
        0 34px 74px rgba(14, 4, 2, 0.72),
        0 0 0 1px rgba(84, 48, 10, 0.95),
        0 0 44px rgba(255, 168, 70, 0.28),
        inset 0 0 0 1px rgba(255, 244, 214, 0.55);
}
/* Ä‘Æ°á»ng viá»n tá»‘i sÃ¡t mÃ©p video cho vÃ ng ná»•i khá»‘i, khÃ´ng bá»‹ báº¹t nhÆ° border 1px */
.video-modal-frame::before {
    position: absolute;
    inset: calc(clamp(7px, 0.75vw, 13px) - 2px);
    z-index: 1;
    content: "";
    border: 2px solid rgba(58, 26, 6, 0.85);
    border-radius: clamp(5px, 0.5vw, 8px);
    pointer-events: none;
}
.video-modal-frame iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: clamp(4px, 0.4vw, 7px);
    background: #000;
}

/* --- nÃºt Ä‘Ã³ng: Ä‘Ä©a Ä‘á» viá»n vÃ ng nhÆ° nÃºt trong game --- */
.video-modal-close {
    position: absolute;
    top: clamp(-52px, -3.4vw, -40px);
    right: 0;
    z-index: 3;
    display: grid;
    width: clamp(34px, 2.6vw, 44px);
    height: clamp(34px, 2.6vw, 44px);
    padding: 0 0 2px;
    place-items: center;
    color: #ffe6ab;
    border: 0;
    border-radius: 50%;
    background:
        linear-gradient(180deg, #c0200f, #6d0d06) padding-box,
        linear-gradient(160deg, #f7e3ae, #b8862f 55%, #f0d089) border-box;
    box-shadow:
        0 6px 16px rgba(40, 6, 2, 0.6),
        inset 0 0 0 2px rgba(255, 226, 170, 0.9);
    font-size: clamp(19px, 1.5vw, 25px);
    line-height: 1;
    cursor: pointer;
    transition: 0.22s ease;
}
.video-modal-close:hover {
    color: #fff;
    background: linear-gradient(180deg, #e02a15, #8a1108);
    box-shadow:
        0 8px 22px rgba(255, 120, 40, 0.45),
        inset 0 0 0 2px rgba(255, 244, 214, 1);
    transform: rotate(90deg);
}

@media (max-width: 700px) {
    /* bÄƒng chá»¯ háº¹p láº¡i theo mÃ n: giá»¯ nguyÃªn bá» ngang 78% lÃ  tiÃªu Ä‘á» dÃ i xuá»‘ng 2 dÃ²ng
       vÃ  trÃ n khá»i dáº£i Ä‘á» cá»§a áº£nh */
    .video-modal-title {
        --ribbon-w: min(760px, 94%);
        /* padding tá»± tÃ­nh láº¡i theo --ribbon-w má»›i, khÃ´ng cáº§n khai bÃ¡o láº¡i */
        font-size: clamp(10px, 2.6vw, 14px);
    }
}

/* ============================================================
   SS4 â€” GIANG Há»’ Dáº¬Y SÃ“NG (tin tá»©c + sá»± kiá»‡n)
   4 khung: sá»± kiá»‡n ná»•i báº­t | tin tá»©c má»›i | sá»± kiá»‡n Ä‘ang diá»…n ra | lá»‹ch.
   Khung giáº¥y kem viá»n vÃ ng dá»±ng báº±ng CSS (ss4 khÃ´ng cÃ³ áº£nh khung rá»i),
   riÃªng ná»n section vÃ  áº£nh tiÃªu Ä‘á» thÃ¬ dÃ¹ng bg-ss4 / bg-txt-ss4.
   ============================================================ */
.ss4 {
    --seam: clamp(170px, 23vh, 320px);
    position: relative;
    overflow: visible;
    background: none;
}
/* phá»§ má» mÃ©p trÃªn/dÆ°á»›i Ä‘á»ƒ ná»‘i liá»n vá»›i ss3 vÃ  section káº¿ tiáº¿p */
.ss4::before,
.ss4::after {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1;
    height: clamp(60px, 8vh, 130px);
    content: "";
    pointer-events: none;
}
.ss4::before {
    top: calc(var(--seam) * -1);
    bottom: 0;
    z-index: 0;
    height: auto;
    background: url("/assets/game/ui/bg-ss4.webp") center top / cover no-repeat, #f3e3d2;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--seam));
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--seam));
}
/* Day ss4 de trong: ss5 tu ha nen cua no xuong bang mask (xem .ss5::before).
   Neu o day van do gradient ve --bg thi se co mot dai kem nam ngang cat ngang
   giua ss4 va nen hong cua ss5. */
.ss4::after {
    bottom: 0;
    background: transparent;
}
.ss4-inner {
    position: relative;
    z-index: 2;
    width: min(1720px, calc(100% - 40px));
    margin-top: clamp(-64px, -3.8vw, -28px);
    padding: 0 0 clamp(34px, 3.6vw, 62px);
    text-align: center;
}
.ss4-title {
    /* bg-txt-ss4.png 2172x724, pháº§n trong suá»‘t hai Ä‘áº§u Ã­t hÆ¡n ss3 nÃªn chá»‰ kÃ©o Ã¢m nháº¹ */
    width: min(1000px, 68%);
    height: auto;
    margin: clamp(-10px, -0.7vw, -4px) auto clamp(-14px, -0.8vw, -6px);
    filter: drop-shadow(0 8px 22px rgba(96, 24, 12, 0.3));
}

.ss4-grid {
    /* stretch: hai khung cÃ¹ng hÃ ng luÃ´n cao báº±ng nhau. Äá»ƒ bÃ¹ pháº§n chÃªnh, khung lá»‹ch
       Ä‘Æ°á»£c nÃ©n bá»›t (Ã´ tháº¥p hÆ¡n) cÃ²n tháº» sá»± kiá»‡n thÃ¬ ná»Ÿ ra khi Ã­t hÆ¡n má»™t trang. */
    align-items: stretch;
    display: grid;
    width: 100%;
    gap: clamp(14px, 1.5vw, 26px);
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    text-align: left;
}

/* --- khung giáº¥y kem dÃ¹ng chung cho cáº£ 4 Ã´ --- */
.ss4-panel {
    position: relative;
    overflow: visible;
    padding: clamp(36px, 2.8vw, 50px) clamp(18px, 1.6vw, 30px) clamp(18px, 1.6vw, 30px);
    border: 1px solid rgba(164, 105, 38, 0.72);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0, rgba(255, 246, 220, 0.98), transparent 36%),
        radial-gradient(circle at 88% 100%, rgba(226, 170, 92, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 252, 244, 0.97), rgba(248, 230, 200, 0.93));
    box-shadow:
        0 18px 38px rgba(72, 30, 12, 0.26),
        0 0 0 1px rgba(255, 238, 187, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        inset 0 0 36px rgba(156, 86, 24, 0.08);
}
.ss4-panel::before,
.ss4-panel::after {
    position: absolute;
    z-index: 1;
    width: 92px;
    height: 92px;
    content: "";
    pointer-events: none;
    opacity: 0.46;
}
.ss4-panel::before {
    top: 8px;
    right: 8px;
    border-top: 1px solid rgba(160, 98, 28, 0.55);
    border-right: 1px solid rgba(160, 98, 28, 0.55);
    background: radial-gradient(circle at 100% 0, rgba(192, 32, 15, 0.13), transparent 55%);
}
.ss4-panel::after {
    bottom: 8px;
    left: 8px;
    border-bottom: 1px solid rgba(160, 98, 28, 0.48);
    border-left: 1px solid rgba(160, 98, 28, 0.48);
    background: radial-gradient(circle at 0 100%, rgba(192, 32, 15, 0.11), transparent 55%);
}
.ss4-spotlight {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0;
}
.ss4-spotlight::before,
.ss4-spotlight::after {
    display: none;
}
/* nhÃ£n Ä‘á» gÃ¡c lÃªn mÃ©p trÃªn khung, hai Ä‘áº§u vÃ¡t nhÆ° tháº» bÃ i */
.ss4-plate {
    position: absolute;
    top: clamp(-19px, -1.1vw, -14px);
    left: clamp(22px, 1.8vw, 36px);
    z-index: 4;
    margin: 0;
    min-width: clamp(178px, 12vw, 220px);
    padding: clamp(7px, 0.62vw, 11px) clamp(10px, 0.9vw, 16px);
    color: #ffeec4;
    /* Deo chung khay ngoc DO voi nut "Tham gia ngay", tab Class va nut loc tien do
       (bt-filter-hover.webp) thay cho gradient + clip-path ve tay truoc day - anh
       da co san hai dau vat va vien kim nen khong can cat hinh nua.
       Anh goc 640x172 -> hai dau hoa van rong ~0.41 chieu cao nhan (~38px) ~ 16px. */
    border: 0 solid transparent;
    border-right-width: 16px;
    border-left-width: 16px;
    border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill / 0 16px / 0 stretch;
    filter: drop-shadow(0 7px 14px rgba(84, 10, 4, 0.42));
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
    text-transform: uppercase;
}

/* --- 1. Sá»± kiá»‡n ná»•i báº­t --- */
.ss4-spot-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 100%;
    z-index: 2;
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: #26121d;
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 218, 0.15);
}
.ss4-spot-stage::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    background:
        linear-gradient(90deg, rgba(45, 10, 14, 0.82) 0%, rgba(45, 10, 14, 0.52) 34%, rgba(45, 10, 14, 0.1) 64%, rgba(45, 10, 14, 0) 100%),
        linear-gradient(0deg, rgba(33, 8, 11, 0.34), transparent 28%),
        linear-gradient(180deg, rgba(22, 6, 9, 0.18), transparent 24%);
    pointer-events: none;
}
.ss4-spot-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
}
.ss4-spot-item.active {
    opacity: 1;
}
.ss4-spot-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02) brightness(1.05);
    transform: scale(1.01);
}
.ss4-spot-copy {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    display: flex;
    width: min(55%, 500px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(6px, 0.6vw, 12px);
    padding: clamp(14px, 1.6vw, 32px);
    /* Chua cho mui ten prev dung o giua mep trai: le trai + be rong nut + khe. */
    padding-left: calc(clamp(8px, 0.85vw, 18px) + clamp(28px, 2.3vw, 40px) + clamp(8px, 0.8vw, 14px));
    /* ná»n má» chá»‰ á»Ÿ ná»­a trÃ¡i Ä‘á»ƒ chá»¯ Ä‘á»c Ä‘Æ°á»£c mÃ  váº«n tháº¥y tranh nhÃ¢n váº­t bÃªn pháº£i */
    background: none;
}
.ss4-spot-eyebrow {
    padding: 4px 13px 5px;
    color: #ffe6ab;
    border: 1px solid rgba(255, 214, 150, 0.34);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(192, 32, 15, 0.95), rgba(109, 13, 6, 0.95));
    font-size: clamp(9px, 0.7vw, 12px);
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.ss4-spot-copy h4 {
    margin: 0;
    font-family: "Noto Serif", "Times New Roman", serif;
    max-width: 12.5em;
    font-size: clamp(18px, 1.85vw, 34px);
    font-weight: 800;
    line-height: 1.15;
}
.ss4-spot-copy h4 a {
    color: #ffd98f;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(40, 4, 2, 0.8);
}
.ss4-spot-copy h4 a:hover {
    color: #fff2cd;
}
.ss4-spot-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 34em;
    color: rgba(255, 241, 218, 0.88);
    font-size: clamp(11px, 0.86vw, 15px);
    line-height: 1.5;
}
.ss4-spot-date {
    padding: 5px 15px 6px;
    color: #fff0bd;
    border: 1px solid rgba(255, 206, 130, 0.5);
    border-radius: 4px;
    background: rgba(96, 18, 10, 0.66);
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.8vw, 14px);
    font-weight: 700;
}
/* Deo chung khay ngoc do voi tab Class, nut loc tien do va nut "Xem chi tiet"
   (bt-filter-*.webp) de nut tren the sang khong con la mot mieng gradient rieng.
   Anh goc 640x172 -> hai dau hoa van rong ~0.41 chieu cao nut; nut nay cao ~40px
   nen border ngang 16px, dung ty le nhu .hk-cta / .sk-card-cta. */
.ss4-spot-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-top: clamp(2px, 0.4vw, 8px);
    padding: clamp(6px, 0.6vw, 11px) clamp(10px, 0.9vw, 16px);
    /* Day la CTA chinh nen deo thang khay DO (ban hover) lam trang thai thuong,
       giong .sk-join-btn - khay kem se chim vao lop phu toi cua the sang. */
    color: #ffeec4;
    border: 0 solid transparent;
    border-right-width: 16px;
    border-left-width: 16px;
    border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill / 0 16px / 0 stretch;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
    transition: 0.22s ease;
}
.ss4-spot-cta:hover,
.ss4-spot-cta:focus-visible {
    color: #fff;
    filter: brightness(1.08) saturate(1.06);
    transform: translateY(-2px);
}

/* Anh 222x237 la hinh thoi da ve san mui ten "<" - nut next lat ngang bang
   scaleX(-1), giong het cach .ss2-arrow dung. Dat tren ::after cua stage
   (z-index 2) nen phai z-index 5 moi bat duoc chuot. */
.ss4-spot-arrow {
    position: absolute;
    /* Dan ra giua hai mep trai/phai. Nua trai cua the sang la .ss4-spot-copy
       (tieu de + mo ta + CTA) nen phai noi padding-left cua khoi chu ra bang
       dung chieu ngang mui ten, khong thi chu chay thang xuong duoi no. */
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: clamp(28px, 2.3vw, 40px);
    aspect-ratio: 222 / 237;
    padding: 0;
    border: 0;
    background: url("/assets/game/ui/ic-prev-next.webp") center / contain no-repeat;
    cursor: pointer;
    filter: drop-shadow(0 6px 12px rgba(84, 10, 4, 0.45));
    transition: filter 0.25s ease, transform 0.25s ease;
}
.ss4-spot-prev {
    left: clamp(8px, 0.85vw, 18px);
}
.ss4-spot-next {
    right: clamp(8px, 0.85vw, 18px);
    transform: translateY(-50%) scaleX(-1);
}
.ss4-spot-prev:hover,
.ss4-spot-prev:focus-visible {
    filter: drop-shadow(0 8px 16px rgba(84, 10, 4, 0.55)) brightness(1.1);
    transform: translateY(-50%) scale(1.08);
}
.ss4-spot-next:hover,
.ss4-spot-next:focus-visible {
    filter: drop-shadow(0 8px 16px rgba(84, 10, 4, 0.55)) brightness(1.1);
    transform: translateY(-50%) scaleX(-1) scale(1.08);
}

.ss4-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(8px, 0.9vw, 14px);
}
.ss4-spot-dots {
    position: absolute;
    right: 0;
    bottom: clamp(12px, 1.1vw, 20px);
    left: 0;
    z-index: 4;
    margin-top: 0;
}
.ss4-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 238, 190, 0.86);
    border-radius: 50%;
    background: rgba(82, 20, 14, 0.48);
    box-shadow: 0 2px 7px rgba(30, 6, 3, 0.45);
    cursor: pointer;
    transition: 0.25s ease;
}
.ss4-dots button.active {
    border-color: #fff0bd;
    background: #b01c0d;
    transform: scale(1.2);
}

/* --- 2. Tin tá»©c má»›i --- */
.ss4-viewall {
    position: absolute;
    top: clamp(12px, 1vw, 18px);
    right: clamp(18px, 1.6vw, 30px);
    z-index: 4;
    color: #8a2412;
    font-size: clamp(10px, 0.78vw, 13px);
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}
.ss4-viewall:hover {
    color: #c0200f;
}
.ss4-viewall span {
    margin-left: 3px;
}
.ss4-news-list {
    display: grid;
    position: relative;
    z-index: 2;
    gap: clamp(9px, 0.85vw, 15px);
    margin: 0;
    padding: 0;
    counter-reset: ss4-news;
    list-style: none;
}
.ss4-news-list li {
    counter-increment: ss4-news;
}
.ss4-news-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.1vw, 20px);
    min-height: clamp(76px, 5.4vw, 98px);
    padding: clamp(8px, 0.7vw, 12px) clamp(14px, 1vw, 18px);
    border: 1px solid rgba(178, 128, 58, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.68), rgba(255, 250, 240, 0.28)),
        rgba(255, 255, 255, 0.16);
    text-decoration: none;
    transition: 0.22s ease;
}
.ss4-news-list a::before {
    position: absolute;
    top: clamp(6px, 0.55vw, 9px);
    left: clamp(8px, 0.7vw, 12px);
    z-index: 2;
    display: grid;
    width: clamp(28px, 2.1vw, 36px);
    height: clamp(22px, 1.7vw, 30px);
    place-items: center;
    color: #fff0bd;
    content: counter(ss4-news, decimal-leading-zero);
    border: 1px solid rgba(255, 220, 150, 0.62);
    border-radius: 0 0 8px 0;
    background: linear-gradient(180deg, #be2614, #7a0f07);
    box-shadow: 0 4px 10px rgba(64, 12, 6, 0.28);
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.78vw, 13px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
.ss4-news-list a:hover {
    border-color: rgba(178, 128, 58, 0.56);
    background:
        linear-gradient(90deg, rgba(255, 247, 226, 0.92), rgba(255, 250, 240, 0.54)),
        rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 22px rgba(92, 42, 18, 0.13);
    transform: translateX(-3px);
}
.ss4-news-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    width: clamp(112px, 8.2vw, 148px);
    flex: none;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(130, 70, 20, 0.52);
    border-radius: 6px;
    box-shadow:
        0 6px 13px rgba(92, 42, 18, 0.16),
        inset 0 0 0 1px rgba(255, 244, 214, 0.25);
}
.ss4-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.28s ease;
}
.ss4-news-list a:hover .ss4-news-thumb img {
    transform: scale(1.06);
}
.ss4-news-copy {
    display: block;
    min-width: 0;
    flex: 1;
}
.ss4-news-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #633018;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 800;
    line-height: 1.35;
}
.ss4-news-copy time {
    display: block;
    margin-top: 3px;
    color: #9b6b3d;
    font-size: clamp(9px, 0.7vw, 12px);
}
.ss4-news-tag {
    flex: none;
    padding: 4px 9px 5px;
    color: #ffe6ab;
    border-radius: 4px;
    background: linear-gradient(180deg, #c0200f, #6d0d06);
    font-size: clamp(8px, 0.62vw, 11px);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- 3. Sá»± kiá»‡n Ä‘ang diá»…n ra --- */
.ss4-ongoing {
    /* MÅ©i tÃªn Ä‘á»ƒ trong luá»“ng, cÃ¹ng hÃ ng vá»›i dáº£i tháº». TrÆ°á»›c Ä‘Ã³ absolute theo panel:
       panel bá»‹ grid kÃ©o cao báº±ng khung lá»‹ch bÃªn cáº¡nh nÃªn mÅ©i tÃªn tá»¥t háº³n xuá»‘ng Ä‘Ã¡y. */
    display: grid;
    align-content: center;
    align-items: center;
    gap: clamp(8px, 0.8vw, 14px) clamp(6px, 0.6vw, 12px);
    grid-template-areas:
        "prev view next"
        "dots dots dots";
    grid-template-columns: auto minmax(0, 1fr) auto;
}
.ss4-rail-view {
    overflow: hidden;
    grid-area: view;
}
.ss4-rail-track {
    display: flex;
    gap: clamp(8px, 0.9vw, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss4-rail-track > li {
    /* 5 tháº» má»™t mÃ n, trá»« Ä‘i pháº§n gap chia Ä‘á»u */
    width: calc((100% - 4 * clamp(8px, 0.9vw, 16px)) / 5);
    flex: none;
}
.ss4-rail-track a {
    display: block;
    overflow: hidden;
    padding-bottom: clamp(7px, 0.7vw, 12px);
    border: 1px solid rgba(178, 128, 58, 0.5);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
    text-decoration: none;
    transition: 0.24s ease;
}
.ss4-rail-track a:hover {
    border-color: rgba(198, 150, 72, 0.95);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 22px rgba(72, 30, 12, 0.2);
    transform: translateY(-4px);
}
.ss4-rail-art {
    display: block;
    overflow: hidden;
    margin-bottom: clamp(6px, 0.6vw, 10px);
    aspect-ratio: 4 / 3;
}
.ss4-rail-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ss4-rail-track strong {
    display: -webkit-box;
    overflow: hidden;
    padding: 0 8px;
    color: #8a1108;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.8vw, 14px);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}
.ss4-rail-track small {
    display: block;
    margin-top: 3px;
    color: #9a7248;
    font-size: clamp(9px, 0.7vw, 12px);
}
.ss4-rail-arrow {
    grid-area: prev;
    display: grid;
    width: clamp(22px, 1.8vw, 30px);
    height: clamp(30px, 2.4vw, 40px);
    padding: 0 0 2px;
    place-items: center;
    color: #ffe6ab;
    border: 0;
    background: linear-gradient(180deg, #c0200f, #6d0d06);
    box-shadow:
        0 4px 12px rgba(84, 10, 4, 0.4),
        inset 0 0 0 1px rgba(255, 214, 150, 0.5);
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    font-size: clamp(14px, 1.1vw, 20px);
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}
.ss4-rail-next {
    grid-area: next;
    clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
}
.ss4-rail-arrow:hover {
    color: #fff;
    background: linear-gradient(180deg, #e02a15, #8a1108);
}
/* .ss4-rail-arrow Ä‘áº·t display:grid nÃªn thuá»™c tÃ­nh hidden cá»§a HTML bá»‹ Ä‘Ã¨, pháº£i táº¯t tÆ°á»ng minh */
.ss4-rail-arrow[hidden] {
    display: none;
}
.ss4-rail-arrow[disabled] {
    cursor: default;
    opacity: 0.35;
}
.ss4-rail-dots {
    grid-area: dots;
}
.ss4-rail-dots:empty {
    display: none;
}
/* Ãt tháº» hÆ¡n má»™t trang thÃ¬ cÄƒn giá»¯a vÃ  cho tháº» ná»Ÿ to hÆ¡n: khung nÃ y pháº£i cao báº±ng
   khung lá»‹ch bÃªn cáº¡nh, Ä‘á»ƒ tháº» nhá» nhÆ° khi Ä‘á»§ 5 cÃ¡i thÃ¬ trá»‘ng háº³n pháº§n trÃªn dÆ°á»›i. */
.ss4-rail-track.is-static {
    justify-content: center;
}
.ss4-rail-track.is-static > li {
    width: clamp(160px, 17vw, 270px);
}

/* --- 4. Lá»‹ch sá»± kiá»‡n --- */
.ss4-cal-head {
    width: min(100%, 430px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1vw, 20px);
    margin-bottom: clamp(8px, 0.8vw, 14px);
}
.ss4-cal-head strong {
    min-width: clamp(110px, 10vw, 170px);
    color: #8a1108;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(12px, 0.95vw, 17px);
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}
.ss4-cal-head button {
    display: grid;
    width: clamp(20px, 1.6vw, 26px);
    height: clamp(20px, 1.6vw, 26px);
    padding: 0 0 2px;
    place-items: center;
    color: #8a1108;
    border: 1px solid rgba(178, 128, 58, 0.6);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.65);
    font-size: clamp(12px, 1vw, 17px);
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}
.ss4-cal-head button:hover {
    color: #fff;
    border-color: #8a1108;
    background: #a5170c;
}
.ss4-cal-grid {
    /* Ã´ lá»‹ch lÃ  hÃ¬nh vuÃ´ng nÃªn Ä‘á»ƒ trÃ n háº¿t bá» ngang panel thÃ¬ má»—i Ã´ ~85px, cáº£ lá»‹ch
       cao gáº§n 500px vÃ  kÃ©o dÃ i cáº£ section - bÃ³ láº¡i cho gá»n nhÆ° báº£n thiáº¿t káº¿ */
    width: min(100%, 430px);
    margin-inline: auto;
    display: grid;
    gap: clamp(2px, 0.25vw, 6px);
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ss4-cal-grid span {
    position: relative;
    display: grid;
    /* Ã´ hÆ¡i báº¹t thay vÃ¬ vuÃ´ng: 7 hÃ ng vuÃ´ng Ä‘áº©y khung lá»‹ch cao hÆ¡n khung sá»± kiá»‡n
       bÃªn cáº¡nh gáº§n 300px, mÃ  hai khung pháº£i cao báº±ng nhau */
    aspect-ratio: 1.35;
    place-items: center;
    color: #6b4a2c;
    font-size: clamp(9px, 0.75vw, 13px);
}
.ss4-cal-grid .ss4-cal-dow {
    color: #8a2412;
    font-size: clamp(8px, 0.66vw, 12px);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ss4-cal-grid .is-out {
    opacity: 0.32;
}
/* ngÃ y náº±m trong khoáº£ng cá»§a má»™t sá»± kiá»‡n: viÃªn hÃ¬nh thoi Ä‘á» nhÆ° má»‘c trÃªn lá»‹ch giáº¥y */
.ss4-cal-grid .is-event {
    z-index: 1;
    color: #fff0bd;
    font-weight: 800;
}
.ss4-cal-grid .is-event::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    /* Ã´ khÃ´ng cÃ²n vuÃ´ng nÃªn pháº£i khoÃ¡ tá»‰ lá»‡ á»Ÿ Ä‘Ã¢y, khÃ´ng thÃ¬ hÃ¬nh thoi bá»‹ bÃ¨ ngang */
    height: 86%;
    aspect-ratio: 1;
    content: "";
    background: linear-gradient(160deg, #c0200f, #6d0d06);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    transform: translate(-50%, -50%);
}
.ss4-cal-grid .is-today {
    color: #8a1108;
    font-weight: 800;
}
.ss4-cal-grid .is-today::after {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 92%;
    aspect-ratio: 1;
    content: "";
    border: 1px solid #8a1108;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.ss4-cal-grid .is-event.is-today {
    color: #fff0bd;
}
.ss4-cal-grid .is-event.is-today::after {
    border-color: rgba(255, 226, 170, 0.9);
}

/* --- SS4 motion: reveal, slide swap, hover polish --- */
.ss4-title,
.ss4-panel {
    opacity: 0;
    translate: 0 26px;
    transition:
        opacity 0.75s ease,
        translate 0.75s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss4-title {
    translate: 0 -18px;
}
.ss4-panel {
    transition-delay: 0.12s;
}
.ss4-news {
    transition-delay: 0.22s;
}
.ss4-ongoing {
    transition-delay: 0.32s;
}
.ss4-calendar {
    transition-delay: 0.42s;
}
.ss4.is-visible .ss4-title,
.ss4.is-visible .ss4-panel {
    opacity: 1;
    translate: none;
}

.ss4-news-list li,
.ss4-rail-track > li,
.ss4-cal-head,
.ss4-cal-grid span {
    opacity: 0;
    translate: 0 16px;
    transition:
        opacity 0.55s ease,
        translate 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.ss4.is-visible .ss4-news-list li,
.ss4.is-visible .ss4-rail-track > li,
.ss4.is-visible .ss4-cal-head,
.ss4.is-visible .ss4-cal-grid span {
    opacity: 1;
    translate: none;
}
.ss4.is-visible .ss4-news-list li:nth-child(1) { transition-delay: 0.34s; }
.ss4.is-visible .ss4-news-list li:nth-child(2) { transition-delay: 0.4s; }
.ss4.is-visible .ss4-news-list li:nth-child(3) { transition-delay: 0.46s; }
.ss4.is-visible .ss4-news-list li:nth-child(4) { transition-delay: 0.52s; }
.ss4.is-visible .ss4-news-list li:nth-child(5) { transition-delay: 0.58s; }
.ss4.is-visible .ss4-rail-track > li:nth-child(1) { transition-delay: 0.48s; }
.ss4.is-visible .ss4-rail-track > li:nth-child(2) { transition-delay: 0.55s; }
.ss4.is-visible .ss4-rail-track > li:nth-child(3) { transition-delay: 0.62s; }
.ss4.is-visible .ss4-rail-track > li:nth-child(4) { transition-delay: 0.69s; }
.ss4.is-visible .ss4-rail-track > li:nth-child(n + 5) { transition-delay: 0.76s; }
.ss4.is-visible .ss4-cal-head {
    transition-delay: 0.52s;
}
.ss4.is-visible .ss4-cal-grid span {
    transition-delay: calc(0.58s + (var(--ss4-i, 0) * 14ms));
}

@keyframes ss4SpotImageIn {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.01);
    }
}
.ss4-spot-item.active .ss4-spot-art {
    animation: ss4SpotImageIn 7s ease-out both;
}

@keyframes ss4CopyIn {
    from {
        opacity: 0;
        translate: -18px 0;
    }
    to {
        opacity: 1;
        translate: none;
    }
}
.ss4-spot-item.active .ss4-spot-eyebrow,
.ss4-spot-item.active .ss4-spot-copy h4,
.ss4-spot-item.active .ss4-spot-copy p,
.ss4-spot-item.active .ss4-spot-date,
.ss4-spot-item.active .ss4-spot-cta {
    animation: ss4CopyIn 0.52s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
.ss4-spot-item.active .ss4-spot-copy h4 { animation-delay: 0.06s; }
.ss4-spot-item.active .ss4-spot-copy p { animation-delay: 0.12s; }
.ss4-spot-item.active .ss4-spot-date { animation-delay: 0.18s; }
.ss4-spot-item.active .ss4-spot-cta { animation-delay: 0.24s; }

.ss4-news-list a,
.ss4-rail-track a,
.ss4-cal-head button,
.ss4-dots button {
    will-change: transform;
}
.ss4-news-list a:hover .ss4-news-copy strong,
.ss4-rail-track a:hover strong {
    color: #b21b0e;
}
.ss4-cal-grid .is-event::before {
    transition:
        filter 0.22s ease,
        transform 0.22s ease;
}
.ss4-cal-grid .is-event:hover::before {
    filter: brightness(1.12);
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .ss4-title,
    .ss4-panel,
    .ss4-news-list li,
    .ss4-rail-track > li,
    .ss4-cal-head,
    .ss4-cal-grid span {
        opacity: 1;
        translate: none;
        transition: none;
    }
    .ss4-spot-item.active .ss4-spot-art,
    .ss4-spot-item.active .ss4-spot-eyebrow,
    .ss4-spot-item.active .ss4-spot-copy h4,
    .ss4-spot-item.active .ss4-spot-copy p,
    .ss4-spot-item.active .ss4-spot-date,
    .ss4-spot-item.active .ss4-spot-cta {
        animation: none;
    }
    .ss4-rail-track.is-sliding a {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .ss4-inner {
        margin-top: clamp(-48px, -4.8vw, -24px);
    }
    .ss4-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    /* Xuong 1 cot thi o "Su kien noi bat" khong con hang grid de an theo chieu
       cao nua: .ss4-spot-item deu la position:absolute nen san khau khong co noi
       dung nao do chieu cao, ma min-height:100% lai quy chieu vao chieu cao KHONG
       XAC DINH cua khung -> ra 0, ca khung xep lai, nhan do cua no de len nhan
       "Tin tuc moi" ngay duoi. Phai tu cho san khau mot ti le cu the. */
    .ss4-spotlight {
        min-height: 0;
    }
    .ss4-spot-stage {
        min-height: 300px;
        aspect-ratio: 16 / 9;
    }
    .ss4-title {
        width: min(1000px, 86%);
    }
    .ss4-rail-track > li {
        width: calc((100% - 2 * clamp(8px, 0.9vw, 16px)) / 3);
    }
}
@media (max-width: 700px) {
    .ss4-inner {
        margin-top: clamp(-32px, -6vw, -16px);
    }
    .ss4-title {
        width: 96%;
    }
    .ss4-spot-copy {
        width: 100%;
        /* Khoi chu phu ca be ngang nen phai chua them cho mui ten next ben phai. */
        padding-right: calc(clamp(8px, 0.85vw, 18px) + clamp(28px, 2.3vw, 40px) + clamp(8px, 0.8vw, 14px));
        background: linear-gradient(90deg, rgba(38, 14, 30, 0.9) 62%, rgba(38, 14, 30, 0.35));
    }
    /* man hep: 16/9 chi con ~240px, khong du cho tieu de + mo ta + ngay + nut */
    .ss4-spot-stage {
        min-height: 320px;
        aspect-ratio: 4 / 3;
    }
    .ss4-panel {
        padding-right: 14px;
        padding-left: 14px;
    }
    /* Rieng the "Su kien noi bat" bo sach padding de tranh su kien an kin khung.
       The VAN giu nguyen le 20px cua .ss4-inner va bo goc - chi phan ruot day ra
       sat vien thoi, khong tran het be ngang man hinh. */
    .ss4-spotlight {
        padding: 0;
    }
    /* Nhan do gac len tren mep the ~14px, ma .ss4-title lai co margin-bottom am
       -> nhan de chong len dong "TIN MOI HOI TU - SU KIEN KHAI MO" trong anh
       tieu de (do duoc: am 19-22px tuy be rong). Ha ca hang xuong cho du khe. */
    .ss4-grid {
        margin-top: clamp(28px, 7.5vw, 34px);
    }
    .ss4-viewall {
        top: 14px;
        right: 14px;
    }
    .ss4-news-list a {
        gap: 10px;
        padding-right: 10px;
        padding-left: 8px;
    }
    .ss4-news-list a::before {
        top: 8px;
        left: 8px;
        width: 28px;
        height: 22px;
    }
    .ss4-news-thumb {
        width: clamp(72px, 24vw, 94px);
    }
    .ss4-rail-track > li {
        width: calc((100% - clamp(8px, 0.9vw, 16px)) / 2);
    }
}

/* =====================================================
   SS5 - CAM NANG VO HOC
   ===================================================== */
.ss5 {
    --ss5-seam: clamp(180px, 16vw, 320px);
    position: relative;
    /* visible: lop nen o ::before phai troi len duoc phia tren de hoa vao ss4 */
    overflow: visible;
    min-height: clamp(760px, 52vw, 980px);
    margin-top: calc(var(--ss5-seam) * -0.52);
    padding: calc(clamp(20px, 2vw, 38px) + var(--ss5-seam) * 0.24) 0 clamp(58px, 5.6vw, 104px);
    /* nen chuyen xuong ::before de mask duoc, giong cach ss3/ss4 noi voi nhau */
    background: none;
}
/* Lop nen ss5: keo len tren dung --ss5-seam va cho ANH mo dan tu trong suot ->
   dac, nen ss4 hien qua o vung giao va hai khung canh hoa vao nhau thay vi
   dut gay o mep tren cua section. */
.ss5::before {
    position: absolute;
    top: calc(var(--ss5-seam) * -1);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: block;
    content: "";
    background:
        url("/assets/game/ui/bg-ss5.webp") center top / cover no-repeat,
        #f4cfd0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ss5-seam));
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ss5-seam));
    pointer-events: none;
}
.ss5::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: clamp(90px, 9vw, 170px);
    content: "";
    background: linear-gradient(transparent, rgba(54, 8, 16, 0.2));
    pointer-events: none;
}
.ss5-inner {
    position: relative;
    /* PHAI cao hon lop nen cua ss6 (z-index 0), neu khong lop nen do troi len
       theo --ss6-seam se phu mo dan len hang the cuoi cua ss5. */
    z-index: 2;
    width: min(1740px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}
.ss5-title {
    display: block;
    width: min(1080px, 76vw);
    height: auto;
    margin: 0 auto clamp(10px, 1.1vw, 20px);
    filter: none;
}
.ss5-card-grid {
    position: relative;
    display: grid;
    width: min(1520px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 2vw, 36px);
    align-items: stretch;
    gap: clamp(14px, 1.1vw, 22px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(172, 105, 40, 0.74);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0, rgba(255, 249, 230, 0.58), transparent 42%),
        radial-gradient(circle at 86% 100%, rgba(223, 159, 80, 0.18), transparent 44%),
        linear-gradient(135deg, rgba(255, 250, 239, 0.6), rgba(246, 215, 185, 0.28));
    box-shadow:
        0 18px 36px rgba(88, 34, 16, 0.12),
        inset 0 0 0 1px rgba(255, 246, 220, 0.62);
}
.ss5-card-grid::before,
.ss5-card-grid::after {
    position: absolute;
    z-index: 1;
    width: 96px;
    height: 96px;
    content: "";
    pointer-events: none;
    opacity: 0.5;
}
.ss5-card-grid::before {
    top: 9px;
    right: 9px;
    border-top: 1px solid rgba(160, 98, 28, 0.55);
    border-right: 1px solid rgba(160, 98, 28, 0.55);
}
.ss5-card-grid::after {
    bottom: 9px;
    left: 9px;
    border-bottom: 1px solid rgba(160, 98, 28, 0.48);
    border-left: 1px solid rgba(160, 98, 28, 0.48);
}
.ss5-card {
    position: relative;
    display: flex;
    min-height: clamp(160px, 10vw, 210px);
    padding: clamp(20px, 1.35vw, 28px) clamp(18px, 1.25vw, 26px) clamp(20px, 1.35vw, 28px) clamp(122px, 8.3vw, 166px);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    color: #2b170e;
    border: 1px solid rgba(192, 136, 64, 0.6);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 253, 245, 0.82), rgba(255, 240, 211, 0.78)),
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.75), transparent 52%);
    box-shadow:
        0 16px 28px rgba(112, 58, 20, 0.14),
        inset 0 0 0 1px rgba(255, 250, 230, 0.72);
    text-align: left;
    text-decoration: none;
    transform: translateY(0);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease,
        background 0.24s ease;
}
.ss5-card::before {
    position: absolute;
    inset: 9px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(185, 126, 54, 0.22);
    border-radius: 5px;
}
.ss5-card:hover {
    color: inherit;
    border-color: rgba(212, 159, 76, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 249, 0.94), rgba(255, 239, 210, 0.88)),
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.92), transparent 52%);
    box-shadow:
        0 22px 38px rgba(112, 44, 18, 0.2),
        inset 0 0 0 1px rgba(255, 247, 212, 0.9);
    transform: translateY(-8px);
}
.ss5-icon {
    position: absolute;
    top: 50%;
    left: clamp(10px, 0.8vw, 16px);
    display: grid;
    width: clamp(98px, 7.4vw, 142px);
    aspect-ratio: 1;
    place-items: center;
    transform: translateY(-50%) rotate(var(--icon-tilt, -2deg));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.ss5-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Truoc day 8 the dung chung ic-bi-kip.webp roi hue-rotate ra 8 mau.
       Nay moi the co anh rieng ic-bk-1..8.webp da dung mau san -> bo hue-rotate
       va saturate, khong thi mau anh moi bi xoay lech. */
    filter: drop-shadow(0 12px 16px rgba(79, 28, 12, 0.22));
}
.ss5-card:hover .ss5-icon {
    filter: brightness(1.05);
    transform: translateY(calc(-50% - 6px)) rotate(var(--icon-tilt, -2deg)) scale(1.05);
}
.ss5-card-copy {
    position: relative;
    z-index: 1;
    display: block;
}
.ss5-card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #8a1108;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(17px, 1.15vw, 23px);
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}
.ss5-card-copy small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: clamp(8px, 0.7vw, 12px);
    color: #2f1a10;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 650;
    line-height: 1.5;
}
.ss5-card-jade { --icon-tilt: -5deg; }
.ss5-card-amber { --icon-tilt: 4deg; }
.ss5-card-sapphire { --icon-tilt: -1deg; }
.ss5-card-crimson { --icon-tilt: 5deg; }
.ss5-card-violet { --icon-tilt: -3deg; }
.ss5-card-rose { --icon-tilt: 3deg; }
.ss5-card-gold { --icon-tilt: -4deg; }
.ss5-card-ink { --icon-tilt: 4deg; }

.ss5-title,
.ss5-card {
    opacity: 1;
    translate: 0 26px;
}
.ss5-title {
    translate: 0 -18px;
}
.ss5-card {
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}
.ss5.is-visible .ss5-title {
    animation: ss5TitleIn 0.75s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
.ss5.is-visible .ss5-card {
    animation: ss5CardIn 0.62s cubic-bezier(0.22, 0.7, 0.3, 1) both;
    animation-delay: calc(0.14s + var(--ss5-i, 0) * 0.055s);
}
.ss5.is-visible .ss5-card:hover {
    transform: translateY(-8px);
}
@keyframes ss5TitleIn {
    from {
        opacity: 1;
        translate: 0 -18px;
    }
    to {
        opacity: 1;
        translate: none;
    }
}
@keyframes ss5CardIn {
    from {
        opacity: 1;
        translate: 0 26px;
    }
    to {
        opacity: 1;
        translate: none;
    }
}

@media (max-width: 1280px) {
    .ss5 {
        min-height: 0;
    }
    .ss5-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: clamp(18px, 2vw, 30px);
    }
}
@media (max-width: 760px) {
    .ss5 {
        padding-top: calc(22px + var(--ss5-seam) * 0.2);
    }
    .ss5-inner {
        width: min(100% - 24px, 560px);
    }
    .ss5-title {
        width: 104%;
        max-width: none;
        margin-left: -2%;
    }
    .ss5-card-grid {
        padding: 14px;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .ss5-card {
        min-height: 132px;
        padding: 18px 14px 18px clamp(104px, 30vw, 126px);
    }
    .ss5-icon {
        width: clamp(84px, 27vw, 108px);
    }
    .ss5-card-copy strong {
        font-size: clamp(14px, 4vw, 17px);
    }
    .ss5-card-copy small {
        -webkit-line-clamp: 3;
        font-size: clamp(11px, 3.25vw, 13px);
        line-height: 1.5;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ss5-title,
    .ss5-card {
        opacity: 1;
        translate: none;
        transition: none;
        animation: none;
    }
    .ss5-card:hover,
    .ss5.is-visible .ss5-card:hover {
        transform: none;
    }
}

/* =====================================================
   SS6 - MEDIA & CONG DONG
   Nen bg-ss6 noi vao ss5 bang mask (cung ky thuat seam cua ss3/ss4/ss5),
   bien ten do + bang giay kem + 4 the kenh deu dung bang CSS.
   ===================================================== */
.ss6 {
    --ss6-seam: clamp(150px, 13vw, 280px);
    /* mau chu dao lay tu bg-ss6: hong may + do son + vang kim */
    --ss6-gold: #c58f3e;
    --ss6-gold-soft: rgba(176, 120, 48, 0.62);
    position: relative;
    overflow: visible;
    margin-top: calc(var(--ss6-seam) * -0.5);
    padding: calc(var(--ss6-seam) * 0.34 + clamp(16px, 1.6vw, 32px)) 0 clamp(24px, 2.2vw, 44px);
    background: none;
}
/* Lop nen: keo len tren dung --ss6-seam roi cho anh mo dan tu trong suot -> dac,
   nen troi ss5 hien qua vung giao thay vi dut gay o mep tren. */
.ss6::before {
    position: absolute;
    top: calc(var(--ss6-seam) * -1);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    content: "";
    background:
        url("/assets/game/ui/bg-ss6.webp") center top / cover no-repeat,
        #f3c9cd;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ss6-seam));
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ss6-seam));
    pointer-events: none;
}
/* day section tan dan ve mau nen trang de noi xuong khoi tai game phia duoi */
.ss6::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: clamp(70px, 7vw, 130px);
    content: "";
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.ss6-inner {
    position: relative;
    z-index: 2;
    width: min(1740px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

/* --- tieu de: tt-ss6.png da gop san bien ten + 2 nhanh anh dao + dong phu --- */
.ss6-title {
    display: block;
    /* anh 2172x724, phan trong suot tren/duoi nhieu nen keo margin am cho sat bang giay */
    width: min(1240px, 70%);
    height: auto;
    margin: clamp(-40px, -2.4vw, -18px) auto clamp(-34px, -2vw, -14px);
    filter: drop-shadow(0 10px 26px rgba(96, 24, 12, 0.32));
}

/* --- bang giay kem chua ca 2 cot --- */
.ss6-board {
    position: relative;
    padding: clamp(16px, 1.5vw, 30px);
    border: 1px solid var(--ss6-gold-soft);
    border-radius: 10px;
    background:
        radial-gradient(circle at 12% 0, rgba(255, 250, 232, 0.98), transparent 40%),
        radial-gradient(circle at 92% 100%, rgba(226, 170, 92, 0.2), transparent 46%),
        linear-gradient(135deg, rgba(255, 252, 244, 0.97), rgba(246, 228, 200, 0.94));
    box-shadow:
        0 22px 46px rgba(72, 30, 12, 0.28),
        0 0 0 1px rgba(255, 238, 187, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        inset 0 0 48px rgba(156, 86, 24, 0.08);
}
/* vien vang thu 2 thut vao, tao cam giac khung giay co */
.ss6-board::before {
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 7px;
    left: 7px;
    content: "";
    border: 1px solid rgba(176, 120, 48, 0.34);
    border-radius: 6px;
    pointer-events: none;
}
.ss6-grid {
    position: relative;
    display: grid;
    align-items: start;
    gap: clamp(16px, 1.6vw, 34px);
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
}
/* vach doc ngan cach 2 cot */
.ss6-grid::before {
    position: absolute;
    top: clamp(6px, 0.6vw, 14px);
    bottom: clamp(6px, 0.6vw, 14px);
    left: calc(61.8% - clamp(8px, 0.8vw, 17px));
    width: 1px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(176, 120, 48, 0.5) 18%, rgba(176, 120, 48, 0.5) 82%, transparent);
    pointer-events: none;
}
.ss6-col {
    min-width: 0;
    padding: clamp(10px, 1vw, 20px) clamp(8px, 0.9vw, 18px) clamp(8px, 0.8vw, 16px);
}

/* --- dau moi cot: nhan do + vach + link phu --- */
.ss6-col-head {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.9vw, 18px);
    margin-bottom: clamp(12px, 1.2vw, 24px);
}
/* Deo chung khay ngoc DO voi .ss4-plate, nut "Tham gia ngay", tab Class va nut
   loc tien do (bt-filter-hover.webp) - truoc day nhan nay tu ve gradient +
   clip-path luc giac + mot chum hoa hong o mep trai nen lac dieu voi ca site.
   Anh goc 640x172 -> hai dau hoa van rong ~0.41 chieu cao nhan (~38px) ~ 16px. */
.ss6-plate {
    position: relative;
    margin: 0;
    min-width: clamp(178px, 12vw, 220px);
    padding: clamp(7px, 0.62vw, 11px) clamp(10px, 0.9vw, 16px);
    flex: 0 0 auto;
    color: #ffeec4;
    border: 0 solid transparent;
    border-right-width: 16px;
    border-left-width: 16px;
    border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill / 0 16px / 0 stretch;
    filter: drop-shadow(0 7px 14px rgba(84, 10, 4, 0.42));
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
    text-transform: uppercase;
    white-space: nowrap;
}
.ss6-rule {
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(176, 120, 48, 0.55), rgba(176, 120, 48, 0.12));
}
.ss6-note {
    flex: 0 0 auto;
    color: #9a3a22;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(10px, 0.82vw, 15px);
    font-style: italic;
    white-space: nowrap;
}
.ss6-more {
    flex: 0 0 auto;
    color: #6b3714;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.85vw, 16px);
    font-style: italic;
    white-space: nowrap;
}
.ss6-more:hover {
    color: #b5241a;
}
.ss6-more span {
    margin-left: 4px;
    font-style: normal;
}
.ss6-empty {
    margin: 0;
    padding: clamp(26px, 3vw, 54px) 0;
    color: var(--text-soft);
    font-style: italic;
}

/* --- bang chuyen media --- */
.ss6-rail {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.6vw, 14px);
}
.ss6-rail-view {
    overflow: hidden;
    flex: 1 1 auto;
    padding: clamp(6px, 0.5vw, 10px) 0;
}
.ss6-rail-track {
    display: flex;
    margin: 0;
    padding: 0;
    gap: clamp(8px, 0.85vw, 18px);
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.22, 0.68, 0.32, 1);
}
.ss6-rail-track > li {
    flex: 0 0 auto;
    /* 4 o mot trang; tru phan gap de o cuoi khong tran ra ngoai khung nhin */
    width: calc((100% - clamp(8px, 0.85vw, 18px) * 3) / 4);
}
.ss6-shot {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(176, 120, 48, 0.6);
    border-radius: 8px;
    background: rgba(255, 250, 236, 0.7);
    box-shadow:
        0 10px 20px rgba(72, 30, 12, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.ss6-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ss6-shot:hover {
    box-shadow:
        0 16px 28px rgba(72, 30, 12, 0.3),
        inset 0 0 0 1px rgba(255, 233, 168, 0.9);
    transform: translateY(-4px);
}
/* nut play tron o giua o */
.ss6-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(30px, 2.6vw, 50px);
    height: clamp(30px, 2.6vw, 50px);
    border: 1px solid rgba(255, 233, 168, 0.75);
    border-radius: 50%;
    background: rgba(38, 14, 10, 0.62);
    box-shadow: 0 6px 14px rgba(30, 8, 4, 0.4);
    place-items: center;
    transition: 0.25s ease;
    translate: -50% -50%;
}
.ss6-play::before {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: clamp(5px, 0.45vw, 9px) solid transparent;
    border-bottom: clamp(5px, 0.45vw, 9px) solid transparent;
    border-left: clamp(9px, 0.75vw, 15px) solid #ffeecd;
    content: "";
}
.ss6-shot:hover .ss6-play {
    background: rgba(155, 22, 12, 0.85);
    scale: 1.08;
}
/* chu thich chi hien khi ro chuot, khoi che mat anh */
.ss6-shot-cap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: clamp(14px, 1.4vw, 26px) 10px 7px;
    color: #fff4dd;
    background: linear-gradient(transparent, rgba(40, 10, 6, 0.82));
    font-size: clamp(10px, 0.72vw, 13px);
    line-height: 1.35;
    opacity: 0;
    text-overflow: ellipsis;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}
.ss6-shot:hover .ss6-shot-cap {
    opacity: 1;
}
/* mui ten tron nam ngoai khung nhin, cung ho voi nut cua ss4 */
.ss6-arrow {
    position: relative;
    width: clamp(26px, 2.2vw, 42px);
    height: clamp(26px, 2.2vw, 42px);
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(176, 120, 48, 0.7);
    border-radius: 50%;
    background: linear-gradient(180deg, #fffaf0, #f0dcba);
    box-shadow:
        0 6px 14px rgba(72, 30, 12, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: 0.22s ease;
}
.ss6-arrow::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    border-top: 2px solid #8a3320;
    border-left: 2px solid #8a3320;
    content: "";
    rotate: -45deg;
    translate: -30% -50%;
}
.ss6-arrow-next::before {
    rotate: 135deg;
    translate: -70% -50%;
}
.ss6-arrow:hover:not(:disabled) {
    border-color: rgba(155, 22, 12, 0.65);
    background: linear-gradient(180deg, #fff6e2, #e8c894);
}
.ss6-arrow:disabled {
    cursor: default;
    opacity: 0.35;
}

/* --- 4 the kenh cong dong --- */
.ss6-social-grid {
    display: grid;
    margin: 0;
    padding: 0;
    gap: clamp(8px, 0.85vw, 18px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}
.ss6-social-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 1.1vw, 22px) clamp(4px, 0.5vw, 10px);
    gap: clamp(5px, 0.45vw, 10px);
    border: 1px solid rgba(176, 120, 48, 0.5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(250, 238, 216, 0.92));
    box-shadow:
        0 8px 18px rgba(72, 30, 12, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    text-align: center;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.ss6-social-card strong {
    color: #6d1108;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: clamp(11px, 0.9vw, 17px);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.ss6-social-card small {
    color: var(--text-soft);
    font-size: clamp(9px, 0.7vw, 13px);
    line-height: 1.3;
}
.ss6-social-card:hover {
    border-color: var(--ss6-gold);
    box-shadow:
        0 14px 26px rgba(72, 30, 12, 0.24),
        inset 0 0 0 1px rgba(255, 233, 168, 0.9);
    transform: translateY(-5px);
}
/* chua gan link trong admin -> lam mo va bo hieu ung, tranh dan ra trang trong */
.ss6-social-card.is-off {
    cursor: default;
    filter: grayscale(0.5);
    opacity: 0.55;
}
.ss6-social-card.is-off:hover {
    box-shadow:
        0 8px 18px rgba(72, 30, 12, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    transform: none;
}
/* mau nen cua tung kenh, doi qua bien --ss6-brand */
.ss6-social-icon {
    display: grid;
    width: clamp(34px, 3vw, 58px);
    height: clamp(34px, 3vw, 58px);
    border-radius: var(--ss6-brand-radius, 50%);
    background: var(--ss6-brand, #8d221d);
    box-shadow: 0 6px 14px rgba(30, 20, 10, 0.26);
    place-items: center;
    transition: transform 0.26s ease;
}
.ss6-social-icon svg {
    width: 62%;
    height: 62%;
    fill: #fff;
}
.ss6-social-card:hover .ss6-social-icon {
    transform: scale(1.07);
}
.ss6-social-fanpage {
    --ss6-brand: #1877f2;
}
.ss6-social-group {
    --ss6-brand: #7b4dea;
}
.ss6-social-youtube {
    --ss6-brand: #f00;
    --ss6-brand-radius: 26%;
}
.ss6-social-tiktok {
    --ss6-brand: #111;
}

/* --- reveal khi cuon toi: cung nhip voi ss4/ss5 --- */
.ss6-title,
.ss6-board {
    opacity: 0;
    transition: opacity 0.6s ease, translate 0.6s ease;
    translate: 0 26px;
}
.ss6.is-visible .ss6-title,
.ss6.is-visible .ss6-board {
    opacity: 1;
    translate: none;
}
.ss6.is-visible .ss6-board {
    transition-delay: 0.12s;
}
.ss6.is-visible .ss6-social-card {
    animation: ss6CardIn 0.5s both;
    animation-delay: calc(0.22s + var(--ss6-i, 0) * 0.07s);
}
@keyframes ss6CardIn {
    from {
        opacity: 0;
        translate: 0 18px;
    }
    to {
        opacity: 1;
        translate: none;
    }
}

@media (max-width: 1280px) {
    .ss6-grid {
        gap: clamp(14px, 2vw, 26px);
        grid-template-columns: minmax(0, 1fr);
    }
    /* xep doc thi bo vach doc, thay bang vach ngang tren dau cot phai */
    .ss6-grid::before {
        display: none;
    }
    .ss6-social {
        border-top: 1px solid rgba(176, 120, 48, 0.4);
    }
    .ss6-rail-track > li {
        width: calc((100% - clamp(8px, 0.85vw, 18px) * 2) / 3);
    }
}
@media (max-width: 900px) {
    .ss6-col-head {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .ss6-rule {
        flex-basis: 100%;
        order: 3;
    }
    .ss6-rail-track > li {
        width: calc((100% - clamp(8px, 0.85vw, 18px)) / 2);
    }
}
@media (max-width: 760px) {
    .ss6 {
        padding-top: calc(var(--ss6-seam) * 0.26 + 16px);
    }
    .ss6-inner {
        width: min(100% - 24px, 620px);
    }
    /* man hep thi cho anh tieu de tran ra sat mep, khong thi chu bi ti */
    .ss6-title {
        width: 104%;
        max-width: none;
        margin-left: -2%;
    }
    .ss6-board {
        padding: 12px;
    }
    .ss6-col {
        padding: 10px 6px;
    }
    .ss6-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .ss6-rail-track > li {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ss6-title,
    .ss6-board,
    .ss6.is-visible .ss6-social-card {
        opacity: 1;
        transition: none;
        translate: none;
        animation: none;
    }
    .ss6-rail-track {
        transition: none;
    }
    .ss6-shot:hover,
    .ss6-social-card:hover {
        transform: none;
    }
}


/* =====================================================
   SS7 - DAI KEU GOI TAI GAME
   Dai ngang mong o cuoi trang: 2 chibi gac len mep trai, cau keu goi,
   nut CHOI NGAY (dung lai khung .hero-cta cua banner) va 3 nut tai.
   ===================================================== */
.ss7 {
    position: relative;
    /* padding-top rong hon padding-bottom, nhung chi vua du chua phan chibi troi
       len khoi dai (chibi cao ~10.4vw, dai cao ~6.6vw) - rong hon nua la ho ra
       mot mang trong giua ss6 va dai. */
    padding: clamp(52px, 4.6vw, 90px) 0 clamp(38px, 3.6vw, 70px);
    background: var(--bg);
}
.ss7-inner {
    width: min(1740px, calc(100% - 40px));
    margin: 0 auto;
}
/* --- dai giay hong: vien vang doi + hai vet hoa dao mo o hai dau --- */
.ss7-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-left chua cho 2 chibi; man hep se tra lai o media query */
    padding: clamp(14px, 1.3vw, 26px) clamp(20px, 2vw, 40px) clamp(14px, 1.3vw, 26px) clamp(160px, 16vw, 320px);
    gap: clamp(14px, 1.5vw, 32px);
    border: 1px solid rgba(176, 120, 48, 0.62);
    border-radius: 12px;
    background:
        radial-gradient(ellipse 40% 120% at 6% 50%, rgba(255, 198, 214, 0.8), transparent 70%),
        radial-gradient(ellipse 34% 120% at 97% 50%, rgba(255, 190, 208, 0.7), transparent 72%),
        radial-gradient(circle at 50% 120%, rgba(255, 222, 205, 0.6), transparent 58%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(251, 236, 229, 0.96));
    box-shadow:
        0 20px 44px rgba(72, 30, 12, 0.24),
        0 0 0 1px rgba(255, 238, 187, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.74),
        inset 0 0 56px rgba(196, 90, 60, 0.09);
}
/* vien vang thu 2 thut vao, cung ngon ngu voi bang giay ss6 */
.ss7-band::before {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    content: "";
    border: 1px solid rgba(176, 120, 48, 0.34);
    border-radius: 7px;
    pointer-events: none;
}
/* --- 2 chibi gac len mep trai --- */
.ss7-cast {
    position: absolute;
    bottom: 0;
    left: clamp(6px, 0.8vw, 16px);
    /* cao hon dai nen phai cho troi len tren; pointer-events:none de khong chan nut */
    width: clamp(160px, 16vw, 320px);
    height: 100%;
    pointer-events: none;
}
.ss7-cast img {
    position: absolute;
    bottom: clamp(-10px, -0.6vw, -4px);
    width: auto;
    height: clamp(104px, 10.4vw, 200px);
    filter: drop-shadow(0 8px 16px rgba(96, 40, 20, 0.32));
}
.ss7-cast-a {
    left: 0;
    z-index: 2;
}
/* con thu 2 lui ra sau va thap hon mot chut cho cum co lop */
.ss7-cast-b {
    left: clamp(74px, 7.6vw, 148px);
    z-index: 1;
    height: clamp(92px, 9.2vw, 178px);
}

/* --- cau keu goi: dong nho lam nhan, dong lon lam cau hoi --- */
.ss7-copy {
    display: grid;
    margin: 0;
    gap: clamp(2px, 0.25vw, 6px);
    font-family: "Noto Serif", "Times New Roman", serif;
    line-height: 1.2;
    text-align: left;
}
.ss7-eyebrow {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.55vw, 11px);
    color: #a8451c;
    font-size: clamp(9px, 0.72vw, 14px);
    font-weight: 800;
    letter-spacing: clamp(1px, 0.16vw, 3px);
    text-transform: uppercase;
}
/* 2 vien kim cuong vang kep dong nhan, lay lai motif cua bien ten ss6 */
.ss7-eyebrow::before,
.ss7-eyebrow::after {
    width: clamp(5px, 0.4vw, 8px);
    height: clamp(5px, 0.4vw, 8px);
    background: linear-gradient(135deg, #f0cd85, #b57f2c);
    content: "";
    rotate: 45deg;
}
.ss7-copy strong {
    color: #7d0f07;
    font-size: clamp(15px, 1.35vw, 27px);
    font-weight: 800;
    letter-spacing: clamp(0.4px, 0.06vw, 1.2px);
    text-shadow: 0 1px 0 rgba(255, 246, 232, 0.8);
    text-transform: uppercase;
}

/* --- nut CHOI NGAY: khung nut do dung chung voi banner/header --- */
.ss7-cta {
    --btn-h: clamp(42px, 3.8vw, 74px);
    position: relative;
    /* z-index:0 mo stacking context rieng, de quang sang o ::before (z-index -1)
       nam duoi nut nhung van tren nen dai */
    z-index: 0;
    flex: 0 0 auto;
    /* Chu phai vua trong min-width = --btn-h * 3.351, neu khong khung bi keo ngang
       va hoa van hai dau nut se meo. Nen font + letter-spacing + padding deu nho
       hon ban o banner. */
    padding: 0 clamp(10px, 0.9vw, 18px);
    font-size: clamp(11px, 0.92vw, 18px);
    letter-spacing: clamp(1.2px, 0.16vw, 3px);
    line-height: 1.2;
}
/* quang sang am phia sau nut cho no noi len khoi nen hong */
.ss7-cta::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 124%;
    height: 165%;
    content: "";
    background: radial-gradient(ellipse at center, rgba(214, 60, 34, 0.3), transparent 66%);
    pointer-events: none;
    translate: -50% -50%;
}

/* --- vach vang ngan giua nut CHOI NGAY va cum nut tai --- */
.ss7-sep {
    width: 1px;
    height: clamp(30px, 2.8vw, 56px);
    flex: 0 0 auto;
    background: linear-gradient(180deg, transparent, rgba(176, 120, 48, 0.6) 22%, rgba(176, 120, 48, 0.6) 78%, transparent);
}

/* --- 3 nut tai --- */
.ss7-stores {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 0.8vw, 16px);
}
/* chua gan link trong admin -> lam mo, khoi dan ra trang trong */
.ss7 .store-btn.disabled,
.ss7-cta.disabled {
    cursor: default;
    filter: grayscale(0.35);
    opacity: 0.55;
}
.ss7 .store-btn.disabled:hover,
.ss7-cta.disabled:hover {
    filter: grayscale(0.35);
    transform: none;
}

@media (max-width: 1280px) {
    /* het cho cho 1 hang: cho cum nut xuong dong nhung van giu chibi ben trai */
    .ss7-band {
        flex-wrap: wrap;
        padding-left: clamp(140px, 15vw, 240px);
        gap: clamp(10px, 1.2vw, 20px);
    }
    .ss7-sep {
        display: none;
    }
}
@media (max-width: 860px) {
    .ss7 {
        padding-top: clamp(52px, 13vw, 88px);
    }
    /* het cho cho chibi dung canh: cho no gac len GOC TREN va tra lai padding trai */
    .ss7-band {
        flex-direction: column;
        padding: clamp(54px, 13vw, 82px) 16px 20px;
        text-align: center;
    }
    .ss7-cast {
        top: clamp(-46px, -11vw, -70px);
        bottom: auto;
        left: 50%;
        width: clamp(150px, 46vw, 240px);
        height: auto;
        translate: -50% 0;
    }
    .ss7-cast img {
        position: static;
        display: inline-block;
        height: clamp(74px, 20vw, 110px);
        vertical-align: bottom;
    }
    .ss7-cast-b {
        margin-left: clamp(-16px, -4vw, -8px);
    }
    .ss7-copy {
        justify-items: center;
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ss7-cta:hover {
        transform: none;
    }
}

/* =====================================================
   THANH LOC SU KIEN (trang /su-kien)
   bg-filter.png 2116x188, phan nhin thay x 12..2104 / y 12..181 -> ty le 12.312
   bt-filter.png 2076x758, phan nhin thay x 36..2033 / y 157..561 -> ty le 4.933
   (do bang PHP GD). Khung va nut deu ve o ::before phong to theo % de giu dung
   ty le anh goc, khong dat truc tiep lam background cua box.
   ===================================================== */
.event-filter {
    position: relative;
    /* z-index:0 mo stacking context rieng, neu khong lop khung o ::before
       (z-index -1) se chui xuong duoi nen cua .section va mat hut. */
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 clamp(22px, 2.4vw, 44px);
    /* Hai dau khung khong doi xung: dau trai chi co vien kim cuong (~6% be ngang),
       dau phai con them cum may an sau vao trong (~11%). Chua le lech nhau thi
       nhan cuoi moi khong de len hoa van. */
    padding: 0 7% 0 3%;
    aspect-ratio: 2093 / 170;
}
.event-filter::before {
    position: absolute;
    top: -7.06%; /* 12 / 170 */
    left: -0.57%; /* 12 / 2093 */
    z-index: -1;
    width: 101.1%; /* 2116 / 2093 */
    height: 110.6%; /* 188 / 170 */
    content: "";
    background: url("/assets/game/ui/bg-filter.webp") center / 100% 100% no-repeat;
    pointer-events: none;
}
.event-filter ul {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    /* gap 0: cac muc phai dinh sat nhau thi vach ngan (ve o mep trai moi li) moi
       roi dung giua hai nhan. Khoang tho da co san trong padding cua .event-filter-btn. */
    gap: 0;
    list-style: none;
}
/* flex-basis: auto (khong phai 0) - moi muc lay du be rong chu cua no truoc, phan
   du con lai moi chia deu. Ep cot bang nhau thi nhan dai nhat ("Su kien cong dong")
   bi tran ra ngoai o, con nhan ngan lai thua cho. Vach ngan ve o ranh gioi o nen
   khoang trong hai ben moi vach van bang nhau. */
.event-filter li {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}
.event-filter li + li::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 46%;
    content: "";
    transform: translateY(-50%);
    /* mo dan hai dau cho vach khong cat ngang cung ngac */
    background: linear-gradient(transparent, rgba(150, 104, 40, 0.5), transparent);
}
.event-filter-btn {
    position: relative;
    z-index: 0;
    display: block;
    /* Le ngang vua du de moi cot con khoang ho hai ben chu, khong dinh vao vach
       ngan. Nhan day du ("Su kien cong dong") la cai dai nhat quyet dinh con so. */
    padding: clamp(9px, 0.95vw, 15px) clamp(6px, 0.7vw, 14px);
    color: #6b4a24;
    /* thua font sans cua body, dong bo voi phan con lai cua trang */
    font-family: inherit;
    font-size: clamp(12px, 0.95vw, 16px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transition: color 0.22s ease;
}
.event-filter-btn:hover {
    color: #b5241a;
}
/* nut dang chon: khung do bt-filter.png, cung ve o ::before de khong meo hoa van */
.event-filter-btn.is-active {
    color: #ffeac2;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(96, 12, 6, 0.75);
}
.event-filter-btn.is-active::before {
    position: absolute;
    top: -38.77%; /* 157 / 405 */
    left: -1.8%; /* 36 / 1998 */
    z-index: -1;
    width: 103.9%; /* 2076 / 1998 */
    height: 187.2%; /* 758 / 405 */
    content: "";
    background: url("/assets/game/ui/bt-filter.webp") center / 100% 100% no-repeat;
    pointer-events: none;
}

/* Khung anh qua det de nhet 5 muc khi man hep -> bo anh, dung khung CSS va cho
   xuong dong. */
@media (max-width: 900px) {
    .event-filter {
        padding: clamp(10px, 2vw, 16px);
        aspect-ratio: auto;
        border: 1px solid rgba(176, 120, 48, 0.6);
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(250, 238, 219, 0.93));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    }
    .event-filter::before {
        display: none;
    }
    .event-filter ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    /* Da xuong dong thanh cac vien roi thi bo chia cot deu va bo vach ngan -
       de nguyen thi muc cuoi cua moi dong bi keo dai va vach ngan hien lung tung
       o dau dong. */
    .event-filter li {
        flex: 0 1 auto;
    }
    .event-filter li + li::before {
        display: none;
    }
    .event-filter-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
    .event-filter-btn.is-active {
        border-radius: 6px;
        background: linear-gradient(180deg, #c22a16, #8c1109);
        box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.6);
    }
    .event-filter-btn.is-active::before {
        display: none;
    }
}

/* ==========================================================================
   Trang Hiep Khach - bang danh sach nam trong khung cuon bg-fm-hk.png
   ========================================================================== */

.visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Khung cuon. Dung border-image chu khong phai background: de background-size
   100% 100% thi 4 goc hoa van bi keo dan thanh met khi noi dung cao. border-image
   giu nguyen ti le goc, chi keo phan canh. Vung giua (fill) chinh la nen giay -
   no lam luon nen doc cho the, khoi bi tranh SS2 ben duoi lam roi mat. */
/* Rong hon .container mac dinh (1160px) - cung cach .ss3-inner dang lam: man
   1920 ma bo khung o 1160 thi hai ben trong hoac, ma the lai bi bop nho. */
.hk-container {
    width: min(1560px, calc(100% - 40px));
}
.hk-board {
    border: 52px solid transparent;
    border-image: url("/assets/game/ui/bg-fm-hk.webp") 160 fill / 52px / 0 stretch;
}
.hk-board-inner {
    padding: 4px 10px 18px;
}

/* --- Thanh cong cu --- */
.hk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.hk-tabs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}
/* Nut tab dung anh khay ngoc thay vi ve bang CSS.
   Dung border-image chu khong phai background: nhan tab dai ngan khac nhau
   ("Tat ca" vs "Quyen Vuong"), neu keo ca tam anh cho vua thi hai dau hoa van bi
   bop met. border-image cat 2 dau ra lam vien trai/phai giu nguyen ti le, chi
   keo dan phan giua.
   Anh nguon la ban da cat het le trong suot va chuan hoa ve cung khung 640x172
   (bt-filter-normal / bt-filter-hover); 2 file goc bt-filter-1.png va
   bt-filter2.png co le trong suot lech nhau nen dung thang se bi nhay hinh. */
/* Dung chung cho tab Class (/hiep-khach) va nut loc tien do (/su-kien) - hai cho
   phai giong het nhau nen de chung mot bo luat, sua mot lan an ca hai. */
.hk-tab,
.event-status-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 0 solid transparent;
    /* Be rong 2 dau hoa van phai ty le voi chieu cao nut (anh goc 640x172 -> ti le
       cap la 0.41), khong thi hoa van bi det hoac phinh. 44 * 0.41 ~ 18px. */
    border-right-width: 18px;
    border-left-width: 18px;
    border-image: url("/assets/game/ui/bt-filter-normal.webp") 0 11% fill / 0 18px / 0 stretch;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.hk-tab:hover,
.hk-tab:focus-visible,
.hk-tab.is-active,
.event-status-btn:hover,
.event-status-btn:focus-visible,
.event-status-btn.is-active {
    border-image-source: url("/assets/game/ui/bt-filter-hover.webp");
    color: #fff4dd;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
}
.hk-tab:hover,
.event-status-btn:hover {
    transform: translateY(-1px);
}

.hk-toolbar-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
/* cao bang .hk-tab (44px) cho ca hang toolbar thang mep */
.hk-sort select,
.hk-filter-btn {
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 252, 245, 0.9);
    color: var(--ink-soft);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.hk-sort select:hover,
.hk-filter-btn:hover {
    border-color: var(--gold);
}
.hk-filter-btn.has-active {
    border-color: var(--gold);
    background: #fff8e8;
}
.hk-filter-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    text-align: center;
}
.hk-view {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.hk-view button {
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 252, 245, 0.9);
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.hk-view button + button {
    border-left: 1px solid var(--line);
}
.hk-view button.is-active {
    background: linear-gradient(180deg, #c22a16, #8c1109);
    color: #fff6e2;
}

/* --- Panel 4 bo loc phu --- */
.hk-filter-panel {
    display: grid;
    grid-template-rows: 0fr;
    margin-bottom: 0;
    transition: grid-template-rows 0.22s ease, margin-bottom 0.22s ease;
}
.hk-filter-panel.open {
    grid-template-rows: 1fr;
    margin-bottom: 18px;
}
.hk-filter-body {
    overflow: hidden;
    min-height: 0;
}
.hk-filter-panel.open .hk-filter-body {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 252, 245, 0.92);
}
.hk-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.hk-filter-grid label {
    display: block;
}
.hk-filter-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hk-filter-grid select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 14px;
}
.hk-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}
.hk-filter-actions span {
    margin-right: auto;
    color: var(--muted);
    font-size: 14px;
}

/* --- Luoi the --- */
.hk-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.hk-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8, #f6ecd9);
    box-shadow: 0 3px 10px rgba(90, 60, 20, 0.09);
    transition:
        transform 0.32s cubic-bezier(0.22, 0.7, 0.3, 1),
        box-shadow 0.32s cubic-bezier(0.22, 0.7, 0.3, 1),
        border-color 0.32s cubic-bezier(0.22, 0.7, 0.3, 1);
}
/* focus-within de nguoi dung ban phim Tab toi cung thay hieu ung nhu di chuot */
.hk-card:hover,
.hk-card:focus-within {
    transform: translateY(-7px);
    border-color: var(--gold);
    /* bong do + mot quang vang nhat cho giong anh sang den long */
    box-shadow: 0 14px 28px rgba(90, 60, 20, 0.22), 0 0 0 1px rgba(199, 148, 63, 0.35),
        0 0 22px rgba(239, 200, 120, 0.35);
}
.hk-card-art {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #e9dcc4, #d9c7a6);
}
.hk-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.hk-card:hover .hk-card-art img,
.hk-card:focus-within .hk-card-art img {
    transform: scale(1.07);
}
/* Dai sang quet cheo qua tranh mot lan khi ro chuot vao */
.hk-card-art::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-120%);
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.42) 50%,
        transparent 62%
    );
    pointer-events: none;
}
.hk-card:hover .hk-card-art::after,
.hk-card:focus-within .hk-card-art::after {
    transform: translateX(120%);
    transition: transform 0.75s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.hk-rarity {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    min-width: 30px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1),
        box-shadow 0.28s ease;
}
.hk-card:hover .hk-rarity,
.hk-card:focus-within .hk-rarity {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
/* Mau badge theo pham chat */
.hk-r-ssr .hk-rarity { background: linear-gradient(180deg, #f0b64a, #b9761a); }
.hk-r-ss .hk-rarity  { background: linear-gradient(180deg, #f08b3a, #c2410c); }
.hk-r-s .hk-rarity   { background: linear-gradient(180deg, #4f9de0, #1d5fa8); }
.hk-r-a .hk-rarity   { background: linear-gradient(180deg, #a97bd8, #6d34a8); }
.hk-r-b .hk-rarity   { background: linear-gradient(180deg, #4bb0a6, #1c7a72); }
.hk-r-na .hk-rarity  { background: linear-gradient(180deg, #9c9184, #6b6155); }

.hk-quick {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 224, 170, 0.75);
    border-radius: 50%;
    background: linear-gradient(180deg, #c22a16, #8c1109);
    color: #fff6e2;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1),
        opacity 0.28s ease;
}
.hk-quick:hover {
    transform: scale(1.14);
}
/* Chi an nut xem nhanh tren thiet bi co con tro. May cam ung khong hover duoc
   nen phai de nut hien san, khong thi mat han chuc nang. */
@media (hover: hover) {
    .hk-quick {
        transform: scale(0.6);
        opacity: 0;
    }
    .hk-card:hover .hk-quick,
    .hk-card:focus-within .hk-quick {
        transform: scale(1);
        opacity: 1;
    }
    .hk-card:hover .hk-quick:hover {
        transform: scale(1.14);
    }
}
.hk-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 12px 13px;
    text-align: center;
}
.hk-card-body h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.25;
}
.hk-card-body h3 a {
    color: var(--red);
    text-decoration: none;
}
.hk-card-body h3 a:hover {
    color: var(--red-bright);
}
.hk-tagline {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}
.hk-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 10px;
}
.hk-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-size: 12px;
}
.hk-chip i {
    color: var(--gold-deep);
    font-style: normal;
}
/* Nut "Xem chi tiet" tren the (ca /hiep-khach va /su-kien) deo chung khay ngoc
   voi tab Class, nut loc tien do va phan trang: kem la trang thai thuong, do khi
   ro chuot. De chung mot bo luat de hai trang khong the lech nhau. */
.hk-cta,
.sk-card-cta {
    min-height: 40px;
    gap: 5px;
    padding: 8px 12px;
    border: 0 solid transparent;
    border-right-width: 16px;
    border-left-width: 16px;
    border-image: url("/assets/game/ui/bt-filter-normal.webp") 0 11% fill / 0 16px / 0 stretch;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.28s ease;
}
.hk-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hk-cta span,
.sk-card-cta span {
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
}
/* Ro chuot vao bat cu dau tren the thi nut cung doi khay va mui ten nhich sang */
.hk-cta:hover,
.sk-card-cta:hover,
.hk-card:hover .hk-cta,
.hk-card:focus-within .hk-cta,
.sk-card:hover .sk-card-cta,
.sk-card:focus-within .sk-card-cta {
    border-image-source: url("/assets/game/ui/bt-filter-hover.webp");
    color: #fff4dd;
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
}
.hk-card:hover .hk-cta span,
.hk-card:focus-within .hk-cta span {
    transform: translateX(4px);
}
.hk-card-body h3 a {
    transition: color 0.28s ease;
}

/* --- Kieu danh sach --- */
.hk-grid.is-list {
    grid-template-columns: 1fr;
    gap: 10px;
}
.hk-grid.is-list .hk-card {
    flex-direction: row;
    align-items: stretch;
}
.hk-grid.is-list .hk-card-art {
    flex: 0 0 108px;
    aspect-ratio: auto;
}
.hk-grid.is-list .hk-quick {
    display: none;
}
.hk-grid.is-list .hk-card-body {
    display: grid;
    align-items: center;
    justify-items: start;
    gap: 4px 16px;
    grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) auto auto;
    text-align: left;
}
.hk-grid.is-list .hk-card-body h3 {
    margin: 0;
}
.hk-grid.is-list .hk-tagline,
.hk-grid.is-list .hk-chips {
    margin: 0;
}
.hk-grid.is-list .hk-chips {
    justify-content: flex-start;
}
.hk-grid.is-list .hk-cta {
    white-space: nowrap;
}

.hk-grid .hero-empty-state {
    grid-column: 1 / -1;
}

/* Nguoi dung bat giam chuyen dong: bo het dich chuyen va dai sang quet, chi giu
   lai doi mau + vien vang de van biet la dang ro chuot vao the nao. */
@media (prefers-reduced-motion: reduce) {
    .hk-card,
    .hk-card-art img,
    .hk-rarity,
    .hk-quick,
    .hk-cta span {
        transition: none;
    }
    .hk-card:hover,
    .hk-card:focus-within {
        transform: none;
    }
    .hk-card:hover .hk-card-art img,
    .hk-card:focus-within .hk-card-art img,
    .hk-card:hover .hk-rarity,
    .hk-card:focus-within .hk-rarity,
    .hk-card:hover .hk-cta span,
    .hk-card:focus-within .hk-cta span {
        transform: none;
    }
    .hk-card-art::after {
        display: none;
    }
    @media (hover: hover) {
        .hk-quick {
            transform: none;
            opacity: 1;
        }
    }
}

@media (max-width: 1200px) {
    .hk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .hk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hk-board { border-width: 34px; border-image-width: 34px; }
    .hk-grid.is-list .hk-card-body { grid-template-columns: 1fr auto; }
    .hk-grid.is-list .hk-tagline { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    /* bam theo le 24px cua .container tren mobile, khong de rieng 40px */
    .hk-container { width: min(1560px, calc(100% - 24px)); }
    .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hk-board { border-width: 20px; border-image-width: 20px; }
    .hk-board-inner { padding: 2px 0 12px; }
    .hk-toolbar { gap: 10px; }
    .hk-toolbar-right { flex-wrap: wrap; width: 100%; }
    .hk-sort { flex: 1 1 140px; }
    .hk-sort select { width: 100%; }
    /* Vien trai/phai giu cho 2 dau hoa van nen padding phai bot lai, khong thi
       nut phinh ngang. Vien cung hep theo chieu cao nut. */
    .hk-tab,
    .event-status-btn {
        min-height: 38px;
        padding: 6px 7px;
        border-right-width: 16px;
        border-left-width: 16px;
        border-image-width: 0 16px;
        font-size: 14px;
    }
    /* thap theo .hk-tab tren mobile de hang toolbar van thang mep */
    .hk-sort select,
    .hk-filter-btn {
        height: 38px;
    }
    .hk-view button {
        width: 38px;
        height: 38px;
    }
    .hk-card-body { padding: 9px 9px 11px; }
    .hk-card-body h3 { font-size: 14px; }
    .hk-tagline { font-size: 12px; }
    .hk-grid.is-list .hk-card-art { flex-basis: 84px; }
}

/* ==========================================================================
   Trang /su-kien - thanh loc tien do + the su kien
   Markup den tu nhanh 3b99f9c (posts/index.blade.php) nhung nhanh do khong kem
   CSS, nen phan nay viet bu. Thanh .event-filter (loc theo nhom) da co san o
   tren, duoi day chi lo phan con thieu.
   ========================================================================== */

/* Rong hon .container mac dinh (1160px) - cung cach .hk-container ben trang Hiep
   Khach va .ss3-inner o trang chu: man 1920 ma bo o 1160 thi hai ben trong hoac.
   Chi ap cho /su-kien, cac chuyen muc tin tuc khac giu nguyen be ngang cu. */
.sk-container {
    width: min(1560px, calc(100% - 40px));
}
/* Keo vung noi dung chom len tren banner de no do ngay sau doan chu, thay vi
   phai cho het khoang may trong o day banner. Khong bu lai bang padding - chinh
   noi dung phai di len. z-index 2 cho no noi tren banner, va nen phai trong suot
   o doan dau de banner van hien qua. */
.section.section-art-lift {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--sk-overlap));
    background: linear-gradient(
        to bottom,
        transparent 0,
        transparent var(--sk-overlap),
        var(--bg) 26vw
    );
}
.event-toolbar {
    display: flex;
    /* nowrap: hai thanh loc luon nam ngang canh nhau. Chi cho xuong dong o
       breakpoint 1024px ben duoi, khi khung vang bi bop qua hep. */
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}
.event-toolbar .event-filter {
    /* basis 0 + grow: khung vang an not phan con lai sau khi cum pill lay du cho,
       thay vi doi lay 420px roi day cum pill xuong dong. */
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}
.event-toolbar .event-status-filter {
    flex: 0 0 auto;
}
.event-toolbar .event-status-filter ul {
    flex-wrap: nowrap;
}

/* --- Loc theo tien do: pill nho nam canh thanh vang --- */
.event-status-filter {
    flex: 0 0 auto;
}
.event-status-filter ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}
/* Hinh thuc cua .event-status-btn dung chung voi .hk-tab (khay ngoc bt-filter),
   khai bao o khoi trang Hiep Khach phia tren. */

/* --- The su kien --- */
.sk-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8, #f7eedd);
    box-shadow: 0 3px 12px rgba(90, 60, 20, 0.1);
    transition:
        transform 0.32s cubic-bezier(0.22, 0.7, 0.3, 1),
        box-shadow 0.32s cubic-bezier(0.22, 0.7, 0.3, 1),
        border-color 0.32s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.sk-card:hover,
.sk-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 14px 28px rgba(90, 60, 20, 0.2), 0 0 18px rgba(239, 200, 120, 0.3);
}
.sk-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
}
.sk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.sk-card:hover .sk-card-media img,
.sk-card:focus-within .sk-card-media img {
    transform: scale(1.06);
}
/* Dai toi mo dan o dinh anh. Anh su kien la anh chup trong game, day dac UI vang
   va thanh mau - nhan dat truc tiep len do thi chim han. Dai nay cho nhan mot nen
   toi on dinh de doc, ma phan tranh ben duoi van nguyen. */
.sk-card-media::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 44%;
    content: "";
    background: linear-gradient(
        rgba(18, 9, 5, 0.66),
        rgba(18, 9, 5, 0.3) 55%,
        transparent
    );
    pointer-events: none;
}

/* Nhan nhom (trai) va nhan tien do (phai) de tren anh */
.sk-card-tag,
.sk-card-state {
    position: absolute;
    z-index: 2;
    top: 9px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.4);
}
/* Mau nhan: dam hon han ban dau. Xam nhat (#9c9184) tren anh chup game gan nhu
   khong doc duoc, nen ha do sang xuong de chu trang bat len. */
.sk-card-tag {
    left: 9px;
    background: linear-gradient(180deg, #6e6355, #3e362d);
}
.sk-card-tag.is-noi-bat { background: linear-gradient(180deg, #e0a231, #96590d); }
.sk-card-tag.is-ingame { background: linear-gradient(180deg, #3d86c9, #16457c); }
.sk-card-tag.is-cong-dong { background: linear-gradient(180deg, #35998f, #115a54); }
.sk-card-tag.is-khac { background: linear-gradient(180deg, #6e6355, #3e362d); }

.sk-card-state {
    right: 9px;
    background: linear-gradient(180deg, #6e6355, #3e362d);
}
.sk-card-state.is-dang-dien-ra { background: linear-gradient(180deg, #3fa457, #14652b); }
.sk-card-state.is-sap-dien-ra { background: linear-gradient(180deg, #d5842a, #8f470a); }
.sk-card-state.is-da-ket-thuc { background: linear-gradient(180deg, #6e6355, #3e362d); }

.sk-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 17px;
}
.sk-card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}
.sk-card-body h3 a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sk-card-body h3 a:hover {
    color: var(--red-bright);
}
.sk-card-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 600;
}
.sk-card-date svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    /* SVG trong markup chi co the "path" khong to mau -> phai to bang stroke */
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sk-card-excerpt {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
/* Hinh thuc khay ngoc khai bao chung voi .hk-cta o khoi trang Hiep Khach phia
   tren; day chi con phan bo tri rieng cua the su kien. */
.sk-card-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
}
.sk-card:hover .sk-card-cta span,
.sk-card:focus-within .sk-card-cta span {
    transform: translateX(4px);
}

@media (max-width: 1500px) {
    /* Duoi moc nay, sau khi tru cho cum nut tien do (~610px) thi khung vang chi
       con ~730px - khong du cho 5 nhan day du, khoang ho tut xuong ~10px. Nen tra
       ve xep 2 tang: khung vang an tron be ngang, ho giua cac nhan len ~100px. */
    .event-toolbar {
        flex-wrap: wrap;
    }
    .event-toolbar .event-filter {
        flex: 1 1 100%;
    }
    /* Phai cho nav chiem tron be ngang, khong thi no tu no rong bang max-content
       (4 nut mot hang) roi tran ra ngoai khung, va ul ben trong chang co ly do
       gi phai xuong dong. */
    .event-toolbar .event-status-filter {
        flex: 1 1 100%;
        min-width: 0;
    }
    .event-toolbar .event-status-filter ul {
        flex-wrap: wrap;
    }
}
@media (max-width: 980px) {
    .card-grid.sk-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    /* bam theo le 24px cua .container tren mobile, khong de rieng 40px */
    .sk-container {
        width: min(1560px, calc(100% - 24px));
    }
    .card-grid.sk-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .sk-card-body h3 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-card,
    .sk-card-media img,
    .sk-card-cta span {
        transition: none;
    }
    .sk-card:hover,
    .sk-card:focus-within {
        transform: none;
    }
    .sk-card:hover .sk-card-media img,
    .sk-card:focus-within .sk-card-media img,
    .sk-card:hover .sk-card-cta span,
    .sk-card:focus-within .sk-card-cta span {
        transform: none;
    }
}

/* --- Dai moi tham gia cuoi trang /su-kien --- */
/* Anh .webp la ban da cat bo 180px nui may trong o giua anh goc bg-bt-sk.png
   (giu y0-379 la khoi chu, noi truc tiep vao y560-723 la dai song do, co hoa 50px
   o cho noi) -> 2171x544 thay vi 2171x724. Nho vay chu nam gan footer, khong con
   khoang tranh trong o giua.
   Khoa dung ty le va dung background-size 100% 100% (khong phai cover) de anh
   khong bao gio bi crop - co crop la mat chu. Nho vay moi don vi % ben trong
   khop chinh xac voi toa do tren anh, dat duoc nut vao dung cho trong o nua phai. */
.sk-join {
    position: relative;
    /* z-index:0 mo stacking context rieng, neu khong lop tranh o ::before
       (z-index -1) se chui xuong duoi nen trang va mat hut. */
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    aspect-ratio: 2171 / 544;
    /* 23% : dat nut vao khoang troi/nui thoang, tranh de len cum den ben phai */
    padding-right: 23%;
}
/* Tranh dat o ::before chu khong phai background cua chinh .sk-join, vi can MASK
   cho mep tren mo dan vao nen giay - de nguyen thi canh tren cua tranh bat dau
   dot ngot thanh mot vet cat ngang. Mask tren chinh element se lam mo ca cai nut
   ben trong, nen phai tach ra lop rieng. */
.sk-join::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: url("/assets/game/ui/bg-bt-sk.webp") center / 100% 100% no-repeat;
    /* 4vw: du de hoa vao nen giay ma chua cham vao dong "DONG HANH CUNG"
       (chu bat dau o y110/544 = 20% chieu cao dai). */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4vw);
    mask-image: linear-gradient(to bottom, transparent 0, #000 4vw);
    pointer-events: none;
}

/* Nut deo khay ngoc do - cung chat lieu voi tab, nut loc va nut "Xem chi tiet" */
.sk-join-btn {
    display: flex;
    min-width: 18%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.9vw, 16px) clamp(4px, 0.6vw, 12px);
    border: 0 solid transparent;
    border-right-width: clamp(12px, 1.5vw, 30px);
    border-left-width: clamp(12px, 1.5vw, 30px);
    border-image: url("/assets/game/ui/bt-filter-hover.webp") 0 11% fill /
        0 clamp(12px, 1.5vw, 30px) / 0 stretch;
    color: #ffeec4;
    text-align: center;
    text-decoration: none;
    transition: transform 0.26s cubic-bezier(0.22, 0.7, 0.3, 1), filter 0.26s ease;
}
.sk-join-btn strong {
    font-size: clamp(11px, 1.35vw, 26px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(70, 8, 4, 0.75);
    text-transform: uppercase;
    white-space: nowrap;
}
.sk-join-btn span {
    margin-top: 0.35em;
    color: #f4d9a8;
    font-size: clamp(7px, 0.72vw, 13px);
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}
.sk-join-btn:hover,
.sk-join-btn:focus-visible {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.12) drop-shadow(0 0 12px rgba(255, 196, 110, 0.55));
}

/* Man hep: dai chi cao ~143px nen dong phu tut xuong 7px, khong doc duoc va con
   day nut phinh ngang. Bo dong phu, chi giu "Tham gia ngay". */
@media (max-width: 600px) {
    .sk-join-btn span {
        display: none;
    }
    .sk-join-btn strong {
        font-size: clamp(9px, 2.1vw, 15px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-join-btn {
        transition: none;
    }
    .sk-join-btn:hover,
    .sk-join-btn:focus-visible {
        transform: none;
    }
}

/* ============================================================
   POPUP QUANG BA LUC MO WEB (#promo-popup, mo/dong o site.js)
   Banner 1080x1920 (9:16) co vien trong suot, nen khung chi can giu dung ti le
   va lot vua man (theo chieu nao hep hon). Nut dong + 2 nut bam la anh roi, dat
   theo % do tren ban Demo.png goc 1080x1920 - doi banner thi do lai cac so nay:
     close.webp        110x100  tam (997, 302)
     nut 692x259       tam chu x=565; "Nhan Game Ngay" y=937, "Dang Ky Truoc" y=1787
   ============================================================ */
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    place-items: center;
}
.promo-popup.open {
    display: grid;
}
/* dang chay animation dong: da tra lai quyen bam cho trang ben duoi */
.promo-popup.closing {
    pointer-events: none;
}
.promo-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 6, 0.74);
}
.promo-popup-dialog {
    position: relative;
    width: min(100vw, 100vh * 0.5625);
    width: min(100vw, 100svh * 0.5625);
    aspect-ratio: 1080 / 1920;
}
.promo-popup-banner {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}
/* 6 ô quà (ảnh 302x294, khung vàng ~151px ở giữa) đặt vào khung nâu trống của Banner.png.
   Tâm khung trên banner 1080x1920: cột x = 155 / 331 / 511, hàng y = 1405 / 1583. */
.promo-popup-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
/* mỗi ô: span bọc ảnh (ảnh 302x294, khung vàng ~151px ở giữa, còn lại là quầng sáng) */
.promo-item {
    position: absolute;
    width: 27.96%;
    aspect-ratio: 302 / 294;
}
.promo-item img {
    display: block;
    width: 100%;
    height: 100%;
}
.promo-item:nth-child(1) { left: 0.37%;  top: 65.52%; }
.promo-item:nth-child(2) { left: 16.67%; top: 65.52%; }
.promo-item:nth-child(3) { left: 33.33%; top: 65.52%; }
.promo-item:nth-child(4) { left: 0.37%;  top: 74.79%; }
.promo-item:nth-child(5) { left: 16.67%; top: 74.79%; }
.promo-item:nth-child(6) { left: 33.33%; top: 74.79%; }
/* vòng sáng chạy quanh khung vàng: conic-gradient xoay (góc --promo-a), cắt thành viền
   mỏng bằng mask 2 lớp (content-box trừ khỏi toàn khối) */
@property --promo-a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.promo-item::after {
    content: "";
    position: absolute;
    inset: 23.5% 24%;
    padding: 2.2%;
    border-radius: 7%;
    background: conic-gradient(from var(--promo-a),
        transparent 0deg, transparent 250deg,
        rgba(255, 244, 190, .2) 290deg, #FFF6C8 335deg, #FFFFFF 350deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 4px #FFE27A) drop-shadow(0 0 8px rgba(255, 200, 60, .8));
    pointer-events: none;
}
/* mở popup: các ô quà bật ra lần lượt, sau đó vòng sáng chạy quanh lệch nhịp */
.promo-popup.open .promo-item {
    animation: promoItemIn 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(0.45s + var(--i) * 0.08s) backwards;
}
.promo-popup.open .promo-item::after {
    animation: promoItemRing 2.2s linear calc(var(--i) * -0.37s) infinite;
}
@keyframes promoItemIn {
    from { opacity: 0; transform: scale(0.4); }
}
@keyframes promoItemRing {
    to { --promo-a: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    .promo-popup.open .promo-item,
    .promo-popup.open .promo-item::after { animation: none; }
    .promo-item::after { display: none; }
}
.promo-popup-close,
.promo-popup-btn {
    position: absolute;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.promo-popup-close img,
.promo-popup-btn img {
    display: block;
    width: 100%;
    height: auto;
}
.promo-popup-close {
    top: 13.1%;
    left: 87.2%;
    width: 10.19%;
}
.promo-popup-close:hover,
.promo-popup-close:focus-visible {
    filter: brightness(1.15);
    transform: rotate(90deg);
}
.promo-popup-btn {
    left: 20.3%;
    width: 64.07%;
}
.promo-popup-btn.is-download {
    top: 42%;
}
.promo-popup-btn.is-register {
    top: 86.3%;
}
.promo-popup-btn:hover,
.promo-popup-btn:focus-visible {
    filter: brightness(1.12);
    transform: scale(1.04);
}
.promo-popup-close:focus-visible,
.promo-popup-btn:focus-visible {
    outline: none;
    filter: brightness(1.15) drop-shadow(0 0 6px #fff3c4);
}
/* --- animation ---
   Vao: nen toi mo dan -> banner phong to nay nhe -> nut dong xoay bat ra -> 2 nut
   truot len lan luot. Sau do 2 nut "tho" (phong nhe) va co vet sang quet qua.
   Animation vao chi dung fill-mode backwards: chay xong la tra transform lai cho
   :hover, de "both" thi transform cua keyframe cuoi de len hover mai mai.
   Vet sang la ::after, cat theo dung hinh nut bang mask anh nut (khong thi no
   quet thanh mot khoi chu nhat qua ca vung trong suot). ::after va img dung chung
   keyframe promoBtnPulse cung nhip de vet sang khong lech khoi nut khi phong. */
.promo-popup-btn.is-download {
    --promo-btn-mask: url("/assets/game/popup/nhan-game-ngay.webp");
    --promo-btn-delay: 0.55s;
}
.promo-popup-btn.is-register {
    --promo-btn-mask: url("/assets/game/popup/dang-ky-truoc.webp");
    --promo-btn-delay: 0.7s;
}
.promo-popup-btn img,
.promo-popup-btn::after {
    animation: promoBtnPulse 1.8s ease-in-out calc(var(--promo-btn-delay) + 0.5s) infinite;
}
.promo-popup-btn::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
            105deg,
            transparent 38%,
            rgba(255, 250, 225, 0.85) 50%,
            transparent 62%
        )
        no-repeat;
    background-size: 250% 100%;
    background-position: 160% 0;
    -webkit-mask: var(--promo-btn-mask) center / 100% 100% no-repeat;
    mask: var(--promo-btn-mask) center / 100% 100% no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
    animation:
        promoBtnPulse 1.8s ease-in-out calc(var(--promo-btn-delay) + 0.5s) infinite,
        promoBtnShine 3.2s ease-in-out calc(var(--promo-btn-delay) + 0.9s) infinite;
}
.promo-popup.open .promo-popup-backdrop {
    animation: videoBackdropIn 0.3s ease both;
}
.promo-popup.open .promo-popup-dialog {
    animation: promoPopupIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.promo-popup.open .promo-popup-close {
    animation: promoCloseIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s backwards;
}
.promo-popup.open .promo-popup-btn {
    animation: promoBtnIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--promo-btn-delay) backwards;
}
.promo-popup.closing .promo-popup-backdrop {
    animation: promoFadeOut 0.35s ease forwards;
}
.promo-popup.closing .promo-popup-dialog {
    animation: promoPopupOut 0.35s ease-in forwards;
}
@keyframes promoPopupIn {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(6%);
        filter: blur(6px) brightness(1.6);
    }
    60% {
        opacity: 1;
        filter: none;
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
@keyframes promoPopupOut {
    to {
        opacity: 0;
        transform: scale(0.82) translateY(4%);
    }
}
@keyframes promoFadeOut {
    to {
        opacity: 0;
    }
}
@keyframes promoCloseIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
}
@keyframes promoBtnIn {
    from {
        opacity: 0;
        transform: translateY(40%) scale(0.85);
    }
}
@keyframes promoBtnPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes promoBtnShine {
    0% {
        background-position: 160% 0;
    }
    45%,
    100% {
        background-position: -60% 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .promo-popup.open .promo-popup-backdrop,
    .promo-popup.open .promo-popup-dialog,
    .promo-popup.open .promo-popup-close,
    .promo-popup.open .promo-popup-btn,
    .promo-popup-btn img,
    .promo-popup-btn::after {
        animation: none;
    }
    .promo-popup-btn::after {
        display: none;
    }
    .promo-popup-close,
    .promo-popup-btn {
        transition: none;
    }
}




/* ==========================================================================
   UX BẢN THIẾT KẾ v2 (23/09/2026) – DANH SÁCH TIN (/tin-moi, /tin-tuc, /su-kien, /cam-nang)
   Tab chuyên mục, bài mới nhất nổi bật ở trang 1, lưới 3 cột / 2 cột (máy tính bảng) /
   1 hàng ảnh nhỏ bên trái (điện thoại). Giữ nguyên màu, khung giấy của trang con.
   ========================================================================== */
.cat-tabs {
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 250, 240, 0.92);
    box-shadow: 0 3px 12px rgba(90, 60, 20, 0.1);
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar {
    display: none;
}
.cat-tabs a {
    flex: none;
    padding: 9px 18px;
    border-radius: 7px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.cat-tabs a:hover {
    color: var(--red);
}
.cat-tabs a.is-active {
    color: #ffe6ab;
    background: linear-gradient(180deg, var(--red-bright), var(--red));
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
}

/* Bài nổi bật: ảnh 1.4 phần, chữ 1 phần; cùng khung giấy viền vàng với thẻ .sk-card */
.news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    overflow: hidden;
    margin: 0 0 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8, #f7eedd);
    box-shadow: 0 3px 12px rgba(90, 60, 20, 0.1);
}
.news-featured-media {
    display: block;
    min-height: 340px;
    overflow: hidden;
    background: var(--bg-soft);
}
.news-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.news-featured:hover .news-featured-media img {
    transform: scale(1.04);
}
.news-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 32px;
}
.news-featured-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, var(--red-bright), var(--red));
    font-size: 13px;
    font-weight: 800;
}
.news-featured-body h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}
.news-featured-body h2 a {
    color: var(--red);
}
.news-featured-body h2 a:hover {
    color: var(--red-bright);
}
.news-featured-body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.6;
}
.news-featured-body time {
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 600;
}
.news-search-note {
    margin: -6px 0 18px;
    color: var(--text-soft);
    font-size: 14px;
}
.news-search-note a {
    color: var(--red);
    font-weight: 700;
}
.news-empty {
    grid-column: 1 / -1;
    padding: 48px 16px;
    color: var(--text-soft);
    text-align: center;
}
@media (max-width: 1023px) {
    .news-featured {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-featured-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .news-featured-body {
        padding: 18px;
    }
    .news-featured-body h2 {
        font-size: 22px;
    }
}
/* Tablet 600–1023px: 2 cột */
@media (min-width: 600px) and (max-width: 1023px) {
    .card-grid,
    .card-grid.sk-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Điện thoại < 600px: mỗi hàng 1 bài, ảnh nhỏ bên trái, chữ bên phải; ẩn tóm tắt + nút */
@media (max-width: 599px) {
    .card-grid,
    .card-grid.sk-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .sk-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        border-radius: 10px;
    }
    .sk-card-media {
        aspect-ratio: auto;
        min-height: 96px;
    }
    .sk-card-media::before,
    .sk-card-tag,
    .sk-card-state {
        display: none;
    }
    .sk-card-body {
        padding: 10px 12px;
    }
    .sk-card-body h3 {
        display: -webkit-box;
        margin-bottom: 6px;
        overflow: hidden;
        font-size: 15px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .sk-card-date {
        margin: 0;
    }
    .sk-card-excerpt,
    .sk-card-cta {
        display: none;
    }
    .news-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }
    .news-card img {
        height: 100%;
        min-height: 96px;
    }
    .news-card .card-body {
        padding: 10px 12px;
    }
    .news-card .card-body h3 {
        margin: 4px 0 0;
        font-size: 16px;
    }
    .news-card .card-body p {
        display: none;
    }
    /* 4 tab chia đều bề ngang, không phải vuốt */
    .cat-tabs {
        width: 100%;
    }
    .cat-tabs a {
        flex: 1 1 auto;
        padding: 8px 6px;
        font-size: 13px;
        letter-spacing: 0;
        text-align: center;
    }
}

/* ==========================================================================
   UX v2 – CHI TIẾT BÀI VIẾT: đường dẫn, nhãn + ngày, chia sẻ / sao chép link, ảnh bìa,
   bài trước / bài sau, 3 bài liên quan; cột phải Tải game / Tin mới / Nhập Giftcode
   ========================================================================== */
.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--text-soft);
    font-size: 14px;
}
.crumb a:hover {
    color: var(--red);
}
.crumb span[aria-hidden] {
    opacity: 0.5;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 600;
}
.article-meta .news-featured-tag:hover {
    color: #fff;
    filter: brightness(1.1);
}
.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.article-share a,
.article-share button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-soft);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}
.article-share a:hover,
.article-share button:hover {
    color: var(--red);
    border-color: var(--red);
}
.article-share svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 24px;
    border-radius: 8px;
    object-fit: cover;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}
.article-content th {
    color: var(--ink);
    background: var(--bg-soft);
}
.article-content .bang,
.article-content .table-wrap {
    overflow-x: auto;
}
.article-content blockquote {
    margin: 20px 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--gold);
    color: var(--text-soft);
    font-style: italic;
}
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.article-nav a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-soft);
    background: var(--surface);
    font-size: 14px;
}
.article-nav a b {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
}
.article-nav a:hover b {
    color: var(--red);
}
.article-nav a.is-next {
    text-align: right;
}
.article-related {
    margin-top: 48px;
}
.article-related h2 {
    margin: 0 0 20px;
    font-size: 26px;
}
.article-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
/* khối cột phải: nền mực đậm viền vàng cho nổi trên giấy */
.side-box {
    padding: 20px;
    border: 1px solid rgba(199, 148, 63, 0.45);
    border-radius: 10px;
    color: #f1e6d0;
    background: linear-gradient(180deg, #241d15, #14100b);
    box-shadow: 0 8px 22px rgba(43, 35, 24, 0.18);
}
.article-layout aside .side-box h3 {
    margin: 0 0 12px;
    color: var(--gold-light);
    font-size: 18px;
}
.side-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.side-box li a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.45;
}
.side-box li a:hover {
    color: var(--gold-light);
}
.side-box li small {
    display: block;
    color: #a9946c;
    font-size: 12px;
}
.side-box p {
    margin: 0 0 14px;
    color: #cbc1ae;
    font-size: 14px;
    line-height: 1.55;
}
.side-box .btn {
    width: 100%;
}
.side-box-dl {
    display: grid;
    gap: 8px;
}
.side-box-dl a {
    display: grid;
    padding: 9px 14px;
    border: 2px solid #b8863f;
    border-radius: 6px;
    color: #2a2218;
    background: linear-gradient(#fdf1d8, #e3d2a8);
    box-shadow: inset 0 0 0 2px #fbf4e2;
    line-height: 1.2;
    transition: 0.2s ease;
}
.side-box-dl a:hover {
    color: #2a2218;
    border-color: var(--red);
    filter: brightness(1.05);
}
.side-box-dl small {
    font-size: 12px;
}
.side-box-dl b {
    font-size: 17px;
}
@media (max-width: 1023px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    /* điện thoại / máy tính bảng: thanh đáy đã có nút Tải game */
    .side-box-tai {
        display: none;
    }
}
@media (max-width: 599px) {
    .article-nav {
        grid-template-columns: minmax(0, 1fr);
    }
    .article-nav a.is-next {
        text-align: left;
    }
    .article-related h2 {
        font-size: 22px;
    }
}

/* ==========================================================================
   UX v2 – TRANG HIỆP KHÁCH: bộ lọc dạng chip (Phẩm chất / Hệ / Nghề), tìm tên, đếm,
   Bỏ lọc; lưới 6 cột (PC) / 4 (máy tính bảng) / 3 (điện thoại) / 2 (≤360px).
   Nằm trong khung giấy .hk-board sẵn có, dùng màu giấy / vàng / đỏ của trang con.
   ========================================================================== */
.hk-loc {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 250, 240, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.hk-loc-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}
.hk-loc-label {
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}
/* .hk-chips / .hk-chip trùng tên với nhãn trên thẻ cũ (khối "Luoi the" phía trên): đặt lại đủ thuộc tính */
.hk-loc .hk-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}
.hk-loc .hk-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    max-width: none;
    padding: 6px 14px;
    border: 1px solid rgba(147, 100, 28, 0.35);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}
.hk-loc .hk-chip:hover {
    border-color: var(--red);
    color: var(--red);
}
.hk-loc .hk-chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.hk-loc .hk-chip img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.hk-loc .hk-chip[aria-pressed="true"] {
    border-color: var(--red);
    color: #ffe6ab;
    background: linear-gradient(180deg, var(--red-bright), var(--red));
    text-shadow: 0 1px 2px rgba(80, 10, 4, 0.55);
}
.hk-loc-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.hk-tim {
    position: relative;
    flex: 1 1 260px;
    max-width: 380px;
}
.hk-tim svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    fill: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.hk-tim input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid rgba(147, 100, 28, 0.35);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface);
}
.hk-tim input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}
.hk-dem {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}
.hk-xoa-loc {
    padding: 6px 12px;
    border: 0;
    color: var(--red);
    background: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.hk-xoa-loc:hover {
    text-decoration: underline;
}
.hk-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.hk-the {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8, #f6ecd9);
    box-shadow: 0 3px 10px rgba(90, 60, 20, 0.09);
    transition:
        transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1),
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}
.hk-the[hidden] {
    display: none;
}
.hk-the:hover,
.hk-the:focus-visible {
    border-color: var(--c);
    box-shadow: 0 12px 24px rgba(90, 60, 20, 0.18);
    transform: translateY(-4px);
}
.hk-the-av {
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
        var(--bg-soft);
}
.hk-the-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hk-the-av i {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: 56px;
    font-style: normal;
    font-weight: 800;
}
.hk-the-pham {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(180deg, #9c9184, #6b6155);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
/* cùng bảng màu phẩm chất với thẻ cũ (.hk-r-* .hk-rarity) */
.hk-r-ur .hk-the-pham,
.hk-r-ssr .hk-the-pham { color: #fff3c4; border-color: #f4d68f; background: linear-gradient(180deg, #f0b64a, #b9761a); }
.hk-r-ss .hk-the-pham { background: linear-gradient(180deg, #f08b3a, #c2410c); }
.hk-r-s .hk-the-pham { background: linear-gradient(180deg, #4f9de0, #1d5fa8); }
.hk-r-a .hk-the-pham { background: linear-gradient(180deg, #a97bd8, #6d34a8); }
.hk-r-b .hk-the-pham { background: linear-gradient(180deg, #4bb0a6, #1c7a72); }
.hk-the-nghe {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.hk-the-ten {
    display: grid;
    padding: 9px 11px 11px;
}
.hk-the-ten b {
    overflow: hidden;
    color: var(--red);
    font-size: 16px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hk-the-ten small {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: color-mix(in srgb, var(--c) 72%, #2b2318);
    font-size: 13px;
    font-weight: 700;
}
/* icon Hệ trước tên Hệ */
.hk-the-ten small img {
    flex: none;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.hk-trong {
    padding: 48px 16px;
    color: var(--text-soft);
    text-align: center;
}
@media (max-width: 1280px) {
    .hk-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .hk-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .hk-loc { padding: 14px; }
    .hk-loc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    /* chip vuốt ngang một hàng thay vì xuống nhiều dòng */
    .hk-loc .hk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
    .hk-loc .hk-chips::-webkit-scrollbar { display: none; }
    .hk-tim { flex-basis: 100%; max-width: none; }
}
@media (max-width: 599px) {
    .hk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hk-the-ten { padding: 7px 8px 9px; }
    .hk-the-ten b {
        display: -webkit-box;
        min-height: 2.6em;
        font-size: 14px;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .hk-the-ten small { font-size: 12px; }
    .hk-the-nghe { width: 22px; height: 22px; }
    .hk-the-av i { font-size: 40px; }
}
@media (max-width: 360px) {
    .hk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .hk-the,
    .hk-the:hover,
    .hk-the:focus-visible {
        transition: none;
        transform: none;
    }
}

/* --- Khung chi tiết Hiệp Khách (#hero-modal): tác phẩm, ô Hệ / Nghề, ‹ ›, nút Tải game --- */
/* Chiều cao cố định: nội dung dài thì cuộn trong cột chữ, cột ảnh không bị kéo dài theo
   (trước đây ảnh bám đáy cột nên trôi xuống dưới khung và bị cắt). */
@media (min-width: 1024px) {
    .hero-modal-dialog {
        height: min(680px, calc(100vh - 72px));
        grid-template-rows: minmax(0, 1fr);
    }
    .hero-modal-media {
        min-height: 0;
        overflow: hidden;
    }
    .hero-modal-media img {
        max-height: 100%;
    }
}
/* Trang Hiệp Khách đã có ô Hệ / Nghề + tác phẩm ở trên: ẩn 3 dòng đầu của phần tóm tắt nhập ở
   admin (phẩm chất, nghề | hệ, tác phẩm) để không lặp lại hoặc lệch với dữ liệu thật. */
.hero-modal-facts:not([hidden]) ~ .hero-modal-content .hero-card-summary-list li:nth-child(-n+3) {
    display: none;
}
.hero-modal-story {
    margin: -8px 0 16px;
    color: var(--gold-deep);
    font-size: 15px;
    font-weight: 700;
}
.hero-modal-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 20px;
}
.hero-modal-facts[hidden],
.hero-modal-facts > [hidden] {
    display: none;
}
.hero-modal-facts > div {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--c, var(--gold));
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
}
.hero-modal-facts small {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
}
.hero-modal-facts b {
    display: block;
    color: color-mix(in srgb, var(--c, var(--gold)) 72%, #2b2318);
    font-size: 18px;
}
.hero-modal-facts span {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.4;
}
.hero-modal-content .is-empty {
    color: var(--muted);
    font-style: italic;
}
.hero-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.btn-outline-dark {
    color: var(--red);
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.5);
}
.btn-outline-dark:hover {
    color: #ffe6ab;
    background: var(--red);
}
.hero-modal-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.hero-modal-nav[hidden] {
    display: none;
}
.hero-modal-nav button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold-deep);
    background: rgba(255, 250, 240, 0.85);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.hero-modal-nav button:hover {
    color: #ffe6ab;
    border-color: var(--red);
    background: var(--red);
}
/* Điện thoại / máy tính bảng: khung chi tiết là tấm trượt từ đáy lên */
@media (max-width: 1023px) {
    .hero-modal {
        padding: 0;
        overflow: hidden;
    }
    .hero-modal.open {
        display: block;
    }
    .hero-modal-dialog {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 92vh;
        max-height: 92svh;
        overflow-y: auto;
        overscroll-behavior: contain;
        grid-template-columns: minmax(0, 1fr);
        border-width: 1px 0 0;
        border-radius: 14px 14px 0 0;
        animation: heroSheetIn 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
    }
    .hero-modal-media {
        min-height: 220px;
        max-height: 300px;
        padding-top: 16px;
    }
    .hero-modal-media img {
        max-height: 280px;
    }
    .hero-modal-body {
        overflow: visible;
        padding: 22px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    }
}
@keyframes heroSheetIn {
    from { transform: translateY(40px); opacity: 0; }
}

/* --- Khung Hiệp Khách: làm đẹp lại ---
   Ảnh nhân vật gần vuông (~1:1) nên trong cột cao chỉ to bằng bề ngang cột rồi dính đáy,
   phía trên trống trơn. Giờ: nhân vật đứng giữa vòng hào quang + bệ sáng, cao theo cột,
   2 mép ngang mờ dần (mask) để phần bị cắt trông có chủ đích. */
.hero-modal-dialog {
    border-radius: 14px;
    border-color: rgba(199, 148, 63, 0.55);
    box-shadow:
        0 30px 90px rgba(20, 12, 4, 0.45),
        inset 0 0 0 6px rgba(255, 250, 240, 0.55),
        inset 0 0 0 7px rgba(199, 148, 63, 0.35);
}
.hero-modal-media {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 70% 55% at 50% 46%, rgba(255, 236, 190, 0.95), rgba(239, 200, 120, 0.35) 55%, transparent 75%),
        linear-gradient(180deg, #f9ead0 0%, #f3dcb2 100%);
    border-right: 1px solid rgba(199, 148, 63, 0.25);
}
/* vòng hào quang mảnh sau lưng nhân vật */
.hero-modal-media::before {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: -1;
    width: min(78%, 380px);
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgba(199, 148, 63, 0.5);
    border-radius: 50%;
    box-shadow:
        0 0 0 14px rgba(255, 248, 230, 0.35),
        0 0 0 15px rgba(199, 148, 63, 0.25),
        0 0 60px rgba(239, 200, 120, 0.6);
    translate: -50% -50%;
}
/* bệ sáng dưới chân */
.hero-modal-media::after {
    position: absolute;
    bottom: 7%;
    left: 50%;
    z-index: -1;
    width: 62%;
    height: 34px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(147, 100, 28, 0.35), rgba(147, 100, 28, 0) 70%);
    transform: translateX(-50%);
}
.hero-modal-body .eyebrow {
    color: var(--gold-deep);
}
.hero-modal-body h2 {
    margin: 12px 0 8px;
    letter-spacing: 0.5px;
}
.hero-modal-story {
    margin: 0 0 18px;
}
.hero-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-color: rgba(199, 148, 63, 0.6);
    border-radius: 50%;
    color: var(--gold-deep);
    background: #fffaf0;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(147, 100, 28, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-modal-close:hover {
    color: #ffe6ab;
    border-color: var(--red);
    background: var(--red);
    transform: rotate(90deg);
}
.hero-modal-close:focus {
    outline: none;
}
.hero-modal-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
/* thanh cuộn mảnh tông vàng thay cho thanh cuộn xám mặc định */
.hero-modal-body,
.hero-modal-dialog {
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 148, 63, 0.55) transparent;
}
.hero-modal-body::-webkit-scrollbar,
.hero-modal-dialog::-webkit-scrollbar {
    width: 6px;
}
.hero-modal-body::-webkit-scrollbar-thumb,
.hero-modal-dialog::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(199, 148, 63, 0.55);
}
.hero-modal-facts {
    margin-bottom: 6px;
}
.hero-modal-content .hero-card-summary-list {
    gap: 4px;
    margin-top: 12px;
    font-size: 16px;
}
.hero-modal-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
    .hero-modal-dialog {
        width: min(1040px, 100%);
        height: min(680px, calc(100vh - 72px));
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.18fr);
    }
    .hero-modal-media {
        display: block;
        padding: 0;
    }
    .hero-modal-media img {
        position: absolute;
        bottom: 5%;
        left: 50%;
        width: auto;
        max-width: none;
        height: 86%;
        max-height: none;
        object-fit: contain;
        translate: -50% 0;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
        filter: drop-shadow(0 10px 18px rgba(80, 50, 10, 0.25));
    }
    .hero-modal-body {
        display: flex;
        flex-direction: column;
        padding: 44px 44px 30px 42px;
    }
    .hero-modal-content {
        flex: 1 0 auto;
    }
}
@media (max-width: 1023px) {
    .hero-modal-media {
        border-right: 0;
        border-bottom: 1px solid rgba(199, 148, 63, 0.25);
        border-radius: 14px 14px 0 0;
    }
    .hero-modal-media::before {
        width: min(62%, 260px);
    }
    /* Hàng nút: 1 hàng "‹ [Xem chi tiết] [Tải game] ›" thay vì ‹ › rớt xuống dòng riêng lệch
       phải. Khối ‹ › dùng display:contents để 2 nút thành phần tử của hàng; ‹ đưa lên đầu.
       Khối ‹ › bị ẩn (không ở trang danh sách) hay nút Xem chi tiết bị ẩn thì phần còn lại tự giãn. */
    /* dính đáy tấm trượt: nội dung dài vẫn luôn thấy nút, không phải cuộn hết mới bấm được */
    .hero-modal-actions {
        position: sticky;
        bottom: 0;
        z-index: 1;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 18px -18px calc(-28px - env(safe-area-inset-bottom, 0px));
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(253, 243, 222, 0.94);
        backdrop-filter: blur(6px);
        box-shadow: 0 -8px 18px rgba(147, 100, 28, 0.08);
    }
    .hero-modal-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        height: 46px;
        padding: 0 10px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .hero-modal-actions .btn[hidden] {
        display: none;
    }
    .hero-modal-nav:not([hidden]) {
        display: contents;
    }
    .hero-modal-nav button {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
    }
    .hero-modal-nav button:first-child {
        order: -1;
    }
}
@media (max-width: 400px) {
    .hero-modal-actions .btn {
        padding: 0 6px;
        font-size: 11px;
        letter-spacing: 0.2px;
    }
    .hero-modal-nav button {
        flex-basis: 42px;
        width: 42px;
    }
}

/* --- Khung Hiệp Khách: animation ---
   Vị trí ảnh / vòng hào quang dùng thuộc tính "translate" riêng nên "transform" để trống cho
   animation. Mở: nền mờ dần -> khung nổi lên -> nhân vật + từng dòng chữ trồi lên lần lượt.
   Đứng yên: nhân vật bồng bềnh, hào quang thở chậm. Đóng: .closing (site.js) thu nhỏ + mờ.
   Bấm ‹ › thì site.js chạy hiệu ứng trượt bằng Web Animations (không cần class). */
.hero-modal.open .hero-modal-backdrop {
    animation: heroFadeIn 0.3s ease both;
}
.hero-modal.open .hero-modal-dialog {
    animation: heroDialogIn 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.hero-modal.open .hero-modal-media img {
    animation:
        heroArtIn 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) 0.12s both,
        heroFloat 5s ease-in-out 0.9s infinite;
}
.hero-modal.open .hero-modal-media::before {
    animation:
        heroHaloIn 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) 0.05s both,
        heroHaloBreath 4.5s ease-in-out 0.9s infinite;
}
.hero-modal.open .hero-modal-body > * {
    animation: heroRise 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.hero-modal.open .hero-modal-body > :nth-child(1) { animation-delay: 0.16s; }
.hero-modal.open .hero-modal-body > :nth-child(2) { animation-delay: 0.21s; }
.hero-modal.open .hero-modal-body > :nth-child(3) { animation-delay: 0.26s; }
.hero-modal.open .hero-modal-body > :nth-child(4) { animation-delay: 0.31s; }
.hero-modal.open .hero-modal-body > :nth-child(5) { animation-delay: 0.36s; }
.hero-modal.open .hero-modal-body > :nth-child(n + 6) { animation-delay: 0.41s; }
.hero-modal.open .hero-modal-close {
    animation: heroCloseIn 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 0.3s backwards;
}
.hero-modal.closing {
    pointer-events: none;
}
.hero-modal.closing .hero-modal-backdrop {
    animation: heroFadeOut 0.28s ease forwards;
}
.hero-modal.closing .hero-modal-dialog {
    animation: heroDialogOut 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@media (max-width: 1023px) {
    /* điện thoại: tấm trượt từ đáy lên / trượt xuống khi đóng */
    .hero-modal.open .hero-modal-dialog {
        animation: heroSheetIn 0.38s cubic-bezier(0.22, 0.7, 0.3, 1) both;
    }
    .hero-modal.closing .hero-modal-dialog {
        animation: heroSheetOut 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
    }
}
@keyframes heroFadeIn { from { opacity: 0; } }
@keyframes heroFadeOut { to { opacity: 0; } }
@keyframes heroDialogIn {
    from { opacity: 0; transform: translateY(28px) scale(0.95); }
}
@keyframes heroDialogOut {
    to { opacity: 0; transform: translateY(16px) scale(0.96); }
}
@keyframes heroSheetOut {
    to { opacity: 0; transform: translateY(60%); }
}
@keyframes heroArtIn {
    from { opacity: 0; transform: translateY(26px) scale(0.94); filter: blur(4px); }
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes heroHaloIn {
    from { opacity: 0; transform: scale(0.7); }
}
@keyframes heroHaloBreath {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.75; }
}
@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
}
@keyframes heroCloseIn {
    from { opacity: 0; transform: scale(0.4) rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-modal.open .hero-modal-backdrop,
    .hero-modal.open .hero-modal-dialog,
    .hero-modal.open .hero-modal-media img,
    .hero-modal.open .hero-modal-media::before,
    .hero-modal.open .hero-modal-body > *,
    .hero-modal.open .hero-modal-close,
    .hero-modal.closing .hero-modal-backdrop,
    .hero-modal.closing .hero-modal-dialog {
        animation: none;
    }
}
@media (max-width: 420px) {
    .hero-modal-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   UX v2 – TRANG /tai-khoan: hướng dẫn tài khoản / nạp / giftcode (3 tab theo #hash).
   Không có form, mọi nút dẫn sang trang tài khoản DIGIGAMES.
   ========================================================================== */
.acct-page {
    background: var(--bg);
}
.acct-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}
.acct-box {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf8, #f7eedd);
    box-shadow: 0 3px 12px rgba(90, 60, 20, 0.1);
}
.acct-box h2,
.section .acct-box h2 {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 26px;
    text-transform: none;
}
.acct-lead {
    margin: 0 0 20px;
    color: var(--text-soft);
}
.acct-lead b {
    color: var(--ink);
}
.acct-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.acct-links a {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(147, 100, 28, 0.3);
    border-radius: 8px;
    background: var(--surface);
    transition: 0.2s ease;
}
.acct-links a:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}
.acct-links b {
    display: block;
    color: var(--red);
    font-size: 17px;
}
.acct-links span {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}
.acct-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: acct;
}
.acct-steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    counter-increment: acct;
}
.acct-steps li::before {
    display: grid;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    content: counter(acct);
    color: #ffe6ab;
    background: linear-gradient(180deg, var(--red-bright), var(--red));
    font-weight: 800;
}
.acct-steps b {
    color: var(--ink);
    font-size: 16px;
}
.acct-steps span {
    color: var(--text-soft);
    font-size: 14px;
}
.acct-sub {
    margin: 28px 0 10px;
    color: var(--ink);
    font-size: 18px;
}
.acct-where {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text);
    font-size: 15px;
}
.acct-where li + li {
    margin-top: 6px;
}
.acct-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.acct-channels .btn {
    padding: 10px 18px;
}
.acct-cta {
    position: sticky;
    top: 112px;
}
.acct-cta h3 {
    margin: 0 0 8px;
    color: var(--gold-light);
    font-size: 20px;
}
.acct-host {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(199, 148, 63, 0.4);
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
    word-break: break-all;
}
.side-box.acct-cta .acct-warn {
    margin: 14px 0 0;
    color: #a9946c;
    font-size: 12px;
}
.acct-note {
    margin-top: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(141, 34, 29, 0.3);
    border-radius: 10px;
    color: var(--text);
    background: rgba(141, 34, 29, 0.06);
    font-size: 14px;
}
.acct-note h3 {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 16px;
}
.acct-note ul {
    margin: 0;
    padding-left: 1.2em;
}
.acct-note li + li {
    margin-top: 4px;
}
@media (max-width: 1023px) {
    .acct-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .acct-cta {
        position: static;
    }
    .acct-box {
        padding: 18px 16px;
    }
    .acct-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Đua Top Lực Chiến (/dua-top, mục 3.6 gói thiết kế v2.1) ---------- */
/* Nhãn trạng thái đứng cạnh eyebrow: bọc flex-wrap riêng để badge tự xuống dòng
   gọn gàng trên màn hẹp, thay vì bị flex co lại rồi vỡ chữ giữa dòng (bug đã gặp). */
.dt-hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    column-gap: 14px;
}
.dt-hero-eyebrow .eyebrow {
    white-space: nowrap;
}
.dt-status-eyebrow {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 3px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.dt-status-eyebrow.is-live { color: var(--red-bright); }
.dt-status-eyebrow.is-sap { color: var(--gold-deep); }
.dt-status-eyebrow.is-chot,
.dt-status-eyebrow.is-ketqua { color: var(--muted); }
.dt-page { background: var(--bg); }
.dt-pane { margin-top: 22px; }

.dt-search {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin-bottom: 18px;
}
.dt-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    font-size: 14px;
}
.dt-search button {
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.dt-search button:hover { background: var(--gold-deep); }
.dt-search-result,
.dt-search-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fffdf8;
    font-size: 14px;
}
.dt-search-rank {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.dt-search-note { color: var(--muted); font-size: 13px; }
.dt-search-empty { color: var(--muted); }

.dt-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}
.dt-pod {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 20px 10px 14px;
    border-radius: 12px 12px 4px 4px;
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.dt-pod.is-p1 { order: 2; padding-top: 30px; background: linear-gradient(180deg, rgba(199, 148, 63, .28), var(--bg-soft)); border-color: var(--gold); }
.dt-pod.is-p2 { order: 1; background: linear-gradient(180deg, rgba(160, 170, 182, .3), var(--bg-soft)); border-color: #a0aab6; }
.dt-pod.is-p3 { order: 3; background: linear-gradient(180deg, rgba(184, 118, 74, .28), var(--bg-soft)); border-color: #b8764a; }
.dt-pod.is-found { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.dt-crown { position: absolute; top: -20px; font-size: 22px; color: var(--gold-deep); font-style: normal; }
.dt-rank { font-weight: 800; color: var(--red); font-size: 14px; }
.dt-name { font-size: 13px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-lc { font-size: 12px; color: var(--muted); }
.dt-tie-tag {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(141, 34, 29, .1);
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
}

.dt-list.is-4-10 {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dt-list.is-4-10 li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fffdf8;
    border: 1px solid var(--line);
}
.dt-list.is-4-10 li.is-found { border-color: var(--red-bright); background: rgba(141, 34, 29, .05); }
.dt-list.is-4-10 .dt-name { flex: 1; text-align: left; white-space: normal; }
.dt-uid,
.dt-server { color: var(--muted); font-size: 12.5px; }

.dt-table-wrap { overflow-x: auto; margin-bottom: 6px; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.dt-table th,
.dt-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.dt-table th { background: var(--bg-soft); color: var(--ink); }
.dt-table tr.is-found td { background: rgba(141, 34, 29, .08); font-weight: 700; }
.dt-updated { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }

.dt-prize-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 20px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf8, var(--bg-soft));
    border: 1px solid var(--gold);
}
.dt-prize-art {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    background: radial-gradient(120% 140% at 50% 30%, rgba(199, 148, 63, .22), transparent 70%);
}
.dt-prize-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(43, 35, 24, .28));
}
/* fallback chua co anh: giu duoc o vuong chu Han cu neu can dung lai */
.dt-prize-art.is-han {
    flex-basis: 84px;
    height: 84px;
    border-radius: 10px;
    background: var(--red);
    color: var(--gold-light);
    font-size: 34px;
}
.dt-prize-card h3 { margin: 4px 0; color: var(--red); font-size: 22px; }
.dt-prize-card p { margin: 0; color: var(--muted); }
.dt-prize-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 24px; }

.dt-tiers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.dt-tier {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fffdf8;
}
.dt-tier.is-top { border-color: var(--gold); background: linear-gradient(180deg, rgba(199, 148, 63, .16), #fffdf8); }
.dt-tier-name { display: block; margin-bottom: 6px; color: var(--red); font-size: 14px; }
.dt-tier ul { margin: 0; padding-left: 1.1em; font-size: 13px; color: var(--text-soft); }
.dt-sub { margin: 22px 0 8px; color: var(--red); font-size: 16px; }
.dt-claim { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--text); }
.dt-claim li + li { margin-top: 8px; }

.dt-rules h2 { margin: 26px 0 10px; color: var(--red); font-size: 18px; }
.dt-rules h2:first-child { margin-top: 0; }
.dt-rules p,
.dt-rules li { color: var(--text); font-size: 14.5px; }
.dt-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dt-timeline li { display: flex; gap: 14px; padding: 10px 14px; border-radius: 8px; background: #fffdf8; border: 1px solid var(--line); }
.dt-timeline li b { flex: 0 0 190px; color: var(--ink); }
.dt-example { padding: 10px 14px; border-radius: 8px; background: var(--bg-soft); font-size: 13.5px; color: var(--text-soft); }
.dt-faq details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dt-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.dt-faq p { margin: 8px 0 0; color: var(--text-soft); }

@media (max-width: 1023px) {
    .dt-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dt-timeline li { flex-direction: column; gap: 2px; }
    .dt-timeline li b { flex: none; }
}
@media (max-width: 700px) {
    .dt-podium { gap: 6px; }
    .dt-pod { padding: 14px 6px 10px; }
    .dt-prize-card { flex-direction: column; text-align: center; }
    .dt-tiers { grid-template-columns: 1fr; }
    .dt-list.is-4-10 li { flex-wrap: wrap; }
}

/* Banner trang Hiệp Khách: màn ≤1100px dùng bản 1600px (nhẹ hơn bản 2560px của máy tính) */
@media (max-width: 1100px) {
    .page-hero.page-hero-hiep-khach {
        --hero-banner-image: url("/assets/game/ui/bg-ss1-hk-sm.webp");
    }
    .section.section-art-hiep-khach {
        --section-art-image: url("/assets/game/ui/bg-ss2-ks-sm.webp");
    }
}
/* ---- Bảng xác nhận độ tuổi (layouts/site): che toàn trang tới khi xác nhận 18+.
   html.age-ok (gắn ở <head> hoặc khi bấm "Tiếp tục truy cập") thì ẩn hẳn.
   Khung giấy viền vàng 2 lớp + logo đè mép trên; nút Tiếp tục dùng ảnh nút vàng bg-dk như trang chủ. ---- */
.age-gate {
    --ag-brown: #7a2a10;
    --ag-ink: #3b2a17;
    --ag-gold: #c7943f;
    --ag-gold-hi: #f3d48a;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    /* cột khoá theo bề rộng màn hình, không co giãn theo nội dung (tránh tràn ngang trên điện thoại) */
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 100px 16px 24px;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(199, 148, 63, 0.22), transparent 60%),
        rgba(10, 7, 4, 0.88);
    backdrop-filter: blur(10px);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}
.age-gate,
.age-gate *,
.age-gate *::before,
.age-gate *::after {
    box-sizing: border-box;
}
html.age-ok .age-gate {
    display: none;
}
html:not(.age-ok) body:has(.age-gate) {
    overflow: hidden;
}
.age-gate-dialog {
    position: relative;
    width: min(540px, 100%);
    padding: 92px 40px 30px;
    border: 2px solid var(--ag-gold);
    border-radius: 6px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(243, 212, 138, 0.55), transparent 58%),
        radial-gradient(ellipse at 100% 100%, rgba(199, 148, 63, 0.16), transparent 50%),
        linear-gradient(170deg, #fffaf0 0%, #fbf0da 55%, #f4e2bf 100%);
    box-shadow:
        0 0 0 4px rgba(20, 14, 8, 0.55),
        0 0 0 5px rgba(243, 212, 138, 0.55),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(199, 148, 63, 0.25);
    color: var(--ag-ink);
    text-align: center;
    animation: ageGateIn 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
/* viền trong mảnh, cách viền ngoài 8px */
.age-gate-dialog::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(147, 100, 28, 0.45);
    border-radius: 3px;
    pointer-events: none;
}
.age-gate-gem {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--ag-gold-hi), var(--ag-gold) 55%, #93641c);
    box-shadow: 0 0 0 2px #fbf0da, 0 0 6px rgba(199, 148, 63, 0.7);
    transform: rotate(45deg);
}
.age-gate-gem.is-tl { top: 2px; left: 2px; }
.age-gate-gem.is-tr { top: 2px; right: 2px; }
.age-gate-gem.is-bl { bottom: 2px; left: 2px; }
.age-gate-gem.is-br { bottom: 2px; right: 2px; }
.age-gate-logo {
    position: absolute;
    top: 0;
    left: 50%;
    width: 170px;
    max-width: 50%;
    height: auto;
    border-radius: 18%;
    transform: translate(-50%, -56%);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
.age-gate-title {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    color: var(--ag-brown);
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
/* gạch vàng hai bên tiêu đề, đầu nhọn hình thoi */
.age-gate-title::before,
.age-gate-title::after {
    content: "";
    flex: 1 1 0;
    max-width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ag-gold));
}
.age-gate-title::after {
    background: linear-gradient(270deg, transparent, var(--ag-gold));
}
/* con dấu 18+ kiểu ấn triện: viền đỏ đôi, nền giấy, đóng nghiêng ở góc trên phải */
.age-gate-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid #a3170f;
    border-radius: 50%;
    background: rgba(255, 244, 214, 0.7);
    box-shadow: inset 0 0 0 3px rgba(255, 244, 214, 0.9), inset 0 0 0 4px rgba(163, 23, 15, 0.75);
    color: #a3170f;
    font-family: "Noto Serif", "Times New Roman", serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 0.9;
    transform: rotate(-14deg);
}
.age-gate-desc {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.55;
}
.age-gate-desc b {
    color: var(--ag-brown);
}
.age-gate-desc strong {
    color: #a3170f;
}
.age-gate-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 26px;
    padding: 14px 16px;
    border: 1px dashed rgba(147, 100, 28, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.age-gate-check:hover,
.age-gate-check:has(input:checked) {
    border-color: var(--ag-gold);
    background: rgba(255, 250, 235, 0.95);
}
.age-gate-check input {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 2px solid var(--ag-gold);
    border-radius: 4px;
    background: #fffaf0 center / 14px no-repeat;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.age-gate-check input:checked {
    border-color: var(--ag-brown);
    background-color: var(--ag-brown);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23fff4d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.age-gate-check a {
    color: var(--ag-brown);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(122, 42, 16, 0.35);
    text-underline-offset: 3px;
}
.age-gate-check a:hover {
    text-decoration-color: currentColor;
}
.age-gate-actions {
    display: grid;
    gap: 12px;
    justify-items: center;
}
/* ".age-gate" đứng trước để thắng reset ".mh-body button { border: 0; background: none }" của trang chủ */
.age-gate .age-gate-btn {
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.age-gate .age-gate-btn.is-continue {
    width: min(300px, 100%);
    aspect-ratio: 1963 / 451;
    padding: 0 0 0.15em;
    border: 0;
    background: url("/assets/game/ui/bg-dk.webp") center / 100% 100% no-repeat;
    color: var(--ag-brown);
    font-size: 17px;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 6px 12px rgba(122, 42, 16, 0.3));
    transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}
.age-gate .age-gate-btn.is-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 16px rgba(122, 42, 16, 0.4)) brightness(1.05);
}
.age-gate .age-gate-btn.is-continue:disabled {
    filter: grayscale(0.85);
    opacity: 0.5;
    cursor: not-allowed;
}
.age-gate .age-gate-btn.is-exit {
    padding: 6px 18px;
    border: 0;
    background: none;
    color: rgba(59, 42, 23, 0.65);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-decoration-color: rgba(59, 42, 23, 0.25);
    text-underline-offset: 4px;
    transition: color 0.15s;
}
.age-gate .age-gate-btn.is-exit:hover {
    color: var(--ag-brown);
}
.age-gate .age-gate-btn:focus-visible,
.age-gate-check input:focus-visible {
    outline: 2px solid var(--ag-brown);
    outline-offset: 3px;
}
@keyframes ageGateIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .age-gate-dialog { animation: none; }
}
@media (max-width: 480px) {
    .age-gate {
        padding-top: 84px;
    }
    .age-gate-dialog {
        padding: 70px 20px 22px;
    }
    .age-gate-logo {
        width: 135px;
    }
    .age-gate-title {
        font-size: 17px;
        letter-spacing: 0;
    }
    /* màn hẹp: bỏ gạch trang trí để tiêu đề nằm gọn một dòng */
    .age-gate-title::before,
    .age-gate-title::after {
        display: none;
    }
    .age-gate-badge {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    .age-gate-desc {
        font-size: 15px;
    }
}
/* banner Tin Tức (3:1, cao ~33vw): tab nằm bên trái, không đụng khối chữ giữa ảnh nên chồm lên 15vw */
.page-hero-tin-tuc ~ .section-art-lift,
.page-hero-su-kien ~ .section-art-lift,
.page-hero-cam-nang ~ .section-art-lift {
    --sk-overlap: 15vw;
}
/* header máy tính (88px) cố định đè lên đầu trang: banner Tin Tức có đầu nhân vật sát mép trên
   nên đẩy xuống dưới header cho hiện trọn ảnh (≤1100px main#top đã tự chừa chỗ header điện thoại) */
@media (min-width: 1101px) {
    .page-hero.page-hero-tin-tuc,
    .page-hero.page-hero-su-kien,
    .page-hero.page-hero-cam-nang {
        margin-top: 88px;
    }
}

/* =========================================================
   CẢM GIÁC MƯỢT (assets/ks-motion.js)
   ========================================================= */
/* 1. thanh tiến trình vàng ở mép trên khi chuyển trang */
.ks-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #C9861A, #FFE6A6 60%, #FFF6DC);
    box-shadow: 0 0 10px rgba(255, 210, 120, .8), 0 0 4px rgba(255, 210, 120, .9);
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0;
}
/* chạy nhanh lên ~70% rồi chậm dần tới 90% trong lúc chờ trang mới */
.ks-progress.is-run {
    opacity: 1;
    animation: ks-progress 8s cubic-bezier(.1, .7, .2, 1) forwards;
}
.ks-progress.is-done {
    opacity: 0;
    transform: scaleX(1);
    transition: opacity .3s ease;
}
@keyframes ks-progress {
    0% { transform: scaleX(0); }
    8% { transform: scaleX(.45); }
    25% { transform: scaleX(.7); }
    100% { transform: scaleX(.92); }
}

/* 2. hiện dần khi cuộn tới */
.ks-rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease var(--ks-rv-delay, 0ms), transform .55s cubic-bezier(.2, .7, .2, 1) var(--ks-rv-delay, 0ms);
}
.ks-rv.is-in {
    opacity: 1;
    transform: none;
}

/* 3. phản hồi khi nhấn: nút / link chính nhún nhẹ */
.mh-btn, .mh-mhdr-btn, .mh-side-row, .mh-mbar a, .mh-nghe-tabs button, .mh-ng-more,
.mp-subtabs button, .mp-picker a, .mp-pager a, .sk-card-cta, .news-featured h2 a,
.btn, .promo-popup-btn {
    -webkit-tap-highlight-color: transparent;
}
.mh-btn:active, .mh-mhdr-btn:active, .mh-side-row:active, .mh-mbar a:active,
.mh-nghe-tabs button:active, .mh-ng-more:active,
.mp-subtabs button:active, .mp-picker a:active, .mp-pager a:active,
.sk-card-cta:active, .btn:active {
    transform: scale(.96) !important;
    transition: transform .08s ease !important;
}
.sk-card:active, .mp-skill:active {
    transform: scale(.985);
    transition: transform .08s ease;
}
@media (prefers-reduced-motion: reduce) {
    .ks-progress.is-run { animation-duration: .01s; }
    .ks-rv { opacity: 1; transform: none; transition: none; }
}

/* Trang Tin tức / Sự kiện / Cẩm nang: hàng tab chuyên mục + ô tìm bài viết */
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.cat-bar .cat-tabs { margin: 0; }
.cat-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 380px;
    min-width: 0;
    height: 50px;
    padding: 4px 4px 4px 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 250, 240, 0.92);
    box-shadow: 0 3px 10px rgba(90, 60, 20, 0.08);
    transition: border-color .2s, box-shadow .2s;
}
.cat-search:focus-within { border-color: #C9862F; box-shadow: 0 0 0 3px rgba(185, 56, 40, .12); }
.cat-search svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #B9761E;
    stroke-width: 2;
    stroke-linecap: round;
}
.cat-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: none;
    outline: none;
}
.cat-search button {
    flex: none;
    height: 100%;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #C94A36, #9E2A1D);
    cursor: pointer;
}
.cat-search button:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
    .cat-bar .cat-tabs { width: 100%; }
    .cat-search { flex: 1 1 100%; height: 46px; }
}
/* ô tìm kiếm dạt sang mép phải hàng tab */
.cat-bar { justify-content: space-between; }
@media (min-width: 761px) { .cat-search { margin-left: auto; } }
/* màn có thanh lối tắt cố định bên phải (~240px): ô tìm kiếm không chui dưới thanh đó */
@media (min-width: 1101px) {
    /* phần bị che = mép phải hàng (giữa trang + 50% bề rộng) - mép trái thanh (100vw - 271px) */
    .cat-search { margin-right: max(0px, calc(50% - 50vw + 271px)); }
}

/* tìm bài tức thì (assets/news-search.js) */
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-clear {
    flex: none;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #8B6A3A;
    background: #F3E6C9;
    cursor: pointer;
}
.news-results { scroll-margin-top: 110px; transition: opacity .15s; }
.news-results.is-loading { opacity: .45; pointer-events: none; }
.news-results.is-swap > * { animation: ks-news-in .3s ease both; }
@keyframes ks-news-in { from { opacity: 0; transform: translateY(8px); } }
/* ô tìm kiếm sát mép phải khung nội dung (thẳng mép thẻ bài bên dưới) */
@media (min-width: 761px) { .cat-search { margin-right: 0; } }

/* =========================================================
   Nội dung bài nhập từ WordPress (lệnh wp:import): khối Gutenberg
   ========================================================= */
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.article-content figure { margin: 22px 0; }
.article-content .wp-block-image { text-align: center; }
.article-content .wp-block-image.aligncenter, .article-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.article-content .alignleft { float: left; margin: 4px 20px 12px 0; max-width: 50%; }
.article-content .alignright { float: right; margin: 4px 0 12px 20px; max-width: 50%; }
.article-content figcaption, .article-content .wp-element-caption { margin-top: 8px; font-size: 13.5px; color: var(--text-soft, #7a6c60); text-align: center; font-style: italic; }
.article-content hr, .article-content .wp-block-separator { height: 0; margin: 28px auto; border: 0; border-top: 1px solid #E2CFA4; max-width: 160px; }
/* bảng: viền nhạt, tiêu đề nền kem, cuộn ngang trên điện thoại */
.article-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 0 0 1px #E6D3A8; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #FFFDF8; }
.article-content .wp-block-table table { margin: 0; }
.article-content th, .article-content td { padding: 10px 14px; border-bottom: 1px solid #EFE2C6; text-align: left; vertical-align: top; }
.article-content tr:first-child td, .article-content thead th { font-weight: 800; color: #6B3A12; background: #FBF1DC; }
.article-content tbody tr:nth-child(even) td { background: #FFFAF0; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content .has-text-align-center { text-align: center; }
.article-content .has-text-align-right { text-align: right; }
.article-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.article-content .wp-block-button__link { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #E0573F, #B8301F); text-decoration: none; }
.article-content .wp-block-quote, .article-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid #C9862F; border-radius: 0 10px 10px 0; background: #FBF4E6; }
.article-content .wp-block-embed iframe, .article-content iframe { max-width: 100%; aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; border-radius: 12px; }
.article-content::after { content: ""; display: block; clear: both; }
@media (max-width: 760px) {
    .article-content .alignleft, .article-content .alignright { float: none; max-width: 100%; margin: 16px 0; }
    .article-content table { font-size: 13.5px; min-width: 520px; }
}

/* ---- Phân trang: bản đầy đủ (máy tính) / bản gọn 1 hàng (điện thoại) ----
   Bản đầy đủ của Laravel có tới 13 ô -> trên điện thoại bị vỡ thành 3-4 hàng.
   ≤640px chỉ hiện "‹ 1 … 14 15 16 … 31 ›" với huy hiệu nhỏ hơn, không xuống dòng. */
.page-numbers.is-compact { display: none; }
@media (max-width: 640px) {
    .page-numbers.is-full { display: none; }
    .page-numbers.is-compact { display: flex; flex-wrap: nowrap; gap: 3px; }
    .site-pagination { flex-wrap: nowrap; gap: 3px; }
    .site-pagination .page-number,
    .site-pagination .page-control { width: 37px; height: 36px; font-size: 13px; }
    .site-pagination .page-control { font-size: 17px; }
    .site-pagination .page-number.is-current { transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(199, 148, 63, 0.8)); }
    .site-pagination .page-ellipsis { min-width: 10px; height: 36px; padding-bottom: 8px; font-size: 13px; }
}

/* Chi tiết bài viết: .article có margin:auto trong lưới -> trình duyệt co theo nội dung (fit-content);
   bảng WordPress có min-width 520px (cuộn ngang trong khung) khiến cả bài bị kéo rộng, tràn màn hình điện thoại.
   Ép bài luôn rộng đúng cột, phần tử quá rộng tự cuộn/thu bên trong. */
.article-layout > .article { width: 100%; min-width: 0; }
.article-content { min-width: 0; overflow-wrap: anywhere; }
.article-content .wp-block-table { max-width: 100%; }
.article-content figure, .article-content .wp-block-image, .article-content video { max-width: 100%; }
.article-content pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
/* Bảng trong bài (điện thoại): co vừa màn hình, chữ tự xuống dòng; chỉ bảng thật sự nhiều cột mới cuộn ngang trong khung */
@media (max-width: 760px) {
    .article-content table { min-width: 0; table-layout: auto; }
    .article-content table.has-fixed-layout { table-layout: auto; }
    .article-content th, .article-content td { overflow-wrap: anywhere; }
}

/* ==== Chi tiết bài viết: thang chữ chuẩn (áp cho mọi bài, kể cả bài nhập từ WordPress) ====
   Trước đây h2 trong bài ăn cỡ h2 chung của site (37px) -> to hơn cả tiêu đề bài.
   Quy tắc: tiêu đề bài (h1 trên đầu trang) > h1/h2 trong bài > h3 > h4 > chữ thường.
   Cỡ inline / class cỡ chữ của WordPress trên tiêu đề bị bỏ để mọi bài đồng đều. */
.article-content :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.9em 0 .7em;
    color: #1d1712;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: break-word;
}
.article-content > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.article-content :is(h1, h2) { font-size: 26px !important; line-height: 1.3; }
.article-content h3 { font-size: 21px !important; line-height: 1.35; }
.article-content h4 { font-size: 18px !important; line-height: 1.4; }
.article-content :is(h5, h6) { font-size: 16px !important; line-height: 1.45; }
.article-content p { margin: 0 0 1.05em; }
/* bảng: chỉ xuống dòng giữa các từ, không cắt đôi từ ("lượ-ng"); bảng quá rộng tự cuộn ngang trong khung */
.article-content :is(td, th) { overflow-wrap: break-word; word-break: normal; hyphens: none; }
.article-content { overflow-wrap: break-word; }

@media (max-width: 760px) {
    .page-hero-caption.compact h1 { font-size: 23px; line-height: 1.32; }
    .article .article-content, .article .article-content :is(p, li) { font-size: 16px; line-height: 1.75; }
    .article-content :is(h1, h2) { font-size: 20px !important; line-height: 1.35; }
    .article-content h3 { font-size: 17.5px !important; line-height: 1.4; }
    .article-content h4 { font-size: 16.5px !important; }
    .article-content :is(h5, h6) { font-size: 15.5px !important; }
    .article-content :is(h1, h2, h3, h4, h5, h6) { margin: 1.6em 0 .6em; }
    .article-content table { font-size: 13.5px; }
    .article-content :is(td, th) { padding: 9px 10px; }
}

/* Điện thoại: bảng từ 4 cột trở lên -> cuộn ngang TRONG khung bảng (chỉ bảng cuộn, trang không cuộn).
   Mỗi cột tối thiểu ~130px, tiêu đề cột không xuống dòng. Bảng ≤3 cột vẫn co vừa màn hình.
   Bảng tự soạn trong trình soạn thảo (không có khung .wp-block-table) thì chính bảng làm khung cuộn. */
@media (max-width: 760px) {
    .article-content .wp-block-table { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #D9BE8A transparent; }
    .article-content table:has(tr > :nth-child(4)) { width: max-content; min-width: 100%; }
    .article-content table:has(tr > :nth-child(4)) :is(td, th) { min-width: 130px; max-width: 220px; }
    .article-content table:has(tr > :nth-child(4)) :is(thead th, tr:first-child td) { white-space: nowrap; max-width: none; }
    .article-content > table:has(tr > :nth-child(4)) { display: block; overflow-x: auto; }
}

/* Thẻ bài viết (danh sách tin): ngày đăng bị ".section p" (17px) đè -> giữ đúng cỡ nhỏ của nó */
.sk-card .sk-card-date { font-size: 13px; line-height: 1.4; }
/* Điện thoại: ảnh đúng 16:9 (trước bị kéo cao bằng cả thẻ -> cắt gần vuông), đặt thành ô ảnh lồng trong thẻ, căn giữa theo chiều dọc */
@media (max-width: 599px) {
    .sk-card { grid-template-columns: 140px minmax(0, 1fr); align-items: center; }
    .sk-card .sk-card-media { aspect-ratio: 16 / 9; min-height: 0; height: auto; margin: 8px 0 8px 8px; border-radius: 6px; overflow: hidden; }
    .sk-card .sk-card-media img { width: 100%; height: 100%; object-fit: cover; }
    .sk-card .sk-card-body { padding: 8px 12px; }
    .sk-card .sk-card-body h3 { font-size: 14.5px; line-height: 1.35; -webkit-line-clamp: 3; }
    .sk-card .sk-card-date { font-size: 12px; gap: 5px; }
    .sk-card .sk-card-date svg { width: 13px; height: 13px; }
}
/* Điện thoại (sửa lại): ảnh tràn sát mép trái/trên/dưới thẻ, không viền. Cột ảnh 160px -> 16:9 cao 90px,
   khớp chiều cao phần chữ (3 dòng tiêu đề + ngày) nên ảnh gần như giữ nguyên tỉ lệ, thẻ cao hơn thì cắt rất ít (cover). */
@media (max-width: 599px) {
    .sk-card { grid-template-columns: 160px minmax(0, 1fr); align-items: stretch; overflow: hidden; }
    .sk-card .sk-card-media { aspect-ratio: auto; min-height: 90px; height: 100%; margin: 0; border-radius: 0; }
    .sk-card .sk-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .sk-card .sk-card-body { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; }
    .sk-card .sk-card-body h3 { font-size: 14px; line-height: 1.35; }
}

/* Hiện dần khi cuộn tới: nhịp nhanh hơn (0.45s), quãng trượt ngắn hơn -> lướt nhanh vẫn kịp thấy nội dung */
.ks-rv {
    transform: translateY(14px);
    transition: opacity .45s ease var(--ks-rv-delay, 0ms), transform .45s cubic-bezier(.2, .8, .2, 1) var(--ks-rv-delay, 0ms);
}

/* =========================================================
   CHI TIẾT BÀI VIẾT (bố cục + phối màu mới)
   - Tiêu đề thẳng hàng với cột nội dung (cùng lưới 2 cột), cỡ vừa, không viết hoa ép.
   - Bài viết nằm trong khung giấy sáng; cột phải chuyển tông sáng cùng nền trang (bỏ khối nâu đen nặng).
   - Màu: chữ nâu mực, điểm nhấn đỏ son (--red) + vàng đồng (--gold); không dùng đen tuyền.
   ========================================================= */
.article-page .article-layout,
.article-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 44px;
    align-items: start;
}
.article-hero-in > * { grid-column: 1; }
.article-hero { padding-bottom: 4px; }
.article-hero .crumb { margin-bottom: 14px; font-size: 13px; color: #8a7558; }
.article-hero .crumb a { color: #8a7558; }
.article-hero .crumb a:hover { color: var(--red); }
.article-hero .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; color: #8a7558; font-size: 13.5px; font-weight: 600; }
.article-hero .article-meta time::before,
.article-hero .article-meta .article-read::before { content: "·"; margin-right: 10px; color: #c9b48c; }
.article-hero .article-meta .news-featured-tag + time::before { content: none; }
.page-hero-caption.compact.article-hero h1 {
    max-width: none;
    margin: 0 0 16px;
    color: #2b1a10;
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
}
.article-hero .article-share { margin: 0; padding-bottom: 22px; border-bottom: 1px solid #ead9b6; }
.article-hero .article-share a,
.article-hero .article-share button { padding: 7px 14px; border-color: #e3cf9f; background: #fffaf0; font-size: 13.5px; }

.article-page { padding-top: 26px; }
.article-page .article {
    max-width: none;
    margin: 0;
    padding: 26px 34px 34px;
    border: 1px solid #ecdcbb;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 12px 32px rgba(92, 62, 18, .07);
}
.article-page .article-cover { margin: 0 0 24px; border-radius: 12px; box-shadow: 0 6px 18px rgba(60, 40, 10, .12); }
.article-page .lead {
    margin: 0 0 22px;
    padding: 2px 0 2px 16px;
    border-left: 3px solid var(--gold);
    color: #5a4630;
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.7;
}
.article-page .article-content { color: #3a2c1c; }
.article-page .article-content :is(h1, h2) { color: #7a1f17; }
.article-page .article-content :is(h1, h2)::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.article-page .article-content :is(h3, h4) { color: #2b1a10; }
.article-page .article-content a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(141, 34, 29, .35); text-underline-offset: 3px; }
.article-page .article-content a:hover { text-decoration-color: currentColor; }
.article-page .article-content strong { color: #2b1a10; }
.article-page .article-nav { margin-top: 30px; padding-top: 22px; border-top: 1px solid #efe1c4; }

/* cột phải: khung sáng viền vàng nhạt */
.article-page .article-side { gap: 18px; }
.article-page .side-box {
    padding: 18px 18px 20px;
    border: 1px solid #ead7ae;
    border-radius: 14px;
    color: #3a2c1c;
    background: #fffaf0;
    box-shadow: 0 8px 22px rgba(92, 62, 18, .06);
}
.article-page.section .article-layout aside .side-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--red);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.article-page.section .article-layout aside .side-box h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #e3cf9f, transparent); }
.article-page .side-box li a { padding: 11px 0; border-top: 1px dashed #ead7ae; color: #3a2c1c; font-size: 14px; font-weight: 600; }
.article-page .side-box li:first-child a { border-top: 0; padding-top: 2px; }
.article-page .side-box li a:hover { color: var(--red); }
.article-page .side-box li small { margin-top: 3px; color: #9a8564; font-weight: 500; }
.article-page .side-box p { color: #6b5a44; }

/* nút tải: lưới 2 x 2, biểu tượng màu theo kho */
.article-page .side-box-dl { grid-template-columns: 1fr 1fr; gap: 10px; }
.article-page .side-box-dl a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e3cf9f;
    border-radius: 11px;
    color: #2b1a10;
    background: #fff;
    box-shadow: none;
    line-height: 1.15;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.article-page .side-box-dl a:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(141, 34, 29, .12); filter: none; }
.article-page .side-box-dl a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.article-page .side-box-dl span { display: grid; min-width: 0; }
.article-page .side-box-dl small { color: #8a7558; font-size: 11px; }
.article-page .side-box-dl b { font-size: 14px; white-space: nowrap; }
.article-page .side-box-dl i {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--ic-bg) center / 18px 18px no-repeat;
    background-image: var(--ic), linear-gradient(var(--ic-bg), var(--ic-bg));
}
.article-page .side-box-dl .is-ios { --ic-bg: #1d1d1f; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.1 2.5-1.8 3.1-.5 7.6 1.3 10.1.8 1.2 1.8 2.6 3.1 2.5 1.2-.1 1.7-.8 3.2-.8s1.9.8 3.2.8c1.3 0 2.2-1.2 3-2.4.9-1.4 1.3-2.7 1.3-2.8 0 0-2.4-1-2.4-4.2zM14 5.3c.7-.8 1.1-1.9 1-3-1 0-2.1.7-2.8 1.5-.6.7-1.2 1.8-1 2.9 1 .1 2.1-.6 2.8-1.4z'/%3E%3C/svg%3E"); }
.article-page .side-box-dl .is-gp { --ic-bg: #0f8a4f; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4.6 2.8 14 12l-9.4 9.2c-.4-.2-.6-.6-.6-1.1V3.9c0-.5.2-.9.6-1.1zm10.6 10.4 2.4 2.4-10.7 6.1 8.3-8.5zm3.4-3.3 2.8 1.6c.7.4.7 1.4 0 1.9l-2.8 1.6-2.7-2.6 2.7-2.5zM6.9 2.4l10.7 6.1-2.4 2.4-8.3-8.5z'/%3E%3C/svg%3E"); }
.article-page .side-box-dl .is-pc { --ic-bg: #1b6ec2; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 5.5 10.5 4.5v7H3zm8.5-1.1L21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zm8.5 0H21V21l-9.5-1.4z'/%3E%3C/svg%3E"); }
.article-page .side-box-dl .is-acc { --ic-bg: #8d221d; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 12c5 0 9 2.5 9 6v2H3v-2c0-3.5 4-6 9-6z'/%3E%3C/svg%3E"); }

@media (max-width: 1023px) {
    .article-page .article-layout, .article-hero-in { grid-template-columns: minmax(0, 1fr); }
    .article-page .article { padding: 18px 16px 24px; border-radius: 12px; }
    .article-page .article-cover { margin-bottom: 18px; border-radius: 10px; }
    .page-hero-caption.compact.article-hero h1 { font-size: 22px; }
    .article-page { padding-top: 16px; }
}

/* Cột phải "Tin mới": ảnh 16:9 bên trái + tiêu đề 3 dòng + ngày */
.article-page .side-box-news ul { display: grid; gap: 0; }
.article-page .side-box-news li a {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
}
.article-page .side-box-news li:first-child a { padding-top: 2px; }
.article-page .side-box-news img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background: #efe2c6;
    transition: transform .25s ease, box-shadow .25s ease;
}
.article-page .side-box-news li a:hover img { transform: scale(1.03); box-shadow: 0 6px 14px rgba(60, 40, 10, .18); }
.article-page .side-box-news span { display: grid; gap: 4px; min-width: 0; }
.article-page .side-box-news b {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.article-page .side-box-news small { margin: 0; font-size: 12px; }
