const winners=[{name:'น***า',amount:'45,200',game:'บาคาร่า'},{name:'ส***ท',amount:'38,750',game:'สล็อต'},{name:'อ***น',amount:'62,150',game:'เสือมังกร'},{name:'ป***ิ',amount:'29,880',game:'รูเล็ต'},{name:'ม***ะ',amount:'51,200',game:'สล็อต'}];const withdrawals=[{name:'จ***า',amount:'15,500',time:'2 นาทีที่แล้ว'},{name:'ร***ี',amount:'8,750',time:'5 นาทีที่แล้ว'},{name:'ก***ร',amount:'22,100',time:'7 นาทีที่แล้ว'},{name:'ล***น',amount:'18,900',time:'12 นาทีที่แล้ว'},{name:'ว***ต',amount:'35,200',time:'15 นาทีที่แล้ว'}];function getRandomEmoji(){const emojis=['😀','😃','😄','😁','😊','🙂','😉','🤑','🥳','😎'];return emojis[Math.floor(Math.random()*emojis.length)]}function populateWinners(){const winnersList=document.getElementById('winnersList');if(!winnersList)return;winnersList.innerHTML='';winners.forEach((winner,index)=>{setTimeout(()=>{const winnerDiv=document.createElement('div');winnerDiv.className='winner-item';winnerDiv.innerHTML=`
${getRandomEmoji()}
${winner.name} ชนะ ${winner.amount} บาท จาก ${winner.game}
`;winnersList.appendChild(winnerDiv)},index*300)})}function populateWithdrawals(){const withdrawalsList=document.getElementById('withdrawalsList');if(!withdrawalsList)return;withdrawalsList.innerHTML='';withdrawals.forEach((withdrawal,index)=>{setTimeout(()=>{const withdrawalDiv=document.createElement('div');withdrawalDiv.className='winner-item';withdrawalDiv.style.background='linear-gradient(90deg,#2196F3,#03A9F4)';withdrawalDiv.innerHTML=`
💰
${withdrawal.name} ถอน ${withdrawal.amount} บาท
${withdrawal.time}
`;withdrawalsList.appendChild(withdrawalDiv)},index*400)})}function updateLiveStats(){const onlineCount=document.getElementById('onlineCount');const todayWinners=document.getElementById('todayWinners');if(onlineCount){const current=parseInt(onlineCount.textContent.replace(',',''));const change=Math.floor(Math.random()*20)-10;const newCount=Math.max(8000,Math.min(12000,current+change));onlineCount.textContent=newCount.toLocaleString()}if(todayWinners){const current=parseInt(todayWinners.textContent.replace(',',''));const change=Math.floor(Math.random()*5);const newCount=current+change;todayWinners.textContent=newCount.toLocaleString()}}function scrollToRegister(){alert('เปิดแบบฟอร์มสมัครสมาชิก! 🎉')}function openLiveChat(){alert('เปิดหน้าต่างแชทสด! 💬\nทีมงานพร้อมให้บริการ 24/7')}function playVideo(videoId){alert(`กำลังเล่นวิดีโอรีวิว ${videoId}! 🎥\nในระบบจริงจะเปิดวิดีโอรีวิวลูกค้า`)}function toggleFAQ(element){const answer=element.nextElementSibling;const toggle=element.querySelector('.faq-toggle');if(answer.style.display==='block'){answer.style.display='none';toggle.textContent='+';toggle.style.transform='rotate(0deg)'}else{answer.style.display='block';toggle.textContent='−';toggle.style.transform='rotate(180deg)'}}function refreshData(){winners.sort(()=>Math.random()-.5);withdrawals.sort(()=>Math.random()-.5);populateWinners();setTimeout(populateWithdrawals,2000);updateLiveStats()}document.addEventListener('DOMContentLoaded',function(){populateWinners();setTimeout(populateWithdrawals,2000);setInterval(refreshData,10000);setInterval(updateLiveStats,5000)})