/* Denklik Arenası Aesthetics */

.stat-box-bold {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    /* Keeps layout stable if border is added on hover */
}

/* Card Animations */
@keyframes matchSuccess {
    0% {
        transform: scale(1);
        opacity: 1;
        background-color: #22c55e;
        border-color: #22c55e;
        color: white;
    }

    40% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.card-btn.matched {
    animation: matchSuccess 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
    /* Prevent clicks during animation */
    z-index: 10;
}

.card-btn {
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}


.card-btn:active {
    transform: scale(0.95);
}

/* Responsive Fixes for Denklik Game */
@media (max-width: 768px) {
    #denklik-game-container {
        width: 100%;
        overflow-x: hidden;
        padding: 5px;
    }

    #denklik-screen .grid {
        gap: 10px;
        /* Reduce gap on mobile */
    }

    /* Fix Stat Boxes on Mobile */
    .stat-box-bold {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1 1 auto;
        /* Allow shrinking */
        min-width: 80px;
        /* Prevent crushing */
        justify-content: center;
    }
}