/* Effect markers: area effects that fill the marker's box (objects/effectArt.js).
 *
 * Only transform and opacity animate, so a table full of effects stays on the compositor; no
 * filters, masks or per-frame scripts. Every layer's own style is a still pose of the whole
 * effect, which is what reduced effects show. Natural colours (fire, frost, poison, smoke, mist,
 * clouds) take the marker colour as a light accent; light, sparks, the magic circle, lightning
 * and the portal glow in it. */

.table-object[data-kind="marker"] > .table-marker[data-group="effect"] {
  position: relative;
  width: 100%;
  height: 100%;
}

.table-effect {
  --fx: var(--marker-color, var(--table-accent));
  position: absolute;
  inset: 0;
  container-type: size;
  pointer-events: none;
}

.table-effect > span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.table-effect__drawing {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Fire: tongues of flame over a glowing bed, embers rising. */
.table-effect--fire .table-effect__glow {
  inset: 25% 0 0;
  background: radial-gradient(ellipse 50% 42% at 50% 84%,
    color-mix(in srgb, rgb(255, 176, 64) 85%, var(--fx)) 0%,
    rgba(240, 96, 24, 0.42) 48%, rgba(200, 50, 16, 0.14) 72%, transparent 100%);
  animation: table-fx-breathe 2.6s ease-in-out infinite alternate;
}

.table-effect--fire .table-effect__flame {
  bottom: 10%;
  left: calc(33% + (var(--i) - 2) * 12%);
  width: 34%;
  height: 62%;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse 48% 62% at 50% 74%,
    rgba(255, 248, 214, 0.95) 0 14%, rgba(255, 198, 72, 0.92) 34%,
    rgba(244, 104, 28, 0.72) 58%, rgba(196, 40, 12, 0) 82%);
  transform-origin: 50% 100%;
  animation: table-fx-flicker 1.15s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.37s);
}

.table-effect--fire .table-effect__flame:nth-of-type(2),
.table-effect--fire .table-effect__flame:nth-of-type(6) { height: 40%; opacity: 0.85; }
.table-effect--fire .table-effect__flame:nth-of-type(3),
.table-effect--fire .table-effect__flame:nth-of-type(5) { height: 54%; }
.table-effect--fire .table-effect__flame:nth-of-type(4) { height: 74%; }

.table-effect--fire .table-effect__core {
  inset: 62% 30% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 230, 0.9), rgba(255, 214, 120, 0.45) 55%, transparent);
  animation: table-fx-breathe 1.7s ease-in-out infinite alternate;
}

.table-effect--fire .table-effect__ember {
  bottom: 22%;
  left: calc(30% + var(--i) * 10%);
  width: 3cqmin;
  height: 3cqmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255, 236, 170), rgba(255, 140, 40, 0.8) 60%, transparent);
  opacity: 0.8;
  transform: translateY(calc(var(--i) * -9cqh - 10cqh));
  animation: table-fx-ember 2.8s ease-in infinite;
  animation-delay: calc(var(--i) * -0.61s);
}

/* Light: a soft glow in the marker colour around a warm core, motes drifting in it. */
.table-effect--light .table-effect__halo {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, rgb(255, 250, 228) 72%, var(--fx)) 0%,
    color-mix(in srgb, var(--fx) 48%, transparent) 36%,
    color-mix(in srgb, var(--fx) 16%, transparent) 68%, transparent 100%);
  animation: table-fx-breathe 4.2s ease-in-out infinite alternate;
}

.table-effect--light .table-effect__core {
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 250, 0.95), rgba(255, 248, 220, 0.5) 50%, transparent);
  animation: table-fx-glimmer 3.1s ease-in-out infinite alternate;
}

.table-effect--light .table-effect__mote {
  top: calc(48% + sin(var(--i) * 137deg) * 26%);
  left: calc(48% + cos(var(--i) * 137deg) * 26%);
  width: 3cqmin;
  height: 3cqmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 245, 0.95), color-mix(in srgb, var(--fx) 50%, transparent) 70%, transparent);
  opacity: 0.75;
  animation: table-fx-mote 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.3s);
}

/* Smoke: grey puffs rising and spreading over a dark haze. */
.table-effect--smoke .table-effect__haze {
  inset: 30% 6% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 45% at 50% 75%,
    color-mix(in srgb, rgba(96, 98, 106, 0.55) 90%, var(--fx)), rgba(70, 72, 80, 0.2) 60%, transparent);
}

.table-effect--smoke .table-effect__puff {
  bottom: 4%;
  left: calc(25% + sin(var(--i) * 137deg) * 14%);
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, rgba(196, 198, 206, 0.5) 92%, var(--fx)), rgba(150, 152, 162, 0.24) 60%, transparent);
  opacity: 0.7;
  transform: translateY(calc(var(--i) * -8cqh)) scale(calc(0.7 + var(--i) * 0.1));
  animation: table-fx-rise 7.2s linear infinite;
  animation-delay: calc(var(--i) * -1.2s);
}

/* Sparks: a bright heart throwing streaks outward. */
.table-effect--sparks .table-effect__flash {
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--fx) 70%, transparent) 45%, transparent);
  animation: table-fx-glimmer 1.6s ease-in-out infinite alternate;
}

.table-effect--sparks .table-effect__spark {
  top: calc(50% - 1cqmin);
  left: 50%;
  width: 9cqmin;
  height: 2cqmin;
  border-radius: 2cqmin;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fx) 80%, #fff) 60%, #fff);
  transform-origin: 0 50%;
  opacity: 0.9;
  transform: rotate(calc(var(--i) * 36deg + 8deg)) translateX(26cqmin);
  animation: table-fx-burst 1.9s ease-out infinite;
  animation-delay: calc(var(--i) * -0.29s);
}

/* Magic circle: rings of runes turning against each other around a star. */
.table-effect--magic-circle .table-effect__glow {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fx) 28%, transparent) 55%,
    color-mix(in srgb, var(--fx) 40%, transparent) 88%, transparent 100%);
  animation: table-fx-breathe 3.6s ease-in-out infinite alternate;
}

.table-effect--magic-circle .table-effect__line {
  fill: none;
  stroke: color-mix(in srgb, var(--fx) 78%, #fff);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.table-effect--magic-circle .table-effect__line--thick {
  stroke: color-mix(in srgb, var(--fx) 40%, transparent);
  stroke-width: 4;
}

.table-effect--magic-circle .table-effect__line--runes {
  stroke-width: 2.4;
  stroke-dasharray: 1.5 2.5 5 2.5;
}

.table-effect--magic-circle .table-effect__line--small { stroke-dasharray: 1 2 3 2; }

.table-effect--magic-circle .table-effect__ring {
  transform-origin: 50px 50px;
  animation: table-fx-turn 40s linear infinite;
}

.table-effect--magic-circle .table-effect__ring--inner { animation-duration: 56s; animation-direction: reverse; }

/* Mist: pale bands drifting slowly over the ground. */
.table-effect--mist .table-effect__veil {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, rgba(222, 230, 238, 0.32) 90%, var(--fx)), transparent);
}

.table-effect--mist .table-effect__band {
  top: calc(4% + var(--i) * 20%);
  left: calc(-12% + sin(var(--i) * 151deg) * 10%);
  width: 110%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at calc(50% + cos(var(--i) * 151deg) * 12%) 50%,
    color-mix(in srgb, rgba(232, 238, 245, 0.42) 90%, var(--fx)), rgba(214, 222, 232, 0.14) 58%, transparent);
  opacity: 0.75;
  animation: table-fx-drift calc(13s + var(--i) * 3s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -4s);
}

/* Poison: a toxic pool, its fumes and bubbles that rise and burst. */
.table-effect--poison .table-effect__pool {
  inset: 32% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, rgba(118, 214, 72, 0.7) 85%, var(--fx)), rgba(56, 140, 40, 0.45) 55%, rgba(30, 80, 24, 0.12) 82%, transparent);
}

.table-effect--poison .table-effect__haze {
  inset: 0 8% 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 45% at 50% 70%, rgba(150, 230, 90, 0.28), transparent);
  animation: table-fx-breathe 3.8s ease-in-out infinite alternate;
}

.table-effect--poison .table-effect__bubble {
  bottom: calc(26% + sin(var(--i) * 151deg) * 14%);
  left: calc(20% + var(--i) * 11%);
  width: 9cqmin;
  height: 9cqmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 255, 160, 0.1) 50%, rgba(178, 255, 120, 0.85) 70%,
    rgba(120, 220, 80, 0.35) 86%, transparent);
  opacity: 0.85;
  transform: translateY(calc(var(--i) * -2cqh)) scale(0.8);
  animation: table-fx-bubble 3.3s ease-in infinite;
  animation-delay: calc(var(--i) * -0.55s);
}

/* Frost: an icy patch with crystals and glints. */
.table-effect--frost .table-effect__field {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, rgba(236, 248, 255, 0.6) 85%, var(--fx)), rgba(168, 214, 246, 0.38) 45%,
    rgba(140, 190, 236, 0.14) 74%, transparent);
  animation: table-fx-glimmer 6s ease-in-out infinite alternate;
}

.table-effect--frost .table-effect__flake-line {
  fill: none;
  stroke: rgba(240, 251, 255, 0.92);
  stroke-width: 1;
  stroke-linecap: round;
}

.table-effect--frost .table-effect__glint {
  top: calc(46% + sin(var(--i) * 137deg) * 32%);
  left: calc(46% + cos(var(--i) * 137deg) * 32%);
  width: 8cqmin;
  height: 8cqmin;
  background:
    radial-gradient(closest-side, #fff 0 14%, transparent 42%),
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.9) 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.9) 50%, transparent 54%);
  border-radius: 50%;
  opacity: 0.7;
  transform: scale(0.8);
  animation: table-fx-twinkle 2.7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.47s);
}

/* Lightning: a storm glow, bolts striking in turn and the flash they make. */
.table-effect--lightning .table-effect__storm {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--fx) 30%, rgba(44, 54, 96, 0.55)), rgba(24, 28, 56, 0.3) 62%, transparent);
}

.table-effect--lightning .table-effect__flash {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 244, 255, 0.7), color-mix(in srgb, var(--fx) 35%, transparent) 55%, transparent);
  opacity: 0.25;
  animation: table-fx-flash 4.2s linear infinite;
}

.table-effect--lightning .table-effect__bolt {
  opacity: 0.4;
  animation: table-fx-strike 4.2s linear infinite;
  animation-delay: calc(var(--i) * -1.4s);
}

.table-effect--lightning .table-effect__bolt:first-of-type { opacity: 1; }

.table-effect--lightning .table-effect__bolt-glow,
.table-effect--lightning .table-effect__bolt-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.table-effect--lightning .table-effect__bolt-glow {
  stroke: color-mix(in srgb, var(--fx) 60%, rgba(150, 200, 255, 0.5));
  stroke-opacity: 0.5;
  stroke-width: 7px;
}

.table-effect--lightning .table-effect__bolt-line {
  stroke: rgb(245, 250, 255);
  stroke-width: 2px;
}

/* Portal: a swirling vortex around a deep core. */
.table-effect--portal .table-effect__glow {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 50%, color-mix(in srgb, var(--fx) 46%, transparent) 76%, transparent);
  animation: table-fx-breathe 3.2s ease-in-out infinite alternate;
}

.table-effect--portal .table-effect__spiral {
  transform-origin: 50px 50px;
  animation: table-fx-turn 9s linear infinite;
}

.table-effect--portal .table-effect__spiral--inner { animation-duration: 6s; }

.table-effect--portal .table-effect__arm {
  fill: none;
  stroke: color-mix(in srgb, var(--fx) 70%, #fff);
  stroke-linecap: round;
  stroke-opacity: 0.85;
  stroke-width: 3;
}

.table-effect--portal .table-effect__arm--soft {
  stroke: color-mix(in srgb, var(--fx) 55%, transparent);
  stroke-width: 7;
  stroke-opacity: 0.5;
}

.table-effect--portal .table-effect__core {
  z-index: 1;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 8, 24, 0.95) 0 38%,
    color-mix(in srgb, var(--fx) 55%, #000) 70%, color-mix(in srgb, var(--fx) 30%, transparent) 92%, transparent);
  animation: table-fx-breathe 2.4s ease-in-out infinite alternate;
}

/* Clouds: semi-transparent clouds drifting slowly, with a faint shadow beneath. */
.table-effect--clouds .table-effect__cloud {
  width: 62%;
  height: 36%;
  background:
    radial-gradient(ellipse 26% 42% at 30% 58%, rgba(248, 250, 253, 0.8), rgba(236, 240, 247, 0.4) 62%, transparent),
    radial-gradient(ellipse 30% 50% at 52% 44%, rgba(252, 253, 255, 0.85), rgba(238, 242, 248, 0.42) 62%, transparent),
    radial-gradient(ellipse 24% 38% at 74% 60%, rgba(246, 248, 252, 0.78), rgba(232, 237, 245, 0.38) 62%, transparent),
    radial-gradient(ellipse 46% 26% at 52% 74%, color-mix(in srgb, rgba(180, 188, 204, 0.38) 88%, var(--fx)), transparent);
  opacity: 0.72;
  animation: table-fx-cloud calc(28s + var(--i) * 7s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -6s);
}

.table-effect--clouds .table-effect__cloud:nth-of-type(1) { top: 6%; left: 4%; }
.table-effect--clouds .table-effect__cloud:nth-of-type(2) { top: 30%; left: 38%; width: 58%; }
.table-effect--clouds .table-effect__cloud:nth-of-type(3) { top: 56%; left: 8%; width: 52%; opacity: 0.6; }
.table-effect--clouds .table-effect__cloud:nth-of-type(4) { top: 62%; left: 50%; width: 46%; height: 30%; opacity: 0.55; }

/* Whirlpool: a funnel of dark water with foam streaks curling into its eye, turning slowly. */
.table-effect--whirlpool .table-effect__water {
  inset: 2%;
  background:
    radial-gradient(closest-side, rgba(4, 18, 28, 0.95) 0 14%, rgba(12, 46, 62, 0.85) 30%, color-mix(in srgb, rgba(36, 104, 122, 0.6) 82%, var(--fx)) 62%, rgba(80, 150, 162, 0.22) 88%, transparent);
  border-radius: 50%;
  animation: table-fx-breathe 6s ease-in-out infinite alternate;
}

.table-effect--whirlpool .table-effect__eye {
  inset: 38%;
  background: radial-gradient(closest-side, rgba(0, 6, 10, 0.95), rgba(0, 10, 16, 0.6) 60%, transparent);
  border-radius: 50%;
}

.table-effect--whirlpool .table-effect__swirl {
  transform-origin: 50% 50%;
  animation: table-fx-turn-back 16s linear infinite;
}

.table-effect--whirlpool .table-effect__swirl--inner {
  animation-duration: 7s;
}

.table-effect--whirlpool .table-effect__foam-line {
  fill: none;
  stroke: color-mix(in srgb, rgba(236, 248, 250, 0.85) 85%, var(--fx));
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 26 10 8 12;
  opacity: 0.8;
}

.table-effect--whirlpool .table-effect__swirl--inner .table-effect__foam-line {
  stroke-width: 1.4;
  opacity: 0.6;
}

/* Sea spray: a wave curling over and breaking against a low rock, spray and foam bursting up
   where it strikes, a drifting veil of spray. */
.table-effect--seaspray .table-effect__surge {
  inset: 30% 0 0;
  background:
    radial-gradient(ellipse 56% 34% at 50% 64%, color-mix(in srgb, rgba(40, 110, 128, 0.5) 85%, var(--fx)), transparent),
    radial-gradient(ellipse 70% 18% at 50% 76%, rgba(16, 52, 64, 0.4), transparent);
}

/* The burst: foam clouds and droplets thrown up where the wave meets the rock, in front of the
   wave and the rock (the drawing comes after the layers). */
.table-effect--seaspray .table-effect__foam,
.table-effect--seaspray .table-effect__drop,
.table-effect--seaspray .table-effect__mist {
  z-index: 1;
}

.table-effect--seaspray .table-effect__foam {
  bottom: calc(18% + var(--i) * 6%);
  left: calc(56% + var(--i) * 9%);
  width: calc(30% - var(--i) * 4%);
  height: calc(40% + var(--i) * 6%);
  background:
    radial-gradient(ellipse 50% 40% at 50% 78%, rgba(252, 254, 255, 0.95), rgba(232, 244, 248, 0.55) 55%, transparent 75%),
    radial-gradient(ellipse 34% 30% at 40% 44%, rgba(248, 252, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 26% 24% at 62% 24%, color-mix(in srgb, rgba(240, 250, 252, 0.6) 85%, var(--fx)), transparent 70%);
  transform-origin: 50% 100%;
  animation: table-fx-surge calc(3s + var(--i) * 0.5s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
}

.table-effect--seaspray .table-effect__drop {
  bottom: 40%;
  left: calc(62% + var(--i) * 3%);
  width: 5.5cqmin;
  height: 5.5cqmin;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(220, 242, 248, 0.85) 45%, rgba(200, 232, 240, 0) 72%);
  border-radius: 50%;
  /* At rest: a fan of droplets thrown up and back over the crest. */
  transform: translate(calc((var(--i) - 5) * 1.6cqw), calc(-12cqh - (4 - var(--i)) * (4 - var(--i)) * -0.7cqh));
  animation: table-fx-spray calc(2.2s + var(--i) * 0.13s) ease-out infinite;
  animation-delay: calc(var(--i) * -0.37s);
}

.table-effect--seaspray .table-effect__mist {
  inset: 4% 0 34% 30%;
  background:
    radial-gradient(ellipse 40% 38% at 50% 64%, rgba(240, 248, 252, 0.42), transparent 70%),
    radial-gradient(ellipse 34% 30% at 72% 44%, rgba(236, 246, 250, 0.32), transparent 70%);
  animation: table-fx-drift 7s ease-in-out infinite alternate;
}

.table-effect--seaspray .table-effect__wave { fill: color-mix(in srgb, #1d6074 82%, var(--fx)); }
.table-effect--seaspray .table-effect__wave-face { fill: color-mix(in srgb, rgba(84, 168, 178, 0.75) 85%, var(--fx)); }

.table-effect--seaspray .table-effect__lip {
  fill: none;
  stroke: rgba(248, 253, 255, 0.95);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.table-effect--seaspray .table-effect__rock { fill: #3b4046; }
.table-effect--seaspray .table-effect__rock-edge { fill: none; stroke: rgba(150, 160, 170, 0.75); stroke-width: 1.2; stroke-linecap: round; }

.table-effect--seaspray .table-effect__lace {
  fill: none;
  stroke: rgba(246, 252, 255, 0.85);
  stroke-width: 2.4;
  stroke-linecap: round;
}

@keyframes table-fx-turn-back {
  to { transform: rotate(-360deg); }
}

@keyframes table-fx-surge {
  0%, 100% { opacity: 0.7; transform: scale(0.82, 0.55); }
  45% { opacity: 1; transform: scale(1.06, 1.12); }
  70% { opacity: 0.86; transform: scale(0.96, 0.86); }
}

@keyframes table-fx-spray {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc((var(--i) - 4) * 3cqw), -42cqh) scale(1.1); }
}

@keyframes table-fx-breathe {
  from { opacity: 0.72; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes table-fx-glimmer {
  from { opacity: 0.78; }
  to { opacity: 1; }
}

@keyframes table-fx-flicker {
  0% { opacity: 0.88; transform: scale(1, 1) skewX(-3deg); }
  50% { opacity: 1; transform: scale(0.9, 1.1) skewX(3deg); }
  100% { opacity: 0.92; transform: scale(1.06, 0.9) skewX(-1deg); }
}

@keyframes table-fx-ember {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-62cqh) translateX(4cqw) scale(1); }
}

@keyframes table-fx-mote {
  from { opacity: 0.35; transform: translate(-6cqmin, 4cqmin); }
  to { opacity: 0.95; transform: translate(6cqmin, -5cqmin); }
}

@keyframes table-fx-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-46cqh) scale(1.35); }
}

@keyframes table-fx-burst {
  0% { opacity: 1; transform: rotate(calc(var(--i) * 36deg + 8deg)) translateX(4cqmin) scaleX(0.4); }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 36deg + 8deg)) translateX(40cqmin) scaleX(1); }
}

@keyframes table-fx-turn {
  to { transform: rotate(360deg); }
}

@keyframes table-fx-drift {
  from { opacity: 0.6; transform: translateX(-9%); }
  to { opacity: 0.95; transform: translateX(9%); }
}

@keyframes table-fx-bubble {
  0% { opacity: 0; transform: translateY(0) scale(0.3); }
  20% { opacity: 0.95; }
  82% { opacity: 0.9; transform: translateY(-18cqh) scale(1); }
  100% { opacity: 0; transform: translateY(-21cqh) scale(1.5); }
}

@keyframes table-fx-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes table-fx-flash {
  0%, 86% { opacity: 0; }
  88% { opacity: 0.6; }
  90% { opacity: 0.1; }
  93% { opacity: 0.45; }
  100% { opacity: 0; }
}

@keyframes table-fx-strike {
  0%, 85% { opacity: 0; }
  87% { opacity: 1; }
  89% { opacity: 0.2; }
  92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes table-fx-cloud {
  from { opacity: 0.6; transform: translate(-14%, 3%); }
  to { opacity: 0.82; transform: translate(14%, -3%); }
}

/* Reduced effects (the device's switch, "reduce effects", the system setting): the still pose. */
body.table-effect-off--image-effects .table-effect *,
.is-effects-reduced .table-effect * {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .table-effect * { animation: none !important; }
}

/* Picker previews: the effect small, on a dark tile so pale effects show. */
.table-marker-picker__swatch--effect {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: radial-gradient(closest-side, rgba(var(--table-black-rgb), 0.15), rgba(var(--table-black-rgb), 0.45));
  border-radius: 10px;
}
