/* Table jackpot: corner badge on cash tables and the 3-second win celebration. */
/* The badge sits in the table's header row, on the same line as the table name and
   stakes, so it reads as part of the header rather than an object over the table. */
.game-room .table-jackpot{position:relative;flex:none;align-self:center;display:flex;align-items:center;gap:3px;height:28px;margin:0 auto 0 0;padding:0 10px 0 3px;box-sizing:border-box;overflow:hidden;border:1px solid #a8894a;border-radius:999px;background:linear-gradient(180deg,#1b2125,#12171a);box-shadow:inset 0 1px 0 #ead5a31f;pointer-events:auto}
/* It follows the table name and stakes on the left; the header buttons stay on the right. */
/* The name-and-stakes block normally reserves the width of both lines side by side.
   Stacking it as a grid makes it hug its text, so the badge sits right after it. */
.game-room .game-room-meta:has(+ .table-jackpot){display:grid;grid-template-columns:minmax(0,auto);justify-items:start;align-content:center;margin-right:0;flex:0 1 auto}
/* The site styles every svg as a line icon (no fill, currentColor stroke). The pot
   is a filled drawing, so those inherited defaults are switched off at its root. */
.game-room .table-jackpot>.jp-art{flex:none;width:24px;height:24px;overflow:visible;fill:none;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter}
.game-room .table-jackpot>b{position:relative;color:#f3d98f;font:600 13px/1 Outfit,system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.2px;white-space:nowrap}
/* The badge is a button: it opens the recent winners. */
.game-room button.table-jackpot{appearance:none;font:inherit;color:inherit;cursor:pointer;min-height:0;transition:border-color .15s ease,filter .15s ease}
.game-room button.table-jackpot:hover{border-color:#e0c273;filter:brightness(1.12)}
.game-room button.table-jackpot:focus-visible{outline:2px solid #ecd294;outline-offset:2px}
/* A light sheen crosses the pill now and then. */
.game-room .table-jackpot::after{content:"";position:absolute;top:0;bottom:0;left:-40px;width:22px;background:#fff3cf;opacity:.15;transform:skewX(-20deg);animation:jp-sweep 4.2s ease-in-out infinite;pointer-events:none}
.table-jackpot :is(.jp-coin,.jp-spark,.jp-pot){transform-box:fill-box;transform-origin:center}
.table-jackpot .jp-pot{transform-origin:50% 92%}
.table-jackpot .jp-coin{animation:jp-bob 2.8s ease-in-out infinite}
.table-jackpot .jp-coin-b{animation-delay:.6s}
.table-jackpot .jp-coin-c{animation-delay:1.2s}
.table-jackpot .jp-flip{animation:jp-flip 3.6s ease-in-out infinite}
.table-jackpot .jp-spark{animation:jp-twinkle 2s ease-in-out infinite}
.table-jackpot .jp-spark-b{animation-delay:.8s}
.table-jackpot .jp-spark-c{animation-delay:1.4s}
.table-jackpot .jp-drop{opacity:0}
/* The pot grew: a coin spins in, the pot squashes and the amount pops. */
.table-jackpot.is-adding .jp-drop{animation:jp-fall .65s cubic-bezier(.3,0,.7,1)}
.table-jackpot.is-adding .jp-pot{animation:jp-bump .4s ease-out .5s}
.table-jackpot.is-adding>b{animation:jp-pop .35s ease-out .5s}
/* The pot was won: it shakes and the coins are gone for a moment. */
.table-jackpot.is-won .jp-pot{animation:jp-shake .9s ease-in-out}
.table-jackpot.is-won .jp-coin{animation:jp-empty 2.2s ease-out}
@keyframes jp-sweep{0%,55%{left:-40px}85%,100%{left:120%}}
@keyframes jp-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.6px)}}
@keyframes jp-flip{0%,70%,100%{transform:scaleX(1) translateY(0)}80%{transform:scaleX(.15) translateY(-4px)}90%{transform:scaleX(1) translateY(-2px)}}
@keyframes jp-twinkle{0%,100%{transform:scale(.1);opacity:0}50%{transform:scale(1);opacity:1}}
@keyframes jp-fall{0%{transform:translateY(-26px) rotate(-40deg);opacity:0}25%{opacity:1}100%{transform:translateY(6px) rotate(20deg);opacity:0}}
@keyframes jp-bump{0%{transform:scale(1)}40%{transform:scale(1.09,.92)}70%{transform:scale(.97,1.04)}100%{transform:scale(1)}}
@keyframes jp-pop{0%{transform:scale(1)}45%{transform:scale(1.14)}100%{transform:scale(1)}}
@keyframes jp-shake{0%,100%{transform:rotate(0)}15%{transform:rotate(-10deg)}30%{transform:rotate(9deg)}45%{transform:rotate(-7deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-2deg)}}
@keyframes jp-empty{0%{opacity:1}25%,70%{opacity:0}100%{opacity:1}}
/* Motion switched off in the table options, or by the device: a still pot. */
.fx-motion-off .table-jackpot::after,.fx-motion-off .table-jackpot *,.fx-motion-off .table-jackpot>b{animation:none}
@media(prefers-reduced-motion:reduce){.table-jackpot::after,.table-jackpot *,.table-jackpot>b{animation:none}}
@media(max-width:700px){.game-room .table-jackpot{height:26px;padding:0 8px 0 2px}.game-room .table-jackpot>.jp-art{width:22px;height:22px}.game-room .table-jackpot>b{font-size:12px}}
.jackpot-celebration{position:fixed;inset:0;z-index:46;display:grid;place-items:center;padding:24px;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#0b0f1299 0,#0b0f1200 62%);animation:jackpot-fade 3s ease-out both}
.jackpot-celebration *{pointer-events:none}
.jackpot-celebration-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:min(420px,calc(100vw - 40px));padding:30px 28px 26px;overflow:hidden;border:1px solid #d5b577;border-radius:22px;background:radial-gradient(ellipse at 50% 0,#5a4a2a 0,#23292d 58%,#171c1f 100%);box-shadow:0 24px 70px #000c,0 0 0 6px #d5b57714,inset 0 1px 0 #ffe9b955;text-align:center;animation:jackpot-pop 3s cubic-bezier(.2,.9,.25,1) both}
.jackpot-celebration-rays{position:absolute;left:50%;top:50%;width:760px;height:760px;margin:-380px 0 0 -380px;background:repeating-conic-gradient(from 0deg,#ecd29422 0 9deg,transparent 9deg 22deg);opacity:.55;animation:jackpot-spin 9s linear infinite}
.jackpot-celebration-eyebrow{position:relative;color:#ecd294;font:700 13px/1.2 Outfit,system-ui,sans-serif;letter-spacing:5px}
.jackpot-celebration-amount{position:relative;color:#fff3cf;font:700 clamp(44px,12vw,64px)/1.05 Outfit,system-ui,sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #7a5d24,0 0 28px #ecd29466;animation:jackpot-amount 3s ease-out both}
.jackpot-celebration-winner{position:relative;color:#f0eee5;font:600 18px/1.3 Outfit,system-ui,sans-serif;overflow-wrap:anywhere}
.jackpot-celebration small{position:relative;color:#b8bfb2;font:500 12px/1.4 'DM Sans',system-ui,sans-serif}
.jackpot-celebration.is-own .jackpot-celebration-card{border-color:#f1d896;box-shadow:0 24px 70px #000c,0 0 0 6px #ecd29430,0 0 60px #ecd29440,inset 0 1px 0 #ffe9b977}
@keyframes jackpot-fade{0%{opacity:0}6%{opacity:1}88%{opacity:1}100%{opacity:0}}
@keyframes jackpot-pop{0%{transform:scale(.72);opacity:0}9%{transform:scale(1.05);opacity:1}15%{transform:scale(1)}88%{transform:scale(1);opacity:1}100%{transform:scale(.97);opacity:0}}
@keyframes jackpot-amount{0%,8%{transform:scale(.8)}18%{transform:scale(1.12)}28%,100%{transform:scale(1)}}
@keyframes jackpot-spin{to{transform:rotate(360deg)}}
.jackpot-celebration.no-motion,.jackpot-celebration.no-motion *{animation:none}
@media(prefers-reduced-motion:reduce){.jackpot-celebration,.jackpot-celebration *{animation:none}}
@media(max-width:700px){.jackpot-celebration-card{padding:24px 18px 20px;border-radius:18px}.jackpot-celebration-winner{font-size:16px}}

/* Administrator page. */
.jackpot-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}
.jackpot-admin-stats>div{padding:14px 16px;border:1px solid var(--line,#2a2e28);border-radius:12px;background:#161b1e}
.jackpot-admin-stats span{display:block;color:#9aa293;font-size:12px}
.jackpot-admin-stats strong{display:block;margin-top:4px;color:#ecd294;font:650 22px/1.2 Outfit,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.jackpot-admin-form{max-width:560px}
.jackpot-admin-form small{display:block;margin-top:5px;color:#9aa293;font-size:12px;line-height:1.45}
.jackpot-admin-form .jackpot-admin-toggle,.jackpot-admin-form .jackpot-admin-mode label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
.jackpot-admin-toggle input,.jackpot-admin-mode input{width:18px;height:18px;flex:none}
.jackpot-admin-mode{margin:0;padding:14px 16px;border:1px solid var(--line,#2a2e28);border-radius:12px;display:grid;gap:10px}
.jackpot-admin-mode legend{padding:0 6px;color:#9aa293;font-size:12px}
.jackpot-admin-note{color:#9aa293;font-size:12px}
.jackpot-admin-table{width:100%;border-collapse:collapse}
.jackpot-admin-table :is(th,td){padding:9px 10px;border-bottom:1px solid var(--line,#2a2e28);text-align:left}
.jackpot-admin-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:700px){.jackpot-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Winners popup. */
.jackpot-winners-intro{margin:0 0 14px;color:#b8bfb2;font-size:13px;line-height:1.5}
.jackpot-winners-empty{margin:0;padding:22px 8px;text-align:center;color:#b8bfb2}
.jackpot-winners-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.jackpot-winners-list>li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 12px;border:1px solid #2f383b;border-radius:10px;background:#161c1f}
.jackpot-winners-list>li:first-child{border-color:#a8894a;background:#1d211c}
.jackpot-winners-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#242d31;color:#b9a278;font:600 12px/1 Outfit,system-ui,sans-serif}
.jackpot-winners-list>li:first-child .jackpot-winners-rank{background:#c9a451;color:#1b1708}
.jackpot-winners-who{display:grid;min-width:0}
.jackpot-winners-who>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0eee5;font:600 14px/1.3 Outfit,system-ui,sans-serif}
.jackpot-winners-who>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9aa293;font-size:12px}
.jackpot-winners-list>li>b{color:#f3d98f;font:650 15px/1 Outfit,system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}

.jackpot-admin-form select{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line,#2a2e28);border-radius:10px;background:#101619;color:inherit;font:inherit}
/* FULL JACKPOT: the rare top prize. A larger card, a longer show, a pulsing halo, two rings of light and a burst of coins. */
.jackpot-celebration.is-full{animation-duration:6.5s;background:radial-gradient(ellipse at 50% 45%,#0b0f12e6 0,#0b0f1299 46%,#0b0f1200 78%)}
.jackpot-celebration.is-full .jackpot-celebration-card{width:min(540px,calc(100vw - 32px));padding:42px 34px 34px;gap:9px;border:2px solid #f1d896;border-radius:26px;background:radial-gradient(ellipse at 50% -10%,#8a6b2f 0,#3a3222 38%,#1b2224 72%,#12171a 100%);box-shadow:0 30px 90px #000d,0 0 0 8px #ecd29422,0 0 110px #ecd29455,inset 0 1px 0 #fff3cf88,inset 0 0 0 1px #7a5d24;animation:jackpot-pop 6.5s cubic-bezier(.2,.9,.3,1.2) both,jackpot-glow 1.6s ease-in-out infinite}
.jackpot-celebration.is-full .jackpot-celebration-rays{width:1100px;height:1100px;margin:-550px 0 0 -550px;opacity:.75;background:repeating-conic-gradient(from 0deg,#ffe9b938 0 7deg,transparent 7deg 18deg);animation-duration:7s}
.jackpot-celebration-halo{position:absolute;left:50%;top:50%;width:900px;height:900px;margin:-450px 0 0 -450px;background:repeating-conic-gradient(from 9deg,#d8b67524 0 4deg,transparent 4deg 30deg);animation:jackpot-spin 11s linear infinite reverse}
.jackpot-celebration.is-full .jackpot-celebration-eyebrow{font-size:17px;letter-spacing:9px;text-indent:9px;color:transparent;background:linear-gradient(100deg,#b58f4c 0,#fff3cf 30%,#f1d896 50%,#fff3cf 70%,#b58f4c 100%) 0 0/220% 100%;-webkit-background-clip:text;background-clip:text;animation:jackpot-shimmer 1.8s linear infinite}
.jackpot-celebration.is-full .jackpot-celebration-amount{font-size:clamp(56px,15vw,92px);text-shadow:0 3px 0 #7a5d24,0 0 44px #ecd294aa,0 0 90px #ecd29455;animation:jackpot-amount 6.5s ease-out both,jackpot-beat 1.1s ease-in-out .9s infinite}
.jackpot-celebration.is-full .jackpot-celebration-winner{font-size:21px;color:#fff3cf}
.jackpot-celebration.is-full .jackpot-celebration-card::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 36%,#fff3cf40 50%,transparent 64%);translate:-130% 0;animation:jackpot-sweep 2.2s ease-in-out .5s infinite}
/* The coins fly out from behind the card, so they never cover the amount. */
.jackpot-celebration-burst{position:absolute;left:50%;top:50%;width:0;height:0;z-index:0}
.jackpot-celebration.is-full .jackpot-celebration-card{z-index:1}
.jackpot-celebration-burst i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3cf,#e2bc7c 45%,#a97f3c 80%);box-shadow:inset 0 0 0 2px #f1d896,inset 0 0 0 4px #b58f4c,0 2px 6px #0009;opacity:0;scale:var(--s,1);animation:jackpot-coin 2.4s cubic-bezier(.15,.8,.3,1) var(--d,0ms) 2 both}
/* JACKPOT DROP: a share of the pot. A compact brass banner that slides down from the top and does not cover the table. */
.jackpot-celebration.is-drop{place-items:start center;padding-top:max(74px,10vh);background:none;animation-duration:3s}
.jackpot-celebration.is-drop .jackpot-celebration-card{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 14px;width:min(500px,calc(100vw - 28px));padding:15px 24px 14px;border-radius:18px;border-color:#b2965a;background:linear-gradient(115deg,#4a3f24 0,#2b2c20 46%,#1f2823 100%);box-shadow:0 14px 40px #000b,0 0 0 4px #d5b57718,inset 0 1px 0 #ffe9b944;animation:jackpot-drop-in 3s cubic-bezier(.2,.9,.3,1.15) both}
.jackpot-celebration.is-drop .jackpot-celebration-rays{display:none}
.jackpot-celebration.is-drop .jackpot-celebration-card::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 38%,#fff3cf33 50%,transparent 62%);translate:-130% 0;animation:jackpot-sweep 1.5s ease-in-out .25s 2}
.jackpot-celebration.is-drop .jackpot-celebration-eyebrow{flex-basis:100%;font-size:11px;letter-spacing:4px}
.jackpot-celebration.is-drop .jackpot-celebration-amount{font-size:clamp(30px,8vw,40px);text-shadow:0 2px 0 #7a5d24,0 0 18px #ecd29455;animation:jackpot-amount 3s ease-out both}
.jackpot-celebration.is-drop .jackpot-celebration-winner{font-size:16px}
.jackpot-celebration.is-drop small{flex-basis:100%}
.jackpot-celebration.is-drop.is-own .jackpot-celebration-card{border-color:#f1d896;box-shadow:0 14px 40px #000b,0 0 0 4px #ecd29430,0 0 36px #ecd29440,inset 0 1px 0 #ffe9b966}
@keyframes jackpot-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.14)}}
@keyframes jackpot-shimmer{to{background-position:-220% 0}}
@keyframes jackpot-beat{0%,100%{scale:1}50%{scale:1.045}}
@keyframes jackpot-sweep{0%{translate:-130% 0}60%,100%{translate:130% 0}}
@keyframes jackpot-coin{0%{opacity:0;transform:translate(0,0) rotate(0)}8%{opacity:1}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 120px)) rotate(540deg)}}
@keyframes jackpot-drop-in{0%{transform:translateY(-140%);opacity:0}10%{transform:translateY(6px);opacity:1}15%{transform:translateY(0)}86%{transform:translateY(0);opacity:1}100%{transform:translateY(-60%);opacity:0}}
.jackpot-celebration.no-motion .jackpot-celebration-burst,.jackpot-celebration.no-motion .jackpot-celebration-halo{display:none}
@media(prefers-reduced-motion:reduce){.jackpot-celebration-burst,.jackpot-celebration-halo{display:none}}
@media(max-width:700px){.jackpot-celebration.is-full .jackpot-celebration-card{padding:32px 20px 26px;border-radius:22px}.jackpot-celebration.is-full .jackpot-celebration-eyebrow{font-size:14px;letter-spacing:6px;text-indent:6px}.jackpot-celebration.is-full .jackpot-celebration-winner{font-size:18px}.jackpot-celebration.is-drop{padding-top:64px}.jackpot-celebration.is-drop .jackpot-celebration-card{padding:12px 16px 11px}}
