/* 월드카지노 반응형 CSS - 모바일 이미지들 기반 */

/* 기본 설정 */
* {
    box-sizing: border-box;
}

/* 모바일 디바이스용 (768px 이하) */
@media screen and (max-width: 768px) {
    
    /* ==== 기본 레이아웃 재구성 ==== */
    body {
        margin: 0;
        padding: 0;
        background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
        min-height: 100vh;
        overflow-x: hidden !important;
    }
    
    #wrap {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .betting-live-title{
        width: 48% !important;
    }

    .betting-slot-title{
        width: 48% !important;
    }

    .betting-tab-wrap{
        width: 100% !important;
    }

    /* PC 좌측 메뉴 완전히 숨기기 */
    .contents_left {
        display: none !important;
    }

    /* 우측 콘텐츠를 전체로 확장 */
    .contents_right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        
    }

    /* ==== 모바일 헤더 (원본 스타일 적용) ==== */
    .mobile-header {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        max-width: 100% !important;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #e67e22 100%) !important;        
        margin: 0 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
        box-sizing: border-box !important;        
    }

    .mobile-header .top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;        
        padding: 0 15px !important;
        width: 100% !important;
        height: 80px !important;
        box-sizing: border-box !important;
    }

    .mobile-header .m_logo {
        line-height: 80px;
    }

    .mobile-header .m_logo img {
        width: 100px !important;
        height: auto !important;
    }

    .mobile-header .m_menu button {
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: white !important;
        padding: 8px 15px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        cursor: pointer !important;
    }

    /* 모바일 유저 정보 바 */
    .mobile-user-info {
        background: #4e433a !important;        
        border-radius: 0px !important;
        color: white !important;
        font-size: 13px !important;
        text-align: left !important;
        line-height: 1.3 !important;
        border: none !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-user-info a {
        color: #ffd700 !important;
        text-decoration: none !important;
    }

    /* ==== 모바일 사이드바 (오른쪽에서 슬라이드) ==== */
    .mobile-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #1a1a2e, #16213e, #0f3460) !important;
        z-index: 9999 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        padding: 20px !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5) !important;
    }

    .mobile-sidebar.active {
        right: 0 !important;
    }

    .mobile-sidebar .close-btn {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 28px !important;
        cursor: pointer !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-sidebar .logo {
        text-align: center !important;
        margin: 40px 0 20px 0 !important;
    }

    .mobile-sidebar .logo img {
        max-width: 120px !important;
        height: auto !important;
    }

    /* 사이드바 유저 정보 */
    .mobile-sidebar .user-info {
        background: rgba(0,0,0,0.3) !important;
        padding: 15px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
        color: white !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }

    .mobile-sidebar .user-info a {
        color: #ffd700 !important;
        text-decoration: none !important;
    }

    /* 게임 버튼들 */
    .mobile-sidebar .game-buttons {
        margin-bottom: 20px !important;
    }

    .mobile-sidebar .game-buttons a {
        display: block !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    }

    .mobile-sidebar .game-buttons img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* 메뉴 그리드 */
    .mobile-sidebar .menu-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .mobile-sidebar .menu-btn {
        background: rgba(139, 69, 19, 0.8) !important;
        color: white !important;
        padding: 15px 8px !important;
        text-align: center !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-size: 12px !important;
        font-weight: bold !important;
        border: 1px solid rgba(160, 82, 45, 0.8) !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }

    .mobile-sidebar .menu-btn:hover {
        background: rgba(160, 82, 45, 0.9) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
    }

    .mobile-sidebar .logout-btn {
        background: rgba(69, 69, 139, 0.8) !important;
        color: white !important;
        padding: 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        display: block !important;
        font-weight: bold !important;
        border: 1px solid rgba(82, 82, 160, 0.8) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }

    /* 모바일 오버레이 */
    .mobile-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 9998 !important;
        display: none !important;
    }

    .mobile-overlay.active {
        display: block !important;
    }

    /* ==== 메인 콘텐츠 조정 ==== */
    .right_header_wrap {
        margin-top: 0 !important; /* 상단 여백 제거 */
        /* padding: 10px !important; */
    }

    /* PC 헤더 숨기기 */
    .right_header_box1,
    .right_header_box2 {
        display: none !important;
    }

    /* ==== 슬라이더 모바일 최적화 ==== */
    .slider-container {
        height: 200px !important;
        /* margin: 15px 10px !important; */
        border-radius: 8px !important;
    }

    .slider-arrows {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }

    .prev-arrow {
        left: 10px !important;
    }

    .next-arrow {
        right: 10px !important;
    }

    .nav-dot {
        width: 10px !important;
        height: 10px !important;
    }

    /* ==== 추천게임 섹션 (모바일에서 숨김) ==== */
    .contents_box {
        display: none !important;
    }

    /* ==== 메인 게임 버튼 (라이브카지노, 슬롯게임) ==== */
    .main_game {
        margin-top: 5px !important;
        padding: 0 15px 15px 15px !important;
    }

    .main_game ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main_game ul li {
        width: 100% !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    }

    .main_game ul li img,
    .main_game ul li div {
        width: 100% !important;
        height: auto !important;
        max-width: 392px !important;
        aspect-ratio: 475/280 !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* ==== 게시판 모바일 최적화 ==== */
    .main_board {
        padding: 15px 10px !important;
    }

    .main_board ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main_board ul li {
        background: rgba(0,0,0,0.3) !important;
        border-radius: 8px !important;
        padding: 15px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }

    .main_board .board_title {        
        text-align: center !important;
    }

    .main_board .board_title img {
        max-width: 150px !important;
        height: auto !important;
    }

    .main_board table {
        width: 100% !important;
        font-size: 10px !important;
        color: white !important;
    }

    .main_board table td {
        padding: 5px 3px !important;        
    }

    .board_font01 {
        color: #ffd700 !important;
        font-weight: bold !important;
    }
 
    

   

    /* ==== 반응형 텍스트 크기 ==== */
    
    .font01 { font-size: 11px !important; }
    .font25 { font-size: 11px !important; color: #ffd700 !important; font-weight: bold !important; }
    .font05 { font-size: 10px !important; color: #ffd700 !important; }

    /* ==== 애니메이션 비활성화 (모바일 성능) ==== */
    [data-animation-container],
    [data-animation-child] {
        animation: none !important;
        transition: none !important;
    }

    /* ==== 스크롤바 숨기기 ==== */
    ::-webkit-scrollbar {
        width: 3px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }

    /* ==== 터치 최적화 ==== */
    a, button {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }

    /* ==== 모바일에서 .cf 클래스 재정의 ==== */
    .cf {
        display: block !important;
    }

    .cf:before,
    .cf:after {
        display: none !important;
    }
}

/* 태블릿 디바이스용 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .contents_left {
        width: 180px !important;
    }
    
    .contents_right {
        width: calc(100% - 200px) !important;
        margin-left: 200px !important;
    }
    
    .game_list ul {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .slider-container {
        height: 300px !important;
    }

    
}

/* PC에서는 모바일 요소 숨김 */
@media screen and (min-width: 769px) {
    .mobile-header,
    .mobile-sidebar,
    .mobile-overlay,
    .mobile-user-info {
        display: none !important;
    }
}

 .slider-container {
    position: relative;
    width: 100%;
    max-width: 1620px;
    height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slider-wrapper {
    position: relative;
    width: 200%;
    height: 100%;
    display: flex;
}

.slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrows:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}


@media (max-width: 768px) {
    .slider-container {
        width: 412px;
        height: 200px !important;
    }
    .slide img {
        width: 412px;
        height: 200px;
        object-fit: cover;
        display: block;
    }
    
}



:root {
    --bg-url: url("/usertheme/layout2/assets/images/bg0/bg.jpg");
    --bg-left-url: url("/usertheme/layout2/assets/images/bg0/bg_left.jpg");
    --m-bg-top: url("/usertheme/layout2/m/assets/images/bg0/m_bg_top.jpg");
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 데스크톱 기본 스타일 */
body {
    background: var(--bg-url) no-repeat center center fixed;
    background-size: cover;
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
}

/* 모바일 햄버거 메뉴 (기본 숨김) */
.aside2 {
    display: none;
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.aside2.open {
    right: 0;
}

.aside_wrap {
    padding: 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

.aside_top_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-bottom: none;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #e67e22 100%);
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    height: 80px;
}

.aside_top_left img {
    width: 100px;
}

.aside_top_right {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.aside_top_right:hover {
    transform: scale(1.1);
}

.aside_top_right img {
    width: 45px;
}

.aside2_box1_wrap {
    /* margin-bottom: 10px; */
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    /* padding: 15px; */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.aside2_box1 table {
    width: 100%;
    border-top: solid 1px rgba(201,178,214,0.3);
    color: #fff;
    font-size: 14px;
}

.aside2_box1 td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(201,178,214,0.2);
}

.aside2_box1 td:last-child {
    border-left: solid 1px rgba(201,178,214,0.3);
}

.font01 { color: #ffd700; font-weight: bold; }
.font05 { color: #ff6b6b; font-weight: bold; }
.font25 { color: #4ecdc4; font-weight: bold; }

.aside2_box2_wrap {
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.aside2_box2 table {
    width: 100%;
}

.aside2_box2 td {    
    text-align: center;
}

.aside2_box2 img {
    width: 100%;    
    transition: transform 0.2s ease;
}

.aside2_box2 img:hover {
    transform: scale(1.02);
}



.aside_btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.aside_btn2 {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
    
}

.aside_btn2:hover {
    transform: translateY(-2px);
    
}

/* 오버레이 */
.aside-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

.aside-overlay.active {
    display: block;
}

/* 모바일 헤더 (기본 숨김) */
.mobile-header {
    display: none;
}

/* 데스크톱 레이아웃 */
#wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.contents_left {
    width: 300px;
    background: var(--bg-left-url) no-repeat center center;
    background-size: cover;
    padding: 0;
    position: relative;
    margin: 0;
}

.contents_right {
    flex: 1;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* 슬라이더 컨테이너 */
.slider-container {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: none;
}

.slider-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 50%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-arrows:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

/* 게임 리스트 - 3열 2행 */
.game_list ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    list-style: none;
    padding: 0 20px;
    max-width: none;
    margin: 0;    
    width: 100%;
    justify-items: center;
    align-items: center;
}

.game_list li {
    position: relative;
    overflow: hidden;
    border-radius: 8px;    
    transition: all 0.3s ease;    
    border: none;
    max-width: 446px;
    max-height: 160px;
    width: 100%;
    height: 100%;
}

.game_list li:hover {
    transform: translateY(-2px);
    
}

.game_list img {
    max-width: 446px;
    max-height: 160px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    transition: transform 0.3s ease;
}

.game_list li:hover img {
    transform: scale(1.02);
}


/* 추천게임 제목 스타일 */
.contents_box {
    margin: 15px 0;
    padding: 0 20px;
}

.title_wrap {
    text-align: left;
    margin:20px 0 5px 0px;
    padding-left: 15px;
}

.title {
    font-family: 'Esamanru';
    font-weight: 700;
    font-size: 32px;
    color: #ffb476;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.75);
    line-height: 100px;
    padding: 0;
    background: none;
    border-radius: 0;
    display: inline-block;
    box-shadow: none;
}

/* 메인 게임 버튼 */
.main_game {
    padding: 15px 20px;
    margin: 0;
}

.main_game ul {
    display: flex;
    gap: 10px;
    list-style: none;
    justify-content: center;
    margin: 0 auto;
    max-width: 960px;
}

.main_game li {
    flex: 1;
    max-width: 475px;
    max-height: 280px;
    height: 280px;
}

.main_game img {
    max-width: 475px;
    max-height: 280px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.main_game img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* 메인 보드 */
.main_board {
    display: flex;
    gap: 10px;
    margin: 15px 20px;
    padding: 0;
}

.main_board ul {
    display: contents;
}

.main_board li {
    flex: 1;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
}

.board_title {
    padding: 8px 12px;
    background: transparent;
    text-align: left;
    border-bottom: none;
    color: #ffcc00;
    font-size: 14px;
    font-weight: bold;
}

.board_title img {
    display: block;
    height: 20px;
    width: auto;
}

.board {
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.5);
}

.board table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.board tr {
    border-bottom: none;
    transition: none;
}

.board tr:hover {
    background-color: #222;
}

.board td {
    padding: 6px 8px;
    vertical-align: middle;
    color: #ccc;
    font-size: 16px;
}

.board_font01 {
    color: #ffb400;
    font-weight: 700;
    font-size: 16px;
}

.board_font02 {
    color: #c1926d;
    font-weight: 700;
    font-size: 16px;
}

/* 스크롤바 스타일 */
.board::-webkit-scrollbar {
    width: 4px;
}

.board::-webkit-scrollbar-track {
    background: #333;
}

.board::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

.board::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* tableTicker_wrap2 ID 높이 및 폰트 설정 */
#tableTicker_wrap2 {
    height: 240px;
    font-size: 16px !important;
}

.mobile_message_view1{
    display: none;;
}

.ht-1600{
    height:1600px;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-animation="fadeInLeft"] {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* ========== 모바일 반응형 ========== */
@media (max-width: 768px) {
    /* 모바일에서 배경 변경 */
    body {
        background: var(--m-bg-top) no-repeat center top;
        background-size: 100% auto;
    }
    
    /* 데스크톱 레이아웃 숨기기 */
    .contents_left {
        display: none;
    }
    
    /* 모바일 햄버거 메뉴 표시 */
    .aside2 {
        display: block;
    }
    
    /* 모바일 헤더 완전 제거 */
    .mobile-header {
        display: none;
    }
    
    /* 모바일 레이아웃 조정 */
    #wrap {
        display: block;
        width: 100%;
    }
    
    .contents_right {
        padding: 0;
    }
    
    /* 모바일 헤더 스타일 */
    .mobile-header {
        width: 100vw;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .mobile-header .top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #e67e22 100%);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-header .m_logo img {
        width: 100px;
        transition: transform 0.2s ease;
    }
    
    .mobile-header .m_logo img:hover {
        transform: scale(1.05);
    }
    
    .mobile-header .m_menu {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .mobile-header .m_menu:hover {
        transform: scale(1.1);
    }
    
    .mobile-header .m_menu img {
        width: 50px;
    }
    
    /* 모바일 사용자 정보 박스 */
    .mobile-user-info {
        margin: 0;
        background: rgba(0,0,0,0.7);
        border-radius: 0;        
        backdrop-filter: none;
        border: none;
        color: white;
        font-size: 13px;
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-user-info table {
        width: 100%;
        color: white;
        font-size: 13px;
        border-collapse: collapse;
        border-top:solid 1px rgba(201,178,214,0.1)
    }
    
    .mobile-user-info td {
        padding: 8px 10px;
        border: none;
        vertical-align: middle;
        text-align: center;
       
    }
    
    .mobile-user-info td:nth-child(2) {
        text-align: right;
    }
    
    /* 모바일 슬라이더 */
    .slider-container {
        margin: 12px 15px;
        height: 220px;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    
    .slider-arrows {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .nav-dot {
        width: 12px;
        height: 12px;
    }
    
    /* 모바일 게임 리스트 */
    .contents_box {
        margin: 15px;
    }
    
    .game_list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
   
    
    /* 모바일 메인 게임 */
    .main_game {
        padding: 12px 15px;
    }
    
    .main_game ul {
        flex-direction: column;
        gap: 12px;
    }
    
    .main_game li {
        max-width: none;
    }
    
    .main_game img {
        border-radius: 12px;
    }
    
    /* 모바일 메인 보드 */
    .main_board {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 10px 10px !important; /* 좌우 여백 동일하게 10px */
        padding: 0;
        width: calc(100vw - 20px) !important; /* 좌우 여백을 고려한 전체 폭 */
    }
    
    .main_board ul {
        display: contents;
    }
    
    .main_board li {
        flex: 1;
        background: transparent;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        border: none;
        margin: 0;
        width: 100% !important; /* 부모의 전체 폭 사용 */
        max-width: none !important; /* 최대 폭 제한 해제 */
    }
    
    .main_board .board_title {
        padding: 8px 12px;
        background: transparent;
        text-align: left;
        border-bottom: none;
        color: #c9b2d6; /* 이전에 정한 글씨 색상 적용 */
        font-size: 8.4px; /* 12px의 30% 감소: 12 * 0.7 = 8.4px */
        font-weight: bold;
    }
    
    .main_board .board_title img {
        height: 18px; /* 이미지 크기도 줄임 */
        width: auto;
    }
    
    .main_board .board {
        padding: 10px;
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden; /* 가로 스크롤 방지 */
        background: rgba(255, 255, 255, 0.08);
    }
    
    .main_board .board table {
        width: 100%;
        max-width: 100%;
        font-size: 13px; /* 13px로 설정 */
        border-collapse: collapse;
        table-layout: fixed;
        line-height: 1.3;
    }
    
    .main_board .board td:nth-child(1) {
        width: 27%;
        word-wrap: break-word;
        overflow: hidden;
    }
    
    .main_board .board td:nth-child(2) {
        width: 35%;
        word-wrap: break-word;
        overflow: hidden;
        font-size:13px !important;
    }
    
    .main_board .board td:nth-child(3) {
        width: 25%;
        word-wrap: break-word;
        overflow: hidden;
    }
    
    
    
    .main_board .board td {
        padding: 6px 4px; /* 패딩 줄임 */
        vertical-align: middle;
        color: #fff; /* 이전에 정한 글씨 색상 적용 */
        font-size: 13px; /* 13px로 설정 */
        word-wrap: break-word; /* 긴 텍스트 줄바꿈 */
        white-space: normal; /* 자동 줄바꿈 허용 */
        overflow: visible; /* 내용이 잘리지 않도록 */
        line-height: 1.2; /* 줄 간격 조정 */
    }   
   
    .main_board .board_font02{        
        font-weight: 100 !important;
        font-size: 13px !important;
    }

    .footer_wrap{
        width:100vw;
        margin : 20px 0 0 0;
        padding : 20px 10px;
        background : #252525;
        text-align: center;
        overflow: visible;
        box-sizing: border-box;
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom:0px;        
    }

    .footer_box{
        width:100%;
        margin : 10px 0;
        padding : 10px;
        text-align: center;
        float : none;
        font-size:12px;
        color : #737373;
        display: block;
    }
    .footer_box img{
        width:100% !important;        
    }
    
    #qna_form .write_title{
        background: #2b2b2b;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        padding: 12px 20px 12px 20px;
        width: 100px;
        font-weight: 500;
    }
    #qna_list .list_date{
        width:20% !important;
    }

    .message_list_btn{        
        float: left;
        width: 30% !important;
        margin: 30px 0 0 0;
    }
    .mobile_message_view1{        
        display: block;
    }
    .pc_message_view1 { display: none;}

    #deposit_form .write_title, #withdraw_form .write_title, #transfer_form .write_title{
        width:28%;
    }

    #deposit_form .write_basic input,#withdraw_form .write_basic input,#transfer_form .write_basic input{
        width:95%;
    }

    #deposit_form .write_basic .btn1_2, #deposit_form .write_basic .btn1_1,#withdraw_form .write_basic .btn1_2, #withdraw_form .write_basic .btn1_1,#transfer_form .write_basic .btn1_2, #transfer_form .write_basic .btn1_1{
        width:31%;
    }
    .amount_50 {
        display: none;
    }
    .mobile_td_hide{
        display: none;;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .mobile-header .top {
        padding: 10px 12px;
        background: url(/usertheme/layout2/m/assets/images/bg0/m_bg_top.jpg) center top no-repeat;
        background-size:100% 100%;
    }
    
    .mobile-header .m_logo img {
        width: 85px;
    }
    
    .mobile-header .m_menu img {
        width: 45px;
    }
    
    .slider-container {
        margin: 10px 12px;
        height: 180px;
    }
    
    .main_game {
        padding: 10px 12px;
    }
    
    .mobile-user-info {
        margin: 10px 12px;        
        font-size: 12px;
    }
    
    .main_board {
        margin: 8px 8px !important; /* 좌우 여백 동일하게 8px */
        width: calc(100vw - 16px) !important; /* 화면에 맞게 조정 */
    }
    
    .main_board li {
        margin: 0;
        width: 100% !important; /* 부모의 전체 폭 사용 */
        max-width: none !important; /* 최대 폭 제한 해제 */
    }
    
    .main_board .board table {
        font-size: 13px; /* 13px로 통일 */
    }
    
    .main_board .board td {
        padding: 4px 2px; /* 패딩 더 줄임 */
        font-size: 13px; /* 13px로 통일 */
    }   

}

/* 초소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    .mobile-header .top {
        padding: 8px 10px;
    }
    
    .mobile-header .m_logo img {
        width: 75px;
    }
    
    .mobile-header .m_menu img {
        width: 40px;
    }
    
    .slider-container {
        margin: 8px 10px;
        height: 160px;
    }
    
    .main_game {
        padding: 8px 10px;
    }
    
    .mobile-user-info {
        margin: 8px 10px;
        padding: 8px;
        font-size: 11px;
    }
    
    .main_board {
        margin: 5px 5px !important; /* 좌우 여백 동일하게 5px */
        width: calc(100vw - 10px) !important; /* 최대 폭 활용 */
    }
    
    .main_board li {
        margin: 0;
        width: 100% !important; /* 부모의 전체 폭 사용 */
        max-width: none !important; /* 최대 폭 제한 해제 */
    }
    
    .main_board .board table {
        font-size: 13px; /* 13px로 통일 */
    }
    
    .main_board .board td {
        padding: 3px 1px; /* 최소 패딩 */
        font-size: 13px; /* 13px로 통일 */
    }
    
    .main_board .board_title {
        font-size: 13px; /* 13px로 통일 */
        padding: 6px 8px;
    }   
 
    
    .board td {
        padding: 8px 4px;
    }
    
    .board table {
        font-size: 11px;
    }   
  
    
    .aside_btn1, .aside_btn2 {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* 추가 시각적 효과 */
.board tr:last-child {
    border-bottom: none;
}

.aside2_box1 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 100;
}

.aside2_box1 a:hover {
    color: #45a29e;
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* ========== index.html에서 이동한 CSS 스타일 ========== */

:root {
    --bg-url: url("/usertheme/layout2/assets/images/bg0/bg.jpg");
    --bg-left-url: url("/usertheme/layout2/assets/images/bg0/bg_left.jpg");
    --m-bg-top: url("/usertheme/layout2/m/assets/images/bg0/m_bg_top.jpg");
}

/* 기본 스타일 리셋 (기존과 중복이지만 덮어쓰기) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 데스크톱 기본 스타일 */
body {
    background: var(--bg-url) no-repeat center center fixed;
    background-size: cover;
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
}

/* 모바일 햄버거 메뉴 (기본 숨김) */


.aside2.open {
    right: 0;
}

.aside_wrap {
    padding: 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

.aside_top_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-bottom: none;
    padding: 12px 15px;
    background: url(/usertheme/layout2/m/assets/images/bg0/m_bg_top.jpg) center top no-repeat;
        background-size:100% 100%;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    height: 80px;
}

/* 사이드바 사용자 정보 영역 */
.aside-user-info {
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    color: white;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.aside_top_left img {
    width: 100px;
}

.aside_top_right {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.aside_top_right:hover {
    transform: scale(1.1);
}

.aside_top_right img {
    width: 45px;
}

.aside2_box1_wrap {
    /* margin-bottom: 20px; */
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    /* padding: 15px; */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.aside2_box1 table {
    width: 100%;
    border-top: solid 1px rgba(201,178,214,0.3);
    color: #fff;
    font-size: 14px;
}

.aside2_box1 td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(201,178,214,0.2);
    width:25%;
}

.aside2_box1 td:last-child {
    border-left: solid 1px rgba(201,178,214,0.3);
}

.font01_top { color: #ffffff; font-weight: 500; }
.font01_td { color: #ffffff; font-weight: bold; }
.font01 { color: #ffd700; font-weight: bold; }
.font05 { color: #ff6b6b; font-weight: bold; }
.font25 { color: #4ecdc4; font-weight: bold; }

.aside2_box1_wrap {
    /* margin-bottom: 10px; */
    background: #4e433a;
    border-radius: 10px;    
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.aside2_box2_wrap {
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.aside2_box2 table {
    width: 100%;
}

.aside2_box2 td {    
    text-align: center;
}

.aside2_box2 img {
    width: 100%;    
    transition: transform 0.2s ease;
}

.aside2_box2 img:hover {
    transform: scale(1.02);
}

.aside_btn1, .aside_btn2 {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(#945d2a 0%, #4f1f01 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    
    width: 100%;
    height:58px;
    line-height: 32px;
    text-align: center;
    transition: all 0.3s ease;    
}

.aside_btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.aside_btn2 {
    background: linear-gradient(#606060 0%, #282828 100%);
    
}

.aside_btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 오버레이 */
.aside-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

.aside-overlay.active {
    display: block;
}

/* 모바일 헤더 (기본 숨김) */
.mobile-header {
    display: none;
}

/* 데스크톱 레이아웃 */
#wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.contents_left {
    width: 300px;
    background: var(--bg-left-url) no-repeat center center;
    background-size: cover;
    padding: 0;
    position: relative;
    margin: 0;
}

.contents_right {
    flex: 1;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* 슬라이더 컨테이너 */
.slider-container {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 510px;
    box-shadow: none;
}

.slider-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 50%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-arrows:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}





/* 메인 게임 버튼 */
.main_game {
    padding: 15px 20px;
    margin: 0;
}

.main_game ul {
    display: flex;
    gap: 10px;
    list-style: none;
    justify-content: center;
    margin: 0 auto;
    max-width: 960px;
}

.main_game li {
    flex: 1;
    max-width: 475px;
    max-height: 280px;
    height: 280px;
}

.main_game img {
    max-width: 475px;
    max-height: 280px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.main_game img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* 메인 보드 (데스크톱) */
.main_board {
    display: flex;
    gap: 10px;
    margin: 15px 20px;
    padding: 0;
}

.main_board ul {
    display: contents;
}

.main_board li {
    flex: 1;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
}

.board_title {
    padding: 8px 12px;
    background: transparent;
    text-align: left;
    border-bottom: none;
    color: #ffcc00;
    font-size: 14px;
    font-weight: bold;
}

.board_title img {
    display: block;
    height: 20px;
    width: auto;
}

.board {
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.5);
}

.board table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.board tr {
    border-bottom: none;
    transition: none;
}

.board tr:hover {
    background-color: #222;
}

/* 스크롤바 스타일 */
.board::-webkit-scrollbar {
    width: 4px;
}

.board::-webkit-scrollbar-track {
    background: #333;
}

.board::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

.board::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* tableTicker_wrap2 ID 높이 및 폰트 설정 */
#tableTicker_wrap2 {
    height: 240px;
    font-size: 16px !important;
}



/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-animation="fadeInLeft"] {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* ========== 인라인 스타일 제거용 클래스 ========== */

.popup-hidden {
    display: none;
    overflow-y: scroll;
}

.border-left-light {
    border-left: solid 1px rgba(201,178,214,0.1);
}

.border-top-light {
    border-top: solid 1px rgba(201,178,214,0.1);
}

.table-cell-padding {
    padding: 3px;
}

.logo-full-width {
    width: 100%;
}
