/* Estilos y animaciones para Parchís Tradicional Matemático */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f1f5f9;
}

h1, h2, h3, .font-heading {
    font-family: 'Fredoka', cursive, sans-serif;
}

.btn-bounce:active {
    transform: scale(0.96);
}

/* Efecto de rodar dados en 3D */
@keyframes diceRoll {
    0%   { transform: rotate(0deg) scale(0.9); }
    25%  { transform: rotate(-90deg) scale(1.15) translateY(-8px); }
    50%  { transform: rotate(180deg) scale(0.95); }
    75%  { transform: rotate(270deg) scale(1.1) translateY(6px); }
    100% { transform: rotate(360deg) scale(1); }
}

.anim-dados-girando {
    animation: diceRoll 0.4s infinite linear;
}

/* Dado activo seleccionado */
.dado-activo-glow {
    border-color: #f59e0b !important;
    background-color: #fef3c7 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
    transform: scale(1.06);
}

@keyframes turnGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
        border-color: #eab308;
    }
    50% {
        box-shadow: 0 0 25px rgba(234, 179, 8, 0.9);
        border-color: #facc15;
    }
}

.turno-activo-glow {
    animation: turnGlow 2s infinite ease-in-out;
}

@keyframes dueloShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px) rotate(-1deg); }
    40% { transform: translateX(4px) rotate(1deg); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.duelo-shake {
    animation: dueloShake 0.6s infinite ease-in-out;
}
