@charset "utf-8";

/* Legacy common.element.css scoped for 2026 layout (#baseBody)
 * Source: common/mainRenewal/css/common.element.css (body/layout rules only)
 * Excludes: .header, .footer, .footer-wrap, .header-campaign, .quick blocks
 */

#baseBody .body-wrap {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding-top: 0;
}
#baseBody:has(.redball-sub-wrap) .body-wrap {
    overflow: visible;
}

/* 열매모아(레거시 body-wrap): 2026 #baseWrap 스크롤 컨테이너와 호환 */
#baseBody:has(#crwdfundWrap) .body-wrap,
#baseBody:has(.campaign-sub.funding) .body-wrap {
    overflow: visible;
}

#baseBody .page-back-color {
    display: block;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #fff;
}

#baseBody .default-wrap.new {
    position: relative;
    padding-left: 24px;
    padding-right: 24px;
    max-width: 1384px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#baseBody .default-wrap.new.small { max-width: 1166px; }
#baseBody .default-wrap.new.big { max-width: 1478px; }

#baseBody .btn-page-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    position: fixed;
    bottom: 27px;
    right: 22px;
    z-index: 1001;
    transition: all .4s;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2));
}

#baseBody .btn-float-top {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background-image: url(../../../img/campaign/icon_top.svg);
    background-repeat: no-repeat;
    background-size: 26px 26px;
    background-position: center;
    margin-top: 20px;
}

#baseBody .btn-float-chest {
    width: 48px;
    height: 48px;
    background-color: #F7E600;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background-image: url(../../../img/campaign/img_float_chest.png);
    background-repeat: no-repeat;
    background-position: center;
}

#baseBody .btn-float-kakao {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background-image: url(../../../img/campaign/img_float_kakao.png);
    background-repeat: no-repeat;
    background-position: center;
}

#baseBody .btn-float-kakao img { display: none; }

#baseBody .btn-float-letter {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background-image: url(../../../img/campaign/img_float_letter.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#baseBody .btn-page-top > a { position: relative; }

#baseBody .btn-page-top > a > .tip-text {
    opacity: 0;
    visibility: hidden;
    border: 1px solid #d1d5db;
    position: absolute;
    left: -140px;
    top: calc(50% - 24px);
    width: 125px;
    height: 48px;
    background-color: #fff;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #252525;
    transition: opacity .3s ease-in;
}

#baseBody .btn-page-top > a:hover > .tip-text {
    opacity: 1;
    visibility: visible;
}

#baseBody .redball-wrap {
    position: absolute;
    display: block;
    width: 800px;
    height: 800px;
    left: -100px;
    top: -100px;
    transform-origin: 50% 50%;
    opacity: .8;
    animation: redballRotate 10s infinite linear;
    z-index: -1;
}

@keyframes redballRotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

#baseBody .redball {
    position: absolute;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(250, 51, 51) 0%, rgba(250, 51, 51, 0) 60%);
    mix-blend-mode: multiply;
}

#baseBody .redball.redball-1 {
    top: 50%;
    left: calc(50% - 150px);
    animation: redballScale 30s infinite linear;
}

#baseBody .redball.redball-2 { top: calc(50% - 238px); left: 50%; }
#baseBody .redball.redball-3 { top: 50%; left: calc(50% + 178px); }

@keyframes redballScale {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.6); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

#baseBody .redball-wrap.old {
    width: 545px;
    height: 510px;
    z-index: 0;
    left: 0;
    top: 0;
}

#baseBody .redball-wrap.old .redball {
    width: 267px;
    height: 267px;
    background: #fff;
    filter: blur(10px);
}

#baseBody .redball-wrap.old .redball.redball-1 {
    animation: none;
    top: 40%;
    left: calc(50% - 180px);
}

#baseBody .redball-wrap.old .redball.redball-2 { top: calc(50% - 238px); }
#baseBody .redball-wrap.old .redball.redball-3 { left: calc(50% + 73px); }

@media all and (max-width: 1024px) {
    #baseBody .redball-wrap {
        width: 360px;
        height: 360px;
        top: 30px;
        left: -120px;
    }

    #baseBody .redball {
        width: 228px;
        height: 228px;
    }

    #baseBody .redball.redball-1 { top: 50%; left: calc(50% - 89px); }
    #baseBody .redball.redball-2 { top: calc(50% - 109px); left: 50%; }
    #baseBody .redball.redball-3 { top: 50%; left: calc(50% + 29px); }

    #baseBody .redball-wrap.old { display: none; }

    #baseBody .btn-page-top > a:hover > .tip-text {
        opacity: 0;
        visibility: hidden;
    }

    #baseBody .default-wrap.mo {
        position: relative;
        width: 100%;
        padding-left: 36px;
        padding-right: 36px;
        margin-left: auto;
        margin-right: auto;
    }
}
