/* Cutoff Poker table effects: emotes, throwables, the emote picker and the winner spotlight.
   Motion only on transform / opacity (plus one brightness filter on small seat boxes); prefers-reduced-motion in
   styles.css switches every animation here off. Loaded after styles.css. */

/* ================================================================ the effects layer (inside the felt) */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 9; --em: 68px; }
.emote, .impact, .throw { position: absolute; width: var(--em); height: var(--em); margin: calc(var(--em) / -2) 0 0 calc(var(--em) / -2); pointer-events: none; }
.emote svg, .impact svg, .throw svg, .ep-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.emote { z-index: 2; animation: em-pop 2.7s cubic-bezier(.2, .8, .2, 1) forwards; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.emote small { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; font: 700 11px/17px var(--display); letter-spacing: .09em; text-transform: uppercase; color: #fff; background: rgba(4, 5, 10, .86); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 0 9px; }
@keyframes em-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.2) rotate(-14deg); }
  9% { opacity: 1; transform: translateY(-8px) scale(1.28) rotate(4deg); }
  16% { transform: translateY(-4px) scale(1) rotate(0); }
  84% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-34px) scale(.8); }
}
/* parts of a drawing move around their own centre */
.emote [class^="em-"], .ep-art [class^="em-"], .impact [class^="fx-"] { transform-box: fill-box; transform-origin: center; }

/* each emote has its own small performance; in the picker it plays while the button is hovered or pressed */
:is(.emote, .ep-btn:hover > .ep-art, .ep-btn:focus-visible > .ep-art) .em-tw { animation: em-twinkle .9s ease-in-out infinite; }
:is(.emote, .ep-btn:hover > .ep-art, .ep-btn:focus-visible > .ep-art) .em-tw.b { animation-delay: .3s; }
:is(.emote, .ep-btn:hover > .ep-art, .ep-btn:focus-visible > .ep-art) .em-tw.c { animation-delay: .6s; }
@keyframes em-twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(40deg); } }

:is(.emote, .ep-btn:hover > .ep-art).em-gg .em-body, :is(.emote, .ep-btn:hover > .ep-art).em-nh .em-body { animation: em-swell 1.1s ease-in-out infinite; }
@keyframes em-swell { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.08) rotate(3deg); } }
:is(.emote, .ep-btn:hover > .ep-art).em-nice .em-body { animation: em-pump .55s ease-in-out infinite alternate; transform-origin: 20% 90%; }
@keyframes em-pump { from { transform: rotate(-14deg) translateY(3px); } to { transform: rotate(4deg) translateY(-2px); } }
:is(.emote, .ep-btn:hover > .ep-art).em-laugh .em-body { animation: em-jig .2s ease-in-out infinite alternate; }
@keyframes em-jig { from { transform: translateY(1.5px) rotate(-5deg); } to { transform: translateY(-2.5px) rotate(5deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-squirt { animation: em-squirt-l .5s ease-out infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-squirt.r { animation-name: em-squirt-r; animation-delay: .12s; }
@keyframes em-squirt-l { 0% { opacity: 0; transform: translate(8px, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-7px, -9px) scale(1.1); } }
@keyframes em-squirt-r { 0% { opacity: 0; transform: translate(-8px, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(7px, -9px) scale(1.1); } }
:is(.emote, .ep-btn:hover > .ep-art).em-cry .em-body { animation: em-sob .5s ease-in-out infinite alternate; }
@keyframes em-sob { from { transform: translateY(0); } to { transform: translateY(2px) scale(1.02, .98); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-stream { transform-origin: top center; animation: em-stream .45s linear infinite alternate; }
:is(.emote, .ep-btn:hover > .ep-art) .em-stream.b { animation-delay: .2s; }
@keyframes em-stream { from { transform: scaleY(.75); opacity: .75; } to { transform: scaleY(1.1); opacity: 1; } }
:is(.emote, .ep-btn:hover > .ep-art) .em-fall { animation: em-fall .7s ease-in infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-fall.b { animation-delay: .35s; }
@keyframes em-fall { 0% { opacity: 0; transform: translateY(-8px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px) scale(1); } }
:is(.emote, .ep-btn:hover > .ep-art).em-wow .em-body { animation: em-gasp .8s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
@keyframes em-gasp { from { transform: scale(.94); } to { transform: scale(1.1); } }
:is(.emote, .ep-btn:hover > .ep-art).em-angry .em-body { animation: em-rage .09s linear infinite alternate; }
@keyframes em-rage { from { transform: translateX(-1.6px) rotate(-1.5deg); } to { transform: translateX(1.6px) rotate(1.5deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-steam { animation: em-steam 1s ease-out infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-steam.b { animation-delay: .25s; }
:is(.emote, .ep-btn:hover > .ep-art) .em-steam.c { animation-delay: .5s; }
@keyframes em-steam { 0% { opacity: 0; transform: translateY(8px) scale(.4); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateY(-12px) scale(1.5); } }
:is(.emote, .ep-btn:hover > .ep-art).em-cool .em-body { animation: em-lean 1.6s ease-in-out infinite alternate; }
@keyframes em-lean { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-glint { animation: em-glint 1.3s ease-in-out infinite; }
@keyframes em-glint { 0%, 55%, 100% { opacity: 0; transform: translateX(-4px); } 70% { opacity: .95; transform: translateX(0); } 85% { opacity: 0; transform: translateX(5px); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-beat { animation: em-beat .5s ease-in-out infinite alternate; }
@keyframes em-beat { from { transform: scale(.82); } to { transform: scale(1.22); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-rise { animation: em-rise 1.3s ease-out infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-rise.b { animation-delay: .4s; }
:is(.emote, .ep-btn:hover > .ep-art) .em-rise.c { animation-delay: .8s; }
@keyframes em-rise { 0% { opacity: 0; transform: translateY(12px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1.25); } }
:is(.emote, .ep-btn:hover > .ep-art).em-think .em-body { animation: em-lean 2s ease-in-out infinite alternate; }
:is(.emote, .ep-btn:hover > .ep-art) .em-bob { animation: em-bob .8s ease-in-out infinite alternate; }
@keyframes em-bob { from { transform: translateY(2px) rotate(-8deg); } to { transform: translateY(-3px) rotate(8deg); } }
:is(.emote, .ep-btn:hover > .ep-art).em-zzz .em-body { animation: em-doze 1.6s ease-in-out infinite alternate; }
@keyframes em-doze { from { transform: rotate(-6deg) scale(.98); } to { transform: rotate(3deg) scale(1.03); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-z { animation: em-z 1.8s ease-out infinite; opacity: 0; }
:is(.emote, .ep-btn:hover > .ep-art) .em-z.b { animation-delay: .45s; }
:is(.emote, .ep-btn:hover > .ep-art) .em-z.c { animation-delay: .9s; }
@keyframes em-z { 0% { opacity: 0; transform: translate(-6px, 8px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(5px, -9px) scale(1.15); } }
:is(.emote, .ep-btn:hover > .ep-art).em-sweat .em-body { animation: em-rage .14s linear infinite alternate; }
:is(.emote, .ep-btn:hover > .ep-art) .em-slide { animation: em-slide 1s ease-in infinite; }
@keyframes em-slide { 0% { opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(24px); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-flame { transform-origin: 50% 100%; animation: em-flame .28s ease-in-out infinite alternate; }
@keyframes em-flame { from { transform: scale(.96, 1.05) skewX(-3deg); } to { transform: scale(1.05, .95) skewX(3deg); } }
.emote.em-rocket .em-launch, .ep-art.em-rocket .em-launch { display: block; position: relative; width: 100%; height: 100%; }
.em-launch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(47, 140, 255, .7)); }
.emote.em-rocket .em-launch { animation: em-launch 2.5s cubic-bezier(.6, 0, .8, .4) forwards; }
.ep-btn:hover > .ep-art.em-rocket .em-launch { animation: em-rage .1s linear infinite alternate; }
@keyframes em-launch { 0%, 6% { transform: translate(0, 0); } 10%, 30%, 50% { transform: translate(-1.5px, 1px) rotate(-1.5deg); } 20%, 40% { transform: translate(1.5px, 0) rotate(1.5deg); } 58% { transform: translate(0, 4px); opacity: 1; } 100% { transform: translate(0, -260px) scale(.7); opacity: 0; } }
.emote.em-rocket { filter: none; }
:is(.emote, .ep-btn:hover > .ep-art) .em-tip { transform-origin: 50% 85%; animation: em-tip 1.2s ease-in-out infinite; }
@keyframes em-tip { 0%, 55%, 100% { transform: rotate(0) translateY(0); } 20% { transform: rotate(-22deg) translateY(-3px); } 38% { transform: rotate(5deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-swim { animation: em-swim .55s ease-in-out infinite alternate; }
@keyframes em-swim { from { transform: translateX(3px) rotate(-7deg); } to { transform: translateX(-3px) rotate(7deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-bub { animation: em-rise 1.2s ease-out infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-bub.b { animation-delay: .5s; }
:is(.emote, .ep-btn:hover > .ep-art) .em-cruise { animation: em-cruise 1.5s ease-in-out infinite alternate; }
@keyframes em-cruise { from { transform: translateX(-9px) rotate(-3deg); } to { transform: translateX(9px) rotate(3deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-wave { transform-origin: left center; animation: em-wave 1s linear infinite; }
:is(.emote, .ep-btn:hover > .ep-art) .em-wave.b { animation-duration: 1.5s; animation-direction: reverse; }
@keyframes em-wave { from { transform: translateX(0); } to { transform: translateX(12px); } }
.emote.em-shark svg, .ep-art.em-shark svg, .emote.em-fish svg { overflow: hidden; border-radius: 14px; }
:is(.emote, .ep-btn:hover > .ep-art) .em-ring { transform-origin: 50% 90%; animation: em-ringing .08s linear infinite alternate; }
@keyframes em-ringing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
:is(.emote, .ep-btn:hover > .ep-art) .em-shiver { animation: em-rage .07s linear infinite alternate; }
:is(.emote, .ep-btn:hover > .ep-art) .em-pop { animation: em-kernel .6s cubic-bezier(.3, 1.4, .6, 1) infinite alternate; }
:is(.emote, .ep-btn:hover > .ep-art) .em-pop.b { animation-delay: .3s; }
@keyframes em-kernel { from { transform: translateY(12px) scale(.6) rotate(0); opacity: 0; } to { transform: translateY(-4px) scale(1) rotate(50deg); opacity: 1; } }

/* ---------- throwables: across the table on an arc, then the hit ---------- */
.throw { z-index: 3; animation: th-x var(--dur, .8s) linear forwards; }
.throw > i { display: block; width: 100%; height: 100%; animation: th-y var(--dur, .8s) linear forwards; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .5)); }
@keyframes th-x { from { transform: translate(0, 0); } to { transform: translate(var(--tx, 0), var(--ty, 0)); } }
@keyframes th-y {
  0% { transform: translateY(0) rotate(0) scale(.45); animation-timing-function: cubic-bezier(.2, .7, .5, 1); }
  50% { transform: translateY(var(--arc, -70px)) rotate(calc(var(--spin, 540deg) / 2)) scale(1.15); animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  100% { transform: translateY(0) rotate(var(--spin, 540deg)) scale(.85); }
}
.impact { --em: 84px; z-index: 2; animation: im-hit 2.3s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
@keyframes im-hit { 0% { opacity: 1; transform: scale(.2) rotate(-20deg); } 7% { transform: scale(1.3) rotate(6deg); } 14% { transform: scale(1) rotate(0); } 72% { opacity: 1; transform: translateY(4px) scale(1); } 100% { opacity: 0; transform: translateY(18px) scale(.95); } }
.impact .fx-drips rect { transform-origin: top center; animation: im-drip 1.7s ease-in forwards; }
@keyframes im-drip { from { transform: scaleY(.3); } to { transform: scaleY(2.1); } }
.impact .fx-burst { animation: im-burst .9s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes im-burst { from { transform: scale(.2) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
/* the player who was hit flinches */
.seat.hit .who { animation: seat-hit .45s ease-out; }
@keyframes seat-hit { 0% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(-5px, 2px) rotate(-5deg); } 45% { transform: translate(4px, -1px) rotate(4deg); } 70% { transform: translate(-2px, 0) rotate(-2deg); } 100% { transform: none; } }

/* ---------- picking a player to throw at ---------- */
.felt-wrap.targeting .seat:not(.me):not(.empty) .avatar { box-shadow: 0 0 0 3px var(--pink), 0 0 22px rgba(255, 61, 154, .75); animation: target-pulse .7s ease-in-out infinite alternate; }
.felt-wrap.targeting .seat:not(.me):not(.empty) { z-index: 7; }
@keyframes target-pulse { from { transform: scale(1); } to { transform: scale(1.1); } }
.target-hint { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 8px; white-space: nowrap; background: rgba(4, 5, 10, .92); border: 1px solid var(--pink); color: #fff; border-radius: var(--r-pill); padding: 4px 6px 4px 6px; font-size: 13px; font-weight: 700; box-shadow: 0 0 18px rgba(255, 61, 154, .45); }
.target-hint .th-art { width: 26px; height: 26px; flex: none; }
.target-hint .th-art svg { width: 100%; height: 100%; display: block; }
.target-hint button { padding: 3px 10px; font-size: 12px; border-radius: var(--r-pill); }

/* ---------- the emote picker ---------- */
#emote-sheet { position: fixed; inset: 0; z-index: 48; }
#emote-sheet .ep-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 12, .35); }
.ep-panel { position: absolute; left: 12px; bottom: 96px; width: 392px; max-width: calc(100vw - 24px); max-height: min(70vh, 560px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e3); padding: 10px 10px 12px; animation: ep-in var(--t-enter) var(--ease-out); overscroll-behavior: contain; }
@keyframes ep-in { from { transform: translateY(14px); } to { transform: none; } }
.ep-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 8px; }
.ep-head b { font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.ep-head small { color: var(--muted); font-size: 12px; }
.ep-head.sub { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.ep-x { margin-left: auto; background: transparent; box-shadow: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 8px; }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ep-grid.ep-throw { grid-template-columns: repeat(6, 1fr); }
.ep-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; min-width: 0; }
.ep-btn:hover, .ep-btn:focus-visible { border-color: var(--gold); background: var(--bg-4); filter: none; }
.ep-btn:active { transform: scale(.94); }
.ep-art { width: 44px; height: 44px; display: block; }
.ep-grid.ep-throw .ep-art { width: 38px; height: 38px; }
.ep-btn small { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: .01em; }
.ep-panel.cooling .ep-btn { opacity: .45; pointer-events: none; }
/* the throw row in the player pop-up */
.throw-row { display: flex; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; align-items: center; }
.throw-row .ep-btn { flex: 1 1 0; min-width: 46px; padding: 6px 2px 4px; }
.throw-row .ep-art { width: 34px; height: 34px; }
#emoji-btn.emote-btn { padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; }
#emoji-btn.emote-btn .eb-art { width: 22px; height: 22px; display: block; }
#emoji-btn.emote-btn .eb-art svg { width: 100%; height: 100%; display: block; }

/* ================================================================ winner spotlight
   When a hand is paid the house lights drop, a beam swings across the table and locks on the winner, gold rays turn
   behind their portrait and a few sparks hang in the light. Every player and spectator sees it. */
.spot-dim { position: absolute; inset: -30px -12px; pointer-events: none; z-index: 1; opacity: 0; background: rgba(3, 5, 12, .5); animation: spot-fade 3.4s ease-out both; }
.spot-dim.one { background: radial-gradient(circle at var(--x) var(--y), rgba(3, 5, 12, 0) 0, rgba(3, 5, 12, 0) 54px, rgba(3, 5, 12, .5) 130px, rgba(3, 5, 12, .7) 260px); }
@keyframes spot-fade { 0% { opacity: 0; } 12% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }
.felt-wrap.spot-on .center, .felt-wrap.spot-on .result-banner { z-index: 2; }
.felt-wrap.spot-on .seat:not(.spot):not(.empty) { animation: spot-others 3.4s ease-out both; }
.felt-wrap.spot-on .bet-chip, .felt-wrap.spot-on .dealer-btn { animation: spot-others 3.4s ease-out both; }
@keyframes spot-others { 0% { filter: none; } 12%, 84% { filter: brightness(.48) saturate(.75); } 100% { filter: none; } }
.felt-wrap.spot-lite .spot-dim, .felt-wrap.spot-lite .spot-stars { display: none; }       /* a small pot: the beam and the rays, no blackout */
.felt-wrap.spot-lite .seat:not(.spot):not(.empty), .felt-wrap.spot-lite .bet-chip, .felt-wrap.spot-lite .dealer-btn { animation: none; }
.spot-beam { position: absolute; left: 50%; top: var(--oy, -7%); width: var(--w); height: var(--len); margin-left: calc(var(--w) / -2); pointer-events: none; z-index: 3; opacity: 0;
  transform-origin: 50% 0; transform: rotate(var(--a));
  background: conic-gradient(from 168deg at 50% 0, rgba(255, 255, 255, 0) 0deg, rgba(170, 214, 255, .26) 4deg, rgba(255, 248, 224, .58) 12deg, rgba(170, 214, 255, .26) 20deg, rgba(255, 255, 255, 0) 24deg);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .1), #000 45%, #000 84%, transparent); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .1), #000 45%, #000 84%, transparent);
  mix-blend-mode: screen; animation: spot-beam 3.4s cubic-bezier(.3, .7, .3, 1) both; will-change: transform, opacity; }
@keyframes spot-beam {
  0% { opacity: 0; transform: rotate(calc(var(--a) + var(--sw))); }
  10% { opacity: 1; }
  24% { transform: rotate(calc(var(--a) - var(--sw) * .16)); }
  34% { transform: rotate(calc(var(--a) + var(--sw) * .06)); }
  44%, 84% { opacity: 1; transform: rotate(var(--a)); }
  100% { opacity: 0; transform: rotate(var(--a)); }
}
.spot-pool { position: absolute; left: var(--x); top: var(--y); width: 230px; height: 150px; margin: -75px 0 0 -115px; pointer-events: none; z-index: 1; opacity: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 244, 214, .5), rgba(170, 214, 255, .16) 45%, rgba(255, 255, 255, 0) 70%); mix-blend-mode: screen; animation: spot-pool 3.4s ease-out both; }
@keyframes spot-pool { 0%, 22% { opacity: 0; transform: scale(.4); } 36% { opacity: 1; transform: scale(1.12); } 46%, 84% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.spot-stars { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; pointer-events: none; z-index: 6; }
.spot-stars i { position: absolute; left: var(--sx); top: var(--sy); width: 13px; height: 13px; margin: -6px 0 0 -6px; opacity: 0; background: #fff6d0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spot-star 1.1s ease-in-out var(--d, .9s) 2 both; }
@keyframes spot-star { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(60deg); } }
.seat.spot { z-index: 5; }
.seat.spot .who { animation: spot-pop .8s cubic-bezier(.3, 1.5, .5, 1) .9s both; }
@keyframes spot-pop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
.seat.spot .avatar-wrap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 250%; height: 250%; margin: -125% 0 0 -125%; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, .62) 0deg 8deg, rgba(255, 214, 102, 0) 8deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 22%, rgba(0, 0, 0, .55) 42%, transparent 68%); mask-image: radial-gradient(circle, #000 22%, rgba(0, 0, 0, .55) 42%, transparent 68%);
  animation: spot-rays 3.4s linear both; }
@keyframes spot-rays { 0%, 24% { opacity: 0; transform: rotate(0) scale(.5); } 38% { opacity: 1; transform: rotate(22deg) scale(1.05); } 84% { opacity: 1; transform: rotate(100deg) scale(1); } 100% { opacity: 0; transform: rotate(125deg) scale(1); } }
.seat.spot .avatar { animation: spot-ring 3.4s ease-out both; }
@keyframes spot-ring { 0%, 26% { box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 3px rgba(4, 5, 10, .6); } 40%, 84% { box-shadow: 0 0 0 3px #ffd34d, 0 0 30px rgba(255, 211, 77, .85), 0 4px 14px rgba(0, 0, 0, .6); } 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 3px rgba(4, 5, 10, .6); } }

@media (max-width: 640px) {
  .fx-layer { --em: 54px; }
  .impact { --em: 66px; }
  .emote small { font-size: 9.5px; line-height: 15px; padding: 0 7px; }
  .ep-panel { left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 72vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 12px 10px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .7); }
  #emote-sheet .ep-backdrop { background: rgba(3, 5, 12, .55); }
  .ep-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .ep-art { width: 42px; height: 42px; }
  .ep-btn { padding: 8px 1px 5px; }
  .spot-pool { width: 170px; height: 112px; margin: -56px 0 0 -85px; }
  .spot-dim.one { background: radial-gradient(circle at var(--x) var(--y), rgba(3, 5, 12, 0) 0, rgba(3, 5, 12, 0) 42px, rgba(3, 5, 12, .5) 104px, rgba(3, 5, 12, .7) 220px); }
  .target-hint { font-size: 12px; top: 2px; }
}

/* ================================================================ the deck seal (hand history, "How the shuffle works") */
.fair-box { border: 1px solid rgba(61, 220, 132, .28); border-radius: var(--r-md); padding: 12px 14px; background: rgba(61, 220, 132, .05); }
.fair-box h4 { margin: 0 0 6px; }
.fair-box p { margin: 0 0 8px; font-size: 13px; }
.fair-root { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; word-break: break-all; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 9px; color: var(--gold-2); -webkit-user-select: all; user-select: all; }
.fair-out { margin-top: 10px; font-size: 14px; min-height: 20px; }
