/* Block Party Jackpot (Components/Shared/JackpotBonus.razor, wwwroot/jackpot.js). Global, because the script builds the board. */
.jp-cabinet {
    --jp-felt: #0f5b43; --jp-felt-deep: #073426; --jp-ivory: #f6efdc; --jp-gold: #f2c94c; --jp-gold-deep: #a8781a; --jp-pink: #ff3d7f; --jp-aqua: #2de2e6;
    --jp-mini: #2fbf71; --jp-minor: #2f7bff; --jp-major: #a54dff; --jp-grand: #ff4d4d; --jp-muted: #a99fb8;
    --jp-display: "Arial Black", "Segoe UI Black", Impact, system-ui, sans-serif;
    position: relative; max-width: 860px; margin: 0 auto; border-radius: 26px; padding: 22px 18px 20px; color: var(--jp-ivory);
    background: linear-gradient(180deg, #221a2c, #17121f 40%, #120e18);
    box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px #3a2b47, inset 0 0 0 9px #120e18, inset 0 0 0 11px #4b3a14;
}
.jp-bulbs { position: absolute; inset: 4px; pointer-events: none; border-radius: 22px; }
.jp-bulb { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #5a4520; }
.jp-bulb.on { background: #fff6c9; box-shadow: 0 0 8px 2px var(--jp-gold), 0 0 18px 4px rgba(242,201,76,.45); }
.jp-cabinet.party .jp-bulb.on { background: #ffe1ef; box-shadow: 0 0 8px 2px var(--jp-pink), 0 0 22px 6px rgba(255,61,127,.5); }
.jp-marquee { text-align: center; display: grid; gap: 2px; padding: 4px 8px 12px; }
.jp-eyebrow { font-weight: 800; letter-spacing: .28em; text-transform: uppercase; font-size: .75rem; color: var(--jp-aqua); }
.jp-marquee h1 { margin: 0; font-family: var(--jp-display); font-size: clamp(1.7rem, 6vw, 2.9rem); line-height: 1; letter-spacing: .02em; color: var(--jp-gold); text-shadow: 0 3px 0 var(--jp-gold-deep), 0 0 24px rgba(242,201,76,.55); }
.jp-venue { color: var(--jp-muted); font-size: .9rem; }
.jp-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 4px 14px; }
.jp-prize { position: relative; border-radius: 12px; padding: 6px 6px 8px; text-align: center; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #000), color-mix(in srgb, var(--c) 18%, #000)); border: 2px solid color-mix(in srgb, var(--c) 80%, #fff); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.jp-prize .name { font-family: var(--jp-display); font-size: clamp(.75rem, 2.4vw, 1rem); letter-spacing: .06em; color: #fff; }
.jp-prize .amt { font-family: var(--jp-display); font-size: clamp(.72rem, 2.5vw, 1.1rem); color: var(--jp-gold); font-variant-numeric: tabular-nums; }
.jp-prize.grand { --c: var(--jp-grand); } .jp-prize.major { --c: var(--jp-major); } .jp-prize.minor { --c: var(--jp-minor); } .jp-prize.mini { --c: var(--jp-mini); }
.jp-prize::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: jp-shine 3.2s ease-in-out infinite; }
.jp-prize.major::after { animation-delay: .4s; } .jp-prize.minor::after { animation-delay: .8s; } .jp-prize.mini::after { animation-delay: 1.2s; }
.jp-prize.hit { animation: jp-flash .18s steps(2) 14; }
@keyframes jp-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes jp-flash { 50% { filter: brightness(2.2) saturate(1.4); transform: scale(1.06); } }
.jp-board { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(5px, 1.4vw, 10px); padding: clamp(8px, 2vw, 14px); border-radius: 18px; background: radial-gradient(circle at 50% 40%, var(--jp-felt), var(--jp-felt-deep)); box-shadow: inset 0 0 0 3px #0a2a1f, inset 0 10px 30px rgba(0,0,0,.55), 0 0 0 3px #4b3a14; }
.jp-board.shake { animation: jp-shake .35s ease-out; }
@keyframes jp-shake { 20% { transform: translate(-3px, 2px); } 45% { transform: translate(3px, -2px); } 70% { transform: translate(-2px, 1px); } }
.jp-cell { position: relative; aspect-ratio: 1 / 1.08; border-radius: 12px; overflow: hidden; background: #062a1e; box-shadow: inset 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 2px #0b3b2b; }
.jp-reel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-around; font-family: var(--jp-display); color: rgba(246,239,220,.55); font-size: clamp(.65rem, 2.4vw, 1.05rem); }
.jp-cell.spinning .jp-reel { animation: jp-reel .12s linear infinite; filter: blur(1.6px); }
@keyframes jp-reel { from { transform: translateY(-34%); } to { transform: translateY(0%); } }
.jp-cell.blank .jp-reel { opacity: .18; }
.jp-cell.locked .jp-reel { visibility: hidden; }
.jp-cell .coin { position: absolute; inset: 6%; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 4px; color: #16120c; background: linear-gradient(180deg, #fffaf0, var(--jp-ivory) 55%, #e2d7b8); box-shadow: 0 6px 0 #b9ab86, 0 10px 18px rgba(0,0,0,.45), inset 0 0 0 2px #d7caa2; }
.jp-cell .coin::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #cbbd95; opacity: .55; }
.jp-cell .coin .v { position: relative; font-family: var(--jp-display); font-size: clamp(.75rem, 3vw, 1.4rem); line-height: 1; color: #6b4a00; font-variant-numeric: tabular-nums; }
.jp-cell .coin .unit { position: relative; display: block; font-weight: 800; font-size: clamp(.5rem, 1.6vw, .7rem); letter-spacing: .12em; color: #7c6a43; }
.jp-cell .coin.jackpot { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 45%, #000), 0 0 22px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 0 2px rgba(255,255,255,.5); }
.jp-cell .coin.jackpot .v, .jp-cell .coin.collector .v { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); font-size: clamp(.6rem, 2.3vw, 1.05rem); }
.jp-cell .coin.jackpot .unit, .jp-cell .coin.collector .unit { color: rgba(255,255,255,.9); }
.jp-cell .coin.mini { --c: var(--jp-mini); } .jp-cell .coin.minor { --c: var(--jp-minor); } .jp-cell .coin.major { --c: var(--jp-major); }
.jp-cell .coin.collector { background: linear-gradient(180deg, #ffe7f1, #ff8fb8 50%, #c4245c); box-shadow: 0 6px 0 #7d143a, 0 0 26px rgba(255,61,127,.75), inset 0 0 0 2px rgba(255,255,255,.6); }
.jp-cell .coin.land { animation: jp-land .42s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes jp-land { 0% { transform: translateY(-60%) scale(1.5); opacity: 0; } 60% { transform: translateY(3%) scale(.96); opacity: 1; } 100% { transform: none; } }
.jp-cell.flash::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--jp-gold), 0 0 26px var(--jp-gold); animation: jp-glow .9s ease-out forwards; pointer-events: none; }
@keyframes jp-glow { from { opacity: 1; } to { opacity: 0; } }
.jp-cell .coin.counted { filter: brightness(.55) saturate(.6); transition: filter .25s; }
.jp-beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.jp-beams line { stroke: var(--jp-pink); stroke-width: 4; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 0 6px var(--jp-pink)); }
.jp-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 14px; }
.jp-lamps { display: flex; gap: 8px; align-items: center; }
.jp-lamps .label, .jp-meter .label { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--jp-muted); }
.jp-lamp { width: 26px; height: 26px; border-radius: 50%; background: #3a1420; box-shadow: inset 0 -3px 0 rgba(0,0,0,.5); display: grid; place-items: center; font-family: var(--jp-display); font-size: .75rem; color: #6d2a3c; }
.jp-lamp.on { background: radial-gradient(circle at 40% 35%, #ffd0de, var(--jp-pink) 60%, #9b1442); color: #fff; box-shadow: 0 0 14px var(--jp-pink), 0 0 30px rgba(255,61,127,.45); }
.jp-lamps.reset .jp-lamp.on { animation: jp-lampin .5s ease-out; }
@keyframes jp-lampin { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.jp-meter { justify-self: center; text-align: center; min-width: 0; }
.jp-total { font-family: var(--jp-display); font-size: clamp(1.5rem, 6vw, 2.5rem); color: var(--jp-gold); line-height: 1.05; text-shadow: 0 3px 0 var(--jp-gold-deep), 0 0 18px rgba(242,201,76,.5); font-variant-numeric: tabular-nums; }
.jp-count { font-family: var(--jp-display); color: var(--jp-aqua); text-align: right; }
.jp-count small { display: block; font-weight: 700; color: var(--jp-muted); letter-spacing: .14em; font-size: .68rem; text-transform: uppercase; }
.jp-controls { display: flex; justify-content: center; margin-top: 14px; }
.jp-banner { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 60; }
.jp-banner-word { font-family: var(--jp-display); font-size: clamp(2.4rem, 12vw, 6.5rem); line-height: .95; text-align: center; color: var(--jp-gold); text-shadow: 0 6px 0 var(--jp-gold-deep), 0 0 40px rgba(242,201,76,.8); animation: jp-banner 2.6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.jp-banner-word small { display: block; font-size: .32em; color: #fff; text-shadow: 0 3px 0 #000; letter-spacing: .08em; }
.jp-banner.grand .jp-banner-word { color: #ffd1d1; text-shadow: 0 6px 0 #7a1010, 0 0 50px rgba(255,77,77,.9); }
@keyframes jp-banner { 0% { transform: scale(.2) rotate(-6deg); opacity: 0; } 18% { transform: scale(1.12) rotate(2deg); opacity: 1; } 30% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); } }
.jp-shower { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 59; }
@media (max-width: 520px) { .jp-status { grid-template-columns: 1fr 1fr; } .jp-meter { grid-column: 1 / -1; order: -1; } .jp-lamp { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .jp-cell.spinning .jp-reel, .jp-prize::after, .jp-cell .coin.land, .jp-board.shake, .jp-prize.hit, .jp-lamps.reset .jp-lamp.on { animation: none !important; } }

/* The Holy-Moly Mack: the flip game's Holy-Moly bone, and his burst across the board when he turns up. */
.bone3d .front .mack { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bone3d .front .mack-word { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-weight: 900; font-size: .8rem; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 #7d143a, 0 0 10px rgba(255,61,127,.9); }
.mack-burst { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 60; }
.mack-burst img { width: min(70vw, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 0 0 4px #ff3d7f, 0 0 60px rgba(255,61,127,.8); animation: mack-in 2.2s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.mack-burst .mack-shout { position: absolute; bottom: 18%; font-weight: 900; font-size: clamp(2rem, 9vw, 4.5rem); letter-spacing: .04em; color: #fff; text-shadow: 0 5px 0 #7d143a, 0 0 30px rgba(255,61,127,.9); animation: mack-shout 2.2s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes mack-in { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 22% { transform: scale(1.08) rotate(2deg); opacity: 1; } 34% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes mack-shout { 0%, 20% { transform: scale(.3); opacity: 0; } 34% { transform: scale(1.15); opacity: 1; } 44% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mack-burst img, .mack-burst .mack-shout { animation: mack-fade 2.2s forwards; } @keyframes mack-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }
