<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>RTP Game Live</title>
  <meta name="robots" content="noindex,nofollow">
</head>

<body style="margin:0; font-family:Arial, sans-serif; background:#07070b; color:white;">

  <main style="max-width:1100px; margin:auto; padding:12px;">

    <!-- LOGO -->
    <div style="text-align:center; padding:15px 0;">
      <img src="https://adsdewigg.com/wp-content/uploads/2024/07/DEWIGROUP-LOGO-2-3.gif"
           alt="Logo"
           style="max-width:280px; width:80%; height:auto;">
    </div>

    <!-- RUNNING TEXT -->
    <div style="background:linear-gradient(90deg,#ffcc00,#ff7b00); color:#000; font-weight:bold; padding:8px; border-radius:10px 10px 0 0;">
      <marquee scrollamount="4">SELAMAT DATANG DI RTP GAME LIVE UPDATE HARI INI</marquee>
    </div>

    <!-- BANNER -->
    <div style="background:#111; padding:6px; border-radius:0 0 12px 12px; box-shadow:0 0 15px rgba(255,204,0,.3);">
      <img src="https://adsdewigg.com/wp-content/uploads/2024/07/DEWI11-BANNER-RTP-1024x229.jpg"
           alt="Banner RTP"
           style="width:100%; border-radius:10px; display:block;">
    </div>

    <!-- BUTTON LOGIN DAFTAR -->
    <div style="display:flex; gap:8px; margin-top:10px;">
      <button onclick="location.href='#login'"
              style="width:50%; padding:13px; border:0; border-radius:10px; background:linear-gradient(#ffe26b,#d89800); font-weight:bold; cursor:pointer;">
        LOGIN
      </button>

      <button onclick="location.href='#daftar'"
              style="width:50%; padding:13px; border:0; border-radius:10px; background:linear-gradient(#00ffae,#008c62); color:white; font-weight:bold; cursor:pointer;">
        DAFTAR
      </button>
    </div>

    <!-- PROVIDER -->
    <div id="providerBox" style="display:flex; gap:8px; overflow-x:auto; margin-top:14px; padding-bottom:8px;"></div>

    <!-- UPDATE -->
    <div style="background:#111827; border:1px solid #2d3748; margin-top:12px; padding:12px; border-radius:12px;">
      <div style="display:flex; justify-content:space-between; align-items:center; gap:10px;">
        <h3 style="margin:0; font-size:16px;">⏱ Update RTP: Senin, 04 Mei 2026</h3>
        <button onclick="acakRTP()" style="padding:8px 12px; border:0; border-radius:8px; background:#ffcc00; font-weight:bold; cursor:pointer;">
          Refresh RTP
        </button>
      </div>
    </div>

    <!-- TITLE -->
    <div style="text-align:center; margin-top:18px;">
      <h2 style="margin:0; color:#ffcc00;">PRAGMATIC PLAY SLOT LIVE RTP</h2>
      <p style="margin:6px 0 0; color:#ddd;">⭐ ⭐ ⭐ ⭐ ⭐ Rating Suka 5.9</p>
    </div>

    <!-- GAME LIST -->
    <div id="gameList" style="display:flex; flex-wrap:wrap; gap:12px; margin-top:15px;"></div>

  </main>

<script>
  const provider = [
    { nama: "Pragmatic Play", icon: "https://dewamudartp.com/img/provider/pp.png", kode: "pp", folder: "Pragmatic" },
    { nama: "PG Soft", icon: "https://dewamudartp.com/img/provider/pg.png", kode: "pg", folder: "PGSoft" },
    { nama: "Joker Gaming", icon: "https://dewamudartp.com/img/provider/jg.png", kode: "jg", folder: "Joker" },
    { nama: "Habanero", icon: "https://dewamudartp.com/img/provider/hb.png", kode: "hb", folder: "Habanero" },
    { nama: "Spade Gaming", icon: "https://dewamudartp.com/img/provider/sg.png", kode: "sg", folder: "Spadegaming" },
    { nama: "Top Trend", icon: "https://dewamudartp.com/img/provider/tg.png", kode: "tg", folder: "TopTrend" },
    { nama: "Micro Gaming", icon: "https://dewamudartp.com/img/provider/mg.png", kode: "mg", folder: "MicroGaming" },
    { nama: "GMW", icon: "https://dewamudartp.com/img/provider/gmw.png", kode: "gmw", folder: "GMW" },
    { nama: "AIS Gaming", icon: "https://dewamudartp.com/img/provider/ais.png", kode: "ais", folder: "AIS" },
    { nama: "Apolo Gaming", icon: "https://dewamudartp.com/img/provider/apolo.png", kode: "apolo", folder: "Apolo" },
    { nama: "B Gaming", icon: "https://dewamudartp.com/img/provider/bgaming.png", kode: "bgaming", folder: "BGaming" },
    { nama: "Hacksaw", icon: "https://dewamudartp.com/img/provider/hacksaw.png", kode: "hacksaw", folder: "Hacksaw" },
    { nama: "AdvantPlay", icon: "https://dewamudartp.com/img/provider/advant.png", kode: "advant", folder: "AdvantPlay" },
    { nama: "Relax Gaming", icon: "https://dewamudartp.com/img/provider/relax.png", kode: "relax", folder: "Relax" },
    { nama: "YGG", icon: "https://dewamudartp.com/img/provider/ygg.png", kode: "ygg", folder: "YGG" },
    { nama: "Playson", icon: "https://dewamudartp.com/img/provider/playson.png", kode: "playson", folder: "Playson" },
    { nama: "Fast Spin", icon: "https://dewamudartp.com/img/provider/fastspin.png", kode: "fastspin", folder: "FastSpin" },
    { nama: "Nolimit", icon: "https://dewamudartp.com/img/provider/nolimit.png", kode: "nolimit", folder: "Nolimit" },
    { nama: "EA Gaming", icon: "https://dewamudartp.com/img/provider/eagaming.png", kode: "eagaming", folder: "EAGaming" },
    { nama: "Jili Gaming", icon: "https://dewamudartp.com/img/provider/jili.png", kode: "jili", folder: "Jili" },
    { nama: "568Win", icon: "https://dewamudartp.com/img/provider/568win.png", kode: "568win", folder: "568Win" },
    { nama: "JDB Gaming", icon: "https://dewamudartp.com/img/provider/jdb.png", kode: "jdb", folder: "JDB" }
  ];

  const gamesByProvider = {
    pp: [
      "Gates of Olympus", "Sweet Bonanza", "Starlight Princess", "Sugar Rush",
      "Wild West Gold", "Aztec Gems", "Bonanza Gold", "Madame Destiny",
      "Pyramid Bonanza", "Power of Thor", "Lucky Lightning", "Zeus vs Hades"
    ],
    pg: [
      "Mahjong Ways", "Mahjong Ways 2", "Mahjong Ways 3", "Lucky Neko",
      "Treasures of Aztec", "Wild Bandito", "Caishen Wins", "Leprechaun Riches",
      "Queen of Bounty", "Fortune Tiger", "Fortune Rabbit", "Dragon Hatch"
    ],
    jg: [
      "Roma", "Hercules", "Burning Pearl", "Hot Fruit", "Golden Dragon", "Joker Madness",
      "Lucky God", "Dragon Power Flame", "Neptune Treasure", "Book of Ra",
      "Panther Moon", "Safari Heat"
    ],
    hb: [
      "Koi Gate", "Fa Cai Shen", "Hot Hot Fruit", "Mystic Fortune", "5 Lucky Lions",
      "Egyptian Dreams", "Bird of Thunder", "Colossal Gems", "Wealth Inn",
      "Disco Beats", "Lucky Fortune Cat", "Tuk Tuk Thailand"
    ],
    sg: [
      "Fiery Sevens", "Royal Katt", "Legacy of Kong", "Dragon Empire", "Heroes",
      "Brothers Kingdom", "Gold Panther", "Fishing War", "Magic Kitty",
      "Zombie Party", "Candy Pop", "Lucky Cai Shen"
    ],
    tg: [
      "Top Trend Game 01", "Top Trend Game 02", "Top Trend Game 03", "Top Trend Game 04",
      "Top Trend Game 05", "Top Trend Game 06", "Top Trend Game 07", "Top Trend Game 08",
      "Top Trend Game 09", "Top Trend Game 10", "Top Trend Game 11", "Top Trend Game 12"
    ],
    mg: [
      "Mega Moolah", "Thunderstruck II", "Immortal Romance", "Lucky Twins",
      "Break Da Bank", "Dragonz", "Agent Jane Blonde", "Basketball Star",
      "Adventure Palace", "Gold Factory", "Wild Scarabs", "Fortunium"
    ],
    gmw: [
      "GMW Game 01", "GMW Game 02", "GMW Game 03", "GMW Game 04",
      "GMW Game 05", "GMW Game 06", "GMW Game 07", "GMW Game 08",
      "GMW Game 09", "GMW Game 10", "GMW Game 11", "GMW Game 12"
    ],
    ais: [
      "AIS Game 01", "AIS Game 02", "AIS Game 03", "AIS Game 04",
      "AIS Game 05", "AIS Game 06", "AIS Game 07", "AIS Game 08",
      "AIS Game 09", "AIS Game 10", "AIS Game 11", "AIS Game 12"
    ],
    apolo: [
      "Apolo Game 01", "Apolo Game 02", "Apolo Game 03", "Apolo Game 04",
      "Apolo Game 05", "Apolo Game 06", "Apolo Game 07", "Apolo Game 08",
      "Apolo Game 09", "Apolo Game 10", "Apolo Game 11", "Apolo Game 12"
    ],
    bgaming: [
      "Bonanza Billion", "Elvis Frog", "Aztec Magic", "Fruit Million",
      "Lucky Lady Moon", "Book of Cats", "Wild Cash", "Gold Rush",
      "Deep Sea", "Royal High Road", "Dragon Pearls", "Candy Monsta"
    ],
    hacksaw: [
      "Wanted Dead or a Wild", "Hand of Anubis", "Chaos Crew", "RIP City",
      "Stack'em", "Cubes 2", "Itero", "King Carrot",
      "Mines", "Dork Unit", "Joker Bomb", "Buffalo Stack'n'Sync"
    ],
    advant: [
      "AdvantPlay Game 01", "AdvantPlay Game 02", "AdvantPlay Game 03", "AdvantPlay Game 04",
      "AdvantPlay Game 05", "AdvantPlay Game 06", "AdvantPlay Game 07", "AdvantPlay Game 08",
      "AdvantPlay Game 09", "AdvantPlay Game 10", "AdvantPlay Game 11", "AdvantPlay Game 12"
    ],
    relax: [
      "Money Train", "Money Train 2", "Money Train 3", "Temple Tumble",
      "Snake Arena", "Wild Chapo", "Volatile Vikings", "Iron Bank",
      "Dead Riders Trail", "Book of 99", "Caveman Bob", "Emeralds Infinity"
    ],
    ygg: [
      "Valley of the Gods", "Vikings Go Berzerk", "Holmes and the Stolen Stones",
      "Golden Fish Tank", "Aldo's Journey", "Nitro Circus", "Penguin City",
      "Hades Gigablox", "Fruitoids", "Cazombie", "Lucky Neko Gigablox", "Hyperburst"
    ],
    playson: [
      "Solar Queen", "Buffalo Power", "Legend of Cleopatra", "Book of Gold",
      "Pearl Beauty", "Royal Coins", "Wolf Power", "Fire Coins",
      "Divine Dragon", "Pirate Sharky", "Coin Strike", "Luxor Gold"
    ],
    fastspin: [
      "Fast Spin Game 01", "Fast Spin Game 02", "Fast Spin Game 03", "Fast Spin Game 04",
      "Fast Spin Game 05", "Fast Spin Game 06", "Fast Spin Game 07", "Fast Spin Game 08",
      "Fast Spin Game 09", "Fast Spin Game 10", "Fast Spin Game 11", "Fast Spin Game 12"
    ],
    nolimit: [
      "Mental", "San Quentin", "Deadwood", "Tombstone RIP",
      "Punk Rocker", "Fire in the Hole", "The Border", "East Coast vs West Coast",
      "Road Rage", "Karen Maneater", "Dragon Tribe", "Bonus Bunnies"
    ],
    eagaming: [
      "EA Gaming Game 01", "EA Gaming Game 02", "EA Gaming Game 03", "EA Gaming Game 04",
      "EA Gaming Game 05", "EA Gaming Game 06", "EA Gaming Game 07", "EA Gaming Game 08",
      "EA Gaming Game 09", "EA Gaming Game 10", "EA Gaming Game 11", "EA Gaming Game 12"
    ],
    jili: [
      "Crazy Hunter", "Boxing King", "Super Ace", "Golden Empire",
      "Charge Buffalo", "Money Coming", "Roma X", "Magic Lamp",
      "Hot Chilli", "Fa Fa Fa", "Lucky Goldbricks", "Fortune Gems"
    ],
    "568win": [
      "568Win Game 01", "568Win Game 02", "568Win Game 03", "568Win Game 04",
      "568Win Game 05", "568Win Game 06", "568Win Game 07", "568Win Game 08",
      "568Win Game 09", "568Win Game 10", "568Win Game 11", "568Win Game 12"
    ],
    jdb: [
      "Lucky Dragons", "Caishen Coming", "Dragon Soar", "Prosperity Tiger",
      "Lucky Diamond", "Dragon Treasure", "Maya Gold Crazy", "Open Sesame",
      "Birds Party", "Fortune Neko", "Double Wilds", "Super Niubi"
    ]
  };

  let providerAktif = "pp";

  function angkaRTP() {
    return Math.floor(Math.random() * (98 - 75 + 1)) + 75;
  }

  function jamGacor() {
    const mulai = Math.floor(Math.random() * 22);
    const akhir = mulai + 1;
    return String(mulai).padStart(2, "0") + ":00 - " + String(akhir).padStart(2, "0") + ":00";
  }

  function warnaBar(rtp) {
    if (rtp >= 90) return "linear-gradient(90deg,#00ff88,#00b35f)";
    if (rtp >= 80) return "linear-gradient(90deg,#ffd000,#ff9500)";
    return "linear-gradient(90deg,#ff4b4b,#b80000)";
  }

  function labelRTP(rtp) {
    if (rtp >= 90) return "HOT";
    if (rtp >= 80) return "NORMAL";
    return "RENDAH";
  }

  function polaSlot() {
    const pola = [
      "Auto 30x ⚡ Turbo ON",
      "Manual 10x ✨ Turbo OFF",
      "Auto 50x 🔥 Bet Naik",
      "Manual 20x 💎 Bet Stabil",
      "Spin Cepat 25x 🚀",
      "Buy Spin Sesuai Modal"
    ];

    let hasil = [];
    for (let i = 0; i < 3; i++) {
      hasil.push(pola[Math.floor(Math.random() * pola.length)]);
    }
    return hasil;
  }

  function formatNomor(angka) {
    return String(angka).padStart(3, "0");
  }

  function ambilProvider(kode) {
    return provider.find(p => p.kode === kode) || provider[0];
  }

  function buatURLGambarGame(dataProvider, index) {
    return `https://dewamudartp.com/img/${dataProvider.folder}/${dataProvider.kode}-${formatNomor(index + 1)}.png`;
  }

  function tampilProvider() {
    const box = document.getElementById("providerBox");
    box.innerHTML = "";

    provider.forEach(p => {
      const aktif = p.kode === providerAktif;

      box.innerHTML += `
        <div onclick="filterProvider('${p.kode}')"
             style="
              min-width:135px;
              background:${aktif ? 'linear-gradient(180deg,#2b2100,#111827)' : '#111827'};
              border:${aktif ? '2px solid #ffcc00' : '1px solid #2d3748'};
              box-shadow:${aktif ? '0 0 14px rgba(255,204,0,.45)' : 'none'};
              border-radius:12px;
              padding:10px;
              text-align:center;
              cursor:pointer;
             ">
          <img src="${p.icon}" alt="${p.nama}" style="height:38px; max-width:90px;">
          <p style="margin:6px 0 0; font-size:12px; color:${aktif ? '#ffcc00' : '#fff'};">${p.nama}</p>
        </div>
      `;
    });
  }

  function tampilGame(kode = providerAktif) {
    const list = document.getElementById("gameList");
    const dataProvider = ambilProvider(kode);
    const daftarNamaGame = gamesByProvider[kode] || [];
    const title = document.querySelector("h2");

    providerAktif = kode;
    list.innerHTML = "";

    if (title) {
      title.innerHTML = `${dataProvider.nama.toUpperCase()} SLOT LIVE RTP`;
    }

    daftarNamaGame.forEach((namaGame, index) => {
      const rtp = angkaRTP();
      const pola = polaSlot();
      const status = labelRTP(rtp);
      const imgGame = buatURLGambarGame(dataProvider, index);

      list.innerHTML += `
        <div style="
          width:calc(33.333% - 8px);
          min-width:280px;
          flex-grow:1;
          background:#111827;
          border:1px solid #2d3748;
          border-radius:14px;
          overflow:hidden;
          box-shadow:0 0 14px rgba(255,204,0,.15);
          position:relative;
        ">

          <div style="
            position:absolute;
            top:8px;
            left:8px;
            background:${rtp >= 90 ? '#ff0000' : '#ffcc00'};
            color:${rtp >= 90 ? '#fff' : '#000'};
            padding:5px 9px;
            border-radius:20px;
            font-size:11px;
            font-weight:bold;
            z-index:2;
          ">
            ${status}
          </div>

          <div style="display:flex; gap:8px; padding:10px;">

            <div style="width:45%; position:relative;">
              <img src="${imgGame}"
                   onerror="this.onerror=null; this.src='${dataProvider.icon}';"
                   alt="${namaGame}"
                   style="width:100%; min-height:120px; object-fit:cover; border-radius:10px; display:block; background:#222;">

              <button onclick="location.href='#main'"
                      style="
                        position:absolute;
                        left:8px;
                        right:8px;
                        bottom:8px;
                        padding:8px;
                        border:0;
                        border-radius:8px;
                        background:linear-gradient(#ffe26b,#d89800);
                        font-size:12px;
                        font-weight:bold;
                        cursor:pointer;
                      ">
                Ayo Bermain
              </button>
            </div>

            <div style="width:55%; background:#0b1220; border-radius:10px; padding:10px; text-align:center;">
              <h4 style="margin:0 0 6px; color:#ffcc00; font-size:15px;">${namaGame}</h4>

              <div style="font-size:12px; color:#ddd; text-align:left; line-height:1.6;">
                <b>Pola Slot:</b><br>
                ✅ ${pola[0]}<br>
                ✅ ${pola[1]}<br>
                ✅ ${pola[2]}
              </div>

              <div style="margin-top:8px; font-size:13px; font-weight:bold; color:#00ffae;">
                Jam Gacor:<br>${jamGacor()}
              </div>

              <div style="margin-top:10px; background:#222; border-radius:20px; height:24px; overflow:hidden; position:relative;">
                <div style="width:${rtp}%; height:100%; background:${warnaBar(rtp)};"></div>
                <div style="position:absolute; left:0; right:0; top:3px; text-align:center; font-size:13px; font-weight:bold;">
                  RTP ${rtp}%
                </div>
              </div>

            </div>
          </div>
        </div>
      `;
    });
  }

  function filterProvider(kode) {
    providerAktif = kode;
    tampilProvider();
    tampilGame(kode);
  }

  function acakRTP() {
    tampilGame(providerAktif);
  }

  tampilProvider();
  tampilGame(providerAktif);
</script>

</body>
</html>