.foyer-captcha-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.captcha-instruction {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.captcha-puzzle {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.captcha-zone {
    position: relative;
    width: 200px;
    height: 80px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.captcha-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border: 2px dashed #999;
    border-radius: 6px;
    box-sizing: border-box;
}

.captcha-piece {
    position: absolute;
    left: 120px;
    top: 0;
    width: 80px;
    height: 80px;
    background: #0073aa;
    border-radius: 6px;
    cursor: grab;
    transition: left 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.foyer-captcha-wrapper.valid .captcha-piece {
    background: #46b450;
    cursor: default;
}

.foyer-captcha-wrapper.valid .captcha-target {
    border-color: #46b450;
    background: #e8f5e9;
}

.captcha-status {
    margin: 10px 0;
    font-size: 13px;
    min-height: 30px;
}

.foyer-captcha-toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .captcha-zone {
        width: 160px;
        height: 70px;
    }
    .captcha-target,
    .captcha-piece {
        width: 70px;
        height: 70px;
    }
    .captcha-piece {
        left: 90px;
    }
}