/* ====================================================================
   PRODUCTS / GAMES LIST — PREMIUM STYLES
   ==================================================================== */

.game-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer overlay on hover */
.game-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(99, 102, 241, 0.045) 50%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-box:hover::before { opacity: 1; }

.game-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.game-box:active {
    transform: scale(0.975);
    background-color: #f8f9fa;
    box-shadow: none;
}

/* Game image with zoom on hover */
.img-sq {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.game-box:hover .img-sq { transform: scale(1.08); }

/* ==================== FAVOURITE BUTTON ==================== */

.btn-fav {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 2;
    color: #adb5bd;
    font-size: 13px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.22s ease;
}

    .btn-fav:hover {
        transform: scale(1.2);
        box-shadow: 0 4px 14px rgba(220, 53, 69, 0.25);
        border-color: rgba(220, 53, 69, 0.3);
        color: #dc3545;
    }

    .btn-fav.is-fav {
        color: #dc3545;
        background: #fff5f5;
        border-color: #ffc1c1;
    }

    .btn-fav.is-fav:hover {
        background: #dc3545;
        color: #fff;
        box-shadow: 0 4px 14px rgba(220, 53, 69, 0.38);
    }

/* ==================== TEXT HELPERS ==================== */

.text-xs  { font-size: .75rem; }
.text-xxs { font-size: .65rem; }

/* ==================== DARK MODE ==================== */

[data-bs-theme="dark"] .game-box {
    background: #1e1f2e;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .game-box:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-bs-theme="dark"] .game-box:active {
    background-color: #252636;
}

[data-bs-theme="dark"] .game-box::before {
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(99, 102, 241, 0.08) 50%,
        transparent 80%
    );
}

[data-bs-theme="dark"] .btn-fav {
    background: #252636;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #64748b;
}

[data-bs-theme="dark"] .btn-fav.is-fav {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.3);
}
