@charset "utf-8";

@font-face {
    font-family: 'TTHakgyoansimYeohaengR';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2402_keris@1.0/TTHakgyoansimYeohaengR.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ── Global palette (black + red) ── */
html, body { background: #000 !important; }
#wrap { background: #000 !important; }
a:hover { color: #ff4444; }
.contents_wrap,
.contents_right,
.content_box,
.content_box_in,
.content_box_in2,
.con_box20,
.main_game_box,
.main_game_m { background: #000 !important; }

/* ── Sidebar ── */
.contents_left { background: #0a0000 !important; }
.logo img { width: 240px; transition: 0.2s; }
.logo a:hover img { filter: brightness(1.5); }
.left_game_title {
    color: #ff4444 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 400;
    text-transform: capitalize;
    width: 250px;
    padding: 0 0 5px 5px;
}
.left_game { margin: 10px 0 0 0 !important; }
.left_game ul {
    width: 250px !important;
    background: #1a0c0c;
    border: 1px solid #552222;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}
.left_game li {
    background: none !important;
    margin: 0 !important;
    line-height: 40px !important;
    border-bottom: 1px solid #552222;
}
.left_game li:last-child { border-bottom: none; }
.left_game li a { padding: 0 15px !important; }
.left_txt {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 300;
    font-size: 14px;
    color: #fff !important;
}
.left_game li a:hover .left_txt { color: #ff4444 !important; }
.msnodd { color: #ffcc00 !important; }
.sidebar_banners {
    float: left;
    width: 100%;
    clear: both;
    margin: 20px 0 0 0;
    padding: 0 0 10px;
}
.sidebar_banners a {
    display: block;
    width: 250px;
    margin: 0 auto 8px;
}
.sidebar_banners a:last-child {
    margin-bottom: 0;
}
.sidebar_banners img {
    display: block;
    width: 100%;
    border-radius: 8px;
}
.site_banners_stack {
    float: left;
    width: 100%;
    clear: both;
}
.site_banners_stack a {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}
.site_banners_stack a:last-child {
    margin-bottom: 0;
}
.site_banners_stack img {
    display: block;
    width: 100%;
    border-radius: 8px;
}
.mobile_main_banners {
    margin: 20px 0 0 0;
    padding: 20px 10px 0;
    background: #140808;
}
.aside_banners {
    margin: 15px 0 0 0;
    padding: 0 10px 15px;
}

/* ── Top bar (desktop only — mobile layout in layout.css @1240px) ── */
.header_wrap {
    background: #100505 !important;
    border-bottom: 1px solid #552222;
}
@media screen and (min-width: 1241px) {
    .header_wrap {
        height: 50px !important;
        padding: 0 20px !important;
    }
}
.utill_btn1, .login_btn1, .btn1_1, .btn2_1, .btn3_1, .division3, .pageon, .tabon {
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important;
    border: 1px solid #8b0000 !important;
    border-radius: 10px !important;
}
.utill_btn1:hover, .login_btn1:hover, .btn1_1:hover, .btn2_1:hover, .btn3_1:hover {
    filter: brightness(1.2);
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important;
}
.utill_btn2, .login_btn2, .btn1_2, .btn2_2, .btn3_2 {
    background: linear-gradient(to bottom, #8b0000 0%, #4a0000 100%) !important;
    border: 1px solid #660000 !important;
    border-radius: 10px !important;
}
.utill_btn2:hover, .login_btn2:hover { filter: brightness(1.2); }
.utill_btn3 { color: #ff4444 !important; }
.utill_btn3:hover { background: #ff4444 !important; color: #fff !important; }

.top_my li i { color: #ff4444 !important; }
.my_odd, .my_font01 { color: #ff4444 !important; }
.top_my li:hover a { color: #ff4444 !important; }

/* ── Title / accent borders ── */
.title { color: #ff4444 !important; background: none !important; -webkit-text-fill-color: #ff4444 !important; }
.title_box { background: #140808 !important; border-top: 3px solid #ff4444; border-radius: 0; }
[class*="list_title"] { border-top-color: #ff4444 !important; background: #140808 !important; }
.write_title_top { border-top-color: #ff4444 !important; }
.borad_box { border-top-color: #ff4444 !important; background: #140808 !important; }
.att_title1, .att_month_title { border-top-color: #ff4444 !important; color: #ff4444 !important; }

/* ── Game tabs (home) ── */
.main_game_tab ul { display: flex; }
.main_game_tab li { width: 49.5% !important; margin: 0 0.5% !important; float: none !important; }
.main_game_tab li:nth-child(3n) { margin: 0 0.5% !important; }
.main_game_tab li a {
    background: #120707 !important;
    border: 1px solid #552222 !important;
    color: #fff !important;
    font-family: 'TTHakgyoansimYeohaengR', 'Noto Sans KR', sans-serif !important;
    font-size: 26px !important;
    height: 50px !important;
    border-radius: 10px !important;
}
.main_game_tab li a span { font-size: 60% !important; color: rgba(255,255,255,0.7) !important; }
.main_game_tab li.active a,
.main_game_tab li:hover a {
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important;
    border: 1px solid #8b0000 !important;
    color: #ffcc00 !important;
}
.main_game_tab li a img { filter: grayscale(100%) brightness(0.4); }
.main_game_tab li.active a img,
.main_game_tab li:hover a img { filter: grayscale(0%) brightness(1); }

/* ── Game grid ── */
.game_list li { width: 20% !important; margin: 0 0 10px 0 !important; padding: 0 5px; }
.game_list li:nth-child(6n) { margin: 0 0 10px 0 !important; }
.game_list li a { border-radius: 5px; overflow: hidden; transition: transform 0.3s; }
.game_list li a:hover { transform: scale(1.03); filter: brightness(1.1); }

@media screen and (max-width:1520px) {
    .game_list li { width: 20% !important; }
}
@media screen and (max-width:1280px) {
    .game_list li { width: 25% !important; }
}
@media screen and (max-width:768px) {
    .game_list li { width: 33.333% !important; }
}

/* ── Notice / event boards ── */
.board_title {
    background: #140808 !important;
    border-top: 3px solid #ff4444 !important;
    font-size: 20px !important;
    color: #fff !important;
    height: 55px !important;
    line-height: 55px !important;
    padding: 0 18px !important;
}
.board td { color: #999 !important; font-size: 14px !important; }
.board td:first-child { color: #fff !important; }
.board td a:hover { color: #deb97d !important; }
.borad_font01 { color: #ff4444 !important; }

/* ── Announcement popups (PC) ── */
.center_popup_area_box {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10050 !important;
    padding-top: 120px;
    box-sizing: border-box;
}
.center_popup_area_box .shadow {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
}
.center_popup_area_box .line_up {
    position: relative;
    z-index: 1;
}
.center_popup_area_box .center_popup_area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #140808;
    border: 1px solid #552222;
    border-radius: 6px;
}
.center_popup_area_box .center_popup_area .conts {
    width: 448px !important;
    height: 558px !important;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.center_popup_area_box .center_popup_area .conts img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.center_popup_area_box .center_popup_area .bottom {
    flex-shrink: 0;
    width: 100% !important;
    box-sizing: border-box;
    background: rgba(10, 0, 0, 0.95);
    border-top: 1px solid #552222;
}

/* ── Announcement popups (mobile) ── */
body > .shadow {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10040 !important;
    background: rgba(0, 0, 0, 0.75) !important;
}
.popup_area {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translate(-50%, -50%);
    z-index: 10050 !important;
}
.popup_area .popup {
    width: 280px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #140808;
    border: 1px solid #552222;
    border-radius: 6px;
}
.popup_area .popup .content {
    width: 100% !important;
    height: 335px !important;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #000;
}
.popup_area .popup .content .subject {
    flex-shrink: 0;
}
.popup_area .popup .content .body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.popup_area .popup .content img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.popup_area .popup .close_box {
    width: 100% !important;
    flex-shrink: 0;
    box-sizing: border-box;
    background: rgba(10, 0, 0, 0.95);
    border-top: 1px solid #552222;
}

@media screen and (max-height: 750px) {
    .center_popup_area_box {
        padding-top: 60px !important;
    }
    .center_popup_area_box .center_popup_area .conts {
        height: calc(100vh - 200px) !important;
        max-height: 558px;
    }
}

@media screen and (max-width: 480px) {
    .popup_area .popup {
        width: calc(100vw - 40px) !important;
        max-width: 280px;
    }
    .popup_area .popup .content {
        height: 60vh !important;
        max-height: 335px;
    }
}

/* ── Login modal (Naruto) ── */
#login.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 100000;
    float: none;
    min-height: 0;
    align-items: unset;
    justify-content: unset;
}
#login.modal.is-open {
    display: block !important;
}
#login .modal_content {
    width: 400px;
    max-width: calc(100% - 30px);
    background: #140808;
    border-radius: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-sizing: border-box;
    box-shadow: #000 0.1em 0.1em 0.3em;
    line-height: 23px;
    border: solid 2px #a00000;
}
#login .lg_frm_arr {
    padding: 30px;
    cursor: default;
}
#login .lg_frm_arr .frm-logo {
    display: block;
    width: 280px;
    max-width: 100%;
    margin: 0 auto 20px auto;
}
#login .lg_frm_arr h4 {
    font-size: 20px;
    color: #fff;
    border-bottom: solid 2px #552222;
    padding: 25px 0;
    display: none;
}
#login #userid,
#login #passwd {
    height: 45px;
    text-align: center;
    background: #0a0000;
    border: solid 1px #552222;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
    color: #fff;
}
#login #userid:focus,
#login #passwd:focus {
    border: solid 1px #a00000;
}
#login #login-btn,
#login #join-btn,
#login #join-btn-anony {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: bold;
    border: solid 1px #8b0000;
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%);
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}
#login #login-btn {
    margin-top: 20px;
}
#login #login-btn:hover,
#login #join-btn:hover,
#login #join-btn-anony:hover {
    filter: brightness(1.2);
}
#login .modal-close {
    position: absolute;
    font-size: 36px;
    right: 10px;
    top: 10px;
    color: #999;
    z-index: 9;
    transform: rotate(0deg);
    transition: 0.5s;
    text-decoration: none;
    line-height: 1;
}
#login .modal-close:hover {
    color: #fff;
    transform: rotate(360deg);
}
#login .ft-tban {
    margin-top: 10px;
}
#login .ft-tban img {
    width: 100%;
}

@media screen and (max-width: 480px) {
    #login .modal_content {
        width: calc(100% - 20px);
    }
    #login .lg_frm_arr {
        padding: 20px 15px;
    }
    #login .lg_frm_arr .frm-logo {
        width: 220px;
    }
}

/* ── Join modal ── */
#join { background: rgba(0,0,0,0.8) !important; }
.loginbox { background: #140808 !important; border: 2px solid #a00000 !important; border-radius: 10px !important; }
.login_input { background: #0a0000 !important; border: 1px solid #552222 !important; border-radius: 10px !important; }
.login_input::placeholder { color: #999 !important; }
.login_input:focus { border-color: #a00000 !important; }
.close_btn_cu { background: #140808 !important; color: #999 !important; }
.close_btn_cu:hover { color: #fff !important; }

/* ── Footer ── */
.footer_wrap { background: #0a0000 !important; }
.f_copy { color: #666 !important; font-size: 14px !important; }
.footer_partners1 img { max-width: 100%; }

/* ── Content panels ── */
.content_box_in { background: transparent; }
.s_title1 { background: #1a0c0c !important; }
[class*="list_notice"], [class*="list_title"] { background: #140808 !important; }
[class*="list1"], [class*="list2"], [class*="list3"], [class*="list4"], [class*="list5"], [class*="list6"] { background: #1a0f0f !important; }
.write_title { background: #1a0f0f !important; }
.write_basic { background: #1a0c0c !important; }
.write_basic input:focus, .write_basic textarea:focus { border-color: #a00000 !important; }
.view1_title { background: #140808 !important; }
.view1 { background: #1a0c0c !important; }
.view2 { background: #1a0f0f !important; }
.page { background: #1a0c0c !important; }
.pageon { background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important; }

/* ── Tabs ── */
.tab:hover { color: #ff4444 !important; }
.tabon { background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important; color: #ffcc00 !important; }

/* ── Font colors ── */
.font06 { color: #ff4444 !important; }
.font11 { color: #ffcc00 !important; }
.info2 { color: #ffcc00 !important; }

/* ── Mobile bottom nav ── */
.m_menu_fix li:nth-child(3) a {
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important;
}
.top_my { border-top-color: #ff4444 !important; }

/* ── Aside menu ── */
.aside_close { background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important; }
.right_my_list>span, .right_my_list>span a { color: #ff4444 !important; }

/* ── Event list ── */
.event_view { color: #ff4444 !important; }
.event_title a:hover { color: #ff4444 !important; }

/* ── Radio ── */
.radio_wrap label>span:hover { background-color: #ff4444 !important; color: #000 !important; }

/* ── Betting results ── */
.result_title_list>ul>li.result_state { color: #ff4444 !important; }
.result_title_list>ul>li.result_team1.active,
.result_title_list>ul>li.result_team2.active {
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%) !important;
    color: #ffcc00 !important;
}
.result_team1.active .team_r,
.result_team2.active .team_l { color: #ff4444 !important; }
.bet_max { color: #ffcc00 !important; }

/* ── Slideshow ── */
.main_slideshow_pc .swiper-slide img { width: 100%; display: block; height: auto; }
.main_slideshow_pc,
.main_slideshow_m { background: #000; }

@media screen and (max-width: 1240px) {
    .contents_right > .header_wrap + .main_slideshow_m {
        margin-top: 0;
    }
    .header_wrap {
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        float: none !important;
        overflow: visible !important;
        border-bottom: 1px solid #333;
    }
    .mobile_menu {
        display: flex !important;
        float: none !important;
        width: 100% !important;
        flex-shrink: 0;
    }
    .top_login {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .top_my {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        background: #1a0c0c !important;
        border-top: 2px solid #ff4444 !important;
        flex-shrink: 0;
    }
    .top_my ul {
        justify-content: center !important;
        width: 100%;
    }
}
