/* CSS for Matching Game */

.gamesxblock-matching {
    font-family: 'Inter', sans-serif;
    padding: 24px;
    background: var(--white, #FFFFFF);
    border-radius: 8px;
    box-shadow: 0px 8px 48px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.matching-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.matching-title {
    color: var(--primary-500, #00262B);
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    margin: 0;
}

.matching-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    min-height: 48px;
}

.matching-timer {
    color: var(--primary-500, #00262B);
    font-size: 28px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -1.96px;
    text-align: center;
    flex: 1;
}

.matching-progress-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.matching-progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.matching-progress-bg {
    fill: none;
    stroke: var(--light-400, #E1DDDB);
    stroke-width: 3;
}

.matching-progress-bar {
    fill: none;
    stroke: var(--success-500, #0D7D4D);
    stroke-width: 3;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.3s ease;
    stroke-linecap: round;
}

.matching-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-500, #00262B);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

.matching-help-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500, #00262B);
    cursor: pointer;
    transition: color 0.2s ease;
}

.matching-help-icon:hover {
    color: var(--primary-700, #00171A);
}

.matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.matching-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matching-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 80px;
    border-radius: 8px;
    border: 2px solid var(--light-300, #F2F0EF);
    background: var(--white, #FFFFFF);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.matching-box:hover {
    border-color: var(--light-500, #E1DDDB);
    background: var(--light-100, #FAFAFA);
}

.matching-box.selected {
    border-color: var(--primary-500, #00262B);
    background: var(--light-200, #F8F8F8);
}

.matching-box.matched {
    border-color: var(--success-500, #0D7D4D);
    background: var(--success-100, #F2FAF7);
    opacity: 0.6;
    pointer-events: none;
}

.matching-box.incorrect {
    animation: shake 0.4s ease;
    border-color: var(--danger-700, #AB0D02);
    background: var(--danger-100, #FCF1F4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.matching-box-text {
    color: var(--primary-500, #00262B);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.matching-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-top: 24px;
}

