.memorama-stat {
    background: #f4f4f4;
    border: 2px solid #964594;
    border-radius: 12px;
    padding: 10px 20px;
    color: #964594;
    font-weight: 600;
}

.text-title{
    color: #ff7301;
}

.text-black{
    color:#2a2a2a;
}

.game-board {
   
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    inset: 0;

    background: #f4f4f4;
    border: 2px solid #964594;
    border-radius: 12px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.memory-card-front img {
    width: 70%;
    max-width: 90px; /*90*/
    object-fit: contain;
}

.memory-card-back {
    transform: rotateY(180deg);
    flex-direction: column;
    text-align: center;
    padding: 10px;
}

.memory-card-back img {
    width: 50%;
    max-width: 70px;
    margin-bottom: 8px;
}

.memory-card-back h6 {
    margin: 0;
    color: #964594;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
}

.memory-card.matched {
    opacity: .75;
    pointer-events: none;
}

.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg) scale(.96);
}

/* Modal */
.memorama-modal {
    border: 2px solid #964594;
    border-radius: 16px;
}

.memorama-modal .modal-title {
    color: #964594;
    font-weight: 700;
}

.memorama-modal .modal-body p {
    margin: 0;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 992px) {
    .game-board {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .memory-card-back h6 {
        font-size: .72rem;
    }
}

@media (max-width: 576px) {

    .game-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-card-front img {
        width: 65%;
    }

    .memory-card-back img {
        width: 45%;
        max-width: 55px;
    }

    .memory-card-back h6 {
        font-size: .68rem;
    }

    .memorama-stat {
        padding: 8px 14px;
        font-size: .9rem;
    }
}


.memorama-start-card h1 {
    color: #964594;
    font-weight: 800;
}

.memorama-btn {
    background: #964594;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px;
}

.memorama-btn:hover {
    background: #7d367b;
    color: #fff;
}

.memorama-page {
    padding-top: 150px;
    padding-bottom: 90px;
    min-height: calc(100vh - 120px);
}

.memorama-start-card {
    position: relative;
    z-index: 1;
    background: #f4f4f4;
    border: 2px solid #964594;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

@media (max-width: 768px) {
    .memorama-page {
        padding-top: 110px;
        padding-bottom: 70px;
    }
}

.memorama-btn-secondary {
    background: #f4f4f4;
    color: #964594;
    border: 2px solid #964594;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 24px;
}

.memorama-btn-secondary:hover {
    background: #964594;
    color: #fff;
}

.memorama-start-card .form-label i {
    color: #6f42c1;
}