.shape {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.shaperesult {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 15px;
}

@media screen and (min-width: 768px) {
    .slot {
        width: 120px;
        height: 120px;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff8e9;
        border-radius: 5px;
    }
    .pieceWrapper {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
    .targetImg {
        width: 150px;
        height: 150px;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
    .slot-result {
        width: 60px;
        height: 60px;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff8e9;
        border-radius: 5px;
    }
    .targetImgResult {
        width: 60px;
        height: 60px;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
}

@media screen and (max-width: 676px) {
    .slot {
        width: 50px;
        height: 50px;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff8e9;
        border-radius: 5px;
    }
    .pieceWrapper {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
    .targetImg {
        width: 60px;
        height: 60px;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
    .slot-result {
        width: 50px;
        height: 50px;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff8e9;
        border-radius: 5px;
    }
    .targetImgResult {
        width: 50px;
        height: 50px;
        border: 2px solid #ccc;
        border-radius: 5px;
    }
}

.piece {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

.correct-border {
    border: 3px solid #28a745;
}

.wrong-border {
    border: 3px solid #dc3545;
}

.summary {
    background: white;
    padding: 15px;
    margin: 20px auto;
    border: 1px solid #ccc;
}

.summary img {
    width: 320px;
    height: auto;
    margin-top: 10px;
    object-fit: contain;
}

#correctAnswerArea.capture-mode {
    position: absolute;
    left: -9999px;
    top: -9999px;
    display: flex !important;
}

#shapeArea {
    display: flex;
    align-items: center;
    /* ✅ Vertically center children */
    gap: 8px;
}

.equals-sign {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 60px;
    /* match piece height */
}

.mainshape {
    width: 90px;
    height: 90px;
    border: 2px solid #ccc;
    background-color: #fff8e9;
    border-radius: 5px;
}

#shapeAreaResult {
    display: flex;
    align-items: center;
    gap: 8px;
}