/* แจ็กพอต (#jackpot) */

/* ---------- แจ็กพอต ---------- */
.jp { position: relative; isolation: isolate; padding: 3px; border-radius: 30px; filter: drop-shadow(0 22px 30px rgba(0,0,0,.65)); }
.jp-ring { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; background: #5a3a06; }
.jp-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax;
  background: conic-gradient(#8a5a00, #ffe08a 8%, #fff6cc 12%, #f5b301 18%, #8a5a00 28%, #b91c1c 40%, #8a5a00 52%, #ffe08a 62%, #fff6cc 66%, #f5b301 72%, #8a5a00 82%, #b91c1c 92%, #8a5a00);
  animation: jpSpin 8s linear infinite; }
@keyframes jpSpin { to { transform: rotate(1turn); } }
.jp-body { position: relative; display: flex; align-items: center; gap: 28px; overflow: hidden; padding: 22px 30px; border-radius: 27px;
  background: radial-gradient(ellipse 40% 120% at 14% 50%, rgba(245,179,1,.26), transparent 62%), radial-gradient(ellipse 55% 140% at 80% 50%, rgba(185,28,28,.4), transparent 65%), url(../../images/bg/pattern.svg) center / 200px 200px repeat, linear-gradient(180deg, #43100f, #1d0707 58%, #140405);
  box-shadow: inset 0 0 0 1px rgba(255,224,138,.3), inset 0 0 50px rgba(0,0,0,.75); }
.jp-body::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,241,194,.16) 50%, transparent 60%); transform: translateX(-100%); animation: jpSweep 5.5s ease-in-out infinite; }
@keyframes jpSweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.jp-rays { position: absolute; left: 14%; top: 50%; z-index: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,224,138,.13) 0 7deg, transparent 7deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 62%); mask-image: radial-gradient(circle, #000 15%, transparent 62%); animation: jpSpin 40s linear infinite; }
.jp-head { position: relative; z-index: 2; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; text-align: center; }
.jp-crown { width: 74px; height: auto; margin-bottom: -2px; filter: drop-shadow(0 4px 12px rgba(245,179,1,.55)); animation: jpBob 3.2s ease-in-out infinite; }
@keyframes jpBob { 50% { transform: translateY(-5px); } }
.jp-title { margin: 0; font-size: clamp(34px, 4.2vw, 50px); font-weight: 900; line-height: 1.05; filter: drop-shadow(0 3px 0 #5a3500) drop-shadow(0 0 14px rgba(245,179,1,.45)); }
.jp-sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #fecaca; font-size: 11px; letter-spacing: .22em; }
.jp-live { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: jpPulse 1.6s ease-out infinite; }
@keyframes jpPulse { to { box-shadow: 0 0 0 9px rgba(239,68,68,0); } }
.jp-screen { position: relative; z-index: 2; display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: .3em; padding: .5em .9em; border-radius: 999px; font-size: clamp(24px, 3.9vw, 52px);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(185,28,28,.35), transparent 70%), linear-gradient(180deg, #0a0304, #160607);
  box-shadow: inset 0 0 0 2px #991b1b, inset 0 0 0 5px #090203, inset 0 0 0 7px rgba(245,179,1,.7), inset 0 8px 20px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), 0 0 34px rgba(220,38,38,.45); }
/* ไฟกะพริบรอบจอแบบตู้สล็อต: 2 ชั้นสลับกัน */
.jp-screen::before, .jp-screen::after { content: ""; position: absolute; inset: 11px; border-radius: inherit; border: 3px dotted #ffd36b; pointer-events: none; animation: jpBlink 1s steps(1) infinite; }
.jp-screen::after { inset: 11px; border-color: #ff6b5b; animation-delay: -.5s; }
@keyframes jpBlink { 50% { opacity: 0; } }
.jp-cur { position: relative; z-index: 1; color: #ff6b5b; font-weight: 800; line-height: 1; text-shadow: 0 0 12px rgba(239,68,68,.85), 0 2px 0 #450a0a; }
.jp-digits { position: relative; z-index: 1; display: flex; align-items: center; gap: .06em; font-weight: 800; }
.jp-d { position: relative; width: .74em; height: 1.22em; overflow: hidden; border-radius: .12em;
  background: linear-gradient(180deg, #2c1d10, #0c0705 48%, #000 52%, #1c130a); box-shadow: inset 0 0 0 1px rgba(255,224,138,.5), inset 0 2px 0 rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.65); }
.jp-d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.35) 50%, transparent 56%); }
.jp-strip { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.2,.9,.3,1.15); }
.jp-strip > span { height: 1.22em; line-height: 1.22em; text-align: center; color: #ffe08a; text-shadow: 0 0 10px rgba(245,179,1,.55), 0 2px 0 #6b4200; }
.jp-sep { width: .26em; color: #ffe08a; line-height: 1; text-align: center; text-shadow: 0 0 8px rgba(245,179,1,.6); }
.jp-coin { position: absolute; z-index: 1; width: 46px; height: 46px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); animation: jpFloat 4.5s ease-in-out infinite; }
.jp-coin.c1 { left: 1.5%; top: 8px; width: 38px; height: 38px; }
.jp-coin.c2 { left: 1.2%; bottom: 8px; width: 28px; height: 28px; animation-delay: -1.5s; }
.jp-coin.c3 { right: 1.2%; top: 6px; width: 34px; height: 34px; animation-delay: -2.2s; }
.jp-coin.c4 { right: 1.6%; bottom: 8px; width: 26px; height: 26px; animation-delay: -3.1s; }
@keyframes jpFloat { 50% { transform: translateY(-7px) rotate(10deg); } }
.jp-spark { position: absolute; z-index: 3; width: 18px; height: 18px; pointer-events: none; animation: jpTwinkle 2.6s ease-in-out infinite; }
.jp-spark.s1 { left: 9%; top: 14%; } .jp-spark.s2 { left: 21%; bottom: 18%; width: 12px; height: 12px; animation-delay: -.8s; }
.jp-spark.s3 { right: 6%; top: 18%; animation-delay: -1.4s; } .jp-spark.s4 { right: 34%; top: 6px; width: 12px; height: 12px; animation-delay: -2s; }
@keyframes jpTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (max-width: 767px) {
  .jp { border-radius: 22px; }
  .jp-body { flex-direction: column; gap: 12px; padding: 16px 12px 18px; border-radius: 19px; }
  .jp-rays { left: 50%; top: 30%; }
  .jp-head { flex-direction: row; gap: 10px; }
  .jp-crown { width: 50px; }
  .jp-head > div { text-align: left; }
  .jp-screen { width: 100%; padding: .45em .55em; font-size: clamp(22px, 6.2vw, 40px); }
  .jp-screen::before, .jp-screen::after { inset: 7px; border-width: 2px; }
  .jp-coin.c2, .jp-spark.s2 { display: none; }
}
