/* Miaoo "A world for every cat." card art effects v1.0 (22 Nov 2026)
   One effect layer inside each .game-card-art, behind the cat image:
   Beta  = tiny pixel rats scurrying along the bottom of the art
   Alpha = a faint maze that draws itself, lights four Cure Stations and opens the door
   Cozy  = a soft teal glow under the cat and drifting Zzz
   Nothing else in the section changes. */

.game-card-art > img { position: relative; z-index: 1; }

.ms-art-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ms-art-fx .ms-anim { animation-play-state: paused; }
.ms-art-fx.ms-playing .ms-anim { animation-play-state: running; }

/* Beta: rats */
.ms-art-fx .ms-rat { position: absolute; left: 0; bottom: 10px; image-rendering: pixelated; background-repeat: no-repeat; will-change: transform; }

/* Alpha: maze */
.ms-art-fx .ms-maze { position: absolute; left: 6%; top: 12%; width: 88%; height: 80%; }
.ms-maze .ms-wall { fill: none; stroke: rgba(93,78,55,.20); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ms-maze .ms-path { fill: none; stroke: #4fd8b8; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ms-maze .ms-dot { fill: rgba(93,78,55,.22); transition: fill .3s ease, r .3s ease; }
.ms-maze .ms-dot.ms-on { fill: #4fd8b8; }
.ms-maze .ms-door { fill: rgba(93,78,55,.22); transition: fill .3s ease; }
.ms-maze .ms-door.ms-on { fill: #f5c842; }

/* Cozy: glow + Zzz */
.ms-art-fx .ms-glow { position: absolute; left: 50%; bottom: 8%; width: 62%; aspect-ratio: 3 / 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(95,240,207,.6), rgba(95,240,207,0) 70%); animation: ms-glow 3.4s ease-in-out infinite; }
@keyframes ms-glow { 0%, 100% { opacity: .45; transform: translateX(-50%) scale(.96); } 50% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.ms-art-fx .ms-z { position: absolute; right: 22%; top: 16%; font-family: Fredoka, sans-serif; font-weight: 700; color: #5d4e37; }
.ms-art-fx .ms-z span { position: absolute; opacity: 0; animation: ms-z 3.4s ease-out infinite; }
.ms-art-fx .ms-z span:nth-child(1) { font-size: 14px; }
.ms-art-fx .ms-z span:nth-child(2) { font-size: 18px; animation-delay: 1.1s; }
.ms-art-fx .ms-z span:nth-child(3) { font-size: 23px; animation-delay: 2.2s; }
@keyframes ms-z { 0% { transform: translate(0, 0) rotate(-8deg); opacity: 0; } 20% { opacity: .8; } 100% { transform: translate(18px, -34px) rotate(8deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ms-art-fx * { animation: none !important; transition: none !important; }
  .ms-art-fx .ms-rat { display: none; }
}
