.game-view { }
@media (min-width: 768px)  { .game-view { margin: 0; } }
@media (min-width: 992px)  { .game-view { margin: 0; } }

/* ── Provider dropdown ── */
.prov-dd-wrap {
    position: relative;
    padding: 10px 0 8px;
}

.prov-dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-width: 130px;
    max-width: 185px;
    background: var(--ternary-background-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--secondary-text-color);
    transition: background 0.15s;
    user-select: none;
}

.prov-dd-btn:active { background: var(--accent-bg-active, rgba(255,165,0,0.15)); }

.prov-dd-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
}

.prov-dd-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.prov-dd-btn .chevron {
    font-size: 9px;
    color: var(--muted-text-color);
    transition: transform 0.2s;
    margin-left: 2px;
}

.prov-dd-btn.open .chevron { transform: rotate(180deg); }

.prov-dd-panel {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 200;
    background: var(--primary-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    width: 200px;
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.prov-dd-panel::-webkit-scrollbar { display: none; }
.prov-dd-panel.open { display: block; }

.prov-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--secondary-text-color);
    transition: background 0.12s;
}

.prov-dd-item:hover { background: var(--ternary-background-color); }

.prov-dd-item.active {
    background: var(--accent-bg-active, rgba(255,165,0,0.15));
    font-weight: 700;
    color: var(--accent-color, #f90);
}

.prov-dd-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.game-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.game-filter-tabs::-webkit-scrollbar { display: none; }

.game-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fs-md);
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--ternary-background-color);
    color: var(--primary-text-color);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.game-filter-tab.active {
    background: var(--accent-color);
    color: var(--btn-deposit-text);
    font-weight: 700;
}

.filter-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.filter-row .prov-dd-wrap {
    flex-shrink: 0;
    padding: 10px 0 8px;
}

.filter-row .game-filter-tabs {
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
}

.game-search-wrap {
    position: relative;
    margin: 10px 0;
}

.game-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text-color);
    font-size: var(--fs-xl);
}

.game-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--ternary-background-color);
    color: var(--primary-text-color);
    font-size: var(--fs-lg);
    outline: none;
}

.game-search-input::placeholder { color: var(--muted-text-color); }

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
    padding-bottom: 70px;
}

@media (min-width: 768px) {
    .game-grid {
        /* grid-template-columns: repeat(auto-fill, 140px); */
        grid-template-columns: repeat(9, 1fr);
        justify-content: start;
        gap: 10px;
        padding-bottom: 0;
    }
}

.game-card {
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.15s;
}
.game-card:active { transform: scale(0.95); }
.game-card:hover { transform: translateY(-8px); }

.game-card-img-box {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--ternary-background-color);
    position: relative;
}
.game-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-flag-badge {
    position: absolute;
    top: 3px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}
.game-flag-badge--new {
    left: 3px;
    background: #2ecc71;
}
.game-flag-badge--hot {
    right: 3px;
    background: #e74c3c;
}

.game-card--alt .game-card-img-box img {
    object-fit: cover;
    /* object-fit: contain; */
    /* object-position: center bottom;
    padding: 30px 0px;
    margin: -32px 0px; */
}

/* Caption ditumpuk DI ATAS gambar (overlay) — tinggi card tidak pernah berubah,
   dipakai saat gambar cuma ketemu lewat retry tanpa "/new/" */
.game-card-caption {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 6px 6px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}
.game-card--alt .game-card-caption {
    display: block;
}

.game-card-name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-provider {
    margin-top: 2px;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-skeleton {
    background: linear-gradient(90deg, var(--skeleton-color-base) 25%, var(--skeleton-color-shine) 50%, var(--skeleton-color-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: var(--radius-lg);
    aspect-ratio: 2 / 3;
    min-width: 0;
    width: 100%;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.prov-dd-item-cb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--secondary-text-color);
    transition: background 0.12s;
}
.prov-dd-item-cb:hover { background: var(--ternary-background-color); }
.prov-dd-item-cb.checked {
    background: var(--accent-bg-active, rgba(255,165,0,0.15));
    color: var(--accent-color, #f90);
    font-weight: 700;
}
.prov-dd-item-cb img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.prov-dd-badge-new {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    background: var(--accent-color);
    color: var(--btn-deposit-text, #000);
    flex-shrink: 0;
}
.dd-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
}
.dd-backdrop.open { display: block; }

.lazy-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 70px;
    color: var(--muted-text-color);
    font-size: var(--fs-sm);
}
@media (min-width: 768px) { .lazy-sentinel { padding-bottom: 16px; } }
.lazy-sentinel.hidden { display: none !important; }
