.stage { background: radial-gradient(120% 90% at 50% 0%, #8b6cff 0%, #5b3fd6 75%); gap: 14px; padding: 12px; }
.cards { display: grid; gap: var(--g); width: var(--w); }
.mcard { aspect-ratio: 3 / 4; perspective: 600px; cursor: pointer; border: 0; padding: 0; background: none; }
.mcard .in { position: relative; display: block; width: 100%; height: 100%; transition: transform 0.3s; transform-style: preserve-3d; }
.mcard.open .in, .mcard.done .in { transform: rotateY(180deg); }
.mcard .face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.mcard .back { background: #fff; padding: 5px; }
.mcard .back::before { content: '?'; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; background: repeating-linear-gradient(45deg, #ff8fb1 0 8px, #ff9fbd 8px 16px); color: #fff; font-family: var(--title); font-size: calc(var(--w) / 12); }
.mcard .front { background: #fffaf0; transform: rotateY(180deg); font-size: calc(var(--w) / 10); line-height: 1; }
.mcard.done .front { background: #e6fff6; box-shadow: 0 0 0 3px #17b39b inset, 0 4px 10px rgba(0, 0, 0, 0.2); }
.mcard.shake .in { animation: shake 0.3s; }
@keyframes shake { 25% { transform: rotateY(180deg) translateX(-5px); } 75% { transform: rotateY(180deg) translateX(5px); } }
