@font-face {
    font-family: 'ZENSERIFTTF';
    src: url('https://d2i2w6ttft7yxi.cloudfront.net/font/ZEN-SERIF-TTF-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff')
        format('woff');
    font-weight: 400;
    font-style: normal;
}

.none_scroll {
    overflow: hidden;
    touch-action: none;
}

.yn-container {
    margin: auto;
    width: 100%;
}

/* ========================================
   A. 최초 진입 메인 페이지 (step1)
   ======================================== */
.step1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: calc(100vh - 80px);
    background: rgb(234, 234, 234);
    position: relative;
}

.step1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp');
    background-image: -webkit-image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-image: image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
}

.step1 .title_section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 350px;
}

.step1 .title_section img {
    width: 100%;
    height: auto;
}

.step1 .step1_btn {
    width: 100%;
    max-width: 350px;
    position: absolute;
    bottom: 37px;
    padding: 0;
    z-index: 1;
}

.step1 button {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    background-color: rgb(23, 23, 23);
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ========================================
   B. 정보 조회 이후 공유 및 이벤트 페이지 (step2)
   ======================================== */
.step2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgb(234, 234, 234);
    position: relative;
}

.step2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp');
    background-image: -webkit-image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-image: image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
}

.step2 .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 690px;
}

.step2 .card .end {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.step2 .card .end .result_title {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.step2 .card .end .result_title div {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.8px;
    text-align: center;
    color: rgb(23, 23, 23);
}

.step2 .card .end .info_box {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border: 1px solid rgb(23, 23, 23);
    padding: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.step2 .card .end .info_box p {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.4px;
    text-align: center;
    color: rgb(23, 23, 23);
}

.step2 .card .end .padding20_1 {
    width: 100%;
    max-width: 350px;
    padding: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step2 .card .end .padding20_1 img {
    width: 100%;
    border: 1px solid rgb(23, 23, 23);
}

.step2 .card .end .padding20_1 .save_notice {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    padding: 13px 0;
}

.step2 .card .end .downImg {
    width: 100%;
    padding: 16px 0;
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background-color: rgb(23, 23, 23);
    border: none;
    cursor: pointer;
    margin-bottom: 16px;
}

.step2 .card .end .remake {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: rgb(23, 23, 23);
    background: transparent;
    border: none;
    cursor: pointer;
    margin-bottom: 80px;
}

/* ========================================
   C. 정보 수정 입력 페이지 (restart)
   ======================================== */
.restart {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgb(234, 234, 234);
    background: linear-gradient(180deg, rgba(234, 234, 234, 1) 0%, rgba(169, 202, 239, 1) 100%);
    position: relative;
    min-height: 769px;
    padding: 20px;
}

.restart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp');
    background-image: -webkit-image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-image: image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.restart .title_section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 350px;
    margin-top: 29px;
}

.restart .title {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 51.75px;
    letter-spacing: -1.8px;
    text-align: center;
    color: rgb(23, 23, 23);
    margin-bottom: 20px;
}

.restart .info_box {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border: 1px solid rgb(23, 23, 23);
    padding: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.restart .info_box p {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.4px;
    text-align: center;
    color: rgb(23, 23, 23);
}

.restart .form_section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 349px;
}

.restart .form_section .form_group {
    margin-bottom: 32px;
}

.restart .form_section .form_group:last-of-type {
    margin-bottom: 16px;
}

.restart .form_section .sub_text {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: -0.72px;
    text-align: left;
    color: rgb(23, 23, 23);
    margin-bottom: 8px;
}

.restart .form_section select,
.restart .form_section input {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    border: 1px solid rgb(23, 23, 23);
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    color: rgb(23, 23, 23);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.restart .form_section select {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="rgb(23,23,23)" d="M5 8l5 5 5-5z"/></svg>') no-repeat right 14px center #fff;
    background-size: 20px 20px;
    padding-right: 40px;
}

.restart .form_section select::placeholder,
.restart .form_section input::placeholder {
    color: rgb(183, 183, 183);
}

.restart .form_section button {
    width: 100%;
    padding: 16px 0;
    background-color: rgb(23, 23, 23);
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 16px;
}

/* ========================================
   nodata - 데이터 없음 화면
   ======================================== */
.nodata {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    min-height: 769px;
    background: rgb(234, 234, 234);
    background: linear-gradient(180deg, rgba(234, 234, 234, 1) 0%, rgba(169, 202, 239, 1) 100%);
    position: relative;
}

.nodata::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp');
    background-image: -webkit-image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-image: image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.nodata .title {
    position: relative;
    z-index: 1;
    font-family: 'ZENSERIFTTF', serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 51.75px;
    letter-spacing: -1.8px;
    text-align: center;
    color: rgb(23, 23, 23);
    margin-bottom: 40px;
}

.nodata .sub_title {
    position: relative;
    z-index: 1;
    font-family: 'ZENSERIFTTF', serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -1.3px;
    text-align: center;
    color: rgb(23, 23, 23);
    margin-bottom: 40px;
}

.nodata a {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 350px;
    padding: 16px 0;
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background-color: rgb(23, 23, 23);
    text-decoration: none;
    display: block;
}

/* ========================================
   공유 섹션
   ======================================== */
.step2 .share {
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step2 .share img {
    width: 100%;
    max-width: 350px;
}

.step2 .share button {
    width: 100%;
    max-width: 350px;
    padding: 16px 0;
    font-family: 'ZENSERIFTTF', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background-color: rgb(23, 23, 23);
    border: none;
    cursor: pointer;
    margin-top: 32px;
}

.step2 .last_notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px 20px;
    position: relative;
    z-index: 1;
}

.step2 .last_notice img {
    width: 100%;
    max-width: 350px;
}

/* ========================================
   D. 카드 이미지 영역 (card_img)
   ======================================== */
.card_img {
    width: 1200px;
    height: 800px;
    position: fixed;
    bottom: -100000px;
    padding: 40px;
    background: rgb(234, 234, 234);
    background: linear-gradient(180deg, rgba(234, 234, 234, 1) 0%, rgba(169, 202, 239, 1) 100%);
    display: flex;
    flex-direction: column;
}

.card_img .vector_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp');
    background-image: -webkit-image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-image: image-set(
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background.webp') 1x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@2x.webp') 2x,
        url('https://d2i2w6ttft7yxi.cloudfront.net/event/2025yearend/2025background@3x.webp') 3x
    );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.card_img .top {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.card_img .top .title {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 84px;
    font-weight: 400;
    line-height: 105px;
    letter-spacing: -3.36px;
    text-align: center;
    color: rgb(0, 0, 0);
}

.card_img .top .nickname_line {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 84px;
    font-weight: 400;
    line-height: 105px;
    letter-spacing: -3.36px;
    text-align: center;
    color: rgb(0, 0, 0);
}

.card_img .top .nickname_line span {
    font-family: 'ZENSERIFTTF', serif;
}

.card_img .bottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.card_img .bottom .content {
    width: calc(100% - 500px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card_img .bottom .content .con_top {
    margin-bottom: 23px;
}

.card_img .bottom .content .con_top p {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 54px;
    font-weight: 400;
    line-height: 62.1px;
    letter-spacing: -2.16px;
    text-align: left;
    color: rgb(0, 0, 0);
    margin-bottom: 12px;
}

.card_img .bottom .tag_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 23px;
    list-style: none;
    padding: 0;
}

.card_img .bottom .tag_list li {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.8px;
    text-align: left;
    color: rgb(0, 0, 0);
    margin-right: 8px;
    margin-bottom: 0;
}

.card_img .bottom .one_comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card_img .bottom .one_comment .label {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -1.6px;
    text-align: left;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

.card_img .bottom .one_comment .one {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -1.6px;
    text-align: left;
    color: rgb(0, 0, 0);
}

.card_img .bottom .right {
    width: 464px;
    height: 464px;
    border: 2px solid rgb(0, 0, 0);
    position: relative;
}

.card_img .bottom .right .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgb(0, 0, 0);
    padding: 6px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 2;
}

.card_img .bottom .right .badge span {
    font-family: 'ZENSERIFTTF', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 36.8px;
    letter-spacing: -1.28px;
    text-align: center;
    color: rgb(255, 255, 255);
}

.card_img .bottom .right .badge .heart_icon {
    width: 30px;
    height: 30px;
    margin-left: 2px;
}

.card_img .bottom .right .pick_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   애니메이션
   ======================================== */
.f-fade-in {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.f-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   반응형 - 모바일
   ======================================== */
@media (max-width: 768px) {
    .step1 {
        height: calc(100vh - 56px);
    }

    .step1 .step1_btn {
        width: 100%;
        max-width: none;
        left: 0;
        padding: 0 20px;
    }

    .card_img {
        width: 100%;
        height: auto;
        padding: 12px;
    }

    .card_img .vector_bg {
        top: 0;
        height: 100%;
    }

    .card_img .top {
        margin-bottom: 14.7px;
    }

    .card_img .top .title {
        font-size: 25px;
        line-height: 30px;
        letter-spacing: -1px;
    }

    .card_img .top .nickname_line {
        font-size: 25px;
        line-height: 30px;
        letter-spacing: -1px;
    }

    .card_img .bottom .content {
        width: calc(100% - 145px);
    }

    .card_img .bottom .content .con_top p {
        font-size: 15px;
        line-height: 1.3;
        letter-spacing: -0.3px;
        margin-bottom: 5px;
    }

    .card_img .bottom .tag_list {
        margin-bottom: 10px;
    }

    .card_img .bottom .tag_list li {
        font-size: 12px;
        letter-spacing: -0.22px;
        line-height: 1.1;
    }

    .card_img .bottom .one_comment .label {
        font-size: 12px;
        letter-spacing: -0.3px;
    }

    .card_img .bottom .one_comment .one {
        font-size: 12px;
        letter-spacing: -0.3px;
    }

    .card_img .bottom .right {
        width: 136px;
        height: 136px;
        position: absolute;
        right: 12px;
        border: 1px solid rgb(0, 0, 0);
    }

    .card_img .bottom .right .badge {
        padding: 3px 5px;
    }

    .card_img .bottom .right .badge span {
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: -0.4px;
    }

    .card_img .bottom .right .badge .heart_icon {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   유틸리티
   ======================================== */
.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.flex-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.padding20 {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
