<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sportsbook</title>

<!-- 🚀 Percepat koneksi ke CDN Nexus -->
<link rel="preconnect" href="https://nexustrike.com">
<link rel="dns-prefetch" href="https://nexustrike.com">

<style>
*{margin:0;padding:0;box-sizing:border-box}

/* FULLSCREEN */
html,body{
    width:100%;
    height:100%;
    overflow:hidden;
    background:#0b0f1a;
    font-family:Arial, Helvetica, sans-serif;
}

/* container sportsbook */
#sportsbook-container{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
}

/* ===== LOADING SCREEN ===== */
#loading{
    position:fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:#0b0f1a;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:white;
    z-index:9999;
}

.loader{
    width:55px;
    height:55px;
    border:4px solid #222;
    border-top:4px solid #00c853;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin-bottom:15px;
}

@keyframes spin{
    100%{transform:rotate(360deg)}
}

.loading-text{
    font-size:16px;
    opacity:.9;
}
</style>
</head>

<body>

<!-- 🔄 Loader -->
<div id="loading">
    <div class="loader"></div>
    <div class="loading-text">Memuat Sportsbook...</div>
</div>

<div id="sportsbook-container"></div>

<script src="https://nexustrike.com/js/sportsbook.js"></script>

<script>
(function(){

    // ambil username jika login (guest kalau kosong)
    let userToken = "<?php echo e(auth()->check() ? auth()->user()->username : ''); ?>";

    sportsbookApp.init({
        region : "asia",
        cid    : "0363401d7bfd28729e48af4b36e10bba",
        locale : "id",
        token  : userToken
    });

    // ⏳ sembunyikan loader setelah app load
    setTimeout(function(){
        document.getElementById("loading").style.display = "none";
    }, 3500);

})();
</script>

</body>
</html>
<?php /**PATH /home/ybjqutnd/jp.royalkingz.top/resources/views/games/sportsbook/index.blade.php ENDPATH**/ ?>