/* =========================================================
   DEEP GREEN CLEAN — RESULT / BEFORE AFTER
   Source selectors preserved from uploaded MAIN CSS.
   ========================================================= */

.result-section {

    background: #f2f4f1;

}

.ba-stage {

    --ba-position: 50%;

    --ba-stage-width: 1180px;



    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #d9e5df;

    border: 1px solid rgba(18, 60, 50, .16);

    border-radius: 6px;

    box-shadow: var(--shadow);

    user-select: none;

    -webkit-user-select: none;

    touch-action: pan-y;

    cursor: ew-resize;

}

.ba-layer {

    position: absolute;

    inset: 0;

    overflow: hidden;

}

.ba-after {

    z-index: 1;

}

.ba-before {

    z-index: 2;



    

    width: 100%;

    height: 100%;



    

    clip-path: inset(0 calc(100% - var(--ba-position)) 0 0);



    overflow: hidden;



    will-change: clip-path;

}

.ba-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;

}

.ba-label {

    position: absolute;

    top: 20px;

    z-index: 4;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: .1em;

    pointer-events: none;

}

.ba-label--before {

    left: 20px;

    background: rgba(23, 32, 28, .88);

    color: #fff;

}

.ba-label--after {

    right: 20px;

    background: var(--green);

    color: #fff;

}

.ba-handle {

    position: absolute;

    z-index: 5;

    left: var(--ba-position);

    top: 0;

    width: 92px;

    height: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    transform: translateX(-50%);

    cursor: ew-resize;

    touch-action: none;

    outline: 0;

}

.ba-handle:focus-visible::after {

    content: "";

    position: absolute;

    left: 50%;

    top: 50%;

    width: 46px;

    height: 46px;

    transform: translate(-50%, -50%);

    border: 2px solid var(--lime);

    border-radius: 50%;

    box-shadow: 0 0 0 3px rgba(18, 60, 50, .32);

}

.handle-line {

    position: absolute;

    left: 50%;

    top: 0;

    bottom: 0;

    width: 2px;

    background: rgba(23, 32, 28, .78);

    transform: translateX(-50%);

    pointer-events: none;

}

.ba-squeegee {

    position: absolute;

    left: 50%;

    top: 50%;

    width: clamp(118px, 13.5vw, 164px);

    max-width: none;

    transform: translate(-48%, -50%) rotate(90deg);

    filter: drop-shadow(0 10px 14px rgba(21, 42, 34, .16));

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;

}

.ba-stage.is-dragging .ba-squeegee {

    filter: drop-shadow(0 13px 18px rgba(21, 42, 34, .24));

}

.ba-stage.is-dragging .handle-line {

    background: var(--green);

}

.ba-hint {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 22px;

    color: var(--green);

}

.ba-hint .drag-dot {

    width: 7px;

    height: 7px;

    border: 1px solid currentColor;

    border-radius: 50%;

    background: var(--paper);

}

.ba-hint .drag-line {

    width: 36px;

    height: 1px;

    background: currentColor;

    opacity: .35;

}

.ba-hint b {

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .15em;

}

@media (max-width: 960px) {

    .ba-stage {

        aspect-ratio: 4 / 3;

    }



    .ba-squeegee {

        width: clamp(112px, 18vw, 148px);

    }

}

@media (max-width: 640px) {

    .ba-stage {

        aspect-ratio: 4 / 3;

        border-radius: 4px;

    }



    .ba-label {

        top: 12px;

        padding: 6px 8px;

        font-size: 8px;

    }



    .ba-label--before {

        left: 12px;

    }



    .ba-label--after {

        right: 12px;

    }



    .ba-handle {

        width: 74px;

    }



    .ba-squeegee {

        width: 112px;

    }



    .ba-hint {

        margin-top: 16px;

    }

}

.ba-hint {

    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 10px !important;

    font-size: 10px !important;

    letter-spacing: .12em;

    font-weight: 900;

    color: var(--green) !important

}

.ba-hint .drag-dot {

    width: 7px;

    height: 7px;

    border: 1px solid currentColor;

    border-radius: 50%;

    background: var(--paper)

}

.ba-hint .drag-line {

    width: 36px;

    height: 1px;

    background: currentColor;

    opacity: .35

}

.ba-hint b {

    font-size: 9px;

    letter-spacing: .15em

}

/* RESULT — RENEWAL / Before-After behavior retained */
.result-section { background: var(--paper); }
.ba-stage {
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(16, 45, 37, .10);
}
.ba-hint { margin-top: 18px; }
@media (max-width: 640px) { .ba-stage { border-radius: 6px; } }
