/* 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: #2A2D35; border-radius: 10px; }
.custom-scrollbar:hover::-webkit-scrollbar-thumb,
.custom-scroll:hover::-webkit-scrollbar-thumb { background-color: #3F4451; }

/* 공통 버튼 */
.btn-primary {
    background-color: #00FFFF; 
    color: #000000; 
    font-size: 14px; 
    font-weight: 800;
    letter-spacing: 0.05em; 
    padding: 0 1.5rem; 
    min-height: 40px; 
    border-radius: 0.75rem;
    white-space: nowrap; 
    transition: all 0.2s ease; 
    border: 1px solid transparent;
}
.btn-primary:hover { background-color: #00D1D1; box-shadow: 0 0 15px rgba(0, 255, 255, 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: 0.75rem; 
    transition: all 0.2s;
}
.btn-outline:hover { border-color: #00FFFF; color: #00FFFF; }


@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; }

/* 사이드바 애니메이션 */

#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 rgba(0,229,255,0.7); }

/* Pulse Animation */
.animate-pulse-cyan { animation: pulse-cyan 2s infinite; }
@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,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; /* 이미지를 오른쪽으로 배치 */
        width: 150% !important;
        left: -25% !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;
}