/* =========================================================
   PUZZLE — LAPISAN "CERAH & INTERAKTIF" untuk website pemain
   Dimuat SETELAH player.css / tema brand, dipakai ketiga brand.
   Warna diambil dari palet tiap brand lewat html[data-brand].
   ========================================================= */
html[data-brand=ggbet303]{--p1:#D2691E;--p2:#D4A017;--p3:#ffd27a;--h1:#D2691E;--bgA:#3a2414;--bgB:#1f160f;--bgC:#3d2c12;--ink:#0D0D0D;--lh:40px;--lhm:34px;--lc:.343}
html[data-brand=ezykasino]{--p1:#e01b22;--p2:#e05003;--p3:#00c4e8;--h1:#5b8bbf;--bgA:#0d3a73;--bgB:#08224a;--bgC:#163257;--ink:#010e1e;--lh:40px;--lhm:34px;--lc:.485}
html[data-brand=piket88]{--p1:#c9970b;--p2:#fcc804;--p3:#ffe680;--h1:#c9970b;--bgA:#4a4d57;--bgB:#30333b;--bgC:#41444d;--ink:#242529;--lh:44px;--lhm:38px;--lc:.642}
html[data-brand]{--fx-ease:cubic-bezier(.2,.8,.2,1);--glass1:rgba(255,255,255,.13);--glass2:rgba(255,255,255,.05);--edge:rgba(255,255,255,.17)}

/* ---------- latar cerah + cahaya bergerak ---------- */
html[data-brand] body{background:var(--bgB)}
html[data-brand] .bg{background:
  radial-gradient(62vw 52vh at 6% -4%,color-mix(in srgb,var(--p1) 60%,transparent),transparent 66%),
  radial-gradient(52vw 46vh at 98% 10%,color-mix(in srgb,var(--p2) 48%,transparent),transparent 64%),
  radial-gradient(58vw 52vh at 82% 98%,color-mix(in srgb,var(--p3) 30%,transparent),transparent 66%),
  radial-gradient(50vw 40vh at 10% 92%,color-mix(in srgb,var(--p2) 22%,transparent),transparent 66%),
  linear-gradient(165deg,var(--bgA),var(--bgB) 55%,var(--bgC))}
html[data-brand] .bg::before{content:"";position:absolute;inset:-20% 0;opacity:.13;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='.7'%3E%3Cpath d='M10 3H5a2 2 0 0 0-2 2v5h2a2 2 0 1 1 0 4H3v5a2 2 0 0 0 2 2h5v-2a2 2 0 1 1 4 0v2h5a2 2 0 0 0 2-2v-5h-2a2 2 0 1 1 0-4h2V5a2 2 0 0 0-2-2h-5v2a2 2 0 1 1-4 0z'/%3E%3Cpath transform='translate(24 24) rotate(18 10 10)' d='M10 3H5a2 2 0 0 0-2 2v5h2a2 2 0 1 1 0 4H3v5a2 2 0 0 0 2 2h5v-2a2 2 0 1 1 4 0v2h5a2 2 0 0 0 2-2v-5h-2a2 2 0 1 1 0-4h2V5a2 2 0 0 0-2-2h-5v2a2 2 0 1 1-4 0z'/%3E%3C/svg%3E");
  animation:fxDrift 60s linear infinite;-webkit-mask-image:linear-gradient(180deg,#000,transparent 70%);mask-image:linear-gradient(180deg,#000,transparent 70%)}
@keyframes fxDrift{to{transform:translateY(-140px)}}
html[data-brand] .orb{display:none}   /* bulatan blur + blend mode = berat; cahaya sudah dari gradien .bg */
html[data-brand] .orb.o1{background:var(--p1)}html[data-brand] .orb.o2{background:var(--p2)}html[data-brand] .orb.o3{background:var(--p3)}

/* ---------- bar atas + LOGO ---------- */
html[data-brand] .top-wrap .topbar{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 94%,#000),color-mix(in srgb,var(--bgB) 90%,transparent));
  box-shadow:0 1px 0 color-mix(in srgb,var(--p2) 35%,transparent),0 12px 30px -18px rgba(0,0,0,.8)}
html[data-brand] .brand{display:flex;align-items:center;gap:14px;height:100%;padding:0 4px 0 0;transition:transform .35s var(--fx-ease)}
/* logo digeser supaya TULISAN-nya (bukan gambar utuh) tepat di tengah bar & sejajar label PUZZLE:
   --lc = posisi tengah tulisan di dalam file logo (GGBET303 tulisan di atas bendera, PIKET88 tulisan di bawah mahkota) */
html[data-brand]{--lhc:var(--lh)}
html[data-brand] .brand img{--ly:calc((.5 - var(--lc)) * var(--lhc));transform:translateY(var(--ly));display:block;height:var(--lhc);width:auto;max-width:180px;object-fit:contain;
  filter:drop-shadow(0 3px 12px color-mix(in srgb,var(--p2) 45%,transparent)) drop-shadow(0 1px 1px rgba(0,0,0,.5));transition:transform .35s var(--fx-ease),filter .35s}
html[data-brand] .brand:hover img{transform:translateY(var(--ly)) scale(1.05);filter:drop-shadow(0 4px 16px color-mix(in srgb,var(--p2) 70%,transparent)) drop-shadow(0 1px 1px rgba(0,0,0,.5))}
html[data-brand] .brand:active img{transform:translateY(var(--ly)) scale(.97)}
.brand-tag{display:inline-flex;align-items:center;gap:12px;font-weight:800;font-size:12.5px;letter-spacing:3.5px;color:#fff;white-space:nowrap;
  text-shadow:0 0 14px color-mix(in srgb,var(--p2) 60%,transparent)}
.brand-tag i{display:block;width:2px;height:28px;border-radius:2px;background:linear-gradient(180deg,transparent,var(--p2),var(--p1),transparent)}
html[data-brand] .top-wrap .icon-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;transition:transform .25s var(--fx-ease),background .2s,border-color .2s,box-shadow .25s}
html[data-brand] .top-wrap .icon-btn:hover{background:rgba(255,255,255,.18);border-color:var(--p2);transform:translateY(-2px);box-shadow:0 10px 20px -12px var(--p2)}
#bellBtn.ring svg{animation:bellRing .9s ease}
@keyframes bellRing{10%,50%{transform:rotate(14deg)}30%,70%{transform:rotate(-14deg)}90%{transform:rotate(4deg)}}

/* ---------- hero ---------- */
html[data-brand] .hero{background:linear-gradient(135deg,color-mix(in srgb,var(--h1) 32%,rgba(255,255,255,.07)),rgba(255,255,255,.07) 52%,color-mix(in srgb,var(--p2) 22%,rgba(255,255,255,.05)));
  border:1px solid color-mix(in srgb,var(--p2) 50%,transparent);
  box-shadow:0 30px 60px -36px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.14)}
html[data-brand] .hero-sub{color:#eef0f6}
html[data-brand=ezykasino] .hero{border-color:color-mix(in srgb,var(--p3) 45%,transparent)}
html[data-brand=ezykasino] .hero-kicker{background:rgba(0,0,0,.28);border-color:color-mix(in srgb,var(--p2) 60%,transparent);color:#ffb08a}
html[data-brand] .steps li{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);transition:transform .3s var(--fx-ease),background .2s,border-color .2s}
html[data-brand] .steps li:hover{transform:translateY(-3px);background:rgba(255,255,255,.16);border-color:var(--p2)}
html[data-brand] .steps small{color:#dfe2ea}
.hero-art{transform:translate3d(var(--hx,0px),var(--hy,0px),0);transition:transform .5s var(--fx-ease)}

/* ---------- daftar puzzle ---------- */
html[data-brand] .sec-head span{color:#e4e6ee}
html[data-brand] .lv-card{background:linear-gradient(180deg,var(--glass1),var(--glass2));border:1px solid var(--edge);
  
  transform:perspective(900px) translateY(var(--ty,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .4s var(--fx-ease),box-shadow .3s,border-color .3s;box-shadow:0 22px 44px -28px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.12)}
html[data-brand] .lv-card:hover{--ty:-8px;border-color:var(--p2);
  box-shadow:0 30px 56px -26px rgba(0,0,0,.85),0 0 0 1px color-mix(in srgb,var(--p2) 45%,transparent),0 20px 50px -22px color-mix(in srgb,var(--p2) 75%,transparent)}
html[data-brand] .lv-card.tilting{transition:transform .1s linear,box-shadow .3s,border-color .3s}
html[data-brand] .lv-card:active{--ty:-2px;transition-duration:.12s}
.lv-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:4;opacity:0;transition:opacity .35s;
  background:radial-gradient(420px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.22),transparent 45%)}
.lv-card:hover .lv-glare{opacity:1}
html[data-brand] .kv2{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13)}
html[data-brand] .kv2 span{color:#dcdfe8}
html[data-brand] .prize-box{background:linear-gradient(135deg,color-mix(in srgb,var(--p2) 24%,transparent),rgba(255,255,255,.06));border:1px solid color-mix(in srgb,var(--p2) 50%,transparent)}
.lv-wrap.rv{animation:none;opacity:0;transform:translateY(28px) scale(.96)}
.lv-wrap.rv.in{opacity:1;transform:none;transition:opacity .6s var(--fx-ease),transform .7s var(--fx-ease);transition-delay:calc(var(--d,0) * 70ms)}

/* ---------- menu bawah ---------- */
html[data-brand] .bn-in{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 82%,transparent),color-mix(in srgb,var(--bgB) 94%,transparent));
  border:1px solid color-mix(in srgb,var(--p2) 50%,transparent)}
html[data-brand] .bn-it{color:#d8dbe4}
html[data-brand] .bn-it b,html[data-brand] .bn-it:not(.on) b{color:#d8dbe4}
html[data-brand] .bn-it.on b{color:#fff}
html[data-brand] .bn-mid b{color:var(--p2)}
html[data-brand] .bn-orb{background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.35),var(--bgB) 72%);border:3px solid var(--p2);
  box-shadow:0 0 0 5px var(--bgB),0 0 0 6px color-mix(in srgb,var(--p2) 55%,transparent),0 10px 26px -6px var(--p1)}
html[data-brand] .bn-orb img{width:64%;height:64%;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(0,0,0,.55));transition:transform .5s var(--fx-ease)}
.bn-mid:hover .bn-orb img{transform:rotate(-10deg) scale(1.08)}
@media (max-width:640px){
  html[data-brand] .bnav::before{background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--bgB) 80%,transparent) 55%,var(--bgB))}
  html[data-brand] .bn-in{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 96%,#000),var(--bgB))}
}

/* ---------- layar main ---------- */
html[data-brand] #scr-game{background:var(--bgB)}
html[data-brand] .gamebar{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 96%,#000),color-mix(in srgb,var(--bgB) 92%,transparent));
  border-bottom:1px solid color-mix(in srgb,var(--p2) 40%,transparent)}
.gb-logo{width:34px;height:34px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 8px color-mix(in srgb,var(--p2) 55%,transparent))}
html[data-brand] #scr-game .stage{background:
  radial-gradient(70% 60% at 50% 44%,color-mix(in srgb,var(--p2) 26%,transparent),transparent 70%),
  radial-gradient(120% 90% at 50% 50%,transparent 58%,rgba(0,0,0,.4) 100%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E"),
  linear-gradient(160deg,var(--bgA),var(--bgB) 58%,var(--bgC))}
html[data-brand] #scr-game .icon-btn,html[data-brand] .tool-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#fff;transition:transform .2s var(--fx-ease),background .2s,border-color .2s}
html[data-brand] .tool-btn:hover,html[data-brand] #scr-game .icon-btn:hover{background:rgba(255,255,255,.18);border-color:var(--p2);transform:translateY(-2px)}
html[data-brand] #scr-game .dock-in{background:linear-gradient(170deg,color-mix(in srgb,var(--bgA) 92%,#fff 6%),color-mix(in srgb,var(--bgB) 96%,transparent));
  border:1px solid color-mix(in srgb,var(--p2) 55%,transparent);
  box-shadow:0 30px 60px -24px rgba(0,0,0,.85),0 0 40px -18px var(--p2),inset 0 1px 0 rgba(255,255,255,.12)}
html[data-brand] #scr-game .otp input,html[data-brand] #scr-game .dk-field{background:rgba(0,0,0,.22);border-color:rgba(255,255,255,.2)}
html[data-brand] #scr-game .dk-field input{background:transparent}
html[data-brand] #scr-game .otp input:focus,html[data-brand] #scr-game .dk-field:focus-within{border-color:var(--p2);box-shadow:0 0 0 4px color-mix(in srgb,var(--p2) 28%,transparent)}
html[data-brand] #scr-game .otp input.filled{border-color:var(--p2);background:color-mix(in srgb,var(--p2) 16%,rgba(0,0,0,.2));animation:otpPop .32s var(--fx-ease)}
@keyframes otpPop{40%{transform:scale(1.12)}}
html[data-brand] .dk-go{position:relative;overflow:hidden}
html[data-brand] .dk-go::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:fxShine 2.8s ease-in-out infinite}
@keyframes fxShine{0%,55%{left:-60%}100%{left:130%}}
#gPlaced.bump,.gb-count.bump{animation:numBump .45s var(--fx-ease)}
@keyframes numBump{40%{transform:scale(1.25);color:var(--p3)}}

/* percikan saat kepingan tersambung */
.burst{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:2147483000}
.burst i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 10px var(--c);animation:burst .7s cubic-bezier(.2,.8,.3,1) forwards}
.burst b{position:absolute;left:-30px;top:-14px;width:60px;height:60px;margin:-16px 0 0;border-radius:50%;border:3px solid var(--p3);animation:ring .55s ease-out forwards}
@keyframes burst{to{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}
@keyframes ring{from{transform:scale(.2);opacity:1}to{transform:scale(1.5);opacity:0}}

/* ---------- modal, toast, tombol ---------- */
html[data-brand] .sheet{background:linear-gradient(170deg,color-mix(in srgb,var(--bgA) 96%,#fff 5%),var(--bgB));border:1px solid color-mix(in srgb,var(--p2) 50%,transparent)}
html[data-brand] .res-badge.win{animation:winGlow 1.6s ease-in-out infinite}
@keyframes winGlow{50%{box-shadow:0 0 70px -4px var(--p2)}}
html[data-brand] .toast{background:color-mix(in srgb,var(--bgA) 92%,#fff 6%);border:1px solid color-mix(in srgb,var(--p2) 45%,transparent);animation:toastIn .5s var(--fx-ease)}
@keyframes toastIn{from{opacity:0;transform:translateY(-14px) scale(.95)}}
html[data-brand] .np-item.new{background:color-mix(in srgb,var(--p2) 14%,transparent)}
.rip-host{position:relative;overflow:hidden}
.rip{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);background:rgba(255,255,255,.45);animation:rip .6s ease-out forwards;z-index:5}
@keyframes rip{to{transform:scale(1);opacity:0}}

@media (max-width:640px){
  html[data-brand] .brand{gap:10px}
  html[data-brand]{--lhc:var(--lhm)}
  html[data-brand] .brand img{max-width:140px}
  .brand-tag{font-size:10px;letter-spacing:2.4px;gap:9px}
  .brand-tag i{height:20px}
  .gb-logo{width:28px;height:28px}
}
@media (max-width:370px){.brand-tag{display:none}}
@media (prefers-reduced-motion:reduce){
  html[data-brand] *,html[data-brand] *::before,html[data-brand] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ---------- 3D (three.js) ---------- */
.fx3d-bg{position:absolute;inset:0;pointer-events:none;opacity:.85}
.fx3d-bg canvas,.hero-art canvas.fx3d-canvas{display:block;width:100%;height:100%}
.hero-art.has3d{cursor:pointer}
.hero-art.has3d .hp,.hero-art.has3d .ha-glow{display:none}
.hero-art.has3d canvas{position:absolute;inset:-30px -20px;width:calc(100% + 40px);height:calc(100% + 60px);filter:drop-shadow(0 18px 30px rgba(0,0,0,.45))}

/* =========================================================
   PERFORMA (semua device)
   • tanpa backdrop-filter (blur di atas animasi = berat), panel memakai warna kaca padat
   • bayangan kepingan dipanggang di kanvas → CSS filter hanya untuk kepingan yang sedang diangkat
   ========================================================= */
html[data-brand] .top-wrap .topbar{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 97%,#000),color-mix(in srgb,var(--bgB) 96%,#000))}
html[data-brand] .hero{background:linear-gradient(135deg,color-mix(in srgb,var(--h1) 34%,var(--bgB)),color-mix(in srgb,var(--bgA) 80%,#fff 4%) 52%,color-mix(in srgb,var(--p2) 26%,var(--bgB)))}
html[data-brand] .lv-card{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 82%,#fff 12%),color-mix(in srgb,var(--bgB) 90%,#fff 5%))}
html[data-brand] .bn-in{background:linear-gradient(180deg,color-mix(in srgb,var(--bgA) 96%,#000),var(--bgB))}
html[data-brand] #scr-game .dock-in{background:linear-gradient(170deg,color-mix(in srgb,var(--bgA) 92%,#fff 6%),var(--bgB))}
html[data-brand] .lv-stars,html[data-brand] .gb-count,html[data-brand] .topbar,html[data-brand] .gamebar,html[data-brand] .bn-in{backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-brand] .modal{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(4,6,16,.72)}
html[data-brand] #scr-game .pc canvas,html[data-brand] #scr-game .pc.locked canvas,html[data-brand] #scr-game .pc.flying canvas{filter:none}
html[data-brand] #scr-game .pc.lift canvas{filter:drop-shadow(0 14px 12px rgba(0,0,0,.45)) brightness(1.06)}
html[data-brand] .pc.flying{will-change:transform}
html[data-brand] .bg::before{will-change:transform}
html[data-brand] .hero-title span{animation:none}
@media (pointer:coarse),(max-width:700px){
  html[data-brand] .bg::before{animation:none}
  html[data-brand] .lv-go::after,html[data-brand] .dk-go::after{animation:none;display:none}
}

/* ---------- tidak ada blok biru saat teks terseleksi / disentuh lama ---------- */
html[data-brand] body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html[data-brand] input,html[data-brand] textarea{-webkit-user-select:text;user-select:text}
html[data-brand] ::selection{background:color-mix(in srgb,var(--p2) 45%,transparent);color:#fff}
html[data-brand] img{-webkit-user-drag:none;user-select:none}

/* =========================================================
   LAYAR MENANG (hadiah)
   ========================================================= */
html[data-brand] .sheet.result{position:relative;width:min(430px,100%);max-height:calc(100dvh - 24px);overflow:hidden auto;padding:26px 22px 22px;border-radius:26px;
  background:radial-gradient(120% 70% at 50% 0%,color-mix(in srgb,var(--p2) 26%,var(--bgA)),var(--bgB) 70%);border:1px solid color-mix(in srgb,var(--p2) 60%,transparent);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.05) inset,0 0 60px -20px var(--p2)}
.win-wrap{position:relative;isolation:isolate;text-align:center}
.win-burst{position:absolute;left:50%;top:150px;width:520px;height:520px;margin:-260px 0 0 -260px;z-index:-1;pointer-events:none}
.wb-rays{position:absolute;inset:0;border-radius:50%;opacity:.55;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--p3) 55%,transparent) 0 6deg,transparent 6deg 18deg);
  -webkit-mask-image:radial-gradient(circle,#000 18%,transparent 62%);mask-image:radial-gradient(circle,#000 18%,transparent 62%);animation:wbSpin 24s linear infinite}
.wb-glow{position:absolute;inset:25%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--p2) 55%,transparent),transparent 65%)}
@keyframes wbSpin{to{transform:rotate(360deg)}}
.win-burst .sp{position:absolute;font-style:normal;color:var(--p3);text-shadow:0 0 10px var(--p2);animation:twinkle 1.8s ease-in-out infinite}
.sp.s1{left:22%;top:30%;font-size:18px}.sp.s2{right:21%;top:27%;font-size:13px;animation-delay:.4s}.sp.s3{left:28%;top:58%;font-size:12px;animation-delay:.8s}
.sp.s4{right:26%;top:55%;font-size:20px;animation-delay:1.1s}.sp.s5{left:50%;top:22%;font-size:11px;animation-delay:1.4s}
@keyframes twinkle{0%,100%{opacity:.2;transform:scale(.6)}50%{opacity:1;transform:scale(1.15)}}
.win-ribbon{position:relative;display:inline-block;margin:0 auto 10px;padding:9px 34px;font-weight:900;font-size:15px;letter-spacing:5px;color:var(--ink);
  background:linear-gradient(135deg,var(--p1),var(--p2) 55%,var(--p3));clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%);box-shadow:0 8px 20px -8px var(--p1)}
.win-ribbon span{display:block;text-shadow:0 1px 0 rgba(255,255,255,.35)}
html[data-brand] #resWin .res-title{font-size:30px;font-weight:900;letter-spacing:-.5px;line-height:1.1;background:linear-gradient(180deg,#fff 30%,var(--p3));-webkit-background-clip:text;background-clip:text;color:transparent}
.win-sub{margin:6px 0 0;font-size:13px;color:#e3e6ee;opacity:.85}
html[data-brand] .reward3d{width:210px;height:210px;margin:18px auto 14px;perspective:900px}
html[data-brand] .rc-face{border-radius:24px;overflow:hidden}
html[data-brand] .rc-front{background:linear-gradient(145deg,var(--p1),var(--p2));color:var(--ink);font-weight:800;gap:12px;box-shadow:0 20px 40px -18px var(--p1)}
html[data-brand] .rc-front svg{width:72px;height:72px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-brand] .rc-back{background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--p2) 30%,#1a1d26),#0f1117 78%);border:2px solid var(--p2);
  box-shadow:0 22px 46px -18px rgba(0,0,0,.9),0 0 34px -8px var(--p2);padding:14px;justify-content:center}
html[data-brand] .rc-back::before{display:none}
html[data-brand] .rc-back img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:14px;animation:none;filter:drop-shadow(0 10px 18px rgba(0,0,0,.55))}
.rb-gift{width:86px;height:86px;border-radius:24px;display:grid;place-items:center;margin-bottom:12px;background:linear-gradient(145deg,var(--p1),var(--p2));box-shadow:0 12px 26px -10px var(--p1)}
.rb-gift svg{width:46px;height:46px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-brand] .rc-back .rw-text{font-size:22px;font-weight:900;line-height:1.2;padding:0 6px;background:linear-gradient(180deg,#fff,var(--p3));-webkit-background-clip:text;background-clip:text;color:transparent}
.rb-shine{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%);transform:translateX(-130%)}
.reward-card.flip .rb-shine{animation:rbShine 1.1s ease .9s}
@keyframes rbShine{to{transform:translateX(130%)}}
.win-prize{display:inline-flex;flex-direction:column;align-items:center;gap:2px;min-width:200px;max-width:100%;padding:9px 20px;border-radius:16px;
  background:color-mix(in srgb,var(--p2) 18%,rgba(0,0,0,.25));border:1px solid color-mix(in srgb,var(--p2) 55%,transparent)}
.win-prize small{font-size:10.5px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--p3)}
.win-prize b{font-size:19px;font-weight:900;color:#fff;line-height:1.25}
.win-prize.dup{display:none}
.win-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 8px}
.win-stats div{padding:9px 6px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);min-width:0}
.win-stats small{display:block;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#c9ced9}
.win-stats b{display:block;margin-top:3px;font-size:16px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.win-proof{font-size:11.5px;color:#cfd3dd;opacity:.8;margin:2px 0 12px}
.btn-claim{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;margin-bottom:10px;border-radius:14px;text-decoration:none;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#1fa463,#0e7a46);box-shadow:0 10px 22px -12px #1fa463;border:1px solid rgba(255,255,255,.18)}
.btn-claim svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-claim[hidden]{display:none}
html[data-brand] #resWin .actions{margin-top:0}
/* masuk berurutan */
.sheet.result.won .win-ribbon{animation:wIn .5s var(--fx-ease) both}
.sheet.result.won .res-title{animation:wIn .5s var(--fx-ease) .08s both}
.sheet.result.won .win-sub{animation:wIn .5s var(--fx-ease) .14s both}
.sheet.result.won .reward3d{animation:wPop .6s cubic-bezier(.3,1.5,.5,1) .2s both}
.sheet.result.won .win-prize,.sheet.result.won .win-stats,.sheet.result.won .win-proof,.sheet.result.won .btn-claim,.sheet.result.won #resWin .actions{animation:wIn .5s var(--fx-ease) 1.2s both}
@keyframes wIn{from{opacity:0;transform:translateY(12px)}}
@keyframes wPop{from{opacity:0;transform:scale(.6)}}
@media (max-width:400px){
  html[data-brand] .sheet.result{padding:20px 14px 16px}
  html[data-brand] .reward3d{width:180px;height:180px;margin:14px auto 12px}
  html[data-brand] #resWin .res-title{font-size:26px}
  .win-stats b{font-size:14px}
}
/* latar: pola kepingan diam (tidak digeser terus) & tanpa lapisan noise blend-mode → hemat GPU/CPU */
html[data-brand] .bg::before{animation:none;will-change:auto}
html[data-brand] .bg::after{display:none}

/* =========================================================
   BAR ATAS LAYAR MAIN — judul puzzle (desktop) & HP rapi
   ========================================================= */
.gb-title{display:flex;align-items:center;gap:12px;min-width:0;padding:5px 16px 5px 5px;border-radius:16px;
  background:linear-gradient(120deg,color-mix(in srgb,var(--p2) 22%,rgba(255,255,255,.04)),rgba(255,255,255,.04) 70%);
  border:1px solid color-mix(in srgb,var(--p2) 45%,transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.gb-badge{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.22),color-mix(in srgb,var(--p1) 35%,var(--bgB)) 70%);border:1px solid color-mix(in srgb,var(--p2) 60%,transparent)}
html[data-brand] .gb-badge .gb-logo{width:30px;height:30px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
html[data-brand] .gb-title .gb-info{padding-left:0;border-left:0;line-height:1.15;min-width:0}
html[data-brand] .gb-title .gb-info small{font-size:10px;letter-spacing:2px;color:var(--p3);opacity:.95}
.gb-name{display:flex;align-items:center;gap:8px;min-width:0;margin-top:2px}
html[data-brand] .gb-name b{font-size:17px;font-weight:900;letter-spacing:-.2px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;
  background:linear-gradient(180deg,#fff 40%,var(--p3));-webkit-background-clip:text;background-clip:text;color:transparent}
.gb-diff{flex:none;display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:#0D0D0D}
.gb-diff i{font-style:normal;letter-spacing:0;font-size:9px}
.gb-diff.d-mudah{background:#3ddc84}.gb-diff.d-sedang{background:#ffc53d}.gb-diff.d-sulit{background:#ff6b5a;color:#fff}
@media (max-width:900px){ html[data-brand] .gb-title{display:none} }

/* ---------- alur klaim: SIMPAN GAMBAR → CLAIM DI SINI (Telegram) ---------- */
.win-step{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 10px;font-size:11.5px;font-weight:700;color:#d9dce6}
.win-step b{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;color:var(--ink);background:var(--p2)}
.win-step b:nth-of-type(2){background:rgba(255,255,255,.18);color:#fff}
.win-step i{font-style:normal;opacity:.5}
.win-step.done b:nth-of-type(1){background:#3ddc84}
.win-step.done b:nth-of-type(2){background:#229ED9;color:#fff;box-shadow:0 0 0 4px rgba(34,158,217,.25)}
.btn-save,.btn-tg{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:52px;margin-bottom:10px;border-radius:16px;
  font-weight:900;font-size:16px;letter-spacing:1.5px;text-decoration:none;border:0;cursor:pointer}
.btn-save{color:var(--ink);background:linear-gradient(135deg,var(--p1),var(--p2) 60%,var(--p3));box-shadow:0 14px 28px -12px var(--p1)}
.btn-save svg,.btn-tg svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-save::after,.btn-tg::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:fxShine 2.6s ease-in-out infinite}
.btn-save:disabled{opacity:.75;cursor:progress}
.btn-save:active,.btn-tg:active{transform:scale(.97)}
.btn-tg{color:#fff;background:linear-gradient(135deg,#2AABEE,#1d8fd0);box-shadow:0 14px 30px -12px #2AABEE;animation:tgIn .5s cubic-bezier(.3,1.5,.5,1),tgPulse 1.8s ease-in-out .6s infinite}
.btn-tg svg{fill:#fff;stroke:#fff;stroke-width:.6}
.btn-tg em{font-style:normal;font-size:22px;line-height:1;margin-left:2px}
.btn-save[hidden],.btn-tg[hidden]{display:none}
@keyframes tgIn{from{opacity:0;transform:scale(.85)}}
@keyframes tgPulse{50%{box-shadow:0 14px 30px -12px #2AABEE,0 0 0 6px rgba(42,171,238,.25)}}
.sheet.result.won .win-step,.sheet.result.won .btn-save{animation:wIn .5s var(--fx-ease) 1.2s both}
html[data-brand=ezykasino] .btn-save{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.btn-save{background:linear-gradient(135deg,var(--p1),var(--p2))}
/* aksesibilitas: target sentuh minimal ±32px di HP */
@media (max-width:640px){
  html[data-brand] .zoom-in .zb{width:32px;height:32px}
  html[data-brand] .zoom-in .zr-wrap{width:clamp(36px,calc(100vw - 320px),100px)}
}

/* ---------- layar menang versi SEDERHANA ---------- */
.win-wrap.simple{padding-top:6px}
html[data-brand] .win-wrap.simple .res-title{font-size:26px}
.win-wrap.simple .win-sub{margin-top:6px;font-size:13.5px}
html[data-brand] .win-wrap.simple .reward3d{width:190px;height:190px;margin:18px auto 12px}
.win-wrap.simple .rc-front svg{width:64px;height:64px}
.win-prize-t{margin:0 0 16px;font-size:22px;font-weight:900;color:#fff;line-height:1.25}
.win-hint{margin:2px 0 14px;font-size:12px;color:#cfd3dd}
.win-wrap.simple .btn-save,.win-wrap.simple .btn-tg{margin-bottom:6px}
.win-wrap.simple .btn-save::after{animation:none;display:none}
.sheet.result.won .win-prize-t,.sheet.result.won .win-hint{animation:wIn .5s var(--fx-ease) 1.1s both}
html[data-brand] .sheet.result:has(.win-wrap.simple:not([hidden])){background:linear-gradient(180deg,color-mix(in srgb,var(--p2) 14%,var(--bgA)),var(--bgB));box-shadow:0 30px 60px -30px rgba(0,0,0,.9)}
/* ===== popup menang: kartu = tiket brand (920×460), balik dari kado → tiket, miring 3D + kilau ===== */
html[data-brand] .win-wrap.simple .reward3d.is-ticket{width:min(100%,360px);height:auto;aspect-ratio:2/1;margin:16px auto 16px;
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .5s cubic-bezier(.2,.8,.2,1)}
html[data-brand] .win-wrap.simple .reward3d.is-ticket.tilting{transition:transform .1s linear}
html[data-brand] .reward3d.is-ticket .reward-card{width:100%;height:100%}
html[data-brand] .reward3d.is-ticket .rc-face{border-radius:16px}
html[data-brand] .reward3d.is-ticket .rc-front{border-radius:16px}
html[data-brand] .reward3d.is-ticket .rc-back{padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;
  filter:drop-shadow(0 16px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px color-mix(in srgb,var(--p2) 45%,transparent))}
html[data-brand] .reward3d.is-ticket .rc-back img.rb-ticket{width:100%;height:100%;object-fit:contain;border-radius:0;filter:none;display:block}
html[data-brand] .reward3d.is-ticket .rb-shine{border-radius:16px;-webkit-mask:linear-gradient(#000,#000);mix-blend-mode:screen;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.55) 50%,transparent 62%)}
.reward3d.is-ticket .reward-card.flip .rb-shine{animation:rbShine 1.1s ease .9s,rbShine2 4.5s ease 2.5s infinite}
@keyframes rbShine2{0%,70%{transform:translateX(-130%)}100%{transform:translateX(130%)}}
html[data-brand] .reward3d.is-ticket .reward-card.flip{animation:tkFloat 4s ease-in-out 1.8s infinite}
@keyframes tkFloat{0%,100%{translate:0 0}50%{translate:0 -5px}}
.win-wrap.simple:has(.reward3d.is-ticket) .win-prize-t{display:none}
@media (prefers-reduced-motion:reduce){.reward3d.is-ticket .reward-card.flip,.reward3d.is-ticket .reward-card.flip .rb-shine{animation:none}}
/* ===== cara main 4 langkah + tombol Syarat & Ketentuan ===== */
html[data-brand] .steps{grid-template-columns:repeat(4,minmax(0,1fr));max-width:640px}
html[data-brand] .steps li:last-child{border-color:color-mix(in srgb,#2AABEE 60%,transparent);background:linear-gradient(180deg,rgba(42,171,238,.22),rgba(42,171,238,.06))}
html[data-brand] .steps li:last-child b{background:linear-gradient(135deg,#2AABEE,#1b86c9);color:#fff;box-shadow:0 4px 12px -4px #2AABEE}
html[data-brand] .steps li:not(:last-child)::after{border-color:var(--p2)}
@media (max-width:640px){html[data-brand] .steps li{padding:10px 2px 9px}html[data-brand] .steps strong{font-size:11.5px;white-space:normal}html[data-brand] .steps small{font-size:9.5px}}
@media (max-width:380px){html[data-brand] .steps{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-brand] .steps li:nth-child(2)::after{display:none}}
.sk-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:9px 16px;border-radius:999px;cursor:pointer;font:inherit;font-size:13px;font-weight:800;color:#fff;
  background:rgba(255,255,255,.1);border:1px solid color-mix(in srgb,var(--p2) 60%,transparent);transition:background .2s,transform .2s}
.sk-link:hover{background:color-mix(in srgb,var(--p2) 25%,transparent);transform:translateY(-2px)}
.sk-link:active{transform:scale(.97)}
.sk-link svg{width:17px;height:17px;fill:none;stroke:var(--p3);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-brand] .sheet.rules{width:min(460px,100%);max-height:min(86vh,720px);overflow:auto;padding:26px 22px 20px;text-align:left;
  background:linear-gradient(180deg,color-mix(in srgb,var(--p2) 14%,var(--bgA)),var(--bgB));border:1px solid color-mix(in srgb,var(--p2) 45%,transparent)}
.sheet.rules h2{font-size:21px;font-weight:900;color:#fff;padding-right:30px}
.sk-sub{margin:4px 0 14px;font-size:13px;color:#cfd3dd}
.sk-list{list-style:none;counter-reset:sk;display:grid;gap:8px;margin:0 0 16px;padding:0}
.sk-list li{counter-increment:sk;position:relative;padding:10px 12px 10px 44px;border-radius:12px;font-size:13.5px;line-height:1.45;color:#eef0f5;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.sk-list li::before{content:counter(sk);position:absolute;left:10px;top:9px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:900;color:var(--ink);background:linear-gradient(135deg,var(--p1),var(--p2))}
.sheet.rules .sk-tg{height:48px}
.sheet.rules .sk-tg[hidden]{display:none}
.sheet.rules .actions{margin-top:2px}
.sheet.rules .actions .btn{width:100%}
.sheet.rules .sk-tg{letter-spacing:.3px;font-size:15px;white-space:nowrap}
/* fix: menu bawah sempat "loncat ke tengah" saat kembali ke Beranda — layar beranda cukup memudar (tanpa transform),
   karena transform pada induk membuat posisi fixed menu bawah ikut menempel ke halaman yang sedang di-scroll */
#scr-map.screen.active{animation:scrFade .4s ease}
@keyframes scrFade{from{opacity:0}}
/* hadiah di kartu puzzle = tiket mini brand */
.prize-tk{position:relative;width:100%;aspect-ratio:3/1;border-radius:10px;
  background:linear-gradient(100deg,rgba(255,255,255,.05) 30%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.05) 70%) 0 0/250% 100%;animation:ptkLoad 1.2s linear infinite}
.prize-tk.ready{background:none;animation:none}
.prize-tk img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.45));transition:transform .35s var(--fx-ease,ease)}
.prize-tk img[hidden]{display:none}
.lv-card:hover .prize-tk img{transform:translateY(-2px) scale(1.02)}
@keyframes ptkLoad{to{background-position:-250% 0}}
/* ===== grid puzzle final: kartu sama lebar & baris terakhir rata tengah ===== */
html[data-brand] .level-grid{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:24px}
html[data-brand] .level-grid>.lv-wrap{flex:0 0 calc((100% - 48px) / 3);max-width:calc((100% - 48px) / 3);min-width:0}
@media (max-width:860px){html[data-brand] .level-grid{gap:16px}html[data-brand] .level-grid>.lv-wrap{flex-basis:calc((100% - 16px) / 2);max-width:calc((100% - 16px) / 2)}}
@media (max-width:640px){html[data-brand] .level-grid{gap:12px}html[data-brand] .level-grid>.lv-wrap{flex-basis:calc((100% - 12px) / 2);max-width:calc((100% - 12px) / 2)}}
html[data-brand] .steps strong{white-space:nowrap}
/* ===== Syarat & Ketentuan v2: kepala tetap, isi bergulir, tombol menempel di bawah ===== */
html[data-brand] .sheet.rules{display:flex;flex-direction:column;width:min(480px,100%);max-height:min(88vh,760px);overflow:hidden;padding:0;text-align:left;border-radius:24px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--p2) 16%,var(--bgA)) 0%,var(--bgB) 60%);border:1px solid color-mix(in srgb,var(--p2) 50%,transparent);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.04) inset}
html[data-brand] .sheet.rules .x{top:14px;right:14px;z-index:3}
.sk-head{display:flex;align-items:center;gap:14px;padding:22px 60px 18px 22px;position:relative;
  background:linear-gradient(135deg,color-mix(in srgb,var(--p1) 38%,transparent),color-mix(in srgb,var(--p2) 18%,transparent) 70%,transparent);border-bottom:1px solid rgba(255,255,255,.1)}
.sk-head::after{content:"";position:absolute;left:22px;right:22px;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--p1),var(--p2),transparent);border-radius:2px}
.sk-ic{width:46px;height:46px;flex:none;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--p1),var(--p2));box-shadow:0 10px 22px -10px var(--p1)}
.sk-ic svg{width:24px;height:24px;fill:none;stroke:var(--ink,#111);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-brand] .sheet.rules h2{font-size:20px;font-weight:900;color:#fff;margin:0;padding:0;line-height:1.2}
html[data-brand] .sheet.rules .sk-sub{margin:3px 0 0;font-size:12.5px;color:#d5d9e2}
.sk-sub b{color:var(--p3);font-weight:800}
.sk-body{flex:1;min-height:0;overflow-y:auto;padding:16px 18px 6px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--p2) 60%,transparent) transparent;overscroll-behavior:contain}
html[data-brand] .sk-list{list-style:none;counter-reset:sk;display:grid;gap:8px;margin:0;padding:0}
html[data-brand] .sk-list li{counter-increment:sk;position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:14px;font-size:13.5px;line-height:1.5;color:#eef0f5;
  background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.09);transition:border-color .2s,transform .2s}
html[data-brand] .sk-list li:hover{border-color:color-mix(in srgb,var(--p2) 55%,transparent);transform:translateX(2px)}
html[data-brand] .sk-list li::before{content:counter(sk);position:static;flex:none;width:26px;height:26px;border-radius:9px;display:grid;place-items:center;margin-top:-1px;
  font-size:12.5px;font-weight:900;color:var(--ink,#111);background:linear-gradient(135deg,var(--p1),var(--p2));box-shadow:0 6px 14px -6px var(--p1)}
html[data-brand] .sk-list li span{flex:1;min-width:0}
.sk-note{margin:14px 0 10px;padding:14px 14px 12px;border-radius:16px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,rgba(255,176,32,.16),rgba(255,80,60,.08));border:1px solid rgba(255,190,60,.45)}
.sk-note::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#ffc83d,#ff6a3d)}
.sk-note h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;color:#ffd36b}
.sk-note h3 span{font-size:16px;letter-spacing:0}
.sk-note ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.sk-note li{position:relative;padding-left:18px;font-size:13px;line-height:1.5;color:#f4ecdc}
.sk-note li::before{content:"";position:absolute;left:3px;top:8px;width:6px;height:6px;border-radius:50%;background:#ffc83d;box-shadow:0 0 8px #ffc83d}
.sk-foot{display:grid;gap:8px;padding:12px 18px 18px;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,transparent,rgba(0,0,0,.25))}
html[data-brand] .sheet.rules .sk-tg{height:48px;margin:0;letter-spacing:.3px;font-size:15px;white-space:nowrap}
html[data-brand] .sheet.rules .sk-tg[hidden]{display:none}
html[data-brand] .sheet.rules .sk-ok{width:100%;height:46px;margin:0}
@media (max-width:420px){.sk-head{padding:18px 54px 16px 16px;gap:12px}.sk-ic{width:40px;height:40px;border-radius:12px}.sk-body{padding:14px 12px 4px}.sk-foot{padding:10px 12px 14px}html[data-brand] .sk-list li{padding:11px 12px;font-size:13px}}
/* tombol timbul & tertekan (3D ringan) */
html[data-brand] .btn-primary,html[data-brand] .lv-go,html[data-brand] .btn-save{box-shadow:0 5px 0 -1px color-mix(in srgb,var(--p1) 55%,#000),0 12px 24px -12px var(--p1)}
html[data-brand] .btn-primary:active,html[data-brand] .btn-save:active,html[data-brand] .lv-card:active .lv-go{transform:translateY(3px);box-shadow:0 2px 0 -1px color-mix(in srgb,var(--p1) 55%,#000),0 6px 12px -8px var(--p1)}
/* hujan koin 3D saat menang */
.fx3d-rain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;transition:opacity .2s}
.sk-note h3 svg{width:16px;height:16px;fill:none;stroke:#ffd36b;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* ===== anti-lag: hentikan animasi tanpa henti yang memaksa browser melukis ulang terus ===== */
html[data-brand] .bg::before{animation:none}
html[data-brand] .lv-go::after{animation:none;transition:transform .7s ease}
html[data-brand] .lv-card:hover .lv-go::after{transform:translateX(120%)}
html[data-brand] .dk-go::after,html[data-brand] .btn-save::after,html[data-brand] .btn-tg::after{animation:none;display:none}
html[data-brand] .an-ic svg{animation:none}
html[data-brand] .hero-kicker i{animation:none}
html[data-brand] .bn-orb::after{animation:none;opacity:.6}
html[data-brand] .rc-front svg{animation:none}
/* kartu di luar layar tidak dihitung ulang (scroll lebih ringan) */
html[data-brand] .lv-wrap{content-visibility:auto;contain-intrinsic-size:auto 520px}
/* =====================================================================
   v5 · 05 Des 2026 — latar 3D interaktif (juga di HP), tanpa pola wallpaper
   ===================================================================== */
html[data-brand] .bg::before{display:none}
.fx3d-bg{opacity:1}
html.fx3d-on .fx3d-bg{opacity:.9}
@media (max-width:699px){html.fx3d-on .fx3d-bg{opacity:.55}}
.hero-art.has3d canvas{inset:-40px -30px;width:calc(100% + 60px);height:calc(100% + 80px);filter:none}
.hero-art.has3d{cursor:pointer;touch-action:manipulation}
.hero-in>.hero-title{margin-top:0}
/* HP: puzzle 3D kecil di pojok kanan atas hero (ketuk = pecah lalu tersusun lagi) */
@media (max-width:699px){
  html[data-brand] .hero{position:relative}
  html[data-brand] .hero-art{display:block;position:absolute;right:12px;top:14px;width:104px;height:124px;margin:0;z-index:2;transform:none}
  html[data-brand] .hero-art .hp,html[data-brand] .hero-art .ha-glow{display:none}
  html[data-brand] .hero-art.has3d canvas{inset:-12px -10px;width:calc(100% + 20px);height:calc(100% + 24px)}
  html[data-brand] .hero:has(.hero-art.has3d) .hero-title{padding-right:112px;min-height:118px}
}
@media (min-width:700px){.hero-art{height:280px}}
/* v7: tidak ada ikon datar yang muncul sebentar sebelum 3D siap; kanvas muncul halus; area 3D hero tidak terpotong */
html.fx3d-wait .hero-art .hp,html.fx3d-wait .hero-art .ha-glow{visibility:hidden}
.fx3d-canvas{animation:fx3dIn .7s ease both}
@keyframes fx3dIn{from{opacity:0}to{opacity:1}}
@media (min-width:700px){.hero-art.has3d canvas{inset:-34px -36px -34px -20px;width:calc(100% + 56px);height:calc(100% + 68px)}}
/* =====================================================================
   Notifikasi HP: baris di panel lonceng, kartu ajakan, pesan singkat
   ===================================================================== */
.np-push{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035)}
.np-push-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--p2,#D4A017) 22%,transparent)}
.np-push-ic svg{width:17px;height:17px;fill:none;stroke:var(--p2,#D4A017);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.np-push[data-s=on] .np-push-ic{background:rgba(46,204,113,.18)}.np-push[data-s=on] .np-push-ic svg{stroke:#4ade80}
.np-push[data-s=denied] .np-push-ic{background:rgba(239,68,68,.16)}.np-push[data-s=denied] .np-push-ic svg{stroke:#f87171}
.np-push>div{flex:1;min-width:0}
.np-push b{display:block;font-size:13px;color:#fff}
.np-push small{display:block;margin-top:2px;font-size:11.5px;line-height:1.4;color:#c9ccd6}
.np-push button{flex:none;height:32px;padding:0 12px;border-radius:9px;border:0;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;
  background:var(--p2,#D4A017);color:#111;transition:transform .15s,filter .15s}
.np-push[data-s=on] button{background:rgba(255,255,255,.1);color:#fff}
.np-push button:hover{filter:brightness(1.08)}.np-push button:active{transform:translateY(1px)}
.np-push button:disabled{opacity:.6;cursor:wait}

.pz-push-card{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:80;width:min(420px,calc(100vw - 24px));
  display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:rgba(22,24,30,.97);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 50px -20px rgba(0,0,0,.85);transform:translate(-50%,24px);opacity:0;transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .3s}
.pz-push-card.in{transform:translate(-50%,0);opacity:1}
.pz-push-card img{flex:none;width:44px;height:44px;border-radius:12px;object-fit:cover}
.ppc-t{flex:1;min-width:0}
.ppc-t b{display:block;font-size:14.5px;color:#fff}
.ppc-t p{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:#c9ccd6}
.ppc-a{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.ppc-a button{height:34px;padding:0 14px;border-radius:9px;border:0;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:transform .15s,filter .15s}
.ppc-yes{background:var(--p2,#D4A017);color:#111}.ppc-no{background:rgba(255,255,255,.08);color:#e6e8ee}
.ppc-a button:active{transform:translateY(1px)}
.pz-push-say{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));z-index:90;transform:translate(-50%,-140%);transition:transform .35s cubic-bezier(.2,.8,.2,1);
  display:flex;flex-direction:column;gap:2px;padding:11px 16px;border-radius:12px;background:rgba(22,24,30,.97);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.8);max-width:calc(100vw - 24px)}
.pz-push-say.in{transform:translate(-50%,0)}
.pz-push-say b{font-size:13.5px;color:#fff}.pz-push-say span{font-size:12.5px;color:#c9ccd6}
@media (prefers-reduced-motion:reduce){.pz-push-card,.pz-push-say{transition:none}}
/* layar WAJIB aktifkan notifikasi sebelum main (v2: logo lengkap, poin singkat, mudah dibaca) */
html[data-brand=ggbet303]{--pg-ly:14%}html[data-brand=ezykasino]{--pg-ly:1%}html[data-brand=piket88]{--pg-ly:-10%}
.pz-gate{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:rgba(6,7,11,.78);opacity:0;transition:opacity .25s}
.pz-gate.in{opacity:1}
.pg-box{width:min(380px,100%);max-height:calc(100dvh - 36px);overflow:auto;border-radius:22px;background:#17191f;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.95);transform:translateY(16px) scale(.97);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.pz-gate.in .pg-box{transform:none}
.pg-head{position:relative;height:96px;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(120% 140% at 50% 0%,color-mix(in srgb,var(--p1,#D2691E) 45%,transparent),transparent 70%),linear-gradient(180deg,color-mix(in srgb,var(--p1,#D2691E) 22%,#1d2027),#17191f)}
.pg-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--p2,#D4A017) 70%,transparent),transparent)}
.pg-logo{display:flex;align-items:center;justify-content:center;height:52px;width:72%;overflow:visible}
.pg-logo img{max-width:100%;max-height:46px;width:auto;height:auto;object-fit:contain;transform:translateY(var(--pg-ly,0));filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}
.pg-body{padding:0 22px 20px;text-align:center}
.pg-badge{position:relative;width:60px;height:60px;margin:-30px auto 12px;border-radius:50%;display:grid;place-items:center;background:var(--p2,#D4A017);
  box-shadow:0 0 0 5px #17191f,0 10px 24px -8px var(--p2,#D4A017)}
.pg-badge i{position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--p2,#D4A017);opacity:0;animation:pgPulse 2.2s ease-out infinite}
.pg-badge svg{width:27px;height:27px;fill:none;stroke:#141414;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transform-origin:50% 15%}
.pz-gate[data-v=off] .pg-badge svg,.pz-gate[data-v=dismissed] .pg-badge svg{animation:pgRing 2.6s ease-in-out infinite}
@keyframes pgPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.55);opacity:0}}
@keyframes pgRing{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(16deg)}74%{transform:rotate(-13deg)}80%{transform:rotate(8deg)}86%{transform:rotate(-4deg)}}
.pg-body h3{font-size:21px;font-weight:800;letter-spacing:-.2px;color:#fff;margin:0}
.pg-sub{font-size:14px;line-height:1.5;color:#c3c7d2;margin:6px 0 0}
.pg-perks{list-style:none;margin:16px 0 0;padding:4px 0;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);text-align:left}
.pg-perks li{display:flex;align-items:center;gap:12px;padding:9px 14px;font-size:14px;font-weight:600;color:#eceef3}
.pg-perks li+li{border-top:1px solid rgba(255,255,255,.06)}
.pg-perks span{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--p2,#D4A017) 16%,transparent)}
.pg-perks svg{width:16px;height:16px;fill:none;stroke:var(--p2,#D4A017);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pg-steps{list-style:none;margin:16px 0 0;padding:0;text-align:left;display:flex;flex-direction:column;gap:8px}
.pg-steps li{display:flex;gap:12px;align-items:flex-start;padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);font-size:14px;line-height:1.45;color:#e2e5ec}
.pg-steps b{color:#fff}
.pg-n{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;color:#141414!important;background:var(--p2,#D4A017);margin-top:-1px}
.pg-inl{display:inline-grid;place-items:center;width:20px;height:20px;vertical-align:-4px;border-radius:5px;background:rgba(0,122,255,.2)}
.pg-inl svg{width:13px;height:13px;fill:none;stroke:#5aa9ff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pg-act{display:flex;flex-direction:column;gap:6px;margin-top:18px}
.pg-act button{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:14px;border:0;font:inherit;font-size:15.5px;font-weight:800;cursor:pointer;transition:transform .15s,filter .15s,box-shadow .2s}
.pg-act button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pg-act .pg-yes svg{fill:currentColor;stroke:none}
.pz-gate[data-v=dismissed] .pg-yes svg,.pz-gate[data-v=error] .pg-yes svg{fill:none;stroke:currentColor}
.pg-yes{background:var(--p2,#D4A017);color:#121212;box-shadow:0 12px 24px -14px var(--p2,#D4A017)}
.pg-yes:hover{filter:brightness(1.07)}.pg-yes:disabled{opacity:.75;cursor:wait}
.pg-no{height:42px!important;background:transparent;color:#a9aebb;font-size:13.5px!important;font-weight:700!important}
.pg-no:hover{color:#fff}
.pg-act button:active{transform:translateY(1px)}
.pg-hint{font-size:12.5px;line-height:1.5;color:#9ea3b0;margin:10px 0 0}.pg-hint b{color:#fff}
@media (max-width:360px){.pg-body{padding:0 16px 16px}.pg-body h3{font-size:19px}.pg-perks li,.pg-steps li{font-size:13px}}
@media (prefers-reduced-motion:reduce){.pz-gate,.pg-box{transition:none}.pg-badge i,.pg-badge svg{animation:none!important}}
.pg-head{height:122px;place-items:start center;padding-top:22px;box-sizing:border-box}
.pg-badge{margin-top:-30px}
@media (max-height:700px){.pg-head{height:104px;padding-top:16px}.pg-logo img{max-height:40px}}
/* 3 tahap: tombol link Telegram, tombol tutup (tahap klaim), di atas layar hadiah */
.pz-gate{z-index:400}
.pg-act a{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:14px;font-size:15.5px;font-weight:800;text-decoration:none;transition:transform .15s,filter .15s}
.pg-act a.pg-yes{background:#2AABEE;color:#fff;box-shadow:0 12px 24px -14px #2AABEE}
.pg-act a.pg-no{height:42px;background:transparent;color:#7cc8f2;font-size:13.5px;font-weight:700}
.pg-act a svg{width:18px;height:18px;fill:currentColor;stroke:none}
.pg-act a:active{transform:translateY(1px)}
.pz-gate[data-v=done] .pg-badge{background:#22c55e;box-shadow:0 0 0 5px #17191f,0 10px 24px -8px #22c55e}
.pz-gate[data-v=done] .pg-badge i{border-color:#22c55e}
.pz-gate[data-v=done] .pg-badge svg{stroke:#fff;stroke-width:3}
.pz-gate[data-mode=claim][data-v=off] .pg-badge svg{animation:pgRing 2.6s ease-in-out infinite}
.pg-head{position:relative}
.pg-x{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.35);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.pg-x:hover{background:rgba(0,0,0,.55)}
/* server tidak bisa dihubungi saat pertama buka */
.pz-fatal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:24px;background:#111318;text-align:center}
.pz-fatal>div{max-width:340px}.pz-fatal b{display:block;font-size:20px;color:#fff}
.pz-fatal p{margin:8px 0 18px;font-size:14px;line-height:1.5;color:#c3c7d2}
.pz-fatal button{height:46px;padding:0 26px;border-radius:12px;border:0;font:inherit;font-weight:800;background:var(--p2,#D4A017);color:#111;cursor:pointer}
.tk-demo[hidden]{display:none!important}
/* deterrent: matikan seleksi teks kecuali kolom isian */
html.guard, html.guard body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.guard input,html.guard textarea,html.guard [contenteditable="true"],html.guard .allow-select{-webkit-user-select:text;user-select:text}
