/* Dice3D (static/js/dice3d.js): the 3D dice every dice game shares. Prefix: cd-. The host element (the felt's dice layer)
 * is positioned by the game; the dice are drawn inside it with transforms only (no per-frame layout). The skin's look
 * (faces, pips, materials, idle loops) is DiceSkin's (static/js/dice_skin.js, prefix dk-); here: the cube and the
 * throw's effects. */
.cd-layer, .cd-slot { position: absolute; inset: 0; }
.cd-slot { perspective: 1400px; }
.cd-shadow { position: absolute; left: 0; top: 0; width: var(--ds, 30px); height: calc(var(--ds, 30px) * .5); margin: calc(var(--ds, 30px) * -.25) 0 0 calc(var(--ds, 30px) * -.5);
    border-radius: 50%; background: radial-gradient(rgba(0,0,0,.65), transparent 70%); }
.cd-die { position: absolute; left: 0; top: 0; width: 0; height: 0; perspective: none; }
.cd-cube { position: absolute; left: 0; top: 0; width: var(--ds); height: var(--ds); margin: calc(var(--ds) / -2) 0 0 calc(var(--ds) / -2);
    transform-style: preserve-3d; will-change: transform; }
.cd-face { position: absolute; inset: 0; backface-visibility: hidden; }
/* The light falls from the top left: a face turned away from it is darker (--sh, written as the die turns; 0 = facing up). */
.cd-face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--sh, 0); pointer-events: none; z-index: 3; }
/* The skins' idle loops hold while the dice move (Dice3D sets .cd-moving for as long as it draws frames). */
.cd-moving *, .cd-moving *::before, .cd-moving *::after { animation-play-state: paused !important; }
/* A winning landing lights the pips for a moment (every skin with a moment). */
.cd-die.dk-struck .dk-face i:not(.off), .cd-die.dk-struck .dk-ace { animation: cd-struck 1.1s ease-out; }
@keyframes cd-struck { 20% { filter: brightness(1.8); box-shadow: 0 0 14px var(--glow, #fde68a); } }

/* ---- the throw's effects (one-shot pieces in the host, pointer-transparent) ---- */
.cd-trail { position: absolute; left: 0; top: 0; pointer-events: none; }
.cd-spark, .cd-ember, .cd-steam, .cd-glow, .cd-flare, .cd-frost { position: absolute; pointer-events: none; z-index: 31; }
.cd-spark { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 8px #fbbf24;
    animation: cd-fly .9s ease-out both; }
.cd-spark.cd-blue { background: #e0e7ff; box-shadow: 0 0 8px #818cf8; }
.cd-ember { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: radial-gradient(circle, #fff7d6, #fb923c 55%, #b91c1c);
    box-shadow: 0 0 10px rgba(249,115,22,.9); animation: cd-fly 1.5s cubic-bezier(.2,.6,.4,1) both; }
.cd-steam { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, rgba(241,245,249,.75), transparent 70%);
    filter: blur(2px); animation: cd-steam 1.7s ease-out both; }
@keyframes cd-fly { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.3); } }
@keyframes cd-steam { from { opacity: .9; transform: translate(0, 0) scale(.5); } to { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(2.6); } }
.cd-flare { width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); border-radius: 50%;
    background: radial-gradient(circle, transparent 38%, rgba(254,240,138,.9) 48%, rgba(249,115,22,.6) 58%, transparent 70%); animation: cd-flare 1s ease-out both; }
@keyframes cd-flare { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1); } }
.cd-frost { width: var(--fs); height: calc(var(--fs) * .55); margin: calc(var(--fs) * -.275) 0 0 calc(var(--fs) / -2); border-radius: 50%; z-index: 0;
    background: radial-gradient(ellipse, rgba(240,249,255,.25) 0 26%, rgba(224,242,254,.8) 42%, rgba(186,230,253,.4) 58%, transparent 72%); animation: cd-frost 3s ease-out both; }
@keyframes cd-frost { from { opacity: 0; transform: scale(.55); } 12% { opacity: 1; } to { opacity: 0; transform: scale(1); } }
.cd-glow { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle, var(--gc, #fde68a), transparent 65%);
    opacity: 0; animation: cd-glow 1.4s ease-in-out both; }
@keyframes cd-glow { 30% { opacity: .55; } to { opacity: 0; } }
.cd-bolt { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 32; overflow: visible; animation: cd-bolt .6s steps(1) both; }
.cd-bolt polyline { fill: none; stroke: #eef2ff; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 6px #818cf8); }
@keyframes cd-bolt { 0% { opacity: 1; } 18% { opacity: .2; } 30% { opacity: 1; } 70% { opacity: .6; } 100% { opacity: 0; } }
.cd-flash { position: absolute; inset: 0; pointer-events: none; z-index: 30; background: radial-gradient(circle var(--fr, 240px) at var(--fx, 50%) var(--fy, 50%), rgba(224,231,255,.6), transparent);
    animation: cd-flash .35s ease-out both; }
@keyframes cd-flash { from { opacity: 1; } to { opacity: 0; } }
/* Penumbra's totality (Dice3D totality()): the faces go black under their lit pips, a ragged corona flares out from
   under each die, and the diamond ring catches at second contact (.cd-diamond) and at third contact (.cd-third). */
.cd-die.dk-eclipsed .dk-face { animation: cd-eclipsed 1.6s ease-in-out; }
@keyframes cd-eclipsed { 20%, 68% { box-shadow: inset 0 0 0 calc(var(--ds) * 2) rgba(3,2,6,.9), inset 0 0 0 1px rgba(253,230,138,.85); } }
.cd-corona, .cd-diamond { position: absolute; pointer-events: none; width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); border-radius: 50%; }
.cd-corona { opacity: 0;
    background: radial-gradient(circle closest-side, #050403 0 17%, #fffdf2 19%, #fde68a 23%, rgba(245,158,11,.5) 34%, rgba(180,83,9,.18) 52%, transparent 70%),
        conic-gradient(from 15deg, rgba(255,247,214,.8) 0deg, transparent 10deg 32deg, rgba(253,230,138,.65) 40deg, transparent 50deg 86deg, rgba(255,247,214,.75) 95deg,
            rgba(245,158,11,.3) 104deg, transparent 110deg 148deg, rgba(253,230,138,.6) 156deg, transparent 166deg 200deg, rgba(255,247,214,.8) 208deg, transparent 220deg 256deg,
            rgba(245,158,11,.6) 265deg, transparent 276deg 304deg, rgba(255,247,214,.7) 312deg, transparent 324deg);
    -webkit-mask-image: radial-gradient(circle closest-side, #000 0 24%, rgba(0,0,0,.6) 46%, transparent 92%);
    mask-image: radial-gradient(circle closest-side, #000 0 24%, rgba(0,0,0,.6) 46%, transparent 92%);
    animation: cd-corona 1.6s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cd-corona { 0%, 12% { opacity: 0; transform: scale(.45) rotate(0deg); } 28% { opacity: 1; transform: scale(1) rotate(8deg); } 64% { opacity: .9; transform: scale(1.12) rotate(16deg); } 100% { opacity: 0; transform: scale(1.2) rotate(22deg); } }
.cd-diamond { z-index: 32; opacity: 0;
    background: radial-gradient(circle closest-side, #fff 0 7%, #fffdf2 12%, rgba(253,230,138,.5) 26%, rgba(245,158,11,.14) 46%, transparent 72%),
        linear-gradient(90deg, transparent, rgba(255,253,242,.5) 30%, #fff 50%, rgba(255,253,242,.5) 70%, transparent) 50% 50% / 100% 3% no-repeat,
        linear-gradient(0deg, transparent 12%, rgba(255,253,242,.45) 34%, #fff 50%, rgba(255,253,242,.45) 66%, transparent 88%) 50% 50% / 2.4% 100% no-repeat;
    animation: cd-diamond .6s ease-out both; }
.cd-diamond.cd-third { animation-delay: 1s; }
@keyframes cd-diamond { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(.6); } }
/* reduce flashing: the rings and the corona rise over 0.3 s or more to a third of their light */
html.calm-flash .cd-diamond { animation: cd-diamond-calm .75s ease-in-out both; }
html.calm-flash .cd-diamond.cd-third { animation-delay: .9s; }
@keyframes cd-diamond-calm { 0% { opacity: 0; transform: scale(.8); } 50% { opacity: .3; transform: scale(.9); } 100% { opacity: 0; transform: scale(.9); } }
html.calm-flash .cd-corona { animation-name: cd-corona-calm; }
@keyframes cd-corona-calm { 0%, 6% { opacity: 0; transform: scale(.85); } 30%, 64% { opacity: .32; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }
/* Celestial Globe's stars (Dice3D stars()): a gold armillary ring opens out from under each die, and four-pointed gold
   stars burst and rise, twinkling once on the way. */
.cd-armil, .cd-sun { position: absolute; pointer-events: none; width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); border-radius: 50%; opacity: 0; }
.cd-armil { background: radial-gradient(circle closest-side, rgba(255,241,196,.5) 0 14%, rgba(233,196,106,.12) 30%, transparent 38%, rgba(255,236,176,1) 44%, rgba(201,162,74,.85) 48%, transparent 52%,
    transparent 66%, rgba(243,213,138,.75) 69%, transparent 72%);
    animation: cd-armil 1.3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cd-armil { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1) rotate(25deg); } }
.cd-star { position: absolute; pointer-events: none; z-index: 31; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff3c4;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 3px #e9c46a);
    animation: cd-star 1.5s cubic-bezier(.2,.6,.4,1) both; }
@keyframes cd-star { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 45% { opacity: 1; transform: translate(calc(var(--sx) * .6), calc(var(--sy) * .6)) scale(1.35); }
    60% { opacity: .7; transform: translate(calc(var(--sx) * .75), calc(var(--sy) * .75)) scale(.8); } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.4); } }
.cd-spark.cd-gold { background: #f3d58a; box-shadow: 0 0 8px #e9c46a; }
/* Neon Wireframe's sunset (Dice3D sunset()): a striped sun - yellow to hot pink, its lower half cut by widening bars - rises
   behind each die out of a pink horizon glow, then sinks back. */
.cd-sun { background: radial-gradient(ellipse 60% 14% at 50% 64%, rgba(255,60,172,.85), transparent 72%),
    linear-gradient(180deg, #ffe66d 0%, #ffb347 30%, #ff6f91 55%, #ff3cac 80%);
    -webkit-mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 55%, #000 55% 61%, transparent 61% 65%, #000 65% 70%, transparent 70% 76%, #000 76% 80%, transparent 80% 88%, #000 88%),
        radial-gradient(circle closest-side, #000 0 96%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 55%, #000 55% 61%, transparent 61% 65%, #000 65% 70%, transparent 70% 76%, #000 76% 80%, transparent 80% 88%, #000 88%),
        radial-gradient(circle closest-side, #000 0 96%, transparent 100%); mask-composite: intersect;
    filter: drop-shadow(0 0 10px rgba(255,60,172,.8)); animation: cd-sun 1.6s cubic-bezier(.25,.7,.3,1) both; }
@keyframes cd-sun { 0% { opacity: 0; transform: translateY(30%) scale(.55); } 30% { opacity: 1; transform: translateY(-8%) scale(1); } 70% { opacity: .9; transform: translateY(-12%) scale(1.04); }
    100% { opacity: 0; transform: translateY(6%) scale(.9); } }
.cd-spark.cd-pink { background: #ff8fcf; box-shadow: 0 0 8px #ff3cac; } .cd-spark.cd-aqua { background: #b8fffb; box-shadow: 0 0 8px #2ee6e0; }
html.calm-flash .cd-sun { filter: none; animation-name: cd-sun-calm; }
@keyframes cd-sun-calm { 0% { opacity: 0; transform: translateY(-8%); } 40%, 60% { opacity: .55; transform: translateY(-8%); } 100% { opacity: 0; transform: translateY(-8%); } }
html.gfx-low .cd-star, html.gfx-low .cd-sun { filter: none; }
/* Ink Brush's hit (Dice3D inkhit()): an ink-edged blaze-orange impact star slams out under each die in a ring of
   focus lines, ink drops fly and the dice jolt. Reduce flashing: the star swells in at half light, slower. */
.cd-inkhit { position: absolute; pointer-events: none; width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2);
    opacity: 0; animation: cd-inkhit .9s cubic-bezier(.2,.8,.3,1) both; }
.cd-inkhit svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes cd-inkhit { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 14% { opacity: 1; transform: scale(1.12) rotate(4deg); } 26% { transform: scale(1) rotate(0); }
    70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08) rotate(3deg); } }
.cd-inkdrop { position: absolute; pointer-events: none; z-index: 31; width: 6px; height: 5px; margin: -2.5px 0 0 -3px; border-radius: 50% 45% 55% 50%;
    background: #0b0b0d; box-shadow: 0 0 0 1px rgba(255,253,246,.8); animation: cd-fly .8s cubic-bezier(.2,.7,.4,1) both; }
.cd-inkdrop:nth-child(3n) { background: #ff6a13; }
.cd-die.cd-jolt .cd-cube { animation: cd-jolt .38s linear; }
@keyframes cd-jolt { 0%, 100% { translate: 0 0; } 20% { translate: calc(var(--ds) * -.06) calc(var(--ds) * .04); } 45% { translate: calc(var(--ds) * .05) calc(var(--ds) * -.03); }
    70% { translate: calc(var(--ds) * -.02) calc(var(--ds) * .02); } }
html.calm-flash .cd-inkhit { animation-name: cd-inkhit-calm; animation-duration: 1s; }
@keyframes cd-inkhit-calm { 0% { opacity: 0; transform: scale(.7); } 40%, 70% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
html.calm-motion .cd-inkhit, html.calm-motion .cd-inkdrop { display: none; }
html.calm-motion .cd-die.cd-jolt .cd-cube { animation: none; }
/* The Venus Throw (Dice3D venus()): Fortuna's wheel rises in gilt behind the dice and turns one spoke (.cd-rota), a ring
   of gilt light opens under each die (.cd-gildring), gilt tesserae and a few marble chips fly (.cd-tessera) and VENVS is
   cut on a porphyry tablet above them (.cd-venus). Reduce flashing: the wheel and the tablet at half light, no ring. */
.cd-rota, .cd-gildring, .cd-venus { position: absolute; pointer-events: none; width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); opacity: 0; }
.cd-rota svg, .cd-venus svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cd-rota { animation: cd-rota 1.8s cubic-bezier(.25,.7,.3,1) both; }
@keyframes cd-rota { 0% { opacity: 0; transform: scale(.55) rotate(-45deg); } 22% { opacity: .95; } 70% { opacity: .9; transform: scale(1) rotate(0deg); } 100% { opacity: 0; transform: scale(1.04) rotate(0deg); } }
.cd-gildring { border-radius: 50%; background: radial-gradient(circle closest-side, transparent 0 56%, rgba(255,243,207,.9) 64%, rgba(212,166,74,.55) 74%, transparent 86%);
    animation: cd-gildring 1s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cd-gildring { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
.cd-venus { z-index: 32; height: calc(var(--fs) * .33); margin-top: calc(var(--fs) * -.165); animation: cd-venus 1.8s cubic-bezier(.3,1.3,.5,1) .15s both; }
@keyframes cd-venus { 0% { opacity: 0; transform: translateY(30%) scale(.8); } 20% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12%); } }
.cd-spark.cd-tessera { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 1px; background: linear-gradient(135deg, #fff3cf, #d4a64a 55%, #a8741c);
    box-shadow: 0 0 0 .5px rgba(110,74,16,.7); }
.cd-spark.cd-tessera.cd-marble { background: linear-gradient(135deg, #fbf8f1, #ddd2c0); }
html.calm-flash .cd-rota { animation-name: cd-rota-calm; }
@keyframes cd-rota-calm { 0% { opacity: 0; transform: rotate(-45deg); } 40%, 65% { opacity: .5; } 100% { opacity: 0; transform: rotate(0deg); } }
html.calm-flash .cd-gildring { display: none; }
html.gfx-low .cd-rota circle:first-of-type { display: none; }
/* Hardware's overload (Dice3D glitch()): under each die its picture tears - bands of cyan and signal red split off a dark
   block and jump sideways in steps, then cut out - and square bits of data spray off it. */
.cd-glitch { position: absolute; pointer-events: none; width: var(--fs); height: calc(var(--fs) * .8); margin: calc(var(--fs) * -.4) 0 0 calc(var(--fs) / -2); opacity: 0;
    background: linear-gradient(180deg, transparent 0 14%, rgba(0,240,255,.75) 14% 19%, transparent 19% 31%, rgba(5,7,10,.7) 31% 44%, rgba(255,42,60,.8) 44% 48%,
        transparent 48% 60%, rgba(244,255,42,.6) 60% 63%, transparent 63% 74%, rgba(0,240,255,.55) 74% 80%, transparent 80%);
    animation: cd-glitch .9s steps(1, end) both; }
@keyframes cd-glitch { 0% { opacity: 1; transform: translateX(-12%) scaleY(.8); } 12% { opacity: .5; transform: translateX(9%); } 24% { opacity: 1; transform: translateX(-4%) scaleY(1.1); }
    36% { opacity: .8; transform: translateX(14%) scaleX(1.2); } 48% { opacity: .35; transform: translateX(-6%); } 62% { opacity: .7; transform: none; } 76%, 100% { opacity: 0; transform: none; } }
.cd-spark.cd-bit { border-radius: 0; width: 5px; height: 5px; background: #f4ff2a; box-shadow: 0 0 6px rgba(244,255,42,.9); }
.cd-spark.cd-bit.cd-cyan { background: #b8fbff; box-shadow: 0 0 6px #00f0ff; }
html.calm-flash .cd-glitch { animation: cd-glitch-calm .9s ease-in-out both; }
@keyframes cd-glitch-calm { 0% { opacity: 0; } 40% { opacity: .4; } 100% { opacity: 0; } }
/* Asteroid's impact (Deep Field): the strike's flash, a debris ring racing out over the felt, rock chips thrown up and a
   shock of dust. Reduce flashing: the flash is a soft warm glow that rises and fades (no white strike). */
.cd-impact, .cd-shock, .cd-rock, .cd-dust { position: absolute; pointer-events: none; z-index: 31; }
.cd-impact { width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); border-radius: 50%;
    background: radial-gradient(circle, #fff 0 10%, rgba(255,248,236,.95) 18%, rgba(255,190,120,.6) 34%, rgba(255,120,60,.18) 52%, transparent 66%);
    animation: cd-impact .7s cubic-bezier(.1,.8,.3,1) both; }
@keyframes cd-impact { 0% { opacity: 0; transform: scale(.2); } 10% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.3); } }
.cd-shock { width: var(--fs); height: calc(var(--fs) * .5); margin: calc(var(--fs) * -.25) 0 0 calc(var(--fs) / -2); border-radius: 50%; z-index: 0;
    background: radial-gradient(ellipse closest-side, transparent 0 62%, rgba(120,108,96,.55) 76%, rgba(214,200,184,.75) 84%, rgba(120,108,96,.3) 92%, transparent 100%);
    animation: cd-shock 1.2s cubic-bezier(.15,.7,.3,1) both; }
@keyframes cd-shock { 0% { opacity: 0; transform: scale(.15); } 12% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.cd-rock { width: 7px; height: 6px; margin: -3px 0 0 -3.5px; background: linear-gradient(140deg, #b8aa9a, #4a423b); clip-path: polygon(10% 0, 90% 20%, 100% 80%, 30% 100%, 0 50%);
    animation: cd-rock 1.1s cubic-bezier(.2,.6,.5,1) both; }
@keyframes cd-rock { from { opacity: 1; transform: translate(0, 0) rotate(0); } 60% { opacity: 1; } to { opacity: 0; transform: translate(var(--sx), calc(var(--sy) + 18px)) rotate(400deg); } }
.cd-dust { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle, rgba(170,156,140,.6), rgba(120,108,96,.25) 45%, transparent 70%);
    animation: cd-steam 1.5s ease-out both; }
html.calm-flash .cd-impact { background: radial-gradient(circle, rgba(255,214,170,.45) 0, rgba(255,170,110,.18) 40%, transparent 66%); animation: cd-impact-calm .8s ease-in-out both; }
@keyframes cd-impact-calm { 0% { opacity: 0; transform: scale(.9); } 40% { opacity: .5; } 100% { opacity: 0; transform: scale(1); } }
html.calm-motion .cd-impact, html.calm-motion .cd-shock, html.calm-motion .cd-rock, html.calm-motion .cd-dust { display: none; }
/* Flight Suit's liftoff (Ad Astra): a ring of launch steam rolling out over the felt under each die, a flare of rocket
   fire beneath it, round puffs of steam billowing low and wide, orange sparks. Reduce flashing: the fire is a soft warm glow
   that rises and fades (no white-hot core). */
.cd-billowring, .cd-thrust, .cd-billow { position: absolute; pointer-events: none; z-index: 31; }
.cd-billowring { width: var(--fs); height: calc(var(--fs) * .5); margin: calc(var(--fs) * -.25) 0 0 calc(var(--fs) / -2); border-radius: 50%; z-index: 0;
    background: radial-gradient(ellipse closest-side, transparent 0 48%, rgba(214,221,230,.55) 64%, rgba(255,255,255,.85) 78%, rgba(214,221,230,.4) 90%, transparent 100%);
    filter: blur(1px); animation: cd-billowring 1.4s cubic-bezier(.15,.7,.3,1) both; }
@keyframes cd-billowring { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.cd-thrust { width: var(--fs); height: var(--fs); margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, #fff4d6 0 12%, rgba(255,178,62,.9) 24%, rgba(236,122,51,.5) 42%, rgba(236,122,51,.12) 58%, transparent 68%);
    animation: cd-thrust .85s cubic-bezier(.1,.8,.3,1) both; }
@keyframes cd-thrust { 0% { opacity: 0; transform: scale(.3); } 14% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.cd-billow { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle at 42% 36%, #fff 0 30%, rgba(214,221,230,.85) 55%, rgba(169,180,194,.3) 70%, transparent 72%);
    animation: cd-steam 1.7s ease-out both; }
.cd-spark.cd-gold { background: #ffd982; box-shadow: 0 0 8px #ec7a33; }
html.calm-flash .cd-thrust { background: radial-gradient(circle, rgba(255,217,130,.45) 0, rgba(236,122,51,.16) 40%, transparent 66%); animation: cd-thrust-calm .9s ease-in-out both; }
@keyframes cd-thrust-calm { 0% { opacity: 0; transform: scale(.9); } 40% { opacity: .5; } 100% { opacity: 0; transform: scale(1); } }
html.calm-motion .cd-billowring, html.calm-motion .cd-thrust, html.calm-motion .cd-billow { display: none; }
html.gfx-low .cd-billowring { filter: none; }
/* Calm motion: nothing travels (the moment is cd-glow); reduce flashing: the bolt fades once, with no flicker. */
html.calm-motion .cd-spark, html.calm-motion .cd-ember, html.calm-motion .cd-steam, html.calm-motion .cd-flare, html.calm-motion .cd-frost,
html.calm-motion .cd-corona, html.calm-motion .cd-diamond, html.calm-motion .cd-star, html.calm-motion .cd-armil, html.calm-motion .cd-sun, html.calm-motion .cd-glitch,
html.calm-motion .cd-rota, html.calm-motion .cd-gildring, html.calm-motion .cd-venus { display: none; }
html.calm-motion .cd-die.dk-struck .dk-face i, html.calm-motion .cd-die.dk-struck .dk-ace, html.calm-motion .cd-die.dk-eclipsed .dk-face { animation: none; }
html.calm-flash .cd-bolt { animation: cd-flash .6s ease-out both; }
html.calm-flash .cd-flash { display: none; }
html.gfx-low .cd-steam, html.gfx-low .cd-bolt polyline { filter: none; }
