/**
 * ============================================================
 *  RESPONSIVE.CSS — Global Responsive Foundation
 *  White-Label Node Platform
 * ============================================================
 *  Breakpoints:
 *    xs:  0 – 479px    (phones portrait)
 *    sm:  480 – 639px  (phones landscape)
 *    md:  640 – 767px  (small tablets)
 *    lg:  768 – 1023px (tablets / small laptops)
 *    xl:  1024 – 1279px (desktops)
 *    2xl: 1280px+      (large desktops)
 * ============================================================
 */

/* ────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ──────────────────────────────────────────── */
:root {
    --container-padding: 16px;
    --container-max: 100%;
    --grid-gap: 10px;
    --font-scale: 1;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 24px;
        --container-max: 720px;
        --grid-gap: 14px;
        --font-scale: 1.05;
    }
}
@media (min-width: 1024px) {
    :root {
        --container-padding: 32px;
        --container-max: 960px;
        --grid-gap: 16px;
        --font-scale: 1.1;
    }
}
@media (min-width: 1280px) {
    :root {
        --container-padding: 40px;
        --container-max: 1200px;
        --grid-gap: 18px;
        --font-scale: 1.15;
    }
}

/* ────────────────────────────────────────────
   2. ADAPTIVE CONTAINER
   ──────────────────────────────────────────── */
.app-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Narrower container for forms/transactions */
.app-container--narrow {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
@media (min-width: 768px) {
    .app-container--narrow { max-width: 600px; }
}
@media (min-width: 1024px) {
    .app-container--narrow { max-width: 720px; }
}
@media (min-width: 1280px) {
    .app-container--narrow { max-width: 800px; }
}

/* Wide container for game grids */
.app-container--wide {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
@media (min-width: 1024px) {
    .app-container--wide { max-width: 1100px; }
}
@media (min-width: 1280px) {
    .app-container--wide { max-width: 1400px; }
}

/* ────────────────────────────────────────────
   3. RESPONSIVE GAME GRIDS
   ──────────────────────────────────────────── */

/* 3-col mobile → scales up */
.grid-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}
@media (min-width: 640px) {
    .grid-games { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .grid-games { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1280px) {
    .grid-games { grid-template-columns: repeat(6, 1fr); }
}

/* 2-col mobile → scales up (casino style) */
.grid-casino {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .grid-casino { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .grid-casino { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 1280px) {
    .grid-casino { grid-template-columns: repeat(5, 1fr); }
}

/* Promo cards grid */
.grid-promo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .grid-promo { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
    .grid-promo { grid-template-columns: repeat(3, 1fr); }
}

/* Footer logo grid — adaptive */
.grid-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 768px) {
    .grid-logos { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
    .grid-logos { grid-template-columns: repeat(8, 1fr); }
}

/* ────────────────────────────────────────────
   4. PROVIDER WRAPPER (slots page)
   ──────────────────────────────────────────── */
.provider-responsive {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    padding: 15px 10px;
}
.provider-responsive::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .provider-responsive {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        padding: 20px 30px;
        gap: 12px;
    }
}

/* ────────────────────────────────────────────
   5. RESPONSIVE TYPOGRAPHY
   ──────────────────────────────────────────── */
.text-responsive-xs {
    font-size: 9px;
}
.text-responsive-sm {
    font-size: 10px;
}
.text-responsive-base {
    font-size: 12px;
}
.text-responsive-lg {
    font-size: 14px;
}
.text-responsive-xl {
    font-size: 18px;
}
.text-responsive-2xl {
    font-size: 24px;
}

@media (min-width: 768px) {
    .text-responsive-xs  { font-size: 10px; }
    .text-responsive-sm  { font-size: 11px; }
    .text-responsive-base { font-size: 13px; }
    .text-responsive-lg  { font-size: 16px; }
    .text-responsive-xl  { font-size: 20px; }
    .text-responsive-2xl { font-size: 28px; }
}

@media (min-width: 1024px) {
    .text-responsive-xs  { font-size: 11px; }
    .text-responsive-sm  { font-size: 12px; }
    .text-responsive-base { font-size: 14px; }
    .text-responsive-lg  { font-size: 18px; }
    .text-responsive-xl  { font-size: 22px; }
    .text-responsive-2xl { font-size: 32px; }
}

/* ────────────────────────────────────────────
   6. VISIBILITY HELPERS
   ──────────────────────────────────────────── */
.hide-mobile   { display: none !important; }
.hide-desktop  { display: block !important; }
.hide-desktop-flex { display: flex !important; }
.hide-desktop-grid { display: grid !important; }

@media (min-width: 1024px) {
    .hide-mobile       { display: block !important; }
    .hide-mobile-flex  { display: flex !important; }
    .hide-mobile-grid  { display: grid !important; }
    .hide-desktop      { display: none !important; }
    .hide-desktop-flex { display: none !important; }
    .hide-desktop-grid { display: none !important; }
}

/* ────────────────────────────────────────────
   7. FORM RESPONSIVENESS
   ──────────────────────────────────────────── */
.form-responsive {
    width: 100%;
}
@media (min-width: 768px) {
    .form-responsive input,
    .form-responsive select,
    .form-responsive textarea {
        font-size: 14px;
        padding: 14px 16px;
    }
    .form-responsive button[type="submit"] {
        font-size: 13px;
        padding: 16px;
    }
}

/* ────────────────────────────────────────────
   8. DESKTOP SPLIT LAYOUT (for transaction pages)
   ──────────────────────────────────────────── */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .split-layout {
        flex-direction: row;
        gap: 32px;
    }
    .split-layout > .split-main {
        flex: 1;
    }
    .split-layout > .split-aside {
        flex: 0 0 320px;
    }
}

/* ────────────────────────────────────────────
   9. HORIZONTAL SCROLL → WRAPPED GRID (desktop)
   ──────────────────────────────────────────── */
.scroll-to-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 12px;
    padding: 5px 20px;
    scroll-behavior: smooth;
}
.scroll-to-grid::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .scroll-to-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        overflow-x: visible;
        padding: 10px 20px;
        gap: 14px;
    }
}

/* Items inside scroll-to-grid */
.scroll-to-grid > * {
    flex: 0 0 98px;
}
@media (min-width: 1024px) {
    .scroll-to-grid > * {
        flex: none;
        width: 100%;
    }
}

/* ────────────────────────────────────────────
   10. DESKTOP HEADER — INLINE LOGIN FORM
   (GalaxyWin303 style)
   ──────────────────────────────────────────── */
.desktop-nav {
    display: none;
}

/* Desktop header: Logo left, Login form right */
.desktop-header-actions {
    display: none;
}
@media (min-width: 1024px) {
    .header-container-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .desktop-nav { display: none; /* replaced by sub-nav bar */ }
    .desktop-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .desktop-header-actions input {
        background: var(--bg-surface);
        border: 1px solid #333;
        border-radius: 6px;
        padding: 8px 14px;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        width: 150px;
        outline: none;
        font-family: inherit;
        transition: border-color 0.2s;
    }
    .desktop-header-actions input::placeholder {
        color: #555;
        font-weight: 500;
    }
    .desktop-header-actions input:focus {
        border-color: var(--warna-utama, #facc15);
    }
    .btn-header-masuk {
        padding: 8px 22px;
        background: transparent;
        border: 1px solid var(--warna-utama, #facc15);
        color: var(--warna-utama, #facc15);
        border-radius: 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
    }
    .btn-header-masuk:hover {
        background: var(--warna-utama, #facc15);
        color: #fff;
    }
    .btn-header-daftar {
        padding: 8px 22px;
        background: var(--warna-utama, #facc15);
        border: 1px solid var(--warna-utama, #facc15);
        color: var(--accent-fg, #fff);
        border-radius: 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
    }
    .btn-header-daftar:hover {
        opacity: 0.85;
    }
}

/* ────────────────────────────────────────────
   10b. DESKTOP SUB-NAVIGATION BAR
   (Below header, with emoji icons + labels)
   ──────────────────────────────────────────── */
.desktop-subnav {
    display: none;
}
@media (min-width: 1024px) {
    .desktop-subnav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-soft);
        padding: 0 20px;
        height: 53px;
        position: -webkit-sticky;
        position: sticky;
        top: var(--header-h, 64px);
        z-index: 49;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    .desktop-subnav.is-hidden {
        transform: translateY(-100%);
    }
    .desktop-subnav-inner {
        display: flex;
        align-items: center;
        max-width: 1200px;
        width: 100%;
    }
    .desktop-subnav-left {
        display: flex;
        align-items: center;
        gap: 0;
        flex: 1;
    }
    .desktop-subnav-right {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .subnav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        color: var(--text-muted, #a1a1aa);
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        transition: all 0.2s;
        border-radius: 6px;
        white-space: nowrap;
    }
    .subnav-link:hover {
        color: var(--fg, #fff);
        background: rgba(127,127,127,0.14);
    }
    .subnav-link.active {
        color: var(--accent-fg, #05070a);
        background: var(--warna-utama, #facc15);
        border-radius: 20px;
    }
    .subnav-link .subnav-emoji {
        font-size: 14px;
        line-height: 1;
    }
    .subnav-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    /* If the link is active, turn the icon dark (black) because the background is light/yellow */
    .subnav-link.active .subnav-icon {
        filter: var(--accent-fg-filter, brightness(0));
    }
    .subnav-divider {
        width: 1px;
        height: 20px;
        background: var(--border-soft, #222);
        margin: 0 6px;
    }
}

/* ────────────────────────────────────────────
   10c. DESKTOP BANNER SPLIT LAYOUT
   (Banner left 65% + Live Winner right 35%)
   ──────────────────────────────────────────── */
.banner-split-wrapper {
    display: block;
}
@media (min-width: 1024px) {
    .banner-split-wrapper {
        display: flex;
        max-width: 1200px;
        margin: 16px auto 0;
        padding: 0 20px;
        gap: 16px;
    }
    .banner-split-main {
        flex: 1;
        min-width: 0;
        border-radius: 12px;
        overflow: hidden;
    }
    .banner-split-main .banner-full {
        max-width: 100%;
        margin: 0;
    }
    .banner-split-main .swiper-slide img {
        border-radius: 12px;
        width: 100%;
        height: auto;
        display: block;
    }
    .banner-split-side {
        display: flex;
        flex-direction: column;
        width: 300px;
        flex-shrink: 0;
        background: var(--bg-elevated);
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        overflow: hidden;
    }
}

/* Live Winner panel (desktop sidebar) */
.live-winner-panel {
    display: none;
}
@media (min-width: 1024px) {
    .live-winner-panel {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .live-winner-header {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-soft);
        text-align: center;
    }
    .live-winner-header span {
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    .live-winner-list {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
    }
    .live-winner-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        margin-bottom: 4px;
        transition: background 0.2s;
    }
    .live-winner-item:hover {
        background: rgba(255,255,255,0.03);
    }
    .winner-avatar {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 900;
        color: #555;
        flex-shrink: 0;
    }
    .winner-info {
        flex: 1;
        min-width: 0;
    }
    .winner-name {
        font-size: 11px;
        font-weight: 800;
        color: #ccc;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .winner-game {
        font-size: 9px;
        color: #555;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .winner-amount {
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }
    .winner-badge {
        font-size: 8px;
        font-weight: 900;
        padding: 2px 6px;
        border-radius: 4px;
        text-transform: uppercase;
        margin-right: 4px;
    }
}

/* ────────────────────────────────────────────
   10d. PROVIDER PILL TAGS (desktop)
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .menu-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }
}
.provider-pills {
    display: none;
}
@media (min-width: 1024px) {
    .provider-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .provider-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px;
        background: var(--bg-surface);
        border: 1px solid #222;
        border-radius: 20px;
        color: #aaa;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
    }
    .provider-pill:hover,
    .provider-pill.active {
        border-color: var(--warna-utama, #facc15);
        color: var(--warna-utama, #facc15);
        background: rgba(255,255,255,0.03);
    }
}

/* Hide old desktop nav link style */
.desktop-nav-link {
    padding: 8px 16px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* ────────────────────────────────────────────
   11. BOTTOM NAVBAR: HIDE ON DESKTOP
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .ft-nav-fixed {
        display: none !important;
    }
    .ft-main-container {
        padding-bottom: 40px !important;
    }
}

/* ────────────────────────────────────────────
   12. DESKTOP FOOTER (replaces bottom nav)
   ──────────────────────────────────────────── */
.desktop-footer {
    display: none;
}
@media (min-width: 1024px) {
    .desktop-footer {
        display: block;
        background: #050505;
        border-top: 1px solid var(--border-soft);
        padding: 40px 0 20px;
    }
    .desktop-footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }
    .desktop-footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        margin-bottom: 30px;
    }
    .desktop-footer-title {
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    .desktop-footer-link {
        display: block;
        color: #71717a;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        padding: 5px 0;
        transition: color 0.2s;
    }
    .desktop-footer-link:hover { color: #fff; }
    .desktop-footer-bottom {
        border-top: 1px solid var(--border-soft);
        padding-top: 20px;
        text-align: center;
        font-size: 10px;
        color: #3f3f46;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* ────────────────────────────────────────────
   13. ADMIN PANEL RESPONSIVE
   ──────────────────────────────────────────── */
.admin-main-content {
    margin-left: 0;
    padding: 20px 16px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}
@media (min-width: 769px) {
    .admin-main-content {
        margin-left: 260px;
        padding: 24px 32px;
    }
}

/* ────────────────────────────────────────────
   14. RESPONSIVE CARD UTILITIES
   ──────────────────────────────────────────── */
.card-responsive {
    background: var(--bg-elevated);
    border: 1px solid #1f1f23;
    border-radius: 16px;
    padding: 16px;
}
@media (min-width: 768px) {
    .card-responsive {
        padding: 20px;
        border-radius: 20px;
    }
}
@media (min-width: 1024px) {
    .card-responsive {
        padding: 24px;
        border-radius: 24px;
    }
}

/* ────────────────────────────────────────────
   15. PROFILE 2-COL DESKTOP
   ──────────────────────────────────────────── */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 1024px) {
    .profile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ────────────────────────────────────────────
   16. HISTORY TABLE VIEW (desktop)
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .history-card {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 20px;
    }
}

/* ────────────────────────────────────────────
   17. BANNER DESKTOP CONSTRAINT
   (Slide height follows uploaded image ratio — no crop)
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .banner-full {
        max-width: 100%;
        margin: 0;
    }
    .banner-full .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }
}

/* ────────────────────────────────────────────
   18. CONTENT BOTTOM PADDING
   ──────────────────────────────────────────── */
.pb-mobile-nav {
    padding-bottom: 120px;
}
@media (min-width: 1024px) {
    .pb-mobile-nav {
        padding-bottom: 40px;
    }
}

/* ────────────────────────────────────────────
   19. DESKTOP: HIDE AUTH BUTTONS + MENU GRID
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    /* Hide Login/Daftar CTA buttons on desktop */
    .auth-container {
        display: none !important;
    }
    /* Grid ikon kategori hanya untuk layar kecil. Di desktop perannya sudah
       diambil .desktop-subnav di lib/header.php — daftar yang sama persis
       (dibangun dari kat_aktif() juga), lengkap dengan ikon tiap kategori.
       Menampilkan keduanya berarti dua navigasi kategori bertumpuk. */
    .menu-wrapper {
        display: none !important;
    }
    /* Provider pills still visible */
    .provider-pills {
        display: flex !important;
    }
}

/* ────────────────────────────────────────────
   20. DESKTOP JACKPOT / WINNER BAR — BIGGER
   ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .jackpot-winslit-container {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 20px;
    }
    .jackpot-container {
        max-width: 100% !important;
    }
    .jackpot-content {
        padding: 10px 10px 10px 28px !important;
        border-radius: 60px !important;
    }
    .winner-text {
        font-size: 1.1rem !important;
        letter-spacing: 2px !important;
    }
    .winner-text img {
        width: 28px !important;
        height: 28px !important;
    }
    .jackpot-amount-box {
        padding: 14px 36px !important;
        border-radius: 60px !important;
    }
    .jackpot-amount-text {
        font-size: 1.1rem !important;
    }
    #jackpot-amount {
        font-size: 1.6rem !important;
    }
}

/* ────────────────────────────────────────────
   21. MARQUEE / RUNNING TEXT
   ──────────────────────────────────────────── */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-soft);
    padding: 9px 0;
}
/* Hairline aksen tema di tepi atas — memisahkan dari header tanpa garis tebal */
.marquee-container::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--mq-line, rgba(255,255,255,0.16)) 20%,
        var(--mq-line, rgba(255,255,255,0.16)) 80%, transparent);
}
.marquee-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 12px;
}

/* Badge INFO — pill dengan dot berdenyut sebagai penanda "live" */
.marquee-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    background: color-mix(in srgb, var(--mq-accent) 14%, transparent);
    border: 1px solid rgba(255,255,255,0.22);
    border: 1px solid color-mix(in srgb, var(--mq-accent) 45%, transparent);
}
.marquee-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mq-accent);
    box-shadow: 0 0 0 0 var(--mq-accent);
    animation: marqueePulse 2s ease-out infinite;
}
@keyframes marqueePulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mq-accent) 70%, transparent); }
    70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mq-accent) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mq-accent) 0%, transparent); }
}
.marquee-badge-text {
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mq-accent);
    line-height: 1;
}

/* Track — fade di kedua tepi supaya teks meleleh masuk/keluar, bukan terpotong */
.marquee-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.marquee-move {
    display: flex;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
    will-change: transform;
}
.marquee-track:hover .marquee-move { animation-play-state: paused; }

.marquee-seq {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.marquee-item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #a8adb9;
    white-space: nowrap;
}
/* Separator berlian kecil antar pesan */
.marquee-sep {
    flex-shrink: 0;
    width: 5px; height: 5px;
    margin: 0 18px;
    transform: rotate(45deg);
    background: var(--mq-accent);
    opacity: 0.55;
}

/* Duplikatnya persis setengah track, jadi -50% mendarat tepat di awal */
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-move { animation: none; }
    .marquee-dot  { animation: none; }
}

@media (min-width: 768px) {
    .marquee-container { padding: 11px 0; }
    .marquee-item { font-size: 12px; }
    .marquee-badge-text { font-size: 10px; }
}

/* ────────────────────────────────────────────
   22. AUTO-SCROLL ANIMATION FOR GAME CARDS
   ──────────────────────────────────────────── */
@keyframes autoScrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.auto-scroll-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.auto-scroll-track {
    display: flex;
    gap: 12px;
    animation: autoScrollLeft 25s linear infinite;
    will-change: transform;
    width: max-content;
}
.auto-scroll-track:hover {
    animation-play-state: paused;
}
@media (min-width: 1024px) {
    .auto-scroll-track { gap: 14px; }
    .auto-scroll-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

