/* Practice hub: tool cards with icons ([sl_practice_cards], spanish-learning-practice.php). Matches the English site. */
.slpc { margin: 8px 0 24px; color: var(--wp--preset--color--contrast, #1B2421); }
.slpc-group + .slpc-group { margin-top: 34px; }
.slpc-group__h { margin: 0 0 12px; font-size: 1.15rem; color: var(--wp--preset--color--accent-4, #4A5551); letter-spacing: .02em; }
.slpc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .slpc-grid { grid-template-columns: repeat(2, 1fr); } }
.slpc-card { margin: 0; }
.slpc-card__link { display: flex; gap: 14px; align-items: flex-start; height: 100%; box-sizing: border-box; padding: 16px; background: #fff; border: 1px solid var(--wp--preset--color--accent-6, #DDE1E7); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.slpc-card__link:hover, .slpc-card__link:focus-visible { border-color: var(--wp--preset--color--accent-1, #0F7A5C); box-shadow: 0 2px 0 var(--wp--preset--color--accent-2, #E2F0EA); transform: translateY(-1px); }
.slpc-card__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; }
.slpc-card__text { display: flex; flex-direction: column; gap: 4px; }
.slpc-card__name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.slpc-card__desc { font-size: .92rem; line-height: 1.45; color: var(--wp--preset--color--accent-4, #4A5551); }
@media (prefers-reduced-motion: reduce) { .slpc-card__link { transition: none; } .slpc-card__link:hover { transform: none; } }

/* Game cards: a little animated loop with the game's characters (practice-icons.json, tools/practice-icons.js) */
.slpc-card__icon--anim { width: 64px; height: 64px; overflow: hidden; }
.slpc-anim .mv { transform-box: fill-box; transform-origin: center; }
.slpc-anim .chan { transform-box: view-box; transform-origin: 0 0; }
.slpc-anim .f1 { animation: slpc-f1 2.4s steps(1) infinite; }
.slpc-anim .f2 { animation: slpc-f2 2.4s steps(1) infinite; }
@keyframes slpc-f1 { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes slpc-f2 { 0% { opacity: 0; } 50% { opacity: 1; } }
.slpc-anim .n1 { animation: slpc-note 2.4s ease-out infinite; }
.slpc-anim .n2 { animation: slpc-note 2.4s ease-out 1.2s infinite; }
@keyframes slpc-note { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.slpc-anim .puff { animation: slpc-puff 2.4s ease-out infinite; }
@keyframes slpc-puff { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 45% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 0; } }
.slpc-anim .heart { animation: slpc-heart 2.4s ease-out infinite; }
@keyframes slpc-heart { 0%, 50% { opacity: 0; transform: translateY(6px) scale(.6); } 65% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-10px) scale(1); } }
.slpc-anim .t1 { animation: slpc-drop 2.4s ease-in infinite; }
.slpc-anim .t2 { animation: slpc-drop 2.4s ease-in .25s infinite; }
.slpc-anim .t3 { animation: slpc-drop 2.4s ease-in .5s infinite; }
@keyframes slpc-drop { 0% { opacity: 0; transform: translateY(-16px); } 20%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
.slpc-anim .chan { animation: slpc-chan 2.4s linear infinite; }
@keyframes slpc-chan { 0% { opacity: 0; transform: translate(30px, 52px) rotate(0); } 8% { opacity: 1; } 48% { opacity: 1; transform: translate(68px, 44px) rotate(540deg); } 52%, 100% { opacity: 0; transform: translate(70px, 60px) rotate(600deg); } }
@media (prefers-reduced-motion: reduce) { .slpc-anim *, .slpc-anim .f1, .slpc-anim .f2 { animation: none !important; } .slpc-anim .f2, .slpc-anim .mv { opacity: 0; } .slpc-anim .t1, .slpc-anim .t2, .slpc-anim .t3 { opacity: 1; } }
