/* Slot games, alive (2026-10-27, the owner's): public/slotfx.js. The moving background behind each slot page, the
   pop on winning symbols, the screen shake and the six celebrations (each game its own headline style). */
canvas.sfx-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.sfx-host { position: relative; isolation: isolate; }
canvas.sfx-amb { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; }
.sfx-shake { animation: sfxShake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes sfxShake { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); } 30%, 50%, 70% { transform: translate(-5px, 2px); } 40%, 60% { transform: translate(5px, -1px); } }

/* a winning symbol pops, glows and throws light rays */
.sfx-hit { position: relative; animation: sfxPop .6s cubic-bezier(.3,1.6,.5,1) both; z-index: 2; }
.sfx-hit::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 10deg, rgba(255,255,255,0) 10deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: sfxSpin 2.4s linear infinite, sfxFade 1.6s ease-out both; }
@keyframes sfxPop { 0% { transform: scale(1); filter: brightness(1); } 35% { transform: scale(1.22) rotate(-3deg); filter: brightness(1.5) drop-shadow(0 0 12px #fff); } 70% { transform: scale(1.04) rotate(1deg); } 100% { transform: scale(1.08); filter: brightness(1.15) drop-shadow(0 0 8px rgba(255,255,255,.7)); } }
@keyframes sfxSpin { to { transform: rotate(360deg); } }
@keyframes sfxFade { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: .35; } }
.sl-cell.sfx-hit::before { inset: 4%; }
#jgBoard .sfx-hit { animation-duration: .35s; }

/* ---- the celebration ---- */
.sfx-cele { position: fixed; inset: 0; z-index: 9997; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.sfx-cele.sfx-nice { pointer-events: none; align-items: flex-start; padding-top: 30vh; }
.sfx-cele.out { animation: sfxOut .42s ease-in both; }
@keyframes sfxOut { to { opacity: 0; transform: scale(1.06); } }
.sfx-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,.45), rgba(0,0,0,.86)); animation: sfxIn .3s ease-out both; }
.sfx-rays { position: absolute; left: 50%; top: 42%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; opacity: .55; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--ray, rgba(255,214,90,.5)) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, transparent 70%);
  animation: sfxSpin 14s linear infinite, sfxIn .5s ease-out both; }
@keyframes sfxIn { from { opacity: 0; } }
.sfx-box { position: relative; text-align: center; padding: 0 16px; animation: sfxBoxIn .55s cubic-bezier(.2,1.6,.4,1) both; margin-top: -8vh; }
.sfx-nice .sfx-box { margin-top: 0; animation-duration: .4s; }
@keyframes sfxBoxIn { from { transform: scale(.2) rotate(-6deg); opacity: 0; } }
.sfx-word { font: 900 clamp(32px, 10vw, 60px)/1.02 'Outfit', system-ui, sans-serif; letter-spacing: .01em; text-transform: uppercase; max-width: 94vw; margin: 0 auto; text-wrap: balance;
  background: linear-gradient(#fff, var(--w1, #ffe27a) 45%, var(--w2, #ff9d00)); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px var(--ws, #5a1a00); paint-order: stroke fill; filter: drop-shadow(0 4px 0 var(--ws, #5a1a00)) drop-shadow(0 0 18px var(--wg, rgba(255,200,60,.8))); }
.sfx-nice .sfx-word { font-size: clamp(28px, 8vw, 44px); }
.sfx-word.slam { animation: sfxSlam .5s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes sfxSlam { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1); } }
.sfx-amt { margin-top: 10px; font: 700 clamp(30px, 10vw, 52px)/1 'Space Grotesk', system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px var(--wg, rgba(255,200,60,.8)), 0 3px 0 rgba(0,0,0,.5); }
.sfx-nice .sfx-amt { font-size: clamp(22px, 7vw, 34px); margin-top: 4px; }
.sfx-sub { margin-top: 10px; font: 700 13px 'Space Grotesk', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.sfx-tap { margin-top: 22px; font: 600 11px 'Outfit', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); animation: sfxBlink 1.2s ease-in-out infinite; }
@keyframes sfxBlink { 50% { opacity: .3; } }
.sfx-t2 .sfx-word { font-size: clamp(34px, 10.5vw, 64px); }
.sfx-t3 .sfx-word { font-size: clamp(36px, 11vw, 70px); animation: sfxSlam .5s cubic-bezier(.2,1.8,.4,1) both, sfxPulse 1s ease-in-out .5s infinite; }
@keyframes sfxPulse { 50% { transform: scale(1.06); } }

/* each game's own headline */
.sfx-k-slots { --w1: #d9ff4d; --w2: #ff4fa3; --ws: #1d4a0a; --wg: rgba(184,255,60,.85); --ray: rgba(184,255,60,.4); }
.sfx-k-slots .sfx-word { font-weight: 900; letter-spacing: .02em; transform-origin: 50% 80%; }
.sfx-k-slots .sfx-word:not(.slam) { animation: sfxWobble 1.4s ease-in-out infinite; }
@keyframes sfxWobble { 25% { transform: rotate(-2deg) scale(1.03); } 75% { transform: rotate(2deg) scale(1.03); } }
.sfx-k-buna { --w1: #ffd84a; --w2: #ff5a1a; --ws: #5a0a0e; --wg: rgba(255,110,30,.9); --ray: rgba(255,120,40,.45); }
.sfx-k-buna .sfx-word { animation: sfxFlicker .18s steps(2) infinite; }
.sfx-k-buna .sfx-word.slam { animation: sfxSlam .5s cubic-bezier(.2,1.8,.4,1) both, sfxFlicker .18s steps(2) .5s infinite; }
@keyframes sfxFlicker { 50% { filter: drop-shadow(0 4px 0 #5a0a0e) drop-shadow(0 0 26px rgba(255,140,30,1)); } }
.sfx-k-pharaoh { --w1: #ffe9a8; --w2: #c8851a; --ws: #10204a; --wg: rgba(242,193,78,.95); --ray: rgba(255,214,110,.55); }
.sfx-k-pharaoh .sfx-word { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: .06em; }
.sfx-k-gems { --w1: #7df9ff; --w2: #a04dff; --ws: #0a1a3a; --wg: rgba(125,249,255,.9); --ray: rgba(140,220,255,.4); }
.sfx-k-gems .sfx-word { background: linear-gradient(100deg, #fff 0%, #7df9ff 25%, #19c37d 45%, #a04dff 65%, #ff2e55 85%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: sfxSheen 1.6s linear infinite; }
.sfx-k-gems .sfx-word.slam { animation: sfxSlam .5s cubic-bezier(.2,1.8,.4,1) both, sfxSheen 1.6s linear infinite; }
@keyframes sfxSheen { to { background-position: -220% 0; } }
.sfx-k-adey { --w1: #fff27a; --w2: #ffb300; --ws: #1f5a1a; --wg: rgba(255,226,60,.9); --ray: rgba(255,232,90,.5); }
.sfx-k-adey .sfx-word:not(.slam) { animation: sfxBounce .9s ease-in-out infinite; }
@keyframes sfxBounce { 50% { transform: translateY(-6px) scale(1.03); } }
.sfx-k-sevens { --w1: #ffffff; --w2: #9aa3b5; --ws: #3a0d5c; --wg: rgba(255,79,216,.95); --ray: rgba(255,79,216,.35); }
.sfx-k-sevens .sfx-word { letter-spacing: .06em; animation: sfxNeon 1s steps(1) infinite; }
.sfx-k-sevens .sfx-word.slam { animation: sfxSlam .5s cubic-bezier(.2,1.8,.4,1) both, sfxNeon 1s steps(1) .5s infinite; }
@keyframes sfxNeon { 50% { filter: drop-shadow(0 4px 0 #3a0d5c) drop-shadow(0 0 22px #36d1ff); } }
/* Lucky Sevens: marquee bulbs chase round the screen */
.sfx-bulbs { position: absolute; inset: 10px; pointer-events: none; }
.sfx-bulbs i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ffcf2e; box-shadow: 0 0 10px #ffcf2e, 0 0 22px rgba(255,207,46,.6); animation: sfxBulb .6s steps(1) infinite; animation-delay: calc(var(--i) * -0.1s); }
.sfx-bulbs i:nth-child(3n) { background: #ff4fd8; box-shadow: 0 0 10px #ff4fd8, 0 0 22px rgba(255,79,216,.6); }
@keyframes sfxBulb { 50% { opacity: .2; } }
.sfx-bulbs i:nth-child(-n+9) { top: 0; left: calc((var(--i)) * 11.5%); }
.sfx-bulbs i:nth-child(n+10):nth-child(-n+18) { right: 0; top: calc((var(--i) - 9) * 11.5%); }
.sfx-bulbs i:nth-child(n+19):nth-child(-n+27) { bottom: 0; right: calc((var(--i) - 18) * 11.5%); }
.sfx-bulbs i:nth-child(n+28) { left: 0; bottom: calc((var(--i) - 27) * 11.5%); }
@media (prefers-reduced-motion: reduce) { .sfx-rays, .sfx-word, .sfx-hit, .sfx-hit::before, .sfx-bulbs i, .sfx-shake { animation: none !important; } }
html.lite .sfx-rays, html.lite .sfx-hit::before { display: none; }

/* ---- Stitch's symbol pictures (art-<game>-<symbol>.webp; casino.js symArt) in place of the drawings ---- */
img.sym-art { display: block; width: 90%; height: 90%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)); animation: symIdle 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.4s); }
@keyframes symIdle { 50% { transform: translateY(-2%) scale(1.03); } }
.ph-cell img.sym-art, .ad-cell img.sym-art, .jg-cell img.sym-art { height: calc(var(--cell) * .88); width: auto; max-width: 96%; aspect-ratio: 1; }
.sv-cell img.sym-art { height: calc(var(--cell) * .74); width: auto; max-width: 90%; aspect-ratio: 1; }
.sl-sym img.sym-art { width: 86%; height: 86%; }
/* a soft spotlight behind every picture, in the game's colour */
.ph-cell:has(> .sym-art), .ad-cell:has(> .sym-art), .sv-cell:has(> .sym-art) { position: relative; }
.ph-cell:has(> .sym-art) { background: radial-gradient(circle at 50% 45%, rgba(255,214,110,.22), rgba(31,79,209,.12) 55%, transparent 72%); }
.ad-cell:has(> .sym-art) { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.75), rgba(255,236,150,.25) 60%, transparent 75%); }
.sv-cell:has(> .sym-art) { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), rgba(225,228,240,.4) 65%, transparent 80%); }
.jg-cell:has(> .sym-art) { background: radial-gradient(circle at 50% 45%, rgba(125,255,190,.16), transparent 65%); }
.jg-cell.win img.sym-art { animation: jgGlow .4s ease-in-out infinite alternate; }
.ph-cell.glow img.sym-art { animation: phGlow .5s ease-in-out infinite alternate; }
.ad-cell.glow img.sym-art { animation: adGlow .5s ease-in-out infinite alternate; }
.ad-cell.hit img.sym-art { animation: adPop .5s ease-out; }
/* wild and bonus tags on the pictures (the drawings had the word inside) */
.ph-cell.s6:has(> .sym-art)::after, .ad-cell.s6:has(> .sym-art)::after, .sv-cell.s6:has(> .sym-art)::after, .ph-tallart b,
.ph-cell.s7:has(> .sym-art)::after, .ad-cell.s7:has(> .sym-art)::after, .sv-cell.s8:has(> .sym-art)::after {
  content: 'WILD'; position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px;
  font: 900 10px/1.4 'Outfit', system-ui, sans-serif; letter-spacing: .08em; color: #1a0630; background: linear-gradient(#fff3b0, #ffb800); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.ph-cell.s7:has(> .sym-art)::after { content: 'SCATTER'; background: linear-gradient(#bff6ff, #3fb8c9); }
.ad-cell.s7:has(> .sym-art)::after, .sv-cell.s8:has(> .sym-art)::after { content: 'BONUS'; background: linear-gradient(#bfe0ff, #2f7bff); color: #fff; }
/* the Pharaoh standing in his whole reel */
.ph-cell.ph-tallart { position: relative; background: radial-gradient(ellipse at 50% 45%, rgba(255,90,60,.55), rgba(176,18,27,.5) 45%, rgba(40,5,10,.6) 80%); border-radius: 12px; box-shadow: inset 0 0 0 2px #f2c14e, 0 0 24px rgba(242,193,78,.6); }
.ph-cell.ph-tallart img.sym-art { height: calc(var(--cell) * 2.1); max-width: 100%; animation: phWild .6s ease-out, symIdle 2.4s ease-in-out .6s infinite; filter: drop-shadow(0 0 14px rgba(255,214,110,.8)); }
.ph-tallart b { bottom: 4%; font-size: 13px; padding: 2px 10px; }
@media (prefers-reduced-motion: reduce) { img.sym-art { animation: none !important; } }
html.lite img.sym-art { animation: none; }
/* second batch (2026-10-27): Stitch pictures in Lucky Scratch, Buna Scratch, Mines and Towers */
.sc-token span img.sym-art { width: 1.55em; height: 1.55em; margin: 0 auto 2px; }
.bs-token img.sym-art { width: 80%; height: 80%; }
.bs-mini i img.sym-art { width: 100%; height: 100%; animation: none; filter: none; }
.mn-face img.sym-art { width: 112%; height: 112%; filter: none; }
.tw-tile img.sym-art { width: 34px; height: 34px; }
.tw-tile.shown-trap img.sym-art { opacity: .55; }
