body {
    font-family: 'Baloo 2', cursive;

}

.mm-logo {
    color: #5b2fc9;
}

.mm-stat-icon {
    width: 32px;
    height: 32px;
}

.mm-stat-icon.time {
    background: #fff3cd;
    color: #c9942f;
}

.mm-stat-icon.score {
    background: #e9e4ff;
    color: var(--primary);
}


.btn-reset {
    background: #5b2fc9;
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 47, 201, .28);
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-reset:hover {
    background: #5b2fc998;
    box-shadow: 0 6px 18px rgba(91, 47, 201, .34);
    color: #fff;
}

.mm-progress-wrap {
    height: 8px;
    background: #e2e4f8;
}

.mm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5b2fc9, #5b2fc998);
    border-radius: 99px;
    transition: width .5s ease;
}


.mm-card {
    border: 2px solid rgba(91, 47, 201, .34);
}

.mm-card:hover {
    border-color: #5b2fc998;
    box-shadow: 0 6px 18px rgba(91, 47, 201, .15);
}
.imgcard {
  width: 100%;
  height: 140px;
  object-fit: cover; 
  cursor: pointer;
  transition: transform 0.3s ease;
}

.imgcard.flipped {
  transform: scale(1.05);
}

#win {
    color: #5b2fc998;
}


.mm-win-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 64, .55);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.mm-win-overlay.show {
    display: flex;
}

.mm-win-box {
    background: #fff;
    padding: 44px 48px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(91, 47, 201, .22);
    max-width: 360px;
    width: 90%;
    animation: slideUp .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mm-win-emoji {
    font-size: 3.5rem;
}

.mm-win-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0 4px;
}

.mm-win-sub {
    color: #888;
    font-size: .95rem;
    margin-bottom: 24px;
}

.mm-win-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.mm-win-stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
}

.mm-win-stat-lbl {
    font-size: .72rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
}