/* The Ludo table, "The Pulse" (public/js/player-ludo.js): Heart Beats' own board on the plane (an
   SVG after the owner's reference picture: a metal bevel round obsidian glass, neon yards with ring
   sockets, lit home columns in violet, crimson, cyan and gold, hearts on the safe squares, a
   heartbeat trace either side, the beating heart medallion in the centre), the pawns, the pods with their
   3D dice in the HUD, the effects, the log, the sound panel and the results' statistics.
   Everything else is player.css and pulse-*.css. Motion stops under .pa-reduce and the system's
   reduced-motion setting. */
.pa-c-V { --ludo-c: #9b5cff; --ludo-hi: #e2d1ff; --ludo-lo: #4b1fa3; }
.pa-c-C { --ludo-c: #ff2d6a; --ludo-hi: #ffc6d3; --ludo-lo: #8a0f2c; }
.pa-c-A { --ludo-c: #1fd3ee; --ludo-hi: #c9f6ff; --ludo-lo: #0b6c7d; }
.pa-c-G { --ludo-c: #f4b23f; --ludo-hi: #fff0c4; --ludo-lo: #8f5c0c; }

/* The board takes the pointer (its layer does not, as player.css sets for every layer): the lit tokens are buttons.
   The metal frame is drawn in the SVG beyond the box (overflow visible), with its purple glow. */
.pa-felt-ludo .pa-board {
  position: absolute; left: 0; top: 0; pointer-events: auto; transform-style: preserve-3d; backface-visibility: hidden;
}
.pa-felt-ludo .pa-board-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pa-frame-out { stroke: #2a2238; stroke-width: .03; filter: drop-shadow(0 0 .4px rgba(193, 60, 255, .85)) drop-shadow(0 .5px .6px rgba(0, 0, 0, .8)); }
.pa-board-edge { fill: none; stroke: rgba(193, 60, 255, .5); stroke-width: .05; }
.pa-ecg-out { fill: none; stroke: #e04cff; stroke-width: .035; stroke-linejoin: round; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 0 .08px #c13cff); }
.pa-litstop-hi { stop-color: var(--ludo-hi); }
/* The yards: a neon rounded square (a soft halo behind it), a dark inset, ring sockets. */
.pa-yard-halo { fill: none; stroke: var(--ludo-c); stroke-width: .34; opacity: .28; filter: blur(.12px); }
.pa-yard { fill: color-mix(in srgb, var(--ludo-c) 14%, #0e0818); stroke: var(--ludo-c); stroke-width: .13; }
.pa-yard-in { fill: color-mix(in srgb, var(--ludo-c) 9%, #0b0713); stroke: color-mix(in srgb, var(--ludo-c) 45%, transparent); stroke-width: .05; }
.pa-yard-off { opacity: .32; }
.pa-yard.pa-yard-turn { animation: pa-yard-glow 1.6s ease-in-out infinite; }
@keyframes pa-yard-glow { 0%, 100% { stroke-width: .13; fill: color-mix(in srgb, var(--ludo-c) 14%, #0e0818); } 50% { stroke-width: .26; fill: color-mix(in srgb, var(--ludo-c) 32%, #0e0818); } }
.pa-spot-halo { fill: none; stroke: var(--ludo-c); stroke-width: .12; opacity: .35; filter: blur(.06px); }
.pa-spot { fill: #07040c; stroke: var(--ludo-c); stroke-width: .07; }
.pa-spot-in { fill: none; stroke: color-mix(in srgb, var(--ludo-c) 35%, transparent); stroke-width: .03; }
/* The track: slate squares with a bevel line; the start squares and the columns lit in the colour. */
.pa-cell { stroke: rgba(0, 0, 0, .55); stroke-width: .04; }
.pa-cell-top { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .03; pointer-events: none; }
.pa-cell-top-lit { stroke: rgba(255, 255, 255, .4); }
.pa-cell.pa-start { filter: drop-shadow(0 0 .1px var(--ludo-c)); }
.pa-cell.pa-column { filter: drop-shadow(0 0 .08px var(--ludo-c)); }
.pa-col0 { opacity: .78; } .pa-col1 { opacity: .84; } .pa-col2 { opacity: .9; } .pa-col3 { opacity: .95; } .pa-col4 { opacity: 1; }
.pa-cell.pa-safe:not(.pa-start) { stroke: rgba(226, 209, 255, .35); }
.pa-safeheart { fill: rgba(226, 209, 255, .4); pointer-events: none; }
.pa-arrow { fill: none; stroke: #fff; stroke-width: .1; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 0 .06px #fff); }
/* The centre: the four home triangles, a metal cross and edge, the home slots. */
.pa-centre-bg { fill: #0b0713; }
.pa-home { stroke: none; }
.pa-star-edge { fill: none; stroke: url(#pa-ludo-metal); stroke-width: .09; stroke-linecap: round; }
.pa-centre-edge { fill: none; stroke: url(#pa-ludo-metal); stroke-width: .05; }
.pa-homeslot { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .35); stroke-width: .025; }

/* The heart medallion: a rest glow, a first beat, a stronger second beat with its ripple, a recovery. */
.pa-heart { pointer-events: none; }
.pa-heart-bezel { stroke: #3a2f52; stroke-width: .03; }
.pa-heart-rim { fill: none; stroke-width: .06; }
.pa-heart-ecg { fill: none; stroke: #ff5c9a; stroke-width: .05; stroke-linejoin: round; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 .06px #ff5c9a); }
.pa-heart-beat, .pa-heart-glow, .pa-heart-ripple { transform-origin: 7.5px 7.5px; }
.pa-heart-beat { animation: pa-heartbeat 2.4s ease-in-out infinite; }
.pa-heart-glow { opacity: .5; animation: pa-heartglow 2.4s ease-in-out infinite; }
.pa-heart-ripple { fill: none; stroke: #c13cff; stroke-width: .05; opacity: 0; animation: pa-heartripple 2.4s ease-out infinite; }
.pa-heart-ripple2 { animation-delay: .12s; stroke: #ff5c9a; }
@keyframes pa-heartbeat { 0% { transform: scale(1); } 7% { transform: scale(1.06); } 13% { transform: scale(.99); } 21% { transform: scale(1.12); } 33% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes pa-heartglow { 0% { opacity: .42; } 7% { opacity: .6; } 21% { opacity: .9; } 45% { opacity: .5; } 100% { opacity: .42; } }
@keyframes pa-heartripple { 0%, 20% { transform: scale(1); opacity: 0; } 22% { opacity: .75; } 55% { transform: scale(1.75); opacity: 0; } 100% { transform: scale(1.75); opacity: 0; } }
/* A six, a token home, the win: the heart answers. */
.pa-heart.pa-pulse-six .pa-heart-beat { animation: pa-heart-six .9s ease-out 1; }
.pa-heart.pa-pulse-six .pa-heart-ripple { animation: pa-heart-wave .9s ease-out 1; }
.pa-heart.pa-pulse-home .pa-heart-beat { animation: pa-heart-six 1.1s ease-out 1; }
.pa-heart.pa-pulse-home .pa-heart-glow { animation: pa-heart-flare 1.1s ease-out 1; }
.pa-heart.pa-pulse-win .pa-heart-beat { animation: pa-heart-win 1.6s ease-in-out 2; }
.pa-heart.pa-pulse-win .pa-heart-glow { animation: pa-heart-flare 1.6s ease-in-out 2; }
.pa-heart.pa-pulse-win .pa-heart-ripple { animation: pa-heart-wave 1.6s ease-out 2; }
@keyframes pa-heart-six { 0% { transform: scale(1); } 18% { transform: scale(1.25); } 40% { transform: scale(.97); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes pa-heart-wave { 0% { transform: scale(1); opacity: .9; stroke-width: .12; } 100% { transform: scale(4.2); opacity: 0; stroke-width: .02; } }
@keyframes pa-heart-flare { 0% { opacity: .5; transform: scale(1); } 25% { opacity: 1; transform: scale(1.8); } 100% { opacity: .45; transform: scale(1); } }
@keyframes pa-heart-win { 0% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1.05); } 45% { transform: scale(1.5); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* The pawns: a chrome base with a neon rim, a stem, a collar and a glass head in the colour with the heart on it. */
.pa-token { cursor: default; }
.pa-tokhit { fill: transparent; }
.pa-tokring { fill: none; stroke: none; }
.pa-tokstop-hi { stop-color: var(--ludo-hi); }
.pa-tokstop-mid { stop-color: var(--ludo-c); }
.pa-tokstop-lo { stop-color: var(--ludo-lo); }
.pa-tokbase-rim { fill: none; stroke: var(--ludo-c); stroke-width: .04; filter: drop-shadow(0 0 .08px var(--ludo-c)); }
.pa-tokbase-top { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: .02; }
.pa-tokstem { fill: #1a1226; stroke: color-mix(in srgb, var(--ludo-c) 70%, #fff); stroke-width: .03; }
.pa-tokcollar { fill: #2a1d3d; stroke: var(--ludo-c); stroke-width: .035; }
.pa-tokhead-halo { fill: var(--ludo-c); opacity: .45; filter: blur(.09px); }
.pa-tokrim { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: .035; }
.pa-tokshine { fill: rgba(255, 255, 255, .75); }
.pa-tokheart { fill: #fff; filter: drop-shadow(0 0 .05px #fff); }
.pa-tokshadow { fill: #000; opacity: .5; }
.pa-token.pa-legal { cursor: pointer; }
.pa-tapzone { fill: transparent; stroke: none; pointer-events: all; cursor: pointer; touch-action: manipulation; } /* a phone's tap area on a legal square: invisible */
/* while I choose on a phone, a pawn that cannot move (an opponent's, or mine) lets a tap through to the legal square's area */
.pa[data-layout="phone"] .pa-felt-ludo.pa-choose .pa-token:not(.pa-legal) { pointer-events: none; }
.pa-token.pa-legal .pa-tokring { stroke: var(--ludo-hi); stroke-width: .07; animation: pa-tokring 1s ease-in-out infinite; transform-origin: 0 0; }
.pa-token.pa-legal .pa-tokhead-halo { opacity: .8; }
.pa-token.pa-legal .pa-tokrim { stroke: #fff; stroke-width: .07; }
.pa-token:focus-visible { outline: none; }
.pa-token:focus-visible .pa-tokring { stroke: #fff; stroke-width: .1; }
@keyframes pa-tokring { 0%, 100% { transform: scale(.92); opacity: .95; } 50% { transform: scale(1.12); opacity: .45; } }
.pa-token.pa-landed .pa-tokup { animation: pa-land .38s cubic-bezier(.3, 1.6, .5, 1) 1; transform-origin: 0 0; }
@keyframes pa-land { 0% { scale: 1.18 .82; } 55% { scale: .94 1.06; } 100% { scale: 1; } }
/* A captured token is knocked (a short shake) before it flies home. */
.pa-token.pa-hit .pa-tokup { animation: pa-hit .075s ease-in-out 2; }
@keyframes pa-hit { 0%, 100% { translate: 0 0; } 25% { translate: -.09px .02px; } 75% { translate: .09px -.02px; } }

/* The effects: a capture's violet ripple, a token home's burst, the win's wave across the board. */
.pa-ripple { fill: none; stroke: #c13cff; stroke-width: .1; transform-box: fill-box; transform-origin: center; animation: pa-ripple .9s ease-out forwards; pointer-events: none; }
.pa-ripple-home { stroke: #ffd98a; }
.pa-ripple-win { stroke: #ff5c9a; stroke-width: .12; animation: pa-ripple-win 1.5s ease-out forwards; }
@keyframes pa-ripple { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes pa-ripple-win { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(15); opacity: 0; } }
.pa-spark { fill: var(--ludo-hi); animation: pa-spark .9s ease-out forwards; }
@keyframes pa-spark { 0% { transform: translate(0, 0) scale(1.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

/* The pods: one per player at their yard's corner, with their own die. */
.pa-felt-ludo .hb-hud > .pa-pod {
  pointer-events: auto; display: flex; align-items: center; gap: .55em; padding: .35em .4em .35em .4em; max-width: 17em;
  border-radius: 1.1em; background: rgba(14, 9, 23, .8); border: .08em solid color-mix(in srgb, var(--ludo-c) 45%, transparent);
  -webkit-backdrop-filter: blur(.5em); backdrop-filter: blur(.5em); box-shadow: 0 .5em 1.4em -.6em rgba(0, 0, 0, .8);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.pa-felt-ludo .hb-hud > .pa-pod[data-corner="1"], .pa-felt-ludo .hb-hud > .pa-pod[data-corner="0"] { flex-direction: row-reverse; }
.pa-felt-ludo .hb-hud > .pa-pod.pa-turn { border-color: var(--ludo-c); box-shadow: 0 0 0 .12em color-mix(in srgb, var(--ludo-c) 50%, transparent), 0 0 1.6em -.2em var(--ludo-c); }
.pa-pod .pa-podid { --av: 2.1em; display: flex; align-items: center; gap: .45em; min-width: 0; }
.pa-pod .pa-avatar { width: var(--av); height: var(--av); flex: none; }
.pa-pod .pa-sid { display: flex; flex-direction: column; min-width: 0; gap: .08em; }
.pa-pod .pa-sname { font-weight: 700; color: var(--hb-silver-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.pa-pod .pa-badges { display: flex; gap: .25em; flex-wrap: wrap; }
.pa-pod .pa-sstats { font-size: .82em; color: var(--hb-smoke); }
.pa-pod .pa-stimer { font: 700 .86em var(--display); font-variant-numeric: tabular-nums; color: var(--hb-silver-2); }
.pa-pod .pa-stimer:empty { display: none; }
.pa-pod .pa-stimer.urgent { color: #ff8da6; }
.pa-badge-colour { color: #0d0817; border-color: transparent; background: var(--ludo-c); font-weight: 800; }

/* The die: a cube with pips that tumbles on a roll (button on the player's own turn). */
.pa-dicebtn {
  flex: none; display: grid; place-items: center; width: 3.1em; height: 3.1em; padding: 0; border-radius: .8em; cursor: default;
  background: radial-gradient(circle at 35% 30%, rgba(155, 92, 255, .22), rgba(8, 5, 15, .9)); border: .08em solid rgba(207, 199, 230, .2); color: inherit;
}
.pa-dicebtn.pa-ready { cursor: pointer; border-color: var(--ludo-c); animation: pa-diceready 1.2s ease-in-out infinite; }
.pa-dicebtn:focus-visible { outline: .14em solid #fff; outline-offset: .14em; }
@keyframes pa-diceready { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ludo-c) 70%, transparent); } 50% { box-shadow: 0 0 0 .4em color-mix(in srgb, var(--ludo-c) 0%, transparent), 0 0 1.2em var(--ludo-c); } }
.pa-cubebox { --d: 1.9em; width: var(--d); height: var(--d); perspective: 12em; display: block; pointer-events: none; }
/* Tapped: the die spins until the server's number tumbles in (player-ludo.js removes the class). */
.pa-cubebox.pa-spinning { animation: pa-cubespin .45s linear infinite; }
@keyframes pa-cubespin { from { transform: rotate(0) scale(1.05); } to { transform: rotate(360deg) scale(1.05); } }
.pa-cube { position: relative; display: block; width: var(--d); height: var(--d); transform-style: preserve-3d; transition: transform .25s ease; }
.pa-cube.pa-tumble { transition: transform .68s cubic-bezier(.18, .7, .25, 1.04); }
.pa-cface {
  position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: .2em; border-radius: .3em; backface-visibility: hidden;
  background: linear-gradient(145deg, #fbf8ff, #d8cfee); box-shadow: inset 0 0 .25em rgba(75, 31, 163, .35);
}
.pa-cface i { display: block; margin: 12%; border-radius: 50%; }
.pa-cface i.on { background: radial-gradient(circle at 40% 35%, #6d3bff, #2a0b5c); }
.pa-cface-1 i.on { background: radial-gradient(circle at 40% 35%, #ff5c9a, #9b0b45); margin: 2%; }
.pa-cface-1 { transform: translateZ(calc(var(--d) / 2)); }
.pa-cface-6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.pa-cface-3 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); }
.pa-cface-4 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.pa-cface-5 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); }
.pa-cface-2 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }

.pa-ticker { font: 700 .86em var(--body); color: var(--hb-silver-2); overflow: hidden; text-overflow: ellipsis; }

/* The log and the sound panel: dark glass over the table's top right. */
.pa-ludolog, .pa-soundpanel {
  position: absolute; z-index: 6; top: 3.2rem; right: .6rem; width: min(20rem, calc(100% - 1.2rem)); max-height: calc(100% - 4.4rem); overflow: auto;
  padding: .8rem .9rem; border-radius: 14px; background: rgba(14, 9, 23, .92); border: 1px solid rgba(155, 92, 255, .35); color: var(--hb-silver-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pa-ludolog h3, .pa-soundpanel h3 { margin: 0 0 .5rem; font: 800 .95rem var(--display); letter-spacing: .02em; }
.pa-loglist { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .35rem; font-size: .86rem; }
.pa-loglist li { display: flex; gap: .5rem; align-items: baseline; }
.pa-loglist li:first-child { color: #fff; font-weight: 700; }
.pa-wdot { flex: none; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--ludo-c); box-shadow: 0 0 .5em var(--ludo-c); }
.pa-chlist { display: grid; gap: .4rem; margin-bottom: .6rem; }
.pa-chrow { display: flex; align-items: center; gap: .55rem; font-size: .9rem; cursor: pointer; }
.pa-chrow input { width: 1.05rem; height: 1.05rem; accent-color: #9b5cff; }
.pa-wseats { list-style: none; margin: .2rem 0 .6rem; padding: 0; display: grid; gap: .3rem; }
.pa-wseats li { display: flex; align-items: center; gap: .5rem; }

/* The results: each player's statistics. */
.pa-lstats { width: 100%; margin: .4rem 0 .7rem; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pa-lstats th, .pa-lstats td { padding: .35rem .4rem; text-align: center; border-bottom: 1px solid rgba(207, 199, 230, .12); }
.pa-lstats thead th { font: 700 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--hb-smoke); }
.pa-lstats tbody th { text-align: left; font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.pa-lstats tr.me th, .pa-lstats tr.me td { color: #fff; }
.pa-lstats tr.win th span:last-child::after { content: " ♥"; color: #ff5c9a; }
.pa-rcard-ludo { animation: pa-rise .5s cubic-bezier(.2, .8, .25, 1) 1; }
@keyframes pa-rise { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.pa-controls-ludo .pa-cbtns { flex-wrap: wrap; justify-content: flex-end; }
.pa-controls-ludo .pa-logbtn .pa-ic, .pa-controls-ludo .pa-soundsbtn .pa-ic { width: 1.05em; height: 1.05em; margin-right: .3em; }
.pa[data-layout="phone"] .pa-controls-ludo .btn { --bh: 38px; padding: 0 .7rem; font-size: .86rem; }
.pa[data-layout="phone"] .pa-controls-ludo .pa-logbtn span, .pa[data-layout="phone"] .pa-controls-ludo .pa-soundsbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pa[data-layout="phone"] .pa-controls-ludo .pa-logbtn .pa-ic, .pa[data-layout="phone"] .pa-controls-ludo .pa-soundsbtn .pa-ic { margin: 0; }
.pa-felt-ludo[data-dense="1"] .hb-hud > .pa-pod { gap: .35em; padding: .25em .3em; }
.pa-felt-ludo[data-dense="1"] .pa-pod .pa-sname { max-width: 6.5em; }
.pa-felt-ludo[data-dense="1"] .pa-pod .pa-badges { display: none; }

/* Lite (the quality switch, .pa-lite): the heart holds its rest glow and does not beat, the yard
   and the die do not pulse, no ripple or burst, no blur behind the pods. The tokens still walk. */
.pa-felt-ludo.pa-lite .pa-heart-beat, .pa-felt-ludo.pa-lite .pa-heart-glow, .pa-felt-ludo.pa-lite .pa-heart-ripple,
.pa-felt-ludo.pa-lite .pa-yard-turn, .pa-felt-ludo.pa-lite .pa-dicebtn, .pa-felt-ludo.pa-lite .pa-tokring, .pa-felt-ludo.pa-lite .pa-cubebox { animation: none !important; }
.pa-felt-ludo.pa-lite .pa-heart-ripple { opacity: 0; }
.pa-felt-ludo.pa-lite .pa-heart-glow { opacity: .45; }
.pa-felt-ludo.pa-lite .pa-yard-turn { stroke-width: .24; }
.pa-felt-ludo.pa-lite .hb-hud > .pa-pod, .pa-felt-ludo.pa-lite .pa-ludolog, .pa-felt-ludo.pa-lite .pa-soundpanel { -webkit-backdrop-filter: none; backdrop-filter: none; }
.pa-felt-ludo.pa-lite .pa-frame-out, .pa-felt-ludo.pa-lite .pa-ecg-out, .pa-felt-ludo.pa-lite .pa-yard-halo, .pa-felt-ludo.pa-lite .pa-spot-halo, .pa-felt-ludo.pa-lite .pa-cell, .pa-felt-ludo.pa-lite .pa-arrow,
.pa-felt-ludo.pa-lite .pa-heart-ecg, .pa-felt-ludo.pa-lite .pa-tokbase-rim, .pa-felt-ludo.pa-lite .pa-tokhead-halo, .pa-felt-ludo.pa-lite .pa-tokheart { filter: none; }
.pa[data-layout="phone"] .pa-controls-ludo .pa-qualitybtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pa[data-layout="phone"] .pa-controls-ludo .pa-qualitybtn .pa-ic { margin: 0; }
.pa-controls-ludo .pa-qualitybtn .pa-ic { width: 1.05em; height: 1.05em; margin-right: .3em; }

/* Reduced motion: nothing beats, bobs, glows in a loop or tumbles. */
.pa-felt-ludo.pa-reduce .pa-heart *, .pa-felt-ludo.pa-reduce .pa-yard-turn, .pa-felt-ludo.pa-reduce .pa-tokring, .pa-felt-ludo.pa-reduce .pa-tokup,
.pa-felt-ludo.pa-reduce .pa-dicebtn, .pa-felt-ludo.pa-reduce .pa-rcard-ludo, .pa-felt-ludo.pa-reduce .pa-cubebox { animation: none !important; }
.pa-felt-ludo.pa-reduce .pa-cube { transition: none; }
.pa-felt-ludo.pa-reduce .pa-yard-turn { stroke-width: .24; }
@media (prefers-reduced-motion: reduce) {
  .pa-felt-ludo .pa-heart *, .pa-felt-ludo .pa-yard-turn, .pa-felt-ludo .pa-tokring, .pa-felt-ludo .pa-tokup,
  .pa-felt-ludo .pa-dicebtn, .pa-felt-ludo .pa-rcard-ludo, .pa-felt-ludo .pa-cubebox { animation: none !important; }
  .pa-felt-ludo .pa-cube { transition: none; }
}

/* Medium graphics quality (.pa-med): the heart still beats; no ripple ring round it, no glow filters on the frame. */
.pa-felt-ludo.pa-med .pa-heart-ripple { animation: none !important; opacity: 0; }
.pa-felt-ludo.pa-med .pa-frame-out, .pa-felt-ludo.pa-med .pa-ecg-out, .pa-felt-ludo.pa-med .pa-yard-halo, .pa-felt-ludo.pa-med .pa-spot-halo { filter: none; }

/* Feel wave 2 (2026-11-13, docs/LUDO_MOTION_SPEC.md): the thrown die's copy in a fixed overlay (pointer-events
   none) with its air shadow, and the bob of a pawn that can move, on top of its lift (none at Low or reduced). */
.pa-dieflight { position: fixed; z-index: 60; pointer-events: none; will-change: transform; }
.pa-dieflight-size, .pa-dieflight-lift, .pa-dieflight-spin { position: absolute; inset: 0; display: block; transform-origin: 50% 50%; }
.pa-dieflight .pa-cube { width: var(--d); height: var(--d); transition: none; }
.pa-dieflight-shadow { position: absolute; left: 15%; width: 70%; height: 25%; bottom: -12%; border-radius: 50%; background: #000; opacity: 0; }
@keyframes pa-bob { 0%, 89.5%, 100% { translate: 0 0; } 44.8% { translate: 0 -.042px; } }
.pa-felt-ludo .pa-token.pa-legal .pa-tokup { animation: pa-bob .86s cubic-bezier(.37, 0, .63, 1) infinite; }
.pa-felt-ludo.pa-lite .pa-token.pa-legal .pa-tokup, .pa-felt-ludo.pa-reduce .pa-token.pa-legal .pa-tokup { animation: none; }
@media (prefers-reduced-motion: reduce) { .pa-felt-ludo .pa-token.pa-legal .pa-tokup { animation: none; } }
