:root{
    --swiper-scrollbar-bg-color: #FFFFFF60;
    --swiper-scrollbar-drag-bg-color: #FFFFFF;
}
html, body { width: 100%; height: 100%; /* iOS Safari 전용 대응 */ height: -webkit-fill-available; }
p {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-transition: background-color 9999s ease-out;
    -webkit-box-shadow: 0 0 0px 1000px #FFFFFF00 inset !important;
    -webkit-text-fill-color: #FFF !important;
}
.fortune_container * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-use-select: none;
    user-select: none;
}
.fortune_container{
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: linear-gradient(145deg, #6A3399, #382463 23%, #2D2554 80%, #131429)
}
.fortune_bg{
    pointer-events: none;
    object-fit: cover;
}
.fortune_glow{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow 1.5s ease-in-out infinite alternate;
}
.fortune_bg_overlay{
    pointer-events: none;
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: .7;
}
.fortune_main{
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity .3s ease-in;
}
.fortune_main_text_wrapper{
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: calc(50% - 38rem);
}
.fortune_main .text1{
    position: relative;
    z-index: 3;
    font-size: 2.5rem;
    letter-spacing: 0.08rem;
    font-family: 'Escoredream-Regular';
    margin-bottom: -3.5rem;
}
.fortune_main .title{
    position: relative;
    z-index: 2;
}
.fortune_main .text2{
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    font-size: 2.4rem;
    letter-spacing: -0.1rem;
    opacity: .9;
}
.fortune_glass_wrapper{
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 0.5rem), calc(-50% + 6.3rem));
    cursor: pointer;
    transition: opacity .3s ease-in-out;
}
.fortune_glass{
    width: 70rem;
    height: 70rem;
    filter: brightness(1.011);
}
.glass_overlay{
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .4;
    width: 70rem;
}
.glass_brightness_filter{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70rem;
    height: 70rem;
    background: linear-gradient(130deg, #FFFFFF, #FFFFFF00);
    opacity: .019;
}
.glass_card1{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -16.5rem;
    margin-left: -5.7rem;
    animation: hovering-1 1.5s ease-in-out infinite alternate;
}
.glass_card2{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -17.5rem;
    margin-left: -13.7rem;
    animation: hovering-2 1.5s ease-in-out infinite alternate;
}
.glass_glow{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -34rem;
    margin-left: -22rem;
    mix-blend-mode: overlay;
    animation: hovering-2 1.5s ease-in-out infinite alternate;
}
.glass_glow2{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -34rem;
    margin-left: -21.5rem;
    mix-blend-mode: overlay;
    animation: hovering-1 1.5s ease-in-out infinite alternate;
    opacity: .6;
}
@keyframes temp {
    0%{ transform: translate(-50%, calc(-50% - 1rem)) scale(.6) }
    100%{ transform: translate(-50%, -50%) scale(.6) }
}
.glass_cursor{
    pointer-events: none;
    position: absolute;
    top: calc(50% + 14.5rem);
    left: 50%;
    transform: translate(-50%, -50%) scale(.6);
    animation: temp 1.5s ease-in-out infinite alternate;
}
.glass_text{
    pointer-events: none;
    position: absolute;
    top: calc(50% + 19rem);
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.4rem;
    text-shadow: 0 2px 8px rgb(0, 0, 0);
    font-family: 'Escoredream-Regular';
}
.fortune_entities {
    pointer-events: none;
    position: absolute;
    /* 중요: flex 영향을 받지 않도록 왼쪽 끝에 붙임 */
    top: 0;
    left: 0; 
    
    /* 100% 대신 vw를 써서 실제 기기 너비를 꽉 채움 */
    width: 100vw !important; 
    height: 100vh; 
    
    z-index: 4;
    overflow: hidden; /* 요소가 화면 밖으로 나가도 가로 스크롤 방지 */
    
    /* 아이폰 레이어 겹침 버그 방지 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    
    transition: opacity .3s ease-in-out;
}
.fortune_entity{
    position: absolute;
    /* 부모 컨테이너에 걸린 transform 영향을 지우기 위해 초기화 */
    margin: 0;
}
.box1{
    top: 81vh;
    left: 85vw;
    rotate: 12deg;
    margin-top: -9rem;
    margin-left: -9rem;
    animation: box1 2.5s ease-in-out infinite alternate;
}
.box2{
    top: 44vh;
    left: 16vw;
    rotate: -7deg;
    margin-top: -10rem;
    margin-left: -10rem;
    animation: box2 2.5s ease-in-out infinite alternate;
}
.box3{
    top: 25vh;
    left: 77vw;
    rotate: 6deg;
    margin-top: -9rem;
    margin-left: -9rem;
    animation: box3 2.5s ease-in-out infinite alternate;
}
.coin1{
    top: 78vh;
    left: 25vw;
    margin-top: -7rem;
    margin-left: -6.5rem;
    animation: coin1 1.8s ease-in-out infinite alternate;
}
.coin2{
    top: 25vh;
    left: 87vw;
    margin-top: -5.5rem;
    margin-left: -5.5rem;
    animation: coin2 1.8s ease-in-out infinite alternate;
}
.coin3{
    top: 23vh;
    left: 19vw;
    margin-top: -6rem;
    margin-left: -5.5rem;
    animation: coin3 1.8s ease-in-out infinite alternate;
}
.card1{
    top: 54vh;
    left: 98vw;
    margin-top: -9.5rem;
    margin-left: -10rem;
    animation: card1 1.5s ease-in-out infinite alternate;
}
.card2{
    top: 2vh;
    left: 32vw;
    margin-top: -9.5rem;
    margin-left: -10rem;
    animation: card2 1.5s ease-in-out infinite alternate;
}
.card3{
    top: 83vh;
    left: 11vw;
    margin-top: -8.5rem;
    margin-left: -7.5rem;
    animation: card3 1.5s ease-in-out infinite alternate;
}
@media all and (max-width: 500px) {
    .fortune_container picture img{
        width: 100%;
    }
    .fortune_main{
        transform: translate(-50%, -50%) scale(.6);
    }
    .fortune_main_text_wrapper{
        top: -12%;
    }
    .fortune_glass_wrapper{
        width: 100%;
        transform: translate(calc(-50.5%), calc(-30.7%)) scale(0.91);
    }
    .fortune_glass{
        width: 100%;
        height: auto;
    }
    .glass_overlay{
        width: 100%;
        margin-top: -1.5rem;
    }
    .glass_brightness_filter{
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        opacity: 0.025;
    }
    .fortune_main .title{
        width: 140vw;
    }
    .box1{
        animation: box1m 2.5s ease-in-out infinite alternate;
        top: 69vh;
        left: 92%;
    }
    .box2{
        animation: box2m 2.5s ease-in-out infinite alternate;
        left: 4%;
    }
    .box3{
        animation: box3m 2.5s ease-in-out infinite alternate;
        left: 91%;
        padding-top: 15rem;
    }
    .coin1{
        animation: coin1m 1.8s ease-in-out infinite alternate;
        left: 4%;
        padding-bottom: 2rem;
    }
    .coin2{
        animation: coin2m 1.8s ease-in-out infinite alternate;
        left: 95%;
    }
    .coin3{
        animation: coin3m 1.8s ease-in-out infinite alternate;
        left: 6%;
    }
    .card1{
        animation: card1m 1.5s ease-in-out infinite alternate;
        left: 98%;
    }
    .card2{
        animation: card2m 1.5s ease-in-out infinite alternate;
        left: 10%;
    }
    .card3{
        animation: card3m 1.5s ease-in-out infinite alternate;
        left: 0%;
        top: 63vh;
    }
}
@media all and (min-width: 501px) and (max-width: 1024px) {
    .box1{
        animation: box1md 2.5s ease-in-out infinite alternate;
        left: 92%;
    }
    .box2{
        animation: box2md 2.5s ease-in-out infinite alternate;
        left: 4%;
    }
    .box3{
        animation: box3md 2.5s ease-in-out infinite alternate;
        left: 91%;
        padding-top: 50rem;
    }
    .coin1{
        animation: coin1md 1.8s ease-in-out infinite alternate;
        left: 4%;
        padding-bottom: 30rem;
    }
    .coin2{
        animation: coin2md 1.8s ease-in-out infinite alternate;
        left: 95%;
    }
    .coin3{
        animation: coin3md 1.8s ease-in-out infinite alternate;
        left: 6%;
    }
    .card1{
        animation: card1md 1.5s ease-in-out infinite alternate;
        left: 98%;
        padding-top: 15rem;
    }
    .card2{
        animation: card2md 1.5s ease-in-out infinite alternate;
        left: 10%;
    }
    .card3{
        animation: card3md 1.5s ease-in-out infinite alternate;
        left: 0%;
    }
}


.fortune_gender_select{
    display: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 1rem;
    width: 60rem;
    max-width: calc(100% - 6rem);
    height: 40rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 8rem;
    z-index: 3;
}
.fortune_gender_select_title{
    display: flex;
    margin-bottom: 3.5rem;
    font-size: 2.1rem;
    font-family: 'Escoredream-Regular';
}
.fortune_gender_select_container{
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}
.fortune_gender{
    position: relative;
    border-radius: 1rem;
    width: 15rem;
    height: 17rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.fortune_gender p, .fortune_gender img{
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
}
.fortune_gender .bg1{
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background-color: white;
    border-radius: 1rem;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}
.fortune_gender .bg2{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #7029ed;
    border-radius: 1rem;
    transform: scale(1);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.fortune_gender .bg3{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #554A76;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}
.fortune_gender .bg4{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1.15rem;
    transform: scale(0.9925);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(1rem);
}
.fortune_gender.active .bg1{
    transform: scale(1.0038);
    border-radius: 1.22rem;
    box-shadow: 0px 0px 12px 3px #ffffffCC;
}
.fortune_gender.active .bg2{
    transform: scale(0.9925);
    border-radius: 0.9rem;
    opacity: 1;
}
.fortune_gender.active .bg3{
    transform: scale(0.93);
    border-radius: 0.9rem;
}
.fortune_gender_select_btn{
    width: 35rem;
    height: 5rem;
    background-color: white;
    border-radius: 2.5rem;
    margin-top: 3rem;
    color: #333;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in;
}
.fortune_gender_select_btn:hover, .fortune_gender_select_btn.active{
    background-color: #742EF0;
    color: white;
}

.fortune_time_select{
    display: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px solid white;
    border-radius: 1rem;
    width: 60rem;
    max-width: calc(100% - 6rem);
    height: 52rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 12rem;
    z-index: 3;
}
.fortune_time_select_title{
    display: flex;
    margin-bottom: 3.5rem;
    font-size: 2.1rem;
    font-family: 'Escoredream-Regular';
}
.fortune_time_select_container{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 2rem 1rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    height: 30rem;
}
.fortune_time_select_container::-webkit-scrollbar {
    width: 4px;
}
.fortune_time_select_container::-webkit-scrollbar-track {
    background: #858199;
}
.fortune_time_select_container::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
}
.fortune_time_select_container::-webkit-scrollbar-button {
    display: none;
}
@-moz-document url-prefix() {
    .fortune_time_select_container {
        scrollbar-width: thin;
        scrollbar-color: white #858199;
    }
}
.fortune_time{
    width: 12rem;
    padding-top: .8rem;
    position: relative;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.5rem;
}
.fortune_time.what{
    width: 100%;
    margin-top: .5rem;
    padding-top: -.5rem;
    padding-bottom: 1.5rem;
    grid-column: 1 / 5;
    justify-content: center;
}
.fortune_time p, .fortune_time img{
    position: relative;
    z-index: 1;
}
.fortune_time p{
    margin-bottom: -.3rem;
}
.fortune_time img{
    width: 10rem;
    margin-bottom: .2rem;
}
.hanja{
    font-size: 1.6rem;
    font-weight: 500;
}
.fortune_time .bg1{
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background-color: white;
    border-radius: .5rem;
    transform: scale(1);
    transition: all 0.3s ease-in-out;

    /* ⭐ 중앙 뚫기 */
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.fortune_time .bg2{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #7029edE0;
    border-radius: .5rem;
    transform: scale(1);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    margin-bottom: 1px;

    /* ⭐ 중앙 뚫기 */
    padding: 6px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.fortune_time.what .bg2{
    padding: 4px;
}
.fortune_time .bg3{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: .5rem;
    transform: scale(0.9825);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(1rem);
    background-color: #FFFFFF10;
}
.fortune_time.what .bg3{
    transform: scale(1);
    backdrop-filter: blur(.5rem);
}
.fortune_time.active{
    box-shadow: 0px 0px 14px 3px #ffffffCC;
}
.fortune_time.active .bg1{
    transform: scale(1.00385);
    border-radius: 0.556rem;
    padding: 8px;
}
.fortune_time.what.active .bg1{
    transform: scaleX(1.003) scaleY(1.0385);
    padding: 5px;
}
.fortune_time.active .bg2{
    transform: scale(0.985);
    border-radius: 0.45rem;
    opacity: 1;
}
.fortune_time.what.active .bg2{
    transform: scaleX(.9984475) scaleY(.982) ;
}
.fortune_time_select_btn{
    width: 35rem;
    height: 5rem;
    background-color: white;
    border-radius: 2.5rem;
    margin-top: 3rem;
    color: #333;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in;
}
.fortune_time_select_btn:hover, .fortune_time_select_btn.active{
    background-color: #742EF0;
    color: white;
}

.fortune_date_select{
    display: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 1rem;
    width: 60rem;
    max-width: calc(100% - 6rem);
    height: 30rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 8rem;
    z-index: 3;
}
.fortune_date_select_title{
    display: flex;
    margin-bottom: 3.2rem;
    font-size: 2.1rem;
    font-family: 'Escoredream-Regular';
}
.fortune_date_select_container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.2rem;
    margin-bottom: 2rem;
}
.fortune_date_select_btn{
    width: 35rem;
    height: 5rem;
    background-color: white;
    border-radius: 2.5rem;
    margin-top: 3rem;
    color: #333;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in;
}
.fortune_date_select_btn:hover, .fortune_date_select_btn.active{
    background-color: #742EF0;
    color: white;
}
.fortune_date_select input, .fortune_date_select select{
    width: 10.5rem;
    height: 3.5rem;
    border-radius: .5rem;
    border: 1px solid white;
    background-color: #FFFFFF16;
    color: white;
    outline: none;
    text-align: center;
    font-size: 1.5rem;
}
.fortune_date_select select option{
    color: black;
}
.fortune_date_select input::placeholder{
    color: #FFFFFF40;
}
.fortune_date_field{
    position: relative;
    display: inline-flex;
    align-items: center;
}
.fortune_date_field input{
    font-family: 'Escoredream-Regular';
    font-size: 1.4rem;
    padding-left: .8rem;
    padding-right: 2rem; /* 단위 공간 확보 */
}
.fortune_date_field .suffix{
    position: absolute;
    right: 0.6rem;
    pointer-events: none;
    font-family: 'Escoredream-Regular';
    font-size: 1.4rem;
    color: #FFFFFF;
}
.fortune_card_select_container{
    position: relative;
    width: 100vw;
    min-height: 43rem;
    display: flex;
    justify-content: center;
    margin-top: 13rem;
    padding: 3rem 0 3rem 0;
    perspective: 1000px;
}
.fortune_card_guide{
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #00000090;
    border-radius: 2rem;
    display: none;
}
.guide_finger{
    position: absolute;
    z-index: 1;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
    pointer-events: none;
}
.guide_finger.main{
    transform: translate(-50%, calc(-50% + 1rem)) scale(0.7);
}
.guide_finger.circle{
    transform: translate(calc(-50% - .3rem), calc(-50% - 1.5rem)) scale(0.7);
    animation: finger_circle .77s ease-in-out infinite alternate;
}
.guide_text1{
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    pointer-events: none;
    display: none;
}
.guide_text2{
    position: absolute;
    z-index: 1;
    top: calc(20% + 2.5rem);
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #DFDFDF;
    pointer-events: none;
    display: none;
}
.guide_text3{
    position: absolute;
    z-index: 1;
    bottom: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}
.fortune_card_select{
    position: relative;
    z-index: 3;
    display: none;
    opacity: 0;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
    gap: 1.2rem;
}
.fortune_card{
    position: absolute;
    width: 262px;
    height: 369px;
    transform-style: preserve-3d;
    background-size: cover;
}
.fortune_text{
    position: absolute;
    z-index: 5;
    bottom: 2.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.4rem;
    line-height: 1.6rem;
    text-align: center;
    transition: opacity 1s ease-in-out;
}
.fortune_text .first{
    font-size: 2.1rem;
    line-height: 2.2rem;
    margin-bottom: .8rem;
}
.fortune_text .second{
    font-size: 1.6rem;
    line-height: 1.7rem;
    margin-bottom: 1.3rem;
}
.fortune_text .third{
    font-size: 1.3rem;
    color: #AAA;
    margin-bottom: .5rem;
    cursor: pointer;
}
.fortune_text.blank{
    display: none;
    opacity: 0;
}
.accept_to_collect_personal_infomation_wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -8rem;
    cursor: pointer;
}
.accept_to_collect_personal_infomation{
    margin-bottom: 1.4rem;
    margin-right: .7rem;
    width: 2.1rem;
    height: 2.1rem;
}
.accept_to_collect_personal_infomation_text{
    font-size: 1.4rem;
}
@media all and (max-width: 500px) {
    .fortune_card_select_container{
        margin-top: 20rem;
        width: 167vw;
    }
    .fortune_gender_select{
        margin-top: 4rem;
    }
    .fortune_time_select_container{
        position: relative;
        width: calc(100% - 6rem);
        padding: 2.5rem .7rem;
        overflow: hidden;
        height: 21.3rem;
        margin-bottom: 2rem;
    }
    .fortune_time_select_container .swiper-wrapper{
        align-items: stretch;
    }
    .fortune_time_select_container::-webkit-scrollbar {
        height: 4px;
    }
    .fortune_time.swiper-slide{
        width: calc((100% - 3rem) / 4); /* gap 1rem x 3 */
        flex-shrink: 0;
    }
    .fortune_time{
        width: 12rem;
        padding-top: .8rem;
        position: relative;
        border-radius: .5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: box-shadow 0.2s ease-in-out;
        font-size: 1.5rem;
        flex: 0 0 auto;
    }
    .fortune_time p, .fortune_time img{
        position: relative;
        z-index: 1;
    }
    .hanja{
        font-size: 1.7rem;
    }
    .fortune_time p{
        margin-bottom: -.3rem;
    }
    .fortune_time img{
        margin-bottom: -1rem;
        width: 11rem;
    }
    .fortune_time .bg1{
        position: absolute;
        margin-bottom: .4rem;
        width: calc(100% + 2px);
        height: calc(100% + 5px);
        background-color: white;
        border-radius: .5rem;
        transform: scale(1);
        transition: all 0.3s ease-in-out;

        /* ⭐ 중앙 뚫기 */
        padding: 1px;
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
                mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
                mask-composite: exclude;
    }
    .fortune_time .bg2{
        position: absolute;
        margin-bottom: .4rem;
        width: 100%;
        height: 100%;
        background-color: #7029edE0;
        border-radius: .5rem;
        transform: scale(1);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        margin-bottom: 1px;

        /* ⭐ 중앙 뚫기 */
        padding: 6px;
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
                mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
                mask-composite: exclude;
    }
    .fortune_time.what .bg2{
        padding: 4px;
    }
    .fortune_time .bg3{
        position: absolute;
        margin-bottom: .4rem;
        width: 100%;
        height: 100%;
        border-radius: .5rem;
        transform: scale(0.9825);
        transition: all 0.3s ease-in-out;
        backdrop-filter: blur(1rem);
        background-color: #FFFFFF10;
    }
    .fortune_time.active{
        box-shadow: 0px 2px 14px 3px #ffffffCC;
    }
    .fortune_time.active .bg1{
        transform: scale(1.00385) scaleY(1.00240625);
        border-radius: 0.556rem;
        padding: 8px;
    }
    .fortune_time.active .bg2{
        transform: scaleX(0.985) scaleY(0.984375);
        border-radius: 0.45rem;
        opacity: 1;
    }
    .fortune_time.active .bg3{
        transform: scaleX(0.9825) scaleY(0.9890625);
    }
    .fortune_time_select_container{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .fortune_time_select{
        max-width: 85%;
        margin-top: 8rem;
    }
    .fortune_time{
        width: 14rem;
        font-size: 1.7rem;
    }
    .fortune_date_select{
        height: 50rem;
        margin-top: 12rem;
    }
    .fortune_date_select_container{
        flex-direction: column;
        gap: 2.5rem;
    }
    .fortune_card_guide{
        border-radius: 0;
    }
    .fortune_date_select input, .fortune_date_select select{
        width: 16rem;
        height: 4.5rem;
        border-radius: .5rem;
        border: 1px solid white;
        background-color: #FFFFFF16;
        color: white;
        outline: none;
        text-align: center;
        font-size: 1.7rem;
    }
    .fortune_date_field input{
        font-family: 'Escoredream-Regular';
        font-size: 1.7rem;
        padding-left: .8rem;
        padding-right: 2rem; /* 단위 공간 확보 */
    }
    .fortune_date_field .suffix{
        position: absolute;
        right: 0.6rem;
        pointer-events: none;
        font-family: 'Escoredream-Regular';
        font-size: 1.7rem;
        color: #FFFFFF;
    }
    .fortune_text{
        width: 100%;
    }
    .fortune_text.atc{
        width: 90%;
    }
    .accept_to_collect_personal_infomation_wrapper{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -10rem;
        cursor: pointer;
    }
    .accept_to_collect_personal_infomation{
        margin-bottom: 1.4rem;
        margin-right: .4rem;
        width: 50px;
        height: 50px;
    }
    .accept_to_collect_personal_infomation_text{
        font-size: 1.1rem;
        line-height: 1.3rem;
    }
}
.fortune_result{
    opacity: 0;
    display: none;
    position: absolute;
    top: calc(50% - 5.5rem);
    left: 50%;
    width: 100%;
    padding: 7rem 0;
    z-index: 4;
    justify-content: center;
    align-items: center;
    transition: opacity .9s ease-in, transform 1.2s ease-in;
    transform: translate(-50%, -50%) scale(0.3);
}
.fortune_result picture{
    width: 90%;
    max-width: 60rem;
}
.fortune_result .fortune_result_bg{
    width: 100%;
}
.fortune_result_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 59.5rem;
    height: 69.4rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    text-align: center;
}
.fortune_result_title{
    width: 33rem;
    margin-top: 9rem;
    margin-bottom: 4rem;
}
.fortune_result_text2{
    font-size: 2rem;
    margin: 3rem 0 2rem 0;
}
.fortune_result_text3{
    width: 100%;
    max-width: calc(100% - 15rem);
    height: 23.5rem;
    overflow-y: auto;
    padding: 0 1.5rem;
    line-height: 1.7rem;
    text-align: start;
}

.fortune_result_text3::-webkit-scrollbar {
    width: 4px;
}
.fortune_result_text3::-webkit-scrollbar-track {
    background: #858199;
}
.fortune_result_text3::-webkit-scrollbar-thumb {
    background: #FFFFFF90;
    border-radius: 8px;
}
.fortune_result_text3::-webkit-scrollbar-button {
    display: none;
}
@-moz-document url-prefix() {
    .fortune_result_text3 {
        scrollbar-width: thin;
        scrollbar-color: white #858199;
    }
}
.fortune_result_arrow{
    position: absolute;
    bottom: 9%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.fortune_result_arrow .top{
    opacity: 0.6;
    margin-bottom: -1.5rem;
}
.external_text{
    width: 100%;
    max-width: 126rem;
    margin: 3rem auto auto auto;
    color: #8885a8;
    font-family: 'Escoredream-Regular';
    font-size: 1.3rem;
}
.gender_prev, .gender_next, .time_prev, .time_next, .date_prev, .date_next{
    cursor: pointer;
}
.disable{
    opacity: 0.6;
    cursor: default;
}
.product_list{
    position: relative;
    z-index: 5;
    margin: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
.product_list_title{
    position: absolute;
    top: 4rem;
    font-size: 2.3rem;
}
.product_list .product{
    width:22%;
    cursor:pointer;
    text-decoration:none;
}
.product_list .product:hover{
    text-decoration: none;
}
/* 제품 이미지 */
.product_list .product_img {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
}
.product_list .product_img img{
    width:100%;
}

/* 제품 이름 */
.product_list .product_name{
    color: #333;
    font-size:1.6rem;
    margin-top: 1rem;
}
.product_list .product_name_sub{
    font-size:1.3rem;
    color:#969696;

}
.product_list .product_price{
    color: #333;
    font-size: 1.8rem;
    margin-top:0.5rem;
    cursor:pointer;
}
@media all and (min-width:0px) and (max-width: 500px){
    .fortune_result{
        top: calc(50% - 2.2rem);
    }
    .fortune_result_title{
        width: 18rem;
        margin-top: -3rem;
        margin-bottom: 2rem;
    }
    .fortune_result .fortune_result_bg{
        padding: 8% 0;
    }
    .fortune_result picture{
        width: calc(100% - 4rem);
    }
    .fortune_result_container{
        max-width: calc(100% - 10rem);
        height: 28rem;
    }
    .fortune_result_text1{
        font-size: 1.2rem;
        line-height: 1.3rem;
        letter-spacing: -.02rem;
    }
    .fortune_result_text2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1.1rem 0;
    }
    .fortune_result_text3{
        font-size: 1.2rem;
        line-height: 1.4rem;
        max-width: 100%;
        height: 16.5rem;
        padding: 0 .5rem;
    }
    .fortune_result_arrow{
        bottom: -3.5rem;
    }
    .fortune_result_arrow svg{
        width: 16px;
        height: 16px;
    }
    .fortune_result_arrow .top{
        margin-bottom: -.9rem;
    }
    .fortune_card_guide {
        top: 40%;
        width: 100%;
    }
    .guide_finger{
        top: 42%;
    }
    .guide_text1{
        font-size: 3rem;
        top: 15%;
    }
    .guide_text2{
        font-size: 2rem;
    }
    .guide_text3{
        bottom: 11%;
        font-size: 2.2rem;
    }
    .product_list{
        color: rgb(60, 60, 60);
        margin: auto;
        width: 98%;
        max-width: 126rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .product_list .product{
        width: 45%;
        max-width:28rem;
        cursor:pointer;
        display: flex;
        flex-flow: column;
        text-decoration: none;
    }
    .product:empty{
        height:0;
    }
    .product_list .product:hover{
        text-decoration: none;
    }
    /* 제품 이미지 */
    .product_list .product_img {
        position: relative;
        width: 100%;
        background-repeat: no-repeat;
        background-size: contain;
    }
    .product_list .product_img img{
        width:100%;
    }
    /* 제품 이름 */
    .product_list .product_name{
        color: #333;
        font-size:1.5rem;
        padding-top:0.8rem;
        margin-top: 1rem;
    }
    .product_list .product_name_sub{
        font-size:1.1rem;
    }
    .product_list .product_price{
        color: #333;
        font-size: 1.6rem;
        margin-top:1rem;
        margin-bottom:2rem
        
    }
}
.swiper_styler {
    position: relative;
    width: 100%;
    max-width: 87rem;
    display: flex;
    justify-content: center;
    margin-top: -11rem;
    margin-bottom: -11rem;
    padding: 11rem 5rem 5rem 5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #EAEAEA;
}
.swiper_styler .next-btn, .swiper_styler .prev-btn {
    position: absolute;
    z-index: 4;
    top: 37%;
    z-index: 1000;
    transform: translateY(-50%);
    width: 5rem;
    height: 5rem;
    border-radius: 100%;
    background-color: #474747CC;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.swiper_styler .next-btn {
    right: 2.5rem;
    transform: translateY(1rem);
}
.swiper_styler .prev-btn {
    left: 2.5rem;
    transform: translateY(1rem);
}
.swiper_styler .line_container {
    width: 100%;
    display: flex;
    justify-content: center;
    max-width: 126rem;
}
.swiper_styler .line_container .line_wrapper {
    display: flex;
    box-sizing: border-box;
    width: 100%;
}
.swiper_styler .line_container .line_wrapper .product_wrapper {
    display: flex;
    flex-direction: column;
}
@media all and (min-width: 501px) {
    .mobile_only {
        display: none !important;
	}
    footer{
        margin-top: -38rem;
        padding-top: 0;
        transition: margin-top 0.7s ease-in-out, padding-top 1s ease-in-out;
    }
}
@media all and (min-width: 0px) and (max-width: 500px) {
    .desktop_only {
        display: none !important;
	}
    .swiper_styler .next-btn, .swiper_styler .prev-btn {
        display: none;
	}
    .swiper_styler .line_container .line_wrapper {
        box-sizing: content-box;
	}
    .swiper_styler .line_container .line_wrapper .product_wrapper {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
	}
    .swiper_styler .line_container .line_wrapper .product_wrapper .product {
        width: 95%;
        max-width: unset;
	}
}

.product_list2{
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 126rem;
    min-height: 4.5rem;
    margin: auto;
    display: none;
    flex-flow: wrap;
    justify-content: space-between;
    margin-top: 2rem;
    opacity: 0;
    padding: 0 1.2rem;
    transition: opacity 0.7s ease-in-out;
}
.product_list2_title{
    position: absolute;
    width: calc(100% - 4rem);
    height: 4.6rem;
    padding-top: .5rem;
    top: -7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    background-color: white;
    font-size: 1.6rem;
}
.fortune_bottom_text_container{
    padding: 3rem 0 2rem 0;
    margin-bottom: 38rem;
    margin-top: -32rem;
    transition: all .3s ease-in;
}
.fortune_bottom_text_wrapper{
    font-size: 1.4rem;
    line-height: 1.4rem;
    width: calc(100% - 3rem);
    max-width: 126rem;
    margin: 0 auto;
    transition: all .3s ease-in;
}
@media all and (min-width:0px) and (max-width:500px){
    footer{
        margin-top: -5rem;
        padding-top: 0;
        transition: margin-top 0.7s ease-in-out, padding-top 1s ease-in-out;
    }
    .product_list2{
        justify-content: space-around;
        margin-top: 2.5rem;
    }
    .product_list2 .product{
        width:45%;
        display: flex;
        flex-flow: column;

        cursor:pointer;
        margin-bottom:2rem;

    }
    .product_list2 .product:hover .product_image img{
        opacity:0.85
    }
    .product_list2 .product:empty{
        height:0;
    }
    .product_list2 .product .product_image{
        width:100%;
        height:auto;
    }
    .product_list2 .product .product_image img{
        width:100%;
        border:none
    }
    .product_list2 .product .product_title{
        font-size:1.4rem;
        color:#333;
        margin-top:1rem;
    }
    .product_list2 .product .product_sub_title{
        font-size:1.1rem;
        color:#969696;
        margin-top: -.2rem;
    }
    .product_list2 .product .product_price{
        color:#333;
        font-size:1.5rem;
        margin-top:0.2rem;
    }
    .fortune_text{
        bottom: -3%;
    }
    .fortune_text .first{
        font-size: 1.4rem;
        line-height: 1.6rem;
        margin-bottom: .2rem;
    }
    .fortune_text .second{
        font-size: 1.05rem;
        line-height: 1.4rem;
        font-family: 'SUIT-Light';
        margin: initial;
    }
    .fortune_text .third{
        font-size: 1rem;
    }
    .fortune_bottom_text_container{
        background-color: #F6F6F6;
        margin-bottom: 0;
        margin-top: 0;
    }
    .fortune_bottom_text_wrapper{
        font-size: 1.2rem;
        line-height: 1.4rem;
    }
}
@media (min-width: 0px) and (max-width: 1259px) {
    .bottombar {
        margin-top: 5rem;
    }
}