/* ============================================================
   VOODOOPLAY GAMING PORTAL - MAIN STYLESHEET
   Theme: Midnight Navy / Modern Gaming UI
   ============================================================ */

:root {
    --bg-base: #070D1D;
    --bg-surface: #0C152B;
    --bg-card: #131F38;
    --bg-card-hover: #1A2A4C;
    --bg-elevated: #1E3056;
    --bg-input: #101B33;

    --border-subtle: #172442;
    --border-card: #1E2E50;
    --border-light: #283C66;
    --border-accent: #0084FF;

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dim: #475569;

    --color-primary: #0070F3;
    --color-primary-hover: #0060DF;
    --color-cyan: #00E5FF;
    --color-gold: #FFB800;
    --color-orange: #FF5722;
    --color-pink: #EC4899;
    --color-red: #EF4444;
    --color-green: #10B981;
    --color-purple: #8B5CF6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 25px rgba(0, 112, 243, 0.2);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.25);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout Framework ────────────────────────────────────── */
.desktop-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.main-column-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.main-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.75rem 3rem;
    overflow-x: hidden;
}

/* Mobile-only elements strictly hidden on desktop */
.m-cats-bar,
.m-bottom-nav,
.m-search-toggle-btn,
.m-sticky-search-bar {
    display: none !important;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .desktop-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .sidebar {
        display: none !important;
    }
    .main-column-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .main-content {
        padding: 0.6rem 0.75rem 4.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        height: 58px !important;
        padding: 0 0.75rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        background: var(--bg-surface) !important;
    }
    .header-brand-wrap {
        max-width: calc(100% - 130px) !important;
        overflow: hidden !important;
    }
    .brand-logo-img {
        max-height: 30px !important;
        max-width: 135px !important;
    }
    .brand-title {
        font-size: 1.15rem !important;
    }
    .brand-subtitle {
        display: none !important;
    }
    .desktop-search-only {
        display: none !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .header-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .m-search-toggle-btn {
        display: flex !important;
    }
    .m-search-toggle-btn.active {
        color: var(--color-cyan) !important;
        background: var(--bg-card) !important;
        border-color: var(--color-cyan) !important;
    }
    .user-chip-name, .user-chip-chevron {
        display: none !important;
    }
    .user-profile-chip {
        padding: 4px 6px !important;
    }
    .user-chip-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    .login-pill-btn {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.8rem !important;
    }
}

/* ── Site Topbar ─────────────────────────────────────────── */
.site-header {
    height: 72px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0084FF 0%, #00E5FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
}
.brand-text-block {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    line-height: 1.1;
}
.brand-title span { color: var(--color-cyan); }
.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 580px;
    margin: 0 2rem;
    position: relative;
}
.search-input-wrap {
    position: relative;
    width: 100%;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.header-search-input {
    width: 100%;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0 1.25rem 0 3rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: all 0.2s ease;
    outline: none;
}
.header-search-input:focus {
    border-color: var(--border-accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}
.header-search-input::placeholder {
    color: var(--text-muted);
}

/* Topbar User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-icon-btn:hover {
    color: #fff;
    background: var(--bg-card);
    border-color: var(--border-light);
}
.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-profile-chip:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}
.user-chip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #0070F3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.user-chip-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.user-chip-chevron {
    color: var(--text-muted);
}
.login-pill-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.login-pill-btn:hover {
    background: var(--color-primary-hover);
}

/* ── Sidebar (Default Full) ──────────────────────────────── */
.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    padding: 0.75rem 0.65rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0.6rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.32rem 0.65rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.sidebar-link:hover {
    background: #131F38;
    color: #fff;
}
.sidebar-link.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.35);
}
.sidebar-link.active .sidebar-link-icon {
    color: #fff;
}
.sidebar-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.sidebar-link-icon svg {
    width: 18px;
    height: 18px;
}

/* Category Badges */
.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 0.65rem;
    margin-top: 0.4rem;
    margin-bottom: 0.35rem;
}
.cat-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.cat-badge-icon svg {
    width: 14px;
    height: 14px;
}
.sidebar-link:hover .cat-badge-icon {
    transform: scale(1.1);
}
.cat-badge-image-wrap {
    background: transparent !important;
    border-radius: 0;
    width: 22px;
    height: 22px;
}
.cat-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
    display: block;
}
.sidebar-link:hover .cat-badge-img {
    transform: scale(1.18);
    filter: drop-shadow(0 4px 8px rgba(0, 229, 255, 0.6));
}

/* Specific Category Color Themes */
.cat-badge-action, [data-cat="action"] { background: rgba(239, 68, 68, 0.18); color: #EF4444; }
.cat-badge-adventure, [data-cat="adventure"] { background: rgba(245, 158, 11, 0.18); color: #F59E0B; }
.cat-badge-racing, [data-cat="racing"] { background: rgba(6, 182, 212, 0.18); color: #06B6D4; }
.cat-badge-shooting, [data-cat="shooting"] { background: rgba(139, 92, 246, 0.18); color: #8B5CF6; }
.cat-badge-puzzle, .cat-badge-puzzles, [data-cat="puzzle"], [data-cat="puzzles"] { background: rgba(236, 72, 153, 0.18); color: #EC4899; }
.cat-badge-sports, [data-cat="sports"] { background: rgba(16, 185, 129, 0.18); color: #10B981; }
.cat-badge-strategy, [data-cat="strategy"] { background: rgba(132, 204, 22, 0.18); color: #84CC16; }
.cat-badge-arcade, [data-cat="arcade"] { background: rgba(168, 85, 247, 0.18); color: #A855F7; }
.cat-badge-simulation, [data-cat="simulation"] { background: rgba(59, 130, 246, 0.18); color: #3B82F6; }
.cat-badge-multiplayer, [data-cat="multiplayer"] { background: rgba(244, 63, 94, 0.18); color: #F43F5E; }
.cat-badge-kids, [data-cat="kids"] { background: rgba(251, 146, 60, 0.18); color: #FB923C; }
.cat-badge-originals, [data-cat="originals"] { background: rgba(234, 179, 8, 0.18); color: #EAB308; }
.cat-badge-physics, [data-cat="physics"] { background: rgba(14, 165, 233, 0.18); color: #0EA5E9; }
.cat-badge-allgames, [data-cat="allgames"] { background: rgba(100, 116, 139, 0.18); color: #94A3B8; }

/* Sidebar Bottom Promo Card */
.sidebar-promo-card {
    margin-top: auto;
    background: linear-gradient(145deg, #102144 0%, #0C162E 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.sidebar-promo-icon {
    width: 44px;
    height: 44px;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
}
.sidebar-promo-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 4px;
}
.sidebar-promo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.sidebar-promo-btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.sidebar-promo-btn:hover {
    background: var(--color-primary-hover);
}

/* ── Collapsed Sidebar (Play Page Rail) ─────────────────── */
.sidebar-collapsed {
    width: 76px;
    padding: 1.25rem 0.5rem 2rem;
    align-items: center;
}
.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.75rem 0;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}
.sidebar-collapsed .sidebar-link-text,
.sidebar-collapsed .sidebar-section-title,
.sidebar-collapsed .sidebar-promo-card {
    display: none !important;
}

/* ── Main Content Area ───────────────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2rem 3rem;
}

/* ── Hero Section (Split Banner) ─────────────────────────── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr; }
}

/* Main Carousel */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    height: var(--carousel-h, 280px);
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.carousel-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 13, 29, 0.95) 0%, rgba(7, 13, 29, 0.6) 45%, rgba(7, 13, 29, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2.25rem;
    z-index: 2;
}
.carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 184, 0, 0.2);
    color: var(--color-gold);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    width: fit-content;
}
.carousel-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.carousel-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #E2E8F0;
    margin-bottom: 1.15rem;
    max-width: 480px;
}
.carousel-btn {
    background: var(--color-gold);
    color: #0F172A;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35);
    transition: all 0.2s ease;
}
.carousel-btn:hover {
    background: #FFCA28;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
}

/* Carousel Controls */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-card);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    z-index: 10;
}
.carousel-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.carousel-dot.active {
    width: 24px;
    border-radius: var(--radius-full);
    background: #fff;
}

/* Spotlight Side Card */
.spotlight-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    height: var(--carousel-h, 280px);
}
.spotlight-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 21, 43, 0.2) 0%, rgba(12, 21, 43, 0.95) 80%);
    z-index: 2;
}
.spotlight-content {
    position: relative;
    z-index: 3;
}
.spotlight-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.5rem;
}
.spotlight-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.spotlight-btn {
    background: var(--color-cyan);
    color: #0B132B;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: all 0.2s;
}
.spotlight-btn:hover {
    background: #4EEDFF;
    transform: scale(1.03);
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
}
.section-view-all {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.section-view-all:hover {
    color: var(--color-cyan);
    gap: 10px;
}

/* ── Hot Games Shelf (5 columns) ─────────────────────────── */
.shelf-hot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (max-width: 1400px) {
    .shelf-hot-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .shelf-hot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .shelf-hot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Standard Game Card */
.game-card-voodoo {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-card);
}
.game-card-voodoo:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-hover);
}
.game-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0E162B;
    overflow: hidden;
}
.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card-voodoo:hover .game-thumb-img {
    transform: scale(1.05);
}
.game-card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}
.game-card-fav-btn:hover {
    background: rgba(11, 19, 43, 0.95);
    transform: scale(1.1);
}
.game-card-fav-btn.active {
    color: var(--color-pink);
    border-color: rgba(236, 72, 153, 0.4);
}

.game-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.game-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.game-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-gold);
}
.game-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.game-tag-pill {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ── Featured Games Shelf (3 Wide Columns) ───────────────── */
.shelf-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 1000px) {
    .shelf-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .shelf-featured-grid { grid-template-columns: 1fr; }
}

.featured-wide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}
.featured-wide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light);
}
.featured-wide-thumb {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #0E162B;
}
.featured-wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.featured-wide-card:hover .featured-wide-thumb img {
    transform: scale(1.05);
}

/* ── New Games Shelf (6 Columns Compact) ─────────────────── */
.shelf-new-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.1rem;
    margin-bottom: 3rem;
}
@media (max-width: 1400px) {
    .shelf-new-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
    .shelf-new-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
    .shelf-new-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .shelf-new-grid { grid-template-columns: repeat(2, 1fr); }
}

.new-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.new-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}
.new-game-thumb {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}
.new-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Category Rows ───────────────────────────────────────── */
.category-shelf-wrap {
    margin-bottom: 2.5rem;
}
.category-shelf-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-card) transparent;
}
.category-shelf-scroll::-webkit-scrollbar { height: 6px; }
.category-shelf-scroll::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }
.category-shelf-scroll .game-card-voodoo {
    flex: 0 0 220px;
}

/* Search No Results */
.no-results-box {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ── PLAY PAGE LAYOUT ────────────────────────────────────── */
.play-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 1200px) {
    .play-page-wrapper { grid-template-columns: 1fr; }
}

/* Breadcrumbs */
.play-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.play-breadcrumbs a:hover {
    color: var(--color-cyan);
}

/* Player Stage (Dynamic 16:9 fit to screen height with side margins) */
.player-stage-wrap {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
    max-width: min(100%, calc((100vh - 210px) * 1.7778));
    max-height: calc(100vh - 210px);
    margin: 0 auto 1.25rem;
    box-sizing: border-box;
}
.player-stage-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Fullscreen Body Lock */
body.vp-fs-active {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Fullscreen support (Native & Mobile Safari Viewport Mode) */
.player-stage-wrap:fullscreen,
.player-stage-wrap:-webkit-full-screen,
.player-stage-wrap.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 999999 !important;
}

.player-stage-wrap:fullscreen iframe,
.player-stage-wrap:-webkit-full-screen iframe,
.player-stage-wrap.is-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
}

#game-frame:fullscreen,
#game-frame:-webkit-full-screen {
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border: none !important;
}

/* Floating Exit Button for Fullscreen / Mobile Safari Fallback */
.vp-fs-exit-btn {
    display: none;
}
.player-stage-wrap:fullscreen .vp-fs-exit-btn,
.player-stage-wrap:-webkit-full-screen .vp-fs-exit-btn,
.player-stage-wrap.is-fullscreen .vp-fs-exit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top, 14px)) !important;
    right: max(14px, env(safe-area-inset-right, 14px)) !important;
    z-index: 1000000 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease !important;
    opacity: 0.88;
}
.player-stage-wrap:fullscreen .vp-fs-exit-btn:hover,
.player-stage-wrap:-webkit-full-screen .vp-fs-exit-btn:hover,
.player-stage-wrap.is-fullscreen .vp-fs-exit-btn:hover {
    opacity: 1 !important;
    transform: scale(1.04) !important;
    background: rgba(239, 68, 68, 0.9) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

/* Action Toolbar */
.player-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: min(100%, calc((100vh - 210px) * 1.7778));
    margin: 0 auto 1.75rem;
    box-sizing: border-box;
    overflow-x: auto;
}
.play-action-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.play-action-btn:hover {
    background: var(--bg-elevated);
    color: #fff;
    border-color: var(--border-light);
}
.play-action-btn.btn-fullscreen {
    background: rgba(0, 112, 243, 0.15);
    color: var(--color-primary);
    border-color: rgba(0, 112, 243, 0.3);
}
.play-action-btn.btn-fullscreen:hover {
    background: var(--color-primary);
    color: #fff;
}
.play-action-btn.btn-like.active {
    color: var(--color-cyan);
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.12);
}
.play-action-btn.btn-fav.active,
.play-action-btn.btn-liked {
    color: var(--color-pink);
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(236, 72, 153, 0.12);
}

/* Game Info Header */
.play-game-info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.play-game-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 1px solid var(--border-card);
    flex-shrink: 0;
}
.play-game-details {
    flex: 1;
}
.play-game-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}
.play-game-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.play-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.95rem;
}
.play-vote-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.play-tags-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.play-desc-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Metadata Ribbon */
.play-metadata-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 1.75rem;
}
@media (max-width: 700px) {
    .play-metadata-ribbon { grid-template-columns: repeat(2, 1fr); }
}
.meta-ribbon-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.meta-ribbon-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-ribbon-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.meta-ribbon-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

/* Play Page Right Sidebar */
.play-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.play-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}
.play-side-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 1.25rem;
}
.play-side-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.85rem;
}
.play-side-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.feature-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
}
.feature-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #CBD5E1;
    font-weight: 500;
}
.feature-check-item svg {
    color: var(--color-cyan);
    flex-shrink: 0;
}

/* More Games Like This (Side Recommendation list) */
.rec-games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rec-game-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.rec-game-row:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    transform: translateX(4px);
}
.rec-game-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.rec-game-info {
    flex: 1;
    min-width: 0;
}
.rec-game-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-game-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.rec-game-meta span { color: var(--color-gold); font-weight: 600; }
.rec-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.rec-game-row:hover .rec-play-btn {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* ── Multi-Column Footer ─────────────────────────────────── */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem 2rem;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr 2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 1100px) {
    .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 650px) {
    .footer-top-grid { grid-template-columns: 1fr; }
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.2px;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.footer-link-item a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-link-item a:hover {
    color: var(--color-cyan);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 280px;
}
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 0.75rem;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.footer-social-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Newsletter Form */
.newsletter-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.newsletter-form {
    display: flex;
    gap: 8px;
}
.newsletter-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
}
.newsletter-input:focus {
    border-color: var(--color-primary);
}
.newsletter-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-btn:hover {
    background: var(--color-primary-hover);
}
.newsletter-msg {
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
    line-height: 1.3;
}
.newsletter-msg.success {
    display: block;
    color: #10B981;
}
.newsletter-msg.error {
    display: block;
    color: #EF4444;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Modals & Banners (Extracted - No Inline CSS) ─────────── */
.controls-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.controls-modal-overlay.show {
    display: flex;
}
.controls-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 460px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.modal-close-btn:hover { color: #fff; background: var(--bg-elevated); }
.controls-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.25rem 0;
}
.controls-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E2E8F0;
    font-size: 0.95rem;
}
.key-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-weight: 700;
    color: var(--color-cyan);
}

/* Cookie Banner */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-top: 2px solid var(--color-cyan);
    z-index: 99999;
    padding: 1.25rem 2rem;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
    gap: 1rem;
}
#cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 280px; color: var(--text-secondary); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btn-accept {
    background: var(--color-cyan);
    color: #070D1D;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.cookie-btn-accept:hover { background: #4EEDFF; }
.cookie-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-card);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}
.cookie-btn-decline:hover { background: var(--bg-card); color: #fff; }

/* Toast */
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-cyan);
    color: #070D1D;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

/* ── MOBILE STICKY TOGGLABLE SEARCH BAR ─────────────────── */
.m-sticky-search-bar {
    display: none;
    position: sticky;
    top: 58px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(12, 21, 43, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding: 0.55rem 0.85rem;
    z-index: 999;
    box-sizing: border-box;
}
.m-sticky-search-bar.show {
    display: block !important;
}
.m-search-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.m-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.m-search-input {
    width: 100%;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0 2.5rem 0 2.5rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}
.m-search-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}
.m-search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.m-search-clear-btn:hover {
    color: #fff;
}

/* ── MOBILE RESPONSIVE ADAPTATIONS & NAVIGATION ─────────── */
.m-cats-bar {
    display: none !important;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .m-cats-bar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin-bottom: 0.85rem !important;
    }
    .m-cats-scroll {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .m-cats-scroll::-webkit-scrollbar {
        display: none !important;
    }
    .m-cat-chip {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-card) !important;
        padding: 5px 12px !important;
        border-radius: var(--radius-full) !important;
        color: #fff !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
    }
    .m-cat-chip:hover, .m-cat-chip:active {
        border-color: var(--color-primary) !important;
        background: var(--bg-card-hover) !important;
        color: var(--color-cyan) !important;
    }

    /* Shelves on Mobile - Zero Side-Scroll */
    .shelf-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin-bottom: 2rem !important;
    }
    .shelf-hot-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 2rem !important;
    }
    .shelf-featured-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 2rem !important;
    }
    .shelf-new-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 2rem !important;
    }
    .category-shelf-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin-bottom: 1.75rem !important;
    }
    .category-shelf-scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }
    .category-shelf-scroll .game-card-voodoo {
        flex: 0 0 160px !important;
    }

    /* Hero Section on Mobile - Fit Screen Width Perfectly */
    .hero-grid {
        grid-template-columns: 100% !important;
        gap: 0 !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .spotlight-card {
        display: none !important;
    }
    .hero-carousel {
        height: 200px !important;
        min-height: unset !important;
        max-height: 215px !important;
        aspect-ratio: auto !important;
        border-radius: var(--radius-lg) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .carousel-track {
        width: 100% !important;
        height: 100% !important;
    }
    .carousel-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
    .carousel-overlay {
        padding: 1rem 1.15rem !important;
        justify-content: center !important;
        background: linear-gradient(90deg, rgba(7, 13, 29, 0.95) 0%, rgba(7, 13, 29, 0.8) 60%, rgba(7, 13, 29, 0.35) 100%) !important;
    }
    .carousel-badge {
        font-size: 0.62rem !important;
        padding: 2px 7px !important;
        margin-bottom: 0.25rem !important;
    }
    .carousel-title {
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.25rem !important;
        letter-spacing: -0.4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .carousel-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .carousel-btn {
        font-size: 0.72rem !important;
        padding: 0.38rem 0.95rem !important;
    }
    .carousel-nav-btn {
        display: none !important;
    }
    .carousel-dots {
        bottom: 8px !important;
    }
    .carousel-dot {
        width: 6px !important;
        height: 6px !important;
    }
    .carousel-dot.active {
        width: 16px !important;
    }

    /* Footer on Mobile - Zero Side-Scroll */
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .footer-top-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }
    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 2rem 1rem 5.5rem !important;
        overflow-x: hidden !important;
        margin-top: 2.5rem !important;
    }

    /* Play Page on Mobile */
    .play-page-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .play-left-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .player-stage-wrap {
        width: 100% !important;
        max-width: 100% !important;
        max-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 0.75rem !important;
    }
    .player-toolbar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem 0.65rem !important;
        gap: 6px !important;
        margin-bottom: 1.25rem !important;
    }
    .play-action-btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.78rem !important;
    }
    .meta-ribbon-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Mobile Sticky Bottom Nav */
.m-bottom-nav {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(12, 21, 43, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .m-bottom-nav {
        display: flex !important;
    }
}
.m-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 0;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.m-nav-item:hover, .m-nav-item.active {
    color: var(--color-cyan);
}
.m-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}
.m-nav-item.active svg {
    color: var(--color-cyan);
    transform: scale(1.1);
}

/* Utility & No-results Classes */
.no-results-box {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.no-results-box.show {
    display: block !important;
}
.no-results-box p {
    font-size: 1.1rem;
    margin-top: 1rem;
}
.text-cyan {
    color: var(--color-cyan) !important;
}

/* Legal Pages (Privacy & Terms) */
.legal-body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 2.5rem 1rem;
    line-height: 1.7;
}
.legal-container {
    max-width: 840px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
}
.legal-container h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.legal-container h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-container a {
    color: var(--color-cyan);
    text-decoration: none;
}
.legal-container a:hover {
    text-decoration: underline;
}
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    text-decoration: none;
}
.legal-back-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ── Brand Image Logo ────────────────────────────────────── */
.brand-logo-img {
    max-height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.brand-beta-tag {
    background: linear-gradient(135deg, #FF007A, #7928CA);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 0, 122, 0.4);
    align-self: flex-start;
    margin-top: 2px;
    margin-left: 2px;
    white-space: nowrap;
}

/* ── Category Page Styles ───────────────────────────────── */
.cat-page-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 200px;
    background: linear-gradient(135deg, #101F42 0%, #080E1E 100%);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-end;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cat-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}
.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #070D1D 10%, rgba(7, 13, 29, 0.5) 60%, rgba(7, 13, 29, 0.2) 100%),
                radial-gradient(ellipse at bottom left, rgba(0, 112, 243, 0.25) 0%, transparent 60%);
    z-index: 2;
}
.cat-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}
.cat-banner-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cat-banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cat-banner-count-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-cyan);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}
.cat-banner-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 680px;
    line-height: 1.5;
    margin: 0;
}
.cat-page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.cat-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.55rem 1rem;
    flex: 1;
    max-width: 360px;
}
.cat-search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}
.cat-sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-sort-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.cat-sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.cat-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1400px) {
    .cat-games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .cat-games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cat-page-banner {
        padding: 1.5rem 1.25rem;
        min-height: 160px;
    }
    .cat-banner-title {
        font-size: 1.5rem;
    }
    .cat-page-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .cat-search-box {
        max-width: 100%;
    }
    .cat-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.game-card-hidden {
    display: none !important;
}
.no-games-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    color: var(--text-muted);
}
.no-games-notice p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}




