/**
 * Tan Vo Lam Theme - Header & Menu Stylesheet
 * Pixel-perfect Kiếm Hiệp Gaming Header
 */

@import url('https://fonts.googleapis.com/css2?family=Hubot+Sans:ital,wght@0,200..900;1,200..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Yeseva+One&display=swap');

:root {
    --tvl-font: 'Inter', 'Hubot Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tvl-font-hubot: 'Hubot Sans', sans-serif;
    --tvl-font-title: 'Yeseva One', serif;
    --Text: #2D0404;
    --tvl-nav-text: #623A18;
    --tvl-nav-text-hover: #9c2e12;
    --tvl-nav-active: #2D0404;
    --tvl-nav-active-bar: #5a1c12;
    --tvl-nav-sep: #a07a56;
    --tvl-header-height: 80px;
}

/* ==========================================================================
   Header Layout
   ========================================================================== */
.tvl-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    padding: 14px 24px;
    font-family: var(--tvl-font);
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tvl-header * {
    box-sizing: border-box;
}

/* Scrolled Sticky Header (Giao diện menu khi cuộn xuống theo mockup media_1791871364501.png) */
.tvl-header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 59px;
    padding: 0 24px;
    background: #f5eee4;
    /* border-bottom: 1px solid rgba(212, 175, 122, 0.45); */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(212, 175, 122, 0.3);
    z-index: 999;
}

.tvl-header.is-scrolled .tvl-header-container {
    height: 59px;
    max-width: 1440px;
}

/* App Icon khi cuộn: Thả nhẹ xuống mép dưới thanh bar theo mockup */
.tvl-header.is-scrolled .tvl-header-brand {
    overflow: visible;
}

.tvl-header.is-scrolled .tvl-app-icon-link {
    position: relative;
    top: 5px;
    border: 2px solid #dfbb7b;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    background: #1c1109;
    display: inline-block;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tvl-header.is-scrolled .tvl-app-icon-link:hover {
    transform: translateY(3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tvl-header.is-scrolled .tvl-app-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* Bỏ khung viên thuốc riêng, menu nằm trực tiếp trên nền thanh bar */
.tvl-header.is-scrolled .tvl-nav-pill {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 59px;
    padding: 0;
}

.tvl-header.is-scrolled .tvl-menu-list a {
    color: #623A18;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 8px 14px;
    transition: color 0.2s ease;
}

.tvl-header.is-scrolled .tvl-menu-list a:hover {
    color: #922f18;
}

/* Mục đang chọn (Trang chủ) có gạch chân màu nâu sẫm sát mép dưới */
.tvl-header.is-scrolled .tvl-menu-list li.current-menu-item > a,
.tvl-header.is-scrolled .tvl-menu-list li.active > a {
    color: var(--Text, #2D0404);
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.tvl-header.is-scrolled .tvl-menu-list li.current-menu-item > a::after,
.tvl-header.is-scrolled .tvl-menu-list li.active > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: #5a1c12;
    border-radius: 1px;
    box-shadow: none;
}

/* Dấu phân cách menu tông màu sẫm tương thích nền kem */
.tvl-header.is-scrolled .tvl-sep-img img,
.tvl-header.is-scrolled .tvl-menu-list > li:not(:last-child):not(.tvl-sep-item)::after {
    filter: brightness(0.4) sepia(1) hue-rotate(-30deg);
    opacity: 0.85;
}

.tvl-header.is-scrolled .tvl-sep {
    color: #8c5b30;
    opacity: 0.9;
}

/* Logo trung tâm khi cuộn */
.tvl-header.is-scrolled .tvl-center-logo {
    height: 52px;
    margin: 0 10px;
}

.tvl-header.is-scrolled .tvl-logo-img {
    height: 48px;
}

/* Nút Đăng Ký / Đăng Nhập khi cuộn */
.tvl-header.is-scrolled .tvl-header-actions .tvl-btn-register {
    width: 140px;
    height: 46px;
}

.tvl-header.is-scrolled .tvl-header-actions .tvl-btn-register .tvl-btn-label {
    font-size: 22px;
    -webkit-text-stroke-width: 1px;
}

.tvl-header.is-scrolled .tvl-header-actions .tvl-btn-login {
    width: 135px;
    height: 44px;
}

.tvl-header.is-scrolled .tvl-header-actions .tvl-btn-login .tvl-btn-label {
    font-size: 18px;
}

/* Nút Mobile Drawer khi cuộn */
.tvl-header.is-scrolled .tvl-mobile-toggle {
    border-color: rgba(61, 26, 16, 0.35);
    background: rgba(61, 26, 16, 0.06);
}

.tvl-header.is-scrolled .tvl-mobile-toggle span {
    background: #3d1a10;
}

.tvl-header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

/* ==========================================================================
   Left: App Icon / Avatar
   ========================================================================== */
.tvl-header-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tvl-app-icon-link {
    display: inline-block;
    line-height: 0;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.tvl-app-icon-link:hover {
    transform: scale(1.06) rotate(-1deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tvl-app-icon {
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 14px;
    border: none;
    background: transparent;
    object-fit: contain;
}

/* ==========================================================================
   Center: Navigation Pill
   ========================================================================== */
.tvl-main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tvl-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* background: var(--tvl-pill-bg); */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    /* border: 1px solid var(--tvl-pill-border); */
    border-radius: 9999px;
    padding: 0 18px;
    height: 52px;
    /* box-shadow: var(--tvl-pill-shadow); */
    transition: all 0.3s ease;
}

.tvl-nav-group {
    display: flex;
    align-items: center;
}

.tvl-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tvl-menu-list > li {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.tvl-menu-list a {
    display: inline-block;
    color: #623A18;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    padding: 8px 14px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tvl-menu-list a:hover {
    color: var(--tvl-nav-text-hover);
    transform: translateY(-1px);
}

/* Active State Underline */
.tvl-menu-list li.current-menu-item > a,
.tvl-menu-list li.active > a {
    color: var(--Text, #2D0404);
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.tvl-menu-list li.current-menu-item > a::after,
.tvl-menu-list li.active > a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: var(--tvl-nav-active-bar, #5a1c12);
    border-radius: 2px;
    box-shadow: none;
}

/* Separator Icon */
.tvl-sep-item,
.menu-sep-item,
.menu-item-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    padding: 0 4px;
}

.tvl-sep-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tvl-sep-img img {
    width: 5px;
    height: 21px;
    display: block;
    opacity: 0.85;
    object-fit: contain;
}

.tvl-sep {
    display: inline-block;
    color: var(--tvl-nav-sep);
    font-size: 10px;
    opacity: 0.8;
    line-height: 1;
    transform: scale(0.9);
}

/* Center Logo */
.tvl-center-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    position: relative;
    flex-shrink: 0;
}

.tvl-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.tvl-logo-img {
    height: 54px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    object-fit: contain;
}

.tvl-logo-link:hover .tvl-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(72, 192, 255, 0.85));
}

/* ==========================================================================
   Right: Action Buttons (ĐĂNG KÝ, ĐĂNG NHẬP)
   ========================================================================== */
.tvl-header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tvl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
}

.tvl-btn-register {
    width: 154px;
    height: 52px;
    background-image: url('../images/bg-dangky-blank.png');
    box-shadow: 0 4px 12px rgba(180, 115, 20, 0.25);
}

.tvl-btn-login {
    width: 148px;
    height: 48px;
    background-image: url('../images/bg-dangnhap-blank.png');
    box-shadow: 0 4px 12px rgba(25, 95, 120, 0.25);
}

.tvl-btn:hover {
    transform: translateY(-2px);
}

.tvl-btn-register:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(215, 140, 25, 0.45);
}

.tvl-btn-login:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(45, 165, 205, 0.45);
}

.tvl-btn:active {
    transform: translateY(0);
}

/* Typography cho nút ĐĂNG KÝ theo đúng CSS thiết kế */
.tvl-btn-register .tvl-btn-label {
    -webkit-text-stroke-width: 1.2px;
    -webkit-text-stroke-color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background: linear-gradient(180deg, #4B0202 21.62%, #734300 78.38%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Typography cho nút ĐĂNG NHẬP theo đúng CSS thiết kế */
.tvl-btn-login .tvl-btn-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    background: linear-gradient(180deg, #FFF 0%, #CCE9F0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ==========================================================================
   Mobile Toggle & Drawer
   ========================================================================== */
.tvl-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(212, 175, 122, 0.5);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 248, 235, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.tvl-mobile-toggle:hover {
    background: rgba(255, 248, 235, 0.7);
}

.tvl-hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #3c1e13;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tvl-header.is-scrolled .tvl-hamburger-line {
    background: #ffd875;
}

/* Mobile Drawer */
.tvl-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #24140b 0%, #150a04 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(212, 175, 122, 0.3);
    z-index: 10000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tvl-mobile-drawer.is-open {
    right: 0;
}

.tvl-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 122, 0.2);
}

.tvl-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tvl-drawer-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    object-fit: contain;
}

.tvl-drawer-title {
    color: #ffd875;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.tvl-drawer-close {
    background: transparent;
    border: 0;
    color: #e5c58a;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.tvl-drawer-close:hover {
    color: #ffffff;
}

.tvl-drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.tvl-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tvl-drawer-menu .menu-item a {
    display: block;
    color: #f7eedf;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tvl-drawer-menu .menu-item a:hover,
.tvl-drawer-menu .menu-item.active a {
    background: rgba(223, 187, 123, 0.15);
    color: #ffd875;
    padding-left: 18px;
}

.tvl-drawer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
    padding-bottom: 20px;
}

/* ==========================================================================
   Hero Section ("ảnh bên dưới dùng ảnh tạm")
   ========================================================================== */
.hero-banner-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: #e9dbc7;
    overflow: hidden;
    line-height: 0;
}

.hero-banner-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-temp-image {
    width: 100%;
    height: auto;
    min-height: 520px;
    max-height: 90vh;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ==========================================================================
   Banner Download Bar (Khối tải game ngang nằm giữa banner, cách bottom 200px, rộng 694px)
   ========================================================================== */
.tvl-banner-download-bar {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 694px;
    max-width: 95vw;
    aspect-ratio: 1404 / 348;
    background-image: url('../images/sticky-nav/ngang-nen.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2% 1.5%;
    box-sizing: border-box;
    z-index: 20;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
    user-select: none;
}

.tvl-bbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), filter 0.25s ease;
}

.tvl-bbar-btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Nút Tải PC bên trái (~41.3% bề ngang) */
.tvl-bbar-pc {
    width: 41.3%;
    height: 100%;
}

.tvl-bbar-pc:hover {
    transform: scale(1.025);
    filter: brightness(1.08) drop-shadow(0 4px 14px rgba(255, 215, 0, 0.5));
}

.tvl-bbar-pc:active {
    transform: scale(0.99);
}

/* Cột giữa: 2 nút Android & iOS xếp chồng (~34.6% bề ngang) */
.tvl-bbar-store-group {
    width: 34.6%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tvl-bbar-store {
    width: 100%;
    height: 48%;
}

.tvl-bbar-store:hover {
    transform: scale(1.03);
    filter: brightness(1.12) drop-shadow(0 3px 10px rgba(60, 185, 220, 0.55));
}

.tvl-bbar-store:active {
    transform: scale(0.99);
}

/* Nút Nạp Game bên phải (~23.5% bề ngang) */
.tvl-bbar-nap {
    width: 23.5%;
    height: 100%;
}

.tvl-bbar-nap:hover {
    transform: scale(1.025);
    filter: brightness(1.08) drop-shadow(0 4px 15px rgba(255, 180, 50, 0.5));
}

.tvl-bbar-nap:active {
    transform: scale(0.99);
}

/* Responsive cho màn hình nhỏ và tablet */
@media screen and (max-width: 768px) {
    .tvl-banner-download-bar {
        width: 95vw;
        bottom: 80px;
    }
}

@media screen and (max-width: 480px) {
    .tvl-banner-download-bar {
        width: 96vw;
        bottom: 60px;
    }
}

/* Scroll down floating indicator (icon scroll-down.png) */
.hero-scroll-down {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: auto;
    display: block;
    line-height: 0;
    text-decoration: none;
    z-index: 10;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: tvlScrollFloat 2.2s infinite ease-in-out;
}

.hero-scroll-down img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

.hero-scroll-down:hover {
    transform: translateX(-50%) translateY(4px) scale(1.08);
}

.hero-scroll-down:hover img {
    filter: drop-shadow(0 0 14px rgba(60, 185, 220, 0.85)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

@keyframes tvlScrollFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(7px);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 1400px) {
    .tvl-menu-list a {
        font-size: 17px;
        padding: 6px 11px;
    }
    .tvl-menu-list li.current-menu-item > a,
    .tvl-menu-list li.active > a {
        font-size: 17px;
    }
    .tvl-header.is-scrolled .tvl-menu-list a {
        font-size: 17px;
        padding: 6px 11px;
    }
    .tvl-header.is-scrolled .tvl-menu-list li.current-menu-item > a,
    .tvl-header.is-scrolled .tvl-menu-list li.active > a {
        font-size: 17px;
    }
    .tvl-btn-register {
        width: 135px;
        height: 46px;
    }
    .tvl-btn-register .tvl-btn-label {
        font-size: 22px;
        -webkit-text-stroke-width: 1px;
    }
    .tvl-btn-login {
        width: 130px;
        height: 44px;
    }
    .tvl-btn-login .tvl-btn-label {
        font-size: 18px;
    }
}

@media screen and (max-width: 1140px) {
    .tvl-menu-list a {
        font-size: 15px;
        padding: 6px 8px;
    }
    .tvl-menu-list li.current-menu-item > a,
    .tvl-menu-list li.active > a {
        font-size: 15px;
    }
    .tvl-header.is-scrolled .tvl-menu-list a {
        font-size: 15px;
        padding: 6px 8px;
    }
    .tvl-header.is-scrolled .tvl-menu-list li.current-menu-item > a,
    .tvl-header.is-scrolled .tvl-menu-list li.active > a {
        font-size: 15px;
    }
    .tvl-logo-img {
        height: 44px;
    }
    .tvl-btn-register {
        width: 115px;
        height: 40px;
    }
    .tvl-btn-register .tvl-btn-label {
        font-size: 18px;
        -webkit-text-stroke-width: 0.8px;
    }
    .tvl-btn-login {
        width: 110px;
        height: 38px;
    }
    .tvl-btn-login .tvl-btn-label {
        font-size: 16px;
    }
}

@media screen and (max-width: 960px) {
    .tvl-main-nav {
        display: none;
    }
    .tvl-mobile-toggle {
        display: flex;
    }
    .tvl-header-actions .tvl-btn-register {
        width: 92px;
        height: 34px;
    }
    .tvl-header-actions .tvl-btn-register .tvl-btn-label {
        font-size: 14px;
        -webkit-text-stroke-width: 0.6px;
    }
    .tvl-header-actions .tvl-btn-login {
        width: 88px;
        height: 32px;
    }
    .tvl-header-actions .tvl-btn-login .tvl-btn-label {
        font-size: 13px;
    }
}

/* Auto separator for WordPress nav menu items */
.tvl-menu-list > li:not(:last-child):not(.tvl-sep-item)::after {
    content: '';
    display: inline-flex;
    align-self: center;
    width: 5px;
    height: 21px;
    background-image: url('../images/top_line.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 4px;
    opacity: 0.85;
}

/* ==========================================================================
   Sticky Navigation Widget ("Bảng Tải Game - Đính bên phải cách đáy 90px")
   Rộng chính xác 297px, các nút tải bằng nhau và nằm gọn trong lá cờ
   ========================================================================== */
.tvl-sticky-nav {
    display: none;
    position: fixed;
    right: 12px;
    bottom: 90px;
    z-index: 998;
    width: 297px;
    height: 586px;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
}

/* Collapsed state */
.tvl-sticky-nav.is-collapsed {
    transform: translateX(calc(100% - 24px));
}

/* Toggle tab on left edge */
.tvl-sticky-toggle {
    position: absolute;
    top: 40%;
    left: -22px;
    width: 22px;
    height: 48px;
    background: linear-gradient(180deg, #dfb45b 0%, #875114 100%);
    border: 1px solid #ffe79c;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.45);
    z-index: 10;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tvl-sticky-toggle:hover {
    background: linear-gradient(180deg, #f7ca6d 0%, #a4671a 100%);
}

.tvl-toggle-arrow {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    transition: transform 0.35s ease;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tvl-sticky-nav.is-collapsed .tvl-toggle-arrow {
    transform: rotate(180deg);
}

/* Card & Flag Background */
.tvl-sticky-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.tvl-flag-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.tvl-sticky-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Buttons Common */
.tvl-sbtn {
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}

/* 1. Tải Game PC (Rộng 194px - Bằng chính xác các nút bên dưới, nằm gọn trong cờ) */
.tvl-sbtn-pc {
    position: absolute;
    top: 89px;
    left: 50%;
    transform: translateX(-50%);
    width: 194px;
    height: 116px;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.tvl-sbtn-pc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tvl-sbtn-pc:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.02);
    filter: brightness(1.08) drop-shadow(0 4px 12px rgba(255, 215, 0, 0.65));
}

/* 2. Store Group (GooglePlay, iOS, APK - Rộng 194px) */
.tvl-store-group {
    position: absolute;
    top: 206px;
    left: 50%;
    transform: translateX(-50%);
    width: 194px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tvl-sbtn-store {
    display: block;
    width: 100%;
    height: 55px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.tvl-sbtn-store img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tvl-sbtn-store:hover {
    transform: scale(1.03) translateY(-1px);
    filter: brightness(1.14) drop-shadow(0 2px 8px rgba(65, 195, 225, 0.75));
}

/* 3. Nạp Game (Rộng 194px - Bằng các nút trên, nằm gọn trong cờ) */
.tvl-sbtn-nap {
    position: absolute;
    top: 367px;
    left: 50%;
    transform: translateX(-50%);
    width: 194px;
    height: 88px;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.tvl-sbtn-nap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tvl-sbtn-nap:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.03);
    filter: brightness(1.08) drop-shadow(0 4px 14px rgba(255, 170, 40, 0.65));
}

/* 4. Social Row */
.tvl-social-row {
    position: absolute;
    top: 450px;
    left: 50%;
    transform: translateX(-50%);
    width: 198px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tvl-s-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.tvl-s-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.tvl-s-icon:hover {
    transform: scale(1.18) rotate(6deg) translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85));
}

/* 5. TOP Button */
.tvl-sbtn-top {
    position: absolute;
    top: 501px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 33px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 9999px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.tvl-sbtn-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tvl-sbtn-top:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95));
}

/* Responsive Sticky Nav */
@media screen and (max-height: 720px) {
    .tvl-sticky-nav {
        bottom: 20px;
        transform-origin: bottom right;
        transform: scale(0.9);
    }
    .tvl-sticky-nav.is-collapsed {
        transform: scale(0.9) translateX(calc(100% - 24px));
    }
}

@media screen and (max-width: 768px) {
    .tvl-sticky-nav {
        width: 240px;
        height: 474px;
        bottom: 90px;
        right: 0;
        transform: translateX(calc(100% - 24px));
    }
    .tvl-sticky-nav.is-expanded {
        transform: translateX(0);
    }
    /* Scaled down inner elements proportionally on mobile */
    .tvl-sticky-nav .tvl-sbtn-pc,
    .tvl-sticky-nav .tvl-store-group,
    .tvl-sticky-nav .tvl-sbtn-nap {
        width: 156px;
    }
    .tvl-sticky-nav .tvl-sbtn-pc {
        top: 72px;
        height: 94px;
    }
    .tvl-sticky-nav .tvl-store-group {
        top: 167px;
    }
    .tvl-sticky-nav .tvl-sbtn-store {
        height: 44px;
    }
    .tvl-sticky-nav .tvl-sbtn-nap {
        top: 297px;
        height: 71px;
    }
    .tvl-sticky-nav .tvl-social-row {
        top: 364px;
        width: 160px;
    }
    .tvl-sticky-nav .tvl-s-icon {
        width: 31px;
        height: 31px;
    }
    .tvl-sticky-nav .tvl-sbtn-top {
        top: 405px;
        width: 76px;
        height: 27px;
    }
}

/* ==========================================================================
   Section Titles Typography (Yeseva One)
   ========================================================================== */
.tvl-sec-heading,
.tvl-section-title {
    font-family: var(--tvl-font-title, 'Yeseva One', serif);
}


