:root {
    /* input style */
    /* --input-padding-x: 16px; */
    /* --input-padding-y: 12px; */

    /* input_title font-size */
    /* --input-title-size: 14px; */

    /* input font-size */
    /* --input-font-size: 16px; */

    /* --input-border-color: #E1E1E1; */

    /* input[checkbox] icon */
    /* --check-default-img:url(); */
    /* --check-active-img:url(); */

    /* input[radio] icon */
    /* --radio-default-img:url(); */
    /* --radio-active-img:url(); */

    /* input icon크기 */
    /* --input-icon-size: 20px; */

    /* coupon color */
    --coupon-color: #FF9BA5;

    /* 프로젝트 style */
    --main-color: #1F26B5;
    --error-color: #FF5757;
    --success-color: #64A0E6;
}

@font-face {
    font-family: 'jalnan';
    src: local('jalnan'),
        url('/static/app_www/base/font/Jalnan2.ttf') format('truetype');
}

@font-face {
    font-family: 'GmarketSans';
    src: local('GmarketSans'),
        url('/static/app_www/base/font/GmarketSansTTFLight.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'GmarketSans';
    src: local('GmarketSans'),
        url('/static/app_www/base/font/GmarketSansTTFMedium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'GmarketSans';
    src: local('GmarketSans'),
        url('/static/app_www/base/font/GmarketSansTTFBold.ttf') format('truetype');
    font-weight: 700;
}

.font_jalnan {
    font-family: 'jalnan', sans-serif !important;
}

.font_gmarket {
    font-family: 'GmarketSans', sans-serif !important;
}

html {
    /* 기기 화면이 375px일 때 정확히 14px로 계산됩니다 */
    font-size: clamp(14px, 3.7333vw, 22.4px);
}

/* www만 별도로 font 설정이 필요할때 */
/* body {
    font-family: 'Segoe UI', sans-serif;
} */

/* pc */
#base_wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* height: 100vh;
    overflow-y: auto; */
}

body.scroll-lock {
    overflow: hidden;
}

.scroll-lock {
    overflow-y: hidden;
}

.inner {
    /* width는 임시값 */
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

.inner_30 {
    width: 100%;
    padding: 0 8%;
}

.inner_30.more_right {
    padding-right: 3.467%;
}

/* 일시적인 숨김, 일시적인 표시 일때 control class */
.hide {
    display: none !important;
}

/* 웹접근성 hide */
.edk_WAI {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    z-index: -1;
    border: none;
    padding: 0;
    margin: 0;
}

/* 반응형 display control */
.is_mobile {
    display: none;
}

.scroll-no {
    /* 인터넷 익스플로러 스크롤바 삭제 */
    -ms-overflow-style: none;
    /* 파이어폭스 스크롤바 삭제 */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* ( 크롬, 사파리, 오페라, 엣지 ) 스크롤바 삭제 */
.scroll-no::-webkit-scrollbar {
    /* 가로 스크롤바 숨기기 */
    width: 0;
    /* 세로 스크롤바 숨기기 */
    height: 0;
    display: none;
}

/* 텍스트 ... 처리 */
.text_reduce {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* btn */
.btn_default {
    border: 1px solid #AAA;
    background-color: transparent;
    color: #222;
    border-radius: 6px;
}

.btn_default.border_main {
    border-color: var(--main-color);
    color: var(--main-color);
}

.btn_default.fill_main {
    border-color: var(--main-color);
    background-color: var(--main-color);
    color: #FFF;
}

.btn_default.full {
    width: 100%;
    text-align: center;
}

/* btn group */
.btn_group {
    display: flex;
    gap: 8px 16px;
}

.btn_group.column {
    flex-wrap: wrap;
}

.btn_group.center {
    justify-content: center;
}

.btn_group.right {
    justify-content: flex-end;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .paging {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12.698%;
    aspect-ratio: 1/1.1;
    position: relative;
    font-family: 'jalnan', sans-serif !important;
    font-size: 1rem;
    z-index: 2;
    color: #222;
}

.pagination .paging.active {
    color: #fff;
}

.pagination .paging.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("/static/app_www/base/img/icon_pagination_active.png") center / 96.25% no-repeat;
    position: absolute;
    z-index: 0;

}

.pagination .paging.num span {
    position: relative;
    z-index: 2;
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

.pagination .paging.active span {
    text-shadow: none;
}

.pagination .paging.arrow {}


.pagination .paging.arrow img {
    object-fit: contain;
    object-position: center;
}

/* empty */
.empty_wrap {
    display: flex;
    flex-direction: column;
    /* gap: ; */
    align-items: center;
    padding: 240px 0;
}

.empty_title {
    font-size: 14px;
    font-weight: 500;
    color: #5E5E5E;
    text-align: center;
}

.POPUPIMGVIEWER {
    line-height: 0;
}

/* 칸쵸 기본 */
.content_img {
    display: flex;
    position: relative;
}

.content_img img {
    -webkit-user-drag: none;
    user-select: none;
}

.btn_content_group {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    gap: 4.267%;
}

.btn_kancho {
    display: flex;
    text-indent: -9999px;
    background-color: transparent;
}

.btn_kancho.full {
    width: 100%;
}

/* 랭킹 공통 */
.event_ranking_dttm {
    width: 100%;
    margin-bottom: 3.175%;
}

.event_ranking_dttm .ranking_dttm {
    text-align: right;
    font-size: 0.714rem;
    font-weight: 500;
    color: #5E5E5E;
}

.event_ranking_list .ranking_item:not(:last-child)::after,
.event_ranking_area::before,
.event_ranking_area::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1/0.006;
    background: url("/static/app_www/base/img/img_ranking_line.png") center / cover no-repeat;
}

.ranking_item.empty {
    display: flex;
    padding: 2.54% 0;
}

.ranking_item .ranking_item_box {
    width: 100%;
    padding: 4.444% 5.079%;
    display: flex;
    align-items: center;
    gap: 5.079%;
}

.ranking_item .ranking_num_box {
    flex-shrink: 0;
    width: 10.601%;
}

.ranking_item .ranking_num {
    display: flex;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    color: #7D5CA5;
    font-size: 1rem;
    background: url("/static/app_www/base/img/bg_ranking_num.png") center / cover no-repeat;
    line-height: 1;
    padding-top: 0.18rem;
}

.ranking_item.rank_1st .ranking_num,
.ranking_item.rank_2nd .ranking_num,
.ranking_item.rank_3rd .ranking_num {
    color: #fff;
}

.ranking_item.rank_1st .ranking_num {
    background-image: url("/static/app_www/base/img/bg_ranking_1st.png");
}

.ranking_item.rank_2nd .ranking_num {
    background-image: url("/static/app_www/base/img/bg_ranking_2nd.png");
}

.ranking_item.rank_3rd .ranking_num {
    background-image: url("/static/app_www/base/img/bg_ranking_3rd.png");
}

.ranking_item .ranking_change {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6.667%;
    color: #5E5E5E;
    width: 100%;
    font-size: 0.714rem;
}

.ranking_item .ranking_change::before {
    content: "";
    display: block;
    width: 36.667%;
    aspect-ratio: 1/1;
    background: url("/static/app_www/base/img/img_ranking_change.png") center / cover no-repeat;
}

.ranking_item .ranking_change.up {
    color: #FF7391;
}

.ranking_item .ranking_change.up::before {
    background-image: url("/static/app_www/base/img/img_ranking_change_up.png");
}

.ranking_item .ranking_change.down {
    color: #64A0E6;
}

.ranking_item .ranking_change.down::before {
    background-image: url("/static/app_www/base/img/img_ranking_change_down.png");
}

.ranking_item .item_info {
    width: 83.746%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ranking_item .ranking_name {
    font-weight: 700;
    font-size: 1.143rem;
    color: #222;
}

.ranking_item .ranking_cnt {
    padding: 0 4px;
    font-size: 0.857rem;
    color: #fff;
    background-color: #D7B4F0;
    border-radius: 6px;
    aspect-ratio: 1/0.36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    min-width: 17.668%;
    line-height: 0;
}



/* tablet */
@media screen and (max-width: 1023px) {

    /* 반응형 display control */
    .is_pc {
        display: none !important;
    }

    .is_mobile {
        display: block;
    }

    .is_mobile.flex {
        display: flex;
    }

    .empty_wrap {
        padding: 130px 0;
    }
}

/* mobile */
@media screen and (max-width: 767px) {

    /* 쿠폰 css(임시위치) */
    .coupon_list_wrap .list_count {
        font-size: 12px;
    }

    .coupon_wrap {
        height: 160px;
        border-radius: 14px;
    }

    .coupon_wrap::before,
    .coupon_wrap::after {
        width: 51%;
    }

    .coupon_wrap::before {
        background-image: radial-gradient(circle at left,
                transparent 17px,
                var(--coupon-color, var(--main-color)) 0px);
    }

    .coupon_wrap::after {
        background-image: radial-gradient(circle at right,
                transparent 17px,
                var(--coupon-color, var(--main-color)) 0);
    }

    .coupon_wrap .coupon_left div {
        margin-left: 16px;

        font-size: 21px;
    }

    .coupon_wrap .coupon_center {
        padding: 10px 41px 10px 31px;
    }

    .coupon_wrap .coupon_center h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .coupon_wrap .coupon_center h3 {
        padding: 1px 10px;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .coupon_wrap .coupon_center .coupon_info:not(:last-child) {
        margin-bottom: 2px;
    }

    .coupon_wrap .coupon_center .coupon_info h4 {
        font-size: 14px;
    }

    .coupon_wrap .coupon_center .coupon_info p {
        font-size: 14px;
    }
}