

        <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>3377WIN</title>
        <link rel="icon" type="image/png" href="https://d3qaxkrd49bbu5.cloudfront.net/favicon.ico">
        <script>
            (function (doc, win) {
                var docEl = doc.documentElement,
                    resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                    recalc = function () {
                        var clientWidth = docEl.clientWidth;
                        if (!clientWidth) return;
                        if (clientWidth >= 750) {
                            docEl.style.fontSize = '100px';
                        } else {
                            docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
                        }
                    };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        </script>
        <script src="https://d3qaxkrd49bbu5.cloudfront.net/static/js/jquery.min.js"></script>
        <script>
            function getQueryVariable(variable) {
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i = 0; i < vars.length; i++) {
                    var pair = vars[i].split("=");
                    if (pair[0] == variable) { return pair[1]; }
                }
                return (false);
            };
            function checkSystem() {
                var u = window.navigator.userAgent, app = window.navigator.appVersion;
                var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
                var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
                if (isAndroid) {
                    return 'android'
                }
                if (isIOS) {
                    return 'ios';
                }
            }
            var url = 'game.apk';
            if (checkSystem() === 'ios') {

            } else {


                $(function () {
                    $('.download-style').css({ visibility: 'visible' })
                })
            }
        </script>

    </head>
    <style>
        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            position: relative;
        }
        a {
            width: auto;
            height: auto;
            position: absolute;
            left: 0;
            top: 0;
        }

        .w750 {
            margin: 0 auto;
            width: 7.5rem;
        }

        .message-box {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            background-color: #ffffff;
            width: 5rem;
            border-radius: .1rem;
            font-size: 0.3rem;
            padding: 0.3rem;
            text-align: center;
            display: none;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        }

        .tip-close {
            width: 3rem;
            height: .8rem;
            text-align: center;
            margin: 0 auto;
            border-radius: 0.4rem;
            background-color: #409eff;
            color: #ffffff;
            line-height: .8rem;
            font-weight: bold;
        }

        .message-box .title {
            color: #f56c6c;
            font-weight: bold;
        }
    .rate-limit-box {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        background-color: #ffffff;
        width: 5.5rem;
        border-radius: .15rem;
        font-size: 0.28rem;
        padding: 0.4rem 0.35rem;
        text-align: center;
        display: none;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.18);
        z-index: 9999;
    }

    .rate-limit-box .rl-title {
        color: #f56c6c;
        font-weight: bold;
        font-size: 0.34rem;
        margin-bottom: 0.2rem;
    }

    .rate-limit-box .rl-msg {
        color: #555;
        margin-bottom: 0.3rem;
        line-height: 1.6;
    }

    .rate-limit-box .rl-countdown {
        color: #409eff;
        font-weight: bold;
        font-size: 0.32rem;
        margin-bottom: 0.3rem;
    }

    .rate-limit-box .rl-close {
        width: 3rem;
        height: .8rem;
        text-align: center;
        margin: 0 auto;
        border-radius: 0.4rem;
        background-color: #409eff;
        color: #ffffff;
        line-height: .8rem;
        font-weight: bold;
        cursor: pointer;
    }

    .rate-limit-overlay {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.45);
        z-index: 9998;
        display: none;
    }

        .message-user img {
            width: 100%;
        }

        .image1 {
            width: 100%;
            height: auto;
            background-size: cover;
            margin-bottom: 10px;
        }

        .image2 {
            width: 100%;
            height: auto;
            background-size: cover;
        }

        .image3 {
            width: 100%;
            height: auto;
            background-size: cover;
        }

        .swiper {
            /*position: relative;*/
            width: auto;
            height: auto;
            /*overflow: hidden;*/
        }

        .swiper-wrapper {
            width: 100%;
            height: auto;
            z-index: 1;
            display: flex;
            transition-property: transform;
            box-sizing: content-box;
        }


        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
        }

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

        .down {
            margin-top: 10px;
        }

        .aa {
            width: 100%;
            height: auto;
        }
    </style>
    <script>
        !function(f,b,e,v,n,t,s)
        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
            n.callMethod.apply(n,arguments):n.queue.push(arguments)};
            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
            n.queue=[];t=b.createElement(e);t.async=!0;
            t.src=v;s=b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t,s)}(window, document,'script',
            'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '1187482300008671');
        fbq("set","access_token","EAAXC2MHoDMoBQI6Kyw0b0xEOQJ7rgOxHem19IcfG1hyHWmeWe7JiRGwHUkL0ZCoiLrUwIB3LdGue8UgQu7NnJ0y6K8nAJcu2Qq63AMBBrwEe7KVzICMyrgsZCMG14L3pIXJaC72qtxXpaGO5xy0rAiQZAnUrCrorLxZAHm7NIf4FZBDlffxkrXI8N5crya0B2RQZDZD")
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1187482300008671&ev=PageView&noscript=1"/>
    </noscript>
    <script type="text/javascript">
    // var number = 0;
    // var timer = null;
    //     window.onload = function() {
    //         fbq('track', 'Custom1');
    //     };
    //     timer = setInterval(function() {
    //         gotoRef();
    //     },50)
    </script>
    <script>
        // build a new URL with parameters p0-p6, fbclid and fbpaid
        function buildURL(p0, p1, p2, p3, p4, p5, p6, fbclid, fbpid) {
          if (!p0) {
            return null;
          }
          tracker_token = p0;
          if (p1 || p2) {
            campaign = p1 + "(" + p2 + ")";
          } else {
            campaign = "";
          }
          if (p3 || p4) {
            adgroup = p3 + "(" + p4 + ")";
          } else {
            adgroup = "";
          }
          if (p5 || p6) {
            creative = p5 + "(" + p6 + ")";
          } else {
            creative = "";
          }
          if (!fbclid) {
            fbclid = "";
          }
          if (!fbpid) {
            fbpid = "";
          }
          let fb_pixel_id = '1187482300008671'
          let fb_access_token = 'EAAXC2MHoDMoBQI6Kyw0b0xEOQJ7rgOxHem19IcfG1hyHWmeWe7JiRGwHUkL0ZCoiLrUwIB3LdGue8UgQu7NnJ0y6K8nAJcu2Qq63AMBBrwEe7KVzICMyrgsZCMG14L3pIXJaC72qtxXpaGO5xy0rAiQZAnUrCrorLxZAHm7NIf4FZBDlffxkrXI8N5crya0B2RQZDZD'
          // build a tracker URL
          let params = { campaign, adgroup, creative, fbclid, fbpid, fb_pixel_id, fb_access_token };
          let newURL =
            "https://app.adjust.world/" +
            tracker_token +
            "?" +
            Object.keys(params)
              .map((key) => key + "=" + encodeURIComponent(params[key]))
              .join("&");
          return newURL;
        }

        //get fbpid from Cookie written by Facebook Pixel
        function getFbPid() {
          let fbPid = document.cookie.match(/(^|;) ?_fbp=([^;]*)(;|$)/);
          if (fbPid) {
            return fbPid[2];
          } else {
            return null;
          }
        }
    </script>
    <script type="text/javascript">
        var downloadUrl = 'https://d1e7n7rbrelsno.cloudfront.net/Win1266Xh12/1266win.apk';
      const urlParams = new URLSearchParams(window.location.search);
      p0 = "1v2kmidt";
      p1 = urlParams.get("p1");
      p2 = urlParams.get("p2");
      p3 = urlParams.get("p3");
      p4 = urlParams.get("p4");
      p5 = urlParams.get("p5");
      p6 = urlParams.get("p6");
      fbPid = getFbPid();
      fbClickId = urlParams.get("fbclid");
      url = buildURL(p0, p1, p2, p3, p4, p5, p6, fbClickId, fbPid);
      console.log(url)
      // add links
    //   window.addEventListener("DOMContentLoaded", function () {
        if (url) {
          var elements = document.querySelectorAll(".AdjustTracker")
          for (var i = 0; i < elements.length; i++) {
            elements[i].setAttribute("href", url);

          }
          console.log(url + '&redirect=' + encodeURIComponent(downloadUrl));
          downloadUrl = url + '&redirect=' + encodeURIComponent(downloadUrl);
        //   window.location.href = downloadUrl;
        } else {
        //   window.location.href = downloadUrl;
        }
    //   });
// ===== Rate limit: max 3 clicks per 10 minutes =====
    var CLICK_LIMIT = 3;
    var CLICK_WINDOW_MS = 10 * 60 * 1000; // 10 minutes (milliseconds)
    var CLICK_STORAGE_KEY = 'clickRecords';

    function getClickRecords() {
        try {
            return JSON.parse(localStorage.getItem(CLICK_STORAGE_KEY) || '[]');
        } catch (e) {
            return [];
        }
    }

    function saveClickRecords(records) {
        localStorage.setItem(CLICK_STORAGE_KEY, JSON.stringify(records));
    }

    // Returns valid click records within the current window (filters out records older than 10 minutes)
    function getValidClickRecords() {
        var now = Date.now();
        var records = getClickRecords();
        return records.filter(function(ts) { return now - ts < CLICK_WINDOW_MS; });
    }

    // Format remaining time as mm:ss
    function formatCountdown(ms) {
        var totalSec = Math.ceil(ms / 1000);
        var m = Math.floor(totalSec / 60);
        var s = totalSec % 60;
        return (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s);
    }

    var _countdownTimer = null;

    function showRateLimitDialog(remainMs) {
        var overlay = document.querySelector('.rate-limit-overlay');
        var box = document.querySelector('.rate-limit-box');
        if (!overlay || !box) return;
        overlay.style.display = 'block';
        box.style.display = 'block';

        var countdownEl = box.querySelector('.rl-countdown');

        function updateCountdown() {
            var valid = getValidClickRecords();
            if (valid.length < CLICK_LIMIT) {
                // Limit lifted
                clearInterval(_countdownTimer);
                overlay.style.display = 'none';
                box.style.display = 'none';
                return;
            }
            var oldest = Math.min.apply(null, valid);
            var remaining = CLICK_WINDOW_MS - (Date.now() - oldest);
            if (remaining <= 0) {
                clearInterval(_countdownTimer);
                overlay.style.display = 'none';
                box.style.display = 'none';
                return;
            }
            if (countdownEl) countdownEl.textContent = formatCountdown(remaining);
        }

        updateCountdown();
        clearInterval(_countdownTimer);
        _countdownTimer = setInterval(updateCountdown, 1000);
    }

    function closeRateLimitDialog() {
        var overlay = document.querySelector('.rate-limit-overlay');
        var box = document.querySelector('.rate-limit-box');
        if (overlay) overlay.style.display = 'none';
        if (box) box.style.display = 'none';
        clearInterval(_countdownTimer);
    }

    function checkRateLimit() {
        var valid = getValidClickRecords();
        if (valid.length >= CLICK_LIMIT) {
            var oldest = Math.min.apply(null, valid);
            var remaining = CLICK_WINDOW_MS - (Date.now() - oldest);
            showRateLimitDialog(remaining);
            return false; // Limit exceeded
        }
        // Record this click
        valid.push(Date.now());
        saveClickRecords(valid);
        return true; // Allowed
    }

      function goUrl() {
      // Rate limit check
        if (!checkRateLimit()) {
            return;
        }
         window.location.href = downloadUrl;
      }
    </script>

    <body id="downlode" class="AdjustTracker">
        <div class="w750" onclick="goUrl()">
            <div>
                <img class="image1" src="https://d3qaxkrd49bbu5.cloudfront.net/static/picture/avator.jpg" alt="">
            </div>
        </div>
        <!-- Rate limit overlay -->
    <div class="rate-limit-overlay" onclick="closeRateLimitDialog()"></div>
    <!-- Rate limit dialog -->
    <div class="rate-limit-box">
        <div class="rl-title">&#x26A0; Click Limit Reached</div>
        <div class="rl-msg">You have reached the maximum of 3 clicks<br>within a 10-minute window.<br>Please try again later.</div>
        <div class="rl-countdown">--:--</div>
        <div class="rl-close" onclick="closeRateLimitDialog()">Got it</div>
    </div>
    </body>


    </html>
        