/* common.css 체크후 수정할 스타일 */
.layer_content{padding:30px 24px}
.layer_head{border-bottom:1px solid #292B6C}

/* 토너먼트 상단 배너 */
.tn_top_banner{display:flex;flex-direction:column;justify-content:flex-start;width:100%;height:240px;padding:40px 44px;color:#fff;background-repeat:no-repeat;background-size:cover;border-radius:15px}
.tn_top_banner h2{font-size:3.4rem;font-weight:800}
.tn_top_banner p{font-size:34px;font-weight:800;line-height:1.1;}
.tn_top_banner p span{display:block}
.tn_top_banner.txtBtm{justify-content:flex-end}
.tn_top_text{display:block}

/* 토너먼트 탭 */
.menu_tab.type_02.tournament_tab{margin:40px 0}
/* 토너먼트 컨텐츠 */
.tournament_wrap{position:relative}
.tournament_container{display:flex;flex-wrap:wrap;justify-content:center}
.tournament_container.empty{min-height:500px;font-size: 1.8rem;text-align: center;align-items:center}
.tournament_item{width:calc(100% / 3 - 18px);padding:15px;margin:0 9px;border-radius:10px;border:3px solid #A60CFF;background:#1E0B3B;text-align:center}
.tournament_item img{width:100%;height:100%;vertical-align:top}
.tournament_item .tn_thumb{width:100%;height:166px;margin-bottom:24px}
.tournament_item .tn_thumb img{width:100%;height:100%;object-fit:cover;object-position:top center}
.tournament_item .tn_time{color:#fff;font-size:1.8rem;font-weight:800;margin-bottom:20px}
.tournament_item .tn_title{overflow:hidden;display:block;width:100%;height:57px;font-size:3rem;color:#fff;font-weight:800;margin-bottom:18px;border-radius:5px;background:#2F1A50;text-overflow:ellipsis;white-space:nowrap;line-height:57px}
.tournament_item .tn_prize{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-bottom:30px;font-size:1.4rem;font-weight:500}
.tournament_item .tn_prize strong{color:#FFF;font-size:3rem;font-weight:800}
.tournament_item .tn_prize .img_coin{width:31px;height:31px;margin:0 5px}

.tn_time strong{color:#FFBA00}
.tn_list_table_wrap{width:100%}
.tn_list_table_wrap img{width:100%;height:100%;vertical-align:top}
.tn_list_table .list_th{padding:0 10px;display:flex;flex-direction:row;align-items:center}
.tn_list_table .list_th li{width:30%;font-size:1.2rem;font-weight:700}
.tn_list_table .list_th li:nth-child(1){width:40%;text-align:left}

.tn_list_table .list_td ul + ul{margin-top:6px}
.tn_list_table .list_td ul{padding:0 10px;display:flex;flex-direction:row;align-items:center;height:52px;border-radius:5px;background:#2F1A50}
.tn_list_table .list_td li{width:30%;font-size:1.6rem;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;font-weight:700}
.tn_list_table .list_td li:nth-child(1){width:40%;text-align:left;justify-content:flex-start}
.tn_list_table .list_td li .name_rnk{width:calc(100% - 23px);padding-left:5px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}

.tn_list_table .list_td .img_rnk{display:inline-block;width:23px;height:33px}
.tn_list_table .list_td .img_coin{display:inline-block;width:16px;height:16px;margin-right:2px}

.tn_list_table.th_02 .list_th li{width:210px;padding-left:40px}
.tn_list_table.th_02 .list_th li:nth-child(1){width:calc(100% - 210px);padding-left:0}
.tn_list_table.th_02 .list_td li{width:210px;justify-content:flex-start}
.tn_list_table.th_02 .list_td li:nth-child(1){width:calc(100% - 210px)}

.show_rank{margin-top:10px;color:#FFBA00;font-size:1.4rem;font-weight:500;text-decoration:underline;cursor:pointer}
.tn_btn{width:100%;margin-top:20px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}
.tn_btn .b_join{width:calc(100% - 26px - 9px);display:inline-block;height:40px;line-height:40px;color:#322E28;background-color:#403B35;font-size:2.4rem;font-weight:800;border-radius:5px;text-align:center}
.tn_btn .b_join.active{background:#FE8B01;color:#fff}
.tn_btn .b_info{display:inline-block;width:26px;height:26px;text-align:center;color:#fff;font-size:22px;font-weight:900;line-height:26px;background-color:#F520AF;border-radius:100%}

.layer_rqm{display:none;position:absolute;z-index:1000;padding:24px;border-radius:10px;border:1px solid #C8C8C8;background:#2F1A50;min-width:200px;box-shadow:0 4px 12px rgba(0,0,0,0.3)}
.layer_rqm.show{display:block !important}
.layer_rqm p{display:block;width:100%;font-size:2rem;font-weight:700;text-align:center;margin-bottom:14px;line-height:1}
.layer_rqm_info li{display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:1.5rem;font-weight:700;line-height:18px}
.layer_rqm_info li span:nth-child(1){color:#CDADFF}
.layer_rqm_info li span:nth-child(2){color:#A60CFF;margin-left:5px}

@media screen and (max-width:1109px){
    .menu_tab.type_02.tournament_tab{margin: 30px 0}
    .tournament_item{width:100%;margin:0 0 30px 0;padding:15px 8px}
    .menu_tab.tournament_tab ul{padding:0 16px}
    .menu_tab.tournament_tab li{width:50%;height:52px}
    .menu_tab.tournament_tab li button,.menu_tab.tournament_tab li a{font-size:1.8rem}
    .tn_top_banner{width:100%}
    .tn_top_banner{background-position: right center}	
}
@media screen and (max-width:767px){ 
    .tn_top_banner{background-position: right -130px center}
    .tournament_container.empty{font-size: 1.4rem}
	.tn_top_text{display:none}
}

/* layer :tournament */
.tournamentGameLayer{height:780px;width:780px}
.tournamentGameLayer .layer_content{padding:20px 15px}
.tournamentGameLayer .ly_scroll .layer_body{padding:0}
.calHeight{height:665px} /* 기본값, JavaScript에서 동적으로 계산됨 */
.layer_head .title.font_bold{font-size:3rem;font-weight:700;padding:0 15px 0 20px}
.layer_inner_scroll{height:665px;overflow-y:auto;overflow-x:hidden;padding-right:10px}
.layer_inner_scroll::-webkit-scrollbar{width:3px}
.layer_inner_scroll::-webkit-scrollbar-track{background:transparent;border-radius:4px}
.layer_inner_scroll::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:4px}
.layer_tournament_cont{height:calc(100% - 44px);overflow:visible;padding-top:30px}
.layer_tournament_cont .game_list_wrap{height:100%}
.layer_tournament_cont .game_item{width:170px;height:170px;padding-bottom:0}
.layer_tournament_cont .game_image_wrap{height:100%}
/* scroll list */
.ly_scroll .layer_body{padding:0 12px 0 24px}

/* layer :tournament - rank */
.ly_tournament .layer_body{padding:0}
.ly_tournament .layer_inner_scroll{position:relative}
.ly_tournament .tn_list_table .list_th{height:52px;position:sticky;top:0;left:0;width:100%;z-index:10;background:#161740}
.ly_tournament .tn_list_table .list_th li{font-size:1.8rem}
.ly_tournament .tn_list_table .list_td ul{background:#292B62;height:64px;border-radius:15px}
.ly_tournament .tn_list_table .list_td .img_rnk{height:auto}
.ly_tournament .tn_list_table .list_td .img_rnk img{width:36px;height:52px}
.ly_tournament .tn_list_table .list_td li .name_rnk{margin-left:30px;width:calc(100% - 36px)}
.ly_tournament .tn_list_table .list_td .img_coin{width:34px;height:32px;margin-right:8px;flex-shrink:0}
.ly_tournament .tn_list_table .list_td .img_coin img{width:100%;height:100%;object-fit:contain}
.ly_tournament .tn_list_table .list_td .txt_rnk{font-size:3rem;font-weight:700;display:inline-block}
.ly_tournament .tn_list_table.myRankNum{margin-top:6px;position:sticky;bottom:0;left:0;width:100%;z-index:10;background:#2F1A50}
.ly_tournament .tn_list_table.myRankNum .list_td ul{background:#A60CFF}


/* rank number width */
.ly_tournament .tn_list_table .list_td .img_rnk{width:88px;text-align:center}
.ly_tournament .tn_list_table .list_td .txt_rnk{width:88px;text-align:center}

/* 미디어쿼리 */
@media screen and (max-width:1109px){
    .ly_scroll .layer_body{padding:0 9px 30px 18px}
    .tournamentGameLayer{height:80vh;width:95%;border:0}
    .layer_tournament_cont .game_play_wrap{width:100%}
    .layer_tournament_cont .game_item{width:calc(100% / 4 - 10px);height:auto;padding-bottom:24%}
    .layer_inner_scroll::-webkit-scrollbar-thumb{background:#36387F}
}
@media screen and (max-width:767px){
    /* s:common.css 확인하고 수정 하기 */
    .layer_head{border-bottom:0}
    .layer_head .title{height:25px;line-height:25px}
    .popup_box .close{top:20px;right:20px}
    .layer_head{margin-bottom:15px}
    /*  e:common.css 확인하고 수정 하기  */

    .layer_inner_scroll{padding-right:5px}
    .layer_head .title.font_bold{font-size:2.4rem;text-align:left;padding:0}
    .ly_tournament .layer_content{padding:20px 15px}
    .layer_tournament_cont{height:100%;padding-top:20px}
    .layer_tournament_cont .game_play{padding-bottom:0}
    .layer_tournament_cont .game_item{width:calc(100% / 3 - 10px);height:auto;padding-bottom:31%}
    .ly_tournament .tn_list_table .list_td ul{padding:0 10px 0 6px}
    .ly_tournament .tn_list_table .list_th{height:40px;padding:0 10px}
    .ly_tournament .tn_list_table .list_th li{width:30%;font-size:1.3rem;font-weight:500;text-align:center}
    .ly_tournament .tn_list_table .list_th li:nth-child(1){width:40%;text-align:center}
    .ly_tournament .tn_list_table .list_td ul{height:40px}
    .ly_tournament .tn_list_table .list_td li{width:30%;font-size:1.2rem;font-weight:500}
    .ly_tournament .tn_list_table .list_td li:nth-child(1){width:40%}
    .ly_tournament .tn_list_table .list_td li .name_rnk{margin-left:0;padding-left:5px}
    .ly_tournament .tn_list_table .list_td .txt_rnk{font-size:1.8rem;padding-left:0}
    .ly_tournament .tn_list_table .list_td .img_coin{width:18px;height:17px;margin-right:4px}
    .ly_tournament .tn_list_table .list_td .img_rnk img{width:19px;height:27px}

    .ly_tournament .tn_list_table.th_02 .list_th li{width:50%;padding-left:40px}
    .ly_tournament .tn_list_table.th_02 .list_th li:nth-child(1){width:50%;padding-left:0}
    .ly_tournament .tn_list_table.th_02 .list_td li{width:50%;justify-content:flex-end;padding-right:10px}
    .ly_tournament .tn_list_table.th_02 .list_td li:nth-child(1){width:50%;padding-right:0}

    /* rank number width */
    .ly_tournament .tn_list_table .list_td .img_rnk{width:50px;text-align:center}
    .ly_tournament .tn_list_table .list_td .txt_rnk{width:50px;text-align:center}
}

/* Main Tournament Contents */
.btn_all_tournament{position:absolute;right:0;width:170px;height:42px;line-height: 42px;text-align: center;color:#fff;font-size:1.6rem;border-radius: 10px;border: 2px solid #EFAF03;}
.main_tournament_cont{width:100%;height:268px;padding:30px 15px 36px 30px;border-radius: 10px;
    background-image: url(../../images/tournament/img_main_tournament.png);background-repeat:no-repeat;background-size: cover;background-position: center;}
.main_tournament_cont{display: flex;flex-direction: row;justify-content: space-between;align-items: center;}
.main_tournament_cont .tn_cont_l{width:calc(100% - 400px);display: flex;flex-direction: column;}
.main_tournament_cont .tn_cont_r{width:348px;padding:12px;border-radius: 10px;background: rgba(255, 255, 255, 0.12);}

.tn_end_time{display:inline-block;margin:0 0 6px 0;width:200px;height:30px;border-radius: 5px;color:#000;background: #7CF758;font-size:1.6rem;text-align: center;font-weight: 800;line-height: 30px;}
.tn_game_title{margin:0 0 11px 0;color:#fff;font-size: 4.2rem;font-weight: 800;line-height:50px;}
.tn_prize_pool{display: flex;margin:0 0 22px 0;flex-direction: row;align-items: center;font-size: 1.4rem;}
.tn_prize_pool .ico_prize_sc{width:31px;height:31px;margin:0 5px;}
.tn_prize_pool .ico_prize_sc img{width:100%;height:100%;}
.tn_prize_pool strong{font-size:3.8rem;font-weight:800;}
.tn_btn_play{overflow:hidden;height:46px;line-height:46px;width:228px;border-radius: 46px;background: #FED900;text-align: center;color: #510404;}
.tn_btn_play button,.tn_btn_play a{display:block;width:100%;height:100%;font-size: 1.8rem;font-weight: 800;}

.main_tournament_cont .tn_list_table .list_th{margin-bottom: 8px;}
.main_tournament_cont .tn_list_table .list_th li{text-align: center;}
.main_tournament_cont .tn_list_table .list_th li:nth-child(1){text-align: left;}
.main_tournament_cont .tn_list_table .list_td ul{background: rgba(255, 255, 255, 0.20);}
.main_tournament_cont .show_rank{text-align: center;}

@media screen and (max-width:1109px){
    .main_tournament_cont .tn_cont_l{width:50%;}
    .main_tournament_cont .tn_cont_r{width:50%;}
    .tn_game_title{font-size: 3.2rem;line-height: 38px;margin:0 0 5px 0;}
    .tn_prize_pool{margin:0 0 20px 0}
    .tn_prize_pool strong{font-size:3rem;}
}
@media screen and (max-width:767px){ 
    .btn_all_tournament{display: none;}
    .main_tournament_cont{flex-direction: column;justify-content: flex-end;height:auto;padding:46% 8px 13px 8px;background-image: url(../../images/tournament/mo_img_main_tournament.png);background-position: center top;}
    .main_tournament_cont .tn_cont_l{width:100%;justify-content: center;align-items: center;}
    .main_tournament_cont .tn_cont_r{width:100%;margin-top:18px;background: transparent;}
    .tn_game_title{margin:0 0 5px 0;}
    .tn_btn_play{height:40px;line-height:40px;width:100%}
}
