/* S2. Matching Messages */
.landing-section--matching-messages {
    background-image: url('/images/landing/ko/02_matching_messages/background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.landing-section--matching-messages .landing-section__inner {
    position: relative;
    height: 100%;
}

.landing-matching-messages__bubbles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1140px;
    height: 520px;
}

.landing-matching-messages__bubble {
    gap: 8px;
    padding: 32px;
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    max-width: 240px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-matching-messages__bubble p {
    margin: 0;
}

/* 왼쪽 4개: 오른쪽 아래 라운드 해제 */
.landing-matching-messages__bubble:nth-child(1),
.landing-matching-messages__bubble:nth-child(2),
.landing-matching-messages__bubble:nth-child(5),
.landing-matching-messages__bubble:nth-child(6) {
    border-radius: 40px 40px 0 40px;
}

/* 오른쪽 3개: 왼쪽 아래 라운드 해제 */
.landing-matching-messages__bubble:nth-child(3),
.landing-matching-messages__bubble:nth-child(4),
.landing-matching-messages__bubble:nth-child(7) {
    /*border-bottom-left-radius: 0;*/
    border-radius: 40px 40px 40px 0;
}

/* 왼쪽 4개 */
.landing-matching-messages__bubble:nth-child(1) { top: 186px;  left: 60px;   }
.landing-matching-messages__bubble:nth-child(2) { top: 146px; left: 300px; }
.landing-matching-messages__bubble:nth-child(5) { top: 362px; left: 100px;   }
.landing-matching-messages__bubble:nth-child(6) { top: 330px; left: 380px; }

/* 오른쪽 3개 */
.landing-matching-messages__bubble:nth-child(3) { top: 206px;  right: 280px; }
.landing-matching-messages__bubble:nth-child(4) { top: 270px;  right: 70px; }
.landing-matching-messages__bubble:nth-child(7) { top: 362px; right: 210px; }

.landing-matching-messages__content {
    position: absolute;
    bottom: 193px;
    left: 0;
    right: 0;
    text-align: center;
}

.landing-matching-messages__title {
    font-size: 80px;
    font-weight: 800;
    color: #F5F6F7;
    line-height: 1.4;
    letter-spacing: -1px;
    margin: 0 0 24px;
}

.landing-matching-messages__description {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #F5F6F7;
    margin: 0;
}

/* mobile: 360 기준 */
@media (max-width: 1139px) {
    .landing-section--matching-messages {
        background-position: center 42%;
        background-size: cover;
    }

    .landing-section--matching-messages .landing-section__inner {
        position: relative;
        height: 100%;
        padding: 0 var(--landing-gutter);
    }

    .landing-matching-messages__bubbles {
        position: absolute;
        top: 52px;
        left: 50%;
        transform: translateX(-50%);
        width: 328px;
        height: 316px;
        overflow: visible;
    }

    .landing-matching-messages__bubble {
        position: absolute;
        margin: 0;
        padding: 16px;
        font-size: 12px;
        font-weight: 700;
        line-height: 150%;
        max-width: 172px;
        border-radius: 20px;
        backdrop-filter: blur(8px);
    }

    .landing-matching-messages__bubble p {
        margin: 0;
    }

    /* 모바일 시안: 5개 말풍선만 표시 */
    .landing-matching-messages__bubble:nth-child(2),
    .landing-matching-messages__bubble:nth-child(5) {
        display: none;
    }

    /* 왼쪽 말풍선 */
    .landing-matching-messages__bubble:nth-child(1),
    .landing-matching-messages__bubble:nth-child(6) {
        border-radius: 24px 24px 0 24px;
        max-width: 164px;
    }

    /* 오른쪽 말풍선 */
    .landing-matching-messages__bubble:nth-child(3),
    .landing-matching-messages__bubble:nth-child(4),
    .landing-matching-messages__bubble:nth-child(7) {
        border-radius: 24px 24px 24px 0;
        max-width: 200px;
    }

    /* 시안 배치 — 좌우 지그재그 + 세로 16~20px 겹침, z-index로 앞말풍선이 위 */
    .landing-matching-messages__bubble:nth-child(3) { top: 0;   right: 16px; left: auto; z-index: 3; }  /* 엄마 */
    .landing-matching-messages__bubble:nth-child(6) { top: 72px;  left: 0;  z-index: 2; }           /* CJ ← 엄마와 겹침 */
    .landing-matching-messages__bubble:nth-child(7) { top: 128px;  right: 0; left: auto; z-index: 1; } /* 청첩장 ← CJ와 겹침 */
    .landing-matching-messages__bubble:nth-child(1) { top: 205px; left: 16px;  z-index: 2; }           /* DANAL ← 청첩장과 겹침 */
    .landing-matching-messages__bubble:nth-child(4) { top: 230px; right: 23px; left: 184px; z-index: 3; } /* 건강보험 ← DANAL과 겹침 */

    .landing-matching-messages__content {
        position: absolute;
        top: 400px;
        left: 0;
        right: 0;
        text-align: center;
    }

    .landing-matching-messages__title {
        font-size: 40px;
        font-weight: 800;
        line-height: 150%;
        letter-spacing: -0.64px;
        margin: 0 0 12px;
    }

    .landing-matching-messages__description {
        font-size: 15px;
        font-weight: 500;
        line-height: 160%;
        letter-spacing: -0.28px;
    }
}
