/* PANDORA NUCLEAR LAYOUT FIX - MATCHING IMAGE 2 */
.row.demoslot {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -10px !important;
    margin-left: -10px !important;
    justify-content: center;
}

/* Base Card Logic (applied to the col div) */
.game-card {
    padding: 10px !important;
    display: block !important;
    float: left; /* Fallback */
    transition: all 0.3s ease;
}

/* Mobile: 2 Columns */
@media (max-width: 575.98px) {
    .game-card {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Desktop: 4 Columns */
@media (min-width: 576px) {
    .game-card {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Inner Card Styling - Looking like Image 2 */
.game-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important; /* Standard Card Ratio */
    object-fit: cover !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.03);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.game-card p {
    color: #fff !important;
    font-size: 0.9rem !important;
    margin: 10px 0 !important;
    font-weight: 500 !important;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card .btn-warning {
    background: linear-gradient(180deg, #ffd700 0%, #daa520 100%) !important;
    border: none !important;
    border-radius: 5px !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    width: 90% !important;
    margin: 0 auto !important;
    display: block !important;
}

.game-card .btn-warning:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Reset any bootstrap col padding conflicts */
.demoslot [class*="col-"] {
    padding: 0 !important;
}
