/* Motion is short and never owns game input or game time. */
#modalBody[data-motion-game]{--motion-lilac:#a28abd;--motion-mint:#80b69e;overflow-x:hidden}
#modalBody[data-motion-game] :is(.mega-grid,.slide-grid,.ttt-grid,.mine-grid,.lights-grid,.schulte-grid,.board,.kid-memory-grid,.hanoi-board,.maze-grid,.blocks-grid){isolation:isolate}
#modalBody[data-motion-game] :is(.mega-grid>button,.slide-grid>button,.ttt-grid>button,.mine-grid>button,.lights-grid>button,.schulte-grid>button,.kid-choice,.kid-memory-card,.number-pad>button,.math-options>button){touch-action:manipulation;transition:box-shadow .13s,border-color .13s;backface-visibility:hidden}
#modalBody[data-motion-game] button:active:not(:disabled){filter:brightness(.96)}
#modalBody[data-motion-game] :is(.mega-meta,.game-meta,.kid-run-top){font-variant-numeric:tabular-nums}
#modalBody[data-motion-game] .motion-piece{display:inline-grid;place-items:center;position:relative;z-index:2;line-height:1;pointer-events:none;transform-origin:center}
#modalBody[data-motion-game] .motion-mark{width:60%;height:60%;overflow:visible;fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:round;pointer-events:none}
#modalBody[data-motion-game] .motion-mark *{stroke-dasharray:100;stroke-dashoffset:0}
#modalBody[data-motion-game] .ttt-grid>button{color:#9e82be}
#modalBody[data-motion-game] .ttt-grid>.nought{color:#c3a16d}
#modalBody[data-motion-game] .mega-pipe.wet{background:#e3f2f8;box-shadow:inset 0 0 0 1px #a6d1e5}
#modalBody[data-motion-game] .mega-pipe:first-child{border-left:4px solid #84b9d0}
#modalBody[data-motion-game] .mega-pipe:last-child{border-right:4px solid #84b9d0}
#modalBody[data-motion-game] .lights-grid>.lit{box-shadow:inset 0 0 18px #fff6,0 0 13px #d4baf045}
#modalBody[data-motion-game] .mega-nono-cell.filled{box-shadow:inset 0 -4px #72548f25,0 2px 5px #8a6ca51a}
#modalBody[data-motion-game] .kid-correct{box-shadow:0 0 0 3px #acd49b55}
#modalBody[data-motion-game] :is(.mega-letter-found,.kid-matched){box-shadow:inset 0 0 0 2px #94bd7b44}
#modalBody[data-motion-game] .motion-good{outline:2px solid #98c9a4;outline-offset:2px}
#modalBody[data-motion-game] .motion-bad{outline:2px solid #d2a7aa;outline-offset:2px}
#gameMotionOverlay{position:fixed;inset:0;pointer-events:none;z-index:30;overflow:hidden;contain:strict}
.motion-spark,.motion-ghost,.motion-ring{position:absolute;pointer-events:none}
.motion-spark{width:7px;height:10px;border-radius:3px;opacity:0}
.motion-ring{border:2px solid #a9c9a0;border-radius:50%;box-sizing:border-box}
.motion-ghost{display:grid;place-items:center;border-radius:7px;color:#fff;background:#b89aca;font:700 22px Manrope,sans-serif}
.snake-board.motion-snake{position:relative;overflow:hidden}
.motion-snake-layer{position:absolute;inset:0;pointer-events:none}
.motion-snake-segment,.motion-snake-food{position:absolute;border-radius:5px;box-sizing:border-box}
.motion-snake-segment{background:#90bea7;box-shadow:inset 0 -3px #59876f24;transition:transform var(--snake-step,120ms) linear}
.motion-snake-segment.motion-snake-head{background:#599078;border-radius:6px;z-index:2}
.motion-snake-head:before,.motion-snake-head:after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;top:24%}
.motion-snake-head:before{right:20%}.motion-snake-head:after{right:20%;top:65%}
.motion-snake-food{background:#dfa17c;border-radius:50%;box-shadow:inset -3px -3px #bd7f6426;animation:motion-food-breathe 1.6s ease-in-out infinite}
.motion-snake-food:after{content:'';position:absolute;width:5px;height:7px;left:48%;top:-2px;border-radius:7px 1px;background:#8cb795;transform:rotate(25deg)}
@keyframes motion-food-breathe{50%{scale:.84}}
@media(prefers-reduced-motion:reduce){#modalBody[data-motion-game] *,#modalBody[data-motion-game] *:before,#modalBody[data-motion-game] *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}.motion-snake-segment{transition:none!important}.motion-snake-food{animation:none}}
