/* common */
html {
    /* 주소창을 포함한 전체 높이를 기준으로 스크롤 허용 */
    height: -webkit-fill-available; 
}

body {
    min-height: 100vh;
    /* iOS Safari에서 터치 스크롤 시 주소창 반응을 부드럽게 함 */
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll !important;
}

@media (max-width: 767px) {
    html, body {
        /* 모바일에서만 스크롤 탄력성 부여 */
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
}


/* 커스텀 스크롤바 */
.custom-scrollbar::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb { background-color: #4a391c; border-radius: 10px; }
.custom-scrollbar:hover::-webkit-scrollbar-thumb,
.custom-scroll:hover::-webkit-scrollbar-thumb { background-color: #8b6e3c; }

/* 가로 스크롤바 숨기기 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 공통 버튼 */
.btn-primary {
    background-color: #c2a46a; 
    background:linear-gradient(180deg, #c2a46a, #8b6e3c);
    color: #ffffff; 
    font-size: 14px; 
    font-weight: 800;
    letter-spacing: 0.05em; 
    padding: 0 1.5rem; 
    min-height: 40px; 
    border-radius: 1.75rem;
    white-space: nowrap; 
    transition: all 0.2s ease; 
    border: none;
}
.btn-primary:hover { background-color: #E7FF00; box-shadow: 0 0 15px rgba(231, 255, 0, 0.3); transform: translateY(-1px); }

.btn-outline {
    background-color: transparent; 
    border: 1px solid #3e4250; 
    color: #FFFFFF;
    font-size: 14px; 
    font-weight: 800; 
    letter-spacing: 0.05em; 
    padding: 0 1.5rem;
    min-height: 40px; 
    border-radius: 1.75rem; 
    transition: all 0.2s;
}
.btn-outline:hover { border-color: #c2a46a; color: #c2a46a; }


@media (max-width: 768px) {
    #btn-login, #btn-signup {
        height: 40px;
    }
}


.btn-panel {
    background-color: #2A2D35; color: #FFFFFF; font-size: 16px; font-weight: 800;
    letter-spacing: 0.05em; padding: 0 2.5rem; height: 60px; border-radius: 0.75rem;
    transition: all 0.2s;
}
.btn-panel:hover { background-color: #3F4451; }

/* 프로바이더 버튼 */
.provider-btn {
    background-color: #15181F; border: 1px solid #2A2D35; color: #6B7280; 
    border-radius: 0.5rem; padding: 0.75rem; text-align: center; transition: all 0.2s;
}
.provider-btn:hover { border-color: #4B5563; color: #FFFFFF; }
.provider-btn.active { background-color: #0A252E; border-color: #00FFFF; color: #00FFFF; }

/* 사이드바 */
#sidebar-nav a{
    background: linear-gradient(180deg, #22252a, #15171c 70%, #050609);
    color: var(--font-primary);
    box-shadow: 0 2px 6px #00000059, inset 0 1px #fff3;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    height: 70px;
    justify-content: flex-start;
    max-height: 80px;
    padding: .75rem 1rem;
    position: relative;
    text-decoration: none;
    transition: all .4s;
    width: 100%;
    overflow: hidden;
}

#sidebar-nav a:hover:before, #sidebar-nav a.active:before {
    background: linear-gradient(180deg, #ffffff80, #ffffffb3, #ffffff80);
    box-shadow: 0 0 6px #ffffff4d;
    border-radius: 0 20px 20px 0;
    content: "";
    height: 50%;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    z-index: 3;
}


/* 사이드바 애니메이션 */
#app-sidebar.mobile-open {
    display: flex !important; position: fixed; height: 100vh;
    left: 0; top: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.9);
}
#app-sidebar.mobile-open {
    transform: translateX(0);
}

/* 메뉴가 열렸을 때 적용될 스타일 */
body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    /* iOS에서 스크롤을 더 강력하게 막기 위해 사용 */
    position: fixed;
    width: 100%;
}


/* 유틸리티 디자인 */
.mask-image-left {
    -webkit-mask-image: linear-gradient(to right, transparent, black);
    mask-image: linear-gradient(to right, transparent, black);
}
.card-inner-shadow { box-shadow: inset 0 0 20px rgba(255,255,255,0.02); }
.jackpot-glow { text-shadow: 0 0 15px #fc0a; }

/* Pulse Animation */
.animate-pulse-cyan { animation: pulse-cyan 2s infinite; }
@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(255,229,0,0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255,229,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,229,0,0); }
}

/* Keyvisual Animation */
.animate-float { animation: floating 6s ease-in-out infinite; }
@keyframes floating {
    0%, 100% {transform: translateX(0px);}
    50% {transform: translateX(-15px);}
}




@media (max-width: 1024px) {
    #slider > div > div[class*="bg-[url"]:nth-child(2) {
        background-repeat: no-repeat !important;
        background-position: right center !important;
        width: 150% !important;
        left: -15% !important;
        background-size: cover;
    }
}



@media (max-width: 768px) {
    /* 모바일에서 배경 이미지가 반복되지 않고 전체가 보이도록 설정 */
    #slider > div > div[class*="bg-[url"] {
        background-repeat: no-repeat !important;
        background-position: right center !important; /* 이미지를 오른쪽으로 배치 */
    }
    #slider > div > div[class*="bg-[url"]:nth-child(2) {
        background-repeat: no-repeat !important;
        background-position: center !important;
        width: 120% !important;
        left: -10% !important;
        background-size: cover;
        opacity: 0.5;
    }
    /* 텍스트 가독성을 위해 배경 오버레이 살짝 추가 (선택사항) */
    #slider h1 {
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }
}

/* Ticker Animation (실시간 출금현황) */
.animate-vertical-ticker { animation: vertical-ticker 13.6s ease-in-out infinite; }
@keyframes vertical-ticker {
    0%, 22.05%   { transform: translateY(0); }         
    25%, 47.05%  { transform: translateY(-12.5%); }    
    50%, 72.05%  { transform: translateY(-25%); }      
    75%, 97.05%  { transform: translateY(-37.5%); }    
    100%         { transform: translateY(-50%); }      
}
#live-withdrawals-ticker:hover .animate-vertical-ticker { animation-play-state: paused; }

/* Footer Marquee Animation */
.animate-marquee { animation: marquee 20s linear infinite; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
#partner-logo-container:hover .animate-marquee { animation-play-state: paused; }
.bg-background-dark { background-color: #161A22 !important; }

#partner-logo-marquee img{
    max-width:100px;
    max-height: 20px;
}

/* 모바일에서만 하단 여백 추가 */
@media (max-width: 768px) {
    footer {
        padding-bottom: 90px !important; /* 하단 고정 메뉴 높이만큼 여백 확보 */
    }
}