html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ==========================================================================
   Yono Rummy / Yono Games - Enhanced Modern UI & UX Styling
   Maintains original layout structure while perfecting alignment, typography,
   tactile buttons, mobile responsiveness, and visual polish.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fffbeb;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Typography */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Header & Navigation Bar */
header.bg-success {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 100;
}

header .navbar {
    padding: 10px 0;
}

header .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.3px;
    font-size: 1.35rem;
}

header .navbar-brand img.logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    margin-right: 10px !important;
}

header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

header .navbar-nav .nav-link:hover,
header .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

header .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Top Marquee / Live Notice Bar */
.pt-2.bg-dark {
    background: #0f172a !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #1e293b;
}

.pt-2.bg-dark .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.pt-2.bg-dark marquee {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 0.2px;
}

/* Section Headings */
h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1.25rem;
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* Home Welcome Notice Card */
.home-welcome-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Featured App Box */
.featured-box {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-top: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.featured-box::after {
    content: 'TOP PICK';
    position: absolute;
    top: 14px;
    right: 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.featured-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #ffffff;
    transition: var(--transition);
}

.app-row:hover .app-icon {
    transform: scale(1.04);
}

.app-content {
    display: flex;
    flex-direction: column;
}

.app-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.35;
    transition: var(--transition);
}

.app-title:hover {
    color: var(--primary-dark);
}

.app-content .featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Latest Games Slider */
.game-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 25px;
}

.game-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    list-style: none;
    padding: 10px 4px 16px 4px;
    margin: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.game-slider::-webkit-scrollbar {
    display: none;
}

.game-slide {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
    scroll-snap-align: start;
    transition: var(--transition);
}

.game-slide:hover {
    transform: translateY(-4px);
}

.game-slide a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-slide img {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid #ffffff;
    transition: var(--transition);
}

.game-slide:hover img {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.game-title {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84px;
}

.slider-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-btn.prev {
    margin-right: 8px;
}

.slider-btn.next {
    margin-left: 8px;
}

/* Popular Games List - Core Redesign */
.mob-container {
    padding-left: 0;
    padding-right: 0;
}

.ele-list {
    background: transparent;
}

.ele-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t-flex.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.t-flex.card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.t-flex.card .flex_grow {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 14px;
}

/* Modern Rank Number Badge */
i.num {
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 800;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
    position: static;
    margin: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ele-list ul li:nth-child(1) i.num {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.ele-list ul li:nth-child(2) i.num {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
}

.ele-list ul li:nth-child(3) i.num {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(146, 64, 14, 0.3);
}

/* Game Icon */
.t-flex.card img {
    width: 74px;
    height: 74px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    border: 1.5px solid #ffffff;
    flex-shrink: 0;
    transition: var(--transition);
}

.t-flex.card:hover img {
    transform: scale(1.05);
}

/* Game Info */
.info.flex_grow {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.info.flex_grow h3.name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info.flex_grow p.grade {
    margin-bottom: 3px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.info.flex_grow p.grade span {
    color: #b45309;
    background: var(--accent-light);
    border: 1px solid #fef3c7;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-block;
}

.info.flex_grow p.txt {
    color: #047857;
    background: var(--primary-light);
    border: 1px solid #d1fae5;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-block;
    margin-bottom: 0;
}

/* Download Button Container & Buttons */
.dwnbtn {
    flex-shrink: 0;
}

.btn-custom,
.dwnbtn .btn {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition) !important;
}

.btn-custom:hover,
.dwnbtn .btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
    transform: translateY(-2px);
}

.btn-custom:active,
.dwnbtn .btn:active {
    transform: scale(0.98);
}

/* Responsive Mobile Layout for Popular Games */

/* Section Title Accent */
.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 14px 0 8px 0;
    display: flex;
    align-items: center;
}

/* Compact Welcome Banner */
.home-welcome-card.compact-welcome {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-left: 3.5px solid var(--primary);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.welcome-preview {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Featured App Improvements */
.featured-box {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    position: relative;
}
.featured-box::after {
    display: none; /* Replaced by inline badge */
}
.featured-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ffffff;
}
.app-title {
    color: var(--text-primary);
    font-size: 1.0rem;
    font-weight: 800;
    line-height: 1.25;
}
.app-content .featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Compact Download Button */
.btn-download-compact {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.btn-download-compact:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4) !important;
}

/* Game Meta Badges */
.game-meta-pills {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 2px;
}
.badge-bonus {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}
.badge-min {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.70rem;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Popular Games Card Compact Alignment */
.t-flex.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.15s ease-in-out;
}
.t-flex.card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}
.t-flex.card .flex_grow {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 10px;
    min-width: 0;
}
.t-flex.card img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.info.flex_grow h3.name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

/* Mobile Responsiveness (Ultra-Compact, High-Density UX) */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .slider-btn {
        display: none;
    }

    /* Section Title */
    .section-title {
        font-size: 0.95rem !important;
        margin: 8px 0 5px 0 !important;
    }

    /* Home Notice Card */
    .home-welcome-card.compact-welcome {
        padding: 6px 10px !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }
    .welcome-preview {
        font-size: 0.74rem !important;
    }

    /* Featured App Mobile */
    .featured-box {
        padding: 8px 10px !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }
    .featured-title {
        font-size: 0.72rem !important;
        margin-bottom: 5px !important;
    }
    .app-icon {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }
    .app-title {
        font-size: 0.88rem !important;
    }
    .app-content .featured-meta {
        font-size: 0.72rem !important;
        margin-top: 1px !important;
        gap: 6px !important;
    }

    /* Slider Mobile */
    .game-slider-wrapper {
        padding: 0 !important;
        margin-bottom: 6px !important;
    }
    .game-slider {
        padding: 4px 2px 8px 2px !important;
        gap: 10px !important;
    }
    .game-slide img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
    }
    .game-slide .game-title {
        font-size: 0.68rem !important;
        max-width: 52px !important;
        margin-top: 3px !important;
    }

    /* Game List Row Mobile: STRICTLY HORIZONTAL */
    .t-flex.card {
        padding: 6px 8px !important;
        margin-bottom: 5px !important;
        border-radius: 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 52px !important;
    }

    .t-flex.card .flex_grow {
        gap: 8px !important;
        min-width: 0 !important;
    }

    i.num {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.70rem !important;
        border-radius: 5px !important;
    }

    .t-flex.card img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
    }

    .info.flex_grow h3.name {
        font-size: 0.82rem !important;
        max-width: 130px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .game-meta-pills {
        gap: 4px !important;
        margin-top: 1px !important;
    }

    .badge-bonus {
        font-size: 0.66rem !important;
        padding: 0 4px !important;
    }

    .badge-min {
        font-size: 0.64rem !important;
        padding: 0 4px !important;
    }

    .dwnbtn-col {
        margin-left: 6px !important;
        flex-shrink: 0 !important;
    }

    .btn-download-compact {
        padding: 4px 10px !important;
        font-size: 0.74rem !important;
        border-radius: 16px !important;
    }
}

/* Post Page & Table Specs Enhancement */
.breadcrumb {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.game-specs-card,
table.table-striped {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

table.table-striped thead tr:first-child td {
    background: #ffffff !important;
    padding: 18px !important;
    border-bottom: 1px solid var(--border-color);
}

table.table-striped thead tr:first-child h1 {
    font-size: 1.35rem !important;
    font-weight: 800;
    color: var(--text-primary);
}

table.table-striped thead tr.bg-primary {
    background: var(--primary-gradient) !important;
}

table.table-striped thead tr.bg-primary th {
    padding: 10px 16px !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border: none;
}

table.table-striped tbody td {
    padding: 12px 16px !important;
    font-size: 0.92rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

table.table-striped tbody td:first-child {
    font-weight: 700;
    color: var(--text-secondary);
}

.game-intro {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Styling */
.card .card-header {
    background: #ffffff;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Scroll To Top Floating Button */
.scroll-btn {
    height: 44px;
    width: 44px;
    border: none;
    border-radius: 50% !important;
    background: var(--primary-gradient);
    position: fixed;
    bottom: 25px;
    right: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.scroll-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.scroll-btn i {
    color: #ffffff;
    font-size: 16px;
}

/* Multi-column Footer Styles */
.site-footer-wrapper {
    margin-top: 50px;
}
.footer-about-banner {
    box-shadow: 0 -4px 20px rgba(5, 150, 105, 0.15);
}
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
}
.footer-links li a {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}
.footer-links li a:hover {
    color: #10b981 !important;
    transform: translateX(4px);
}
.btn-download-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    transition: var(--transition) !important;
}
.btn-download-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}



/* Prevent any child element from breaking viewport width */
.featured-box, .t-flex.card, .home-welcome-card, .gamelist, .ele-list {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Rank Medals Badges */
.ele-list ul li:nth-child(1) i.num {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.35) !important;
}
.ele-list ul li:nth-child(2) i.num {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(100, 116, 139, 0.3) !important;
}
.ele-list ul li:nth-child(3) i.num {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.3) !important;
}
.ele-list ul li:nth-child(n+4) i.num {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Featured Box Glow Effect */
.featured-box {
    border: 1.5px solid #86efac !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12) !important;
}


/* ========================================================
   PREMIUM MOBILE SPACING, TYPOGRAPHY & LAYOUT PERFECTION
   ======================================================== */

/* Body & Viewport width lock */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    background-color: #f8fafc !important;
}

/* Compact Welcome Notice Banner */
.compact-welcome-notice {
    background: #ffffff !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 3.5px solid #10b981 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    margin: 4px 0 8px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.welcome-short-text {
    font-size: 0.76rem !important;
    color: #475569 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: calc(100vw - 110px) !important;
}

/* Featured App Box - Tight, Modern Card */
.featured-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1.5px solid #86efac !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin-top: 4px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}

.featured-label {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #047857 !important;
    letter-spacing: 0.6px !important;
}

.featured-box .app-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

.featured-box .app-title {
    font-size: 0.90rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
}

/* Section Title */
.section-title {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 10px 0 6px 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Latest Games Slider */
.game-slider-wrapper {
    padding: 0 !important;
    margin-bottom: 8px !important;
}

.game-slider {
    padding: 4px 2px 6px 2px !important;
    gap: 10px !important;
    margin: 0 !important;
}

.game-slide img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 10px !important;
}

.game-slide .game-title {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    max-width: 68px !important;
    margin-top: 3px !important;
}

/* Popular Games Card - Clean, High Density, No Empty Wasteland */
.t-flex.card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 7px 10px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 52px !important;
    transition: all 0.15s ease !important;
}

.t-flex.card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06) !important;
}

.t-flex.card img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 9px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06) !important;
}

.info h3.name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.25 !important;
}

/* Meta Pills */
.game-meta-pills {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.badge-bonus {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    border: 1px solid #bbf7d0 !important;
    white-space: nowrap !important;
}

.badge-min {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.66rem !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

/* Rank Number Badges */
i.num {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-style: normal !important;
}

.ele-list ul li:nth-child(1) i.num {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
}
.ele-list ul li:nth-child(2) i.num {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.25) !important;
}
.ele-list ul li:nth-child(3) i.num {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(180, 83, 9, 0.25) !important;
}
.ele-list ul li:nth-child(n+4) i.num {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

/* Compact Get Button */
.btn-download-compact {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25) !important;
}

/* ========================================================
   POST & GAME PAGE (ABOUT / GUIDE) TYPOGRAPHY FIX (IMAGE 2)
   Eliminate narrow column & double border nesting!
   ======================================================== */
.game-description-body {
    width: 100% !important;
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

.game-description-body .col-12,
.game-description-body .game-intro,
.game-description-body .card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.game-description-body h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
    border-left: 3px solid #10b981 !important;
    padding-left: 8px !important;
    line-height: 1.35 !important;
}

.game-description-body p {
    font-size: 0.90rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin-bottom: 12px !important;
}

.game-description-body ul,
.game-description-body ol {
    padding-left: 20px !important;
    font-size: 0.90rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin-bottom: 14px !important;
}

.game-description-body li {
    margin-bottom: 6px !important;
}

/* Clickable Game & Blog Cards */
.t-flex.card, .featured-card, .sidebar-game-row, .blog-home-card {
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}
.t-flex.card:hover, .featured-card:hover, .sidebar-game-row:hover, .blog-home-card:hover {
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15) !important;
    transform: translateY(-2px);
}
.t-flex.card:active, .featured-card:active, .sidebar-game-row:active, .blog-home-card:active {
    transform: scale(0.99);
}

/* Ensure FAQ Accordions Never Have Left Borders or Formatting Artifacts */
.accordion-header,
.accordion-button,
.clean-faq-item,
.clean-faq-header,
.clean-faq-btn {
    border-left: none !important;
}
.clean-faq-btn:focus {
    box-shadow: none !important;
    border-color: #d1fae5 !important;
}


/* ==========================================================================
   TOP-TIER PROFESSIONAL GAMING UI & STATUTORY DISCLAIMER STYLES
   ========================================================================== */

/* 1. Sticky Bottom Disclaimer Bar */
.sticky-disclaimer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    padding: 6px 12px;
    transition: transform 0.3s ease;
}

.sticky-disclaimer-bar .badge {
    letter-spacing: 0.5px;
}

/* 2. Floating Telegram VIP Pill */
.floating-tg-pill {
    position: fixed;
    bottom: 60px;
    right: 18px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-tg-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
    color: #ffffff !important;
}

.tg-pulse-ring {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: tgPulse 1.8s infinite;
}

@keyframes tgPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.floating-tg-pill .tg-icon {
    font-size: 16px;
}

/* 3. Live Search & Category Filter Pills */
.filter-search-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.filter-search-input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 18px 10px 42px;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar {
    display: none;
}

.filter-pill-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.filter-pill-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

/* 4. Ranking Badges */
.num.gold-rank {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}
.num.silver-rank {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #ffffff !important;
}
.num.bronze-rank {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
}

/* 5. MoreYonoGames Statutory Box in Footer */
.moreyono-disclaimer-card {
    background: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
