/* Hereda fuentes y colores de ui.css */


.dinamica-cell {
    aspect-ratio: 1;
    border-radius: 12px; /* Adaptado de botones.css */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Separación entre el número y el icono */
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden; 
    
    /* Propiedades extraídas exactamente de .btn-morado */
    background: linear-gradient(135deg, #9A1CF2 0%, #BD65FA 100%);
    border: 1px solid #AA2AE5;
    color: #ffffff;
    box-shadow: 0 4px 0 #7C1EC8;
    transition: transform 0.05s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.05s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.05s ease;
}

.dinamica-cell:active {
    background: linear-gradient(135deg, #A300EF 0%, #690099 100%);
    border-color: #882AE5;
    transform: translateY(4px);
    box-shadow: 0 0px 0 transparent;
}

/* Estado: JUGADO (Rojo - adaptado de .btn-rojo) */
.dinamica-cell.played {
    background: linear-gradient(135deg, #D9371B 0%, #C54540 100%);
    border-color: #B42E1E;
    box-shadow: 0 4px 0 #7E0F00;
    cursor: default;
    pointer-events: none;
}

/* Estado: GANADO (Oro - adaptado de .btn-dorado) */
.dinamica-cell.claimed {
    background: linear-gradient(135deg, #fbbe4c 0%, #f8a72b 100%);
    border-color: #e5a32a;
    color: #000000;
    box-shadow: 0 4px 0 #c88a1e;
    cursor: default;
    pointer-events: none;
}

/* --- CORRECCIÓN DE CAPAS --- */
.cell-number {
    font-family: 'Panton', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: inherit;
    line-height: 1;
}

.cell-icon {
    width: 24px; /* Tamaño controlado para el icono inferior */
    height: 24px;
    color: inherit;
}

/* Animación de la cuenta regresiva */
@keyframes ping-slow {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-ping-slow {
    animation: ping-slow 0.4s cubic-bezier(0, 0, 0.2, 1);
}

/* Ajustes de color para estados específicos */
.claimed .cell-number { color: black; text-shadow: none; }
/* Corregido: Opacidad al 100% para que el trofeo negro se vea perfecto */
.claimed .cell-icon { opacity: 1; color: black; }


/* Animación de giro infinito para el Loader */
@keyframes spin-linear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-custom {
    animation: spin-linear 1.2s linear infinite;
}

/* Estilo para el icono dentro del botón de compra */
.btn-icon-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin: 0 4px;
    color: #fbbe4c; /* Color oro de ic_points */
}

