/* The dice cup (static/js/dice_cup.js, docs/plans/games/LIARS_DICE_PLAN.md 2.4): the layers, the states every skin
   plays, the reactions and the comfort versions. A table only places the poses (--dc-aside: which way a lifted cup is set
   down, -1 left, 1 right) and sizes the cup (--dc-w, set by mount). A skin's own motion hooks on .dc-m-<motion>.

   .dc (the box: --dc-ar its aspect, --dc-my the mouth's height in it, --dc-mw / --dc-mh the mouth's size)
     .dc-shadow   the contact shadow on the baize: stays put while the cup moves, shrinks and fades as it rises
     .dc-thud     the ring the slam leaves in the cloth
     .dc-cup      the pose (idle, raised, tipped back, set aside, turned over): transitions
       .dc-anim   the keyframed motion (the shake, the slam, the reactions): composes with any pose
         svg      .dc-body, .dc-cap (the closed top), .dc-mouth (the open end: shown when the cup tips or turns) */
.dc { --dc-p: .5; --dc-aside: 1; position: relative; width: var(--dc-w, 64px); aspect-ratio: var(--dc-ar, 1); }
.dc.dc-flat { display: inline-block; pointer-events: none; }
.dc-shadow, .dc-thud { position: absolute; left: 50%; top: var(--dc-my, 90%); pointer-events: none; border-radius: 50%; }
.dc-shadow { width: calc(var(--dc-mw, 80%) * 1.16); height: calc(var(--dc-mh, 20%) * 1.7); transform: translate(-50%, -46%);
    background: radial-gradient(closest-side, rgba(0,0,0,.66), rgba(0,0,0,.42) 55%, rgba(0,0,0,0));
    transition: transform .3s cubic-bezier(.3,.7,.3,1), opacity .3s; }
/* the candles hang above and a little behind: a soft second shadow falls toward the viewer */
.dc-shadow::after { content: ''; position: absolute; inset: 10% -14% -34% -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); }
.dc-thud { width: var(--dc-mw, 80%); height: var(--dc-mh, 20%); transform: translate(-50%, -50%); opacity: 0;
    border: 1.5px solid rgba(0,0,0,.42); box-shadow: 0 0 0 1px rgba(255,236,200,.07), inset 0 0 4px rgba(0,0,0,.3); }
.dc-cup { position: absolute; inset: 0; transform-origin: 50% var(--dc-my, 90%); will-change: transform;
    transition: transform .32s cubic-bezier(.3,.7,.3,1), opacity .3s, filter .3s; }
.dc-anim { width: 100%; height: 100%; transform-origin: 50% var(--dc-my, 90%); }
.dc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-svg .dc-mouth { opacity: 0; transform-box: fill-box; transform-origin: 50% 40%; transition: opacity .16s, transform .3s cubic-bezier(.3,.7,.3,1); }
/* tipped back, the mouth turns toward the viewer: the opening deepens */
.dc.dc-owner.dc-open .dc-mouth, .dc.dc-rise .dc-mouth { transform: scaleY(1.75); }
.dc-svg .dc-cap { transition: opacity .16s; }

/* the shake: off the baize, swung side to side and pumped, harder with power */
.dc.dc-shake .dc-cup { transform: translateY(-17%); transition-duration: .12s; }
.dc.dc-shake .dc-anim { animation: dcShake .15s ease-in-out infinite alternate; }
@keyframes dcShake {
    from { transform: translate(calc(var(--dc-p) * -7%), calc(var(--dc-p) * -6%)) rotate(calc(var(--dc-p) * -11deg)); }
    to { transform: translate(calc(var(--dc-p) * 7%), calc(var(--dc-p) * 3%)) rotate(calc(var(--dc-p) * 11deg)); } }
.dc.dc-shake .dc-shadow { transform: translate(-50%, -46%) scale(.8); opacity: .45; }
/* the slam: down hard, a squash on the cloth, a small bounce, a ring in the baize */
.dc.dc-slam .dc-cup { transition: none; }
.dc.dc-slam .dc-anim { animation: dcSlam .44s linear; }
@keyframes dcSlam {
    0% { transform: translateY(-19%); animation-timing-function: cubic-bezier(.55,0,1,.6); }
    26% { transform: translateY(0) scale(1.06, .9); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    48% { transform: translateY(-3.5%) scale(.98, 1.03); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
    66% { transform: translateY(0) scale(1.02, .97); }
    100% { transform: none; } }
.dc.dc-slam .dc-shadow { animation: dcSlamShadow .44s linear; }
@keyframes dcSlamShadow { 0% { transform: translate(-50%, -46%) scale(.8); opacity: .45; } 26% { transform: translate(-50%, -46%) scale(1.06); opacity: 1; } }
.dc.dc-slam .dc-thud { animation: dcThud .5s cubic-bezier(.2,.7,.3,1) .1s both; }
@keyframes dcThud { from { transform: translate(-50%, -50%) scale(.86); opacity: .9; } to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* the owner's peek: the near rim lifts and the cup tips back on its far rim, its mouth to its owner, over the dice */
.dc.dc-owner.dc-open .dc-cup { transform: translateY(-57%) perspective(260px) rotateX(34deg) rotate(-5deg); }
.dc.dc-owner.dc-open .dc-mouth, .dc.dc-rise .dc-mouth, .dc.dc-out .dc-mouth { opacity: 1; }
.dc.dc-owner.dc-open .dc-shadow { transform: translate(-50%, -46%) scale(.86); opacity: .5; }
/* the lift: up off the dice (tipped, its mouth showing), then set down beside them, mouth down */
.dc.dc-lift .dc-cup { transform: translateX(calc(var(--dc-aside) * 104%)); transition: transform .4s cubic-bezier(.4,.1,.3,1); }
.dc.dc-lift.dc-rise .dc-cup { transform: translate(calc(var(--dc-aside) * 26%), -62%) perspective(260px) rotateX(26deg) rotate(calc(var(--dc-aside) * 7deg));
    transition: transform .26s cubic-bezier(.2,.7,.4,1); }
.dc.dc-lift .dc-shadow { transform: translate(calc(-50% + var(--dc-aside) * 104%), -46%); transition: transform .4s cubic-bezier(.4,.1,.3,1), opacity .3s; }
.dc.dc-lift.dc-rise .dc-shadow { transform: translate(calc(-50% + var(--dc-aside) * 26%), -46%) scale(.8); opacity: .4; transition-duration: .26s; }
/* out: turned over (mouth up, empty) and set aside, the colour gone out of it */
.dc.dc-out .dc-cup { transform: translate(calc(var(--dc-aside) * 64%), -64%) scale(.74, -.74); filter: saturate(.35) brightness(.62); transition: transform .55s cubic-bezier(.4,.1,.3,1), filter .55s; }
.dc.dc-out .dc-cap { opacity: 0; }
.dc.dc-out .dc-svg .dc-mouth, .dc.dc-out .dc-svg .dc-cap { transition-delay: .2s; }
.dc.dc-out .dc-shadow { transform: translate(calc(-50% + var(--dc-aside) * 64%), -46%) scale(.62); opacity: .7; transition-duration: .55s; }

/* reactions (public play only), on .dc-anim so they play over any pose */
.dc.dc-r-bid .dc-anim { animation: dcTap .42s; }
@keyframes dcTap { 30% { transform: translateY(-8%) rotate(-3deg); animation-timing-function: cubic-bezier(.5,0,1,.6); }
    55% { transform: scale(1.04, .94); } 78% { transform: scale(.99, 1.01); } }
.dc.dc-r-called .dc-anim { animation: dcShiver .5s linear; }
@keyframes dcShiver { 15% { transform: translateX(-4%) rotate(-3deg); } 30% { transform: translateX(4%) rotate(3deg); } 45% { transform: translateX(-3%) rotate(-2deg); }
    60% { transform: translateX(2.5%) rotate(1.5deg); } 80% { transform: translateX(-1%); } }
.dc.dc-r-lose_die .dc-anim { animation: dcSag .7s ease-in-out; }
@keyframes dcSag { 35% { transform: translateY(2%) scale(1.03, .92); filter: brightness(.7); } }
.dc.dc-r-last_die .dc-anim { animation: dcWobble .9s ease-in-out; }
@keyframes dcWobble { 0%, 100% { transform: none; } 20% { transform: rotate(-5deg); filter: brightness(.7); } 45% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } }
.dc.dc-last .dc-body, .dc.dc-last .dc-cap { filter: brightness(.82) saturate(.85); }
.dc.dc-r-win .dc-anim { animation: dcWin 1.4s cubic-bezier(.3,.7,.3,1); }
@keyframes dcWin { 0% { transform: none; filter: none; } 25% { transform: translateY(-16%) rotate(-4deg); filter: drop-shadow(0 0 10px rgba(255,213,154,.75)); }
    45% { transform: translateY(-16%) rotate(4deg); filter: drop-shadow(0 0 12px rgba(255,213,154,.8)); }
    70% { transform: scale(1.03, .96); filter: drop-shadow(0 0 8px rgba(255,213,154,.5)); } 100% { transform: none; filter: none; } }

/* Reduce motion (Comfort.motion): the shake is a small sway in place, the slam a 150 ms settle with no ring, the peek
   opens at once, the lift fades to its place beside the dice, the cup turns over by a fade, and the reactions are a tint */
html.calm-motion .dc.dc-shake .dc-cup { transform: none; }
html.calm-motion .dc.dc-shake .dc-anim { animation: dcSway .5s ease-in-out infinite alternate; }
@keyframes dcSway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
html.calm-motion .dc.dc-shake .dc-shadow { transform: translate(-50%, -46%); opacity: 1; }
html.calm-motion .dc.dc-slam .dc-anim, html.calm-motion .dc.dc-slam .dc-shadow { animation: none; }
html.calm-motion .dc.dc-slam .dc-thud { animation: none; opacity: 0; }
html.calm-motion .dc.dc-slam .dc-cup { transition: transform .15s; }
html.calm-motion .dc-cup, html.calm-motion .dc-shadow { transition: opacity .25s, filter .25s; }
html.calm-motion .dc.dc-owner.dc-open .dc-cup { transition: none; }
html.calm-motion .dc.dc-lift .dc-cup, html.calm-motion .dc.dc-out .dc-cup { animation: dcFadeIn .3s ease; transition: filter .3s; }
html.calm-motion .dc.dc-lift .dc-shadow, html.calm-motion .dc.dc-out .dc-shadow { animation: dcFadeIn .3s ease; transition: none; }
@keyframes dcFadeIn { from { opacity: 0; } }
html.calm-motion .dc-svg .dc-mouth, html.calm-motion .dc-svg .dc-cap { transition: none; }
html.calm-motion .dc.dc-r-bid .dc-anim, html.calm-motion .dc.dc-r-called .dc-anim, html.calm-motion .dc.dc-r-lose_die .dc-anim,
html.calm-motion .dc.dc-r-last_die .dc-anim, html.calm-motion .dc.dc-r-win .dc-anim { animation: dcTint .6s ease-in-out; }
@keyframes dcTint { 50% { filter: brightness(.78) sepia(.35); } }
html.calm-motion .dc.dc-r-win .dc-anim { animation: dcTintWarm 1.2s ease-in-out; }
@keyframes dcTintWarm { 50% { filter: brightness(1.15) sepia(.25); } }
/* Reduce flashing: the win is a slow warm tint, never a glow */
html.calm-flash .dc.dc-r-win .dc-anim { animation-name: dcWinCalm; animation-duration: 1.4s; }
@keyframes dcWinCalm { 25%, 45% { transform: translateY(-12%); filter: brightness(1.1); } }
html.calm-motion.calm-flash .dc.dc-r-win .dc-anim { animation: dcTintWarm 1.2s ease-in-out; }
/* Low graphics: no grain, no glows, no ring in the cloth, the soft second shadow gone, idle loops held */
html.gfx-low .dc-svg .dc-grain, html.gfx-low .dc-thud, html.gfx-low .dc-shadow::after { display: none; }
html.gfx-low .dc.dc-r-win .dc-anim { animation-name: dcTap; animation-duration: .42s; }

/* ---------------------------------------------------------------- the skins (LIARS_DICE_PLAN.md 3.7)
   Each hooks on .dc-m-<motion> (Epic and up) and the reactions the cup is sent (public play only). A preview holds still
   (.dc-still) unless the Store asks for it live; .dc-played stands a preview over a few dice ("as played"). */
.dc-spill, .dc-fx { position: absolute; pointer-events: none; }
.dc-spill { left: 50%; top: var(--dc-my, 90%); width: calc(var(--dc-mw, 80%) * 1.9); height: calc(var(--dc-mh, 20%) * 3.2); transform: translate(-50%, -50%);
    border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(255,196,110,.42), rgba(255,170,80,.16) 55%, rgba(255,160,60,0)); transition: opacity .35s; }
.dc-fx { left: 50%; top: 14%; width: 0; height: 0; }
.dc.dc-still, .dc.dc-still * { animation: none !important; }
.dc-played { position: relative; display: inline-block; vertical-align: middle; width: calc(var(--dc-w) * 1.3); height: calc(var(--dc-w) * 1.5); }
.dc-played > .dc { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); }
.dc-played > .dc .dc-cup { transform: translateY(-30%) perspective(260px) rotateX(26deg) rotate(-6deg); }
.dc-played > .dc .dc-mouth { opacity: 1; transform: scaleY(1.6); }
.dc-played > .dc .dc-shadow { transform: translate(-50%, -46%) scale(.9); opacity: .6; }
.dc-played .dc-heap { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: calc(var(--dc-w) * .03); }
.dc-played .dc-heap > :nth-child(1) { transform: rotate(-9deg) translateY(-6%); }
.dc-played .dc-heap > :nth-child(2) { transform: rotate(5deg) translateY(4%); }
.dc-played .dc-heap > :nth-child(3) { transform: rotate(14deg) translateY(-10%); }

/* Clockwork: the gears tick round while it sits; a spring pops the lid a hair on the slam */
.dc-gear { transform-box: fill-box; transform-origin: center; }
.dc-m-gears .dc-gear { animation: dcGear calc(var(--gs, 8s) * 4) steps(60) infinite; }
@keyframes dcGear { to { transform: rotate(calc(var(--gd, 1) * 360deg)); } }
.dc-m-gears.dc-pop .dc-cap { animation: dcPop .5s cubic-bezier(.3,1.5,.5,1) .12s; }
@keyframes dcPop { 30% { transform: translateY(-2.6px); } 60% { transform: translateY(-.6px); } }

/* Carnevale: shaken, the harlequin's diamonds ripple through their three colours */
.dc-m-ripple.dc-shake .dc-dia { animation: dcRipple .9s linear infinite; animation-delay: calc(var(--i, 0) * -.1s); }
@keyframes dcRipple { 0%, 100% { fill: var(--dc-c1); } 33% { fill: var(--dc-c2); } 66% { fill: var(--dc-c3); } }

/* Lantern Cup: the candle behind the holes - dim and flickering while the cup is down, full when it lifts (and on the
   baize round the dice); called a liar, the flame jumps and gutters; a win throws sparks from its crown */
.dc-glow { opacity: 0; }
.dc-m-flame .dc-glow { opacity: .42; animation: dcFlicker 2.8s ease-in-out infinite; }
@keyframes dcFlicker { 0%, 100% { opacity: .36; } 22% { opacity: .5; } 41% { opacity: .33; } 63% { opacity: .55; } 80% { opacity: .4; } }
.dc-m-flame.dc-lift .dc-glow, .dc-m-flame.dc-rise .dc-glow, .dc-m-flame.dc-owner.dc-open .dc-glow { opacity: .95; animation: none; transition: opacity .3s; }
.dc-m-flame.dc-lift .dc-spill, .dc-m-flame.dc-owner.dc-open .dc-spill { opacity: 1; }
.dc-m-flame.dc-r-called .dc-glow { animation: dcGutter .9s ease-out; }
@keyframes dcGutter { 0% { opacity: .3; } 12% { opacity: 1; } 30% { opacity: .1; } 50% { opacity: .55; } 72% { opacity: .12; } 100% { opacity: .3; } }
.dc-spark { position: absolute; left: 0; top: 0; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #ffe3a3; opacity: 0;
    box-shadow: 0 0 4px 1px rgba(255,170,60,.8); animation: dcSpark .95s cubic-bezier(.2,.7,.4,1) var(--sd, 0s) forwards; }
@keyframes dcSpark { 0% { opacity: 1; transform: none; } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--sx), calc(var(--sy) + 18px)) scale(.4); } }

/* Storm Glass: the swirl turns, faster with each of your bids, the lightning in it once the storm is up; the lift breaks it */
.dc-swirl { transform-box: fill-box; transform-origin: center; }
.dc-m-storm .dc-swirl { animation: dcSpin 16s linear infinite; }
.dc-m-storm.dc-storm-1 .dc-swirl { animation-duration: 8s; }
.dc-m-storm.dc-storm-2 .dc-swirl { animation-duration: 4.5s; }
.dc-m-storm.dc-storm-3 .dc-swirl { animation-duration: 2.4s; }
@keyframes dcSpin { to { transform: rotate(-360deg); } }
.dc-bolt { opacity: 0; }
.dc-m-storm.dc-storm-2 .dc-bolt { animation: dcBolt 3.1s steps(1) infinite; }
.dc-m-storm.dc-storm-3 .dc-bolt { animation: dcBolt 1.7s steps(1) infinite; }
@keyframes dcBolt { 0%, 100% { opacity: 0; } 4% { opacity: .9; } 7% { opacity: 0; } 10% { opacity: .6; } 13% { opacity: 0; } }
.dc-m-storm.dc-break .dc-svg { animation: dcBreak 1.2s ease-out; }
@keyframes dcBreak { 0% { filter: none; } 6% { filter: brightness(2) saturate(.6); } 14% { filter: none; } 20% { filter: brightness(1.5); } 40%, 100% { filter: none; } }
.dc-m-storm.dc-break .dc-bolt { animation: dcBoltBreak 1.2s ease-out; }
@keyframes dcBoltBreak { 0% { opacity: 0; } 6% { opacity: 1; } 30% { opacity: .8; } 100% { opacity: 0; } }

/* Janus: the laughing or the weeping face to the table (a turn of the mask), a crack for each die lost (the public
   count), and on the win the mask bursts into shards and re-forms whole, in silver */
.dc-face-b, .dc-mask-s, .dc-shard, .dc-ck { opacity: 0; }
.dc-weep .dc-face-a { opacity: 0; }
.dc-weep .dc-face-b, .dc-silver .dc-mask-s { opacity: 1; }
.dc-silver .dc-mask-g { opacity: 0; }
.dc-ck { transition: opacity .5s; }
.dc-cracks-1 .dc-ck1, .dc-cracks-2 .dc-ck1, .dc-cracks-2 .dc-ck2, .dc-cracks-3 .dc-ck1, .dc-cracks-3 .dc-ck2, .dc-cracks-3 .dc-ck3, .dc-cracks-4 .dc-ck { opacity: 1; }
.dc.dc-silver .dc-ck { opacity: 0; }
.dc-maskwrap, .dc-mask-s, .dc-shard { transform-box: fill-box; transform-origin: center; }
.dc-m-janus.dc-turn .dc-maskwrap { animation: dcMaskTurn .5s ease-in-out; }
@keyframes dcMaskTurn { 50% { transform: scaleX(.06); } }
.dc-m-janus.dc-shatter .dc-mask-g, .dc-m-janus.dc-shatter .dc-ck { animation: dcHide 1.4s steps(1); }
@keyframes dcHide { 0% { opacity: 1; } 8%, 100% { opacity: 0; } }
.dc-m-janus.dc-shatter .dc-shard { animation: dcShard 1.4s cubic-bezier(.2,.7,.3,1); }
@keyframes dcShard { 0%, 8% { opacity: 1; transform: none; } 45% { opacity: .9; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
    60%, 100% { opacity: 0; transform: translate(calc(var(--sx) * 1.3), calc(var(--sy) * 1.3 + 4px)) rotate(var(--sr)); } }
.dc-m-janus.dc-shatter .dc-mask-s { animation: dcReform 1.4s ease-out; }
@keyframes dcReform { 0%, 42% { opacity: 0; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }

/* The Last Hour: the upper bulb's sand is the dice left (--dc-sand), the pile below the rest; it trickles while the
   seat plays (thin and slow on the last die); on the win the glass turns over and the sand flows back up */
.dc-sand-top, .dc-sand-low { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s ease-in-out; }
.dc-sand-top { transform: scaleY(var(--dc-sand, 1)); }
.dc-sand-low { transform: scaleY(calc(1 - var(--dc-sand, 1))); }
.dc-stream { opacity: 0; }
.dc-m-sand.dc-flow .dc-stream { opacity: .9; animation: dcStream .5s linear infinite; }
@keyframes dcStream { to { stroke-dashoffset: -2.8; } }
.dc-m-sand.dc-last .dc-stream { stroke-width: .4; animation-duration: 1.3s; }
.dc.dc-m-sand.dc-turnover .dc-anim { transform-origin: 50% 50%; animation: dcTurnOver 2s cubic-bezier(.45,0,.3,1); }
@keyframes dcTurnOver { 0% { transform: none; } 30%, 62% { transform: translateY(-22%) rotate(180deg); } 100% { transform: rotate(360deg); } }

/* Third Contact (the Eclipse set's): the corona turns slowly, the moon slides over the sun as dice are lost (totality on
   the last die: the corona at its fullest), the lift makes the corona breathe, and the win is third contact - the moon
   clears the sun's far limb and the diamond ring blazes */
.dc-corona, .dc-diamond { transform-box: fill-box; transform-origin: center; }
.dc-corona { opacity: .72; transition: opacity .6s; }
.dc-m-corona .dc-corona { animation: dcSpin 48s linear infinite; }
.dc-m-corona.dc-total .dc-corona { opacity: 1; }
.dc-moon { transition: transform 1s cubic-bezier(.4,.1,.3,1); }
.dc-diamond { opacity: 0; }
.dc-m-corona.dc-r-lift .dc-corona { animation: dcCoronaBreathe .9s ease-out; }
@keyframes dcCoronaBreathe { 45% { opacity: 1; transform: scale(1.12); } }
.dc-m-corona.dc-third .dc-diamond { animation: dcDiamond 2.4s ease-out forwards; }
@keyframes dcDiamond { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.35); } 45% { opacity: .95; transform: scale(1); } 100% { opacity: .6; transform: scale(.9); } }

/* The skins under reduce motion: every idle loop holds (the gears, the flicker, the swirl, the trickle, the ripple), the
   lid does not pop, the mask's faces and its silver cross-fade (no turn, no shards), the sand settles at once */
html.calm-motion .dc-m-gears .dc-gear, html.calm-motion .dc-m-flame .dc-glow, html.calm-motion .dc-m-storm .dc-swirl,
html.calm-motion .dc-m-sand.dc-flow .dc-stream, html.calm-motion .dc-m-ripple.dc-shake .dc-dia, html.calm-motion .dc-m-gears.dc-pop .dc-cap,
html.calm-motion .dc-m-janus.dc-turn .dc-maskwrap, html.calm-motion .dc-m-storm .dc-bolt { animation: none; }
html.calm-motion .dc-face-a, html.calm-motion .dc-face-b, html.calm-motion .dc-mask-g, html.calm-motion .dc-mask-s { transition: opacity .45s; }
html.calm-motion .dc-sand-top, html.calm-motion .dc-sand-low { transition: none; }
html.calm-motion .dc-spark { display: none; }
html.calm-motion .dc-m-corona .dc-corona, html.calm-motion .dc-m-corona.dc-r-lift .dc-corona { animation: none; }
html.calm-motion .dc-moon { transition: none; }
html.calm-motion .dc-m-corona.dc-third .dc-diamond { animation: dcDiamondFade 1.4s ease-in-out forwards; }
@keyframes dcDiamondFade { from { opacity: 0; } to { opacity: .6; } }
/* ... under reduce flashing: no lightning (a steady faint glow once the storm is up), the break a slow brighten, the
   flame dims without a flare, the ripple slower, the sparks without their glow */
html.calm-flash .dc-m-storm.dc-storm-2 .dc-bolt, html.calm-flash .dc-m-storm.dc-storm-3 .dc-bolt { animation: none; opacity: .22; }
html.calm-flash .dc-m-storm.dc-break .dc-svg { animation: dcBreakCalm 1.6s ease-in-out; }
@keyframes dcBreakCalm { 50% { filter: brightness(1.16); } }
html.calm-flash .dc-m-storm.dc-break .dc-bolt { animation: dcBoltCalm 1.6s ease-in-out; }
@keyframes dcBoltCalm { 50% { opacity: .3; } }
html.calm-flash .dc-m-flame.dc-r-called .dc-glow { animation: dcGutterCalm 1.2s ease-in-out; }
@keyframes dcGutterCalm { 50% { opacity: .12; } }
html.calm-flash .dc-m-flame .dc-glow { animation-duration: 5s; }
html.calm-flash .dc-m-ripple.dc-shake .dc-dia { animation-duration: 2.4s; }
html.calm-flash .dc-spark { box-shadow: none; background: #f0c27c; }
html.calm-flash .dc-m-corona.dc-third .dc-diamond { animation: dcDiamondFade 1.6s ease-in-out forwards; }
html.calm-flash .dc-diamond-glow { display: none; }
html.calm-flash .dc-m-corona.dc-r-lift .dc-corona { animation-name: dcCoronaCalm; animation-duration: 1.4s; }
@keyframes dcCoronaCalm { 50% { opacity: .9; } }
/* ... and under low graphics: the idle loops held, no sparks, no light on the baize (the holes still lit when it lifts) */
html.gfx-low .dc-m-gears .dc-gear, html.gfx-low .dc-m-flame .dc-glow, html.gfx-low .dc-m-storm .dc-swirl, html.gfx-low .dc-m-storm .dc-bolt,
html.gfx-low .dc-m-sand.dc-flow .dc-stream, html.gfx-low .dc-m-ripple.dc-shake .dc-dia { animation: none; }
html.gfx-low .dc-spark, html.gfx-low .dc-spill { display: none; }
html.gfx-low .dc-m-corona .dc-corona { animation: none; }
html.gfx-low .dc-diamond-glow { display: none; }
html.gfx-low .dc-mask-g, html.gfx-low .dc-mask-s { transition: opacity .45s; }
