.ilp-wrap{
  max-width:900px;
  margin:30px auto;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
.ilp-card{
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  background:linear-gradient(180deg,#ffffff 0%,#eef7ff 52%,#f7efff 100%);
  border:1px solid rgba(25,79,149,.12);
}
.ilp-header{
  background:linear-gradient(135deg,#0f5fd7 0%,#7e2bd4 100%);
  color:#fff;
  text-align:center;
  padding:26px 20px 22px;
}
.ilp-kicker{
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.92;
  margin-bottom:8px;
}
.ilp-header h2{
  margin:0 0 8px;
  font-size:2rem;
  line-height:1.1;
  color:#fff;
}
.ilp-header p{
  margin:0;
  font-size:1rem;
  opacity:.95;
}
.ilp-body{
  padding:28px 24px 30px;
}
.ilp-stage{
  position:relative;
  min-height:390px;
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at center, rgba(68,138,255,.16) 0%, rgba(126,43,212,.06) 44%, rgba(7,25,53,.96) 100%);
  border:1px solid rgba(255,255,255,.18);
}
.ilp-spiral{
  position:absolute;
  inset:50% auto auto 50%;
  width:260px;
  height:260px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:repeating-radial-gradient(circle at center,
    rgba(255,255,255,.94) 0 3px,
    rgba(118,201,255,.96) 4px 6px,
    rgba(7,25,53,0) 8px 18px);
  filter:blur(.2px) drop-shadow(0 0 18px rgba(122,184,255,.5));
  animation:ilpSpin 16s linear infinite;
  opacity:.9;
}
.ilp-centre-glow{
  position:absolute;
  left:50%;
  top:50%;
  width:120px;
  height:120px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.7) 0%, rgba(126,43,212,.24) 38%, rgba(126,43,212,0) 75%);
  animation:ilpPulse 2.8s ease-in-out infinite;
}
.ilp-ball-orbit{
  position:absolute;
  left:50%;
  top:50%;
  width:100px;
  height:100px;
  margin:-50px;
  transform-origin:50% 50%;
  animation:ilpOrbit 18s linear infinite;
}
.ilp-ball-orbit span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:62px;
  height:62px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #fff 0%, #f7fbff 30%, #dceaff 70%, #c7dbff 100%);
  box-shadow:0 8px 22px rgba(0,0,0,.22), inset -8px -8px 14px rgba(135,176,255,.35), inset 6px 6px 12px rgba(255,255,255,.9);
  color:#11305b;
  font-weight:700;
  font-size:1.15rem;
  border:2px solid rgba(255,255,255,.8);
}
.ilp-ball-orbit-1{ animation-duration: 12s; }
.ilp-ball-orbit-1 span{ transform:translateX(118px); }
.ilp-ball-orbit-2{ animation-duration: 14s; animation-direction:reverse; }
.ilp-ball-orbit-2 span{ transform:translateX(-150px) translateY(-55px); }
.ilp-ball-orbit-3{ animation-duration: 16s; }
.ilp-ball-orbit-3 span{ transform:translateX(165px) translateY(60px); }
.ilp-ball-orbit-4{ animation-duration: 18s; animation-direction:reverse; }
.ilp-ball-orbit-4 span{ transform:translateX(-185px) translateY(45px); }
.ilp-ball-orbit-5{ animation-duration: 20s; }
.ilp-ball-orbit-5 span{ transform:translateX(55px) translateY(-165px); }
.ilp-ball-orbit-6{ animation-duration: 22s; animation-direction:reverse; }
.ilp-ball-orbit-6 span{ transform:translateX(-60px) translateY(175px); }
.ilp-instruction{
  position:absolute;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  width:min(84%,680px);
  color:#fff;
  text-align:center;
  background:rgba(8,22,48,.45);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:12px 18px;
  font-size:1rem;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}
.ilp-controls{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin:22px 0 10px;
}
.ilp-btn{
  border:none;
  border-radius:999px;
  padding:12px 22px;
  cursor:pointer;
  font-size:1rem;
  font-weight:700;
  transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.ilp-btn:hover{ transform:translateY(-1px); }
.ilp-btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.ilp-btn-primary{
  background:#1d87e4;
  color:#fff;
  box-shadow:0 10px 20px rgba(29,135,228,.28);
}
.ilp-btn-secondary{
  background:#eef5ff;
  color:#174786;
  border:1px solid rgba(23,71,134,.12);
}
.ilp-status{
  text-align:center;
  font-size:1rem;
  color:#26476a;
  margin:12px auto 0;
  max-width:700px;
}
.ilp-results{
  margin-top:26px;
  padding:22px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(23,71,134,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.ilp-results-title{
  text-align:center;
  font-size:1.25rem;
  font-weight:800;
  color:#173864;
  margin-bottom:16px;
}
.ilp-balls{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  min-height:68px;
}
.ilp-result-ball{
  width:68px;
  height:68px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#11305b;
  font-weight:800;
  font-size:1.3rem;
  background:radial-gradient(circle at 30% 30%, #fff 0%, #fbfdff 36%, #d6e7ff 72%, #baceff 100%);
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 12px 20px rgba(17,48,91,.16), inset -8px -8px 14px rgba(155,186,255,.38), inset 6px 6px 12px rgba(255,255,255,.95);
  opacity:0;
  transform:scale(.6) translateY(10px);
  animation:ilpPop .38s ease forwards;
}
.ilp-result-ball.is-bonus{
  background:radial-gradient(circle at 30% 30%, #fff7d8 0%, #ffeaa0 40%, #f7cf50 72%, #d9a81b 100%);
  color:#4d3400;
}
.ilp-meta{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  text-align:center;
}
.ilp-meta > div{
  padding:14px 10px;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff 0%,#eff5ff 100%);
  border:1px solid rgba(23,71,134,.08);
  color:#183863;
}
.ilp-disclaimer{
  margin-top:18px;
  text-align:center;
  font-size:.9rem;
  color:#6a7280;
}
[hidden]{ display:none !important; }
@keyframes ilpSpin { from{transform:translate(-50%,-50%) rotate(0deg);} to{transform:translate(-50%,-50%) rotate(360deg);} }
@keyframes ilpOrbit { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@keyframes ilpPulse { 0%,100%{transform:translate(-50%,-50%) scale(1); opacity:.7;} 50%{transform:translate(-50%,-50%) scale(1.12); opacity:1;} }
@keyframes ilpPop { to{opacity:1; transform:scale(1) translateY(0);} }
@media (max-width: 700px){
  .ilp-header h2{ font-size:1.6rem; }
  .ilp-body{ padding:20px 14px 24px; }
  .ilp-stage{ min-height:340px; }
  .ilp-spiral{ width:200px; height:200px; }
  .ilp-instruction{ width:92%; border-radius:20px; }
  .ilp-meta{ grid-template-columns:1fr; }
}

.ilp-cta-wrap{margin-top:20px;text-align:center}
